@marimo-team/frontend 0.23.4-dev1 → 0.23.4-dev11
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.
- package/dist/assets/JsonOutput-D5TiQGJ4.js +49 -0
- package/dist/assets/{add-connection-dialog-gd2yD9Qo.js → add-connection-dialog-Dg6K--Uw.js} +1 -1
- package/dist/assets/{agent-panel-TetMUXWP.js → agent-panel-oPuvVsjs.js} +1 -1
- package/dist/assets/{cell-editor-C6vZfKyj.js → cell-editor-CdyZleud.js} +3 -3
- package/dist/assets/{column-preview-_5uYiy74.js → column-preview-B1KZjh-X.js} +1 -1
- package/dist/assets/command-CXDOCJwp.js +1 -0
- package/dist/assets/{command-palette-DfotChyr.js → command-palette-C7AbtCWz.js} +1 -1
- package/dist/assets/{dependency-graph-panel-Yk1Ch_Gj.js → dependency-graph-panel-k1WQZ4m-.js} +1 -1
- package/dist/assets/{edit-page-C-LIP5uT.js → edit-page-CbGDoOay.js} +3 -3
- package/dist/assets/{file-explorer-panel-Dlwspu2Y.js → file-explorer-panel-Cjlf3QNa.js} +2 -2
- package/dist/assets/{form-Dr-_EXr8.js → form-D1abghOq.js} +1 -1
- package/dist/assets/{hooks-CNPv5U-N.js → hooks-4gSLiehn.js} +1 -1
- package/dist/assets/{index-BFivsT-R.js → index-rjcv10Dv.js} +8 -8
- package/dist/assets/{layout-DDh3d8oW.js → layout-C4u-1iTo.js} +3 -3
- package/dist/assets/loro_wasm_bg-Bu4Ofw1K.js +2 -0
- package/dist/assets/{loro_wasm_bg-DXuHQ2hl.js → loro_wasm_bg-DWJCS9pK.js} +1 -1
- package/dist/assets/{panels-CbRenLjk.js → panels-CpvbcuTn.js} +1 -1
- package/dist/assets/{reveal-component-CLjsFHmT.js → reveal-component-C2X5QJAC.js} +1 -1
- package/dist/assets/{run-page-C1Wd8dr8.js → run-page-BYdI3kiE.js} +1 -1
- package/dist/assets/{scratchpad-panel-DpqODhZ3.js → scratchpad-panel-BP6-rZV6.js} +1 -1
- package/dist/assets/{session-panel-BvCIuxgU.js → session-panel-YGK2D21A.js} +1 -1
- package/dist/assets/{slide-form-CXqvfwGg.js → slide-form-BE8M6oJo.js} +1 -1
- package/dist/assets/{snippets-panel-COBTGJcr.js → snippets-panel-CnN632Ki.js} +1 -1
- package/dist/assets/{state-LyvUXW6A.js → state-CoUA-8Ay.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-DFZNQ3a8.js → useDependencyPanelTab-8WaMRWbo.js} +1 -1
- package/dist/assets/useNotebookActions-bCZiRDS-.js +1 -0
- package/dist/index.html +6 -6
- package/package.json +4 -4
- package/src/components/data-table/__tests__/column-header.test.ts +63 -0
- package/src/components/data-table/column-header.tsx +50 -159
- package/src/components/data-table/filter-by-values-picker.tsx +7 -4
- package/src/components/editor/actions/pair-with-agent-modal.tsx +1 -1
- package/src/components/editor/actions/useNotebookActions.tsx +1 -0
- package/dist/assets/JsonOutput-BVAcY5xS.js +0 -49
- package/dist/assets/command-CzIDL1VI.js +0 -1
- package/dist/assets/loro_wasm_bg-Ds40eH8K.js +0 -2
- package/dist/assets/useNotebookActions-F5fGMe9N.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as Ai}from"./chunk-LvLJmgfZ.js";let se,ae,ie,le,ge,ce,de,we,be,ue,pe,he,fe,me,ve,ye,xe,Se,Ce,Ae,Oe,Ie,Ne,Fe,De,Le,ke,Ee,Re,Te,Je,Ve,Ue,Pe,Be,Me,ze,je,We,He,qe,$e,Ke,Ge,Qe,Xe,Ye,Ze,et,tt,rt,_t,ot,nt,st,at,it,lt,gt,ct,dt,wt,bt,ut,pt,ht,ft,mt,vt,yt,xt,St,Ct,At,Ot,It,Nt,Ft,Dt,Lt,kt,Et,Rt,Tt,Jt,Vt,Ut,Pt,Bt,Mt,zt,jt,Wt,Ht,qt,$t,Kt,Gt,Qt,Xt,Yt,Zt,er,tr,rr,_r,or,nr,sr,ar,ir,lr,gr,cr,dr,wr,br,ur,pr,hr,fr,mr,vr,yr,xr,Sr,Cr,Ar,Or,Ir,Nr,Fr,Dr,Lr,kr,Er,Rr,Tr,Jr,Vr,Ur,Pr,Br,Mr,zr,jr,Wr,Hr,qr,$r,Kr,Gr,Qr,Xr,Yr,Zr,e_,t_,r_,__,o_,n_,s_,a_,i_,l_,g_,c_,d_,w_,b_,u_,p_,h_,f_,m_,v_,y_,x_,S_,C_,A_,O_,I_,N_,F_,D_,L_,k_,E_,R_,T_,D,J_,V_,U_,P_,B_,M_,z_,j_,W_,H_,q_,$_,K_,G_,Oi,Q_,X_,Y_,Z_,Ii,eo,to,ro,_o,oo,no,so,ao,io,lo,go,co,wo,bo,uo,po,ho,fo,mo,vo,yo,xo,So,Co,Ao,Oo,Io,No,Fo,Do,Lo,ko,G,Eo,Ro,To,Jo,Vo,Uo,Q,Po,Bo,Mo,zo,jo,Wo,Ho,qo,$o,Ko,Go,Qo,Xo,Yo,Zo,en,tn,rn,_n,on,nn,sn,an,ln,gn,cn,dn,wn,bn,un,pn,hn,fn,mn,vn,yn,xn,Sn,Cn,An,x,On,In,Nn,Fn,Dn,Ln,kn,En,Rn,Tn,Jn,Vn,Un,I,Pn,Bn,Mn,zn,jn,Wn,Hn,qn,$n,Kn,Gn,Qn,Xn,Yn,Zn,es,ts,rs,_s,os,ns,ss,as,is,ls,gs,cs,ds,ws,bs,us,ps,Wi=(async()=>{let fs,ms,r;fs=""+new URL("loro_wasm_bg-WKwciKJa.wasm",import.meta.url).href,ms=async(_={},e)=>{let t;if(e.startsWith("data:")){let o=e.replace(/^data:.*?base64,/,""),s;if(typeof Buffer=="function"&&typeof Buffer.from=="function")s=Buffer.from(o,"base64");else if(typeof atob=="function"){let a=atob(o);s=new Uint8Array(a.length);for(let l=0;l<a.length;l++)s[l]=a.charCodeAt(l)}else throw Error("Cannot decode base64-encoded data URL");t=await WebAssembly.instantiate(s,_)}else{let o=await fetch(e),s=o.headers.get("Content-Type")||"";if("instantiateStreaming"in WebAssembly&&s.startsWith("application/wasm"))t=await WebAssembly.instantiateStreaming(o,_);else{let a=await o.arrayBuffer();t=await WebAssembly.instantiate(a,_)}}return t.instance.exports},Ii=Ai({AwarenessWasm:()=>Yo,ChangeModifier:()=>te,Cursor:()=>x,EphemeralStoreWasm:()=>F_,LORO_VERSION:()=>Ui,LoroCounter:()=>J,LoroDoc:()=>G,LoroList:()=>P,LoroMap:()=>I,LoroMovableList:()=>z,LoroText:()=>D,LoroTree:()=>H,LoroTreeNode:()=>F,UndoManager:()=>K_,VersionVector:()=>y,__wbg_String_8f0eb39a4a4c2f66:()=>Ss,__wbg_apply_36be6a55257c99bf:()=>Cs,__wbg_apply_eb9e9b97497f91e4:()=>As,__wbg_buffer_609cc3eee51ed158:()=>Os,__wbg_call_672a4d21634d4a24:()=>Is,__wbg_call_7cccdd69e0791ae2:()=>Ns,__wbg_call_833bed5770ea2041:()=>Fs,__wbg_call_b8adc8b1d0a0d8eb:()=>Ds,__wbg_changemodifier_new:()=>Ls,__wbg_crypto_574e78ad8b13b65f:()=>ks,__wbg_cursor_new:()=>Es,__wbg_done_769e5ede4b31c67b:()=>Rs,__wbg_entries_3265d4158b33e5dc:()=>Ts,__wbg_entries_c8a90a7ed73e84ce:()=>Js,__wbg_error_1cb1bf0bb7e0da2b:()=>Vs,__wbg_error_7534b8e9a36f1ab4:()=>Us,__wbg_from_2a5d3e218e67aa85:()=>Ps,__wbg_getOwnPropertySymbols_97eebed6fe6e08be:()=>Bs,__wbg_getRandomValues_b8f5dbd5f3995a9e:()=>Ms,__wbg_get_67b2ba62fc30de12:()=>zs,__wbg_get_b9b93047fe3cf45b:()=>js,__wbg_getindex_5b00c274b05714aa:()=>Ws,__wbg_getwithrefkey_1dc361bd10053bfe:()=>Hs,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:()=>qs,__wbg_instanceof_Map_f3469ce2244d2430:()=>$s,__wbg_instanceof_Object_7f2dcef8f78644a4:()=>Ks,__wbg_instanceof_Uint8Array_17156bcf118086a9:()=>Gs,__wbg_isArray_a1eab7e0d067391b:()=>Qs,__wbg_isSafeInteger_343e2beeeece1bb0:()=>Xs,__wbg_iterator_9a24c88df860dc65:()=>Ys,__wbg_length_a446193dc22c12f8:()=>Zs,__wbg_length_e2d2a49132c1b256:()=>ea,__wbg_log_0671e6aa34e04626:()=>ta,__wbg_log_0cc1b7768397bcfe:()=>ra,__wbg_log_cb9e190acc5753fb:()=>_a,__wbg_lorocounter_new:()=>oa,__wbg_lorolist_new:()=>na,__wbg_loromap_new:()=>sa,__wbg_loromovablelist_new:()=>aa,__wbg_lorotext_new:()=>ia,__wbg_lorotree_new:()=>la,__wbg_lorotreenode_new:()=>ga,__wbg_mark_7438147ce31e9d4b:()=>ca,__wbg_measure_fb7825c11612c823:()=>da,__wbg_msCrypto_a61aeb35a24c1329:()=>wa,__wbg_new_405e22f390576ce2:()=>ba,__wbg_new_5e0be73521bc8c17:()=>ua,__wbg_new_78feb108b6472713:()=>pa,__wbg_new_8a6f238a6ece86ea:()=>ha,__wbg_new_a12002a7f91c75be:()=>fa,__wbg_newnoargs_105ed471475aaf50:()=>ma,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:()=>va,__wbg_newwithlength_a381634e90c276d4:()=>ya,__wbg_newwithlength_c4c419ef0bc8a1f8:()=>xa,__wbg_next_25feadfc0913fea9:()=>Sa,__wbg_next_6574e1a8a62d1055:()=>Ca,__wbg_node_905d3e251edff8a2:()=>Aa,__wbg_now_c8bdc8efc8c495eb:()=>Oa,__wbg_ownKeys_3930041068756f1f:()=>Ia,__wbg_process_dc0fbacc7c1c06f7:()=>Na,__wbg_push_737cfc8c1432c2c6:()=>Fa,__wbg_randomFillSync_ac0988aba3254290:()=>Da,__wbg_require_60cc747a6bc5215a:()=>La,__wbg_resolve_4851785c9c5f573d:()=>ka,__wbg_set_37837023f3d740e8:()=>Ea,__wbg_set_3f1d0b984ed272ed:()=>Ra,__wbg_set_65595bdd868b3009:()=>Ta,__wbg_set_8fc6bf8a5b1071d1:()=>Ja,__wbg_set_bb8cecf6a62b9f46:()=>Va,__wbg_set_wasm:()=>nn,__wbg_setindex_dcd71eabf405bde1:()=>Ua,__wbg_stack_0ed75d68575b0f3c:()=>Pa,__wbg_static_accessor_GLOBAL_88a902d13a557d07:()=>Ba,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:()=>Ma,__wbg_static_accessor_SELF_37c5d418e4bf5819:()=>za,__wbg_static_accessor_WINDOW_5de37043a91a9c40:()=>ja,__wbg_subarray_aa9065fa9dc5df96:()=>Wa,__wbg_then_44b73946d2fb3e7d:()=>Ha,__wbg_value_cd1ffa7b1ab794f1:()=>qa,__wbg_versions_c01dfd4722a88165:()=>$a,__wbg_versionvector_new:()=>Ka,__wbg_warn_90235b184e422485:()=>Ga,__wbindgen_as_number:()=>Qa,__wbindgen_bigint_from_i64:()=>Xa,__wbindgen_bigint_from_u64:()=>Ya,__wbindgen_bigint_get_as_i64:()=>Za,__wbindgen_boolean_get:()=>ei,__wbindgen_cb_drop:()=>ti,__wbindgen_closure_wrapper718:()=>ri,__wbindgen_closure_wrapper721:()=>_i,__wbindgen_debug_string:()=>oi,__wbindgen_error_new:()=>ni,__wbindgen_in:()=>si,__wbindgen_init_externref_table:()=>Q,__wbindgen_is_array:()=>ai,__wbindgen_is_bigint:()=>ii,__wbindgen_is_falsy:()=>li,__wbindgen_is_function:()=>gi,__wbindgen_is_null:()=>ci,__wbindgen_is_object:()=>di,__wbindgen_is_string:()=>wi,__wbindgen_is_undefined:()=>bi,__wbindgen_jsval_eq:()=>ui,__wbindgen_jsval_loose_eq:()=>pi,__wbindgen_memory:()=>hi,__wbindgen_number_get:()=>fi,__wbindgen_number_new:()=>mi,__wbindgen_rethrow:()=>vi,__wbindgen_string_get:()=>yi,__wbindgen_string_new:()=>xi,__wbindgen_throw:()=>Si,__wbindgen_typeof:()=>Ci,callPendingEvents:()=>so,decodeFrontiers:()=>Ti,decodeImportBlobMeta:()=>Pi,encodeFrontiers:()=>Bi,redactJsonUpdates:()=>Vi,run:()=>Mi,setDebug:()=>Ji},1),nn=function(_){r=_};var i=0,E=null;function C(){return(E===null||E.byteLength===0)&&(E=new Uint8Array(r.memory.buffer)),E}var R=new(typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder)("utf-8"),Ri=typeof R.encodeInto=="function"?function(_,e){return R.encodeInto(_,e)}:function(_,e){let t=R.encode(_);return e.set(t),{read:_.length,written:t.length}};function c(_,e,t){if(t===void 0){let g=R.encode(_),p=e(g.length,1)>>>0;return C().subarray(p,p+g.length).set(g),i=g.length,p}let o=_.length,s=e(o,1)>>>0,a=C(),l=0;for(;l<o;l++){let g=_.charCodeAt(l);if(g>127)break;a[s+l]=g}if(l!==o){l!==0&&(_=_.slice(l)),s=t(s,o,o=l+_.length*3,1)>>>0;let g=C().subarray(s+l,s+o),p=Ri(_,g);l+=p.written,s=t(s,o,l,1)>>>0}return i=l,s}var A=null;function b(){return(A===null||A.buffer.detached===!0||A.buffer.detached===void 0&&A.buffer!==r.memory.buffer)&&(A=new DataView(r.memory.buffer)),A}function S(_){let e=r.__externref_table_alloc();return r.__wbindgen_export_4.set(e,_),e}function u(_,e){try{return _.apply(this,e)}catch(t){let o=S(t);r.__wbindgen_exn_store(o)}}var vs=new(typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});vs.decode();function d(_,e){return _>>>=0,vs.decode(C().subarray(_,_+e))}function w(_){return _==null}var ys=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>{r.__wbindgen_export_6.get(_.dtor)(_.a,_.b)});function xs(_,e,t,o){let s={a:_,b:e,cnt:1,dtor:t},a=(...l)=>{s.cnt++;let g=s.a;s.a=0;try{return o(g,s.b,...l)}finally{--s.cnt===0?(r.__wbindgen_export_6.get(s.dtor)(g,s.b),ys.unregister(s)):s.a=g}};return a.original=s,ys.register(a,s,s),a}function Y(_){let e=typeof _;if(e=="number"||e=="boolean"||_==null)return`${_}`;if(e=="string")return`"${_}"`;if(e=="symbol"){let s=_.description;return s==null?"Symbol":`Symbol(${s})`}if(e=="function"){let s=_.name;return typeof s=="string"&&s.length>0?`Function(${s})`:"Function"}if(Array.isArray(_)){let s=_.length,a="[";s>0&&(a+=Y(_[0]));for(let l=1;l<s;l++)a+=", "+Y(_[l]);return a+="]",a}let t=/\[object ([^\]]+)\]/.exec(toString.call(_)),o;if(t&&t.length>1)o=t[1];else return toString.call(_);if(o=="Object")try{return"Object("+JSON.stringify(_)+")"}catch{return"Object"}return _ instanceof Error?`${_.name}: ${_.message}
|
|
2
|
+
${_.stack}`:o}function n(_){let e=r.__wbindgen_export_4.get(_);return r.__externref_table_dealloc(_),e}function O(_,e){if(!(_ instanceof e))throw Error(`expected instance of ${e.name}`)}function m(_,e){let t=e(_.length*1,1)>>>0;return C().set(_,t/1),i=_.length,t}function v(_,e){return _>>>=0,C().subarray(_/1,_/1+e)}function f(_,e){_>>>=0;let t=b(),o=[];for(let s=_;s<_+4*e;s+=4)o.push(r.__wbindgen_export_4.get(t.getUint32(s,!0)));return r.__externref_drop_slice(_,e),o}so=function(){r.callPendingEvents()};function Ti(_){let e=m(_,r.__wbindgen_malloc),t=i,o=r.decodeFrontiers(e,t);if(o[2])throw n(o[1]);return n(o[0])}function Ji(){r.setDebug()}function Vi(_,e){let t=r.redactJsonUpdates(_,e);if(t[2])throw n(t[1]);return n(t[0])}function Ui(){let _,e;try{let t=r.LORO_VERSION();return _=t[0],e=t[1],d(t[0],t[1])}finally{r.__wbindgen_free(_,e,1)}}function Pi(_,e){let t=m(_,r.__wbindgen_malloc),o=i,s=r.decodeImportBlobMeta(t,o,e);if(s[2])throw n(s[1]);return n(s[0])}function h(_,e){let t=e(_.length*4,4)>>>0;for(let o=0;o<_.length;o++){let s=S(_[o]);b().setUint32(t+4*o,s,!0)}return i=_.length,t}function Bi(_){let e=h(_,r.__wbindgen_malloc),t=i,o=r.encodeFrontiers(e,t);if(o[3])throw n(o[2]);var s=v(o[0],o[1]).slice();return r.__wbindgen_free(o[0],o[1]*1,1),s}function Mi(){r.run()}function zi(_,e,t){r.closure9_externref_shim(_,e,t)}function ji(_,e){r._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h423c5eefcad13156(_,e)}let Z,ee,te,re,_e,T,J,V,U,P,B,M,z,j,W,H,oe,F,ne,q,y;Z=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_awarenesswasm_free(_>>>0,1)),Yo=class{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),_}free(){let _=this.__destroy_into_raw();r.__wbg_awarenesswasm_free(_,0)}getAllStates(){let _=r.awarenesswasm_getAllStates(this.__wbg_ptr);if(_[2])throw n(_[1]);return n(_[0])}getTimestamp(_){let e=r.awarenesswasm_getTimestamp(this.__wbg_ptr,_);if(e[3])throw n(e[2]);return e[0]===0?void 0:e[1]}setLocalState(_){r.awarenesswasm_setLocalState(this.__wbg_ptr,_)}removeOutdated(){let _=r.awarenesswasm_removeOutdated(this.__wbg_ptr);var e=f(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*4,4),e}constructor(_,e){let t=r.awarenesswasm_new(_,e);if(t[2])throw n(t[1]);return this.__wbg_ptr=t[0]>>>0,Z.register(this,this.__wbg_ptr,this),this}peer(){return r.awarenesswasm_peer(this.__wbg_ptr)}apply(_){let e=m(_,r.__wbindgen_malloc),t=i,o=r.awarenesswasm_apply(this.__wbg_ptr,e,t);if(o[2])throw n(o[1]);return n(o[0])}peers(){let _=r.awarenesswasm_peers(this.__wbg_ptr);var e=f(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*4,4),e}encode(_){let e=r.awarenesswasm_encode(this.__wbg_ptr,_);if(e[3])throw n(e[2]);var t=v(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}length(){return r.awarenesswasm_length(this.__wbg_ptr)}isEmpty(){return r.awarenesswasm_isEmpty(this.__wbg_ptr)!==0}getState(_){let e=r.awarenesswasm_getState(this.__wbg_ptr,_);if(e[2])throw n(e[1]);return n(e[0])}encodeAll(){let _=r.awarenesswasm_encodeAll(this.__wbg_ptr);var e=v(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*1,1),e}},ee=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_changemodifier_free(_>>>0,1)),te=class X{static __wrap(e){e>>>=0;let t=Object.create(X.prototype);return t.__wbg_ptr=e,ee.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ee.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_changemodifier_free(e,0)}setMessage(e){let t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=i,s=r.changemodifier_setMessage(this.__wbg_ptr,t,o);return X.__wrap(s)}setTimestamp(e){let t=r.changemodifier_setTimestamp(this.__wbg_ptr,e);return X.__wrap(t)}},re=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_cursor_free(_>>>0,1)),x=class hs{static __wrap(e){e>>>=0;let t=Object.create(hs.prototype);return t.__wbg_ptr=e,re.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,re.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_cursor_free(e,0)}containerId(){return r.cursor_containerId(this.__wbg_ptr)}pos(){let e=r.cursor_pos(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}kind(){return r.cursor_kind(this.__wbg_ptr)}side(){return r.cursor_side(this.__wbg_ptr)}static decode(e){let t=m(e,r.__wbindgen_malloc),o=i,s=r.cursor_decode(t,o);if(s[2])throw n(s[1]);return hs.__wrap(s[0])}encode(){let e=r.cursor_encode(this.__wbg_ptr);var t=v(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}},_e=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ephemeralstorewasm_free(_>>>0,1)),F_=class{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,_e.unregister(this),_}free(){let _=this.__destroy_into_raw();r.__wbg_ephemeralstorewasm_free(_,0)}getAllStates(){let _=r.ephemeralstorewasm_getAllStates(this.__wbg_ptr);if(_[2])throw n(_[1]);return n(_[0])}removeOutdated(){r.ephemeralstorewasm_removeOutdated(this.__wbg_ptr)}subscribeLocalUpdates(_){return r.ephemeralstorewasm_subscribeLocalUpdates(this.__wbg_ptr,_)}get(_){let e=c(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=i;return r.ephemeralstorewasm_get(this.__wbg_ptr,e,t)}constructor(_){return this.__wbg_ptr=r.ephemeralstorewasm_new(_)>>>0,_e.register(this,this.__wbg_ptr,this),this}set(_,e){let t=c(_,r.__wbindgen_malloc,r.__wbindgen_realloc),o=i;r.ephemeralstorewasm_set(this.__wbg_ptr,t,o,e)}keys(){let _=r.ephemeralstorewasm_keys(this.__wbg_ptr);var e=f(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*4,4),e}apply(_){let e=m(_,r.__wbindgen_malloc),t=i,o=r.ephemeralstorewasm_apply(this.__wbg_ptr,e,t);if(o[1])throw n(o[0])}delete(_){let e=c(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=i;r.ephemeralstorewasm_delete(this.__wbg_ptr,e,t)}encode(_){let e=c(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=i,o=r.ephemeralstorewasm_encode(this.__wbg_ptr,e,t);var s=v(o[0],o[1]).slice();return r.__wbindgen_free(o[0],o[1]*1,1),s}isEmpty(){return r.ephemeralstorewasm_isEmpty(this.__wbg_ptr)!==0}encodeAll(){let _=r.ephemeralstorewasm_encodeAll(this.__wbg_ptr);var e=v(_[0],_[1]).slice();return r.__wbindgen_free(_[0],_[1]*1,1),e}subscribe(_){return r.ephemeralstorewasm_subscribe(this.__wbg_ptr,_)}},T=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorocounter_free(_>>>0,1)),J=class Ni{static __wrap(e){e>>>=0;let t=Object.create(Ni.prototype);return t.__wbg_ptr=e,T.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,T.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorocounter_free(e,0)}isAttached(){return r.lorocounter_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.lorocounter_getAttached(this.__wbg_ptr)}getShallowValue(){let e=r.lorocounter_getShallowValue(this.__wbg_ptr);if(e[2])throw n(e[1]);return e[0]}get id(){return r.lorocounter_id(this.__wbg_ptr)}constructor(){return this.__wbg_ptr=r.lorocounter_new()>>>0,T.register(this,this.__wbg_ptr,this),this}kind(){return r.lorocounter_kind(this.__wbg_ptr)}parent(){return r.lorocounter_parent(this.__wbg_ptr)}toJSON(){let e=r.lorocounter_toJSON(this.__wbg_ptr);if(e[2])throw n(e[1]);return e[0]}decrement(e){let t=r.lorocounter_decrement(this.__wbg_ptr,e);if(t[1])throw n(t[0])}get value(){let e=r.lorocounter_value(this.__wbg_ptr);if(e[2])throw n(e[1]);return e[0]}increment(e){let t=r.lorocounter_increment(this.__wbg_ptr,e);if(t[1])throw n(t[0])}subscribe(e){let t=r.lorocounter_subscribe(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}},V=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorodoc_free(_>>>0,1)),G=class L{static __wrap(e){e>>>=0;let t=Object.create(L.prototype);return t.__wbg_ptr=e,V.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorodoc_free(e,0)}applyDiff(e){let t=r.lorodoc_applyDiff(this.__wbg_ptr,e);if(t[1])throw n(t[0])}isShallow(){return r.lorodoc_isShallow(this.__wbg_ptr)!==0}changeCount(){return r.lorodoc_changeCount(this.__wbg_ptr)>>>0}getByPath(e){let t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=i;return r.lorodoc_getByPath(this.__wbg_ptr,t,o)}getCounter(e){let t=r.lorodoc_getCounter(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return J.__wrap(t[0])}isDetached(){return r.lorodoc_isDetached(this.__wbg_ptr)!==0}get peerIdStr(){return r.lorodoc_peerIdStr(this.__wbg_ptr)}setPeerId(e){let t=r.lorodoc_setPeerId(this.__wbg_ptr,e);if(t[1])throw n(t[0])}getCursorPos(e){O(e,x);let t=r.lorodoc_getCursorPos(this.__wbg_ptr,e.__wbg_ptr);if(t[2])throw n(t[1]);return n(t[0])}hasContainer(e){return r.lorodoc_hasContainer(this.__wbg_ptr,e)!==0}importBatch(e){let t=r.lorodoc_importBatch(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}cmpFrontiers(e,t){let o=h(e,r.__wbindgen_malloc),s=i,a=h(t,r.__wbindgen_malloc),l=i,g=r.lorodoc_cmpFrontiers(this.__wbg_ptr,o,s,a,l);if(g[2])throw n(g[1]);return n(g[0])}debugHistory(){r.lorodoc_debugHistory(this.__wbg_ptr)}static fromSnapshot(e){let t=m(e,r.__wbindgen_malloc),o=i,s=r.lorodoc_fromSnapshot(t,o);if(s[2])throw n(s[1]);return L.__wrap(s[0])}getChangeAt(e){let t=r.lorodoc_getChangeAt(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}oplogVersion(){let e=r.lorodoc_oplogVersion(this.__wbg_ptr);return y.__wrap(e)}getMovableList(e){let t=r.lorodoc_getMovableList(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return z.__wrap(t[0])}frontiersToVV(e){let t=h(e,r.__wbindgen_malloc),o=i,s=r.lorodoc_frontiersToVV(this.__wbg_ptr,t,o);if(s[2])throw n(s[1]);return y.__wrap(s[0])}getAllChanges(){return r.lorodoc_getAllChanges(this.__wbg_ptr)}oplogFrontiers(){let e=r.lorodoc_oplogFrontiers(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}vvToFrontiers(e){O(e,y);let t=r.lorodoc_vvToFrontiers(this.__wbg_ptr,e.__wbg_ptr);if(t[2])throw n(t[1]);return n(t[0])}shallowSinceVV(){let e=r.lorodoc_shallowSinceVV(this.__wbg_ptr);return y.__wrap(e)}configTextStyle(e){let t=r.lorodoc_configTextStyle(this.__wbg_ptr,e);if(t[1])throw n(t[0])}getOpsInChange(e){let t=r.lorodoc_getOpsInChange(this.__wbg_ptr,e);if(t[3])throw n(t[2]);var o=f(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*4,4),o}getShallowValue(){let e=r.lorodoc_getShallowValue(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}checkoutToLatest(){let e=r.lorodoc_checkoutToLatest(this.__wbg_ptr);if(e[1])throw n(e[0])}cmpWithFrontiers(e){let t=h(e,r.__wbindgen_malloc),o=i,s=r.lorodoc_cmpWithFrontiers(this.__wbg_ptr,t,o);if(s[2])throw n(s[1]);return s[0]}exportJsonInIdSpan(e){let t=r.lorodoc_exportJsonInIdSpan(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}subscribeJsonpath(e,t){let o=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i,a=r.lorodoc_subscribeJsonpath(this.__wbg_ptr,o,s,t);if(a[2])throw n(a[1]);return n(a[0])}deleteRootContainer(e){let t=r.lorodoc_deleteRootContainer(this.__wbg_ptr,e);if(t[1])throw n(t[0])}exportJsonUpdates(e,t,o){let s=r.lorodoc_exportJsonUpdates(this.__wbg_ptr,e,t,w(o)?16777215:o?1:0);if(s[2])throw n(s[1]);return n(s[0])}getContainerById(e){let t=r.lorodoc_getContainerById(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}getPendingTxnLength(){return r.lorodoc_getPendingTxnLength(this.__wbg_ptr)>>>0}importJsonUpdates(e){let t=r.lorodoc_importJsonUpdates(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}importUpdateBatch(e){let t=r.lorodoc_importUpdateBatch(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}setDetachedEditing(e){r.lorodoc_setDetachedEditing(this.__wbg_ptr,e)}setRecordTimestamp(e){r.lorodoc_setRecordTimestamp(this.__wbg_ptr,e)}subscribePreCommit(e){return r.lorodoc_subscribePreCommit(this.__wbg_ptr,e)}findIdSpansBetween(e,t){let o=h(e,r.__wbindgen_malloc),s=i,a=h(t,r.__wbindgen_malloc),l=i,g=r.lorodoc_findIdSpansBetween(this.__wbg_ptr,o,s,a,l);if(g[2])throw n(g[1]);return n(g[0])}getChangeAtLamport(e,t){let o=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i,a=r.lorodoc_getChangeAtLamport(this.__wbg_ptr,o,s,t);if(a[2])throw n(a[1]);return n(a[0])}getPathToContainer(e){let t=r.lorodoc_getPathToContainer(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}getChangedContainersIn(e,t){let o=r.lorodoc_getChangedContainersIn(this.__wbg_ptr,e,t);if(o[3])throw n(o[2]);var s=f(o[0],o[1]).slice();return r.__wbindgen_free(o[0],o[1]*4,4),s}getDeepValueWithID(){return r.lorodoc_getDeepValueWithID(this.__wbg_ptr)}setNextCommitOrigin(e){let t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=i;r.lorodoc_setNextCommitOrigin(this.__wbg_ptr,t,o)}getUncommittedOpsAsJson(){let e=r.lorodoc_getUncommittedOpsAsJson(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}setNextCommitMessage(e){let t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=i;r.lorodoc_setNextCommitMessage(this.__wbg_ptr,t,o)}setNextCommitOptions(e){let t=r.lorodoc_setNextCommitOptions(this.__wbg_ptr,e);if(t[1])throw n(t[0])}shallowSinceFrontiers(){let e=r.lorodoc_shallowSinceFrontiers(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}subscribeLocalUpdates(e){return r.lorodoc_subscribeLocalUpdates(this.__wbg_ptr,e)}travelChangeAncestors(e,t){let o=h(e,r.__wbindgen_malloc),s=i,a=r.lorodoc_travelChangeAncestors(this.__wbg_ptr,o,s,t);if(a[1])throw n(a[0])}clearNextCommitOptions(){r.lorodoc_clearNextCommitOptions(this.__wbg_ptr)}configDefaultTextStyle(e){let t=r.lorodoc_configDefaultTextStyle(this.__wbg_ptr,e);if(t[1])throw n(t[0])}setChangeMergeInterval(e){r.lorodoc_setChangeMergeInterval(this.__wbg_ptr,e)}setNextCommitTimestamp(e){r.lorodoc_setNextCommitTimestamp(this.__wbg_ptr,e)}setHideEmptyRootContainers(e){let t=r.lorodoc_setHideEmptyRootContainers(this.__wbg_ptr,e);if(t[1])throw n(t[0])}isDetachedEditingEnabled(){return r.lorodoc_isDetachedEditingEnabled(this.__wbg_ptr)!==0}subscribeFirstCommitFromPeer(e){return r.lorodoc_subscribeFirstCommitFromPeer(this.__wbg_ptr,e)}constructor(){return this.__wbg_ptr=r.lorodoc_new()>>>0,V.register(this,this.__wbg_ptr,this),this}diff(e,t,o){let s=h(e,r.__wbindgen_malloc),a=i,l=h(t,r.__wbindgen_malloc),g=i,p=r.lorodoc_diff(this.__wbg_ptr,s,a,l,g,w(o)?16777215:o?1:0);if(p[2])throw n(p[1]);return n(p[0])}fork(){let e=r.lorodoc_fork(this.__wbg_ptr);return L.__wrap(e)}attach(){r.lorodoc_attach(this.__wbg_ptr)}commit(e){let t=r.lorodoc_commit(this.__wbg_ptr,w(e)?0:S(e));if(t[1])throw n(t[0])}detach(){r.lorodoc_detach(this.__wbg_ptr)}export(e){let t=r.lorodoc_export(this.__wbg_ptr,e);if(t[3])throw n(t[2]);var o=v(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*1,1),o}import(e){let t=m(e,r.__wbindgen_malloc),o=i,s=r.lorodoc_import(this.__wbg_ptr,t,o);if(s[2])throw n(s[1]);return n(s[0])}forkAt(e){let t=h(e,r.__wbindgen_malloc),o=i,s=r.lorodoc_forkAt(this.__wbg_ptr,t,o);if(s[2])throw n(s[1]);return L.__wrap(s[0])}getMap(e){let t=r.lorodoc_getMap(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return I.__wrap(t[0])}opCount(){return r.lorodoc_opCount(this.__wbg_ptr)>>>0}get peerId(){let e=r.lorodoc_peerId(this.__wbg_ptr);return BigInt.asUintN(64,e)}toJSON(){let e=r.lorodoc_toJSON(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}version(){let e=r.lorodoc_version(this.__wbg_ptr);return y.__wrap(e)}checkout(e){let t=h(e,r.__wbindgen_malloc),o=i,s=r.lorodoc_checkout(this.__wbg_ptr,t,o);if(s[1])throw n(s[0])}getList(e){let t=r.lorodoc_getList(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return P.__wrap(t[0])}getText(e){let t=r.lorodoc_getText(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return D.__wrap(t[0])}getTree(e){let t=r.lorodoc_getTree(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return H.__wrap(t[0])}frontiers(){let e=r.lorodoc_frontiers(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}JSONPath(e){let t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=i,s=r.lorodoc_JSONPath(this.__wbg_ptr,t,o);if(s[2])throw n(s[1]);return n(s[0])}revertTo(e){let t=h(e,r.__wbindgen_malloc),o=i,s=r.lorodoc_revertTo(this.__wbg_ptr,t,o);if(s[1])throw n(s[0])}subscribe(e){return r.lorodoc_subscribe(this.__wbg_ptr,e)}},U=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorolist_free(_>>>0,1)),P=class Fi{static __wrap(e){e>>>=0;let t=Object.create(Fi.prototype);return t.__wbg_ptr=e,U.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorolist_free(e,0)}isAttached(){return r.lorolist_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.lorolist_getAttached(this.__wbg_ptr)}pushContainer(e){let t=r.lorolist_pushContainer(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}insertContainer(e,t){let o=r.lorolist_insertContainer(this.__wbg_ptr,e,t);if(o[2])throw n(o[1]);return n(o[0])}getShallowValue(){return r.lorolist_getShallowValue(this.__wbg_ptr)}get id(){return r.lorolist_id(this.__wbg_ptr)}get(e){return r.lorolist_get(this.__wbg_ptr,e)}constructor(){return this.__wbg_ptr=r.lorolist_new()>>>0,U.register(this,this.__wbg_ptr,this),this}pop(){let e=r.lorolist_pop(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}kind(){return r.lorolist_kind(this.__wbg_ptr)}push(e){let t=r.lorolist_push(this.__wbg_ptr,e);if(t[1])throw n(t[0])}clear(){let e=r.lorolist_clear(this.__wbg_ptr);if(e[1])throw n(e[0])}delete(e,t){let o=r.lorolist_delete(this.__wbg_ptr,e,t);if(o[1])throw n(o[0])}insert(e,t){let o=r.lorolist_insert(this.__wbg_ptr,e,t);if(o[1])throw n(o[0])}get length(){return r.lorolist_length(this.__wbg_ptr)>>>0}parent(){return r.lorolist_parent(this.__wbg_ptr)}getIdAt(e){let t=r.lorolist_getIdAt(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}toJSON(){return r.lorolist_toJSON(this.__wbg_ptr)}toArray(){let e=r.lorolist_toArray(this.__wbg_ptr);var t=f(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}getCursor(e,t){let o=r.lorolist_getCursor(this.__wbg_ptr,e,t);return o===0?void 0:x.__wrap(o)}isDeleted(){return r.lorolist_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.lorolist_subscribe(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}},B=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_loromap_free(_>>>0,1)),I=class Di{static __wrap(e){e>>>=0;let t=Object.create(Di.prototype);return t.__wbg_ptr=e,B.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,B.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_loromap_free(e,0)}isAttached(){return r.loromap_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.loromap_getAttached(this.__wbg_ptr)}getLastEditor(e){let t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=i;return r.loromap_getLastEditor(this.__wbg_ptr,t,o)}setContainer(e,t){let o=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i,a=r.loromap_setContainer(this.__wbg_ptr,o,s,t);if(a[2])throw n(a[1]);return n(a[0])}getShallowValue(){return r.loromap_getShallowValue(this.__wbg_ptr)}getOrCreateContainer(e,t){let o=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i,a=r.loromap_getOrCreateContainer(this.__wbg_ptr,o,s,t);if(a[2])throw n(a[1]);return n(a[0])}get id(){return r.loromap_id(this.__wbg_ptr)}get(e){let t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=i;return r.loromap_get(this.__wbg_ptr,t,o)}constructor(){return this.__wbg_ptr=r.loromap_new()>>>0,B.register(this,this.__wbg_ptr,this),this}keys(){let e=r.loromap_keys(this.__wbg_ptr);var t=f(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}kind(){return r.loromap_kind(this.__wbg_ptr)}get size(){return r.loromap_size(this.__wbg_ptr)>>>0}clear(){let e=r.loromap_clear(this.__wbg_ptr);if(e[1])throw n(e[0])}delete(e){let t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=i,s=r.loromap_delete(this.__wbg_ptr,t,o);if(s[1])throw n(s[0])}set(e,t){let o=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i,a=r.loromap_set(this.__wbg_ptr,o,s,t);if(a[1])throw n(a[0])}parent(){return r.loromap_parent(this.__wbg_ptr)}values(){let e=r.loromap_values(this.__wbg_ptr);var t=f(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}entries(){let e=r.loromap_entries(this.__wbg_ptr);var t=f(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}toJSON(){return r.loromap_toJSON(this.__wbg_ptr)}isDeleted(){return r.loromap_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.loromap_subscribe(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}},M=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_loromovablelist_free(_>>>0,1)),z=class Li{static __wrap(e){e>>>=0;let t=Object.create(Li.prototype);return t.__wbg_ptr=e,M.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_loromovablelist_free(e,0)}isAttached(){return r.loromovablelist_isAttached(this.__wbg_ptr)!==0}getCreatorAt(e){return r.loromovablelist_getCreatorAt(this.__wbg_ptr,e)}getAttached(){return r.loromovablelist_getAttached(this.__wbg_ptr)}setContainer(e,t){let o=r.loromovablelist_setContainer(this.__wbg_ptr,e,t);if(o[2])throw n(o[1]);return n(o[0])}getLastMoverAt(e){return r.loromovablelist_getLastMoverAt(this.__wbg_ptr,e)}pushContainer(e){let t=r.loromovablelist_pushContainer(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}getLastEditorAt(e){return r.loromovablelist_getLastEditorAt(this.__wbg_ptr,e)}insertContainer(e,t){let o=r.loromovablelist_insertContainer(this.__wbg_ptr,e,t);if(o[2])throw n(o[1]);return n(o[0])}getShallowValue(){return r.loromovablelist_getShallowValue(this.__wbg_ptr)}get id(){return r.loromovablelist_id(this.__wbg_ptr)}get(e){return r.loromovablelist_get(this.__wbg_ptr,e)}move(e,t){let o=r.loromovablelist_move(this.__wbg_ptr,e,t);if(o[1])throw n(o[0])}constructor(){return this.__wbg_ptr=r.loromovablelist_new()>>>0,M.register(this,this.__wbg_ptr,this),this}pop(){let e=r.loromovablelist_pop(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}set(e,t){let o=r.loromovablelist_set(this.__wbg_ptr,e,t);if(o[1])throw n(o[0])}kind(){return r.loromovablelist_kind(this.__wbg_ptr)}push(e){let t=r.loromovablelist_push(this.__wbg_ptr,e);if(t[1])throw n(t[0])}clear(){let e=r.loromovablelist_clear(this.__wbg_ptr);if(e[1])throw n(e[0])}delete(e,t){let o=r.loromovablelist_delete(this.__wbg_ptr,e,t);if(o[1])throw n(o[0])}insert(e,t){let o=r.loromovablelist_insert(this.__wbg_ptr,e,t);if(o[1])throw n(o[0])}get length(){return r.loromovablelist_length(this.__wbg_ptr)>>>0}parent(){return r.loromovablelist_parent(this.__wbg_ptr)}toJSON(){return r.loromovablelist_toJSON(this.__wbg_ptr)}toArray(){let e=r.loromovablelist_toArray(this.__wbg_ptr);var t=f(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}getCursor(e,t){let o=r.loromovablelist_getCursor(this.__wbg_ptr,e,t);return o===0?void 0:x.__wrap(o)}isDeleted(){return r.loromovablelist_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.loromovablelist_subscribe(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}},j=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorotext_free(_>>>0,1)),D=class ki{static __wrap(e){e>>>=0;let t=Object.create(ki.prototype);return t.__wbg_ptr=e,j.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,j.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorotext_free(e,0)}applyDelta(e){let t=r.lorotext_applyDelta(this.__wbg_ptr,e);if(t[1])throw n(t[0])}convertPos(e,t,o){let s=c(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=i,l=c(o,r.__wbindgen_malloc,r.__wbindgen_realloc),g=i;return r.lorotext_convertPos(this.__wbg_ptr,e,s,a,l,g)}deleteUtf8(e,t){let o=r.lorotext_deleteUtf8(this.__wbg_ptr,e,t);if(o[1])throw n(o[0])}getEditorOf(e){return r.lorotext_getEditorOf(this.__wbg_ptr,e)}insertUtf8(e,t){let o=c(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i,a=r.lorotext_insertUtf8(this.__wbg_ptr,e,o,s);if(a[1])throw n(a[0])}isAttached(){return r.lorotext_isAttached(this.__wbg_ptr)!==0}sliceDelta(e,t){let o=r.lorotext_sliceDelta(this.__wbg_ptr,e,t);if(o[2])throw n(o[1]);return n(o[0])}getAttached(){return r.lorotext_getAttached(this.__wbg_ptr)}updateByLine(e,t){let o=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i,a=r.lorotext_updateByLine(this.__wbg_ptr,o,s,t);if(a[1])throw n(a[0])}sliceDeltaUtf8(e,t){let o=r.lorotext_sliceDeltaUtf8(this.__wbg_ptr,e,t);if(o[2])throw n(o[1]);return n(o[0])}getShallowValue(){let e,t;try{let o=r.lorotext_getShallowValue(this.__wbg_ptr);return e=o[0],t=o[1],d(o[0],o[1])}finally{r.__wbindgen_free(e,t,1)}}get id(){return r.lorotext_id(this.__wbg_ptr)}constructor(){return this.__wbg_ptr=r.lorotext_new()>>>0,j.register(this,this.__wbg_ptr,this),this}iter(e){let t=r.lorotext_iter(this.__wbg_ptr,e);if(t[1])throw n(t[0])}kind(){return r.lorotext_kind(this.__wbg_ptr)}mark(e,t,o){let s=c(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=i,l=r.lorotext_mark(this.__wbg_ptr,e,s,a,o);if(l[1])throw n(l[0])}push(e){let t=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=i,s=r.lorotext_push(this.__wbg_ptr,t,o);if(s[1])throw n(s[0])}slice(e,t){let o,s;try{let g=r.lorotext_slice(this.__wbg_ptr,e,t);var a=g[0],l=g[1];if(g[3])throw a=0,l=0,n(g[2]);return o=a,s=l,d(a,l)}finally{r.__wbindgen_free(o,s,1)}}delete(e,t){let o=r.lorotext_delete(this.__wbg_ptr,e,t);if(o[1])throw n(o[0])}insert(e,t){let o=c(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i,a=r.lorotext_insert(this.__wbg_ptr,e,o,s);if(a[1])throw n(a[0])}get length(){return r.lorotext_length(this.__wbg_ptr)>>>0}parent(){return r.lorotext_parent(this.__wbg_ptr)}splice(e,t,o){let s,a;try{let p=c(o,r.__wbindgen_malloc,r.__wbindgen_realloc),$=i,K=r.lorotext_splice(this.__wbg_ptr,e,t,p,$);var l=K[0],g=K[1];if(K[3])throw l=0,g=0,n(K[2]);return s=l,a=g,d(l,g)}finally{r.__wbindgen_free(s,a,1)}}unmark(e,t){let o=c(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i,a=r.lorotext_unmark(this.__wbg_ptr,e,o,s);if(a[1])throw n(a[0])}update(e,t){let o=c(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i,a=r.lorotext_update(this.__wbg_ptr,o,s,t);if(a[1])throw n(a[0])}charAt(e){let t=r.lorotext_charAt(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return String.fromCodePoint(t[0])}toJSON(){return r.lorotext_toJSON(this.__wbg_ptr)}toDelta(){let e=r.lorotext_toDelta(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}getCursor(e,t){let o=r.lorotext_getCursor(this.__wbg_ptr,e,t);return o===0?void 0:x.__wrap(o)}isDeleted(){return r.lorotext_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.lorotext_subscribe(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}toString(){let e,t;try{let o=r.lorotext_toString(this.__wbg_ptr);return e=o[0],t=o[1],d(o[0],o[1])}finally{r.__wbindgen_free(e,t,1)}}},W=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorotree_free(_>>>0,1)),H=class Ei{static __wrap(e){e>>>=0;let t=Object.create(Ei.prototype);return t.__wbg_ptr=e,W.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorotree_free(e,0)}createNode(e,t){let o=r.lorotree_createNode(this.__wbg_ptr,e,w(t)?4294967297:t>>>0);if(o[2])throw n(o[1]);return F.__wrap(o[0])}isAttached(){return r.lorotree_isAttached(this.__wbg_ptr)!==0}getAttached(){return r.lorotree_getAttached(this.__wbg_ptr)}getNodeByID(e){let t=r.lorotree_getNodeByID(this.__wbg_ptr,e);return t===0?void 0:F.__wrap(t)}isNodeDeleted(e){let t=r.lorotree_isNodeDeleted(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return t[0]!==0}getShallowValue(){return r.lorotree_getShallowValue(this.__wbg_ptr)}enableFractionalIndex(e){r.lorotree_enableFractionalIndex(this.__wbg_ptr,e)}disableFractionalIndex(){r.lorotree_disableFractionalIndex(this.__wbg_ptr)}isFractionalIndexEnabled(){return r.lorotree_isFractionalIndexEnabled(this.__wbg_ptr)!==0}get id(){return r.lorotree_id(this.__wbg_ptr)}move(e,t,o){let s=r.lorotree_move(this.__wbg_ptr,e,t,w(o)?4294967297:o>>>0);if(s[1])throw n(s[0])}constructor(){return this.__wbg_ptr=r.lorotree_new()>>>0,W.register(this,this.__wbg_ptr,this),this}kind(){return r.lorotree_kind(this.__wbg_ptr)}nodes(){let e=r.lorotree_nodes(this.__wbg_ptr);var t=f(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}roots(){let e=r.lorotree_roots(this.__wbg_ptr);var t=f(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}delete(e){let t=r.lorotree_delete(this.__wbg_ptr,e);if(t[1])throw n(t[0])}parent(){return r.lorotree_parent(this.__wbg_ptr)}toJSON(){return r.lorotree_toJSON(this.__wbg_ptr)}has(e){return r.lorotree_has(this.__wbg_ptr,e)!==0}toArray(){let e=r.lorotree_toArray(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}getNodes(e){let t=r.lorotree_getNodes(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}isDeleted(){return r.lorotree_isDeleted(this.__wbg_ptr)!==0}subscribe(e){let t=r.lorotree_subscribe(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return n(t[0])}},oe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_lorotreenode_free(_>>>0,1)),F=class N{static __wrap(e){e>>>=0;let t=Object.create(N.prototype);return t.__wbg_ptr=e,oe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,oe.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_lorotreenode_free(e,0)}creationId(){let e=r.lorotreenode_creationId(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}isDeleted(){let e=r.lorotreenode_isDeleted(this.__wbg_ptr);if(e[2])throw n(e[1]);return e[0]!==0}moveBefore(e){O(e,N);let t=r.lorotreenode_moveBefore(this.__wbg_ptr,e.__wbg_ptr);if(t[1])throw n(t[0])}createNode(e){let t=r.lorotreenode_createNode(this.__wbg_ptr,w(e)?4294967297:e>>>0);if(t[2])throw n(t[1]);return N.__wrap(t[0])}getLastMoveId(){let e=r.lorotreenode_getLastMoveId(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}toJSON(){let e=r.lorotreenode_toJSON(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}fractionalIndex(){let e=r.lorotreenode_fractionalIndex(this.__wbg_ptr);if(e[2])throw n(e[1]);return n(e[0])}__getClassname(){let e,t;try{let o=r.lorotreenode___getClassname(this.__wbg_ptr);return e=o[0],t=o[1],d(o[0],o[1])}finally{r.__wbindgen_free(e,t,1)}}get id(){return r.lorotreenode_id(this.__wbg_ptr)}move(e,t){let o=r.lorotreenode_move(this.__wbg_ptr,e,w(t)?4294967297:t>>>0);if(o[1])throw n(o[0])}get data(){let e=r.lorotreenode_data(this.__wbg_ptr);if(e[2])throw n(e[1]);return I.__wrap(e[0])}index(){let e=r.lorotreenode_index(this.__wbg_ptr);if(e[2])throw n(e[1]);return e[0]===4294967297?void 0:e[0]}parent(){let e=r.lorotreenode_parent(this.__wbg_ptr);if(e[2])throw n(e[1]);return e[0]===0?void 0:N.__wrap(e[0])}creator(){return r.lorotreenode_creator(this.__wbg_ptr)}children(){return r.lorotreenode_children(this.__wbg_ptr)}moveAfter(e){O(e,N);let t=r.lorotreenode_moveAfter(this.__wbg_ptr,e.__wbg_ptr);if(t[1])throw n(t[0])}},ne=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_undomanager_free(_>>>0,1)),K_=class{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),_}free(){let _=this.__destroy_into_raw();r.__wbg_undomanager_free(_,0)}groupStart(){let _=r.undomanager_groupStart(this.__wbg_ptr);if(_[1])throw n(_[0])}topRedoValue(){return r.undomanager_topRedoValue(this.__wbg_ptr)}topUndoValue(){return r.undomanager_topUndoValue(this.__wbg_ptr)}setMaxUndoSteps(_){r.undomanager_setMaxUndoSteps(this.__wbg_ptr,_)}setMergeInterval(_){r.undomanager_setMergeInterval(this.__wbg_ptr,_)}addExcludeOriginPrefix(_){let e=c(_,r.__wbindgen_malloc,r.__wbindgen_realloc),t=i;r.undomanager_addExcludeOriginPrefix(this.__wbg_ptr,e,t)}constructor(_,e){return O(_,G),this.__wbg_ptr=r.undomanager_new(_.__wbg_ptr,e)>>>0,ne.register(this,this.__wbg_ptr,this),this}peer(){return r.undomanager_peer(this.__wbg_ptr)}redo(){let _=r.undomanager_redo(this.__wbg_ptr);if(_[2])throw n(_[1]);return _[0]!==0}undo(){let _=r.undomanager_undo(this.__wbg_ptr);if(_[2])throw n(_[1]);return _[0]!==0}clear(){r.undomanager_clear(this.__wbg_ptr)}canRedo(){return r.undomanager_canRedo(this.__wbg_ptr)!==0}canUndo(){return r.undomanager_canUndo(this.__wbg_ptr)!==0}groupEnd(){r.undomanager_groupEnd(this.__wbg_ptr)}setOnPop(_){r.undomanager_setOnPop(this.__wbg_ptr,_)}setOnPush(_){r.undomanager_setOnPush(this.__wbg_ptr,_)}},q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_versionvector_free(_>>>0,1)),y=class k{static __wrap(e){e>>>=0;let t=Object.create(k.prototype);return t.__wbg_ptr=e,q.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,q.unregister(this),e}free(){let e=this.__destroy_into_raw();r.__wbg_versionvector_free(e,0)}get(e){let t=r.versionvector_get(this.__wbg_ptr,e);if(t[2])throw n(t[1]);return t[0]===4294967297?void 0:t[0]}constructor(e){let t=r.versionvector_new(e);if(t[2])throw n(t[1]);return this.__wbg_ptr=t[0]>>>0,q.register(this,this.__wbg_ptr,this),this}static decode(e){let t=m(e,r.__wbindgen_malloc),o=i,s=r.versionvector_decode(t,o);if(s[2])throw n(s[1]);return k.__wrap(s[0])}encode(){let e=r.versionvector_encode(this.__wbg_ptr);var t=v(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}length(){return r.versionvector_length(this.__wbg_ptr)>>>0}remove(e){let t=r.versionvector_remove(this.__wbg_ptr,e);if(t[1])throw n(t[0])}setEnd(e){let t=r.versionvector_setEnd(this.__wbg_ptr,e);if(t[1])throw n(t[0])}compare(e){O(e,k);let t=r.versionvector_compare(this.__wbg_ptr,e.__wbg_ptr);return t===4294967297?void 0:t}setLast(e){let t=r.versionvector_setLast(this.__wbg_ptr,e);if(t[1])throw n(t[0])}toJSON(){return r.versionvector_toJSON(this.__wbg_ptr)}static parseJSON(e){let t=r.versionvector_parseJSON(e);if(t[2])throw n(t[1]);return k.__wrap(t[0])}};function Ss(_,e){let t=c(String(e),r.__wbindgen_malloc,r.__wbindgen_realloc),o=i;b().setInt32(_+4,o,!0),b().setInt32(_+0,t,!0)}function Cs(){return u(function(_,e,t){return _.apply(e,t)},arguments)}function As(){return u(function(_,e,t){return Reflect.apply(_,e,t)},arguments)}function Os(_){return _.buffer}function Is(){return u(function(_,e){return _.call(e)},arguments)}function Ns(){return u(function(_,e,t){return _.call(e,t)},arguments)}function Fs(){return u(function(_,e,t,o){return _.call(e,t,o)},arguments)}function Ds(){return u(function(_,e,t,o,s){return _.call(e,t,o,s)},arguments)}function Ls(_){return te.__wrap(_)}function ks(_){return _.crypto}function Es(_){return x.__wrap(_)}function Rs(_){return _.done}function Ts(_){return Object.entries(_)}function Js(_){return _.entries()}function Vs(_,e){console.error(d(_,e))}function Us(_,e){let t,o;try{t=_,o=e,console.error(d(_,e))}finally{r.__wbindgen_free(t,o,1)}}function Ps(_){return Array.from(_)}function Bs(_){return Object.getOwnPropertySymbols(_)}function Ms(){return u(function(_,e){_.getRandomValues(e)},arguments)}function zs(){return u(function(_,e){return Reflect.get(_,e)},arguments)}function js(_,e){return _[e>>>0]}function Ws(_,e){return _[e>>>0]}function Hs(_,e){return _[e]}function qs(_){let e;try{e=_ instanceof ArrayBuffer}catch{e=!1}return e}function $s(_){let e;try{e=_ instanceof Map}catch{e=!1}return e}function Ks(_){let e;try{e=_ instanceof Object}catch{e=!1}return e}function Gs(_){let e;try{e=_ instanceof Uint8Array}catch{e=!1}return e}function Qs(_){return Array.isArray(_)}function Xs(_){return Number.isSafeInteger(_)}function Ys(){return Symbol.iterator}function Zs(_){return _.length}function ea(_){return _.length}function ta(_,e){console.log(d(_,e))}function ra(_,e,t,o,s,a,l,g){let p,$;try{p=_,$=e,console.log(d(_,e),d(t,o),d(s,a),d(l,g))}finally{r.__wbindgen_free(p,$,1)}}function _a(_,e){let t,o;try{t=_,o=e,console.log(d(_,e))}finally{r.__wbindgen_free(t,o,1)}}function oa(_){return J.__wrap(_)}function na(_){return P.__wrap(_)}function sa(_){return I.__wrap(_)}function aa(_){return z.__wrap(_)}function ia(_){return D.__wrap(_)}function la(_){return H.__wrap(_)}function ga(_){return F.__wrap(_)}function ca(_,e){performance.mark(d(_,e))}function da(){return u(function(_,e,t,o){let s,a,l,g;try{s=_,a=e,l=t,g=o,performance.measure(d(_,e),d(t,o))}finally{r.__wbindgen_free(s,a,1),r.__wbindgen_free(l,g,1)}},arguments)}function wa(_){return _.msCrypto}function ba(){return{}}function ua(){return new Map}function pa(){return[]}function ha(){return Error()}function fa(_){return new Uint8Array(_)}function ma(_,e){return Function(d(_,e))}function va(_,e,t){return new Uint8Array(_,e>>>0,t>>>0)}function ya(_){return new Uint8Array(_>>>0)}function xa(_){return Array(_>>>0)}function Sa(_){return _.next}function Ca(){return u(function(_){return _.next()},arguments)}function Aa(_){return _.node}function Oa(){return Date.now()}function Ia(){return u(function(_){return Reflect.ownKeys(_)},arguments)}function Na(_){return _.process}function Fa(_,e){return _.push(e)}function Da(){return u(function(_,e){_.randomFillSync(e)},arguments)}function La(){return u(function(){return module.require},arguments)}function ka(_){return Promise.resolve(_)}function Ea(_,e,t){_[e>>>0]=t}function Ra(_,e,t){_[e]=t}function Ta(_,e,t){_.set(e,t>>>0)}function Ja(_,e,t){return _.set(e,t)}function Va(){return u(function(_,e,t){return Reflect.set(_,e,t)},arguments)}function Ua(_,e,t){_[e>>>0]=t}function Pa(_,e){let t=e.stack,o=c(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=i;b().setInt32(_+4,s,!0),b().setInt32(_+0,o,!0)}function Ba(){let _=typeof global>"u"?null:global;return w(_)?0:S(_)}function Ma(){let _=typeof globalThis>"u"?null:globalThis;return w(_)?0:S(_)}function za(){let _=typeof self>"u"?null:self;return w(_)?0:S(_)}function ja(){let _=typeof window>"u"?null:window;return w(_)?0:S(_)}function Wa(_,e,t){return _.subarray(e>>>0,t>>>0)}function Ha(_,e){return _.then(e)}function qa(_){return _.value}function $a(_){return _.versions}function Ka(_){return y.__wrap(_)}function Ga(_,e){console.warn(d(_,e))}function Qa(_){return+_}function Xa(_){return _}function Ya(_){return BigInt.asUintN(64,_)}function Za(_,e){let t=e,o=typeof t=="bigint"?t:void 0;b().setBigInt64(_+8,w(o)?BigInt(0):o,!0),b().setInt32(_+0,!w(o),!0)}function ei(_){let e=_;return typeof e=="boolean"?e?1:0:2}function ti(_){let e=_.original;return e.cnt--==1?(e.a=0,!0):!1}function ri(_,e,t){return xs(_,e,10,zi)}function _i(_,e,t){return xs(_,e,10,ji)}function oi(_,e){let t=c(Y(e),r.__wbindgen_malloc,r.__wbindgen_realloc),o=i;b().setInt32(_+4,o,!0),b().setInt32(_+0,t,!0)}function ni(_,e){return Error(d(_,e))}function si(_,e){return _ in e}Q=function(){let _=r.__wbindgen_export_4,e=_.grow(4);_.set(0,void 0),_.set(e+0,void 0),_.set(e+1,null),_.set(e+2,!0),_.set(e+3,!1)};function ai(_){return Array.isArray(_)}function ii(_){return typeof _=="bigint"}function li(_){return!_}function gi(_){return typeof _=="function"}function ci(_){return _===null}function di(_){let e=_;return typeof e=="object"&&!!e}function wi(_){return typeof _=="string"}function bi(_){return _===void 0}function ui(_,e){return _===e}function pi(_,e){return _==e}function hi(){return r.memory}function fi(_,e){let t=e,o=typeof t=="number"?t:void 0;b().setFloat64(_+8,w(o)?0:o,!0),b().setInt32(_+0,!w(o),!0)}function mi(_){return _}function vi(_){throw _}function yi(_,e){let t=e,o=typeof t=="string"?t:void 0;var s=w(o)?0:c(o,r.__wbindgen_malloc,r.__wbindgen_realloc),a=i;b().setInt32(_+4,a,!0),b().setInt32(_+0,s,!0)}function xi(_,e){return d(_,e)}function Si(_,e){throw Error(d(_,e))}function Ci(_){return typeof _}Oi=Ai({LORO_VERSION:()=>Nn,__externref_drop_slice:()=>Mo,__externref_table_alloc:()=>un,__externref_table_dealloc:()=>lo,__wbg_awarenesswasm_free:()=>d_,__wbg_changemodifier_free:()=>Ko,__wbg_cursor_free:()=>xn,__wbg_ephemeralstorewasm_free:()=>A_,__wbg_lorocounter_free:()=>Fo,__wbg_lorodoc_free:()=>Tn,__wbg_lorolist_free:()=>k_,__wbg_loromap_free:()=>W_,__wbg_loromovablelist_free:()=>tn,__wbg_lorotext_free:()=>To,__wbg_lorotree_free:()=>ro,__wbg_lorotreenode_free:()=>Q_,__wbg_undomanager_free:()=>s_,__wbg_versionvector_free:()=>Mn,__wbindgen_exn_store:()=>ns,__wbindgen_export_4:()=>m_,__wbindgen_export_6:()=>Zn,__wbindgen_free:()=>dr,__wbindgen_malloc:()=>Ce,__wbindgen_realloc:()=>$n,__wbindgen_start:()=>fr,_dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h423c5eefcad13156:()=>Je,awarenesswasm_apply:()=>De,awarenesswasm_encode:()=>zt,awarenesswasm_encodeAll:()=>So,awarenesswasm_getAllStates:()=>de,awarenesswasm_getState:()=>ho,awarenesswasm_getTimestamp:()=>Dt,awarenesswasm_isEmpty:()=>Jt,awarenesswasm_length:()=>Kt,awarenesswasm_new:()=>ze,awarenesswasm_peer:()=>st,awarenesswasm_peers:()=>Ct,awarenesswasm_removeOutdated:()=>sr,awarenesswasm_setLocalState:()=>cs,callPendingEvents:()=>fe,changemodifier_setMessage:()=>Dr,changemodifier_setTimestamp:()=>et,closure9_externref_shim:()=>Cr,cursor_containerId:()=>Jr,cursor_decode:()=>Ke,cursor_encode:()=>ft,cursor_kind:()=>ln,cursor_pos:()=>dt,cursor_side:()=>Kr,decodeFrontiers:()=>zr,decodeImportBlobMeta:()=>e_,encodeFrontiers:()=>er,ephemeralstorewasm_apply:()=>se,ephemeralstorewasm_delete:()=>j_,ephemeralstorewasm_encode:()=>Rn,ephemeralstorewasm_encodeAll:()=>$o,ephemeralstorewasm_get:()=>yn,ephemeralstorewasm_getAllStates:()=>po,ephemeralstorewasm_isEmpty:()=>f_,ephemeralstorewasm_keys:()=>en,ephemeralstorewasm_new:()=>In,ephemeralstorewasm_removeOutdated:()=>L_,ephemeralstorewasm_set:()=>Ro,ephemeralstorewasm_subscribe:()=>Bn,ephemeralstorewasm_subscribeLocalUpdates:()=>V_,lorocounter_decrement:()=>an,lorocounter_getAttached:()=>Bo,lorocounter_getShallowValue:()=>io,lorocounter_id:()=>to,lorocounter_increment:()=>c_,lorocounter_isAttached:()=>qn,lorocounter_kind:()=>gs,lorocounter_new:()=>C_,lorocounter_parent:()=>os,lorocounter_subscribe:()=>hr,lorocounter_toJSON:()=>Fe,lorocounter_value:()=>Yn,lorodoc_JSONPath:()=>Sr,lorodoc_applyDiff:()=>Me,lorodoc_attach:()=>Te,lorodoc_changeCount:()=>$t,lorodoc_checkout:()=>No,lorodoc_checkoutToLatest:()=>he,lorodoc_clearNextCommitOptions:()=>xo,lorodoc_cmpFrontiers:()=>Tt,lorodoc_cmpWithFrontiers:()=>Mt,lorodoc_commit:()=>Zt,lorodoc_configDefaultTextStyle:()=>$e,lorodoc_configTextStyle:()=>ct,lorodoc_debugHistory:()=>Ft,lorodoc_deleteRootContainer:()=>cr,lorodoc_detach:()=>ps,lorodoc_diff:()=>Se,lorodoc_export:()=>Tr,lorodoc_exportJsonInIdSpan:()=>nt,lorodoc_exportJsonUpdates:()=>Fr,lorodoc_findIdSpansBetween:()=>Mr,lorodoc_fork:()=>Ze,lorodoc_forkAt:()=>St,lorodoc_fromSnapshot:()=>bn,lorodoc_frontiers:()=>ht,lorodoc_frontiersToVV:()=>Zr,lorodoc_getAllChanges:()=>$r,lorodoc_getByPath:()=>n_,lorodoc_getChangeAt:()=>nr,lorodoc_getChangeAtLamport:()=>ce,lorodoc_getChangedContainersIn:()=>B_,lorodoc_getContainerById:()=>Ln,lorodoc_getCounter:()=>Wo,lorodoc_getCursorPos:()=>fn,lorodoc_getDeepValueWithID:()=>wo,lorodoc_getList:()=>u_,lorodoc_getMap:()=>Xo,lorodoc_getMovableList:()=>An,lorodoc_getOpsInChange:()=>N_,lorodoc_getPathToContainer:()=>ko,lorodoc_getPendingTxnLength:()=>Un,lorodoc_getShallowValue:()=>T_,lorodoc_getText:()=>$_,lorodoc_getTree:()=>on,lorodoc_getUncommittedOpsAsJson:()=>Uo,lorodoc_hasContainer:()=>no,lorodoc_import:()=>Z_,lorodoc_importBatch:()=>l_,lorodoc_importJsonUpdates:()=>Wn,lorodoc_importUpdateBatch:()=>is,lorodoc_isDetached:()=>x_,lorodoc_isDetachedEditingEnabled:()=>rs,lorodoc_isShallow:()=>ur,lorodoc_new:()=>Ie,lorodoc_opCount:()=>Qn,lorodoc_oplogFrontiers:()=>yr,lorodoc_oplogVersion:()=>Pe,lorodoc_peerId:()=>Ee,lorodoc_peerIdStr:()=>Ht,lorodoc_revertTo:()=>Oo,lorodoc_setChangeMergeInterval:()=>ue,lorodoc_setDetachedEditing:()=>vo,lorodoc_setHideEmptyRootContainers:()=>Et,lorodoc_setNextCommitMessage:()=>Pt,lorodoc_setNextCommitOptions:()=>Xt,lorodoc_setNextCommitOrigin:()=>He,lorodoc_setNextCommitTimestamp:()=>lt,lorodoc_setPeerId:()=>It,lorodoc_setRecordTimestamp:()=>lr,lorodoc_shallowSinceFrontiers:()=>bs,lorodoc_shallowSinceVV:()=>ye,lorodoc_subscribe:()=>Er,lorodoc_subscribeFirstCommitFromPeer:()=>_t,lorodoc_subscribeJsonpath:()=>Ir,lorodoc_subscribeLocalUpdates:()=>Pr,lorodoc_subscribePreCommit:()=>Xe,lorodoc_toJSON:()=>yt,lorodoc_travelChangeAncestors:()=>dn,lorodoc_version:()=>ut,lorodoc_vvToFrontiers:()=>Xr,lorolist_clear:()=>Hr,lorolist_delete:()=>__,lorolist_get:()=>_r,lorolist_getAttached:()=>le,lorolist_getCursor:()=>z_,lorolist_getIdAt:()=>En,lorolist_getShallowValue:()=>qo,lorolist_id:()=>vn,lorolist_insert:()=>uo,lorolist_insertContainer:()=>h_,lorolist_isAttached:()=>Zo,lorolist_isDeleted:()=>On,lorolist_kind:()=>D_,lorolist_length:()=>Eo,lorolist_new:()=>Pn,lorolist_parent:()=>J_,lorolist_pop:()=>G_,lorolist_push:()=>sn,lorolist_pushContainer:()=>Po,lorolist_subscribe:()=>ao,lorolist_toArray:()=>eo,lorolist_toJSON:()=>g_,loromap_clear:()=>Hn,loromap_delete:()=>ls,loromap_entries:()=>S_,loromap_get:()=>_s,loromap_getAttached:()=>pr,loromap_getLastEditor:()=>Ne,loromap_getOrCreateContainer:()=>Xn,loromap_getShallowValue:()=>xr,loromap_id:()=>Be,loromap_isAttached:()=>Re,loromap_isDeleted:()=>qt,loromap_keys:()=>Io,loromap_kind:()=>pe,loromap_new:()=>yo,loromap_parent:()=>Rt,loromap_set:()=>Bt,loromap_setContainer:()=>Yt,loromap_size:()=>qe,loromap_subscribe:()=>gt,loromap_toJSON:()=>Nt,loromap_values:()=>gr,loromovablelist_clear:()=>us,loromovablelist_delete:()=>xe,loromovablelist_get:()=>Rr,loromovablelist_getAttached:()=>ot,loromovablelist_getCreatorAt:()=>Nr,loromovablelist_getCursor:()=>Br,loromovablelist_getLastEditorAt:()=>Ye,loromovablelist_getLastMoverAt:()=>xt,loromovablelist_getShallowValue:()=>wn,loromovablelist_id:()=>pt,loromovablelist_insert:()=>Yr,loromovablelist_insertContainer:()=>qr,loromovablelist_isAttached:()=>o_,loromovablelist_isDeleted:()=>or,loromovablelist_kind:()=>ge,loromovablelist_length:()=>P_,loromovablelist_move:()=>Dn,loromovablelist_new:()=>jo,loromovablelist_parent:()=>hn,loromovablelist_pop:()=>co,loromovablelist_push:()=>b_,loromovablelist_pushContainer:()=>Qo,loromovablelist_set:()=>Cn,loromovablelist_setContainer:()=>I_,loromovablelist_subscribe:()=>Lo,loromovablelist_toArray:()=>Vn,loromovablelist_toJSON:()=>R_,lorotext_applyDelta:()=>q_,lorotext_charAt:()=>_n,lorotext_convertPos:()=>Vo,lorotext_delete:()=>oo,lorotext_deleteUtf8:()=>Y_,lorotext_getAttached:()=>i_,lorotext_getCursor:()=>jn,lorotext_getEditorOf:()=>as,lorotext_getShallowValue:()=>y_,lorotext_id:()=>ts,lorotext_insert:()=>br,lorotext_insertUtf8:()=>Oe,lorotext_isAttached:()=>Gn,lorotext_isDeleted:()=>vr,lorotext_iter:()=>Ue,lorotext_kind:()=>ke,lorotext_length:()=>Wt,lorotext_mark:()=>Ao,lorotext_new:()=>be,lorotext_parent:()=>mo,lorotext_push:()=>kt,lorotext_slice:()=>Ut,lorotext_sliceDelta:()=>Qt,lorotext_sliceDeltaUtf8:()=>We,lorotext_splice:()=>it,lorotext_subscribe:()=>Ot,lorotext_toDelta:()=>ir,lorotext_toJSON:()=>ws,lorotext_toString:()=>ve,lorotext_unmark:()=>kr,lorotext_update:()=>rt,lorotext_updateByLine:()=>Or,lorotree_createNode:()=>Ur,lorotree_delete:()=>Qe,lorotree_disableFractionalIndex:()=>vt,lorotree_enableFractionalIndex:()=>cn,lorotree_getAttached:()=>bt,lorotree_getNodeByID:()=>Qr,lorotree_getNodes:()=>Wr,lorotree_getShallowValue:()=>r_,lorotree_has:()=>rr,lorotree_id:()=>ie,lorotree_isAttached:()=>U_,lorotree_isDeleted:()=>Fn,lorotree_isFractionalIndexEnabled:()=>zo,lorotree_isNodeDeleted:()=>pn,lorotree_kind:()=>go,lorotree_move:()=>w_,lorotree_new:()=>Go,lorotree_nodes:()=>Sn,lorotree_parent:()=>O_,lorotree_roots:()=>Do,lorotree_subscribe:()=>Jn,lorotree_toArray:()=>E_,lorotree_toJSON:()=>H_,lorotreenode___getClassname:()=>rn,lorotreenode_children:()=>Jo,lorotreenode_createNode:()=>_o,lorotreenode_creationId:()=>X_,lorotreenode_creator:()=>a_,lorotreenode_data:()=>zn,lorotreenode_fractionalIndex:()=>ss,lorotreenode_getLastMoveId:()=>v_,lorotreenode_id:()=>es,lorotreenode_index:()=>wr,lorotreenode_isDeleted:()=>Ae,lorotreenode_move:()=>Kn,lorotreenode_moveAfter:()=>mr,lorotreenode_moveBefore:()=>Ve,lorotreenode_parent:()=>Le,lorotreenode_toJSON:()=>jt,memory:()=>Co,redactJsonUpdates:()=>we,run:()=>fo,setDebug:()=>Lt,undomanager_addExcludeOriginPrefix:()=>Vt,undomanager_canRedo:()=>Gt,undomanager_canUndo:()=>je,undomanager_clear:()=>at,undomanager_groupEnd:()=>At,undomanager_groupStart:()=>ar,undomanager_new:()=>ds,undomanager_peer:()=>me,undomanager_redo:()=>Lr,undomanager_setMaxUndoSteps:()=>tt,undomanager_setMergeInterval:()=>Ar,undomanager_setOnPop:()=>Vr,undomanager_setOnPush:()=>Ge,undomanager_topRedoValue:()=>mt,undomanager_topUndoValue:()=>gn,undomanager_undo:()=>wt,versionvector_compare:()=>Gr,versionvector_decode:()=>jr,versionvector_encode:()=>t_,versionvector_get:()=>tr,versionvector_length:()=>ae,versionvector_new:()=>M_,versionvector_parseJSON:()=>kn,versionvector_remove:()=>Ho,versionvector_setEnd:()=>mn,versionvector_setLast:()=>bo,versionvector_toJSON:()=>p_},1),URL=globalThis.URL,{memory:Co,LORO_VERSION:Nn,__wbg_awarenesswasm_free:d_,__wbg_changemodifier_free:Ko,__wbg_cursor_free:xn,__wbg_ephemeralstorewasm_free:A_,__wbg_lorocounter_free:Fo,__wbg_lorodoc_free:Tn,__wbg_lorolist_free:k_,__wbg_loromap_free:W_,__wbg_lorotext_free:To,__wbg_lorotree_free:ro,__wbg_lorotreenode_free:Q_,__wbg_undomanager_free:s_,__wbg_versionvector_free:Mn,awarenesswasm_apply:De,awarenesswasm_encode:zt,awarenesswasm_encodeAll:So,awarenesswasm_getAllStates:de,awarenesswasm_getState:ho,awarenesswasm_getTimestamp:Dt,awarenesswasm_isEmpty:Jt,awarenesswasm_length:Kt,awarenesswasm_new:ze,awarenesswasm_peer:st,awarenesswasm_peers:Ct,awarenesswasm_removeOutdated:sr,awarenesswasm_setLocalState:cs,callPendingEvents:fe,changemodifier_setMessage:Dr,changemodifier_setTimestamp:et,cursor_containerId:Jr,cursor_decode:Ke,cursor_encode:ft,cursor_kind:ln,cursor_pos:dt,cursor_side:Kr,decodeFrontiers:zr,decodeImportBlobMeta:e_,encodeFrontiers:er,ephemeralstorewasm_apply:se,ephemeralstorewasm_delete:j_,ephemeralstorewasm_encode:Rn,ephemeralstorewasm_encodeAll:$o,ephemeralstorewasm_get:yn,ephemeralstorewasm_getAllStates:po,ephemeralstorewasm_isEmpty:f_,ephemeralstorewasm_keys:en,ephemeralstorewasm_new:In,ephemeralstorewasm_removeOutdated:L_,ephemeralstorewasm_set:Ro,ephemeralstorewasm_subscribe:Bn,ephemeralstorewasm_subscribeLocalUpdates:V_,lorocounter_decrement:an,lorocounter_getAttached:Bo,lorocounter_getShallowValue:io,lorocounter_id:to,lorocounter_increment:c_,lorocounter_isAttached:qn,lorocounter_kind:gs,lorocounter_new:C_,lorocounter_parent:os,lorocounter_subscribe:hr,lorodoc_JSONPath:Sr,lorodoc_applyDiff:Me,lorodoc_attach:Te,lorodoc_changeCount:$t,lorodoc_checkout:No,lorodoc_checkoutToLatest:he,lorodoc_clearNextCommitOptions:xo,lorodoc_cmpFrontiers:Tt,lorodoc_cmpWithFrontiers:Mt,lorodoc_commit:Zt,lorodoc_configDefaultTextStyle:$e,lorodoc_configTextStyle:ct,lorodoc_debugHistory:Ft,lorodoc_deleteRootContainer:cr,lorodoc_detach:ps,lorodoc_diff:Se,lorodoc_export:Tr,lorodoc_exportJsonInIdSpan:nt,lorodoc_exportJsonUpdates:Fr,lorodoc_findIdSpansBetween:Mr,lorodoc_fork:Ze,lorodoc_forkAt:St,lorodoc_fromSnapshot:bn,lorodoc_frontiers:ht,lorodoc_frontiersToVV:Zr,lorodoc_getAllChanges:$r,lorodoc_getByPath:n_,lorodoc_getChangeAt:nr,lorodoc_getChangeAtLamport:ce,lorodoc_getChangedContainersIn:B_,lorodoc_getContainerById:Ln,lorodoc_getCounter:Wo,lorodoc_getCursorPos:fn,lorodoc_getDeepValueWithID:wo,lorodoc_getList:u_,lorodoc_getMap:Xo,lorodoc_getMovableList:An,lorodoc_getOpsInChange:N_,lorodoc_getPathToContainer:ko,lorodoc_getPendingTxnLength:Un,lorodoc_getShallowValue:T_,lorodoc_getText:$_,lorodoc_getTree:on,lorodoc_getUncommittedOpsAsJson:Uo,lorodoc_hasContainer:no,lorodoc_import:Z_,lorodoc_importBatch:l_,lorodoc_importJsonUpdates:Wn,lorodoc_isDetached:x_,lorodoc_isDetachedEditingEnabled:rs,lorodoc_isShallow:ur,lorodoc_new:Ie,lorodoc_opCount:Qn,lorodoc_oplogFrontiers:yr,lorodoc_oplogVersion:Pe,lorodoc_peerId:Ee,lorodoc_peerIdStr:Ht,lorodoc_revertTo:Oo,lorodoc_setChangeMergeInterval:ue,lorodoc_setDetachedEditing:vo,lorodoc_setHideEmptyRootContainers:Et,lorodoc_setNextCommitMessage:Pt,lorodoc_setNextCommitOptions:Xt,lorodoc_setNextCommitOrigin:He,lorodoc_setNextCommitTimestamp:lt,lorodoc_setPeerId:It,lorodoc_setRecordTimestamp:lr,lorodoc_shallowSinceFrontiers:bs,lorodoc_shallowSinceVV:ye,lorodoc_subscribe:Er,lorodoc_subscribeFirstCommitFromPeer:_t,lorodoc_subscribeJsonpath:Ir,lorodoc_subscribeLocalUpdates:Pr,lorodoc_subscribePreCommit:Xe,lorodoc_toJSON:yt,lorodoc_travelChangeAncestors:dn,lorodoc_version:ut,lorodoc_vvToFrontiers:Xr,lorolist_clear:Hr,lorolist_delete:__,lorolist_get:_r,lorolist_getAttached:le,lorolist_getCursor:z_,lorolist_getIdAt:En,lorolist_getShallowValue:qo,lorolist_id:vn,lorolist_insert:uo,lorolist_insertContainer:h_,lorolist_isAttached:Zo,lorolist_isDeleted:On,lorolist_kind:D_,lorolist_length:Eo,lorolist_new:Pn,lorolist_parent:J_,lorolist_pop:G_,lorolist_push:sn,lorolist_pushContainer:Po,lorolist_subscribe:ao,lorolist_toArray:eo,lorolist_toJSON:g_,loromap_clear:Hn,loromap_delete:ls,loromap_entries:S_,loromap_get:_s,loromap_getAttached:pr,loromap_getLastEditor:Ne,loromap_getOrCreateContainer:Xn,loromap_getShallowValue:xr,loromap_id:Be,loromap_isAttached:Re,loromap_isDeleted:qt,loromap_keys:Io,loromap_kind:pe,loromap_new:yo,loromap_parent:Rt,loromap_set:Bt,loromap_setContainer:Yt,loromap_size:qe,loromap_subscribe:gt,loromap_toJSON:Nt,loromap_values:gr,loromovablelist_clear:us,loromovablelist_delete:xe,loromovablelist_get:Rr,loromovablelist_getAttached:ot,loromovablelist_getCreatorAt:Nr,loromovablelist_getCursor:Br,loromovablelist_getLastEditorAt:Ye,loromovablelist_getLastMoverAt:xt,loromovablelist_getShallowValue:wn,loromovablelist_id:pt,loromovablelist_insert:Yr,loromovablelist_insertContainer:qr,loromovablelist_isAttached:o_,loromovablelist_isDeleted:or,loromovablelist_kind:ge,loromovablelist_length:P_,loromovablelist_move:Dn,loromovablelist_new:jo,loromovablelist_parent:hn,loromovablelist_pop:co,loromovablelist_push:b_,loromovablelist_pushContainer:Qo,loromovablelist_set:Cn,loromovablelist_setContainer:I_,loromovablelist_subscribe:Lo,loromovablelist_toArray:Vn,loromovablelist_toJSON:R_,lorotext_applyDelta:q_,lorotext_charAt:_n,lorotext_convertPos:Vo,lorotext_delete:oo,lorotext_deleteUtf8:Y_,lorotext_getAttached:i_,lorotext_getCursor:jn,lorotext_getEditorOf:as,lorotext_getShallowValue:y_,lorotext_id:ts,lorotext_insert:br,lorotext_insertUtf8:Oe,lorotext_isAttached:Gn,lorotext_isDeleted:vr,lorotext_iter:Ue,lorotext_kind:ke,lorotext_length:Wt,lorotext_mark:Ao,lorotext_new:be,lorotext_parent:mo,lorotext_push:kt,lorotext_slice:Ut,lorotext_sliceDelta:Qt,lorotext_sliceDeltaUtf8:We,lorotext_splice:it,lorotext_subscribe:Ot,lorotext_toDelta:ir,lorotext_toJSON:ws,lorotext_toString:ve,lorotext_unmark:kr,lorotext_update:rt,lorotext_updateByLine:Or,lorotree_createNode:Ur,lorotree_delete:Qe,lorotree_disableFractionalIndex:vt,lorotree_enableFractionalIndex:cn,lorotree_getAttached:bt,lorotree_getNodeByID:Qr,lorotree_getNodes:Wr,lorotree_getShallowValue:r_,lorotree_has:rr,lorotree_id:ie,lorotree_isAttached:U_,lorotree_isDeleted:Fn,lorotree_isFractionalIndexEnabled:zo,lorotree_isNodeDeleted:pn,lorotree_kind:go,lorotree_move:w_,lorotree_new:Go,lorotree_nodes:Sn,lorotree_parent:O_,lorotree_roots:Do,lorotree_subscribe:Jn,lorotree_toArray:E_,lorotree_toJSON:H_,lorotreenode___getClassname:rn,lorotreenode_children:Jo,lorotreenode_createNode:_o,lorotreenode_creationId:X_,lorotreenode_creator:a_,lorotreenode_data:zn,lorotreenode_fractionalIndex:ss,lorotreenode_getLastMoveId:v_,lorotreenode_id:es,lorotreenode_index:wr,lorotreenode_isDeleted:Ae,lorotreenode_move:Kn,lorotreenode_moveAfter:mr,lorotreenode_moveBefore:Ve,lorotreenode_parent:Le,lorotreenode_toJSON:jt,redactJsonUpdates:we,run:fo,setDebug:Lt,undomanager_addExcludeOriginPrefix:Vt,undomanager_canRedo:Gt,undomanager_canUndo:je,undomanager_clear:at,undomanager_groupEnd:At,undomanager_groupStart:ar,undomanager_new:ds,undomanager_peer:me,undomanager_redo:Lr,undomanager_setMaxUndoSteps:tt,undomanager_setMergeInterval:Ar,undomanager_setOnPop:Vr,undomanager_setOnPush:Ge,undomanager_topRedoValue:mt,undomanager_topUndoValue:gn,undomanager_undo:wt,versionvector_compare:Gr,versionvector_decode:jr,versionvector_encode:t_,versionvector_get:tr,versionvector_length:ae,versionvector_new:M_,versionvector_parseJSON:kn,versionvector_remove:Ho,versionvector_setEnd:mn,versionvector_setLast:bo,versionvector_toJSON:p_,lorodoc_importUpdateBatch:is,__wbg_loromovablelist_free:tn,lorocounter_value:Yn,lorocounter_toJSON:Fe,__wbindgen_malloc:Ce,__wbindgen_realloc:$n,__wbindgen_exn_store:ns,__externref_table_alloc:un,__wbindgen_export_4:m_,__wbindgen_free:dr,__wbindgen_export_6:Zn,__externref_table_dealloc:lo,__externref_drop_slice:Mo,closure9_externref_shim:Cr,_dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h423c5eefcad13156:Je,__wbindgen_start:fr}=await ms({"./loro_wasm_bg.js":{__wbg_lorotree_new:la,__wbg_lorocounter_new:oa,__wbg_lorotext_new:ia,__wbg_lorotreenode_new:ga,__wbg_cursor_new:Es,__wbg_loromap_new:sa,__wbg_loromovablelist_new:aa,__wbg_lorolist_new:na,__wbg_changemodifier_new:Ls,__wbg_versionvector_new:Ka,__wbindgen_is_function:gi,__wbindgen_number_get:fi,__wbindgen_string_get:yi,__wbindgen_string_new:xi,__wbindgen_boolean_get:ei,__wbindgen_error_new:ni,__wbg_error_1cb1bf0bb7e0da2b:Vs,__wbindgen_cb_drop:ti,__wbindgen_is_undefined:bi,__wbindgen_in:si,__wbindgen_is_bigint:ii,__wbindgen_bigint_from_i64:Xa,__wbindgen_jsval_eq:ui,__wbindgen_is_object:di,__wbindgen_bigint_from_u64:Ya,__wbindgen_as_number:Qa,__wbindgen_number_new:mi,__wbindgen_is_string:wi,__wbindgen_is_null:ci,__wbindgen_is_falsy:li,__wbindgen_typeof:Ci,__wbg_warn_90235b184e422485:Ga,__wbg_log_0671e6aa34e04626:ta,__wbindgen_is_array:ai,__wbg_log_cb9e190acc5753fb:_a,__wbg_log_0cc1b7768397bcfe:ra,__wbg_mark_7438147ce31e9d4b:ca,__wbg_measure_fb7825c11612c823:da,__wbg_new_8a6f238a6ece86ea:ha,__wbg_stack_0ed75d68575b0f3c:Pa,__wbg_error_7534b8e9a36f1ab4:Us,__wbindgen_jsval_loose_eq:pi,__wbg_getwithrefkey_1dc361bd10053bfe:Hs,__wbg_set_3f1d0b984ed272ed:Ra,__wbg_String_8f0eb39a4a4c2f66:Ss,__wbg_now_c8bdc8efc8c495eb:Oa,__wbg_crypto_574e78ad8b13b65f:ks,__wbg_process_dc0fbacc7c1c06f7:Na,__wbg_versions_c01dfd4722a88165:$a,__wbg_node_905d3e251edff8a2:Aa,__wbg_require_60cc747a6bc5215a:La,__wbg_msCrypto_a61aeb35a24c1329:wa,__wbg_randomFillSync_ac0988aba3254290:Da,__wbg_getRandomValues_b8f5dbd5f3995a9e:Ms,__wbg_new_5e0be73521bc8c17:ua,__wbg_new_78feb108b6472713:pa,__wbg_new_405e22f390576ce2:ba,__wbg_newnoargs_105ed471475aaf50:ma,__wbg_new_a12002a7f91c75be:fa,__wbg_buffer_609cc3eee51ed158:Os,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:va,__wbg_length_a446193dc22c12f8:Zs,__wbg_newwithlength_a381634e90c276d4:ya,__wbg_set_65595bdd868b3009:Ta,__wbg_subarray_aa9065fa9dc5df96:Wa,__wbg_getindex_5b00c274b05714aa:Ws,__wbg_setindex_dcd71eabf405bde1:Ua,__wbg_done_769e5ede4b31c67b:Rs,__wbg_value_cd1ffa7b1ab794f1:qa,__wbg_instanceof_Map_f3469ce2244d2430:$s,__wbg_instanceof_Object_7f2dcef8f78644a4:Ks,__wbg_instanceof_Uint8Array_17156bcf118086a9:Gs,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:qs,__wbg_set_8fc6bf8a5b1071d1:Ja,__wbg_entries_c8a90a7ed73e84ce:Js,__wbg_newwithlength_c4c419ef0bc8a1f8:xa,__wbg_get_b9b93047fe3cf45b:js,__wbg_set_37837023f3d740e8:Ea,__wbg_from_2a5d3e218e67aa85:Ps,__wbg_length_e2d2a49132c1b256:ea,__wbg_push_737cfc8c1432c2c6:Fa,__wbg_isArray_a1eab7e0d067391b:Qs,__wbg_isSafeInteger_343e2beeeece1bb0:Xs,__wbg_getOwnPropertySymbols_97eebed6fe6e08be:Bs,__wbg_entries_3265d4158b33e5dc:Ts,__wbg_iterator_9a24c88df860dc65:Ys,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:Ma,__wbg_call_672a4d21634d4a24:Is,__wbg_static_accessor_SELF_37c5d418e4bf5819:za,__wbg_static_accessor_GLOBAL_88a902d13a557d07:Ba,__wbg_static_accessor_WINDOW_5de37043a91a9c40:ja,__wbg_then_44b73946d2fb3e7d:Ha,__wbg_resolve_4851785c9c5f573d:ka,__wbg_get_67b2ba62fc30de12:zs,__wbg_set_bb8cecf6a62b9f46:Va,__wbg_apply_eb9e9b97497f91e4:As,__wbg_ownKeys_3930041068756f1f:Ia,__wbg_apply_36be6a55257c99bf:Cs,__wbg_call_7cccdd69e0791ae2:Ns,__wbg_call_833bed5770ea2041:Fs,__wbg_call_b8adc8b1d0a0d8eb:Ds,__wbg_next_25feadfc0913fea9:Sa,__wbg_next_6574e1a8a62d1055:Ca,__wbindgen_bigint_get_as_i64:Za,__wbindgen_memory:hi,__wbindgen_throw:Si,__wbindgen_rethrow:vi,__wbindgen_debug_string:oi,__wbindgen_closure_wrapper718:ri,__wbindgen_closure_wrapper721:_i,__wbindgen_init_externref_table:Q}},fs)})();export{se as $,ae as $a,ie as $i,le as $n,ge as $r,ce as $t,de as A,we as Aa,be as Ai,ue as An,pe as Ar,he as At,fe as B,me as Ba,ve as Bi,ye as Bn,xe as Br,Se as Bt,Ce as C,Ae as Ca,Oe as Ci,Ie as Cn,Ne as Cr,Fe as Ct,De as D,Le as Da,ke as Di,Ee as Dn,Re as Dr,Te as Dt,Je as E,Ve as Ea,Ue as Ei,Pe as En,Be as Er,Me as Et,ze as F,je as Fa,We as Fi,He as Fn,qe as Fr,$e as Ft,Ke as G,Ge as Ga,Qe as Gi,Xe as Gn,Ye as Gr,Ze as Gt,et as H,tt as Ha,rt as Hi,_t as Hn,ot as Hr,nt as Ht,st as I,at as Ia,it as Ii,lt as In,gt as Ir,ct as It,dt as J,wt as Ja,bt as Ji,ut as Jn,pt as Jr,ht as Jt,ft as K,mt as Ka,vt as Ki,yt as Kn,xt as Kr,St as Kt,Ct as L,At as La,Ot as Li,It as Ln,Nt as Lr,Ft as Lt,Dt as M,Lt as Ma,kt as Mi,Et as Mn,Rt as Mr,Tt as Mt,Jt as N,Vt as Na,Ut as Ni,Pt as Nn,Bt as Nr,Mt as Nt,zt as O,jt as Oa,Wt as Oi,Ht as On,qt as Or,$t as Ot,Kt as P,Gt as Pa,Qt as Pi,Xt as Pn,Yt as Pr,Zt as Pt,er as Q,tr as Qa,rr as Qi,_r as Qn,or as Qr,nr as Qt,sr as R,ar as Ra,ir as Ri,lr as Rn,gr as Rr,cr as Rt,dr as S,wr as Sa,br as Si,ur as Sn,pr as Sr,hr as St,fr as T,mr as Ta,vr as Ti,yr as Tn,xr as Tr,Sr as Tt,Cr as U,Ar as Ua,Or as Ui,Ir as Un,Nr as Ur,Fr as Ut,Dr as V,Lr as Va,kr as Vi,Er as Vn,Rr as Vr,Tr as Vt,Jr as W,Vr as Wa,Ur as Wi,Pr as Wn,Br as Wr,Mr as Wt,zr as X,jr as Xa,Wr as Xi,Hr as Xn,qr as Xr,$r as Xt,Kr as Y,Gr as Ya,Qr as Yi,Xr as Yn,Yr,Zr as Yt,e_ as Z,t_ as Za,r_ as Zi,__ as Zn,o_ as Zr,n_ as Zt,s_ as _,Wi as __tla,a_ as _a,i_ as _i,l_ as _n,g_ as _r,c_ as _t,d_ as a,w_ as aa,b_ as ai,u_ as an,p_ as ao,h_ as ar,f_ as at,m_ as b,v_ as ba,y_ as bi,x_ as bn,S_ as br,C_ as bt,A_ as c,O_ as ca,I_ as ci,N_ as cn,F_ as co,D_ as cr,L_ as ct,k_ as d,E_ as da,R_ as di,T_ as dn,D as do,J_ as dr,V_ as dt,U_ as ea,P_ as ei,B_ as en,M_ as eo,z_ as er,j_ as et,W_ as f,H_ as fa,q_ as fi,$_ as fn,K_ as fo,G_ as fr,Oi as ft,Q_ as g,X_ as ga,Y_ as gi,Z_ as gn,Ii as go,eo as gr,to as gt,ro as h,_o as ha,oo as hi,no as hn,so as ho,ao as hr,io as ht,lo as i,go as ia,co as ii,wo as in,bo as io,uo as ir,po as it,ho as j,fo as ja,mo as ji,vo as jn,yo as jr,xo as jt,So as k,Co as ka,Ao as ki,Oo as kn,Io as kr,No as kt,Fo as l,Do as la,Lo as li,ko as ln,G as lo,Eo as lr,Ro as lt,To as m,Jo as ma,Vo as mi,Uo as mn,Q as mo,Po as mr,Bo as mt,Mo as n,zo as na,jo as ni,Wo as nn,Ho as no,qo as nr,$o as nt,Ko as o,Go as oa,Qo as oi,Xo as on,Yo as oo,Zo as or,en as ot,tn as p,rn as pa,_n as pi,on as pn,nn as po,sn as pr,an as pt,ln as q,gn as qa,cn as qi,dn as qn,wn as qr,bn as qt,un as r,pn as ra,hn as ri,fn as rn,mn as ro,vn as rr,yn as rt,xn as s,Sn as sa,Cn as si,An as sn,x as so,On as sr,In as st,Nn as t,Fn as ta,Dn as ti,Ln as tn,kn as to,En as tr,Rn as tt,Tn as u,Jn as ua,Vn as ui,Un as un,I as uo,Pn as ur,Bn as ut,Mn as v,zn as va,jn as vi,Wn as vn,Hn as vr,qn as vt,$n as w,Kn as wa,Gn as wi,Qn as wn,Xn as wr,Yn as wt,Zn as x,es as xa,ts as xi,rs as xn,_s as xr,os as xt,ns as y,ss as ya,as as yi,is as yn,ls as yr,gs as yt,cs as z,ds as za,ws as zi,bs as zn,us as zr,ps as zt};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as a,$a as s,$i as o,$n as e,$r as r,$t as t,A as l,Aa as _,Ai as n,An as i,Ar as d,At as c,B as m,Ba as g,Bi as p,Bn as u,Br as b,Bt as w,C as h,Ca as v,Ci as x,Cn as f,Cr as C,Ct as S,D as A,Da as O,Di as y,Dn as I,Dr as N,Dt as D,E as J,Ea as k,Ei as V,En as E,Er as L,Et as P,F as T,Fa as F,Fi as U,Fn as M,Fr as B,Ft as R,G as W,Ga as H,Gi as z,Gn as j,Gr as q,Gt as G,H as K,Ha as Q,Hi as X,Hn as Y,Hr as Z,Ht as $,I as aa,Ia as sa,Ii as oa,In as ea,Ir as ra,It as ta,J as la,Ja as _a,Ji as na,Jn as ia,Jr as da,Jt as ca,K as ma,Ka as ga,Ki as pa,Kn as ua,Kr as ba,Kt as wa,L as ha,La as va,Li as xa,Ln as fa,Lr as Ca,Lt as Sa,M as Aa,Ma as Oa,Mi as ya,Mn as Ia,Mr as Na,Mt as Da,N as Ja,Na as ka,Ni as Va,Nn as Ea,Nr as La,Nt as Pa,O as Ta,Oa as Fa,Oi as Ua,On as Ma,Or as Ba,Ot as Ra,P as Wa,Pa as Ha,Pi as za,Pn as ja,Pr as qa,Pt as Ga,Q as Ka,Qa,Qi as Xa,Qn as Ya,Qr as Za,Qt as $a,R as as,Ra as ss,Ri as os,Rn as es,Rr as rs,Rt as ts,S as ls,Sa as _s,Si as ns,Sn as is,Sr as ds,St as cs,T as ms,Ta as gs,Ti as ps,Tn as us,Tr as bs,Tt as ws,U as hs,Ua as vs,Ui as xs,Un as fs,Ur as Cs,Ut as Ss,V as As,Va as Os,Vi as ys,Vn as Is,Vr as Ns,Vt as Ds,W as Js,Wa as ks,Wi as Vs,Wn as Es,Wr as Ls,Wt as Ps,X as Ts,Xa as Fs,Xi as Us,Xn as Ms,Xr as Bs,Xt as Rs,Y as Ws,Ya as Hs,Yi as zs,Yn as js,Yr as qs,Yt as Gs,Z as Ks,Za as Qs,Zi as Xs,Zn as Ys,Zr as Zs,Zt as $s,_ as ao,_a as so,_i as oo,_n as eo,_r as ro,_t as to,a as lo,aa as _o,ai as no,an as io,ao as co,ar as mo,at as go,b as po,ba as uo,bi as bo,bn as wo,br as ho,bt as vo,c as xo,ca as fo,ci as Co,cn as So,cr as Ao,ct as Oo,d as yo,da as Io,di as No,dn as Do,dr as Jo,dt as ko,ea as Vo,ei as Eo,en as Lo,eo as Po,er as To,et as Fo,f as Uo,fa as Mo,fi as Bo,fn as Ro,fr as Wo,g as Ho,ga as zo,gi as jo,gn as qo,gr as Go,gt as Ko,h as Qo,ha as Xo,hi as Yo,hn as Zo,hr as $o,ht as ae,i as se,ia as oe,ii as ee,in as re,io as te,ir as le,it as _e,j as ne,ja as ie,ji as de,jn as ce,jr as me,jt as ge,k as pe,ka as ue,ki as be,kn as we,kr as he,kt as ve,l as xe,la as fe,li as Ce,ln as Se,lr as Ae,lt as Oe,m as ye,ma as Ie,mi as Ne,mn as De,mr as Je,mt as ke,n as Ve,na as Ee,ni as Le,nn as Pe,no as Te,nr as Fe,nt as Ue,o as Me,oa as Be,oi as Re,on as We,or as He,ot as ze,p as je,pa as qe,pi as Ge,pn as Ke,pr as Qe,pt as Xe,q as Ye,qa as Ze,qi as $e,qn as ar,qr as sr,qt as or,r as er,ra as rr,ri as tr,rn as lr,ro as _r,rr as nr,rt as ir,s as dr,sa as cr,si as mr,sn as gr,sr as pr,st as ur,t as br,ta as wr,ti as hr,tn as vr,to as xr,tr as fr,tt as Cr,u as Sr,ua as Ar,ui as Or,un as yr,ur as Ir,ut as Nr,v as Dr,va as Jr,vi as kr,vn as Vr,vr as Er,vt as Lr,w as Pr,wa as Tr,wi as Fr,wn as Ur,wr as Mr,wt as Br,x as Rr,xa as Wr,xi as Hr,xn as zr,xr as jr,xt as qr,y as Gr,ya as Kr,yi as Qr,yn as Xr,yr as Yr,yt as Zr,z as $r,za as at,zi as st,zn as ot,zr as et,zt as rt,__tla as tt}from"./loro_wasm_bg-Ds40eH8K.js";let lt=Promise.all([(()=>{try{return tt}catch{}})()]).then(async()=>{});export{br as LORO_VERSION,Ve as __externref_drop_slice,er as __externref_table_alloc,se as __externref_table_dealloc,lt as __tla,lo as __wbg_awarenesswasm_free,Me as __wbg_changemodifier_free,dr as __wbg_cursor_free,xo as __wbg_ephemeralstorewasm_free,xe as __wbg_lorocounter_free,Sr as __wbg_lorodoc_free,yo as __wbg_lorolist_free,Uo as __wbg_loromap_free,je as __wbg_loromovablelist_free,ye as __wbg_lorotext_free,Qo as __wbg_lorotree_free,Ho as __wbg_lorotreenode_free,ao as __wbg_undomanager_free,Dr as __wbg_versionvector_free,Gr as __wbindgen_exn_store,po as __wbindgen_export_4,Rr as __wbindgen_export_6,ls as __wbindgen_free,h as __wbindgen_malloc,Pr as __wbindgen_realloc,ms as __wbindgen_start,J as _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h423c5eefcad13156,A as awarenesswasm_apply,Ta as awarenesswasm_encode,pe as awarenesswasm_encodeAll,l as awarenesswasm_getAllStates,ne as awarenesswasm_getState,Aa as awarenesswasm_getTimestamp,Ja as awarenesswasm_isEmpty,Wa as awarenesswasm_length,T as awarenesswasm_new,aa as awarenesswasm_peer,ha as awarenesswasm_peers,as as awarenesswasm_removeOutdated,$r as awarenesswasm_setLocalState,m as callPendingEvents,As as changemodifier_setMessage,K as changemodifier_setTimestamp,hs as closure9_externref_shim,Js as cursor_containerId,W as cursor_decode,ma as cursor_encode,Ye as cursor_kind,la as cursor_pos,Ws as cursor_side,Ts as decodeFrontiers,Ks as decodeImportBlobMeta,Ka as encodeFrontiers,a as ephemeralstorewasm_apply,Fo as ephemeralstorewasm_delete,Cr as ephemeralstorewasm_encode,Ue as ephemeralstorewasm_encodeAll,ir as ephemeralstorewasm_get,_e as ephemeralstorewasm_getAllStates,go as ephemeralstorewasm_isEmpty,ze as ephemeralstorewasm_keys,ur as ephemeralstorewasm_new,Oo as ephemeralstorewasm_removeOutdated,Oe as ephemeralstorewasm_set,Nr as ephemeralstorewasm_subscribe,ko as ephemeralstorewasm_subscribeLocalUpdates,Xe as lorocounter_decrement,ke as lorocounter_getAttached,ae as lorocounter_getShallowValue,Ko as lorocounter_id,to as lorocounter_increment,Lr as lorocounter_isAttached,Zr as lorocounter_kind,vo as lorocounter_new,qr as lorocounter_parent,cs as lorocounter_subscribe,S as lorocounter_toJSON,Br as lorocounter_value,ws as lorodoc_JSONPath,P as lorodoc_applyDiff,D as lorodoc_attach,Ra as lorodoc_changeCount,ve as lorodoc_checkout,c as lorodoc_checkoutToLatest,ge as lorodoc_clearNextCommitOptions,Da as lorodoc_cmpFrontiers,Pa as lorodoc_cmpWithFrontiers,Ga as lorodoc_commit,R as lorodoc_configDefaultTextStyle,ta as lorodoc_configTextStyle,Sa as lorodoc_debugHistory,ts as lorodoc_deleteRootContainer,rt as lorodoc_detach,w as lorodoc_diff,Ds as lorodoc_export,$ as lorodoc_exportJsonInIdSpan,Ss as lorodoc_exportJsonUpdates,Ps as lorodoc_findIdSpansBetween,G as lorodoc_fork,wa as lorodoc_forkAt,or as lorodoc_fromSnapshot,ca as lorodoc_frontiers,Gs as lorodoc_frontiersToVV,Rs as lorodoc_getAllChanges,$s as lorodoc_getByPath,$a as lorodoc_getChangeAt,t as lorodoc_getChangeAtLamport,Lo as lorodoc_getChangedContainersIn,vr as lorodoc_getContainerById,Pe as lorodoc_getCounter,lr as lorodoc_getCursorPos,re as lorodoc_getDeepValueWithID,io as lorodoc_getList,We as lorodoc_getMap,gr as lorodoc_getMovableList,So as lorodoc_getOpsInChange,Se as lorodoc_getPathToContainer,yr as lorodoc_getPendingTxnLength,Do as lorodoc_getShallowValue,Ro as lorodoc_getText,Ke as lorodoc_getTree,De as lorodoc_getUncommittedOpsAsJson,Zo as lorodoc_hasContainer,qo as lorodoc_import,eo as lorodoc_importBatch,Vr as lorodoc_importJsonUpdates,Xr as lorodoc_importUpdateBatch,wo as lorodoc_isDetached,zr as lorodoc_isDetachedEditingEnabled,is as lorodoc_isShallow,f as lorodoc_new,Ur as lorodoc_opCount,us as lorodoc_oplogFrontiers,E as lorodoc_oplogVersion,I as lorodoc_peerId,Ma as lorodoc_peerIdStr,we as lorodoc_revertTo,i as lorodoc_setChangeMergeInterval,ce as lorodoc_setDetachedEditing,Ia as lorodoc_setHideEmptyRootContainers,Ea as lorodoc_setNextCommitMessage,ja as lorodoc_setNextCommitOptions,M as lorodoc_setNextCommitOrigin,ea as lorodoc_setNextCommitTimestamp,fa as lorodoc_setPeerId,es as lorodoc_setRecordTimestamp,ot as lorodoc_shallowSinceFrontiers,u as lorodoc_shallowSinceVV,Is as lorodoc_subscribe,Y as lorodoc_subscribeFirstCommitFromPeer,fs as lorodoc_subscribeJsonpath,Es as lorodoc_subscribeLocalUpdates,j as lorodoc_subscribePreCommit,ua as lorodoc_toJSON,ar as lorodoc_travelChangeAncestors,ia as lorodoc_version,js as lorodoc_vvToFrontiers,Ms as lorolist_clear,Ys as lorolist_delete,Ya as lorolist_get,e as lorolist_getAttached,To as lorolist_getCursor,fr as lorolist_getIdAt,Fe as lorolist_getShallowValue,nr as lorolist_id,le as lorolist_insert,mo as lorolist_insertContainer,He as lorolist_isAttached,pr as lorolist_isDeleted,Ao as lorolist_kind,Ae as lorolist_length,Ir as lorolist_new,Jo as lorolist_parent,Wo as lorolist_pop,Qe as lorolist_push,Je as lorolist_pushContainer,$o as lorolist_subscribe,Go as lorolist_toArray,ro as lorolist_toJSON,Er as loromap_clear,Yr as loromap_delete,ho as loromap_entries,jr as loromap_get,ds as loromap_getAttached,C as loromap_getLastEditor,Mr as loromap_getOrCreateContainer,bs as loromap_getShallowValue,L as loromap_id,N as loromap_isAttached,Ba as loromap_isDeleted,he as loromap_keys,d as loromap_kind,me as loromap_new,Na as loromap_parent,La as loromap_set,qa as loromap_setContainer,B as loromap_size,ra as loromap_subscribe,Ca as loromap_toJSON,rs as loromap_values,et as loromovablelist_clear,b as loromovablelist_delete,Ns as loromovablelist_get,Z as loromovablelist_getAttached,Cs as loromovablelist_getCreatorAt,Ls as loromovablelist_getCursor,q as loromovablelist_getLastEditorAt,ba as loromovablelist_getLastMoverAt,sr as loromovablelist_getShallowValue,da as loromovablelist_id,qs as loromovablelist_insert,Bs as loromovablelist_insertContainer,Zs as loromovablelist_isAttached,Za as loromovablelist_isDeleted,r as loromovablelist_kind,Eo as loromovablelist_length,hr as loromovablelist_move,Le as loromovablelist_new,tr as loromovablelist_parent,ee as loromovablelist_pop,no as loromovablelist_push,Re as loromovablelist_pushContainer,mr as loromovablelist_set,Co as loromovablelist_setContainer,Ce as loromovablelist_subscribe,Or as loromovablelist_toArray,No as loromovablelist_toJSON,Bo as lorotext_applyDelta,Ge as lorotext_charAt,Ne as lorotext_convertPos,Yo as lorotext_delete,jo as lorotext_deleteUtf8,oo as lorotext_getAttached,kr as lorotext_getCursor,Qr as lorotext_getEditorOf,bo as lorotext_getShallowValue,Hr as lorotext_id,ns as lorotext_insert,x as lorotext_insertUtf8,Fr as lorotext_isAttached,ps as lorotext_isDeleted,V as lorotext_iter,y as lorotext_kind,Ua as lorotext_length,be as lorotext_mark,n as lorotext_new,de as lorotext_parent,ya as lorotext_push,Va as lorotext_slice,za as lorotext_sliceDelta,U as lorotext_sliceDeltaUtf8,oa as lorotext_splice,xa as lorotext_subscribe,os as lorotext_toDelta,st as lorotext_toJSON,p as lorotext_toString,ys as lorotext_unmark,X as lorotext_update,xs as lorotext_updateByLine,Vs as lorotree_createNode,z as lorotree_delete,pa as lorotree_disableFractionalIndex,$e as lorotree_enableFractionalIndex,na as lorotree_getAttached,zs as lorotree_getNodeByID,Us as lorotree_getNodes,Xs as lorotree_getShallowValue,Xa as lorotree_has,o as lorotree_id,Vo as lorotree_isAttached,wr as lorotree_isDeleted,Ee as lorotree_isFractionalIndexEnabled,rr as lorotree_isNodeDeleted,oe as lorotree_kind,_o as lorotree_move,Be as lorotree_new,cr as lorotree_nodes,fo as lorotree_parent,fe as lorotree_roots,Ar as lorotree_subscribe,Io as lorotree_toArray,Mo as lorotree_toJSON,qe as lorotreenode___getClassname,Ie as lorotreenode_children,Xo as lorotreenode_createNode,zo as lorotreenode_creationId,so as lorotreenode_creator,Jr as lorotreenode_data,Kr as lorotreenode_fractionalIndex,uo as lorotreenode_getLastMoveId,Wr as lorotreenode_id,_s as lorotreenode_index,v as lorotreenode_isDeleted,Tr as lorotreenode_move,gs as lorotreenode_moveAfter,k as lorotreenode_moveBefore,O as lorotreenode_parent,Fa as lorotreenode_toJSON,ue as memory,_ as redactJsonUpdates,ie as run,Oa as setDebug,ka as undomanager_addExcludeOriginPrefix,Ha as undomanager_canRedo,F as undomanager_canUndo,sa as undomanager_clear,va as undomanager_groupEnd,ss as undomanager_groupStart,at as undomanager_new,g as undomanager_peer,Os as undomanager_redo,Q as undomanager_setMaxUndoSteps,vs as undomanager_setMergeInterval,ks as undomanager_setOnPop,H as undomanager_setOnPush,ga as undomanager_topRedoValue,Ze as undomanager_topUndoValue,_a as undomanager_undo,Hs as versionvector_compare,Fs as versionvector_decode,Qs as versionvector_encode,Qa as versionvector_get,s as versionvector_length,Po as versionvector_new,xr as versionvector_parseJSON,Te as versionvector_remove,_r as versionvector_setEnd,te as versionvector_setLast,co as versionvector_toJSON};
|
|
1
|
+
import{$ as a,$a as s,$i as o,$n as e,$r as r,$t as t,A as l,Aa as _,Ai as n,An as i,Ar as d,At as c,B as m,Ba as g,Bi as p,Bn as u,Br as b,Bt as w,C as h,Ca as v,Ci as x,Cn as f,Cr as C,Ct as S,D as A,Da as O,Di as y,Dn as I,Dr as N,Dt as D,E as J,Ea as k,Ei as V,En as E,Er as L,Et as P,F as T,Fa as F,Fi as U,Fn as M,Fr as B,Ft as R,G as W,Ga as H,Gi as z,Gn as j,Gr as q,Gt as G,H as K,Ha as Q,Hi as X,Hn as Y,Hr as Z,Ht as $,I as aa,Ia as sa,Ii as oa,In as ea,Ir as ra,It as ta,J as la,Ja as _a,Ji as na,Jn as ia,Jr as da,Jt as ca,K as ma,Ka as ga,Ki as pa,Kn as ua,Kr as ba,Kt as wa,L as ha,La as va,Li as xa,Ln as fa,Lr as Ca,Lt as Sa,M as Aa,Ma as Oa,Mi as ya,Mn as Ia,Mr as Na,Mt as Da,N as Ja,Na as ka,Ni as Va,Nn as Ea,Nr as La,Nt as Pa,O as Ta,Oa as Fa,Oi as Ua,On as Ma,Or as Ba,Ot as Ra,P as Wa,Pa as Ha,Pi as za,Pn as ja,Pr as qa,Pt as Ga,Q as Ka,Qa,Qi as Xa,Qn as Ya,Qr as Za,Qt as $a,R as as,Ra as ss,Ri as os,Rn as es,Rr as rs,Rt as ts,S as ls,Sa as _s,Si as ns,Sn as is,Sr as ds,St as cs,T as ms,Ta as gs,Ti as ps,Tn as us,Tr as bs,Tt as ws,U as hs,Ua as vs,Ui as xs,Un as fs,Ur as Cs,Ut as Ss,V as As,Va as Os,Vi as ys,Vn as Is,Vr as Ns,Vt as Ds,W as Js,Wa as ks,Wi as Vs,Wn as Es,Wr as Ls,Wt as Ps,X as Ts,Xa as Fs,Xi as Us,Xn as Ms,Xr as Bs,Xt as Rs,Y as Ws,Ya as Hs,Yi as zs,Yn as js,Yr as qs,Yt as Gs,Z as Ks,Za as Qs,Zi as Xs,Zn as Ys,Zr as Zs,Zt as $s,_ as ao,_a as so,_i as oo,_n as eo,_r as ro,_t as to,a as lo,aa as _o,ai as no,an as io,ao as co,ar as mo,at as go,b as po,ba as uo,bi as bo,bn as wo,br as ho,bt as vo,c as xo,ca as fo,ci as Co,cn as So,cr as Ao,ct as Oo,d as yo,da as Io,di as No,dn as Do,dr as Jo,dt as ko,ea as Vo,ei as Eo,en as Lo,eo as Po,er as To,et as Fo,f as Uo,fa as Mo,fi as Bo,fn as Ro,fr as Wo,g as Ho,ga as zo,gi as jo,gn as qo,gr as Go,gt as Ko,h as Qo,ha as Xo,hi as Yo,hn as Zo,hr as $o,ht as ae,i as se,ia as oe,ii as ee,in as re,io as te,ir as le,it as _e,j as ne,ja as ie,ji as de,jn as ce,jr as me,jt as ge,k as pe,ka as ue,ki as be,kn as we,kr as he,kt as ve,l as xe,la as fe,li as Ce,ln as Se,lr as Ae,lt as Oe,m as ye,ma as Ie,mi as Ne,mn as De,mr as Je,mt as ke,n as Ve,na as Ee,ni as Le,nn as Pe,no as Te,nr as Fe,nt as Ue,o as Me,oa as Be,oi as Re,on as We,or as He,ot as ze,p as je,pa as qe,pi as Ge,pn as Ke,pr as Qe,pt as Xe,q as Ye,qa as Ze,qi as $e,qn as ar,qr as sr,qt as or,r as er,ra as rr,ri as tr,rn as lr,ro as _r,rr as nr,rt as ir,s as dr,sa as cr,si as mr,sn as gr,sr as pr,st as ur,t as br,ta as wr,ti as hr,tn as vr,to as xr,tr as fr,tt as Cr,u as Sr,ua as Ar,ui as Or,un as yr,ur as Ir,ut as Nr,v as Dr,va as Jr,vi as kr,vn as Vr,vr as Er,vt as Lr,w as Pr,wa as Tr,wi as Fr,wn as Ur,wr as Mr,wt as Br,x as Rr,xa as Wr,xi as Hr,xn as zr,xr as jr,xt as qr,y as Gr,ya as Kr,yi as Qr,yn as Xr,yr as Yr,yt as Zr,z as $r,za as at,zi as st,zn as ot,zr as et,zt as rt,__tla as tt}from"./loro_wasm_bg-Bu4Ofw1K.js";let lt=Promise.all([(()=>{try{return tt}catch{}})()]).then(async()=>{});export{br as LORO_VERSION,Ve as __externref_drop_slice,er as __externref_table_alloc,se as __externref_table_dealloc,lt as __tla,lo as __wbg_awarenesswasm_free,Me as __wbg_changemodifier_free,dr as __wbg_cursor_free,xo as __wbg_ephemeralstorewasm_free,xe as __wbg_lorocounter_free,Sr as __wbg_lorodoc_free,yo as __wbg_lorolist_free,Uo as __wbg_loromap_free,je as __wbg_loromovablelist_free,ye as __wbg_lorotext_free,Qo as __wbg_lorotree_free,Ho as __wbg_lorotreenode_free,ao as __wbg_undomanager_free,Dr as __wbg_versionvector_free,Gr as __wbindgen_exn_store,po as __wbindgen_export_4,Rr as __wbindgen_export_6,ls as __wbindgen_free,h as __wbindgen_malloc,Pr as __wbindgen_realloc,ms as __wbindgen_start,J as _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h423c5eefcad13156,A as awarenesswasm_apply,Ta as awarenesswasm_encode,pe as awarenesswasm_encodeAll,l as awarenesswasm_getAllStates,ne as awarenesswasm_getState,Aa as awarenesswasm_getTimestamp,Ja as awarenesswasm_isEmpty,Wa as awarenesswasm_length,T as awarenesswasm_new,aa as awarenesswasm_peer,ha as awarenesswasm_peers,as as awarenesswasm_removeOutdated,$r as awarenesswasm_setLocalState,m as callPendingEvents,As as changemodifier_setMessage,K as changemodifier_setTimestamp,hs as closure9_externref_shim,Js as cursor_containerId,W as cursor_decode,ma as cursor_encode,Ye as cursor_kind,la as cursor_pos,Ws as cursor_side,Ts as decodeFrontiers,Ks as decodeImportBlobMeta,Ka as encodeFrontiers,a as ephemeralstorewasm_apply,Fo as ephemeralstorewasm_delete,Cr as ephemeralstorewasm_encode,Ue as ephemeralstorewasm_encodeAll,ir as ephemeralstorewasm_get,_e as ephemeralstorewasm_getAllStates,go as ephemeralstorewasm_isEmpty,ze as ephemeralstorewasm_keys,ur as ephemeralstorewasm_new,Oo as ephemeralstorewasm_removeOutdated,Oe as ephemeralstorewasm_set,Nr as ephemeralstorewasm_subscribe,ko as ephemeralstorewasm_subscribeLocalUpdates,Xe as lorocounter_decrement,ke as lorocounter_getAttached,ae as lorocounter_getShallowValue,Ko as lorocounter_id,to as lorocounter_increment,Lr as lorocounter_isAttached,Zr as lorocounter_kind,vo as lorocounter_new,qr as lorocounter_parent,cs as lorocounter_subscribe,S as lorocounter_toJSON,Br as lorocounter_value,ws as lorodoc_JSONPath,P as lorodoc_applyDiff,D as lorodoc_attach,Ra as lorodoc_changeCount,ve as lorodoc_checkout,c as lorodoc_checkoutToLatest,ge as lorodoc_clearNextCommitOptions,Da as lorodoc_cmpFrontiers,Pa as lorodoc_cmpWithFrontiers,Ga as lorodoc_commit,R as lorodoc_configDefaultTextStyle,ta as lorodoc_configTextStyle,Sa as lorodoc_debugHistory,ts as lorodoc_deleteRootContainer,rt as lorodoc_detach,w as lorodoc_diff,Ds as lorodoc_export,$ as lorodoc_exportJsonInIdSpan,Ss as lorodoc_exportJsonUpdates,Ps as lorodoc_findIdSpansBetween,G as lorodoc_fork,wa as lorodoc_forkAt,or as lorodoc_fromSnapshot,ca as lorodoc_frontiers,Gs as lorodoc_frontiersToVV,Rs as lorodoc_getAllChanges,$s as lorodoc_getByPath,$a as lorodoc_getChangeAt,t as lorodoc_getChangeAtLamport,Lo as lorodoc_getChangedContainersIn,vr as lorodoc_getContainerById,Pe as lorodoc_getCounter,lr as lorodoc_getCursorPos,re as lorodoc_getDeepValueWithID,io as lorodoc_getList,We as lorodoc_getMap,gr as lorodoc_getMovableList,So as lorodoc_getOpsInChange,Se as lorodoc_getPathToContainer,yr as lorodoc_getPendingTxnLength,Do as lorodoc_getShallowValue,Ro as lorodoc_getText,Ke as lorodoc_getTree,De as lorodoc_getUncommittedOpsAsJson,Zo as lorodoc_hasContainer,qo as lorodoc_import,eo as lorodoc_importBatch,Vr as lorodoc_importJsonUpdates,Xr as lorodoc_importUpdateBatch,wo as lorodoc_isDetached,zr as lorodoc_isDetachedEditingEnabled,is as lorodoc_isShallow,f as lorodoc_new,Ur as lorodoc_opCount,us as lorodoc_oplogFrontiers,E as lorodoc_oplogVersion,I as lorodoc_peerId,Ma as lorodoc_peerIdStr,we as lorodoc_revertTo,i as lorodoc_setChangeMergeInterval,ce as lorodoc_setDetachedEditing,Ia as lorodoc_setHideEmptyRootContainers,Ea as lorodoc_setNextCommitMessage,ja as lorodoc_setNextCommitOptions,M as lorodoc_setNextCommitOrigin,ea as lorodoc_setNextCommitTimestamp,fa as lorodoc_setPeerId,es as lorodoc_setRecordTimestamp,ot as lorodoc_shallowSinceFrontiers,u as lorodoc_shallowSinceVV,Is as lorodoc_subscribe,Y as lorodoc_subscribeFirstCommitFromPeer,fs as lorodoc_subscribeJsonpath,Es as lorodoc_subscribeLocalUpdates,j as lorodoc_subscribePreCommit,ua as lorodoc_toJSON,ar as lorodoc_travelChangeAncestors,ia as lorodoc_version,js as lorodoc_vvToFrontiers,Ms as lorolist_clear,Ys as lorolist_delete,Ya as lorolist_get,e as lorolist_getAttached,To as lorolist_getCursor,fr as lorolist_getIdAt,Fe as lorolist_getShallowValue,nr as lorolist_id,le as lorolist_insert,mo as lorolist_insertContainer,He as lorolist_isAttached,pr as lorolist_isDeleted,Ao as lorolist_kind,Ae as lorolist_length,Ir as lorolist_new,Jo as lorolist_parent,Wo as lorolist_pop,Qe as lorolist_push,Je as lorolist_pushContainer,$o as lorolist_subscribe,Go as lorolist_toArray,ro as lorolist_toJSON,Er as loromap_clear,Yr as loromap_delete,ho as loromap_entries,jr as loromap_get,ds as loromap_getAttached,C as loromap_getLastEditor,Mr as loromap_getOrCreateContainer,bs as loromap_getShallowValue,L as loromap_id,N as loromap_isAttached,Ba as loromap_isDeleted,he as loromap_keys,d as loromap_kind,me as loromap_new,Na as loromap_parent,La as loromap_set,qa as loromap_setContainer,B as loromap_size,ra as loromap_subscribe,Ca as loromap_toJSON,rs as loromap_values,et as loromovablelist_clear,b as loromovablelist_delete,Ns as loromovablelist_get,Z as loromovablelist_getAttached,Cs as loromovablelist_getCreatorAt,Ls as loromovablelist_getCursor,q as loromovablelist_getLastEditorAt,ba as loromovablelist_getLastMoverAt,sr as loromovablelist_getShallowValue,da as loromovablelist_id,qs as loromovablelist_insert,Bs as loromovablelist_insertContainer,Zs as loromovablelist_isAttached,Za as loromovablelist_isDeleted,r as loromovablelist_kind,Eo as loromovablelist_length,hr as loromovablelist_move,Le as loromovablelist_new,tr as loromovablelist_parent,ee as loromovablelist_pop,no as loromovablelist_push,Re as loromovablelist_pushContainer,mr as loromovablelist_set,Co as loromovablelist_setContainer,Ce as loromovablelist_subscribe,Or as loromovablelist_toArray,No as loromovablelist_toJSON,Bo as lorotext_applyDelta,Ge as lorotext_charAt,Ne as lorotext_convertPos,Yo as lorotext_delete,jo as lorotext_deleteUtf8,oo as lorotext_getAttached,kr as lorotext_getCursor,Qr as lorotext_getEditorOf,bo as lorotext_getShallowValue,Hr as lorotext_id,ns as lorotext_insert,x as lorotext_insertUtf8,Fr as lorotext_isAttached,ps as lorotext_isDeleted,V as lorotext_iter,y as lorotext_kind,Ua as lorotext_length,be as lorotext_mark,n as lorotext_new,de as lorotext_parent,ya as lorotext_push,Va as lorotext_slice,za as lorotext_sliceDelta,U as lorotext_sliceDeltaUtf8,oa as lorotext_splice,xa as lorotext_subscribe,os as lorotext_toDelta,st as lorotext_toJSON,p as lorotext_toString,ys as lorotext_unmark,X as lorotext_update,xs as lorotext_updateByLine,Vs as lorotree_createNode,z as lorotree_delete,pa as lorotree_disableFractionalIndex,$e as lorotree_enableFractionalIndex,na as lorotree_getAttached,zs as lorotree_getNodeByID,Us as lorotree_getNodes,Xs as lorotree_getShallowValue,Xa as lorotree_has,o as lorotree_id,Vo as lorotree_isAttached,wr as lorotree_isDeleted,Ee as lorotree_isFractionalIndexEnabled,rr as lorotree_isNodeDeleted,oe as lorotree_kind,_o as lorotree_move,Be as lorotree_new,cr as lorotree_nodes,fo as lorotree_parent,fe as lorotree_roots,Ar as lorotree_subscribe,Io as lorotree_toArray,Mo as lorotree_toJSON,qe as lorotreenode___getClassname,Ie as lorotreenode_children,Xo as lorotreenode_createNode,zo as lorotreenode_creationId,so as lorotreenode_creator,Jr as lorotreenode_data,Kr as lorotreenode_fractionalIndex,uo as lorotreenode_getLastMoveId,Wr as lorotreenode_id,_s as lorotreenode_index,v as lorotreenode_isDeleted,Tr as lorotreenode_move,gs as lorotreenode_moveAfter,k as lorotreenode_moveBefore,O as lorotreenode_parent,Fa as lorotreenode_toJSON,ue as memory,_ as redactJsonUpdates,ie as run,Oa as setDebug,ka as undomanager_addExcludeOriginPrefix,Ha as undomanager_canRedo,F as undomanager_canUndo,sa as undomanager_clear,va as undomanager_groupEnd,ss as undomanager_groupStart,at as undomanager_new,g as undomanager_peer,Os as undomanager_redo,Q as undomanager_setMaxUndoSteps,vs as undomanager_setMergeInterval,ks as undomanager_setOnPop,H as undomanager_setOnPush,ga as undomanager_topRedoValue,Ze as undomanager_topUndoValue,_a as undomanager_undo,Hs as versionvector_compare,Fs as versionvector_decode,Qs as versionvector_encode,Qa as versionvector_get,s as versionvector_length,Po as versionvector_new,xr as versionvector_parseJSON,Te as versionvector_remove,_r as versionvector_setEnd,te as versionvector_setLast,co as versionvector_toJSON};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var VA=Object.defineProperty;var qA=(a,A,e)=>A in a?VA(a,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[A]=e;var nA=(a,A,e)=>qA(a,typeof A!="symbol"?A+"":A,e);import{s as uA}from"./chunk-LvLJmgfZ.js";import{d as F,i as mA,l as YA,u as C}from"./useEvent-D91BmmQi.js";import{t as WA}from"./react-Bj1aDYRI.js";import{E as fA,Er as XA,F as JA,Fn as zA,Gt as $A,Ht as Ae,L as ee,Oi as ae,Pi as te,Sn as Ge,T as oe,Ut as se,Wt as re,_n as ne,b as ke,h as kA,it as ie,jr as pA,k as Re,l as le,lt as Ze,ot as xA,rt as ce,z as ge}from"./cells-A-ljPpuj.js";import{t as d}from"./compiler-runtime-B3qBwwSJ.js";import{S as he,_ as de,b as Be,c as ue,h as me,i as Ye,m as fe,n as pe,o as Q,r as xe,s as we,t as De,v as ve,y as Ee}from"./state-LyvUXW6A.js";import{_ as D,d as wA,t as ye}from"./useEventListener-BR0C1MaI.js";import{C as Ce,b as be}from"./utils-DIGrmLDO.js";import{r as iA}from"./constants-DMpttj8Q.js";import{S as RA,b as P,c as Me,h as Ne,o as _e,x as p}from"./config-ChCHm539.js";import{n as je,o as Se}from"./switch-DlgpDZMk.js";import{n as Fe}from"./ErrorBoundary-DzYV_VeY.js";import{n as Qe,t as Y}from"./cn-DCUzRj2J.js";import{t as Pe}from"./jsx-runtime-BqBOg78p.js";import{a as Le,n as Oe}from"./fullscreen-BDxedMYP.js";import{_ as Te,f as Ie,g as Ke,h as DA,m as vA,p as EA,v as yA,y as He}from"./alert-dialog-BGBdrcqJ.js";import{ht as Ue,lt as CA,mt as Ve,ut as bA}from"./JsonOutput-BVAcY5xS.js";import{h as qe}from"./download-Iyng0xCz.js";import{t as lA}from"./tooltip-Gcwqb_SK.js";import{t as ZA}from"./button-D9nb17Rw.js";import{t as We}from"./createReducer-1ePoj7v6.js";import{i as Xe}from"./strings-md4mFbOQ.js";import{t as Je}from"./requests-DIwGYs0l.js";import{t as J}from"./createLucideIcon-D5guW7EU.js";import{O as ze,a as $e,i as MA,k as NA,n as Aa,o as ea,s as aa}from"./layout-DDh3d8oW.js";import{o as ta,r as Ga,s as oa}from"./state-svfaehZt.js";import{c as sa}from"./markdown-renderer-CFrgiLqu.js";import{n as ra}from"./spinner-Bhir8k53.js";import{i as na,n as ka}from"./readonly-python-code-B0nrQE3U.js";import{t as ia}from"./uuid-DXdzqzcr.js";import{t as cA}from"./use-toast-BDYuj3zG.js";import{i as Ra}from"./session-nmTRerwF.js";import{t as la}from"./RenderHTML-DR6lqJGS.js";import{r as _A}from"./share-BXN2Sd1t.js";import{r as jA}from"./errors-CZb6hI2x.js";import{s as Za}from"./react-icons.esm-BUYTQ32a.js";import{r as SA}from"./events-Qeh-bHlj.js";import{i as ca}from"./cell-link-d38hFEon.js";import{t as ga}from"./error-banner-CTBwdcdk.js";import{n as ha}from"./useAsyncData-dS4Ne6pU.js";import{t as da}from"./requests-BqcqF00P.js";import{t as Ba}from"./request-registry-D-jptgP0.js";import{t as ua}from"./ws-CtTwmdal.js";import{n as ma}from"./types-z6Sk3JCV.js";import{n as Ya}from"./runs-5odJFrfi.js";var fa=J("hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]),FA=J("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),pa=J("square-arrow-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]),xa=J("unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]),wa=d(),n=uA(Pe(),1);const Da=a=>{let A=(0,wa.c)(10),{reason:e,canTakeover:t}=a,o=t===void 0?!1:t,G=va;if(o){let k;A[0]===Symbol.for("react.memo_cache_sentinel")?(k=(0,n.jsx)("div",{className:"flex justify-between",children:(0,n.jsx)("span",{className:"font-bold text-xl flex items-center mb-2",children:"Notebook already connected"})}),A[0]=k):k=A[0];let r;A[1]===e?r=A[2]:(r=(0,n.jsx)("span",{children:e}),A[1]=e,A[2]=r);let i;A[3]===o?i=A[4]:(i=o&&(0,n.jsxs)(ZA,{onClick:G,variant:"outline","data-testid":"takeover-button",className:"shrink-0",children:[(0,n.jsx)(pa,{className:"w-4 h-4 mr-2"}),"Take over session"]}),A[3]=o,A[4]=i);let R;return A[5]!==r||A[6]!==i?(R=(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsxs)(ga,{kind:"info",className:"mt-10 flex flex-col rounded p-3 max-w-[800px] mx-4",children:[k,(0,n.jsxs)("div",{className:"flex justify-between items-end text-base gap-20",children:[r,i]})]})}),A[5]=r,A[6]=i,A[7]=R):R=A[7],R}let s;return A[8]===e?s=A[9]:(s=(0,n.jsx)("div",{className:"font-mono text-center text-base text-(--red-11)",children:(0,n.jsx)("p",{children:e})}),A[8]=e,A[9]=s),s};async function va(){try{let a=new URL(window.location.href).searchParams;await je.post(`/kernel/takeover?${a.toString()}`,{}),_A()}catch(a){cA({title:"Failed to take over session",description:jA(a),variant:"danger"})}}var Ea=d(),u=uA(WA(),1);const ya=a=>{let A=(0,Ea.c)(8),{connection:e,className:t,children:o}=a,G;A[0]!==e.canTakeover||A[1]!==e.reason||A[2]!==e.state?(G=e.state===p.CLOSED&&(0,n.jsx)(Da,{reason:e.reason,canTakeover:e.canTakeover}),A[0]=e.canTakeover,A[1]=e.reason,A[2]=e.state,A[3]=G):G=A[3];let s;return A[4]!==o||A[5]!==t||A[6]!==G?(s=(0,n.jsxs)("div",{className:t,children:[o,G]}),A[4]=o,A[5]=t,A[6]=G,A[7]=s):s=A[7],s};var Ca=d();const ba=a=>{let A=(0,Ca.c)(10),{title:e}=a,[t,o]=(0,u.useState)(e),[G,s]=(0,u.useState)(!0),k,r;A[0]!==t||A[1]!==e?(k=()=>{if(e!==t){s(!1);let g=setTimeout(()=>{o(e),s(!0)},300);return()=>clearTimeout(g)}},r=[e,t],A[0]=t,A[1]=e,A[2]=k,A[3]=r):(k=A[2],r=A[3]),(0,u.useEffect)(k,r);let i;A[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(ra,{className:"size-20 animate-spin text-primary","data-testid":"large-spinner",strokeWidth:1}),A[4]=i):i=A[4];let R=G?"opacity-100":"opacity-0",l;A[5]===R?l=A[6]:(l=Y("mt-2 text-muted-foreground font-semibold text-lg transition-opacity duration-300",R),A[5]=R,A[6]=l);let c;return A[7]!==t||A[8]!==l?(c=(0,n.jsxs)("div",{className:"flex flex-col h-full flex-1 items-center justify-center p-4",children:[i,(0,n.jsx)("div",{className:l,children:t})]}),A[7]=t,A[8]=l,A[9]=c):c=A[9],c};var gA=d();const Ma=a=>{let A=(0,gA.c)(2),{children:e}=a;if(!RA())return e;let t;return A[0]===e?t=A[1]:(t=(0,n.jsx)(Na,{children:e}),A[0]=e,A[1]=t),t};var Na=a=>{let A=(0,gA.c)(3),{children:e}=a,t;A[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],A[0]=t):t=A[0];let{isPending:o,error:G}=ha(ja,t),s=C(de);if(o){let k;return A[1]===Symbol.for("react.memo_cache_sentinel")?(k=(0,n.jsx)(QA,{}),A[1]=k):k=A[1],k}if(!s&&ie()==="read"&&_a()){let k;return A[2]===Symbol.for("react.memo_cache_sentinel")?(k=(0,n.jsx)(QA,{}),A[2]=k):k=A[2],k}if(G)throw G;return e};function _a(){return Ra(iA.showCode,"false")||!mA.get(Se)}const QA=a=>{let A=(0,gA.c)(2),e=C(ve),t;return A[0]===e?t=A[1]:(t=(0,n.jsx)(ba,{title:e}),A[0]=e,A[1]=t),t};async function ja(){return await fe.INSTANCE.initialized.promise,!0}var Sa={idle:"./favicon.ico",success:"data:image/x-icon;base64,AAABAAEAMDAAAAEACACoDgAAFgAAACgAAAAwAAAAYAAAAAEACAAAAAAAAAkAAAAAAAAAAAAAAAEAAAABAAAAAAAAXXQAAFd3AwBWeAQAVngEAFd4AwBXeAQAVnkEAFh3AwBXdwQAVXcGAFd4BQBXeAQAWHgEAFd6AwBXeAMAVnkEAFZ5AwBXdwQAV3cFAFd4BABYeAQAV3gEAFh4BABXeAQA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAHwAA+AAAAAAfAAD8AAAAAD8AAP4AAAAAfwAA/wAAAAD/AAD/gAAAAf8AAP/AAAAD/wAA/+AAAAf/AAD/+AAAH/8AAP/+AAB//wAA//+AAf//AAD///////8AAP///////wAA"};async function L(a){return Sa[a]}function Fa(a){if(document.visibilityState==="visible")return;let A=async()=>{a===0?new Notification("Execution completed",{body:"Your notebook run completed successfully.",icon:await L("success")}):new Notification("Execution failed",{body:`Your notebook run encountered ${a} error(s).`,icon:await L("error")})};!("Notification"in window)||Notification.permission==="denied"||(Notification.permission==="granted"?A():Notification.permission==="default"&&Notification.requestPermission().then(e=>{e==="granted"&&A()}))}const Qa=a=>{let{isRunning:A}=a,e=Re(),t=document.querySelector("link[rel~='icon']");t||(t=document.createElement("link"),t.rel="icon",document.getElementsByTagName("head")[0].append(t)),(0,u.useEffect)(()=>{!A&&t.href.includes("favicon")||(async()=>{let G;if(G=A?"running":e.length===0?"success":"error",t.href=await L(G),!document.hasFocus())return;let s=setTimeout(async()=>{t.href=await L("idle")},3e3);return()=>clearTimeout(s)})()},[A,e,t]);let o=ze(A)??A;return(0,u.useEffect)(()=>{o&&!A&&Fa(e.length)},[e,o,A]),ye(window,"focus",async G=>{A||(t.href=await L("idle"))}),null};function Pa(){let{cellRuntime:a}=mA.get(ke),A=wA.entries(a).find(([e,t])=>t.status==="running");A&&ca(A[0],"focus")}var O=d();const La=a=>{let A=(0,O.c)(22),{connection:e,isRunning:t}=a,{mode:o}=C(Ze),G=e.state===p.CLOSED,s=e.state===p.OPEN,k;A[0]!==e.canTakeover||A[1]!==G?(k=G&&!e.canTakeover&&(0,n.jsx)(Ka,{}),A[0]=e.canTakeover,A[1]=G,A[2]=k):k=A[2];let r=o==="read"?"fixed":"absolute",i;A[3]===r?i=A[4]:(i=Y("z-50 top-4 left-4",r),A[3]=r,A[4]=i);let R;A[5]!==s||A[6]!==t?(R=s&&t&&(0,n.jsx)(Ia,{}),A[5]=s,A[6]=t,A[7]=R):R=A[7];let l;A[8]!==e.canTakeover||A[9]!==G?(l=G&&!e.canTakeover&&(0,n.jsx)(Oa,{}),A[8]=e.canTakeover,A[9]=G,A[10]=l):l=A[10];let c;A[11]!==e.canTakeover||A[12]!==G?(c=G&&e.canTakeover&&(0,n.jsx)(Ta,{}),A[11]=e.canTakeover,A[12]=G,A[13]=c):c=A[13];let g;A[14]!==i||A[15]!==R||A[16]!==l||A[17]!==c?(g=(0,n.jsxs)("div",{className:i,children:[R,l,c]}),A[14]=i,A[15]=R,A[16]=l,A[17]=c,A[18]=g):g=A[18];let B;return A[19]!==k||A[20]!==g?(B=(0,n.jsxs)(n.Fragment,{children:[k,g]}),A[19]=k,A[20]=g,A[21]=B):B=A[21],B};var hA="print:hidden pointer-events-auto hover:cursor-pointer",Oa=()=>{let a=(0,O.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,n.jsx)(lA,{content:"App disconnected",children:(0,n.jsx)("div",{className:hA,children:(0,n.jsx)(xa,{className:"w-[25px] h-[25px] text-(--red-11)"})})}),a[0]=A):A=a[0],A},Ta=()=>{let a=(0,O.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,n.jsx)(lA,{content:"Notebook locked",children:(0,n.jsx)("div",{className:hA,children:(0,n.jsx)(na,{className:"w-[25px] h-[25px] text-(--blue-11)"})})}),a[0]=A):A=a[0],A},Ia=()=>{let a=(0,O.c)(6),A=C(oe),e=A?"Scratchpad is running":"Jump to running cell",t=A?void 0:Pa,o;a[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(fa,{className:"running-app-icon",size:30,strokeWidth:1}),a[0]=o):o=a[0];let G;a[1]===t?G=a[2]:(G=(0,n.jsx)("div",{className:hA,"data-testid":"loading-indicator",onClick:t,children:o}),a[1]=t,a[2]=G);let s;return a[3]!==G||a[4]!==e?(s=(0,n.jsx)(lA,{content:e,side:"right",children:G}),a[3]=G,a[4]=e,a[5]=s):s=a[5],s},Ka=()=>{let a=(0,O.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"noise"}),(0,n.jsx)("div",{className:"disconnected-gradient"})]}),a[0]=A):A=a[0],A},b=d(),Ha=Te,Ua=He,Va=Oe(Ke),PA=u.forwardRef((a,A)=>{let e=(0,b.c)(9),t,o;e[0]===a?(t=e[1],o=e[2]):({className:t,...o}=a,e[0]=a,e[1]=t,e[2]=o);let G;e[3]===t?G=e[4]:(G=Y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),e[3]=t,e[4]=G);let s;return e[5]!==o||e[6]!==A||e[7]!==G?(s=(0,n.jsx)(DA,{className:G,...o,ref:A}),e[5]=o,e[6]=A,e[7]=G,e[8]=s):s=e[8],s});PA.displayName=DA.displayName;var qa=Qe("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),LA=u.forwardRef((a,A)=>{let e=(0,b.c)(15),t,o,G,s;e[0]===a?(t=e[1],o=e[2],G=e[3],s=e[4]):({side:s,className:o,children:t,...G}=a,e[0]=a,e[1]=t,e[2]=o,e[3]=G,e[4]=s);let k=s===void 0?"right":s,r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)(PA,{}),e[5]=r):r=e[5];let i;e[6]!==o||e[7]!==k?(i=Y(qa({side:k}),o),e[6]=o,e[7]=k,e[8]=i):i=e[8];let R;e[9]===Symbol.for("react.memo_cache_sentinel")?(R=(0,n.jsxs)(Ie,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,n.jsx)(Za,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]}),e[9]=R):R=e[9];let l;return e[10]!==t||e[11]!==G||e[12]!==A||e[13]!==i?(l=(0,n.jsx)(Va,{children:(0,n.jsxs)(Le,{children:[r,(0,n.jsxs)(EA,{ref:A,className:i,...G,children:[t,R]})]})}),e[10]=t,e[11]=G,e[12]=A,e[13]=i,e[14]=l):l=e[14],l});LA.displayName=EA.displayName;var Wa=a=>{let A=(0,b.c)(8),e,t;A[0]===a?(e=A[1],t=A[2]):({className:e,...t}=a,A[0]=a,A[1]=e,A[2]=t);let o;A[3]===e?o=A[4]:(o=Y("flex flex-col space-y-2 text-center sm:text-left",e),A[3]=e,A[4]=o);let G;return A[5]!==t||A[6]!==o?(G=(0,n.jsx)("div",{className:o,...t}),A[5]=t,A[6]=o,A[7]=G):G=A[7],G};Wa.displayName="SheetHeader";var Xa=a=>{let A=(0,b.c)(8),e,t;A[0]===a?(e=A[1],t=A[2]):({className:e,...t}=a,A[0]=a,A[1]=e,A[2]=t);let o;A[3]===e?o=A[4]:(o=Y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),A[3]=e,A[4]=o);let G;return A[5]!==t||A[6]!==o?(G=(0,n.jsx)("div",{className:o,...t}),A[5]=t,A[6]=o,A[7]=G):G=A[7],G};Xa.displayName="SheetFooter";var Ja=u.forwardRef((a,A)=>{let e=(0,b.c)(9),t,o;e[0]===a?(t=e[1],o=e[2]):({className:t,...o}=a,e[0]=a,e[1]=t,e[2]=o);let G;e[3]===t?G=e[4]:(G=Y("text-lg font-semibold text-foreground",t),e[3]=t,e[4]=G);let s;return e[5]!==o||e[6]!==A||e[7]!==G?(s=(0,n.jsx)(yA,{ref:A,className:G,...o}),e[5]=o,e[6]=A,e[7]=G,e[8]=s):s=e[8],s});Ja.displayName=yA.displayName;var za=u.forwardRef((a,A)=>{let e=(0,b.c)(9),t,o;e[0]===a?(t=e[1],o=e[2]):({className:t,...o}=a,e[0]=a,e[1]=t,e[2]=o);let G;e[3]===t?G=e[4]:(G=Y("text-sm text-muted-foreground",t),e[3]=t,e[4]=G);let s;return e[5]!==o||e[6]!==A||e[7]!==G?(s=(0,n.jsx)(vA,{ref:A,className:G,...o}),e[5]=o,e[6]=A,e[7]=G,e[8]=s):s=e[8],s});za.displayName=vA.displayName;var $a=d();const dA=(0,u.memo)(()=>{let a=(0,$a.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,n.jsx)(Ve,{name:bA.SIDEBAR}),a[0]=A):A=a[0],A});dA.displayName="SidebarSlot";var At=d();const et=a=>{let A=(0,At.c)(6),{openWidth:e}=a,t;A[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(Ua,{className:"lg:hidden",asChild:!0,children:(0,n.jsx)(ZA,{variant:"ghost",className:"bg-background",children:(0,n.jsx)(FA,{className:"w-5 h-5"})})}),A[0]=t):t=A[0];let o;A[1]===e?o=A[2]:(o={maxWidth:e},A[1]=e,A[2]=o);let G;A[3]===Symbol.for("react.memo_cache_sentinel")?(G=(0,n.jsx)(dA,{}),A[3]=G):G=A[3];let s;return A[4]===o?s=A[5]:(s=(0,n.jsxs)(Ha,{children:[t,(0,n.jsx)(LA,{className:"w-full px-3 h-full flex flex-col overflow-y-auto",style:o,side:"left",children:G})]}),A[4]=o,A[5]=s),s};var at=d();const tt=a=>{let A=(0,at.c)(7),{isOpen:e,toggle:t}=a,o=e?"rotate-0":"rotate-180",G;A[0]===o?G=A[1]:(G=Y("h-5 w-5 transition-transform ease-in-out duration-700",o),A[0]=o,A[1]=G);let s;A[2]===G?s=A[3]:(s=(0,n.jsx)(qe,{className:G}),A[2]=G,A[3]=s);let k;return A[4]!==s||A[5]!==t?(k=(0,n.jsx)("div",{className:"invisible lg:visible absolute top-[12px] right-[16px] z-20",children:(0,n.jsx)(ZA,{onClick:t,className:"w-10 h-8",variant:"ghost",size:"icon",children:s})}),A[4]=s,A[5]=t,A[6]=k):k=A[6],k};var Gt=d();const ot=a=>{let A=(0,Gt.c)(11),{isOpen:e,toggle:t,width:o}=a,G=e?o:De,s;A[0]===G?s=A[1]:(s={width:G},A[0]=G,A[1]=s);let k;A[2]===Symbol.for("react.memo_cache_sentinel")?(k=Y("app-sidebar auto-collapse-nav","top-0 left-0 z-20 h-full hidden lg:block relative transition-[width] ease-in-out duration-300"),A[2]=k):k=A[2];let r;A[3]!==e||A[4]!==t?(r=(0,n.jsx)(tt,{isOpen:e,toggle:t}),A[3]=e,A[4]=t,A[5]=r):r=A[5];let i;A[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)("div",{className:"relative h-full flex flex-col px-3 pb-16 pt-14 overflow-y-auto shadow-sm border-l",children:(0,n.jsx)(dA,{})}),A[6]=i):i=A[6];let R;return A[7]!==e||A[8]!==s||A[9]!==r?(R=(0,n.jsxs)("aside",{"data-expanded":e,style:s,className:k,children:[r,i]}),A[7]=e,A[8]=s,A[9]=r,A[10]=R):R=A[10],R};var st=d();const rt=a=>{let A=(0,st.c)(15),{children:e}=a,[t,o]=YA(xe),{isOpen:G,width:s}=t;if(Ue(bA.SIDEBAR).length===0)return e;let k;A[0]===s?k=A[1]:(k=pe(s),A[0]=s,A[1]=k);let r=k,i;A[2]!==o||A[3]!==G?(i=()=>o({type:"toggle",isOpen:!G}),A[2]=o,A[3]=G,A[4]=i):i=A[4];let R;A[5]!==G||A[6]!==r||A[7]!==i?(R=(0,n.jsx)(ot,{isOpen:G,width:r,toggle:i}),A[5]=G,A[6]=r,A[7]=i,A[8]=R):R=A[8];let l;A[9]===r?l=A[10]:(l=(0,n.jsx)("div",{className:"absolute top-3 left-4 flex items-center z-50",children:(0,n.jsx)(et,{openWidth:r})}),A[9]=r,A[10]=l);let c;return A[11]!==e||A[12]!==R||A[13]!==l?(c=(0,n.jsxs)("div",{className:"inset-0 absolute flex",children:[R,l,e]}),A[11]=e,A[12]=R,A[13]=l,A[14]=c):c=A[14],c};var nt=d();const kt=a=>{let A=(0,nt.c)(17),{width:e,connection:t,isRunning:o,children:G}=a,s=t.state,k;A[0]===o?k=A[1]:(k=(0,n.jsx)(Qa,{isRunning:o}),A[0]=o,A[1]=k);let r;A[2]!==t||A[3]!==o?(r=(0,n.jsx)(La,{connection:t,isRunning:o}),A[2]=t,A[3]=o,A[4]=r):r=A[4];let i;A[5]!==s||A[6]!==e?(i=Y("mathjax_ignore",Me(s)&&"disconnected","bg-background w-full h-full text-textColor","flex flex-col overflow-y-auto",e==="full"&&"config-width-full",e==="columns"?"overflow-x-auto":"overflow-x-hidden","print:height-fit"),A[5]=s,A[6]=e,A[7]=i):i=A[7];let R;A[8]!==G||A[9]!==s||A[10]!==i||A[11]!==e?(R=(0,n.jsx)(Ma,{children:(0,n.jsx)(rt,{children:(0,n.jsx)("div",{id:"App","data-config-width":e,"data-connection-state":s,className:i,children:G})})}),A[8]=G,A[9]=s,A[10]=i,A[11]=e,A[12]=R):R=A[12];let l;return A[13]!==k||A[14]!==r||A[15]!==R?(l=(0,n.jsxs)(n.Fragment,{children:[k,r,R]}),A[13]=k,A[14]=r,A[15]=R,A[16]=l):l=A[16],l};function it(a){return a.kind==="missing"}function OA(a){return a.kind==="installing"}var{valueAtom:Rt,useActions:lt}=We(()=>({packageAlert:null,startupLogsAlert:null,packageLogs:{}}),{addPackageAlert:(a,A)=>{var o;let e={...a.packageLogs};if(OA(A)&&A.logs&&A.log_status)for(let[G,s]of Object.entries(A.logs))switch(A.log_status){case"start":e[G]=s;break;case"append":e[G]=(e[G]||"")+s;break;case"done":e[G]=(e[G]||"")+s;break}let t=((o=a.packageAlert)==null?void 0:o.id)||ia();return{...a,packageAlert:{id:t,...A},packageLogs:e}},clearPackageAlert:(a,A)=>a.packageAlert!==null&&a.packageAlert.id===A?{...a,packageAlert:null,packageLogs:{}}:a,addStartupLog:(a,A)=>{var t;let e=((t=a.startupLogsAlert)==null?void 0:t.content)||"";return{...a,startupLogsAlert:{...a.startupLogsAlert,content:e+A.content,status:A.status}}},clearStartupLogsAlert:a=>({...a,startupLogsAlert:null})});const Zt=()=>C(Rt);function TA(){return lt()}var IA=d();const KA=(0,u.memo)(a=>{let A=(0,IA.c)(11),{appConfig:e,mode:t,children:o}=a,{selectedLayout:G,layoutData:s}=$e(),k=C(xA);if(t==="edit"&&!k)return o;let r;if(A[0]!==t||A[1]!==G){r=G;let c=new URLSearchParams(window.location.search);if(t==="read"&&c.has(iA.viewAs)){let g=c.get(iA.viewAs);ma.includes(g)&&(r=g)}A[0]=t,A[1]=G,A[2]=r}else r=A[2];let i;A[3]===r?i=A[4]:(i=ea.find(c=>c.type===r),A[3]=r,A[4]=i);let R=i;if(!R)return o;let l;return A[5]!==e||A[6]!==r||A[7]!==s||A[8]!==t||A[9]!==R?(l=(0,n.jsx)(ct,{appConfig:e,mode:t,plugin:R,layoutData:s,finalLayout:r}),A[5]=e,A[6]=r,A[7]=s,A[8]=t,A[9]=R,A[10]=l):l=A[10],l});KA.displayName="CellsRenderer";const ct=a=>{let A=(0,IA.c)(18),{appConfig:e,mode:t,plugin:o,layoutData:G,finalLayout:s}=a,k=JA(),{setCurrentLayoutData:r}=MA(),i,R,l,c,g;if(A[0]!==e||A[1]!==s||A[2]!==G||A[3]!==t||A[4]!==k||A[5]!==o){let x=le(k);i=o.Component,R=e,l=t,c=x,g=G[s]||o.getInitialLayout(x),A[0]=e,A[1]=s,A[2]=G,A[3]=t,A[4]=k,A[5]=o,A[6]=i,A[7]=R,A[8]=l,A[9]=c,A[10]=g}else i=A[6],R=A[7],l=A[8],c=A[9],g=A[10];let B;return A[11]!==i||A[12]!==r||A[13]!==R||A[14]!==l||A[15]!==c||A[16]!==g?(B=(0,n.jsx)(i,{appConfig:R,mode:l,cells:c,layout:g,setLayout:r}),A[11]=i,A[12]=r,A[13]=R,A[14]=l,A[15]=c,A[16]=g,A[17]=B):B=A[17],B};var gt=class HA{constructor(A){nA(this,"hasStarted",!1);nA(this,"handleReadyEvent",A=>{let e=A.detail.objectId;if(!this.uiElementRegistry.has(e))return;let t=this.uiElementRegistry.lookupValue(e);t!==void 0&&this.sendComponentValues({objectIds:[e],values:[t]}).catch(o=>{D.warn(o)})});this.uiElementRegistry=A}static get INSTANCE(){let A="_marimo_private_RuntimeState";return window[A]||(window[A]=new HA(Q)),window[A]}get sendComponentValues(){if(!this._sendComponentValues)throw Error("sendComponentValues is not set");return this._sendComponentValues}start(A){if(this.hasStarted){D.warn("RuntimeState already started");return}this._sendComponentValues=A,document.addEventListener(SA.TYPE,this.handleReadyEvent),this.hasStarted=!0}stop(){if(!this.hasStarted){D.warn("RuntimeState already stopped");return}document.removeEventListener(SA.TYPE,this.handleReadyEvent),this.hasStarted=!1}},ht=d();function dt(a){if(a.static)return Ee.empty();if(RA())return me();let A=a.url;return new ua(A,void 0,{maxRetries:10,debug:!1,startClosed:!0,connectionTimeout:1e4})}function Bt(a){let A=(0,ht.c)(15),{onOpen:e,onMessage:t,onClose:o,onError:G,waitToConnect:s}=a,k;A[0]!==o||A[1]!==G||A[2]!==t||A[3]!==e||A[4]!==a?(k=()=>{let l=dt(a);return l.addEventListener("open",e),l.addEventListener("close",o),l.addEventListener("error",G),l.addEventListener("message",t),l},A[0]=o,A[1]=G,A[2]=t,A[3]=e,A[4]=a,A[5]=k):k=A[5];let[r]=(0,u.useState)(k),i;A[6]!==o||A[7]!==G||A[8]!==t||A[9]!==e||A[10]!==r||A[11]!==s?(i=()=>(r.readyState===WebSocket.CLOSED&&s().then(()=>r.reconnect()).catch(l=>{D.error("Healthy connection never made",l),r.close()}),()=>{D.warn("useConnectionTransport is unmounting. This likely means there is a bug."),r.close(),r.removeEventListener("open",e),r.removeEventListener("close",o),r.removeEventListener("error",G),r.removeEventListener("message",t)}),A[6]=o,A[7]=G,A[8]=t,A[9]=e,A[10]=r,A[11]=s,A[12]=i):i=A[12];let R;return A[13]===r?R=A[14]:(R=[r],A[13]=r,A[14]=R),(0,u.useEffect)(i,R),r}function ut(a){let{codes:A,names:e,configs:t,cell_ids:o,last_executed_code:G,last_execution_time:s}=a,k=G||{},r=s||{};return A.map((i,R)=>{let l=o[R],c=k[l];return ee({id:l,code:i,edited:c?c!==i:!1,name:e[R],lastCodeRun:k[l]??null,lastExecutionTime:r[l]??null,config:t[R]})})}function mt(a,A,e){let t=Aa(),{layout:o}=a;if(o){let G=o.type,s=aa({type:G,data:o.data,cells:A});t.selectedLayout=G,t.layoutData[G]=s,e({layoutView:G,data:s})}return t}function Yt(){let a=[],A=[];return Q.entries.forEach((e,t)=>{a.push(t),A.push(e.value)}),{objectIds:a,values:A}}function ft(a,A){let{existingCells:e,autoInstantiate:t,setCells:o,setLayoutData:G,setAppConfig:s,setCapabilities:k,setKernelState:r,onError:i}=A,{resumed:R,ui_values:l,app_config:c,capabilities:g,auto_instantiated:B}=a,x=e&&e.length>0,y=x&&!R?e:ut(a);o(y,mt(a,y,G));let v=Ce.safeParse(c);if(v.success?s(v.data):D.error("Failed to parse app config",v.error),k(g),B)return;if(R){for(let[m,j]of wA.entries(l||{})){let S=m;Q.set(S,j)}return}let{objectIds:M,values:N}=Yt(),_=x?Object.fromEntries(e.map(m=>[m.id,m.code])):void 0;Je().sendInstantiate({objectIds:M,values:N,autoRun:t,codes:_}).then(()=>{r({isInstantiated:!0,error:null})}).catch(m=>{r({isInstantiated:!1,error:m}),i(Error("Failed to instantiate",{cause:m}))})}function pt(a){let A=a.cell_id;Q.removeElementsByCell(A),NA.INSTANCE.removeForCellId(A)}function xt(a,A){A(a),NA.INSTANCE.track(a)}const z={append:a=>{let A=new URL(window.location.href);A.searchParams.append(a.key,a.value),window.history.pushState({},"",`${A.pathname}${A.search}`)},set:a=>{let A=new URL(window.location.href);Array.isArray(a.value)?(A.searchParams.delete(a.key),a.value.forEach(e=>A.searchParams.append(a.key,e))):A.searchParams.set(a.key,a.value),window.history.pushState({},"",`${A.pathname}${A.search}`)},delete:a=>{let A=new URL(window.location.href);a.value==null?A.searchParams.delete(a.key):A.searchParams.delete(a.key,a.value),window.history.pushState({},"",`${A.pathname}${A.search}`)},clear:()=>{let a=new URL(window.location.href);a.search="",window.history.pushState({},"",`${a.pathname}${a.search}`)}};var wt=d();function Dt(){return Object.values(kA().cellData).filter(a=>a.id!==ae)}function vt(a){let A=(0,wt.c)(41),e=(0,u.useRef)(!0),{autoInstantiate:t,sessionId:o,setCells:G}=a,{showBoundary:s}=Fe(),{handleCellMessage:k}=fA(),r;A[0]===Symbol.for("react.memo_cache_sentinel")?(r={skipMiddleware:!0},A[0]=r):r=A[0];let i=fA(r),R;A[1]===i?R=A[2]:(R=h=>{ce(h.changes,i,_t)},A[1]=i,A[2]=R);let l=R,{addCellNotification:c}=Ya(),g=F(ka),B=be(),{setVariables:x,setMetadata:y}=zA(),{addColumnPreview:v}=pA(),{addDatasets:M,filterDatasetsFromVariables:N}=pA(),{addDataSourceConnection:_,filterDataSourcesFromVariables:m}=XA(),{setLayoutData:j}=MA(),[S,w]=YA(Ne),{addBanner:$}=he(),{addPackageAlert:T,addStartupLog:AA}=TA(),eA=F(xA),aA=F(Ge),E=_e(),tA=F(da),GA=F(Be),{setNamespaces:oA,filterFromVariables:sA}=Ga(),I;A[3]!==$||A[4]!==c||A[5]!==v||A[6]!==_||A[7]!==M||A[8]!==T||A[9]!==AA||A[10]!==t||A[11]!==m||A[12]!==N||A[13]!==sA||A[14]!==k||A[15]!==l||A[16]!==B||A[17]!==tA||A[18]!==aA||A[19]!==G||A[20]!==GA||A[21]!==g||A[22]!==eA||A[23]!==j||A[24]!==y||A[25]!==oA||A[26]!==x||A[27]!==s?(I=h=>{let Z=te(h.data);switch(Z.data.op){case"reload":_A();return;case"kernel-ready":{let f=Dt();ft(Z.data,{autoInstantiate:t,setCells:G,setLayoutData:j,setAppConfig:B,setCapabilities:aA,setKernelState:g,onError:s,existingCells:f}),eA(Z.data.kiosk);return}case"completed-run":return;case"interrupted":return;case"kernel-startup-error":GA(Z.data.error);return;case"send-ui-element-message":{let f=Z.data.ui_element;if(f){let UA=sa(Z.data);Q.broadcastMessage(f,Z.data.message,UA)}return}case"model-lifecycle":ue(we,Z.data);return;case"remove-ui-elements":pt(Z.data);return;case"completion-result":ne.resolve(Z.data.completion_id,Z.data);return;case"function-call-result":Ye.resolve(Z.data.function_call_id,Z.data);return;case"cell-op":{xt(Z.data,k);let f=kA().cellData[Z.data.cell_id];if(!f)return;c({cellNotification:Z.data,code:f.code});return}case"variables":x(Z.data.variables.map(Nt)),N(Z.data.variables.map(Mt)),m(Z.data.variables.map(bt)),sA(Z.data.variables.map(Ct));return;case"variable-values":y(Z.data.variables.map(yt));return;case"alert":cA({title:Z.data.title,description:la({html:Z.data.description}),variant:Z.data.variant});return;case"banner":$(Z.data);return;case"missing-package-alert":T({...Z.data,kind:"missing"});return;case"installing-package-alert":T({...Z.data,kind:"installing"});return;case"startup-logs":AA({content:Z.data.content,status:Z.data.status});return;case"query-params-append":z.append(Z.data);return;case"query-params-set":z.set(Z.data);return;case"query-params-delete":z.delete(Z.data);return;case"query-params-clear":z.clear();return;case"datasets":M(Z.data);return;case"data-column-preview":v(Z.data);return;case"sql-table-preview":se.resolve(Z.data.request_id,Z.data);return;case"sql-table-list-preview":re.resolve(Z.data.request_id,Z.data);return;case"sql-schema-list-preview":Ae.resolve(Z.data.request_id,Z.data);return;case"validate-sql-result":$A.resolve(Z.data.request_id,Z.data);return;case"secret-keys-result":Ba.resolve(Z.data.request_id,Z.data);return;case"cache-info":tA(Z.data);return;case"cache-cleared":return;case"data-source-connections":_({connections:Z.data.connections.map(Et)});return;case"storage-namespaces":oA(Z.data);return;case"storage-entries":oa.resolve(Z.data.request_id,Z.data);return;case"storage-download-ready":ta.resolve(Z.data.request_id,Z.data);return;case"reconnected":return;case"focus-cell":ge(Z.data.cell_id);return;case"notebook-document-transaction":l(Z.data.transaction);return;default:Xe(Z.data)}},A[3]=$,A[4]=c,A[5]=v,A[6]=_,A[7]=M,A[8]=T,A[9]=AA,A[10]=t,A[11]=m,A[12]=N,A[13]=sA,A[14]=k,A[15]=l,A[16]=B,A[17]=tA,A[18]=aA,A[19]=G,A[20]=GA,A[21]=g,A[22]=eA,A[23]=j,A[24]=y,A[25]=oA,A[26]=x,A[27]=s,A[28]=I):I=A[28];let rA=I,BA=(h,Z)=>{e.current&&(e.current=!1,W.reconnect(h,Z))},K;A[29]===Symbol.for("react.memo_cache_sentinel")?(K=CA(),A[29]=K):K=A[29];let H;A[30]!==E||A[31]!==o?(H=()=>E.getWsURL(o).toString(),A[30]=E,A[31]=o,A[32]=H):H=A[32];let U;A[33]===w?U=A[34]:(U=async()=>{e.current=!0,w({state:p.OPEN})},A[33]=w,A[34]=U);let V;A[35]===E?V=A[36]:(V=async()=>{CA()||RA()||E.isSameOrigin||await E.waitForHealthy()},A[35]=E,A[36]=V);let q;A[37]===rA?q=A[38]:(q=h=>{try{rA(h)}catch(Z){let f=Z;D.error("Failed to handle message",h.data,f),cA({title:"Failed to handle message",description:jA(f),variant:"danger"})}},A[37]=rA,A[38]=q);let W=Bt({static:K,url:H,onOpen:U,waitToConnect:V,onMessage:q,onClose:h=>{switch(D.warn("WebSocket closed",h.code,h.reason),h.reason){case"MARIMO_ALREADY_CONNECTED":w({state:p.CLOSED,code:P.ALREADY_RUNNING,reason:"another browser tab is already connected to the kernel",canTakeover:!0}),W.close();return;case"MARIMO_WRONG_KERNEL_ID":case"MARIMO_NO_FILE_KEY":case"MARIMO_NO_SESSION_ID":case"MARIMO_NO_SESSION":case"MARIMO_SHUTDOWN":w({state:p.CLOSED,code:P.KERNEL_DISCONNECTED,reason:"kernel not found"}),W.close();return;case"MARIMO_MALFORMED_QUERY":w({state:p.CLOSED,code:P.MALFORMED_QUERY,reason:"the kernel did not recognize a request; please file a bug with marimo"});return;default:if(h.reason==="MARIMO_KERNEL_STARTUP_ERROR"){w({state:p.CLOSED,code:P.KERNEL_STARTUP_ERROR,reason:"Failed to start kernel sandbox"}),W.close();return}w({state:p.CONNECTING}),BA(h.code,h.reason)}},onError:h=>{D.warn("WebSocket error",h),w({state:p.CLOSED,code:P.KERNEL_DISCONNECTED,reason:"kernel not found"}),BA()}}),X;return A[39]===S?X=A[40]:(X={connection:S},A[39]=S,A[40]=X),X}function Et(a){return{...a,name:a.name}}function yt(a){return{name:a.name,dataType:a.datatype,value:a.value}}function Ct(a){return a.name}function bt(a){return a.name}function Mt(a){return a.name}function Nt(a){return{name:a.name,declaredBy:a.declared_by,usedBy:a.used_by}}function _t(){return kA().cellIds.inOrderIds}var jt=d();const St=a=>{let A=(0,jt.c)(2),{children:e}=a,t;return A[0]===e?t=A[1]:(t=(0,n.jsx)("div",{className:"flex flex-col flex-1 overflow-hidden absolute inset-0 print:relative",children:e}),A[0]=e,A[1]=t),t};export{OA as a,Zt as c,FA as d,KA as i,kt as l,vt as n,it as o,gt as r,TA as s,St as t,ya as u};
|
|
1
|
+
var VA=Object.defineProperty;var qA=(a,A,e)=>A in a?VA(a,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[A]=e;var nA=(a,A,e)=>qA(a,typeof A!="symbol"?A+"":A,e);import{s as uA}from"./chunk-LvLJmgfZ.js";import{d as F,i as mA,l as YA,u as C}from"./useEvent-D91BmmQi.js";import{t as WA}from"./react-Bj1aDYRI.js";import{E as fA,Er as XA,F as JA,Fn as zA,Gt as $A,Ht as Ae,L as ee,Oi as ae,Pi as te,Sn as Ge,T as oe,Ut as se,Wt as re,_n as ne,b as ke,h as kA,it as ie,jr as pA,k as Re,l as le,lt as Ze,ot as xA,rt as ce,z as ge}from"./cells-A-ljPpuj.js";import{t as d}from"./compiler-runtime-B3qBwwSJ.js";import{S as he,_ as de,b as Be,c as ue,h as me,i as Ye,m as fe,n as pe,o as Q,r as xe,s as we,t as De,v as ve,y as Ee}from"./state-CoUA-8Ay.js";import{_ as D,d as wA,t as ye}from"./useEventListener-BR0C1MaI.js";import{C as Ce,b as be}from"./utils-DIGrmLDO.js";import{r as iA}from"./constants-DMpttj8Q.js";import{S as RA,b as P,c as Me,h as Ne,o as _e,x as p}from"./config-ChCHm539.js";import{n as je,o as Se}from"./switch-DlgpDZMk.js";import{n as Fe}from"./ErrorBoundary-DzYV_VeY.js";import{n as Qe,t as Y}from"./cn-DCUzRj2J.js";import{t as Pe}from"./jsx-runtime-BqBOg78p.js";import{a as Le,n as Oe}from"./fullscreen-BDxedMYP.js";import{_ as Te,f as Ie,g as Ke,h as DA,m as vA,p as EA,v as yA,y as He}from"./alert-dialog-BGBdrcqJ.js";import{ht as Ue,lt as CA,mt as Ve,ut as bA}from"./JsonOutput-D5TiQGJ4.js";import{h as qe}from"./download-Iyng0xCz.js";import{t as lA}from"./tooltip-Gcwqb_SK.js";import{t as ZA}from"./button-D9nb17Rw.js";import{t as We}from"./createReducer-1ePoj7v6.js";import{i as Xe}from"./strings-md4mFbOQ.js";import{t as Je}from"./requests-DIwGYs0l.js";import{t as J}from"./createLucideIcon-D5guW7EU.js";import{O as ze,a as $e,i as MA,k as NA,n as Aa,o as ea,s as aa}from"./layout-C4u-1iTo.js";import{o as ta,r as Ga,s as oa}from"./state-svfaehZt.js";import{c as sa}from"./markdown-renderer-CFrgiLqu.js";import{n as ra}from"./spinner-Bhir8k53.js";import{i as na,n as ka}from"./readonly-python-code-B0nrQE3U.js";import{t as ia}from"./uuid-DXdzqzcr.js";import{t as cA}from"./use-toast-BDYuj3zG.js";import{i as Ra}from"./session-nmTRerwF.js";import{t as la}from"./RenderHTML-DR6lqJGS.js";import{r as _A}from"./share-BXN2Sd1t.js";import{r as jA}from"./errors-CZb6hI2x.js";import{s as Za}from"./react-icons.esm-BUYTQ32a.js";import{r as SA}from"./events-Qeh-bHlj.js";import{i as ca}from"./cell-link-d38hFEon.js";import{t as ga}from"./error-banner-CTBwdcdk.js";import{n as ha}from"./useAsyncData-dS4Ne6pU.js";import{t as da}from"./requests-BqcqF00P.js";import{t as Ba}from"./request-registry-D-jptgP0.js";import{t as ua}from"./ws-CtTwmdal.js";import{n as ma}from"./types-z6Sk3JCV.js";import{n as Ya}from"./runs-5odJFrfi.js";var fa=J("hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]),FA=J("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),pa=J("square-arrow-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]),xa=J("unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]),wa=d(),n=uA(Pe(),1);const Da=a=>{let A=(0,wa.c)(10),{reason:e,canTakeover:t}=a,o=t===void 0?!1:t,G=va;if(o){let k;A[0]===Symbol.for("react.memo_cache_sentinel")?(k=(0,n.jsx)("div",{className:"flex justify-between",children:(0,n.jsx)("span",{className:"font-bold text-xl flex items-center mb-2",children:"Notebook already connected"})}),A[0]=k):k=A[0];let r;A[1]===e?r=A[2]:(r=(0,n.jsx)("span",{children:e}),A[1]=e,A[2]=r);let i;A[3]===o?i=A[4]:(i=o&&(0,n.jsxs)(ZA,{onClick:G,variant:"outline","data-testid":"takeover-button",className:"shrink-0",children:[(0,n.jsx)(pa,{className:"w-4 h-4 mr-2"}),"Take over session"]}),A[3]=o,A[4]=i);let R;return A[5]!==r||A[6]!==i?(R=(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsxs)(ga,{kind:"info",className:"mt-10 flex flex-col rounded p-3 max-w-[800px] mx-4",children:[k,(0,n.jsxs)("div",{className:"flex justify-between items-end text-base gap-20",children:[r,i]})]})}),A[5]=r,A[6]=i,A[7]=R):R=A[7],R}let s;return A[8]===e?s=A[9]:(s=(0,n.jsx)("div",{className:"font-mono text-center text-base text-(--red-11)",children:(0,n.jsx)("p",{children:e})}),A[8]=e,A[9]=s),s};async function va(){try{let a=new URL(window.location.href).searchParams;await je.post(`/kernel/takeover?${a.toString()}`,{}),_A()}catch(a){cA({title:"Failed to take over session",description:jA(a),variant:"danger"})}}var Ea=d(),u=uA(WA(),1);const ya=a=>{let A=(0,Ea.c)(8),{connection:e,className:t,children:o}=a,G;A[0]!==e.canTakeover||A[1]!==e.reason||A[2]!==e.state?(G=e.state===p.CLOSED&&(0,n.jsx)(Da,{reason:e.reason,canTakeover:e.canTakeover}),A[0]=e.canTakeover,A[1]=e.reason,A[2]=e.state,A[3]=G):G=A[3];let s;return A[4]!==o||A[5]!==t||A[6]!==G?(s=(0,n.jsxs)("div",{className:t,children:[o,G]}),A[4]=o,A[5]=t,A[6]=G,A[7]=s):s=A[7],s};var Ca=d();const ba=a=>{let A=(0,Ca.c)(10),{title:e}=a,[t,o]=(0,u.useState)(e),[G,s]=(0,u.useState)(!0),k,r;A[0]!==t||A[1]!==e?(k=()=>{if(e!==t){s(!1);let g=setTimeout(()=>{o(e),s(!0)},300);return()=>clearTimeout(g)}},r=[e,t],A[0]=t,A[1]=e,A[2]=k,A[3]=r):(k=A[2],r=A[3]),(0,u.useEffect)(k,r);let i;A[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(ra,{className:"size-20 animate-spin text-primary","data-testid":"large-spinner",strokeWidth:1}),A[4]=i):i=A[4];let R=G?"opacity-100":"opacity-0",l;A[5]===R?l=A[6]:(l=Y("mt-2 text-muted-foreground font-semibold text-lg transition-opacity duration-300",R),A[5]=R,A[6]=l);let c;return A[7]!==t||A[8]!==l?(c=(0,n.jsxs)("div",{className:"flex flex-col h-full flex-1 items-center justify-center p-4",children:[i,(0,n.jsx)("div",{className:l,children:t})]}),A[7]=t,A[8]=l,A[9]=c):c=A[9],c};var gA=d();const Ma=a=>{let A=(0,gA.c)(2),{children:e}=a;if(!RA())return e;let t;return A[0]===e?t=A[1]:(t=(0,n.jsx)(Na,{children:e}),A[0]=e,A[1]=t),t};var Na=a=>{let A=(0,gA.c)(3),{children:e}=a,t;A[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],A[0]=t):t=A[0];let{isPending:o,error:G}=ha(ja,t),s=C(de);if(o){let k;return A[1]===Symbol.for("react.memo_cache_sentinel")?(k=(0,n.jsx)(QA,{}),A[1]=k):k=A[1],k}if(!s&&ie()==="read"&&_a()){let k;return A[2]===Symbol.for("react.memo_cache_sentinel")?(k=(0,n.jsx)(QA,{}),A[2]=k):k=A[2],k}if(G)throw G;return e};function _a(){return Ra(iA.showCode,"false")||!mA.get(Se)}const QA=a=>{let A=(0,gA.c)(2),e=C(ve),t;return A[0]===e?t=A[1]:(t=(0,n.jsx)(ba,{title:e}),A[0]=e,A[1]=t),t};async function ja(){return await fe.INSTANCE.initialized.promise,!0}var Sa={idle:"./favicon.ico",success:"data:image/x-icon;base64,AAABA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////AAD///////8AAP//gAH//wAA//4AAH//AAD/+AAAH/8AAP/gAAAH/wAA/8AAAAP/AAD/gAAAAf8AAP8AAAAA/wAA/gAAAAB/AAD8AAAAAD8AAPgAAAAAHwAA+AAAAAAfAADwAAAAAA8AAPAAAAAADwAA4AAAAAAHAADgAAAAAAcAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADAAAAAAAMAAMAAAAAAAwAAwAAAAAADAADgAAAAAAcAAOAAAAAABwAA8AAAAAAPAADwAAAAAA8AAPgAAAAAHwAA+AAAAAAfAAD8AAAAAD8AAP4AAAAAfwAA/wAAAAD/AAD/gAAAAf8AAP/AAAAD/wAA/+AAAAf/AAD/+AAAH/8AAP/+AAB//wAA//+AAf//AAD///////8AAP///////wAA"};async function L(a){return Sa[a]}function Fa(a){if(document.visibilityState==="visible")return;let A=async()=>{a===0?new Notification("Execution completed",{body:"Your notebook run completed successfully.",icon:await L("success")}):new Notification("Execution failed",{body:`Your notebook run encountered ${a} error(s).`,icon:await L("error")})};!("Notification"in window)||Notification.permission==="denied"||(Notification.permission==="granted"?A():Notification.permission==="default"&&Notification.requestPermission().then(e=>{e==="granted"&&A()}))}const Qa=a=>{let{isRunning:A}=a,e=Re(),t=document.querySelector("link[rel~='icon']");t||(t=document.createElement("link"),t.rel="icon",document.getElementsByTagName("head")[0].append(t)),(0,u.useEffect)(()=>{!A&&t.href.includes("favicon")||(async()=>{let G;if(G=A?"running":e.length===0?"success":"error",t.href=await L(G),!document.hasFocus())return;let s=setTimeout(async()=>{t.href=await L("idle")},3e3);return()=>clearTimeout(s)})()},[A,e,t]);let o=ze(A)??A;return(0,u.useEffect)(()=>{o&&!A&&Fa(e.length)},[e,o,A]),ye(window,"focus",async G=>{A||(t.href=await L("idle"))}),null};function Pa(){let{cellRuntime:a}=mA.get(ke),A=wA.entries(a).find(([e,t])=>t.status==="running");A&&ca(A[0],"focus")}var O=d();const La=a=>{let A=(0,O.c)(22),{connection:e,isRunning:t}=a,{mode:o}=C(Ze),G=e.state===p.CLOSED,s=e.state===p.OPEN,k;A[0]!==e.canTakeover||A[1]!==G?(k=G&&!e.canTakeover&&(0,n.jsx)(Ka,{}),A[0]=e.canTakeover,A[1]=G,A[2]=k):k=A[2];let r=o==="read"?"fixed":"absolute",i;A[3]===r?i=A[4]:(i=Y("z-50 top-4 left-4",r),A[3]=r,A[4]=i);let R;A[5]!==s||A[6]!==t?(R=s&&t&&(0,n.jsx)(Ia,{}),A[5]=s,A[6]=t,A[7]=R):R=A[7];let l;A[8]!==e.canTakeover||A[9]!==G?(l=G&&!e.canTakeover&&(0,n.jsx)(Oa,{}),A[8]=e.canTakeover,A[9]=G,A[10]=l):l=A[10];let c;A[11]!==e.canTakeover||A[12]!==G?(c=G&&e.canTakeover&&(0,n.jsx)(Ta,{}),A[11]=e.canTakeover,A[12]=G,A[13]=c):c=A[13];let g;A[14]!==i||A[15]!==R||A[16]!==l||A[17]!==c?(g=(0,n.jsxs)("div",{className:i,children:[R,l,c]}),A[14]=i,A[15]=R,A[16]=l,A[17]=c,A[18]=g):g=A[18];let B;return A[19]!==k||A[20]!==g?(B=(0,n.jsxs)(n.Fragment,{children:[k,g]}),A[19]=k,A[20]=g,A[21]=B):B=A[21],B};var hA="print:hidden pointer-events-auto hover:cursor-pointer",Oa=()=>{let a=(0,O.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,n.jsx)(lA,{content:"App disconnected",children:(0,n.jsx)("div",{className:hA,children:(0,n.jsx)(xa,{className:"w-[25px] h-[25px] text-(--red-11)"})})}),a[0]=A):A=a[0],A},Ta=()=>{let a=(0,O.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,n.jsx)(lA,{content:"Notebook locked",children:(0,n.jsx)("div",{className:hA,children:(0,n.jsx)(na,{className:"w-[25px] h-[25px] text-(--blue-11)"})})}),a[0]=A):A=a[0],A},Ia=()=>{let a=(0,O.c)(6),A=C(oe),e=A?"Scratchpad is running":"Jump to running cell",t=A?void 0:Pa,o;a[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(fa,{className:"running-app-icon",size:30,strokeWidth:1}),a[0]=o):o=a[0];let G;a[1]===t?G=a[2]:(G=(0,n.jsx)("div",{className:hA,"data-testid":"loading-indicator",onClick:t,children:o}),a[1]=t,a[2]=G);let s;return a[3]!==G||a[4]!==e?(s=(0,n.jsx)(lA,{content:e,side:"right",children:G}),a[3]=G,a[4]=e,a[5]=s):s=a[5],s},Ka=()=>{let a=(0,O.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"noise"}),(0,n.jsx)("div",{className:"disconnected-gradient"})]}),a[0]=A):A=a[0],A},b=d(),Ha=Te,Ua=He,Va=Oe(Ke),PA=u.forwardRef((a,A)=>{let e=(0,b.c)(9),t,o;e[0]===a?(t=e[1],o=e[2]):({className:t,...o}=a,e[0]=a,e[1]=t,e[2]=o);let G;e[3]===t?G=e[4]:(G=Y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),e[3]=t,e[4]=G);let s;return e[5]!==o||e[6]!==A||e[7]!==G?(s=(0,n.jsx)(DA,{className:G,...o,ref:A}),e[5]=o,e[6]=A,e[7]=G,e[8]=s):s=e[8],s});PA.displayName=DA.displayName;var qa=Qe("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),LA=u.forwardRef((a,A)=>{let e=(0,b.c)(15),t,o,G,s;e[0]===a?(t=e[1],o=e[2],G=e[3],s=e[4]):({side:s,className:o,children:t,...G}=a,e[0]=a,e[1]=t,e[2]=o,e[3]=G,e[4]=s);let k=s===void 0?"right":s,r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)(PA,{}),e[5]=r):r=e[5];let i;e[6]!==o||e[7]!==k?(i=Y(qa({side:k}),o),e[6]=o,e[7]=k,e[8]=i):i=e[8];let R;e[9]===Symbol.for("react.memo_cache_sentinel")?(R=(0,n.jsxs)(Ie,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,n.jsx)(Za,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]}),e[9]=R):R=e[9];let l;return e[10]!==t||e[11]!==G||e[12]!==A||e[13]!==i?(l=(0,n.jsx)(Va,{children:(0,n.jsxs)(Le,{children:[r,(0,n.jsxs)(EA,{ref:A,className:i,...G,children:[t,R]})]})}),e[10]=t,e[11]=G,e[12]=A,e[13]=i,e[14]=l):l=e[14],l});LA.displayName=EA.displayName;var Wa=a=>{let A=(0,b.c)(8),e,t;A[0]===a?(e=A[1],t=A[2]):({className:e,...t}=a,A[0]=a,A[1]=e,A[2]=t);let o;A[3]===e?o=A[4]:(o=Y("flex flex-col space-y-2 text-center sm:text-left",e),A[3]=e,A[4]=o);let G;return A[5]!==t||A[6]!==o?(G=(0,n.jsx)("div",{className:o,...t}),A[5]=t,A[6]=o,A[7]=G):G=A[7],G};Wa.displayName="SheetHeader";var Xa=a=>{let A=(0,b.c)(8),e,t;A[0]===a?(e=A[1],t=A[2]):({className:e,...t}=a,A[0]=a,A[1]=e,A[2]=t);let o;A[3]===e?o=A[4]:(o=Y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),A[3]=e,A[4]=o);let G;return A[5]!==t||A[6]!==o?(G=(0,n.jsx)("div",{className:o,...t}),A[5]=t,A[6]=o,A[7]=G):G=A[7],G};Xa.displayName="SheetFooter";var Ja=u.forwardRef((a,A)=>{let e=(0,b.c)(9),t,o;e[0]===a?(t=e[1],o=e[2]):({className:t,...o}=a,e[0]=a,e[1]=t,e[2]=o);let G;e[3]===t?G=e[4]:(G=Y("text-lg font-semibold text-foreground",t),e[3]=t,e[4]=G);let s;return e[5]!==o||e[6]!==A||e[7]!==G?(s=(0,n.jsx)(yA,{ref:A,className:G,...o}),e[5]=o,e[6]=A,e[7]=G,e[8]=s):s=e[8],s});Ja.displayName=yA.displayName;var za=u.forwardRef((a,A)=>{let e=(0,b.c)(9),t,o;e[0]===a?(t=e[1],o=e[2]):({className:t,...o}=a,e[0]=a,e[1]=t,e[2]=o);let G;e[3]===t?G=e[4]:(G=Y("text-sm text-muted-foreground",t),e[3]=t,e[4]=G);let s;return e[5]!==o||e[6]!==A||e[7]!==G?(s=(0,n.jsx)(vA,{ref:A,className:G,...o}),e[5]=o,e[6]=A,e[7]=G,e[8]=s):s=e[8],s});za.displayName=vA.displayName;var $a=d();const dA=(0,u.memo)(()=>{let a=(0,$a.c)(1),A;return a[0]===Symbol.for("react.memo_cache_sentinel")?(A=(0,n.jsx)(Ve,{name:bA.SIDEBAR}),a[0]=A):A=a[0],A});dA.displayName="SidebarSlot";var At=d();const et=a=>{let A=(0,At.c)(6),{openWidth:e}=a,t;A[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)(Ua,{className:"lg:hidden",asChild:!0,children:(0,n.jsx)(ZA,{variant:"ghost",className:"bg-background",children:(0,n.jsx)(FA,{className:"w-5 h-5"})})}),A[0]=t):t=A[0];let o;A[1]===e?o=A[2]:(o={maxWidth:e},A[1]=e,A[2]=o);let G;A[3]===Symbol.for("react.memo_cache_sentinel")?(G=(0,n.jsx)(dA,{}),A[3]=G):G=A[3];let s;return A[4]===o?s=A[5]:(s=(0,n.jsxs)(Ha,{children:[t,(0,n.jsx)(LA,{className:"w-full px-3 h-full flex flex-col overflow-y-auto",style:o,side:"left",children:G})]}),A[4]=o,A[5]=s),s};var at=d();const tt=a=>{let A=(0,at.c)(7),{isOpen:e,toggle:t}=a,o=e?"rotate-0":"rotate-180",G;A[0]===o?G=A[1]:(G=Y("h-5 w-5 transition-transform ease-in-out duration-700",o),A[0]=o,A[1]=G);let s;A[2]===G?s=A[3]:(s=(0,n.jsx)(qe,{className:G}),A[2]=G,A[3]=s);let k;return A[4]!==s||A[5]!==t?(k=(0,n.jsx)("div",{className:"invisible lg:visible absolute top-[12px] right-[16px] z-20",children:(0,n.jsx)(ZA,{onClick:t,className:"w-10 h-8",variant:"ghost",size:"icon",children:s})}),A[4]=s,A[5]=t,A[6]=k):k=A[6],k};var Gt=d();const ot=a=>{let A=(0,Gt.c)(11),{isOpen:e,toggle:t,width:o}=a,G=e?o:De,s;A[0]===G?s=A[1]:(s={width:G},A[0]=G,A[1]=s);let k;A[2]===Symbol.for("react.memo_cache_sentinel")?(k=Y("app-sidebar auto-collapse-nav","top-0 left-0 z-20 h-full hidden lg:block relative transition-[width] ease-in-out duration-300"),A[2]=k):k=A[2];let r;A[3]!==e||A[4]!==t?(r=(0,n.jsx)(tt,{isOpen:e,toggle:t}),A[3]=e,A[4]=t,A[5]=r):r=A[5];let i;A[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)("div",{className:"relative h-full flex flex-col px-3 pb-16 pt-14 overflow-y-auto shadow-sm border-l",children:(0,n.jsx)(dA,{})}),A[6]=i):i=A[6];let R;return A[7]!==e||A[8]!==s||A[9]!==r?(R=(0,n.jsxs)("aside",{"data-expanded":e,style:s,className:k,children:[r,i]}),A[7]=e,A[8]=s,A[9]=r,A[10]=R):R=A[10],R};var st=d();const rt=a=>{let A=(0,st.c)(15),{children:e}=a,[t,o]=YA(xe),{isOpen:G,width:s}=t;if(Ue(bA.SIDEBAR).length===0)return e;let k;A[0]===s?k=A[1]:(k=pe(s),A[0]=s,A[1]=k);let r=k,i;A[2]!==o||A[3]!==G?(i=()=>o({type:"toggle",isOpen:!G}),A[2]=o,A[3]=G,A[4]=i):i=A[4];let R;A[5]!==G||A[6]!==r||A[7]!==i?(R=(0,n.jsx)(ot,{isOpen:G,width:r,toggle:i}),A[5]=G,A[6]=r,A[7]=i,A[8]=R):R=A[8];let l;A[9]===r?l=A[10]:(l=(0,n.jsx)("div",{className:"absolute top-3 left-4 flex items-center z-50",children:(0,n.jsx)(et,{openWidth:r})}),A[9]=r,A[10]=l);let c;return A[11]!==e||A[12]!==R||A[13]!==l?(c=(0,n.jsxs)("div",{className:"inset-0 absolute flex",children:[R,l,e]}),A[11]=e,A[12]=R,A[13]=l,A[14]=c):c=A[14],c};var nt=d();const kt=a=>{let A=(0,nt.c)(17),{width:e,connection:t,isRunning:o,children:G}=a,s=t.state,k;A[0]===o?k=A[1]:(k=(0,n.jsx)(Qa,{isRunning:o}),A[0]=o,A[1]=k);let r;A[2]!==t||A[3]!==o?(r=(0,n.jsx)(La,{connection:t,isRunning:o}),A[2]=t,A[3]=o,A[4]=r):r=A[4];let i;A[5]!==s||A[6]!==e?(i=Y("mathjax_ignore",Me(s)&&"disconnected","bg-background w-full h-full text-textColor","flex flex-col overflow-y-auto",e==="full"&&"config-width-full",e==="columns"?"overflow-x-auto":"overflow-x-hidden","print:height-fit"),A[5]=s,A[6]=e,A[7]=i):i=A[7];let R;A[8]!==G||A[9]!==s||A[10]!==i||A[11]!==e?(R=(0,n.jsx)(Ma,{children:(0,n.jsx)(rt,{children:(0,n.jsx)("div",{id:"App","data-config-width":e,"data-connection-state":s,className:i,children:G})})}),A[8]=G,A[9]=s,A[10]=i,A[11]=e,A[12]=R):R=A[12];let l;return A[13]!==k||A[14]!==r||A[15]!==R?(l=(0,n.jsxs)(n.Fragment,{children:[k,r,R]}),A[13]=k,A[14]=r,A[15]=R,A[16]=l):l=A[16],l};function it(a){return a.kind==="missing"}function OA(a){return a.kind==="installing"}var{valueAtom:Rt,useActions:lt}=We(()=>({packageAlert:null,startupLogsAlert:null,packageLogs:{}}),{addPackageAlert:(a,A)=>{var o;let e={...a.packageLogs};if(OA(A)&&A.logs&&A.log_status)for(let[G,s]of Object.entries(A.logs))switch(A.log_status){case"start":e[G]=s;break;case"append":e[G]=(e[G]||"")+s;break;case"done":e[G]=(e[G]||"")+s;break}let t=((o=a.packageAlert)==null?void 0:o.id)||ia();return{...a,packageAlert:{id:t,...A},packageLogs:e}},clearPackageAlert:(a,A)=>a.packageAlert!==null&&a.packageAlert.id===A?{...a,packageAlert:null,packageLogs:{}}:a,addStartupLog:(a,A)=>{var t;let e=((t=a.startupLogsAlert)==null?void 0:t.content)||"";return{...a,startupLogsAlert:{...a.startupLogsAlert,content:e+A.content,status:A.status}}},clearStartupLogsAlert:a=>({...a,startupLogsAlert:null})});const Zt=()=>C(Rt);function TA(){return lt()}var IA=d();const KA=(0,u.memo)(a=>{let A=(0,IA.c)(11),{appConfig:e,mode:t,children:o}=a,{selectedLayout:G,layoutData:s}=$e(),k=C(xA);if(t==="edit"&&!k)return o;let r;if(A[0]!==t||A[1]!==G){r=G;let c=new URLSearchParams(window.location.search);if(t==="read"&&c.has(iA.viewAs)){let g=c.get(iA.viewAs);ma.includes(g)&&(r=g)}A[0]=t,A[1]=G,A[2]=r}else r=A[2];let i;A[3]===r?i=A[4]:(i=ea.find(c=>c.type===r),A[3]=r,A[4]=i);let R=i;if(!R)return o;let l;return A[5]!==e||A[6]!==r||A[7]!==s||A[8]!==t||A[9]!==R?(l=(0,n.jsx)(ct,{appConfig:e,mode:t,plugin:R,layoutData:s,finalLayout:r}),A[5]=e,A[6]=r,A[7]=s,A[8]=t,A[9]=R,A[10]=l):l=A[10],l});KA.displayName="CellsRenderer";const ct=a=>{let A=(0,IA.c)(18),{appConfig:e,mode:t,plugin:o,layoutData:G,finalLayout:s}=a,k=JA(),{setCurrentLayoutData:r}=MA(),i,R,l,c,g;if(A[0]!==e||A[1]!==s||A[2]!==G||A[3]!==t||A[4]!==k||A[5]!==o){let x=le(k);i=o.Component,R=e,l=t,c=x,g=G[s]||o.getInitialLayout(x),A[0]=e,A[1]=s,A[2]=G,A[3]=t,A[4]=k,A[5]=o,A[6]=i,A[7]=R,A[8]=l,A[9]=c,A[10]=g}else i=A[6],R=A[7],l=A[8],c=A[9],g=A[10];let B;return A[11]!==i||A[12]!==r||A[13]!==R||A[14]!==l||A[15]!==c||A[16]!==g?(B=(0,n.jsx)(i,{appConfig:R,mode:l,cells:c,layout:g,setLayout:r}),A[11]=i,A[12]=r,A[13]=R,A[14]=l,A[15]=c,A[16]=g,A[17]=B):B=A[17],B};var gt=class HA{constructor(A){nA(this,"hasStarted",!1);nA(this,"handleReadyEvent",A=>{let e=A.detail.objectId;if(!this.uiElementRegistry.has(e))return;let t=this.uiElementRegistry.lookupValue(e);t!==void 0&&this.sendComponentValues({objectIds:[e],values:[t]}).catch(o=>{D.warn(o)})});this.uiElementRegistry=A}static get INSTANCE(){let A="_marimo_private_RuntimeState";return window[A]||(window[A]=new HA(Q)),window[A]}get sendComponentValues(){if(!this._sendComponentValues)throw Error("sendComponentValues is not set");return this._sendComponentValues}start(A){if(this.hasStarted){D.warn("RuntimeState already started");return}this._sendComponentValues=A,document.addEventListener(SA.TYPE,this.handleReadyEvent),this.hasStarted=!0}stop(){if(!this.hasStarted){D.warn("RuntimeState already stopped");return}document.removeEventListener(SA.TYPE,this.handleReadyEvent),this.hasStarted=!1}},ht=d();function dt(a){if(a.static)return Ee.empty();if(RA())return me();let A=a.url;return new ua(A,void 0,{maxRetries:10,debug:!1,startClosed:!0,connectionTimeout:1e4})}function Bt(a){let A=(0,ht.c)(15),{onOpen:e,onMessage:t,onClose:o,onError:G,waitToConnect:s}=a,k;A[0]!==o||A[1]!==G||A[2]!==t||A[3]!==e||A[4]!==a?(k=()=>{let l=dt(a);return l.addEventListener("open",e),l.addEventListener("close",o),l.addEventListener("error",G),l.addEventListener("message",t),l},A[0]=o,A[1]=G,A[2]=t,A[3]=e,A[4]=a,A[5]=k):k=A[5];let[r]=(0,u.useState)(k),i;A[6]!==o||A[7]!==G||A[8]!==t||A[9]!==e||A[10]!==r||A[11]!==s?(i=()=>(r.readyState===WebSocket.CLOSED&&s().then(()=>r.reconnect()).catch(l=>{D.error("Healthy connection never made",l),r.close()}),()=>{D.warn("useConnectionTransport is unmounting. This likely means there is a bug."),r.close(),r.removeEventListener("open",e),r.removeEventListener("close",o),r.removeEventListener("error",G),r.removeEventListener("message",t)}),A[6]=o,A[7]=G,A[8]=t,A[9]=e,A[10]=r,A[11]=s,A[12]=i):i=A[12];let R;return A[13]===r?R=A[14]:(R=[r],A[13]=r,A[14]=R),(0,u.useEffect)(i,R),r}function ut(a){let{codes:A,names:e,configs:t,cell_ids:o,last_executed_code:G,last_execution_time:s}=a,k=G||{},r=s||{};return A.map((i,R)=>{let l=o[R],c=k[l];return ee({id:l,code:i,edited:c?c!==i:!1,name:e[R],lastCodeRun:k[l]??null,lastExecutionTime:r[l]??null,config:t[R]})})}function mt(a,A,e){let t=Aa(),{layout:o}=a;if(o){let G=o.type,s=aa({type:G,data:o.data,cells:A});t.selectedLayout=G,t.layoutData[G]=s,e({layoutView:G,data:s})}return t}function Yt(){let a=[],A=[];return Q.entries.forEach((e,t)=>{a.push(t),A.push(e.value)}),{objectIds:a,values:A}}function ft(a,A){let{existingCells:e,autoInstantiate:t,setCells:o,setLayoutData:G,setAppConfig:s,setCapabilities:k,setKernelState:r,onError:i}=A,{resumed:R,ui_values:l,app_config:c,capabilities:g,auto_instantiated:B}=a,x=e&&e.length>0,y=x&&!R?e:ut(a);o(y,mt(a,y,G));let v=Ce.safeParse(c);if(v.success?s(v.data):D.error("Failed to parse app config",v.error),k(g),B)return;if(R){for(let[m,j]of wA.entries(l||{})){let S=m;Q.set(S,j)}return}let{objectIds:M,values:N}=Yt(),_=x?Object.fromEntries(e.map(m=>[m.id,m.code])):void 0;Je().sendInstantiate({objectIds:M,values:N,autoRun:t,codes:_}).then(()=>{r({isInstantiated:!0,error:null})}).catch(m=>{r({isInstantiated:!1,error:m}),i(Error("Failed to instantiate",{cause:m}))})}function pt(a){let A=a.cell_id;Q.removeElementsByCell(A),NA.INSTANCE.removeForCellId(A)}function xt(a,A){A(a),NA.INSTANCE.track(a)}const z={append:a=>{let A=new URL(window.location.href);A.searchParams.append(a.key,a.value),window.history.pushState({},"",`${A.pathname}${A.search}`)},set:a=>{let A=new URL(window.location.href);Array.isArray(a.value)?(A.searchParams.delete(a.key),a.value.forEach(e=>A.searchParams.append(a.key,e))):A.searchParams.set(a.key,a.value),window.history.pushState({},"",`${A.pathname}${A.search}`)},delete:a=>{let A=new URL(window.location.href);a.value==null?A.searchParams.delete(a.key):A.searchParams.delete(a.key,a.value),window.history.pushState({},"",`${A.pathname}${A.search}`)},clear:()=>{let a=new URL(window.location.href);a.search="",window.history.pushState({},"",`${a.pathname}${a.search}`)}};var wt=d();function Dt(){return Object.values(kA().cellData).filter(a=>a.id!==ae)}function vt(a){let A=(0,wt.c)(41),e=(0,u.useRef)(!0),{autoInstantiate:t,sessionId:o,setCells:G}=a,{showBoundary:s}=Fe(),{handleCellMessage:k}=fA(),r;A[0]===Symbol.for("react.memo_cache_sentinel")?(r={skipMiddleware:!0},A[0]=r):r=A[0];let i=fA(r),R;A[1]===i?R=A[2]:(R=h=>{ce(h.changes,i,_t)},A[1]=i,A[2]=R);let l=R,{addCellNotification:c}=Ya(),g=F(ka),B=be(),{setVariables:x,setMetadata:y}=zA(),{addColumnPreview:v}=pA(),{addDatasets:M,filterDatasetsFromVariables:N}=pA(),{addDataSourceConnection:_,filterDataSourcesFromVariables:m}=XA(),{setLayoutData:j}=MA(),[S,w]=YA(Ne),{addBanner:$}=he(),{addPackageAlert:T,addStartupLog:AA}=TA(),eA=F(xA),aA=F(Ge),E=_e(),tA=F(da),GA=F(Be),{setNamespaces:oA,filterFromVariables:sA}=Ga(),I;A[3]!==$||A[4]!==c||A[5]!==v||A[6]!==_||A[7]!==M||A[8]!==T||A[9]!==AA||A[10]!==t||A[11]!==m||A[12]!==N||A[13]!==sA||A[14]!==k||A[15]!==l||A[16]!==B||A[17]!==tA||A[18]!==aA||A[19]!==G||A[20]!==GA||A[21]!==g||A[22]!==eA||A[23]!==j||A[24]!==y||A[25]!==oA||A[26]!==x||A[27]!==s?(I=h=>{let Z=te(h.data);switch(Z.data.op){case"reload":_A();return;case"kernel-ready":{let f=Dt();ft(Z.data,{autoInstantiate:t,setCells:G,setLayoutData:j,setAppConfig:B,setCapabilities:aA,setKernelState:g,onError:s,existingCells:f}),eA(Z.data.kiosk);return}case"completed-run":return;case"interrupted":return;case"kernel-startup-error":GA(Z.data.error);return;case"send-ui-element-message":{let f=Z.data.ui_element;if(f){let UA=sa(Z.data);Q.broadcastMessage(f,Z.data.message,UA)}return}case"model-lifecycle":ue(we,Z.data);return;case"remove-ui-elements":pt(Z.data);return;case"completion-result":ne.resolve(Z.data.completion_id,Z.data);return;case"function-call-result":Ye.resolve(Z.data.function_call_id,Z.data);return;case"cell-op":{xt(Z.data,k);let f=kA().cellData[Z.data.cell_id];if(!f)return;c({cellNotification:Z.data,code:f.code});return}case"variables":x(Z.data.variables.map(Nt)),N(Z.data.variables.map(Mt)),m(Z.data.variables.map(bt)),sA(Z.data.variables.map(Ct));return;case"variable-values":y(Z.data.variables.map(yt));return;case"alert":cA({title:Z.data.title,description:la({html:Z.data.description}),variant:Z.data.variant});return;case"banner":$(Z.data);return;case"missing-package-alert":T({...Z.data,kind:"missing"});return;case"installing-package-alert":T({...Z.data,kind:"installing"});return;case"startup-logs":AA({content:Z.data.content,status:Z.data.status});return;case"query-params-append":z.append(Z.data);return;case"query-params-set":z.set(Z.data);return;case"query-params-delete":z.delete(Z.data);return;case"query-params-clear":z.clear();return;case"datasets":M(Z.data);return;case"data-column-preview":v(Z.data);return;case"sql-table-preview":se.resolve(Z.data.request_id,Z.data);return;case"sql-table-list-preview":re.resolve(Z.data.request_id,Z.data);return;case"sql-schema-list-preview":Ae.resolve(Z.data.request_id,Z.data);return;case"validate-sql-result":$A.resolve(Z.data.request_id,Z.data);return;case"secret-keys-result":Ba.resolve(Z.data.request_id,Z.data);return;case"cache-info":tA(Z.data);return;case"cache-cleared":return;case"data-source-connections":_({connections:Z.data.connections.map(Et)});return;case"storage-namespaces":oA(Z.data);return;case"storage-entries":oa.resolve(Z.data.request_id,Z.data);return;case"storage-download-ready":ta.resolve(Z.data.request_id,Z.data);return;case"reconnected":return;case"focus-cell":ge(Z.data.cell_id);return;case"notebook-document-transaction":l(Z.data.transaction);return;default:Xe(Z.data)}},A[3]=$,A[4]=c,A[5]=v,A[6]=_,A[7]=M,A[8]=T,A[9]=AA,A[10]=t,A[11]=m,A[12]=N,A[13]=sA,A[14]=k,A[15]=l,A[16]=B,A[17]=tA,A[18]=aA,A[19]=G,A[20]=GA,A[21]=g,A[22]=eA,A[23]=j,A[24]=y,A[25]=oA,A[26]=x,A[27]=s,A[28]=I):I=A[28];let rA=I,BA=(h,Z)=>{e.current&&(e.current=!1,W.reconnect(h,Z))},K;A[29]===Symbol.for("react.memo_cache_sentinel")?(K=CA(),A[29]=K):K=A[29];let H;A[30]!==E||A[31]!==o?(H=()=>E.getWsURL(o).toString(),A[30]=E,A[31]=o,A[32]=H):H=A[32];let U;A[33]===w?U=A[34]:(U=async()=>{e.current=!0,w({state:p.OPEN})},A[33]=w,A[34]=U);let V;A[35]===E?V=A[36]:(V=async()=>{CA()||RA()||E.isSameOrigin||await E.waitForHealthy()},A[35]=E,A[36]=V);let q;A[37]===rA?q=A[38]:(q=h=>{try{rA(h)}catch(Z){let f=Z;D.error("Failed to handle message",h.data,f),cA({title:"Failed to handle message",description:jA(f),variant:"danger"})}},A[37]=rA,A[38]=q);let W=Bt({static:K,url:H,onOpen:U,waitToConnect:V,onMessage:q,onClose:h=>{switch(D.warn("WebSocket closed",h.code,h.reason),h.reason){case"MARIMO_ALREADY_CONNECTED":w({state:p.CLOSED,code:P.ALREADY_RUNNING,reason:"another browser tab is already connected to the kernel",canTakeover:!0}),W.close();return;case"MARIMO_WRONG_KERNEL_ID":case"MARIMO_NO_FILE_KEY":case"MARIMO_NO_SESSION_ID":case"MARIMO_NO_SESSION":case"MARIMO_SHUTDOWN":w({state:p.CLOSED,code:P.KERNEL_DISCONNECTED,reason:"kernel not found"}),W.close();return;case"MARIMO_MALFORMED_QUERY":w({state:p.CLOSED,code:P.MALFORMED_QUERY,reason:"the kernel did not recognize a request; please file a bug with marimo"});return;default:if(h.reason==="MARIMO_KERNEL_STARTUP_ERROR"){w({state:p.CLOSED,code:P.KERNEL_STARTUP_ERROR,reason:"Failed to start kernel sandbox"}),W.close();return}w({state:p.CONNECTING}),BA(h.code,h.reason)}},onError:h=>{D.warn("WebSocket error",h),w({state:p.CLOSED,code:P.KERNEL_DISCONNECTED,reason:"kernel not found"}),BA()}}),X;return A[39]===S?X=A[40]:(X={connection:S},A[39]=S,A[40]=X),X}function Et(a){return{...a,name:a.name}}function yt(a){return{name:a.name,dataType:a.datatype,value:a.value}}function Ct(a){return a.name}function bt(a){return a.name}function Mt(a){return a.name}function Nt(a){return{name:a.name,declaredBy:a.declared_by,usedBy:a.used_by}}function _t(){return kA().cellIds.inOrderIds}var jt=d();const St=a=>{let A=(0,jt.c)(2),{children:e}=a,t;return A[0]===e?t=A[1]:(t=(0,n.jsx)("div",{className:"flex flex-col flex-1 overflow-hidden absolute inset-0 print:relative",children:e}),A[0]=e,A[1]=t),t};export{OA as a,Zt as c,FA as d,KA as i,kt as l,vt as n,it as o,gt as r,TA as s,St as t,ya as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ss=Object.defineProperty;var Es=(e,t,i)=>t in e?Ss(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var D=(e,t,i)=>Es(e,typeof t!="symbol"?t+"":t,i);var Je;import{s as di}from"./chunk-LvLJmgfZ.js";import{n as ci}from"./useEvent-D91BmmQi.js";import{t as Rs}from"./react-Bj1aDYRI.js";import"./cells-A-ljPpuj.js";import"./react-dom-CSu739Rf.js";import{t as As}from"./compiler-runtime-B3qBwwSJ.js";import{_ as Ps,t as Cs}from"./useEventListener-BR0C1MaI.js";import{t as Ls}from"./jsx-runtime-BqBOg78p.js";import"./fullscreen-BDxedMYP.js";import"./popover-UExmgBsf.js";import{yt as Ts}from"./JsonOutput-BVAcY5xS.js";import"./download-Iyng0xCz.js";import{t as Is}from"./tooltip-Gcwqb_SK.js";import{r as hi,t as Ms}from"./button-D9nb17Rw.js";import"./dist-BrR4M-k3.js";import"./cjs-BRGiG41H.js";import"./main-B0OX4z33.js";import"./useNonce-DfoVjkkH.js";import"./markdown-renderer-CFrgiLqu.js";import{a as ui,i as Ns}from"./slide-form-CXqvfwGg.js";import{t as Bs}from"./eye-off-BT-KOYV5.js";import"./dist-Ds4ite_2.js";import"./dist-CEysMnMQ.js";import"./dist-DGxytjtv.js";import"./dist-DZ2qbK2N.js";import"./dist-CRPTyqAT.js";import"./session-nmTRerwF.js";import"./purify.es-DC4RGS9t.js";import"./dates-DhByPWH5.js";import"./utils-Bq5kLQ87.js";import"./vega-loader.browser-DXARUlxo.js";import"./defaultLocale-JieDVWC_.js";import"./defaultLocale-BLne0bXb.js";import"./chunk-5FQGJX7Z-B4RvNAGm.js";import"./html-to-image-tbPEMBJg.js";import"./react-resizable-panels.browser.esm-Bcm5njwd.js";var pi=As(),N=di(Rs(),1),zs=Object.defineProperty,$s=Object.defineProperties,Hs=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertySymbols,Ds=Object.prototype.hasOwnProperty,Fs=Object.prototype.propertyIsEnumerable,ht=(e,t,i)=>t in e?zs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,he=(e,t)=>{for(var i in t||(t={}))Ds.call(t,i)&&ht(e,i,t[i]);if(gi)for(var i of gi(t))Fs.call(t,i)&&ht(e,i,t[i]);return e},mi=(e,t)=>$s(e,Hs(t)),vi=(e,t,i)=>ht(e,typeof t=="symbol"?t:t+"",i),qs=(e,t,i)=>new Promise((s,r)=>{var n=d=>{try{a(i.next(d))}catch(o){r(o)}},l=d=>{try{a(i.throw(d))}catch(o){r(o)}},a=d=>d.done?s(d.value):Promise.resolve(d.value).then(n,l);a((i=i.apply(e,t)).next())}),Ee=(e,t)=>{for(let i in t)e[i]=t[i];return e},E=(e,t)=>Array.from(e.querySelectorAll(t)),ut=(e,t,i)=>{i?e.classList.add(t):e.classList.remove(t)},Re=e=>{if(typeof e=="string"){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e},me=(e,t)=>{e.style.transform=t},We=(e,t)=>{let i=e.matches||e.matchesSelector||e.msMatchesSelector;return!!(i&&i.call(e,t))},Y=(e,t)=>{if(e&&typeof e.closest=="function")return e.closest(t);for(;e;){if(We(e,t))return e;e=e.parentElement}return null},fi=e=>{e||(e=document.documentElement);let t=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)},Os=(e,t,i,s="")=>{let r=e.querySelectorAll("."+i);for(let l=0;l<r.length;l++){let a=r[l];if(a.parentNode===e)return a}let n=document.createElement(t);return n.className=i,n.innerHTML=s,e.appendChild(n),n},pt=e=>{let t=document.createElement("style");return e&&e.length>0&&t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t},bi=()=>{let e={};for(let t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,i=>{let s=i.split("=").shift(),r=i.split("=").pop();return s&&r!==void 0&&(e[s]=r),i}),e){let i=e[t];e[t]=Re(unescape(i))}return e.dependencies!==void 0&&delete e.dependencies,e},js=(e,t=0)=>{var i;if(e){let s,r=e.style.height;return e.style.height="0px",e.parentElement&&(e.parentElement.style.height="auto"),s=t-(((i=e.parentElement)==null?void 0:i.offsetHeight)||0),e.style.height=r+"px",e.parentElement&&e.parentElement.style.removeProperty("height"),s}return t},Vs={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},Us=(e="")=>{let t=e.split(".").pop();return t?Vs[t]:void 0},Ws=(e="")=>encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),yi=navigator.userAgent,fe=/(iphone|ipod|ipad|android)/gi.test(yi)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,ki=/android/gi.test(yi),_s=(function(e){if(e){var t=function(m){return[].slice.call(m)},i=0,s=1,r=2,n=3,l=[],a=null,d="requestAnimationFrame"in e?function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};e.cancelAnimationFrame(a);var x=function(){return u(l.filter((function(C){return C.dirty&&C.active})))};if(m.sync)return x();a=e.requestAnimationFrame(x)}:function(){},o=function(m){return function(x){l.forEach((function(C){return C.dirty=m})),d(x)}},u=function(m){m.filter((function(C){return!C.styleComputed})).forEach((function(C){C.styleComputed=h(C)})),m.filter(S).forEach(A);var x=m.filter(v);x.forEach(f),x.forEach((function(C){A(C),p(C)})),x.forEach(z)},p=function(m){return m.dirty=i},f=function(m){m.availableWidth=m.element.parentNode.clientWidth,m.currentWidth=m.element.scrollWidth,m.previousFontSize=m.currentFontSize,m.currentFontSize=Math.min(Math.max(m.minSize,m.availableWidth/m.currentWidth*m.previousFontSize),m.maxSize),m.whiteSpace=m.multiLine&&m.currentFontSize===m.minSize?"normal":"nowrap"},v=function(m){return m.dirty!==r||m.dirty===r&&m.element.parentNode.clientWidth!==m.availableWidth},h=function(m){var x=e.getComputedStyle(m.element,null);return m.currentFontSize=parseFloat(x.getPropertyValue("font-size")),m.display=x.getPropertyValue("display"),m.whiteSpace=x.getPropertyValue("white-space"),!0},S=function(m){var x=!1;return!m.preStyleTestCompleted&&(/inline-/.test(m.display)||(x=!0,m.display="inline-block"),m.whiteSpace!=="nowrap"&&(x=!0,m.whiteSpace="nowrap"),m.preStyleTestCompleted=!0,x)},A=function(m){m.element.style.whiteSpace=m.whiteSpace,m.element.style.display=m.display,m.element.style.fontSize=m.currentFontSize+"px"},z=function(m){m.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:m.previousFontSize,newValue:m.currentFontSize,scaleFactor:m.currentFontSize/m.previousFontSize}}))},U=function(m,x){return function(C){m.dirty=x,m.active&&d(C)}},$=function(m){return function(){l=l.filter((function(x){return x.element!==m.element})),m.observeMutations&&m.observer.disconnect(),m.element.style.whiteSpace=m.originalStyle.whiteSpace,m.element.style.display=m.originalStyle.display,m.element.style.fontSize=m.originalStyle.fontSize}},L=function(m){return function(){m.active||(m.active=!0,d())}},R=function(m){return function(){return m.active=!1}},j=function(m){m.observeMutations&&(m.observer=new MutationObserver(U(m,s)),m.observer.observe(m.element,m.observeMutations))},w={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},T=null,M=function(){e.clearTimeout(T),T=e.setTimeout(o(r),I.observeWindowDelay)},P=["resize","orientationchange"];return Object.defineProperty(I,"observeWindow",{set:function(m){var x=`${m?"add":"remove"}EventListener`;P.forEach((function(C){e[x](C,M)}))}}),I.observeWindow=!0,I.observeWindowDelay=100,I.fitAll=o(n),I}function Z(m,x){var C=Object.assign({},w,x),X=m.map((function(G){var ee=Object.assign({},C,{element:G,active:!0});return(function(W){W.originalStyle={whiteSpace:W.element.style.whiteSpace,display:W.element.style.display,fontSize:W.element.style.fontSize},j(W),W.newbie=!0,W.dirty=!0,l.push(W)})(ee),{element:G,fit:U(ee,n),unfreeze:L(ee),freeze:R(ee),unsubscribe:$(ee)}}));return d(),X}function I(m){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof m=="string"?Z(t(document.querySelectorAll(m)),x):Z([m],x)[0]}})(typeof window>"u"?null:window),Ks=class{constructor(e){vi(this,"allowedToPlayAudio",null),this.Reveal=e,this.startEmbeddedMedia=this.startEmbeddedMedia.bind(this),this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this),this.preventIframeAutoFocus=this.preventIframeAutoFocus.bind(this),this.ensureMobileMediaPlaying=this.ensureMobileMediaPlaying.bind(this),this.failedAudioPlaybackTargets=new Set,this.failedVideoPlaybackTargets=new Set,this.failedMutedVideoPlaybackTargets=new Set,this.renderMediaPlayButton()}renderMediaPlayButton(){this.mediaPlayButton=document.createElement("button"),this.mediaPlayButton.className="r-overlay-button r-media-play-button",this.mediaPlayButton.addEventListener("click",()=>{this.resetTemporarilyMutedMedia(),new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(e=>{this.startEmbeddedMedia({target:e})}),this.clearMediaPlaybackErrors()})}shouldPreload(e){if(this.Reveal.isScrollView())return!0;let t=this.Reveal.getConfig().preloadIframes;return typeof t!="boolean"&&(t=e.hasAttribute("data-preload")),t}load(e,t={}){let i=this.Reveal.getConfig().display;if(i.includes("!important")){let r=i.replace(/\s*!important\s*$/,"").trim();e.style.setProperty("display",r,"important")}else e.style.display=i;E(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(r=>{let n=r.tagName==="IFRAME";(!n||this.shouldPreload(r))&&(r.setAttribute("src",r.getAttribute("data-src")),r.setAttribute("data-lazy-loaded",""),r.removeAttribute("data-src"),n&&r.addEventListener("load",this.preventIframeAutoFocus))}),E(e,"video, audio").forEach(r=>{let n=0;E(r,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),n+=1}),fe&&r.tagName==="VIDEO"&&r.setAttribute("playsinline",""),n>0&&r.load()});let s=e.slideBackgroundElement;if(s){s.style.display="block";let r=e.slideBackgroundContentElement,n=e.getAttribute("data-background-iframe");if(s.hasAttribute("data-loaded")===!1){s.setAttribute("data-loaded","true");let a=e.getAttribute("data-background-image"),d=e.getAttribute("data-background-video"),o=e.hasAttribute("data-background-video-loop"),u=e.hasAttribute("data-background-video-muted");if(a)/^data:/.test(a.trim())?r.style.backgroundImage=`url(${a.trim()})`:r.style.backgroundImage=a.split(",").map(p=>`url(${Ws(decodeURI(p.trim()))})`).join(",");else if(d){let p=document.createElement("video");o&&p.setAttribute("loop",""),(u||this.Reveal.isSpeakerNotes())&&(p.muted=!0),fe&&p.setAttribute("playsinline",""),d.split(",").forEach(f=>{let v=document.createElement("source");v.setAttribute("src",f);let h=Us(f);h&&v.setAttribute("type",h),p.appendChild(v)}),r.appendChild(p)}else if(n&&t.excludeIframes!==!0){let p=document.createElement("iframe");p.setAttribute("allowfullscreen",""),p.setAttribute("mozallowfullscreen",""),p.setAttribute("webkitallowfullscreen",""),p.setAttribute("allow","autoplay"),p.setAttribute("data-src",n),p.style.width="100%",p.style.height="100%",p.style.maxHeight="100%",p.style.maxWidth="100%",r.appendChild(p)}}let l=r.querySelector("iframe[data-src]");l&&this.shouldPreload(s)&&!/autoplay=(1|true|yes)/gi.test(n)&&l.getAttribute("src")!==n&&l.setAttribute("src",n)}this.layout(e)}layout(e){Array.from(e.querySelectorAll(".r-fit-text")).forEach(t=>{_s(t,{minSize:24,maxSize:this.Reveal.getConfig().height*.8,observeMutations:!1,observeWindow:!1})})}unload(e){e.style.display="none";let t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",E(t,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),E(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),E(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let e=(t,i,s)=>{E(this.Reveal.getSlidesElement(),"iframe["+t+'*="'+i+'"]').forEach(r=>{let n=r.getAttribute(t);n&&n.indexOf(s)===-1&&r.setAttribute(t,n+(/\?/.test(n)?"&":"?")+s)})};e("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(e){if(e){let t=this.Reveal.isSpeakerNotes();E(e,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),E(e,"video, audio").forEach(i=>{if(Y(i,".fragment")&&!Y(i,".fragment.visible"))return;let s=this.Reveal.getConfig().autoPlayMedia;if(typeof s!="boolean"&&(s=i.hasAttribute("data-autoplay")||!!Y(i,".slide-background")),s&&typeof i.play=="function"){if(t&&!i.muted)return;i.readyState>1?this.startEmbeddedMedia({target:i}):fe?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),t||(E(e,"iframe[src]").forEach(i=>{Y(i,".fragment")&&!Y(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),E(e,"iframe[data-src]").forEach(i=>{Y(i,".fragment")&&!Y(i,".fragment.visible")||i.getAttribute("src")!==i.getAttribute("data-src")&&(i.removeEventListener("load",this.startEmbeddedIframe),i.addEventListener("load",this.startEmbeddedIframe),i.setAttribute("src",i.getAttribute("data-src")))}))}}ensureMobileMediaPlaying(e){let t=e.target;typeof t.getVideoPlaybackQuality=="function"&&setTimeout(()=>{let i=t.paused===!1,s=t.getVideoPlaybackQuality().totalVideoFrames;i&&s===0&&(t.load(),t.play())},1e3)}startEmbeddedMedia(e){let t=!!Y(e.target,"html"),i=!!Y(e.target,".present");t&&i&&(e.target.paused||e.target.ended)&&(e.target.currentTime=0,this.playMediaElement(e.target)),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}playMediaElement(e){let t=e.play();t&&typeof t.catch=="function"&&t.then(()=>{e.muted||(this.allowedToPlayAudio=!0)}).catch(i=>{if(i.name==="NotAllowedError")if(this.allowedToPlayAudio=!1,e.tagName==="VIDEO"){this.onVideoPlaybackNotAllowed(e);let s=!!Y(e,"html"),r=!!Y(e,".present"),n=e.muted;s&&r&&!n&&(e.setAttribute("data-muted-by-reveal","true"),e.muted=!0,e.play().catch(()=>{this.onMutedVideoPlaybackNotAllowed(e)}))}else e.tagName==="AUDIO"&&this.onAudioPlaybackNotAllowed(e)})}startEmbeddedIframe(e){let t=e.target;if(this.preventIframeAutoFocus(e),t&&t.contentWindow){let i=!!Y(e.target,"html"),s=!!Y(e.target,".present");if(i&&s){let r=this.Reveal.getConfig().autoPlayMedia;typeof r!="boolean"&&(r=t.hasAttribute("data-autoplay")||!!Y(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&r?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&r?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e,t={}){t=Ee({unloadIframes:!0},t),e&&e.parentNode&&(E(e,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),fe&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),E(e,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),E(e,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),E(e,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),t.unloadIframes===!0&&E(e,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}isAllowedToPlayAudio(){return this.allowedToPlayAudio}showPlayOrUnmuteButton(){let e=this.failedAudioPlaybackTargets.size,t=this.failedVideoPlaybackTargets.size,i=this.failedMutedVideoPlaybackTargets.size,s="Play media";i>0?s="Play video":t>0?s="Unmute video":e>0&&(s="Play audio"),this.mediaPlayButton.textContent=s,this.Reveal.getRevealElement().appendChild(this.mediaPlayButton)}onAudioPlaybackNotAllowed(e){this.failedAudioPlaybackTargets.add(e),this.showPlayOrUnmuteButton(e)}onVideoPlaybackNotAllowed(e){this.failedVideoPlaybackTargets.add(e),this.showPlayOrUnmuteButton()}onMutedVideoPlaybackNotAllowed(e){this.failedMutedVideoPlaybackTargets.add(e),this.showPlayOrUnmuteButton()}resetTemporarilyMutedMedia(){new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(e=>{e.hasAttribute("data-muted-by-reveal")&&(e.muted=!1,e.removeAttribute("data-muted-by-reveal"))})}clearMediaPlaybackErrors(){this.resetTemporarilyMutedMedia(),this.failedAudioPlaybackTargets.clear(),this.failedVideoPlaybackTargets.clear(),this.failedMutedVideoPlaybackTargets.clear(),this.mediaPlayButton.remove()}preventIframeAutoFocus(e){let t=e.target;if(t&&this.Reveal.getConfig().preventIframeAutoFocus){let i=0,s=()=>{document.activeElement===t?document.activeElement.blur():i<1e3&&(i+=100,setTimeout(s,100))};setTimeout(s,100)}}afterSlideChanged(){this.clearMediaPlaybackErrors()}},be=".slides section",ue=".slides>section",gt=".slides>section.present>section",Xs=".backgrounds>.slide-background",Ys=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Zs="h.v",Qs="h/v",mt="c",wi="c/t",Gs=class{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){let i="none";e.slideNumber&&!this.Reveal.isPrintView()&&(e.showSlideNumber==="all"||e.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(e=this.Reveal.getCurrentSlide()){let t=this.Reveal.getConfig(),i,s=Zs;if(typeof t.slideNumber=="function")i=t.slideNumber(e);else{typeof t.slideNumber=="string"&&(s=t.slideNumber),!/c/.test(s)&&this.Reveal.getHorizontalSlides().length===1&&(s=mt);let n=e&&e.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case mt:i.push(this.Reveal.getSlidePastCount(e)+n);break;case wi:i.push(this.Reveal.getSlidePastCount(e)+n,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(e);i.push(l.h+n);let a=s===Qs?"/":".";this.Reveal.isVerticalSlide(e)&&i.push(a,l.v+1)}}let r="#"+this.Reveal.location.getHash(e);return this.formatNumber(i[0],i[1],i[2],r)}formatNumber(e,t,i,s="#"+this.Reveal.location.getHash()){return typeof i=="number"&&!isNaN(i)?`<a href="${s}">
|
|
1
|
+
var Ss=Object.defineProperty;var Es=(e,t,i)=>t in e?Ss(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var D=(e,t,i)=>Es(e,typeof t!="symbol"?t+"":t,i);var Je;import{s as di}from"./chunk-LvLJmgfZ.js";import{n as ci}from"./useEvent-D91BmmQi.js";import{t as Rs}from"./react-Bj1aDYRI.js";import"./cells-A-ljPpuj.js";import"./react-dom-CSu739Rf.js";import{t as As}from"./compiler-runtime-B3qBwwSJ.js";import{_ as Ps,t as Cs}from"./useEventListener-BR0C1MaI.js";import{t as Ls}from"./jsx-runtime-BqBOg78p.js";import"./fullscreen-BDxedMYP.js";import"./popover-UExmgBsf.js";import{yt as Ts}from"./JsonOutput-D5TiQGJ4.js";import"./download-Iyng0xCz.js";import{t as Is}from"./tooltip-Gcwqb_SK.js";import{r as hi,t as Ms}from"./button-D9nb17Rw.js";import"./dist-BrR4M-k3.js";import"./cjs-BRGiG41H.js";import"./main-B0OX4z33.js";import"./useNonce-DfoVjkkH.js";import"./markdown-renderer-CFrgiLqu.js";import{a as ui,i as Ns}from"./slide-form-BE8M6oJo.js";import{t as Bs}from"./eye-off-BT-KOYV5.js";import"./dist-Ds4ite_2.js";import"./dist-CEysMnMQ.js";import"./dist-DGxytjtv.js";import"./dist-DZ2qbK2N.js";import"./dist-CRPTyqAT.js";import"./session-nmTRerwF.js";import"./purify.es-DC4RGS9t.js";import"./dates-DhByPWH5.js";import"./utils-Bq5kLQ87.js";import"./vega-loader.browser-DXARUlxo.js";import"./defaultLocale-JieDVWC_.js";import"./defaultLocale-BLne0bXb.js";import"./chunk-5FQGJX7Z-B4RvNAGm.js";import"./html-to-image-tbPEMBJg.js";import"./react-resizable-panels.browser.esm-Bcm5njwd.js";var pi=As(),N=di(Rs(),1),zs=Object.defineProperty,$s=Object.defineProperties,Hs=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertySymbols,Ds=Object.prototype.hasOwnProperty,Fs=Object.prototype.propertyIsEnumerable,ht=(e,t,i)=>t in e?zs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,he=(e,t)=>{for(var i in t||(t={}))Ds.call(t,i)&&ht(e,i,t[i]);if(gi)for(var i of gi(t))Fs.call(t,i)&&ht(e,i,t[i]);return e},mi=(e,t)=>$s(e,Hs(t)),vi=(e,t,i)=>ht(e,typeof t=="symbol"?t:t+"",i),qs=(e,t,i)=>new Promise((s,r)=>{var n=d=>{try{a(i.next(d))}catch(o){r(o)}},l=d=>{try{a(i.throw(d))}catch(o){r(o)}},a=d=>d.done?s(d.value):Promise.resolve(d.value).then(n,l);a((i=i.apply(e,t)).next())}),Ee=(e,t)=>{for(let i in t)e[i]=t[i];return e},E=(e,t)=>Array.from(e.querySelectorAll(t)),ut=(e,t,i)=>{i?e.classList.add(t):e.classList.remove(t)},Re=e=>{if(typeof e=="string"){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;if(e.match(/^-?[\d\.]+$/))return parseFloat(e)}return e},me=(e,t)=>{e.style.transform=t},We=(e,t)=>{let i=e.matches||e.matchesSelector||e.msMatchesSelector;return!!(i&&i.call(e,t))},Y=(e,t)=>{if(e&&typeof e.closest=="function")return e.closest(t);for(;e;){if(We(e,t))return e;e=e.parentElement}return null},fi=e=>{e||(e=document.documentElement);let t=e.requestFullscreen||e.webkitRequestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullscreen;t&&t.apply(e)},Os=(e,t,i,s="")=>{let r=e.querySelectorAll("."+i);for(let l=0;l<r.length;l++){let a=r[l];if(a.parentNode===e)return a}let n=document.createElement(t);return n.className=i,n.innerHTML=s,e.appendChild(n),n},pt=e=>{let t=document.createElement("style");return e&&e.length>0&&t.appendChild(document.createTextNode(e)),document.head.appendChild(t),t},bi=()=>{let e={};for(let t in location.search.replace(/[A-Z0-9]+?=([\w\.%-]*)/gi,i=>{let s=i.split("=").shift(),r=i.split("=").pop();return s&&r!==void 0&&(e[s]=r),i}),e){let i=e[t];e[t]=Re(unescape(i))}return e.dependencies!==void 0&&delete e.dependencies,e},js=(e,t=0)=>{var i;if(e){let s,r=e.style.height;return e.style.height="0px",e.parentElement&&(e.parentElement.style.height="auto"),s=t-(((i=e.parentElement)==null?void 0:i.offsetHeight)||0),e.style.height=r+"px",e.parentElement&&e.parentElement.style.removeProperty("height"),s}return t},Vs={mp4:"video/mp4",m4a:"video/mp4",ogv:"video/ogg",mpeg:"video/mpeg",webm:"video/webm"},Us=(e="")=>{let t=e.split(".").pop();return t?Vs[t]:void 0},Ws=(e="")=>encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),yi=navigator.userAgent,fe=/(iphone|ipod|ipad|android)/gi.test(yi)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,ki=/android/gi.test(yi),_s=(function(e){if(e){var t=function(m){return[].slice.call(m)},i=0,s=1,r=2,n=3,l=[],a=null,d="requestAnimationFrame"in e?function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};e.cancelAnimationFrame(a);var x=function(){return u(l.filter((function(C){return C.dirty&&C.active})))};if(m.sync)return x();a=e.requestAnimationFrame(x)}:function(){},o=function(m){return function(x){l.forEach((function(C){return C.dirty=m})),d(x)}},u=function(m){m.filter((function(C){return!C.styleComputed})).forEach((function(C){C.styleComputed=h(C)})),m.filter(S).forEach(A);var x=m.filter(v);x.forEach(f),x.forEach((function(C){A(C),p(C)})),x.forEach(z)},p=function(m){return m.dirty=i},f=function(m){m.availableWidth=m.element.parentNode.clientWidth,m.currentWidth=m.element.scrollWidth,m.previousFontSize=m.currentFontSize,m.currentFontSize=Math.min(Math.max(m.minSize,m.availableWidth/m.currentWidth*m.previousFontSize),m.maxSize),m.whiteSpace=m.multiLine&&m.currentFontSize===m.minSize?"normal":"nowrap"},v=function(m){return m.dirty!==r||m.dirty===r&&m.element.parentNode.clientWidth!==m.availableWidth},h=function(m){var x=e.getComputedStyle(m.element,null);return m.currentFontSize=parseFloat(x.getPropertyValue("font-size")),m.display=x.getPropertyValue("display"),m.whiteSpace=x.getPropertyValue("white-space"),!0},S=function(m){var x=!1;return!m.preStyleTestCompleted&&(/inline-/.test(m.display)||(x=!0,m.display="inline-block"),m.whiteSpace!=="nowrap"&&(x=!0,m.whiteSpace="nowrap"),m.preStyleTestCompleted=!0,x)},A=function(m){m.element.style.whiteSpace=m.whiteSpace,m.element.style.display=m.display,m.element.style.fontSize=m.currentFontSize+"px"},z=function(m){m.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:m.previousFontSize,newValue:m.currentFontSize,scaleFactor:m.currentFontSize/m.previousFontSize}}))},U=function(m,x){return function(C){m.dirty=x,m.active&&d(C)}},$=function(m){return function(){l=l.filter((function(x){return x.element!==m.element})),m.observeMutations&&m.observer.disconnect(),m.element.style.whiteSpace=m.originalStyle.whiteSpace,m.element.style.display=m.originalStyle.display,m.element.style.fontSize=m.originalStyle.fontSize}},L=function(m){return function(){m.active||(m.active=!0,d())}},R=function(m){return function(){return m.active=!1}},j=function(m){m.observeMutations&&(m.observer=new MutationObserver(U(m,s)),m.observer.observe(m.element,m.observeMutations))},w={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},T=null,M=function(){e.clearTimeout(T),T=e.setTimeout(o(r),I.observeWindowDelay)},P=["resize","orientationchange"];return Object.defineProperty(I,"observeWindow",{set:function(m){var x=`${m?"add":"remove"}EventListener`;P.forEach((function(C){e[x](C,M)}))}}),I.observeWindow=!0,I.observeWindowDelay=100,I.fitAll=o(n),I}function Z(m,x){var C=Object.assign({},w,x),X=m.map((function(G){var ee=Object.assign({},C,{element:G,active:!0});return(function(W){W.originalStyle={whiteSpace:W.element.style.whiteSpace,display:W.element.style.display,fontSize:W.element.style.fontSize},j(W),W.newbie=!0,W.dirty=!0,l.push(W)})(ee),{element:G,fit:U(ee,n),unfreeze:L(ee),freeze:R(ee),unsubscribe:$(ee)}}));return d(),X}function I(m){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof m=="string"?Z(t(document.querySelectorAll(m)),x):Z([m],x)[0]}})(typeof window>"u"?null:window),Ks=class{constructor(e){vi(this,"allowedToPlayAudio",null),this.Reveal=e,this.startEmbeddedMedia=this.startEmbeddedMedia.bind(this),this.startEmbeddedIframe=this.startEmbeddedIframe.bind(this),this.preventIframeAutoFocus=this.preventIframeAutoFocus.bind(this),this.ensureMobileMediaPlaying=this.ensureMobileMediaPlaying.bind(this),this.failedAudioPlaybackTargets=new Set,this.failedVideoPlaybackTargets=new Set,this.failedMutedVideoPlaybackTargets=new Set,this.renderMediaPlayButton()}renderMediaPlayButton(){this.mediaPlayButton=document.createElement("button"),this.mediaPlayButton.className="r-overlay-button r-media-play-button",this.mediaPlayButton.addEventListener("click",()=>{this.resetTemporarilyMutedMedia(),new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(e=>{this.startEmbeddedMedia({target:e})}),this.clearMediaPlaybackErrors()})}shouldPreload(e){if(this.Reveal.isScrollView())return!0;let t=this.Reveal.getConfig().preloadIframes;return typeof t!="boolean"&&(t=e.hasAttribute("data-preload")),t}load(e,t={}){let i=this.Reveal.getConfig().display;if(i.includes("!important")){let r=i.replace(/\s*!important\s*$/,"").trim();e.style.setProperty("display",r,"important")}else e.style.display=i;E(e,"img[data-src], video[data-src], audio[data-src], iframe[data-src]").forEach(r=>{let n=r.tagName==="IFRAME";(!n||this.shouldPreload(r))&&(r.setAttribute("src",r.getAttribute("data-src")),r.setAttribute("data-lazy-loaded",""),r.removeAttribute("data-src"),n&&r.addEventListener("load",this.preventIframeAutoFocus))}),E(e,"video, audio").forEach(r=>{let n=0;E(r,"source[data-src]").forEach(l=>{l.setAttribute("src",l.getAttribute("data-src")),l.removeAttribute("data-src"),l.setAttribute("data-lazy-loaded",""),n+=1}),fe&&r.tagName==="VIDEO"&&r.setAttribute("playsinline",""),n>0&&r.load()});let s=e.slideBackgroundElement;if(s){s.style.display="block";let r=e.slideBackgroundContentElement,n=e.getAttribute("data-background-iframe");if(s.hasAttribute("data-loaded")===!1){s.setAttribute("data-loaded","true");let a=e.getAttribute("data-background-image"),d=e.getAttribute("data-background-video"),o=e.hasAttribute("data-background-video-loop"),u=e.hasAttribute("data-background-video-muted");if(a)/^data:/.test(a.trim())?r.style.backgroundImage=`url(${a.trim()})`:r.style.backgroundImage=a.split(",").map(p=>`url(${Ws(decodeURI(p.trim()))})`).join(",");else if(d){let p=document.createElement("video");o&&p.setAttribute("loop",""),(u||this.Reveal.isSpeakerNotes())&&(p.muted=!0),fe&&p.setAttribute("playsinline",""),d.split(",").forEach(f=>{let v=document.createElement("source");v.setAttribute("src",f);let h=Us(f);h&&v.setAttribute("type",h),p.appendChild(v)}),r.appendChild(p)}else if(n&&t.excludeIframes!==!0){let p=document.createElement("iframe");p.setAttribute("allowfullscreen",""),p.setAttribute("mozallowfullscreen",""),p.setAttribute("webkitallowfullscreen",""),p.setAttribute("allow","autoplay"),p.setAttribute("data-src",n),p.style.width="100%",p.style.height="100%",p.style.maxHeight="100%",p.style.maxWidth="100%",r.appendChild(p)}}let l=r.querySelector("iframe[data-src]");l&&this.shouldPreload(s)&&!/autoplay=(1|true|yes)/gi.test(n)&&l.getAttribute("src")!==n&&l.setAttribute("src",n)}this.layout(e)}layout(e){Array.from(e.querySelectorAll(".r-fit-text")).forEach(t=>{_s(t,{minSize:24,maxSize:this.Reveal.getConfig().height*.8,observeMutations:!1,observeWindow:!1})})}unload(e){e.style.display="none";let t=this.Reveal.getSlideBackground(e);t&&(t.style.display="none",E(t,"iframe[src]").forEach(i=>{i.removeAttribute("src")})),E(e,"video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")}),E(e,"video[data-lazy-loaded] source[src], audio source[src]").forEach(i=>{i.setAttribute("data-src",i.getAttribute("src")),i.removeAttribute("src")})}formatEmbeddedContent(){let e=(t,i,s)=>{E(this.Reveal.getSlidesElement(),"iframe["+t+'*="'+i+'"]').forEach(r=>{let n=r.getAttribute(t);n&&n.indexOf(s)===-1&&r.setAttribute(t,n+(/\?/.test(n)?"&":"?")+s)})};e("src","youtube.com/embed/","enablejsapi=1"),e("data-src","youtube.com/embed/","enablejsapi=1"),e("src","player.vimeo.com/","api=1"),e("data-src","player.vimeo.com/","api=1")}startEmbeddedContent(e){if(e){let t=this.Reveal.isSpeakerNotes();E(e,'img[src$=".gif"]').forEach(i=>{i.setAttribute("src",i.getAttribute("src"))}),E(e,"video, audio").forEach(i=>{if(Y(i,".fragment")&&!Y(i,".fragment.visible"))return;let s=this.Reveal.getConfig().autoPlayMedia;if(typeof s!="boolean"&&(s=i.hasAttribute("data-autoplay")||!!Y(i,".slide-background")),s&&typeof i.play=="function"){if(t&&!i.muted)return;i.readyState>1?this.startEmbeddedMedia({target:i}):fe?(i.addEventListener("canplay",this.ensureMobileMediaPlaying),this.playMediaElement(i)):(i.removeEventListener("loadeddata",this.startEmbeddedMedia),i.addEventListener("loadeddata",this.startEmbeddedMedia))}}),t||(E(e,"iframe[src]").forEach(i=>{Y(i,".fragment")&&!Y(i,".fragment.visible")||this.startEmbeddedIframe({target:i})}),E(e,"iframe[data-src]").forEach(i=>{Y(i,".fragment")&&!Y(i,".fragment.visible")||i.getAttribute("src")!==i.getAttribute("data-src")&&(i.removeEventListener("load",this.startEmbeddedIframe),i.addEventListener("load",this.startEmbeddedIframe),i.setAttribute("src",i.getAttribute("data-src")))}))}}ensureMobileMediaPlaying(e){let t=e.target;typeof t.getVideoPlaybackQuality=="function"&&setTimeout(()=>{let i=t.paused===!1,s=t.getVideoPlaybackQuality().totalVideoFrames;i&&s===0&&(t.load(),t.play())},1e3)}startEmbeddedMedia(e){let t=!!Y(e.target,"html"),i=!!Y(e.target,".present");t&&i&&(e.target.paused||e.target.ended)&&(e.target.currentTime=0,this.playMediaElement(e.target)),e.target.removeEventListener("loadeddata",this.startEmbeddedMedia)}playMediaElement(e){let t=e.play();t&&typeof t.catch=="function"&&t.then(()=>{e.muted||(this.allowedToPlayAudio=!0)}).catch(i=>{if(i.name==="NotAllowedError")if(this.allowedToPlayAudio=!1,e.tagName==="VIDEO"){this.onVideoPlaybackNotAllowed(e);let s=!!Y(e,"html"),r=!!Y(e,".present"),n=e.muted;s&&r&&!n&&(e.setAttribute("data-muted-by-reveal","true"),e.muted=!0,e.play().catch(()=>{this.onMutedVideoPlaybackNotAllowed(e)}))}else e.tagName==="AUDIO"&&this.onAudioPlaybackNotAllowed(e)})}startEmbeddedIframe(e){let t=e.target;if(this.preventIframeAutoFocus(e),t&&t.contentWindow){let i=!!Y(e.target,"html"),s=!!Y(e.target,".present");if(i&&s){let r=this.Reveal.getConfig().autoPlayMedia;typeof r!="boolean"&&(r=t.hasAttribute("data-autoplay")||!!Y(t,".slide-background")),/youtube\.com\/embed\//.test(t.getAttribute("src"))&&r?t.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"):/player\.vimeo\.com\//.test(t.getAttribute("src"))&&r?t.contentWindow.postMessage('{"method":"play"}',"*"):t.contentWindow.postMessage("slide:start","*")}}}stopEmbeddedContent(e,t={}){t=Ee({unloadIframes:!0},t),e&&e.parentNode&&(E(e,"video, audio").forEach(i=>{!i.hasAttribute("data-ignore")&&typeof i.pause=="function"&&(i.setAttribute("data-paused-by-reveal",""),i.pause(),fe&&i.removeEventListener("canplay",this.ensureMobileMediaPlaying))}),E(e,"iframe").forEach(i=>{i.contentWindow&&i.contentWindow.postMessage("slide:stop","*"),i.removeEventListener("load",this.preventIframeAutoFocus),i.removeEventListener("load",this.startEmbeddedIframe)}),E(e,'iframe[src*="youtube.com/embed/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}),E(e,'iframe[src*="player.vimeo.com/"]').forEach(i=>{!i.hasAttribute("data-ignore")&&i.contentWindow&&typeof i.contentWindow.postMessage=="function"&&i.contentWindow.postMessage('{"method":"pause"}',"*")}),t.unloadIframes===!0&&E(e,"iframe[data-src]").forEach(i=>{i.setAttribute("src","about:blank"),i.removeAttribute("src")}))}isAllowedToPlayAudio(){return this.allowedToPlayAudio}showPlayOrUnmuteButton(){let e=this.failedAudioPlaybackTargets.size,t=this.failedVideoPlaybackTargets.size,i=this.failedMutedVideoPlaybackTargets.size,s="Play media";i>0?s="Play video":t>0?s="Unmute video":e>0&&(s="Play audio"),this.mediaPlayButton.textContent=s,this.Reveal.getRevealElement().appendChild(this.mediaPlayButton)}onAudioPlaybackNotAllowed(e){this.failedAudioPlaybackTargets.add(e),this.showPlayOrUnmuteButton(e)}onVideoPlaybackNotAllowed(e){this.failedVideoPlaybackTargets.add(e),this.showPlayOrUnmuteButton()}onMutedVideoPlaybackNotAllowed(e){this.failedMutedVideoPlaybackTargets.add(e),this.showPlayOrUnmuteButton()}resetTemporarilyMutedMedia(){new Set([...this.failedAudioPlaybackTargets,...this.failedVideoPlaybackTargets,...this.failedMutedVideoPlaybackTargets]).forEach(e=>{e.hasAttribute("data-muted-by-reveal")&&(e.muted=!1,e.removeAttribute("data-muted-by-reveal"))})}clearMediaPlaybackErrors(){this.resetTemporarilyMutedMedia(),this.failedAudioPlaybackTargets.clear(),this.failedVideoPlaybackTargets.clear(),this.failedMutedVideoPlaybackTargets.clear(),this.mediaPlayButton.remove()}preventIframeAutoFocus(e){let t=e.target;if(t&&this.Reveal.getConfig().preventIframeAutoFocus){let i=0,s=()=>{document.activeElement===t?document.activeElement.blur():i<1e3&&(i+=100,setTimeout(s,100))};setTimeout(s,100)}}afterSlideChanged(){this.clearMediaPlaybackErrors()}},be=".slides section",ue=".slides>section",gt=".slides>section.present>section",Xs=".backgrounds>.slide-background",Ys=/registerPlugin|registerKeyboardShortcut|addKeyBinding|addEventListener|showPreview/,Zs="h.v",Qs="h/v",mt="c",wi="c/t",Gs=class{constructor(e){this.Reveal=e}render(){this.element=document.createElement("div"),this.element.className="slide-number",this.Reveal.getRevealElement().appendChild(this.element)}configure(e,t){let i="none";e.slideNumber&&!this.Reveal.isPrintView()&&(e.showSlideNumber==="all"||e.showSlideNumber==="speaker"&&this.Reveal.isSpeakerNotes())&&(i="block"),this.element.style.display=i}update(){this.Reveal.getConfig().slideNumber&&this.element&&(this.element.innerHTML=this.getSlideNumber())}getSlideNumber(e=this.Reveal.getCurrentSlide()){let t=this.Reveal.getConfig(),i,s=Zs;if(typeof t.slideNumber=="function")i=t.slideNumber(e);else{typeof t.slideNumber=="string"&&(s=t.slideNumber),!/c/.test(s)&&this.Reveal.getHorizontalSlides().length===1&&(s=mt);let n=e&&e.dataset.visibility==="uncounted"?0:1;switch(i=[],s){case mt:i.push(this.Reveal.getSlidePastCount(e)+n);break;case wi:i.push(this.Reveal.getSlidePastCount(e)+n,"/",this.Reveal.getTotalSlides());break;default:let l=this.Reveal.getIndices(e);i.push(l.h+n);let a=s===Qs?"/":".";this.Reveal.isVerticalSlide(e)&&i.push(a,l.v+1)}}let r="#"+this.Reveal.location.getHash(e);return this.formatNumber(i[0],i[1],i[2],r)}formatNumber(e,t,i,s="#"+this.Reveal.location.getHash()){return typeof i=="number"&&!isNaN(i)?`<a href="${s}">
|
|
2
2
|
<span class="slide-number-a">${e}</span>
|
|
3
3
|
<span class="slide-number-delimiter">${t}</span>
|
|
4
4
|
<span class="slide-number-b">${i}</span>
|