@flyfish-group/file-viewer 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/README.md +10 -10
  2. package/dist/components/3MFLoader.js +1 -1
  3. package/dist/components/AMFLoader.js +1 -1
  4. package/dist/components/AudioViewer.js +1 -1
  5. package/dist/components/CadViewer.js +1 -1
  6. package/dist/components/CodeViewer.js +1 -1
  7. package/dist/components/ColladaLoader.js +1 -1
  8. package/dist/components/DrawingViewer.js +1 -1
  9. package/dist/components/EdaViewer.js +1 -1
  10. package/dist/components/EmailViewer.js +1 -1
  11. package/dist/components/EpubViewer.js +1 -1
  12. package/dist/components/FBXLoader.js +1 -1
  13. package/dist/components/GLTFLoader.js +1 -1
  14. package/dist/components/ImageViewer.js +1 -1
  15. package/dist/components/KMZLoader.js +1 -1
  16. package/dist/components/MarkdownViewer.js +1 -1
  17. package/dist/components/OBJLoader.js +1 -1
  18. package/dist/components/OfdViewer.js +1 -1
  19. package/dist/components/PCDLoader.js +1 -1
  20. package/dist/components/PLYLoader.js +1 -1
  21. package/dist/components/PptxRender.js +5036 -5036
  22. package/dist/components/STLLoader.js +1 -1
  23. package/dist/components/TDSLoader.js +1 -1
  24. package/dist/components/USDLoader.js +1 -1
  25. package/dist/components/UmdViewer.js +2 -2
  26. package/dist/components/VRMLLoader.js +1 -1
  27. package/dist/components/VTKLoader.js +1 -1
  28. package/dist/components/XYZLoader.js +1 -1
  29. package/dist/components/XlsxTable.js +1 -1
  30. package/dist/components/___vite-browser-external_commonjs-proxy.js +1 -1
  31. package/dist/components/_commonjs-dynamic-modules.js +1 -1
  32. package/dist/components/_commonjsHelpers.js +1 -1
  33. package/dist/components/ar-SA-G6X2FPQ2.js +1 -1
  34. package/dist/components/arc.js +1 -1
  35. package/dist/components/architecture-7EHR7CIX.js +1 -1
  36. package/dist/components/architectureDiagram-3BPJPVTR.js +1 -1
  37. package/dist/components/az-AZ-76LH7QW2.js +1 -1
  38. package/dist/components/bg-BG-XCXSNQG7.js +1 -1
  39. package/dist/components/blockDiagram-GPEHLZMM.js +1 -1
  40. package/dist/components/bn-BD-2XOGV67Q.js +1 -1
  41. package/dist/components/c4Diagram-AAUBKEIU.js +1 -1
  42. package/dist/components/ca-ES-6MX7JW3Y.js +1 -1
  43. package/dist/components/cfb.js +1 -1
  44. package/dist/components/channel.js +1 -1
  45. package/dist/components/chunk-2J33WTMH.js +1 -1
  46. package/dist/components/chunk-4BX2VUAB.js +1 -1
  47. package/dist/components/chunk-55IACEB6.js +1 -1
  48. package/dist/components/chunk-727SXJPM.js +1 -1
  49. package/dist/components/chunk-AQP2D5EJ.js +1 -1
  50. package/dist/components/chunk-FMBD7UC4.js +1 -1
  51. package/dist/components/chunk-ND2GUHAM.js +1 -1
  52. package/dist/components/chunk-QZHKN3VN.js +1 -1
  53. package/dist/components/classDiagram-4FO5ZUOK.js +1 -1
  54. package/dist/components/classDiagram-v2-Q7XG4LA2.js +1 -1
  55. package/dist/components/cose-bilkent-S5V4N54A.js +1 -1
  56. package/dist/components/cs-CZ-2BRQDIVT.js +1 -1
  57. package/dist/components/cytoscape.esm.js +1 -1
  58. package/dist/components/da-DK-5WZEPLOC.js +1 -1
  59. package/dist/components/dagre-BM42HDAG.js +1 -1
  60. package/dist/components/de-DE-XR44H4JA.js +1 -1
  61. package/dist/components/defaultLocale.js +1 -1
  62. package/dist/components/diagram-2AECGRRQ.js +1 -1
  63. package/dist/components/diagram-5GNKFQAL.js +1 -1
  64. package/dist/components/diagram-KO2AKTUF.js +1 -1
  65. package/dist/components/diagram-LMA3HP47.js +1 -1
  66. package/dist/components/diagram-OG6HWLK6.js +1 -1
  67. package/dist/components/directory-open-01563666.js +1 -1
  68. package/dist/components/directory-open-4ed118d0.js +1 -1
  69. package/dist/components/docx-preview.js +2 -2
  70. package/dist/components/el-GR-BZB4AONW.js +1 -1
  71. package/dist/components/en-B4ZKOASM.js +1 -1
  72. package/dist/components/erDiagram-TEJ5UH35.js +1 -1
  73. package/dist/components/es-ES-U4NZUMDT.js +1 -1
  74. package/dist/components/eu-ES-A7QVB2H4.js +1 -1
  75. package/dist/components/eventmodeling-FCH6USID.js +1 -1
  76. package/dist/components/fa-IR-HGAKTJCU.js +1 -1
  77. package/dist/components/fflate.module.js +1 -1
  78. package/dist/components/fi-FI-Z5N7JZ37.js +1 -1
  79. package/dist/components/file-open-002ab408.js +1 -1
  80. package/dist/components/file-open-7c801643.js +1 -1
  81. package/dist/components/file-save-3189631c.js +1 -1
  82. package/dist/components/file-save-745eba88.js +1 -1
  83. package/dist/components/flowDiagram-I6XJVG4X.js +1 -1
  84. package/dist/components/fr-FR-RHASNOE6.js +1 -1
  85. package/dist/components/ganttDiagram-6RSMTGT7.js +1 -1
  86. package/dist/components/gitGraph-WXDBUCRP.js +1 -1
  87. package/dist/components/gitGraphDiagram-PVQCEYII.js +1 -1
  88. package/dist/components/gl-ES-HMX3MZ6V.js +1 -1
  89. package/dist/components/global-compiler.js +1 -1
  90. package/dist/components/global-renderer.js +1 -1
  91. package/dist/components/graph.js +1 -1
  92. package/dist/components/he-IL-6SHJWFNN.js +1 -1
  93. package/dist/components/hi-IN-IWLTKZ5I.js +1 -1
  94. package/dist/components/hu-HU-A5ZG7DT2.js +1 -1
  95. package/dist/components/id-ID-SAP4L64H.js +1 -1
  96. package/dist/components/image-GAAHSSAO.js +1 -1
  97. package/dist/components/image-blob-reduce.esm.js +1 -1
  98. package/dist/components/index10.js +1 -1
  99. package/dist/components/index11.js +1 -1
  100. package/dist/components/index12.js +1 -1
  101. package/dist/components/index13.js +1 -1
  102. package/dist/components/index14.js +1 -1
  103. package/dist/components/index15.js +1 -1
  104. package/dist/components/index16.js +1 -1
  105. package/dist/components/index17.js +1 -1
  106. package/dist/components/index18.js +1 -1
  107. package/dist/components/index19.js +1 -1
  108. package/dist/components/index2.js +1 -1
  109. package/dist/components/index20.js +1 -1
  110. package/dist/components/index21.js +1 -1
  111. package/dist/components/index22.js +2 -2
  112. package/dist/components/index23.js +1 -1
  113. package/dist/components/index24.js +1 -1
  114. package/dist/components/index25.js +1 -1
  115. package/dist/components/index3.js +1 -1
  116. package/dist/components/index4.js +1 -1
  117. package/dist/components/index5.js +1 -1
  118. package/dist/components/index6.js +1 -1
  119. package/dist/components/index7.js +1 -1
  120. package/dist/components/index8.js +1 -1
  121. package/dist/components/index9.js +1 -1
  122. package/dist/components/info-J43DQDTF.js +1 -1
  123. package/dist/components/infoDiagram-5YYISTIA.js +1 -1
  124. package/dist/components/init.js +1 -1
  125. package/dist/components/ishikawaDiagram-YF4QCWOH.js +1 -1
  126. package/dist/components/it-IT-JPQ66NNP.js +1 -1
  127. package/dist/components/ja-JP-DBVTYXUO.js +1 -1
  128. package/dist/components/journeyDiagram-JHISSGLW.js +1 -1
  129. package/dist/components/jszip.min.js +1 -1
  130. package/dist/components/kaa-6HZHGXH3.js +1 -1
  131. package/dist/components/kab-KAB-ZGHBKWFO.js +1 -1
  132. package/dist/components/kanban-definition-UN3LZRKU.js +1 -1
  133. package/dist/components/katex.js +1 -1
  134. package/dist/components/kk-KZ-P5N5QNE5.js +1 -1
  135. package/dist/components/km-KH-HSX4SM5Z.js +1 -1
  136. package/dist/components/ko-KR-MTYHY66A.js +1 -1
  137. package/dist/components/ku-TR-6OUDTVRD.js +1 -1
  138. package/dist/components/layout.js +1 -1
  139. package/dist/components/libarchive.js +1 -1
  140. package/dist/components/linear.js +1 -1
  141. package/dist/components/lt-LT-XHIRWOB4.js +1 -1
  142. package/dist/components/lv-LV-5QDEKY6T.js +1 -1
  143. package/dist/components/mermaid-parser.core.js +2 -2
  144. package/dist/components/mindmap-definition-RKZ34NQL.js +1 -1
  145. package/dist/components/mr-IN-CRQNXWMA.js +1 -1
  146. package/dist/components/my-MM-5M5IBNSE.js +1 -1
  147. package/dist/components/nb-NO-T6EIAALU.js +1 -1
  148. package/dist/components/nestedRender.js +1 -1
  149. package/dist/components/nl-NL-IS3SIHDZ.js +1 -1
  150. package/dist/components/nn-NO-6E72VCQL.js +1 -1
  151. package/dist/components/oc-FR-POXYY2M6.js +1 -1
  152. package/dist/components/ofd.js +1 -1
  153. package/dist/components/ordinal.js +1 -1
  154. package/dist/components/pa-IN-N4M65BXN.js +1 -1
  155. package/dist/components/packet-YPE3B663.js +1 -1
  156. package/dist/components/percentages-BXMCSKIN.js +1 -1
  157. package/dist/components/pica.js +1 -1
  158. package/dist/components/pie-LRSECV5Y.js +1 -1
  159. package/dist/components/pie.js +1 -1
  160. package/dist/components/pieDiagram-4H26LBE5.js +1 -1
  161. package/dist/components/pl-PL-T2D74RX3.js +1 -1
  162. package/dist/components/postal-mime.js +1 -1
  163. package/dist/components/printLayout.js +1 -1
  164. package/dist/components/pt-BR-5N22H2LF.js +1 -1
  165. package/dist/components/pt-PT-UZXXM6DQ.js +1 -1
  166. package/dist/components/quadrantDiagram-W4KKPZXB.js +1 -1
  167. package/dist/components/radar-GUYGQ44K.js +1 -1
  168. package/dist/components/requirementDiagram-4Y6WPE33.js +1 -1
  169. package/dist/components/ro-RO-JPDTUUEW.js +1 -1
  170. package/dist/components/rough.esm.js +1 -1
  171. package/dist/components/roundRect.js +1 -1
  172. package/dist/components/ru-RU-B4JR7IUQ.js +1 -1
  173. package/dist/components/sankeyDiagram-5OEKKPKP.js +1 -1
  174. package/dist/components/sequenceDiagram-3UESZ5HK.js +1 -1
  175. package/dist/components/si-LK-N5RQ5JYF.js +1 -1
  176. package/dist/components/sk-SK-C5VTKIMK.js +1 -1
  177. package/dist/components/sl-SI-NN7IZMDC.js +1 -1
  178. package/dist/components/stateDiagram-AJRCARHV.js +1 -1
  179. package/dist/components/stateDiagram-v2-BHNVJYJU.js +1 -1
  180. package/dist/components/subset-shared.chunk.js +1 -1
  181. package/dist/components/subset-worker.chunk.js +1 -1
  182. package/dist/components/sv-SE-XGPEYMSR.js +1 -1
  183. package/dist/components/ta-IN-2NMHFXQM.js +1 -1
  184. package/dist/components/th-TH-HPSO5L25.js +1 -1
  185. package/dist/components/time.js +1 -1
  186. package/dist/components/timeline-definition-PNZ67QCA.js +1 -1
  187. package/dist/components/tr-TR-DEFEU3FU.js +1 -1
  188. package/dist/components/transform.js +1 -1
  189. package/dist/components/treeView-BLDUP644.js +1 -1
  190. package/dist/components/treemap-LRROVOQU.js +1 -1
  191. package/dist/components/uk-UA-QMV73CPH.js +1 -1
  192. package/dist/components/vennDiagram-CIIHVFJN.js +1 -1
  193. package/dist/components/vi-VN-M7AON7JQ.js +1 -1
  194. package/dist/components/wardley-L42UT6IY.js +1 -1
  195. package/dist/components/wardleyDiagram-YWT4CUSO.js +1 -1
  196. package/dist/components/wasm-pack-shim.js +1 -1
  197. package/dist/components/wasm-pack-shim2.js +1 -1
  198. package/dist/components/worker-ref.js +1 -1
  199. package/dist/components/xychartDiagram-2RQKCTM6.js +1 -1
  200. package/dist/components/zh-CN-LNUGB5OW.js +1 -1
  201. package/dist/components/zh-HK-E62DVLB3.js +1 -1
  202. package/dist/components/zh-TW-RAJ6MFWO.js +1 -1
  203. package/dist/index.mjs +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- const an=d;(function(e,f){const ac=d,n=e();while(!![]){try{const r=parseInt(ac(0xde))/0x1*(-parseInt(ac(0xa4))/0x2)+parseInt(ac(0xb5))/0x3*(-parseInt(ac(0xe1))/0x4)+parseInt(ac(0xb9))/0x5+-parseInt(ac(0xaf))/0x6+parseInt(ac(0x10d))/0x7+parseInt(ac(0x10e))/0x8*(parseInt(ac(0xbf))/0x9)+parseInt(ac(0x105))/0xa;if(r===f)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(a,0x2829f));let o;function w(e){const ad=d;O===x['length']&&x[ad(0xd6)](x['length']+0x1);const f=O;if(O=x[f],typeof O!='number')throw new Error('corrupt\x20heap');return x[f]=e,f;}function E(e){if(typeof e!='boolean')throw new Error('expected\x20a\x20boolean\x20argument,\x20found\x20'+typeof e);}function A(e,f){const ae=d;if(!(e instanceof f))throw new Error(ae(0xe8)+f['name']);}function c(e){if(typeof e!='number')throw new Error('expected\x20a\x20number\x20argument,\x20found\x20'+typeof e);}const P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e['dtor'](e['a'],e['b']));function G(f){const af=d,v=typeof f;if(v==af(0xff)||v=='boolean'||f==null)return''+f;if(v=='string')return'\x22'+f+'\x22';if(v=='symbol'){const a0=f['description'];return a0==null?af(0x11a):'Symbol('+a0+')';}if(v=='function'){const a1=f['name'];return typeof a1=='string'&&a1['length']>0x0?af(0xce)+a1+')':'Function';}if(Array[af(0xf2)](f)){const a2=f['length'];let a3='[';a2>0x0&&(a3+=G(f[0x0]));for(let a4=0x1;a4<a2;a4++)a3+=',\x20'+G(f[a4]);return a3+=']',a3;}const y=/\[object ([^\]]+)\]/['exec'](toString[af(0x101)](f));let S;if(y&&y[af(0xb0)]>0x1)S=y[0x1];else return toString['call'](f);if(S=='Object')try{return'Object('+JSON['stringify'](f)+')';}catch{return'Object';}return f instanceof Error?f['name']+':\x20'+f['message']+'\x0a'+f['stack']:S;}function bt(e){e<0x84||(x[e]=O,O=e);}function q(e,f){return e=e>>>0x0,C()['subarray'](e/0x1,e/0x1+f);}let R=null;function g(){const ag=d;return(R===null||R['buffer']['detached']===!0x0||R['buffer']['detached']===void 0x0&&R['buffer']!==o['memory']['buffer'])&&(R=new DataView(o['memory'][ag(0x10a)])),R;}function p(e,f){return e=e>>>0x0,ht(e,f);}let T=null;function pt(){const ah=d;return(T===null||T['byteLength']===0x0)&&(T=new Uint32Array(o[ah(0xd9)]['buffer'])),T;}let W=null;function C(){return(W===null||W['byteLength']===0x0)&&(W=new Uint8Array(o['memory']['buffer'])),W;}function i(e){return x[e];}function b(f,r){try{return f['apply'](this,r);}catch(u){o['__wbindgen_export3'](w(u));}}let x=new Array(0x80)['fill'](void 0x0);x['push'](void 0x0,null,!0x0,!0x1);let O=x['length'];function l(e){return e==null;}function s(f,u){try{return f['apply'](this,u);}catch(v){let y=(function(){const ai=d;try{return v instanceof Error?v[ai(0xf4)]+'\x0a\x0aStack:\x0a'+v['stack']:v[ai(0x11d)]();}catch{return'<failed\x20to\x20stringify\x20thrown\x20value>';}}());throw console['error']('wasm-bindgen:\x20imported\x20JS\x20function\x20that\x20was\x20not\x20marked\x20as\x20`catch`\x20threw\x20an\x20error:',y),v;}}function a(){const bT=['save','__wbg_set_fillStyle_b26e462a87b14315','fillStyle','typstrendererbuilder_new','__wbg_call_abb4ff46ce38be40','expected\x20instance\x20of\x20','prototype','page_count','utf-8','__wasm_bindgen_func_elem_1077','nonzero','bind_functions','__wbg_drawImage_6949f7679b2a9758','wbg','basic','isArray','__wbg_height_3a0b31e52a5b7f17','message','__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc','subarray','dispose','typstrenderer_reset','__wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54','measureText','__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36','miterLimit','__wasm_bindgen_func_elem_3555','renderpageimageoptions_set_data_selection','number','lineWidth','call','__wasm_bindgen_func_elem_1056','__wbg_set_lineWidth_feda4b79a15c660b','__wbindgen_cast_b2e692da0ea8478a','321760ZSNpWt','restore','incrdomdocclient_relayout','__wbg_set_miterLimit_b12c03757937d228','typstrendererbuilder_add_lazy_font','buffer','__wbg___wbindgen_is_undefined_f6b95eab589e0269','__wbg_workerbridge_free','1379868cfVCjv','920152PsgdlC','__wbg_push_7d9be8f38fc13975','content','clientWidth','__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1','setTransform','__wbg_new_9468dd6e5df427f6','__wbg_call_c8baa5c5e72d274e','createsessionoptions_set_format','pageinfo_height_pt','cache_key','__wbindgen_export','Symbol','__wbindgen_add_to_stack_pointer','Attempt\x20to\x20use\x20a\x20moved\x20value','toString','__wbg_typstworker_free','__wbg_rendersessionoptions_free','add_glyph_pack','renderer_build_info','__wbindgen_cast_d3d3bd81840cfbdd','__wbg_drawImage_c4f2c6d2bcfa9463','203876smRNSY','lineJoin','fillRect','__wbg___wbindgen_string_get_a2a31e16edf96e42','__wbg_new_with_path_string_3aea637e78135c46','fill','read','pagesinfo_page','rendersession_background_color','failed\x20to\x20pass\x20whole\x20string','__destroy_into_raw','15996iFemEN','length','register','page','_wbg_cb_unref','lineDashOffset','6YrqAiU','typstworker_manipulate_data','__wbg_get_af9dab7e9603ea93','__wbg_ptr','1007180bhSWDU','pixel_per_pt','doc_height','__wasm_bindgen_func_elem_1034','versions','__wbg_appendChild_7465eba84213c75f','9yzgQgm','background_color','rendersession_source_span','error','cannot\x20invoke\x20`new`\x20directly','getInt32','typstrenderer_render_svg','free','pages_info','__wbindgen_object_drop_ref','charCodeAt','incrdomdocclient_need_repaint','__wbg_drawImage_e2012c2a2d434ee2','__wbg_new_no_args_cb138f77cf6151ee','clip','Function(','__wbg_clip_35de02bb25d222d9','__wbg_instanceof_OffscreenCanvas_8fb961f5ea27473f','__wbg_set_type_7ce650670a34c68f','__wbg_instanceof_Promise_eca6c43a2610558d','setInt32','create','slice','push','removeProperty','__wbindgen_export4','memory','__wbindgen_export2','rendersession_doc_width','__wbg_set_miterLimit_d891f47e244a915c','page_off','2ynMTFY','__wbg_putImageData_e96eabf0e9610ed3','getPrototypeOf','349404EQpLBv','__wrap'];a=function(){return bT;};return a();}function V(f,u,v,y){const S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{const aj=d;S['cnt']++;try{return y(S['a'],S['b'],...a1);}finally{a0[aj(0xb3)]();}};return a0['_wbg_cb_unref']=()=>{--S['cnt']===0x0&&(S['dtor'](S['a'],S['b']),S['a']=0x0,P['unregister'](S));},P['register'](a0,S,S),a0;}function dt(f,u,v,y){const ak=d,S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{S['cnt']++;const a2=S['a'];S['a']=0x0;try{return y(a2,S['b'],...a1);}finally{S['a']=a2,a0['_wbg_cb_unref']();}};return a0[ak(0xb3)]=()=>{--S['cnt']===0x0&&(S['dtor'](S['a'],S['b']),S['a']=0x0,P['unregister'](S));},P[ak(0xb1)](a0,S,S),a0;}function lt(f,r){const u=r(f['length']*0x4,0x4)>>>0x0;return pt()['set'](f,u/0x4),h=f['length'],u;}function $(f,r){const u=r(f['length']*0x1,0x1)>>>0x0;return C()['set'](f,u/0x1),h=f['length'],u;}function X(f,u){const al=d,v=u(f['length']*0x4,0x4)>>>0x0,y=g();for(let S=0x0;S<f[al(0xb0)];S++)y['setUint32'](v+0x4*S,w(f[S]),!0x0);return h=f['length'],v;}function I(v,y,S){const am=d;if(typeof v!='string')throw new Error('expected\x20a\x20string\x20argument,\x20found\x20'+typeof v);if(S===void 0x0){const a4=j['encode'](v),a5=y(a4['length'],0x1)>>>0x0;return C()['subarray'](a5,a5+a4['length'])['set'](a4),h=a4['length'],a5;}let a0=v['length'],a1=y(a0,0x1)>>>0x0;const a2=C();let a3=0x0;for(;a3<a0;a3++){const a6=v[am(0xc9)](a3);if(a6>0x7f)break;a2[a1+a3]=a6;}if(a3!==a0){a3!==0x0&&(v=v['slice'](a3)),a1=S(a1,a0,a0=a3+v['length']*0x3,0x1)>>>0x0;const a7=C()['subarray'](a1+a3,a1+a0),a8=j['encodeInto'](v,a7);if(a8[am(0xaa)]!==v['length'])throw new Error(am(0xad));a3+=a8['written'],a1=S(a1,a0,a3,0x1)>>>0x0;}return h=a3,a1;}function m(e){const f=i(e);return bt(e),f;}function d(b,c){b=b-0xa2;const e=a();let f=e[b];return f;}let U=new TextDecoder(an(0xeb),{'ignoreBOM':!0x0,'fatal':!0x0});U['decode']();const mt=0x7ff00000;let H=0x0;function ht(e,f){const ao=an;return H+=f,H>=mt&&(U=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),U['decode'](),H=f),U['decode'](C()[ao(0xf6)](e,e+f));}const j=new TextEncoder();'encodeInto'in j||(j['encodeInto']=function(f,r){const u=j['encode'](f);return r['set'](u),{'read':f['length'],'written':u['length']};});let h=0x0;function yt(f,r,u){const ap=an;c(f),c(r),o[ap(0x102)](f,r,w(u));}function vt(e,f){c(e),c(f),o['__wasm_bindgen_func_elem_1035'](e,f);}function Et(f,r,u){const aq=an;c(f),c(r),o[aq(0xbc)](f,r,w(u));}function It(f,u,v,y){const ar=an;c(f),c(u),o[ar(0xfd)](f,u,w(v),w(y));}const Y=[an(0xed),'evenodd'],K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_createsessionoptions_free'](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_incrdomdocclient_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pageinfo_free'](e>>>0x0,0x1)),tt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pagesinfo_free'](e>>>0x0,0x1)),et=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_renderpageimageoptions_free'](e>>>0x0,0x1)),nt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_rendersession_free'](e>>>0x0,0x1)),rt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[an(0x11f)](e>>>0x0,0x1)),N=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstrenderer_free'](e>>>0x0,0x1)),_t=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstrendererbuilder_free'](e>>>0x0,0x1)),kt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[an(0x11e)](e>>>0x0,0x1)),ot=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_workerbridge_free'](e>>>0x0,0x1));class J{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}['free'](){const as=an,e=this[as(0xae)]();o['__wbg_createsessionoptions_free'](e,0x0);}constructor(){const au=an,e=o['createsessionoptions_new']();return this['__wbg_ptr']=e>>>0x0,K['register'](this,this[au(0xb8)],this),this;}set['format'](f){const av=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=I(f,o[av(0x119)],o[av(0xda)]),u=h;o[av(0x116)](this['__wbg_ptr'],n,u);}set['artifact_content'](f){const aw=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=$(f,o[aw(0x119)]),u=h;o['createsessionoptions_set_artifact_content'](this['__wbg_ptr'],n,u);}}Symbol['dispose']&&(J['prototype'][Symbol['dispose']]=J['prototype']['free']);class L{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const ax=an;f=f>>>0x0;const n=Object['create'](L[ax(0xe9)]);return n['__wbg_ptr']=f,Q['register'](n,n['__wbg_ptr'],n),n;}[an(0xae)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Q['unregister'](this),e;}[an(0xc6)](){const ay=an,e=this[ay(0xae)]();o['__wbg_incrdomdocclient_free'](e,0x0);}[an(0xee)](e){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),o['incrdomdocclient_bind_functions'](this['__wbg_ptr'],w(e));}['relayout'](f,n,u,v){const az=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[az(0xb8)]);const y=o[az(0x107)](this['__wbg_ptr'],f,n,u,v);return m(y);}['need_repaint'](n,S,a0,a1,a2,a3){const aA=an;try{if(this[aA(0xb8)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[aA(0xb8)]),c(n),c(a3),o[aA(0xca)](a7,this['__wbg_ptr'],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return a4!==0x0;}finally{o[aA(0x11b)](0x10);}}['repaint'](n,S,a0,a1,a2,a3){const aB=an;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o[aB(0x11b)](-0x10);c(this['__wbg_ptr']),c(n),c(a3),o['incrdomdocclient_repaint'](a7,this['__wbg_ptr'],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return m(a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(L['prototype'][Symbol['dispose']]=L['prototype']['free']);class F{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static[an(0xe2)](f){const aC=an;f=f>>>0x0;const n=Object['create'](F[aC(0xe9)]);return n['__wbg_ptr']=f,Z[aC(0xb1)](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Z['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_pageinfo_free'](e,0x0);}get[an(0xdd)](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_page_off'](this['__wbg_ptr'])>>>0x0;}get['width_pt'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_width_pt'](this['__wbg_ptr']);}get['height_pt'](){const aD=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this[aD(0xb8)]),o[aD(0x117)](this['__wbg_ptr']);}}Symbol[an(0xf7)]&&(F['prototype'][Symbol['dispose']]=F['prototype']['free']);class M{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static[an(0xe2)](f){const aE=an;f=f>>>0x0;const n=Object[aE(0xd4)](M['prototype']);return n['__wbg_ptr']=f,tt['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,tt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_pagesinfo_free'](e,0x0);}get[an(0xea)](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_page_count'](this['__wbg_ptr'])>>>0x0;}['page_by_number'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(f);const n=o['pagesinfo_page_by_number'](this['__wbg_ptr'],f);return n===0x0?void 0x0:F['__wrap'](n);}[an(0xb2)](f){const aF=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(f);const n=o[aF(0xab)](this[aF(0xb8)],f);return F['__wrap'](n);}['width'](){const aG=an;if(this[aG(0xb8)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_width'](this['__wbg_ptr']);}['height'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_height'](this['__wbg_ptr']);}}Symbol['dispose']&&(M['prototype'][Symbol['dispose']]=M[an(0xe9)][an(0xc6)]);class z{static['__unwrap'](e){return e instanceof z?e['__destroy_into_raw']():0x0;}['__destroy_into_raw'](){const aH=an,e=this['__wbg_ptr'];return this[aH(0xb8)]=0x0,et['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_renderpageimageoptions_free'](e,0x0);}constructor(){const aI=an,e=o['renderpageimageoptions_new']();return this[aI(0xb8)]=e>>>0x0,et['register'](this,this['__wbg_ptr'],this),this;}get['pixel_per_pt'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['renderpageimageoptions_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set[an(0xba)](e){const aJ=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['renderpageimageoptions_set_pixel_per_pt'](this[aJ(0xb8)],l(e)?0x100000001:Math['fround'](e));}get['background_color'](){try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['renderpageimageoptions_background_color'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set[an(0xc0)](f){const aK=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o[aK(0xda)]),u=h;o['renderpageimageoptions_set_background_color'](this['__wbg_ptr'],n,u);}get['page_off'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['renderpageimageoptions_page_off'](this['__wbg_ptr'])>>>0x0;}set['page_off'](e){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(e),o['renderpageimageoptions_set_page_off'](this['__wbg_ptr'],e);}get['cache_key'](){const aL=an;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['renderpageimageoptions_cache_key'](u,this[aL(0xb8)]);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o[aL(0xd8)](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set[an(0x118)](f){const aM=an;if(this['__wbg_ptr']==0x0)throw new Error(aM(0x11c));c(this[aM(0xb8)]);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['renderpageimageoptions_set_cache_key'](this['__wbg_ptr'],n,u);}get['data_selection'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['renderpageimageoptions_data_selection'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['data_selection'](e){const aN=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aN(0xb8)]),l(e)||c(e),o[aN(0xfe)](this['__wbg_ptr'],l(e)?0x100000001:e>>>0x0);}}Symbol['dispose']&&(z['prototype'][Symbol['dispose']]=z['prototype'][an(0xc6)]);class k{constructor(){const aO=an;throw new Error(aO(0xc3));}static['__wrap'](f){const aP=an;f=f>>>0x0;const n=Object['create'](k['prototype']);return n['__wbg_ptr']=f,nt['register'](n,n[aP(0xb8)],n),n;}[an(0xae)](){const aQ=an,e=this[aQ(0xb8)];return this['__wbg_ptr']=0x0,nt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_rendersession_free'](e,0x0);}['render_in_window'](n,v,S,a0){const aR=an;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error(aR(0x11c));const a5=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersession_render_in_window'](a5,this['__wbg_ptr'],n,v,S,a0);var a3=g()[aR(0xc4)](a5+0x4*0x0,!0x0),a4=g()['getInt32'](a5+0x4*0x1,!0x0);return a1=a3,a2=a4,p(a3,a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a1,a2,0x1);}}get['pixel_per_pt'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['rendersession_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aS=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aS(0xb8)]),l(e)||c(e),o['rendersession_set_pixel_per_pt'](this['__wbg_ptr'],l(e)?0x100000001:Math['fround'](e));}get['background_color'](){const aT=an;try{if(this['__wbg_ptr']==0x0)throw new Error(aT(0x11c));const u=o[aT(0x11b)](-0x10);c(this['__wbg_ptr']),o[aT(0xac)](u,this['__wbg_ptr']);var f=g()[aT(0xc4)](u+0x4*0x0,!0x0),n=g()[aT(0xc4)](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o[aT(0xd8)](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set[an(0xc0)](f){const aU=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o[aU(0x119)],o[aU(0xda)]),u=h;o['rendersession_set_background_color'](this['__wbg_ptr'],n,u);}get[an(0xc7)](){const aV=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aV(0xb8)]);const e=o['rendersession_pages_info'](this[aV(0xb8)]);return M[aV(0xe2)](e);}get['doc_width'](){const aW=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this[aW(0xb8)]),o[aW(0xdb)](this[aW(0xb8)]);}get[an(0xbb)](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['rendersession_doc_height'](this['__wbg_ptr']);}['source_span'](n){const aX=an;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a2=o[aX(0x11b)](-0x10);c(this[aX(0xb8)]);const a3=lt(n,o['__wbindgen_export']),a4=h;o[aX(0xc1)](a2,this['__wbg_ptr'],a3,a4);var v=g()[aX(0xc4)](a2+0x4*0x0,!0x0),S=g()['getInt32'](a2+0x4*0x1,!0x0),a0=g()['getInt32'](a2+0x4*0x2,!0x0),a1=g()['getInt32'](a2+0x4*0x3,!0x0);if(a1)throw m(a0);let a5;return v!==0x0&&(a5=p(v,S)['slice'](),o['__wbindgen_export4'](v,S*0x1,0x1)),a5;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(k['prototype'][Symbol[an(0xf7)]]=k['prototype'][an(0xc6)]);class it{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,rt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_rendersessionoptions_free'](e,0x0);}constructor(){const aY=an,e=o['rendersessionoptions_new']();return this[aY(0xb8)]=e>>>0x0,rt['register'](this,this['__wbg_ptr'],this),this;}get['pixel_per_pt'](){const aZ=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aZ(0xb8)]);const e=o['rendersession_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['rendersession_set_pixel_per_pt'](this['__wbg_ptr'],l(e)?0x100000001:Math['fround'](e));}get[an(0xc0)](){const b0=an;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_background_color'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)[b0(0xd5)](),o[b0(0xd8)](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](f){const b1=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[b1(0xb8)]);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersessionoptions_set_background_color'](this['__wbg_ptr'],n,u);}get['format'](){const b2=an;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o[b2(0x11b)](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_format'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['format'](f){const b3=an;if(this['__wbg_ptr']==0x0)throw new Error(b3(0x11c));c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersessionoptions_set_format'](this['__wbg_ptr'],n,u);}}Symbol['dispose']&&(it['prototype'][Symbol['dispose']]=it['prototype']['free']);class D{static['__wrap'](f){const b4=an;f=f>>>0x0;const n=Object[b4(0xd4)](D['prototype']);return n[b4(0xb8)]=f,N['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,N['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_typstrenderer_free'](e,0x0);}constructor(){const b5=an,e=o['typstrenderer_new']();return this['__wbg_ptr']=e>>>0x0,N[b5(0xb1)](this,this[b5(0xb8)],this),this;}['create_session'](f){const b6=an;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const S=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[b6(0xb8)]);let a0=0x0;if(!l(f)){if(A(f,J),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');a0=f['__destroy_into_raw']();}o['typstrenderer_create_session'](S,this[b6(0xb8)],a0);var n=g()['getInt32'](S+0x4*0x0,!0x0),v=g()['getInt32'](S+0x4*0x1,!0x0),y=g()[b6(0xc4)](S+0x4*0x2,!0x0);if(y)throw m(v);return k['__wrap'](n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['reset'](f){const b7=an;try{if(this[b7(0xb8)]==0x0)throw new Error(b7(0x11c));const v=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o[b7(0xf8)](v,this[b7(0xb8)],f[b7(0xb8)]);var n=g()[b7(0xc4)](v+0x4*0x0,!0x0),u=g()['getInt32'](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['manipulate_data'](n,S,a0){const b8=an;try{if(this[b8(0xb8)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a4=I(S,o['__wbindgen_export'],o[b8(0xda)]),a5=h,a6=$(a0,o['__wbindgen_export']),a7=h;o['typstrenderer_manipulate_data'](a3,this['__wbg_ptr'],n['__wbg_ptr'],a4,a5,a6,a7);var a1=g()['getInt32'](a3+0x4*0x0,!0x0),a2=g()['getInt32'](a3+0x4*0x1,!0x0);if(a2)throw m(a1);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['session_from_artifact'](n,S){const b9=an;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a4=$(n,o[b9(0x119)]),a5=h,a6=I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a7=h;o['typstrenderer_session_from_artifact'](a3,this[b9(0xb8)],a4,a5,a6,a7);var a0=g()['getInt32'](a3+0x4*0x0,!0x0),a1=g()[b9(0xc4)](a3+0x4*0x1,!0x0),a2=g()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw m(a1);return k['__wrap'](a0);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['load_glyph_pack'](f){const ba=an;try{if(this[ba(0xb8)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const v=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['typstrenderer_load_glyph_pack'](v,this['__wbg_ptr'],w(f));var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()['getInt32'](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o[ba(0x11b)](0x10);}}['render_svg_diff'](n,S,a0,a1,a2){const bb=an;let a3,a4;try{if(this[bb(0xb8)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n[bb(0xb8)]===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o['typstrenderer_render_svg_diff'](a7,this['__wbg_ptr'],n[bb(0xb8)],S,a0,a1,a2);var a5=g()['getInt32'](a7+0x4*0x0,!0x0),a6=g()['getInt32'](a7+0x4*0x1,!0x0);return a3=a5,a4=a6,p(a5,a6);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a3,a4,0x1);}}['svg_data'](n,a0){const bc=an;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a9=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');l(a0)||c(a0),o['typstrenderer_svg_data'](a9,this['__wbg_ptr'],n[bc(0xb8)],l(a0)?0x100000001:a0>>>0x0);var a3=g()['getInt32'](a9+0x4*0x0,!0x0),a4=g()['getInt32'](a9+0x4*0x1,!0x0),a5=g()['getInt32'](a9+0x4*0x2,!0x0),a6=g()['getInt32'](a9+0x4*0x3,!0x0),a7=a3,a8=a4;if(a6)throw a7=0x0,a8=0x0,m(a5);return a1=a7,a2=a8,p(a7,a8);}finally{o[bc(0x11b)](0x10),o[bc(0xd8)](a1,a2,0x1);}}['get_customs'](f){const bd=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f[bd(0xb8)]===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const n=o['typstrenderer_get_customs'](this[bd(0xb8)],f[bd(0xb8)]);return m(n);}['render_svg'](f,n){const be=an;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a0=o[be(0x11b)](-0x10);if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error(be(0x11c));o[be(0xc5)](a0,this['__wbg_ptr'],f[be(0xb8)],w(n));var v=g()['getInt32'](a0+0x4*0x0,!0x0),y=g()['getInt32'](a0+0x4*0x1,!0x0),S=g()['getInt32'](a0+0x4*0x2,!0x0);if(S)throw m(y);return v!==0x0;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['create_worker'](f){const bf=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o['typstrenderer_create_worker'](this[bf(0xb8)],w(f));return m(n);}['create_worker_bridge'](){const bg=an;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const v=this['__destroy_into_raw'](),y=o['__wbindgen_add_to_stack_pointer'](-0x10);c(v),o['typstrenderer_create_worker_bridge'](y,v);var f=g()[bg(0xc4)](y+0x4*0x0,!0x0),n=g()['getInt32'](y+0x4*0x1,!0x0),u=g()['getInt32'](y+0x4*0x2,!0x0);if(u)throw m(n);return B['__wrap'](f);}finally{o[bg(0x11b)](0x10);}}['render_page_to_canvas'](f,n,u){const bh=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error(bh(0x11c));let v=0x0;if(!l(u)){if(A(u,z),u['__wbg_ptr']===0x0)throw new Error(bh(0x11c));v=u['__destroy_into_raw']();}const y=o['typstrenderer_render_page_to_canvas'](this['__wbg_ptr'],f['__wbg_ptr'],w(n),v);return m(y);}['mount_dom'](f,n){const bi=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f[bi(0xb8)]===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['typstrenderer_mount_dom'](this['__wbg_ptr'],f['__wbg_ptr'],w(n));return m(u);}}Symbol[an(0xf7)]&&(D['prototype'][Symbol['dispose']]=D['prototype'][an(0xc6)]);class st{[an(0xae)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,_t['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_typstrendererbuilder_free'](e,0x0);}constructor(){const bj=an;try{const v=o['__wbindgen_add_to_stack_pointer'](-0x10);o[bj(0xe6)](v);var f=g()['getInt32'](v+0x4*0x0,!0x0),n=g()['getInt32'](v+0x4*0x1,!0x0),u=g()['getInt32'](v+0x4*0x2,!0x0);if(u)throw m(n);return this[bj(0xb8)]=f>>>0x0,_t['register'](this,this[bj(0xb8)],this),this;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const f=this['__destroy_into_raw']();c(f);const n=o['typstrendererbuilder_build'](f);return m(n);}[an(0x120)](f){const bk=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o['typstrendererbuilder_add_glyph_pack'](this[bk(0xb8)],w(f));return m(n);}['add_raw_font'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o['typstrendererbuilder_add_raw_font'](this['__wbg_ptr'],w(f));return m(n);}['add_lazy_font'](f,n){const bl=an;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const u=o[bl(0x109)](this[bl(0xb8)],w(f),w(n));return m(u);}}Symbol['dispose']&&(st[an(0xe9)][Symbol['dispose']]=st[an(0xe9)]['free']);class at{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}['__destroy_into_raw'](){const bm=an,e=this['__wbg_ptr'];return this[bm(0xb8)]=0x0,kt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_typstworker_free'](e,0x0);}['manipulate_data'](n,v){const bn=an;try{if(this['__wbg_ptr']==0x0)throw new Error(bn(0x11c));const a1=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a2=I(n,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;o[bn(0xb6)](a1,this[bn(0xb8)],a2,a3,w(v));var y=g()['getInt32'](a1+0x4*0x0,!0x0),S=g()['getInt32'](a1+0x4*0x1,!0x0),a0=g()[bn(0xc4)](a1+0x4*0x2,!0x0);if(a0)throw m(S);return m(y);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['get_pages_info'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['typstworker_get_pages_info'](this['__wbg_ptr']);return m(e);}['render_canvas'](n,a0,a1){const bo=an;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[bo(0xb8)]);const a6=$(n,o['__wbindgen_export']),a7=h,a8=X(a0,o[bo(0x119)]),a9=h,aa=X(a1,o[bo(0x119)]),ab=h;o['typstworker_render_canvas'](a5,this['__wbg_ptr'],a6,a7,a8,a9,aa,ab);var a2=g()['getInt32'](a5+0x4*0x0,!0x0),a3=g()[bo(0xc4)](a5+0x4*0x1,!0x0),a4=g()[bo(0xc4)](a5+0x4*0x2,!0x0);if(a4)throw m(a3);return m(a2);}finally{o[bo(0x11b)](0x10);}}}Symbol[an(0xf7)]&&(at['prototype'][Symbol[an(0xf7)]]=at['prototype']['free']);class B{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const bp=an;f=f>>>0x0;const n=Object['create'](B['prototype']);return n[bp(0xb8)]=f,ot['register'](n,n[bp(0xb8)],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,ot['unregister'](this),e;}['free'](){const bq=an,e=this['__destroy_into_raw']();o[bq(0x10c)](e,0x0);}}Symbol['dispose']&&(B['prototype'][Symbol['dispose']]=B['prototype']['free']);function Ft(){const br=an,e=o[br(0x121)]();return m(e);}const At=new Set([an(0xf1),'cors','default']);async function xt(f,u){if(typeof Response=='function'&&f instanceof Response){if(typeof WebAssembly['instantiateStreaming']=='function')try{return await WebAssembly['instantiateStreaming'](f,u);}catch(y){if(f['ok']&&At['has'](f['type'])&&f['headers']['get']('Content-Type')!=='application/wasm')console['warn']('`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a',y);else throw y;}const v=await f['arrayBuffer']();return await WebAssembly['instantiate'](v,u);}else{const S=await WebAssembly['instantiate'](f,u);return S instanceof WebAssembly['Instance']?{'instance':S,'module':f}:S;}}function ut(){const bs=an,e={};return e['wbg']={},e['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(f,u){const v=G(i(u)),y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(f){const r=typeof i(f)=='function';return E(r),r;},e['wbg'][bs(0x10b)]=function(f){const r=i(f)===void 0x0;return E(r),r;},e['wbg'][bs(0xfb)]=function(f,u){const v=i(f)===i(u);return E(v),v;},e['wbg'][bs(0xa7)]=function(f,v){const bu=bs,y=i(v),S=typeof y=='string'?y:void 0x0;var a0=l(S)?0x0:I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a1=h;g()['setInt32'](f+0x4*0x1,a1,!0x0),g()[bu(0xd3)](f+0x4*0x0,a0,!0x0);},e['wbg']['__wbg___wbindgen_throw_dd24417ed36fc46e']=function(f,r){throw new Error(p(f,r));},e[bs(0xf0)]['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(){return s(function(f){i(f)['_wbg_cb_unref']();},arguments);},e['wbg'][bs(0xbe)]=function(){return b(function(f,u){const v=i(f)['appendChild'](i(u));return w(v);},arguments);},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return b(function(f,u,v){const y=i(f)['call'](i(u),i(v));return w(y);},arguments);},e['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return b(function(f,v,y,S,a0){const a1=i(f)['call'](i(v),i(y),i(S),i(a0));return w(a1);},arguments);},e[bs(0xf0)][bs(0xe7)]=function(){return b(function(f,u){const bv=d,v=i(f)[bv(0x101)](i(u));return w(v);},arguments);},e['wbg'][bs(0x115)]=function(){return b(function(f,u,v,y){const S=i(f)['call'](i(u),i(v),i(y));return w(S);},arguments);},e['wbg']['__wbg_clearRect_c2909c2f38887f82']=function(){return s(function(f,u,v,y,S){i(f)['clearRect'](u,v,y,S);},arguments);},e[bs(0xf0)]['__wbg_clientWidth_dbc9540f4ebdce2a']=function(){return s(function(f){const bw=d,r=i(f)[bw(0x111)];return c(r),r;},arguments);},e['wbg'][bs(0xcf)]=function(){return s(function(f,r){i(f)['clip'](i(r));},arguments);},e['wbg']['__wbg_clip_afc9a92171eee96e']=function(){return s(function(f,r){const bx=d;i(f)[bx(0xcd)](i(r));},arguments);},e['wbg']['__wbg_cloneNode_c9c45b24b171a776']=function(){return b(function(f){const r=i(f)['cloneNode']();return w(r);},arguments);},e['wbg']['__wbg_content_ad90fa08b8c037c5']=function(){return s(function(f){const by=d,r=i(f)[by(0x110)];return w(r);},arguments);},e['wbg']['__wbg_createElement_da4ed2b219560fc6']=function(){return b(function(f,u,v){const y=i(f)['createElement'](p(u,v));return w(y);},arguments);},e['wbg']['__wbg_createImageBitmap_15b94d7a7277d0be']=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e['wbg']['__wbg_createImageBitmap_4772db6cb0dff013']=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e['wbg']['__wbg_createObjectURL_7d9f7f8f41373850']=function(){return b(function(f,u){const bz=d,v=URL['createObjectURL'](i(u)),y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()[bz(0xd3)](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_document_5b745e82ba551ca5']=function(){return s(function(f){const r=i(f)['document'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_drawImage_2859dfb229439d8c']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg'][bs(0xef)]=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_c2aacfe3133aedb7']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_c40aff4a38206f4a']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e[bs(0xf0)][bs(0xa3)]=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e[bs(0xf0)]['__wbg_drawImage_de5946f9cc23c2b9']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg'][bs(0xcb)]=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_error_7534b8e9a36f1ab4']=function(){return s(function(f,u){const bA=d;let v,y;try{v=f,y=u,console[bA(0xc2)](p(f,u));}finally{o['__wbindgen_export4'](v,y,0x1);}},arguments);},e['wbg']['__wbg_fillRect_84131220403e26a4']=function(){return s(function(f,u,v,y,S){const bB=d;i(f)[bB(0xa6)](u,v,y,S);},arguments);},e['wbg']['__wbg_fillRect_e0efe328740308e7']=function(){return s(function(f,u,v,y,S){i(f)['fillRect'](u,v,y,S);},arguments);},e['wbg']['__wbg_fill_2f2cb4f3f75aadd4']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_38a7d7455451c001']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_3d82e52894462c95']=function(){return s(function(f,r){i(f)['fill'](i(r));},arguments);},e['wbg']['__wbg_fill_f1043be5324533f3']=function(){return s(function(f,r){const bC=d;i(f)[bC(0xa9)](i(r));},arguments);},e['wbg']['__wbg_firstElementChild_54d515b19cee5ae7']=function(){return s(function(f){const r=i(f)['firstElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_firstElementChild_e207b33aaa4a86df']=function(){return s(function(f){const r=i(f)['firstElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_getAttribute_80900eec94cb3636']=function(){return s(function(v,y,S,a0){const a1=i(y)['getAttribute'](p(S,a0));var a2=l(a1)?0x0:I(a1,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;g()['setInt32'](v+0x4*0x1,a3,!0x0),g()['setInt32'](v+0x4*0x0,a2,!0x0);},arguments);},e[bs(0xf0)]['__wbg_getContext_01f42b234e833f0a']=function(){return b(function(f,u,v){const y=i(f)['getContext'](p(u,v));return l(y)?0x0:w(y);},arguments);},e['wbg']['__wbg_getContext_2f210d0a58d43d95']=function(){return b(function(f,u,v){const y=i(f)['getContext'](p(u,v));return l(y)?0x0:w(y);},arguments);},e['wbg'][bs(0xb7)]=function(){return b(function(f,u){const v=Reflect['get'](i(f),i(u));return w(v);},arguments);},e[bs(0xf0)]['__wbg_globalCompositeOperation_03e6a5201c8ee369']=function(){return b(function(f,u){const bD=d,v=i(u)['globalCompositeOperation'],y=I(v,o['__wbindgen_export'],o[bD(0xda)]),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()[bD(0xd3)](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_globalCompositeOperation_d52c6e6666e4be00']=function(){return b(function(f,u){const v=i(u)['globalCompositeOperation'],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg'][bs(0xf3)]=function(){return s(function(f){const r=i(f)['height'];return c(r),r;},arguments);},e['wbg']['__wbg_incrdomdocclient_new']=function(){return s(function(f){const r=L['__wrap'](f);return w(r);},arguments);},e['wbg']['__wbg_instanceof_CanvasRenderingContext2d_d070139aaac1459f']=function(){return s(function(f){let u;try{u=i(f)instanceof CanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e[bs(0xf0)]['__wbg_instanceof_Element_6f7ba982258cfc0f']=function(){return s(function(f){let u;try{u=i(f)instanceof Element;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e[bs(0xf0)][bs(0xf5)]=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLCanvasElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlDivElement_a55b9d453d2d8037']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLDivElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlElement_20a3acb594113d73']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlTemplateElement_702a22ea7e74d089']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLTemplateElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_ImageBitmap_e44697c70dffc0fe']=function(){return s(function(f){let u;try{u=i(f)instanceof ImageBitmap;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_OffscreenCanvasRenderingContext2d_52996da29a2bf2f5']=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][bs(0xd0)]=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvas;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e[bs(0xf0)][bs(0xd2)]=function(){return s(function(f){let u;try{u=i(f)instanceof Promise;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgGraphicsElement_16c442d1a36270b3']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGGraphicsElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgsvgElement_27a38efc9750b6fa']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGSVGElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Window_b5cf7783caa68180']=function(){return s(function(f){let u;try{u=i(f)instanceof Window;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][bs(0xf9)]=function(){return s(function(f){let u;try{u=i(f)instanceof WorkerGlobalScope;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_lastElementChild_6b90fe10adf639a2']=function(){return s(function(f){const r=i(f)['lastElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_length_22ac23eaec9d8053']=function(){return s(function(f){const bE=d,r=i(f)[bE(0xb0)];return c(r),r;},arguments);},e['wbg']['__wbg_log_1d990106d99dacb7']=function(){return s(function(f){console['log'](i(f));},arguments);},e['wbg']['__wbg_log_fd6486c6d5396ce5']=function(){return s(function(f,r){console['log'](i(f),i(r));},arguments);},e['wbg']['__wbg_measureText_a465ecc06491802d']=function(){return b(function(f,u,v){const bF=d,y=i(f)[bF(0xfa)](p(u,v));return w(y);},arguments);},e[bs(0xf0)]['__wbg_new_1ba21ce319a06297']=function(){return s(function(){const f=new Object();return w(f);},arguments);},e[bs(0xf0)]['__wbg_new_25f239778d6112b9']=function(){return s(function(){const f=new Array();return w(f);},arguments);},e['wbg']['__wbg_new_2884ddbcda091bc1']=function(){return b(function(){const f=new Image();return w(f);},arguments);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){return s(function(){const f=new Error();return w(f);},arguments);},e['wbg'][bs(0x114)]=function(){return b(function(f,u){const v=new OffscreenCanvas(f>>>0x0,u>>>0x0);return w(v);},arguments);},e[bs(0xf0)]['__wbg_new_df1173567d5ff028']=function(){return s(function(f,u){const v=new Error(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_ff12d2b041fb48f1']=function(){return s(function(f,u){try{var v={'a':f,'b':u},y=(a0,a1)=>{const a2=v['a'];v['a']=0x0;try{return It(a2,v['b'],a0,a1);}finally{v['a']=a2;}};const S=new Promise(y);return w(S);}finally{v['a']=v['b']=0x0;}},arguments);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(){return s(function(f,u){const v=new Uint8Array(q(f,u));return w(v);},arguments);},e[bs(0xf0)][bs(0xcc)]=function(){return s(function(f,u){const v=new Function(p(f,u));return w(v);},arguments);},e[bs(0xf0)]['__wbg_new_with_length_aa5eaf41d35235e5']=function(){return s(function(f){const r=new Uint8Array(f>>>0x0);return w(r);},arguments);},e[bs(0xf0)][bs(0xa8)]=function(){return b(function(f,u){const v=new Path2D(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_with_u8_array_sequence_and_options_d4def9ec0588c7ec']=function(){return b(function(f,u){const v=new Blob(i(f),i(u));return w(v);},arguments);},e['wbg']['__wbg_nextElementSibling_c745ee48314963c0']=function(){return s(function(f){const r=i(f)['nextElementSibling'];return l(r)?0x0:w(r);},arguments);},e[bs(0xf0)][bs(0x10f)]=function(){return s(function(f,u){const v=i(f)['push'](i(u));return c(v),v;},arguments);},e['wbg']['__wbg_putImageData_c280ca107c4b7828']=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e['wbg'][bs(0xdf)]=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e['wbg']['__wbg_queueMicrotask_9b549dfce8865860']=function(){return s(function(f){const r=i(f)['queueMicrotask'];return w(r);},arguments);},e['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(){return s(function(f){queueMicrotask(i(f));},arguments);},e['wbg']['__wbg_removeProperty_c2e16faee2834bef']=function(){return b(function(v,y,S,a0){const bG=d,a1=i(y)[bG(0xd7)](p(S,a0)),a2=I(a1,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;g()[bG(0xd3)](v+0x4*0x1,a3,!0x0),g()[bG(0xd3)](v+0x4*0x0,a2,!0x0);},arguments);},e['wbg']['__wbg_remove_32f69ffabcbc4072']=function(){return s(function(f){i(f)['remove']();},arguments);},e['wbg']['__wbg_renderpageimageoptions_unwrap']=function(){return s(function(f){const r=z['__unwrap'](i(f));return c(r),r;},arguments);},e['wbg']['__wbg_replaceWith_923cfb1b2f584408']=function(){return b(function(f,r){i(f)['replaceWith'](i(r));},arguments);},e['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(){return s(function(f){const r=Promise['resolve'](i(f));return w(r);},arguments);},e['wbg']['__wbg_restore_352c39c9bbeedc91']=function(){return s(function(f){const bH=d;i(f)[bH(0x106)]();},arguments);},e[bs(0xf0)]['__wbg_restore_6486cb1a7aa3af7b']=function(){return s(function(f){const bI=d;i(f)[bI(0x106)]();},arguments);},e[bs(0xf0)]['__wbg_revokeObjectURL_88db3468842ff09e']=function(){return b(function(f,r){URL['revokeObjectURL'](p(f,r));},arguments);},e['wbg']['__wbg_save_131c8dc648f702b6']=function(){return s(function(f){i(f)['save']();},arguments);},e[bs(0xf0)]['__wbg_save_b8767cfd2ee7f600']=function(){return s(function(f){const bJ=d;i(f)[bJ(0xe3)]();},arguments);},e['wbg']['__wbg_setAttribute_34747dd193f45828']=function(){return b(function(f,u,v,y,S){i(f)['setAttribute'](p(u,v),p(y,S));},arguments);},e[bs(0xf0)]['__wbg_setLineDash_7e3aad159aa2710c']=function(){return b(function(f,r){i(f)['setLineDash'](i(r));},arguments);},e['wbg']['__wbg_setLineDash_cfbc3a6bfddeee62']=function(){return b(function(f,r){i(f)['setLineDash'](i(r));},arguments);},e['wbg']['__wbg_setProperty_f27b2c05323daf8a']=function(){return b(function(f,u,v,y,S){i(f)['setProperty'](p(u,v),p(y,S));},arguments);},e['wbg']['__wbg_setTransform_9de588d9f080f5bc']=function(){return b(function(v,y,S,a0,a1,a2,a3){const bK=d;i(v)[bK(0x113)](y,S,a0,a1,a2,a3);},arguments);},e['wbg']['__wbg_setTransform_c55eca1193bf5ea1']=function(){return b(function(v,y,S,a0,a1,a2,a3){i(v)['setTransform'](y,S,a0,a1,a2,a3);},arguments);},e['wbg']['__wbg_set_169e13b608078b7b']=function(){return s(function(f,u,v){i(f)['set'](q(u,v));},arguments);},e[bs(0xf0)]['__wbg_set_781438a03c0c3c81']=function(){return b(function(f,u,v){const y=Reflect['set'](i(f),i(u),i(v));return E(y),y;},arguments);},e['wbg']['__wbg_set_7df433eea03a5c14']=function(){return s(function(f,u,v){i(f)[u>>>0x0]=m(v);},arguments);},e[bs(0xf0)][bs(0xe4)]=function(){return s(function(f,u,v){i(f)['fillStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_fillStyle_c9a0550307cd4671']=function(){return s(function(f,u,v){const bL=d;i(f)[bL(0xe5)]=p(u,v);},arguments);},e['wbg']['__wbg_set_font_6d67b15564a1e344']=function(){return s(function(f,u,v){i(f)['font']=p(u,v);},arguments);},e['wbg']['__wbg_set_globalCompositeOperation_418a0b97ba91a947']=function(){return b(function(f,u,v){i(f)['globalCompositeOperation']=p(u,v);},arguments);},e['wbg']['__wbg_set_globalCompositeOperation_7e16c72877ba5f86']=function(){return b(function(f,u,v){i(f)['globalCompositeOperation']=p(u,v);},arguments);},e['wbg']['__wbg_set_height_6f8f8ef4cb40e496']=function(){return s(function(f,r){i(f)['height']=r>>>0x0;},arguments);},e['wbg']['__wbg_set_innerHTML_f1d03f780518a596']=function(){return s(function(f,u,v){i(f)['innerHTML']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineCap_74b37c7ff968f854']=function(){return s(function(f,u,v){i(f)['lineCap']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineCap_791e7648138cc371']=function(){return s(function(f,u,v){i(f)['lineCap']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineDashOffset_85f21a63ddf34d2c']=function(){return s(function(f,r){const bM=d;i(f)[bM(0xb4)]=r;},arguments);},e['wbg']['__wbg_set_lineDashOffset_f032b4e2a273a2f5']=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e['wbg']['__wbg_set_lineJoin_196c6ac02fd494c3']=function(){return s(function(f,u,v){i(f)['lineJoin']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineJoin_a136f09dd803e0cc']=function(){return s(function(f,u,v){const bN=d;i(f)[bN(0xa5)]=p(u,v);},arguments);},e[bs(0xf0)]['__wbg_set_lineWidth_ed39767bf75d602d']=function(){return s(function(f,r){const bO=d;i(f)[bO(0x100)]=r;},arguments);},e['wbg'][bs(0x103)]=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg'][bs(0x108)]=function(){return s(function(f,r){const bP=d;i(f)[bP(0xfc)]=r;},arguments);},e['wbg'][bs(0xdc)]=function(){return s(function(f,r){i(f)['miterLimit']=r;},arguments);},e['wbg']['__wbg_set_onerror_e7e40c62a55a0770']=function(){return s(function(f,r){i(f)['onerror']=i(r);},arguments);},e['wbg']['__wbg_set_onload_5e2862e3453854de']=function(){return s(function(f,r){i(f)['onload']=i(r);},arguments);},e['wbg']['__wbg_set_src_84f27c5105946dce']=function(){return s(function(f,u,v){i(f)['src']=p(u,v);},arguments);},e[bs(0xf0)]['__wbg_set_strokeStyle_25d5381be570e780']=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_strokeStyle_697a576d2d3fbeaa']=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg'][bs(0xd1)]=function(){return s(function(f,u,v){i(f)['type']=p(u,v);},arguments);},e['wbg']['__wbg_set_width_7ff7a22c6e9f423e']=function(){return s(function(f,r){i(f)['width']=r>>>0x0;},arguments);},e['wbg']['__wbg_stack_0ed75d68575b0f3c']=function(){return s(function(f,u){const bQ=d,v=i(u)['stack'],y=I(v,o['__wbindgen_export'],o[bQ(0xda)]),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){return s(function(){const f=typeof global>'u'?null:global;return l(f)?0x0:w(f);},arguments);},e['wbg'][bs(0x112)]=function(){return s(function(){const f=typeof globalThis>'u'?null:globalThis;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){return s(function(){const f=typeof self>'u'?null:self;return l(f)?0x0:w(f);},arguments);},e[bs(0xf0)]['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){return s(function(){const f=typeof window>'u'?null:window;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_stringify_655a6390e1f5eb6b']=function(){return b(function(f){const r=JSON['stringify'](i(f));return w(r);},arguments);},e['wbg']['__wbg_stroke_41b0736a6a0b61aa']=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e['wbg']['__wbg_stroke_7cfe6d60a6c48303']=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e['wbg']['__wbg_style_521a717da50e53c6']=function(){return s(function(f){const r=i(f)['style'];return w(r);},arguments);},e['wbg']['__wbg_then_429f7caf1026411d']=function(){return s(function(f,u,v){const y=i(f)['then'](i(u),i(v));return w(y);},arguments);},e['wbg']['__wbg_then_4f95312d68691235']=function(){return s(function(f,u){const v=i(f)['then'](i(u));return w(v);},arguments);},e['wbg']['__wbg_transferToImageBitmap_7048556ff33da7ed']=function(){return b(function(f){const r=i(f)['transferToImageBitmap']();return w(r);},arguments);},e['wbg']['__wbg_typstrenderer_new']=function(){return s(function(f){const r=D['__wrap'](f);return w(r);},arguments);},e['wbg']['__wbg_warn_6e567d0d926ff881']=function(){return s(function(f){console['warn'](i(f));},arguments);},e['wbg']['__wbg_width_c3f96f2ca7ab208d']=function(){return s(function(f){return i(f)['width'];},arguments);},e['wbg']['__wbg_width_f13d2e86324fc226']=function(){return s(function(f){const r=i(f)['width'];return c(r),r;},arguments);},e['wbg']['__wbindgen_cast_2241b6af4c4b2941']=function(){return s(function(f,u){const v=p(f,u);return w(v);},arguments);},e['wbg']['__wbindgen_cast_34ce245e5be1ba8b']=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],vt);return w(v);},arguments);},e['wbg'][bs(0x104)]=function(){return s(function(f,u){const bR=d,v=dt(f,u,o[bR(0xec)],yt);return w(v);},arguments);},e['wbg'][bs(0xa2)]=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],Et);return w(v);},arguments);},e['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(){return s(function(f){return w(f);},arguments);},e['wbg']['__wbindgen_object_clone_ref']=function(f){const r=i(f);return w(r);},e['wbg'][bs(0xc8)]=function(f){m(f);},e;}function ct(e,f){return o=e['exports'],St['__wbindgen_wasm_module']=f,R=null,T=null,W=null,o;}function zt(f){if(o!==void 0x0)return o;typeof f<'u'&&(Object['getPrototypeOf'](f)===Object['prototype']?{module:f}=f:console['warn']('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));const r=ut();f instanceof WebAssembly['Module']||(f=new WebAssembly['Module'](f));const u=new WebAssembly['Instance'](f,r);return ct(u,f);}async function St(f){const bS=an;if(o!==void 0x0)return o;typeof f<'u'&&(Object[bS(0xe0)](f)===Object['prototype']?{module_or_path:f}=f:console['warn']('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),typeof f>'u'&&(f=gt('typst_ts_renderer_bg.wasm',import.meta.url));const u=ut();(typeof f=='string'||typeof Request=='function'&&f instanceof Request||typeof URL=='function'&&f instanceof URL)&&(f=fetch(f));const {instance:v,module:y}=await xt(await f,u);return ct(v,y);}let gt=async function(e,f){throw new Error('Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20'+e+'\x20'+f);};function Rt(e){gt=e;}let Ot=async function(f,u){const v=new Function('m','return\x20import(m)'),{readFileSync:y}=await v('fs'),S=new URL(f,u);return await y(S)['buffer'];};const Ct=typeof process<'u'&&process[an(0xbd)]!=null&&process['versions']['node']!=null;Ct&&Rt(Ot);export{J as CreateSessionOptions,L as IncrDomDocClient,F as PageInfo,M as PagesInfo,z as RenderPageImageOptions,k as RenderSession,it as RenderSessionOptions,D as TypstRenderer,st as TypstRendererBuilder,at as TypstWorker,B as WorkerBridge,St as default,zt as initSync,Ft as renderer_build_info,Rt as setImportWasmModule};
1
+ const ag=d;function a(){const cb=['rendersession_background_color','Attempt\x20to\x20use\x20a\x20moved\x20value','fill','clip','398726KuRmfv','1172643QqALQd','node','__wbg_typstrendererbuilder_free','__destroy_into_raw','__wbindgen_export','data_selection','call','detached','cannot\x20invoke\x20`new`\x20directly','__wbg_call_78f94eb02ec7f9b2','pagesinfo_width','__wbg___wbindgen_throw_dd24417ed36fc46e','manipulate_data','function','stack','6535IiyCNe','firstElementChild','createsessionoptions_new','cnt','__wbindgen_export2','doc_height','then','rendersession_set_pixel_per_pt','renderpageimageoptions_new','queueMicrotask','typst_ts_renderer_bg.wasm','message','rendersession_render_in_window','renderpageimageoptions_cache_key','__wbg_static_accessor_WINDOW_a8924b26aa92d024','instantiateStreaming','__wbg_then_4f95312d68691235','onload','9SzmgRH','renderpageimageoptions_set_background_color','__wbg_typstworker_free','encodeInto','page_off','rendersession_set_background_color','charCodeAt','subarray','fillStyle','__wbg_set_lineWidth_ed39767bf75d602d','__wbg_transferToImageBitmap_7048556ff33da7ed','lastElementChild','__wbg_queueMicrotask_9b549dfce8865860','create_worker','__wasm_bindgen_func_elem_1056','3532fqMxmW','__wbg_cloneNode_c9c45b24b171a776','getInt32','__wbg_fill_f1043be5324533f3','__wbg_instanceof_SvgsvgElement_27a38efc9750b6fa','remove','__wasm_bindgen_func_elem_1077','error','Object','__wrap','incrdomdocclient_need_repaint','pagesinfo_page','__wbg_putImageData_c280ca107c4b7828','slice','30573732IwhwIZ','unregister','background_color','10gxxBNZ','getPrototypeOf','create','application/wasm','4MpmioI','artifact_content','14667496HcwOXy','__wasm_bindgen_func_elem_1035','prototype','pagesinfo_height','getAttribute','set','register','incrdomdocclient_repaint','30ZhqZID','__wbindgen_export4','dispose','__wbg_createsessionoptions_free','_wbg_cb_unref','free','__wbg_document_5b745e82ba551ca5','wbg','__wbg_log_1d990106d99dacb7','drawImage','lineCap','__wbg_replaceWith_923cfb1b2f584408','need_repaint','setInt32','__wbg_drawImage_6949f7679b2a9758','miterLimit','cache_key','pixel_per_pt','Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20','__wbg_resolve_fd5bfbaa4ce36e1e','log','decode','Module','__wbg_ptr','buffer','1241779rxYSAX','__wbg_clip_35de02bb25d222d9','__wbg_getContext_2f210d0a58d43d95','__wbg_workerbridge_free','__wbg_createImageBitmap_15b94d7a7277d0be','lineJoin','pagesinfo_page_by_number','rendersession_doc_height','nonzero','length','setUint32','setTransform','memory','__wbindgen_add_to_stack_pointer','45717BaBRyE','removeProperty','__wbg_restore_6486cb1a7aa3af7b'];a=function(){return cb;};return a();}(function(e,f){const ac=d,n=e();while(!![]){try{const r=-parseInt(ac(0x90))/0x1+parseInt(ac(0xd6))/0x2*(parseInt(ac(0x91))/0x3)+parseInt(ac(0xc1))/0x4*(parseInt(ac(0xa0))/0x5)+parseInt(ac(0xe0))/0x6*(parseInt(ac(0x89))/0x7)+parseInt(ac(0xd8))/0x8*(parseInt(ac(0xb2))/0x9)+parseInt(ac(0xd2))/0xa*(parseInt(ac(0xf9))/0xb)+-parseInt(ac(0xcf))/0xc;if(r===f)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(a,0xec65f));let o;function w(e){O===x['length']&&x['push'](x['length']+0x1);const f=O;if(O=x[f],typeof O!='number')throw new Error('corrupt\x20heap');return x[f]=e,f;}function E(e){if(typeof e!='boolean')throw new Error('expected\x20a\x20boolean\x20argument,\x20found\x20'+typeof e);}function A(e,f){if(!(e instanceof f))throw new Error('expected\x20instance\x20of\x20'+f['name']);}function c(e){if(typeof e!='number')throw new Error('expected\x20a\x20number\x20argument,\x20found\x20'+typeof e);}const P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e['dtor'](e['a'],e['b']));function G(f){const ad=d,v=typeof f;if(v=='number'||v=='boolean'||f==null)return''+f;if(v=='string')return'\x22'+f+'\x22';if(v=='symbol'){const a0=f['description'];return a0==null?'Symbol':'Symbol('+a0+')';}if(v==ad(0x9e)){const a1=f['name'];return typeof a1=='string'&&a1['length']>0x0?'Function('+a1+')':'Function';}if(Array['isArray'](f)){const a2=f['length'];let a3='[';a2>0x0&&(a3+=G(f[0x0]));for(let a4=0x1;a4<a2;a4++)a3+=',\x20'+G(f[a4]);return a3+=']',a3;}const y=/\[object ([^\]]+)\]/['exec'](toString['call'](f));let S;if(y&&y['length']>0x1)S=y[0x1];else return toString[ad(0x97)](f);if(S==ad(0xc9))try{return'Object('+JSON['stringify'](f)+')';}catch{return'Object';}return f instanceof Error?f['name']+':\x20'+f['message']+'\x0a'+f['stack']:S;}function bt(e){e<0x84||(x[e]=O,O=e);}function q(e,f){return e=e>>>0x0,C()['subarray'](e/0x1,e/0x1+f);}let R=null;function g(){const ae=d;return(R===null||R['buffer'][ae(0x98)]===!0x0||R['buffer']['detached']===void 0x0&&R['buffer']!==o['memory']['buffer'])&&(R=new DataView(o[ae(0x87)][ae(0xf8)])),R;}function p(e,f){return e=e>>>0x0,ht(e,f);}let T=null;function pt(){return(T===null||T['byteLength']===0x0)&&(T=new Uint32Array(o['memory']['buffer'])),T;}let W=null;function C(){const af=d;return(W===null||W['byteLength']===0x0)&&(W=new Uint8Array(o[af(0x87)]['buffer'])),W;}function i(e){return x[e];}function b(f,r){try{return f['apply'](this,r);}catch(u){o['__wbindgen_export3'](w(u));}}let x=new Array(0x80)[ag(0x8e)](void 0x0);x['push'](void 0x0,null,!0x0,!0x1);let O=x['length'];function l(e){return e==null;}function d(b,c){b=b-0x85;const e=a();let f=e[b];return f;}function s(f,u){const ai=ag;try{return f['apply'](this,u);}catch(v){let y=(function(){const ah=d;try{return v instanceof Error?v[ah(0xab)]+'\x0a\x0aStack:\x0a'+v[ah(0x9f)]:v['toString']();}catch{return'<failed\x20to\x20stringify\x20thrown\x20value>';}}());throw console[ai(0xc8)]('wasm-bindgen:\x20imported\x20JS\x20function\x20that\x20was\x20not\x20marked\x20as\x20`catch`\x20threw\x20an\x20error:',y),v;}}function V(f,u,v,y){const S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{const aj=d;S['cnt']++;try{return y(S['a'],S['b'],...a1);}finally{a0[aj(0xe4)]();}};return a0['_wbg_cb_unref']=()=>{--S['cnt']===0x0&&(S['dtor'](S['a'],S['b']),S['a']=0x0,P['unregister'](S));},P['register'](a0,S,S),a0;}function dt(f,u,v,y){const S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{const ak=d;S[ak(0xa3)]++;const a2=S['a'];S['a']=0x0;try{return y(a2,S['b'],...a1);}finally{S['a']=a2,a0['_wbg_cb_unref']();}};return a0['_wbg_cb_unref']=()=>{const al=d;--S['cnt']===0x0&&(S['dtor'](S['a'],S['b']),S['a']=0x0,P[al(0xd0)](S));},P['register'](a0,S,S),a0;}function lt(f,r){const u=r(f['length']*0x4,0x4)>>>0x0;return pt()['set'](f,u/0x4),h=f['length'],u;}function $(f,r){const am=ag,u=r(f['length']*0x1,0x1)>>>0x0;return C()['set'](f,u/0x1),h=f[am(0x102)],u;}function X(f,u){const an=ag,v=u(f['length']*0x4,0x4)>>>0x0,y=g();for(let S=0x0;S<f['length'];S++)y[an(0x85)](v+0x4*S,w(f[S]),!0x0);return h=f['length'],v;}function I(v,y,S){const ao=ag;if(typeof v!='string')throw new Error('expected\x20a\x20string\x20argument,\x20found\x20'+typeof v);if(S===void 0x0){const a4=j['encode'](v),a5=y(a4['length'],0x1)>>>0x0;return C()['subarray'](a5,a5+a4['length'])['set'](a4),h=a4[ao(0x102)],a5;}let a0=v['length'],a1=y(a0,0x1)>>>0x0;const a2=C();let a3=0x0;for(;a3<a0;a3++){const a6=v[ao(0xb8)](a3);if(a6>0x7f)break;a2[a1+a3]=a6;}if(a3!==a0){a3!==0x0&&(v=v['slice'](a3)),a1=S(a1,a0,a0=a3+v['length']*0x3,0x1)>>>0x0;const a7=C()[ao(0xb9)](a1+a3,a1+a0),a8=j['encodeInto'](v,a7);if(a8['read']!==v['length'])throw new Error('failed\x20to\x20pass\x20whole\x20string');a3+=a8['written'],a1=S(a1,a0,a3,0x1)>>>0x0;}return h=a3,a1;}function m(e){const f=i(e);return bt(e),f;}let U=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});U[ag(0xf5)]();const mt=0x7ff00000;let H=0x0;function ht(e,f){const ap=ag;return H+=f,H>=mt&&(U=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),U[ap(0xf5)](),H=f),U['decode'](C()['subarray'](e,e+f));}const j=new TextEncoder();'encodeInto'in j||(j[ag(0xb5)]=function(f,r){const aq=ag,u=j['encode'](f);return r['set'](u),{'read':f['length'],'written':u[aq(0x102)]};});let h=0x0;function yt(f,r,u){const ar=ag;c(f),c(r),o[ar(0xc0)](f,r,w(u));}function vt(e,f){const as=ag;c(e),c(f),o[as(0xd9)](e,f);}function Et(f,r,u){c(f),c(r),o['__wasm_bindgen_func_elem_1034'](f,r,w(u));}function It(f,u,v,y){c(f),c(u),o['__wasm_bindgen_func_elem_3555'](f,u,w(v),w(y));}const Y=[ag(0x101),'evenodd'],K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[ag(0xe3)](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_incrdomdocclient_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pageinfo_free'](e>>>0x0,0x1)),tt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pagesinfo_free'](e>>>0x0,0x1)),et=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_renderpageimageoptions_free'](e>>>0x0,0x1)),nt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_rendersession_free'](e>>>0x0,0x1)),rt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_rendersessionoptions_free'](e>>>0x0,0x1)),N=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstrenderer_free'](e>>>0x0,0x1)),_t=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[ag(0x93)](e>>>0x0,0x1)),kt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstworker_free'](e>>>0x0,0x1)),ot=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[ag(0xfc)](e>>>0x0,0x1));class J{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_createsessionoptions_free'](e,0x0);}constructor(){const au=ag,e=o[au(0xa2)]();return this['__wbg_ptr']=e>>>0x0,K['register'](this,this['__wbg_ptr'],this),this;}set['format'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['createsessionoptions_set_format'](this['__wbg_ptr'],n,u);}set[ag(0xd7)](f){const av=ag;if(this[av(0xf7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[av(0xf7)]);const n=$(f,o[av(0x95)]),u=h;o['createsessionoptions_set_artifact_content'](this[av(0xf7)],n,u);}}Symbol['dispose']&&(J[ag(0xda)][Symbol[ag(0xe2)]]=J['prototype']['free']);class L{constructor(){const aw=ag;throw new Error(aw(0x99));}static['__wrap'](f){f=f>>>0x0;const n=Object['create'](L['prototype']);return n['__wbg_ptr']=f,Q['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const ax=ag,e=this['__wbg_ptr'];return this[ax(0xf7)]=0x0,Q['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_incrdomdocclient_free'](e,0x0);}['bind_functions'](e){const ay=ag;if(this['__wbg_ptr']==0x0)throw new Error(ay(0x8d));c(this['__wbg_ptr']),o['incrdomdocclient_bind_functions'](this['__wbg_ptr'],w(e));}['relayout'](f,n,u,v){const az=ag;if(this['__wbg_ptr']==0x0)throw new Error(az(0x8d));c(this['__wbg_ptr']);const y=o['incrdomdocclient_relayout'](this[az(0xf7)],f,n,u,v);return m(y);}[ag(0xec)](n,S,a0,a1,a2,a3){const aA=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),c(n),c(a3),o[aA(0xcb)](a7,this[aA(0xf7)],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return a4!==0x0;}finally{o[aA(0x88)](0x10);}}['repaint'](n,S,a0,a1,a2,a3){const aB=ag;try{if(this[aB(0xf7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o[aB(0x88)](-0x10);c(this['__wbg_ptr']),c(n),c(a3),o[aB(0xdf)](a7,this['__wbg_ptr'],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return m(a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(L['prototype'][Symbol['dispose']]=L['prototype']['free']);class F{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const aC=ag;f=f>>>0x0;const n=Object['create'](F['prototype']);return n[aC(0xf7)]=f,Z[aC(0xde)](n,n['__wbg_ptr'],n),n;}[ag(0x94)](){const aD=ag,e=this[aD(0xf7)];return this['__wbg_ptr']=0x0,Z['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_pageinfo_free'](e,0x0);}get['page_off'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_page_off'](this['__wbg_ptr'])>>>0x0;}get['width_pt'](){const aE=ag;if(this['__wbg_ptr']==0x0)throw new Error(aE(0x8d));return c(this['__wbg_ptr']),o['pageinfo_width_pt'](this['__wbg_ptr']);}get['height_pt'](){const aF=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_height_pt'](this[aF(0xf7)]);}}Symbol['dispose']&&(F['prototype'][Symbol['dispose']]=F['prototype'][ag(0xe5)]);class M{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static[ag(0xca)](f){const aG=ag;f=f>>>0x0;const n=Object['create'](M['prototype']);return n[aG(0xf7)]=f,tt[aG(0xde)](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const aH=ag,e=this[aH(0xf7)];return this['__wbg_ptr']=0x0,tt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_pagesinfo_free'](e,0x0);}get['page_count'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_page_count'](this['__wbg_ptr'])>>>0x0;}['page_by_number'](f){const aI=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(f);const n=o[aI(0xff)](this[aI(0xf7)],f);return n===0x0?void 0x0:F['__wrap'](n);}['page'](f){const aJ=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(f);const n=o[aJ(0xcc)](this[aJ(0xf7)],f);return F['__wrap'](n);}['width'](){const aK=ag;if(this[aK(0xf7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this[aK(0xf7)]),o[aK(0x9b)](this['__wbg_ptr']);}['height'](){const aL=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o[aL(0xdb)](this['__wbg_ptr']);}}Symbol['dispose']&&(M['prototype'][Symbol['dispose']]=M['prototype']['free']);class z{static['__unwrap'](e){return e instanceof z?e['__destroy_into_raw']():0x0;}['__destroy_into_raw'](){const aM=ag,e=this['__wbg_ptr'];return this[aM(0xf7)]=0x0,et['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_renderpageimageoptions_free'](e,0x0);}constructor(){const aN=ag,e=o[aN(0xa8)]();return this['__wbg_ptr']=e>>>0x0,et['register'](this,this['__wbg_ptr'],this),this;}get[ag(0xf1)](){const aO=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['renderpageimageoptions_pixel_per_pt'](this[aO(0xf7)]);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aP=ag;if(this[aP(0xf7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['renderpageimageoptions_set_pixel_per_pt'](this['__wbg_ptr'],l(e)?0x100000001:Math['fround'](e));}get['background_color'](){const aQ=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['renderpageimageoptions_background_color'](u,this['__wbg_ptr']);var f=g()[aQ(0xc3)](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)[aQ(0xce)](),o[aQ(0xe1)](f,n*0x1,0x1)),v;}finally{o[aQ(0x88)](0x10);}}set[ag(0xd1)](f){const aR=ag;if(this[aR(0xf7)]==0x0)throw new Error(aR(0x8d));c(this[aR(0xf7)]);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o[aR(0xb3)](this['__wbg_ptr'],n,u);}get['page_off'](){const aS=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['renderpageimageoptions_page_off'](this[aS(0xf7)])>>>0x0;}set[ag(0xb6)](e){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(e),o['renderpageimageoptions_set_page_off'](this['__wbg_ptr'],e);}get['cache_key'](){const aT=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o[aT(0xad)](u,this[aT(0xf7)]);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o[aT(0xe1)](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set[ag(0xf0)](f){const aU=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o[aU(0xa4)]),u=h;o['renderpageimageoptions_set_cache_key'](this['__wbg_ptr'],n,u);}get[ag(0x96)](){const aV=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aV(0xf7)]);const e=o['renderpageimageoptions_data_selection'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['data_selection'](e){const aW=ag;if(this[aW(0xf7)]==0x0)throw new Error(aW(0x8d));c(this['__wbg_ptr']),l(e)||c(e),o['renderpageimageoptions_set_data_selection'](this['__wbg_ptr'],l(e)?0x100000001:e>>>0x0);}}Symbol['dispose']&&(z['prototype'][Symbol['dispose']]=z['prototype']['free']);class k{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const aX=ag;f=f>>>0x0;const n=Object[aX(0xd4)](k['prototype']);return n['__wbg_ptr']=f,nt[aX(0xde)](n,n['__wbg_ptr'],n),n;}[ag(0x94)](){const aY=ag,e=this['__wbg_ptr'];return this[aY(0xf7)]=0x0,nt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_rendersession_free'](e,0x0);}['render_in_window'](n,v,S,a0){const aZ=ag;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[aZ(0xf7)]),o[aZ(0xac)](a5,this['__wbg_ptr'],n,v,S,a0);var a3=g()['getInt32'](a5+0x4*0x0,!0x0),a4=g()[aZ(0xc3)](a5+0x4*0x1,!0x0);return a1=a3,a2=a4,p(a3,a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o[aZ(0xe1)](a1,a2,0x1);}}get[ag(0xf1)](){const b0=ag;if(this['__wbg_ptr']==0x0)throw new Error(b0(0x8d));c(this['__wbg_ptr']);const e=o['rendersession_pixel_per_pt'](this[b0(0xf7)]);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const b1=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o[b1(0xa7)](this['__wbg_ptr'],l(e)?0x100000001:Math['fround'](e));}get['background_color'](){const b2=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o[b2(0x8c)](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o[b2(0x88)](0x10);}}set[ag(0xd1)](f){const b3=ag;if(this['__wbg_ptr']==0x0)throw new Error(b3(0x8d));c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o[b3(0x95)],o['__wbindgen_export2']),u=h;o[b3(0xb7)](this['__wbg_ptr'],n,u);}get['pages_info'](){const b4=ag;if(this[b4(0xf7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['rendersession_pages_info'](this['__wbg_ptr']);return M['__wrap'](e);}get['doc_width'](){const b5=ag;if(this['__wbg_ptr']==0x0)throw new Error(b5(0x8d));return c(this['__wbg_ptr']),o['rendersession_doc_width'](this[b5(0xf7)]);}get[ag(0xa5)](){const b6=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o[b6(0x100)](this['__wbg_ptr']);}['source_span'](n){const b7=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a2=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a3=lt(n,o['__wbindgen_export']),a4=h;o['rendersession_source_span'](a2,this[b7(0xf7)],a3,a4);var v=g()['getInt32'](a2+0x4*0x0,!0x0),S=g()['getInt32'](a2+0x4*0x1,!0x0),a0=g()[b7(0xc3)](a2+0x4*0x2,!0x0),a1=g()['getInt32'](a2+0x4*0x3,!0x0);if(a1)throw m(a0);let a5;return v!==0x0&&(a5=p(v,S)['slice'](),o[b7(0xe1)](v,S*0x1,0x1)),a5;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(k['prototype'][Symbol[ag(0xe2)]]=k['prototype']['free']);class it{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,rt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_rendersessionoptions_free'](e,0x0);}constructor(){const b8=ag,e=o['rendersessionoptions_new']();return this[b8(0xf7)]=e>>>0x0,rt['register'](this,this['__wbg_ptr'],this),this;}get[ag(0xf1)](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['rendersession_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set[ag(0xf1)](e){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['rendersession_set_pixel_per_pt'](this['__wbg_ptr'],l(e)?0x100000001:Math['fround'](e));}get['background_color'](){const b9=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_background_color'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)[b9(0xce)](),o[b9(0xe1)](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersessionoptions_set_background_color'](this['__wbg_ptr'],n,u);}get['format'](){const ba=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_format'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)[ba(0xce)](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['format'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersessionoptions_set_format'](this['__wbg_ptr'],n,u);}}Symbol['dispose']&&(it['prototype'][Symbol[ag(0xe2)]]=it['prototype']['free']);class D{static['__wrap'](f){const bb=ag;f=f>>>0x0;const n=Object[bb(0xd4)](D['prototype']);return n['__wbg_ptr']=f,N['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const bc=ag,e=this['__wbg_ptr'];return this[bc(0xf7)]=0x0,N['unregister'](this),e;}['free'](){const bd=ag,e=this[bd(0x94)]();o['__wbg_typstrenderer_free'](e,0x0);}constructor(){const e=o['typstrenderer_new']();return this['__wbg_ptr']=e>>>0x0,N['register'](this,this['__wbg_ptr'],this),this;}['create_session'](f){const be=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const S=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[be(0xf7)]);let a0=0x0;if(!l(f)){if(A(f,J),f['__wbg_ptr']===0x0)throw new Error(be(0x8d));a0=f['__destroy_into_raw']();}o['typstrenderer_create_session'](S,this['__wbg_ptr'],a0);var n=g()[be(0xc3)](S+0x4*0x0,!0x0),v=g()['getInt32'](S+0x4*0x1,!0x0),y=g()['getInt32'](S+0x4*0x2,!0x0);if(y)throw m(v);return k['__wrap'](n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['reset'](f){const bf=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const v=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error(bf(0x8d));o['typstrenderer_reset'](v,this['__wbg_ptr'],f['__wbg_ptr']);var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()['getInt32'](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}[ag(0x9d)](n,S,a0){const bg=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this[bg(0xf7)]),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a4=I(S,o[bg(0x95)],o[bg(0xa4)]),a5=h,a6=$(a0,o['__wbindgen_export']),a7=h;o['typstrenderer_manipulate_data'](a3,this[bg(0xf7)],n['__wbg_ptr'],a4,a5,a6,a7);var a1=g()['getInt32'](a3+0x4*0x0,!0x0),a2=g()['getInt32'](a3+0x4*0x1,!0x0);if(a2)throw m(a1);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['session_from_artifact'](n,S){const bh=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o[bh(0x88)](-0x10);c(this['__wbg_ptr']);const a4=$(n,o[bh(0x95)]),a5=h,a6=I(S,o[bh(0x95)],o[bh(0xa4)]),a7=h;o['typstrenderer_session_from_artifact'](a3,this[bh(0xf7)],a4,a5,a6,a7);var a0=g()['getInt32'](a3+0x4*0x0,!0x0),a1=g()['getInt32'](a3+0x4*0x1,!0x0),a2=g()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw m(a1);return k['__wrap'](a0);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['load_glyph_pack'](f){const bi=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const v=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['typstrenderer_load_glyph_pack'](v,this['__wbg_ptr'],w(f));var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()[bi(0xc3)](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['render_svg_diff'](n,S,a0,a1,a2){const bj=ag;let a3,a4;try{if(this[bj(0xf7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this[bj(0xf7)]),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o['typstrenderer_render_svg_diff'](a7,this['__wbg_ptr'],n['__wbg_ptr'],S,a0,a1,a2);var a5=g()[bj(0xc3)](a7+0x4*0x0,!0x0),a6=g()[bj(0xc3)](a7+0x4*0x1,!0x0);return a3=a5,a4=a6,p(a5,a6);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a3,a4,0x1);}}['svg_data'](n,a0){const bk=ag;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a9=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');l(a0)||c(a0),o['typstrenderer_svg_data'](a9,this[bk(0xf7)],n['__wbg_ptr'],l(a0)?0x100000001:a0>>>0x0);var a3=g()['getInt32'](a9+0x4*0x0,!0x0),a4=g()['getInt32'](a9+0x4*0x1,!0x0),a5=g()['getInt32'](a9+0x4*0x2,!0x0),a6=g()['getInt32'](a9+0x4*0x3,!0x0),a7=a3,a8=a4;if(a6)throw a7=0x0,a8=0x0,m(a5);return a1=a7,a2=a8,p(a7,a8);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o[bk(0xe1)](a1,a2,0x1);}}['get_customs'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const n=o['typstrenderer_get_customs'](this['__wbg_ptr'],f['__wbg_ptr']);return m(n);}['render_svg'](f,n){const bl=ag;try{if(this['__wbg_ptr']==0x0)throw new Error(bl(0x8d));const a0=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(f,k),f[bl(0xf7)]===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o['typstrenderer_render_svg'](a0,this['__wbg_ptr'],f['__wbg_ptr'],w(n));var v=g()['getInt32'](a0+0x4*0x0,!0x0),y=g()['getInt32'](a0+0x4*0x1,!0x0),S=g()['getInt32'](a0+0x4*0x2,!0x0);if(S)throw m(y);return v!==0x0;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}[ag(0xbf)](f){const bm=ag;if(this[bm(0xf7)]==0x0)throw new Error(bm(0x8d));c(this['__wbg_ptr']);const n=o['typstrenderer_create_worker'](this['__wbg_ptr'],w(f));return m(n);}['create_worker_bridge'](){const bn=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const v=this[bn(0x94)](),y=o[bn(0x88)](-0x10);c(v),o['typstrenderer_create_worker_bridge'](y,v);var f=g()['getInt32'](y+0x4*0x0,!0x0),n=g()['getInt32'](y+0x4*0x1,!0x0),u=g()['getInt32'](y+0x4*0x2,!0x0);if(u)throw m(n);return B['__wrap'](f);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['render_page_to_canvas'](f,n,u){const bo=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this[bo(0xf7)]),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let v=0x0;if(!l(u)){if(A(u,z),u['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');v=u['__destroy_into_raw']();}const y=o['typstrenderer_render_page_to_canvas'](this['__wbg_ptr'],f['__wbg_ptr'],w(n),v);return m(y);}['mount_dom'](f,n){const bp=ag;if(this[bp(0xf7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['typstrenderer_mount_dom'](this[bp(0xf7)],f['__wbg_ptr'],w(n));return m(u);}}Symbol['dispose']&&(D['prototype'][Symbol['dispose']]=D['prototype'][ag(0xe5)]);class st{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,_t['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_typstrendererbuilder_free'](e,0x0);}constructor(){const bq=ag;try{const v=o['__wbindgen_add_to_stack_pointer'](-0x10);o['typstrendererbuilder_new'](v);var f=g()['getInt32'](v+0x4*0x0,!0x0),n=g()[bq(0xc3)](v+0x4*0x1,!0x0),u=g()['getInt32'](v+0x4*0x2,!0x0);if(u)throw m(n);return this['__wbg_ptr']=f>>>0x0,_t[bq(0xde)](this,this['__wbg_ptr'],this),this;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){const br=ag;if(this['__wbg_ptr']==0x0)throw new Error(br(0x8d));const f=this['__destroy_into_raw']();c(f);const n=o['typstrendererbuilder_build'](f);return m(n);}['add_glyph_pack'](f){const bs=ag;if(this['__wbg_ptr']==0x0)throw new Error(bs(0x8d));c(this['__wbg_ptr']);const n=o['typstrendererbuilder_add_glyph_pack'](this[bs(0xf7)],w(f));return m(n);}['add_raw_font'](f){const bu=ag;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o['typstrendererbuilder_add_raw_font'](this[bu(0xf7)],w(f));return m(n);}['add_lazy_font'](f,n){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const u=o['typstrendererbuilder_add_lazy_font'](this['__wbg_ptr'],w(f),w(n));return m(u);}}Symbol['dispose']&&(st[ag(0xda)][Symbol['dispose']]=st['prototype']['free']);class at{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}['__destroy_into_raw'](){const bv=ag,e=this[bv(0xf7)];return this[bv(0xf7)]=0x0,kt['unregister'](this),e;}['free'](){const bw=ag,e=this['__destroy_into_raw']();o[bw(0xb4)](e,0x0);}[ag(0x9d)](n,v){const bx=ag;try{if(this[bx(0xf7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a1=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a2=I(n,o['__wbindgen_export'],o[bx(0xa4)]),a3=h;o['typstworker_manipulate_data'](a1,this[bx(0xf7)],a2,a3,w(v));var y=g()['getInt32'](a1+0x4*0x0,!0x0),S=g()['getInt32'](a1+0x4*0x1,!0x0),a0=g()['getInt32'](a1+0x4*0x2,!0x0);if(a0)throw m(S);return m(y);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['get_pages_info'](){const by=ag;if(this[by(0xf7)]==0x0)throw new Error(by(0x8d));c(this['__wbg_ptr']);const e=o['typstworker_get_pages_info'](this[by(0xf7)]);return m(e);}['render_canvas'](n,a0,a1){const bz=ag;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o[bz(0x88)](-0x10);c(this[bz(0xf7)]);const a6=$(n,o['__wbindgen_export']),a7=h,a8=X(a0,o['__wbindgen_export']),a9=h,aa=X(a1,o[bz(0x95)]),ab=h;o['typstworker_render_canvas'](a5,this['__wbg_ptr'],a6,a7,a8,a9,aa,ab);var a2=g()['getInt32'](a5+0x4*0x0,!0x0),a3=g()['getInt32'](a5+0x4*0x1,!0x0),a4=g()['getInt32'](a5+0x4*0x2,!0x0);if(a4)throw m(a3);return m(a2);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol[ag(0xe2)]&&(at['prototype'][Symbol['dispose']]=at['prototype']['free']);class B{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const bA=ag;f=f>>>0x0;const n=Object[bA(0xd4)](B['prototype']);return n['__wbg_ptr']=f,ot['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const bB=ag,e=this[bB(0xf7)];return this['__wbg_ptr']=0x0,ot['unregister'](this),e;}['free'](){const bC=ag,e=this['__destroy_into_raw']();o[bC(0xfc)](e,0x0);}}Symbol['dispose']&&(B['prototype'][Symbol['dispose']]=B['prototype']['free']);function Ft(){const e=o['renderer_build_info']();return m(e);}const At=new Set(['basic','cors','default']);async function xt(f,u){const bD=ag;if(typeof Response=='function'&&f instanceof Response){if(typeof WebAssembly['instantiateStreaming']=='function')try{return await WebAssembly[bD(0xaf)](f,u);}catch(y){if(f['ok']&&At['has'](f['type'])&&f['headers']['get']('Content-Type')!==bD(0xd5))console['warn']('`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a',y);else throw y;}const v=await f['arrayBuffer']();return await WebAssembly['instantiate'](v,u);}else{const S=await WebAssembly['instantiate'](f,u);return S instanceof WebAssembly['Instance']?{'instance':S,'module':f}:S;}}function ut(){const bG=ag,e={};return e['wbg']={},e['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(f,u){const bE=d,v=G(i(u)),y=I(v,o['__wbindgen_export'],o[bE(0xa4)]),S=h;g()[bE(0xed)](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(f){const r=typeof i(f)=='function';return E(r),r;},e['wbg']['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(f){const r=i(f)===void 0x0;return E(r),r;},e['wbg']['__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36']=function(f,u){const v=i(f)===i(u);return E(v),v;},e['wbg']['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(f,v){const bF=d,y=i(v),S=typeof y=='string'?y:void 0x0;var a0=l(S)?0x0:I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a1=h;g()['setInt32'](f+0x4*0x1,a1,!0x0),g()[bF(0xed)](f+0x4*0x0,a0,!0x0);},e['wbg'][bG(0x9c)]=function(f,r){throw new Error(p(f,r));},e['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(){return s(function(f){i(f)['_wbg_cb_unref']();},arguments);},e['wbg']['__wbg_appendChild_7465eba84213c75f']=function(){return b(function(f,u){const v=i(f)['appendChild'](i(u));return w(v);},arguments);},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return b(function(f,u,v){const y=i(f)['call'](i(u),i(v));return w(y);},arguments);},e['wbg'][bG(0x9a)]=function(){return b(function(f,v,y,S,a0){const bH=d,a1=i(f)[bH(0x97)](i(v),i(y),i(S),i(a0));return w(a1);},arguments);},e['wbg']['__wbg_call_abb4ff46ce38be40']=function(){return b(function(f,u){const v=i(f)['call'](i(u));return w(v);},arguments);},e['wbg']['__wbg_call_c8baa5c5e72d274e']=function(){return b(function(f,u,v,y){const S=i(f)['call'](i(u),i(v),i(y));return w(S);},arguments);},e['wbg']['__wbg_clearRect_c2909c2f38887f82']=function(){return s(function(f,u,v,y,S){i(f)['clearRect'](u,v,y,S);},arguments);},e['wbg']['__wbg_clientWidth_dbc9540f4ebdce2a']=function(){return s(function(f){const r=i(f)['clientWidth'];return c(r),r;},arguments);},e['wbg'][bG(0xfa)]=function(){return s(function(f,r){const bI=d;i(f)[bI(0x8f)](i(r));},arguments);},e['wbg']['__wbg_clip_afc9a92171eee96e']=function(){return s(function(f,r){const bJ=d;i(f)[bJ(0x8f)](i(r));},arguments);},e[bG(0xe7)][bG(0xc2)]=function(){return b(function(f){const r=i(f)['cloneNode']();return w(r);},arguments);},e['wbg']['__wbg_content_ad90fa08b8c037c5']=function(){return s(function(f){const r=i(f)['content'];return w(r);},arguments);},e[bG(0xe7)]['__wbg_createElement_da4ed2b219560fc6']=function(){return b(function(f,u,v){const y=i(f)['createElement'](p(u,v));return w(y);},arguments);},e['wbg'][bG(0xfd)]=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e['wbg']['__wbg_createImageBitmap_4772db6cb0dff013']=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e['wbg']['__wbg_createObjectURL_7d9f7f8f41373850']=function(){return b(function(f,u){const v=URL['createObjectURL'](i(u)),y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg'][bG(0xe6)]=function(){return s(function(f){const r=i(f)['document'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_drawImage_2859dfb229439d8c']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg'][bG(0xee)]=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_c2aacfe3133aedb7']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_c40aff4a38206f4a']=function(){return b(function(f,v,y,S,a0,a1){const bK=d;i(f)[bK(0xe9)](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_c4f2c6d2bcfa9463']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_de5946f9cc23c2b9']=function(){return b(function(f,u,v,y){const bL=d;i(f)[bL(0xe9)](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_e2012c2a2d434ee2']=function(){return b(function(f,v,y,S,a0,a1){const bM=d;i(f)[bM(0xe9)](i(v),y,S,a0,a1);},arguments);},e[bG(0xe7)]['__wbg_error_7534b8e9a36f1ab4']=function(){return s(function(f,u){let v,y;try{v=f,y=u,console['error'](p(f,u));}finally{o['__wbindgen_export4'](v,y,0x1);}},arguments);},e['wbg']['__wbg_fillRect_84131220403e26a4']=function(){return s(function(f,u,v,y,S){i(f)['fillRect'](u,v,y,S);},arguments);},e['wbg']['__wbg_fillRect_e0efe328740308e7']=function(){return s(function(f,u,v,y,S){i(f)['fillRect'](u,v,y,S);},arguments);},e['wbg']['__wbg_fill_2f2cb4f3f75aadd4']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_38a7d7455451c001']=function(){return s(function(f,u,v){const bN=d;i(f)[bN(0x8e)](i(u),Y[v]);},arguments);},e[bG(0xe7)]['__wbg_fill_3d82e52894462c95']=function(){return s(function(f,r){const bO=d;i(f)[bO(0x8e)](i(r));},arguments);},e[bG(0xe7)][bG(0xc4)]=function(){return s(function(f,r){const bP=d;i(f)[bP(0x8e)](i(r));},arguments);},e[bG(0xe7)]['__wbg_firstElementChild_54d515b19cee5ae7']=function(){return s(function(f){const bQ=d,r=i(f)[bQ(0xa1)];return l(r)?0x0:w(r);},arguments);},e[bG(0xe7)]['__wbg_firstElementChild_e207b33aaa4a86df']=function(){return s(function(f){const r=i(f)['firstElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_getAttribute_80900eec94cb3636']=function(){return s(function(v,y,S,a0){const bR=d,a1=i(y)[bR(0xdc)](p(S,a0));var a2=l(a1)?0x0:I(a1,o[bR(0x95)],o['__wbindgen_export2']),a3=h;g()['setInt32'](v+0x4*0x1,a3,!0x0),g()['setInt32'](v+0x4*0x0,a2,!0x0);},arguments);},e[bG(0xe7)]['__wbg_getContext_01f42b234e833f0a']=function(){return b(function(f,u,v){const y=i(f)['getContext'](p(u,v));return l(y)?0x0:w(y);},arguments);},e[bG(0xe7)][bG(0xfb)]=function(){return b(function(f,u,v){const y=i(f)['getContext'](p(u,v));return l(y)?0x0:w(y);},arguments);},e['wbg']['__wbg_get_af9dab7e9603ea93']=function(){return b(function(f,u){const v=Reflect['get'](i(f),i(u));return w(v);},arguments);},e['wbg']['__wbg_globalCompositeOperation_03e6a5201c8ee369']=function(){return b(function(f,u){const bS=d,v=i(u)['globalCompositeOperation'],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()[bS(0xed)](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_globalCompositeOperation_d52c6e6666e4be00']=function(){return b(function(f,u){const v=i(u)['globalCompositeOperation'],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_height_3a0b31e52a5b7f17']=function(){return s(function(f){const r=i(f)['height'];return c(r),r;},arguments);},e['wbg']['__wbg_incrdomdocclient_new']=function(){return s(function(f){const r=L['__wrap'](f);return w(r);},arguments);},e['wbg']['__wbg_instanceof_CanvasRenderingContext2d_d070139aaac1459f']=function(){return s(function(f){let u;try{u=i(f)instanceof CanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Element_6f7ba982258cfc0f']=function(){return s(function(f){let u;try{u=i(f)instanceof Element;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLCanvasElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlDivElement_a55b9d453d2d8037']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLDivElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlElement_20a3acb594113d73']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlTemplateElement_702a22ea7e74d089']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLTemplateElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e[bG(0xe7)]['__wbg_instanceof_ImageBitmap_e44697c70dffc0fe']=function(){return s(function(f){let u;try{u=i(f)instanceof ImageBitmap;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_OffscreenCanvasRenderingContext2d_52996da29a2bf2f5']=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_OffscreenCanvas_8fb961f5ea27473f']=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvas;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Promise_eca6c43a2610558d']=function(){return s(function(f){let u;try{u=i(f)instanceof Promise;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgGraphicsElement_16c442d1a36270b3']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGGraphicsElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][bG(0xc5)]=function(){return s(function(f){let u;try{u=i(f)instanceof SVGSVGElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e[bG(0xe7)]['__wbg_instanceof_Window_b5cf7783caa68180']=function(){return s(function(f){let u;try{u=i(f)instanceof Window;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54']=function(){return s(function(f){let u;try{u=i(f)instanceof WorkerGlobalScope;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_lastElementChild_6b90fe10adf639a2']=function(){return s(function(f){const bT=d,r=i(f)[bT(0xbd)];return l(r)?0x0:w(r);},arguments);},e[bG(0xe7)]['__wbg_length_22ac23eaec9d8053']=function(){return s(function(f){const r=i(f)['length'];return c(r),r;},arguments);},e[bG(0xe7)][bG(0xe8)]=function(){return s(function(f){const bU=d;console[bU(0xf4)](i(f));},arguments);},e[bG(0xe7)]['__wbg_log_fd6486c6d5396ce5']=function(){return s(function(f,r){console['log'](i(f),i(r));},arguments);},e['wbg']['__wbg_measureText_a465ecc06491802d']=function(){return b(function(f,u,v){const y=i(f)['measureText'](p(u,v));return w(y);},arguments);},e[bG(0xe7)]['__wbg_new_1ba21ce319a06297']=function(){return s(function(){const f=new Object();return w(f);},arguments);},e[bG(0xe7)]['__wbg_new_25f239778d6112b9']=function(){return s(function(){const f=new Array();return w(f);},arguments);},e['wbg']['__wbg_new_2884ddbcda091bc1']=function(){return b(function(){const f=new Image();return w(f);},arguments);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){return s(function(){const f=new Error();return w(f);},arguments);},e['wbg']['__wbg_new_9468dd6e5df427f6']=function(){return b(function(f,u){const v=new OffscreenCanvas(f>>>0x0,u>>>0x0);return w(v);},arguments);},e['wbg']['__wbg_new_df1173567d5ff028']=function(){return s(function(f,u){const v=new Error(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_ff12d2b041fb48f1']=function(){return s(function(f,u){try{var v={'a':f,'b':u},y=(a0,a1)=>{const a2=v['a'];v['a']=0x0;try{return It(a2,v['b'],a0,a1);}finally{v['a']=a2;}};const S=new Promise(y);return w(S);}finally{v['a']=v['b']=0x0;}},arguments);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(){return s(function(f,u){const v=new Uint8Array(q(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_no_args_cb138f77cf6151ee']=function(){return s(function(f,u){const v=new Function(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_with_length_aa5eaf41d35235e5']=function(){return s(function(f){const r=new Uint8Array(f>>>0x0);return w(r);},arguments);},e['wbg']['__wbg_new_with_path_string_3aea637e78135c46']=function(){return b(function(f,u){const v=new Path2D(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_with_u8_array_sequence_and_options_d4def9ec0588c7ec']=function(){return b(function(f,u){const v=new Blob(i(f),i(u));return w(v);},arguments);},e[bG(0xe7)]['__wbg_nextElementSibling_c745ee48314963c0']=function(){return s(function(f){const r=i(f)['nextElementSibling'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_push_7d9be8f38fc13975']=function(){return s(function(f,u){const v=i(f)['push'](i(u));return c(v),v;},arguments);},e['wbg'][bG(0xcd)]=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e['wbg']['__wbg_putImageData_e96eabf0e9610ed3']=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e['wbg'][bG(0xbe)]=function(){return s(function(f){const bV=d,r=i(f)[bV(0xa9)];return w(r);},arguments);},e['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(){return s(function(f){queueMicrotask(i(f));},arguments);},e['wbg']['__wbg_removeProperty_c2e16faee2834bef']=function(){return b(function(v,y,S,a0){const bW=d,a1=i(y)[bW(0x8a)](p(S,a0)),a2=I(a1,o[bW(0x95)],o[bW(0xa4)]),a3=h;g()['setInt32'](v+0x4*0x1,a3,!0x0),g()[bW(0xed)](v+0x4*0x0,a2,!0x0);},arguments);},e[bG(0xe7)]['__wbg_remove_32f69ffabcbc4072']=function(){return s(function(f){const bX=d;i(f)[bX(0xc6)]();},arguments);},e['wbg']['__wbg_renderpageimageoptions_unwrap']=function(){return s(function(f){const r=z['__unwrap'](i(f));return c(r),r;},arguments);},e['wbg'][bG(0xeb)]=function(){return b(function(f,r){i(f)['replaceWith'](i(r));},arguments);},e['wbg'][bG(0xf3)]=function(){return s(function(f){const r=Promise['resolve'](i(f));return w(r);},arguments);},e['wbg']['__wbg_restore_352c39c9bbeedc91']=function(){return s(function(f){i(f)['restore']();},arguments);},e['wbg'][bG(0x8b)]=function(){return s(function(f){i(f)['restore']();},arguments);},e['wbg']['__wbg_revokeObjectURL_88db3468842ff09e']=function(){return b(function(f,r){URL['revokeObjectURL'](p(f,r));},arguments);},e['wbg']['__wbg_save_131c8dc648f702b6']=function(){return s(function(f){i(f)['save']();},arguments);},e['wbg']['__wbg_save_b8767cfd2ee7f600']=function(){return s(function(f){i(f)['save']();},arguments);},e['wbg']['__wbg_setAttribute_34747dd193f45828']=function(){return b(function(f,u,v,y,S){i(f)['setAttribute'](p(u,v),p(y,S));},arguments);},e['wbg']['__wbg_setLineDash_7e3aad159aa2710c']=function(){return b(function(f,r){i(f)['setLineDash'](i(r));},arguments);},e[bG(0xe7)]['__wbg_setLineDash_cfbc3a6bfddeee62']=function(){return b(function(f,r){i(f)['setLineDash'](i(r));},arguments);},e['wbg']['__wbg_setProperty_f27b2c05323daf8a']=function(){return b(function(f,u,v,y,S){i(f)['setProperty'](p(u,v),p(y,S));},arguments);},e['wbg']['__wbg_setTransform_9de588d9f080f5bc']=function(){return b(function(v,y,S,a0,a1,a2,a3){i(v)['setTransform'](y,S,a0,a1,a2,a3);},arguments);},e['wbg']['__wbg_setTransform_c55eca1193bf5ea1']=function(){return b(function(v,y,S,a0,a1,a2,a3){const bY=d;i(v)[bY(0x86)](y,S,a0,a1,a2,a3);},arguments);},e['wbg']['__wbg_set_169e13b608078b7b']=function(){return s(function(f,u,v){i(f)['set'](q(u,v));},arguments);},e[bG(0xe7)]['__wbg_set_781438a03c0c3c81']=function(){return b(function(f,u,v){const bZ=d,y=Reflect[bZ(0xdd)](i(f),i(u),i(v));return E(y),y;},arguments);},e[bG(0xe7)]['__wbg_set_7df433eea03a5c14']=function(){return s(function(f,u,v){i(f)[u>>>0x0]=m(v);},arguments);},e[bG(0xe7)]['__wbg_set_fillStyle_b26e462a87b14315']=function(){return s(function(f,u,v){const c0=d;i(f)[c0(0xba)]=p(u,v);},arguments);},e['wbg']['__wbg_set_fillStyle_c9a0550307cd4671']=function(){return s(function(f,u,v){i(f)['fillStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_font_6d67b15564a1e344']=function(){return s(function(f,u,v){i(f)['font']=p(u,v);},arguments);},e['wbg']['__wbg_set_globalCompositeOperation_418a0b97ba91a947']=function(){return b(function(f,u,v){i(f)['globalCompositeOperation']=p(u,v);},arguments);},e[bG(0xe7)]['__wbg_set_globalCompositeOperation_7e16c72877ba5f86']=function(){return b(function(f,u,v){i(f)['globalCompositeOperation']=p(u,v);},arguments);},e['wbg']['__wbg_set_height_6f8f8ef4cb40e496']=function(){return s(function(f,r){i(f)['height']=r>>>0x0;},arguments);},e[bG(0xe7)]['__wbg_set_innerHTML_f1d03f780518a596']=function(){return s(function(f,u,v){i(f)['innerHTML']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineCap_74b37c7ff968f854']=function(){return s(function(f,u,v){const c1=d;i(f)[c1(0xea)]=p(u,v);},arguments);},e['wbg']['__wbg_set_lineCap_791e7648138cc371']=function(){return s(function(f,u,v){i(f)['lineCap']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineDashOffset_85f21a63ddf34d2c']=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e['wbg']['__wbg_set_lineDashOffset_f032b4e2a273a2f5']=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e['wbg']['__wbg_set_lineJoin_196c6ac02fd494c3']=function(){return s(function(f,u,v){const c2=d;i(f)[c2(0xfe)]=p(u,v);},arguments);},e['wbg']['__wbg_set_lineJoin_a136f09dd803e0cc']=function(){return s(function(f,u,v){i(f)['lineJoin']=p(u,v);},arguments);},e[bG(0xe7)][bG(0xbb)]=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg']['__wbg_set_lineWidth_feda4b79a15c660b']=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg']['__wbg_set_miterLimit_b12c03757937d228']=function(){return s(function(f,r){i(f)['miterLimit']=r;},arguments);},e['wbg']['__wbg_set_miterLimit_d891f47e244a915c']=function(){return s(function(f,r){const c3=d;i(f)[c3(0xef)]=r;},arguments);},e['wbg']['__wbg_set_onerror_e7e40c62a55a0770']=function(){return s(function(f,r){i(f)['onerror']=i(r);},arguments);},e[bG(0xe7)]['__wbg_set_onload_5e2862e3453854de']=function(){return s(function(f,r){const c4=d;i(f)[c4(0xb1)]=i(r);},arguments);},e['wbg']['__wbg_set_src_84f27c5105946dce']=function(){return s(function(f,u,v){i(f)['src']=p(u,v);},arguments);},e['wbg']['__wbg_set_strokeStyle_25d5381be570e780']=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_strokeStyle_697a576d2d3fbeaa']=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_type_7ce650670a34c68f']=function(){return s(function(f,u,v){i(f)['type']=p(u,v);},arguments);},e['wbg']['__wbg_set_width_7ff7a22c6e9f423e']=function(){return s(function(f,r){i(f)['width']=r>>>0x0;},arguments);},e[bG(0xe7)]['__wbg_stack_0ed75d68575b0f3c']=function(){return s(function(f,u){const c5=d,v=i(u)['stack'],y=I(v,o['__wbindgen_export'],o[c5(0xa4)]),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()[c5(0xed)](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){return s(function(){const f=typeof global>'u'?null:global;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1']=function(){return s(function(){const f=typeof globalThis>'u'?null:globalThis;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){return s(function(){const f=typeof self>'u'?null:self;return l(f)?0x0:w(f);},arguments);},e['wbg'][bG(0xae)]=function(){return s(function(){const f=typeof window>'u'?null:window;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_stringify_655a6390e1f5eb6b']=function(){return b(function(f){const r=JSON['stringify'](i(f));return w(r);},arguments);},e['wbg']['__wbg_stroke_41b0736a6a0b61aa']=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e[bG(0xe7)]['__wbg_stroke_7cfe6d60a6c48303']=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e['wbg']['__wbg_style_521a717da50e53c6']=function(){return s(function(f){const r=i(f)['style'];return w(r);},arguments);},e[bG(0xe7)]['__wbg_then_429f7caf1026411d']=function(){return s(function(f,u,v){const c6=d,y=i(f)[c6(0xa6)](i(u),i(v));return w(y);},arguments);},e[bG(0xe7)][bG(0xb0)]=function(){return s(function(f,u){const v=i(f)['then'](i(u));return w(v);},arguments);},e['wbg'][bG(0xbc)]=function(){return b(function(f){const r=i(f)['transferToImageBitmap']();return w(r);},arguments);},e['wbg']['__wbg_typstrenderer_new']=function(){return s(function(f){const r=D['__wrap'](f);return w(r);},arguments);},e['wbg']['__wbg_warn_6e567d0d926ff881']=function(){return s(function(f){console['warn'](i(f));},arguments);},e['wbg']['__wbg_width_c3f96f2ca7ab208d']=function(){return s(function(f){return i(f)['width'];},arguments);},e['wbg']['__wbg_width_f13d2e86324fc226']=function(){return s(function(f){const r=i(f)['width'];return c(r),r;},arguments);},e[bG(0xe7)]['__wbindgen_cast_2241b6af4c4b2941']=function(){return s(function(f,u){const v=p(f,u);return w(v);},arguments);},e['wbg']['__wbindgen_cast_34ce245e5be1ba8b']=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],vt);return w(v);},arguments);},e['wbg']['__wbindgen_cast_b2e692da0ea8478a']=function(){return s(function(f,u){const c7=d,v=dt(f,u,o[c7(0xc7)],yt);return w(v);},arguments);},e['wbg']['__wbindgen_cast_d3d3bd81840cfbdd']=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],Et);return w(v);},arguments);},e['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(){return s(function(f){return w(f);},arguments);},e['wbg']['__wbindgen_object_clone_ref']=function(f){const r=i(f);return w(r);},e['wbg']['__wbindgen_object_drop_ref']=function(f){m(f);},e;}function ct(e,f){return o=e['exports'],St['__wbindgen_wasm_module']=f,R=null,T=null,W=null,o;}function zt(f){const c8=ag;if(o!==void 0x0)return o;typeof f<'u'&&(Object[c8(0xd3)](f)===Object['prototype']?{module:f}=f:console['warn']('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));const r=ut();f instanceof WebAssembly[c8(0xf6)]||(f=new WebAssembly['Module'](f));const u=new WebAssembly['Instance'](f,r);return ct(u,f);}async function St(f){const c9=ag;if(o!==void 0x0)return o;typeof f<'u'&&(Object['getPrototypeOf'](f)===Object['prototype']?{module_or_path:f}=f:console['warn']('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),typeof f>'u'&&(f=gt(c9(0xaa),import.meta.url));const u=ut();(typeof f=='string'||typeof Request=='function'&&f instanceof Request||typeof URL=='function'&&f instanceof URL)&&(f=fetch(f));const {instance:v,module:y}=await xt(await f,u);return ct(v,y);}let gt=async function(e,f){const ca=ag;throw new Error(ca(0xf2)+e+'\x20'+f);};function Rt(e){gt=e;}let Ot=async function(f,u){const v=new Function('m','return\x20import(m)'),{readFileSync:y}=await v('fs'),S=new URL(f,u);return await y(S)['buffer'];};const Ct=typeof process<'u'&&process['versions']!=null&&process['versions'][ag(0x92)]!=null;Ct&&Rt(Ot);export{J as CreateSessionOptions,L as IncrDomDocClient,F as PageInfo,M as PagesInfo,z as RenderPageImageOptions,k as RenderSession,it as RenderSessionOptions,D as TypstRenderer,st as TypstRendererBuilder,at as TypstWorker,B as WorkerBridge,St as default,zt as initSync,Ft as renderer_build_info,Rt as setImportWasmModule};
@@ -1 +1 @@
1
- const ar=d;(function(e,h){const ak=d,l=e();while(!![]){try{const m=-parseInt(ak(0x22c))/0x1+parseInt(ak(0x1f8))/0x2*(parseInt(ak(0x244))/0x3)+parseInt(ak(0x20a))/0x4*(parseInt(ak(0x1ff))/0x5)+-parseInt(ak(0x232))/0x6+parseInt(ak(0x20f))/0x7*(-parseInt(ak(0x241))/0x8)+parseInt(ak(0x1f5))/0x9*(parseInt(ak(0x1ec))/0xa)+parseInt(ak(0x230))/0xb;if(m===h)break;else l['push'](l['shift']());}catch(n){l['push'](l['shift']());}}}(c,0xa1ad9));let r;function g(e){const al=d;W===k[al(0x22a)]&&k['push'](k['length']+0x1);const h=W;return W=k[h],k[h]=e,h;}function $(e,h){if(!(e instanceof h))throw new Error('expected\x20instance\x20of\x20'+h['name']);}const G=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e['dtor'](e['a'],e['b']));function V(h){const am=d,l=typeof h;if(l=='number'||l=='boolean'||h==null)return''+h;if(l==am(0x1e9))return'\x22'+h+'\x22';if(l=='symbol'){const v=h['description'];return v==null?'Symbol':'Symbol('+v+')';}if(l=='function'){const x=h[am(0x22e)];return typeof x==am(0x1e9)&&x['length']>0x0?'Function('+x+')':am(0x200);}if(Array['isArray'](h)){const y=h['length'];let z='[';y>0x0&&(z+=V(h[0x0]));for(let O=0x1;O<y;O++)z+=',\x20'+V(h[O]);return z+=']',z;}const m=/\[object ([^\]]+)\]/[am(0x228)](toString[am(0x203)](h));let u;if(m&&m['length']>0x1)u=m[0x1];else return toString['call'](h);if(u=='Object')try{return'Object('+JSON['stringify'](h)+')';}catch{return'Object';}return h instanceof Error?h['name']+':\x20'+h[am(0x240)]+'\x0a'+h['stack']:u;}function gt(e){e<0x84||(k[e]=W,W=e);}function bt(h,l){const an=d;h=h>>>0x0;const m=i(),s=[];for(let u=h;u<h+0x4*l;u+=0x4)s[an(0x1f3)](b(m['getUint32'](u,!0x0)));return s;}function ut(e,h){const ao=d;return e=e>>>0x0,wt()[ao(0x210)](e/0x4,e/0x4+h);}function J(e,h){return e=e>>>0x0,R()['subarray'](e/0x1,e/0x1+h);}let F=null;function i(){const ap=d;return(F===null||F[ap(0x217)]['detached']===!0x0||F[ap(0x217)][ap(0x215)]===void 0x0&&F['buffer']!==r['memory'][ap(0x217)])&&(F=new DataView(r['memory']['buffer'])),F;}function I(e,h){return e=e>>>0x0,pt(e,h);}let E=null;function wt(){return(E===null||E['byteLength']===0x0)&&(E=new Uint32Array(r['memory']['buffer'])),E;}let M=null;function R(){return(M===null||M['byteLength']===0x0)&&(M=new Uint8Array(r['memory']['buffer'])),M;}function a(e){return k[e];}function S(h,l){const aq=d;try{return h[aq(0x23f)](this,l);}catch(m){r['__wbindgen_export3'](g(m));}}let k=new Array(0x80)['fill'](void 0x0);k['push'](void 0x0,null,!0x0,!0x1);let W=k[ar(0x22a)];function p(e){return e==null;}function dt(h,l,m,s){const u={'a':h,'b':l,'cnt':0x1,'dtor':m},v=(...x)=>{const as=d;u[as(0x22b)]++;const y=u['a'];u['a']=0x0;try{return s(y,u['b'],...x);}finally{u['a']=y,v['_wbg_cb_unref']();}};return v['_wbg_cb_unref']=()=>{--u['cnt']===0x0&&(u['dtor'](u['a'],u['b']),u['a']=0x0,G['unregister'](u));},G['register'](v,u,u),v;}function nt(h,l){const m=l(h['length']*0x1,0x1)>>>0x0;return R()['set'](h,m/0x1),w=h['length'],m;}function L(h,l){const at=ar,m=l(h['length']*0x4,0x4)>>>0x0,s=i();for(let u=0x0;u<h['length'];u++)s['setUint32'](m+0x4*u,g(h[u]),!0x0);return w=h[at(0x22a)],m;}function f(h,l,m){const au=ar;if(m===void 0x0){const O=U['encode'](h),T=l(O['length'],0x1)>>>0x0;return R()['subarray'](T,T+O['length'])['set'](O),w=O[au(0x22a)],T;}let v=h['length'],x=l(v,0x1)>>>0x0;const y=R();let z=0x0;for(;z<v;z++){const a0=h['charCodeAt'](z);if(a0>0x7f)break;y[x+z]=a0;}if(z!==v){z!==0x0&&(h=h['slice'](z)),x=m(x,v,v=z+h[au(0x22a)]*0x3,0x1)>>>0x0;const a1=R()['subarray'](x+z,x+v),a2=U['encodeInto'](h,a1);z+=a2['written'],x=m(x,v,z,0x1)>>>0x0;}return w=z,x;}function b(e){const h=a(e);return gt(e),h;}let q=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});q['decode']();const ft=0x7ff00000;function c(){const bj=['__wbindgen_cast_d6cd19b81560fd6e','call','node','__wbg_get_6b7bd52aca3f9671','typstcompiler_compile','default','__wrap','__wbg_static_accessor_WINDOW_a8924b26aa92d024','5980qBuChg','__wbg_Number_2d1dcfcf4ec51736','__wasm_bindgen_func_elem_957','free','__wbindgen_export','7LEaSJy','subarray','boolean','add_lazy_font','__wasm_bindgen_func_elem_37350','incrserver_current','detached','__wbg_prototypesetcall_dfe9b766cdc1f1fd','buffer','type','__wbindgen_export4','typstcompiler_unmap_shadow','compile','setBigInt64','__wbg___wbindgen_in_0d3e1e8f0c669317','__destroy_into_raw','__wbg_info_ce6bcc489c22f6f0','create','wbg','getInt32','proxycontext_untar','get_semantic_tokens','basic','__wbg_then_4f95312d68691235','map_shadow','exec','__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27','length','cnt','923786DNdcHM','typstcompiler_map_shadow','name','get_loaded_fonts','15526181UFmvlo','prototype','1263006jfXOUA','isArray','__wbg_isArray_51fd9e6422c0a395','get_semantic_token_legend','typstcompilerbuilder_set_package_registry','__wbg_incrserver_free','encode','setInt32','get','then','typstcompilerbuilder_new','typstcompiler_incr_compile','__wbindgen_cast_2241b6af4c4b2941','apply','message','9318808hEQFqx','__wbg_ptr','add_raw_font','41487lRjEHN','incrserver_set_attach_debug_info','stack','typstfontresolverbuilder_build','string','set_package_registry','create_incr_server','1240730Yorlmb','function','__wbg_isSafeInteger_ae7d3f054d55fa16','__wbg_typstcompilerbuilder_free','__wbindgen_object_drop_ref','set_access_model','__wbg_now_69d776cd24f5215b','push','__wbg_new_b2db8aa2650f793a','36oksJSr','unregister','__wbg_new_6421f6084cc5bc5a','54WCwDYw','Module','typstcompilerbuilder_set_access_model','__wbindgen_export2','__wbg_error_85faeb8919b11cc6','__wbindgen_add_to_stack_pointer','cors','2275QnXklh','Function','dispose'];c=function(){return bj;};return c();}let N=0x0;function pt(e,h){return N+=h,N>=ft&&(q=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),q['decode'](),N=h),q['decode'](R()['subarray'](e,e+h));}const U=new TextEncoder();'encodeInto'in U||(U['encodeInto']=function(h,l){const av=ar,m=U[av(0x238)](h);return l['set'](m),{'read':h['length'],'written':m[av(0x22a)]};});let w=0x0;function lt(h,l,m){r['__wasm_bindgen_func_elem_944'](h,l,g(m));}function yt(h,l,m,o){const aw=ar;r[aw(0x213)](h,l,g(m),g(o));}const H=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r[ar(0x237)](e>>>0x0,0x1)),P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_proxycontext_free'](e>>>0x0,0x1)),X=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompileworld_free'](e>>>0x0,0x1)),Y=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompiler_free'](e>>>0x0,0x1)),K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r[ar(0x1ef)](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstfontresolver_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstfontresolverbuilder_free'](e>>>0x0,0x1));function d(a,b){a=a-0x1e6;const e=c();let f=e[a];return f;}class A{static[ar(0x208)](h){const ax=ar;h=h>>>0x0;const l=Object['create'](A['prototype']);return l[ax(0x242)]=h,H['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const ay=ar,e=this[ay(0x242)];return this['__wbg_ptr']=0x0,H['unregister'](this),e;}[ar(0x20d)](){const e=this['__destroy_into_raw']();r['__wbg_incrserver_free'](e,0x0);}['set_attach_debug_info'](e){const az=ar;r[az(0x1e6)](this['__wbg_ptr'],e);}['current'](){const aA=ar;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r[aA(0x214)](m,this[aA(0x242)]);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);let n;return h!==0x0&&(n=J(h,l)['slice'](),r['__wbindgen_export4'](h,l*0x1,0x1)),n;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['reset'](){const aB=ar;r['incrserver_reset'](this[aB(0x242)]);}}Symbol['dispose']&&(A['prototype'][Symbol['dispose']]=A['prototype'][ar(0x20d)]);class B{static['__wrap'](h){h=h>>>0x0;const l=Object['create'](B['prototype']);return l['__wbg_ptr']=h,P['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,P['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_proxycontext_free'](e,0x0);}constructor(h){const l=r['proxycontext_new'](g(h));return this['__wbg_ptr']=l>>>0x0,P['register'](this,this['__wbg_ptr'],this),this;}get['context'](){const e=r['proxycontext_context'](this['__wbg_ptr']);return b(e);}['untar'](h,l){const aC=ar;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10),x=nt(h,r['__wbindgen_export']),y=w;r[aC(0x223)](v,this['__wbg_ptr'],x,y,g(l));var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(B[ar(0x231)][Symbol[ar(0x201)]]=B['prototype']['free']);class C{static['__wrap'](h){h=h>>>0x0;const l=Object['create'](C['prototype']);return l['__wbg_ptr']=h,X['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,X['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstcompileworld_free'](e,0x0);}[ar(0x21b)](h,l){const aD=ar;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_compile'](v,this['__wbg_ptr'],h,l);var m=i()[aD(0x222)](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['title'](h){try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_title'](x,this['__wbg_ptr'],h);var l=i()['getInt32'](x+0x4*0x0,!0x0),m=i()['getInt32'](x+0x4*0x1,!0x0),n=i()['getInt32'](x+0x4*0x2,!0x0),v=i()['getInt32'](x+0x4*0x3,!0x0);if(v)throw b(n);let y;return l!==0x0&&(y=I(l,m)['slice'](),r['__wbindgen_export4'](l,m*0x1,0x1)),y;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_artifact'](h,l){try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_get_artifact'](v,this['__wbg_ptr'],h,l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['query'](n,T,a0){const aE=ar;let a1,a2;try{const ab=r['__wbindgen_add_to_stack_pointer'](-0x10),ac=f(T,r[aE(0x20e)],r['__wbindgen_export2']),ad=w;var a3=p(a0)?0x0:f(a0,r['__wbindgen_export'],r['__wbindgen_export2']),a4=w;r['typstcompileworld_query'](ab,this['__wbg_ptr'],n,ac,ad,a3,a4);var a5=i()['getInt32'](ab+0x4*0x0,!0x0),a6=i()['getInt32'](ab+0x4*0x1,!0x0),a7=i()['getInt32'](ab+0x4*0x2,!0x0),a8=i()['getInt32'](ab+0x4*0x3,!0x0),a9=a5,aa=a6;if(a8)throw a9=0x0,aa=0x0,b(a7);return a1=a9,a2=aa,I(a9,aa);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r['__wbindgen_export4'](a1,a2,0x1);}}['incr_compile'](h,l){try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);$(h,A),r['typstcompileworld_incr_compile'](v,this['__wbg_ptr'],h['__wbg_ptr'],l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(C[ar(0x231)][Symbol['dispose']]=C['prototype']['free']);class D{static['__wrap'](h){const aF=ar;h=h>>>0x0;const l=Object[aF(0x220)](D[aF(0x231)]);return l['__wbg_ptr']=h,Y['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Y['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstcompiler_free'](e,0x0);}['reset'](){try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_reset'](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_fonts'](h){const aG=ar;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);$(h,j),r['typstcompiler_set_fonts'](n,this['__wbg_ptr'],h['__wbg_ptr']);var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()[aG(0x222)](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_inputs'](h){try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_set_inputs'](n,this['__wbg_ptr'],g(h));var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()['getInt32'](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['add_source'](h,l){const aH=ar,m=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),n=w,u=f(l,r['__wbindgen_export'],r[aH(0x1fb)]),v=w;return r['typstcompiler_add_source'](this['__wbg_ptr'],m,n,u,v)!==0x0;}[ar(0x227)](h,l){const aI=ar,m=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),n=w,u=nt(l,r['__wbindgen_export']),v=w;return r[aI(0x22d)](this['__wbg_ptr'],m,n,u,v)!==0x0;}['unmap_shadow'](h){const aJ=ar,l=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),m=w;return r[aJ(0x21a)](this['__wbg_ptr'],l,m)!==0x0;}['reset_shadow'](){r['typstcompiler_reset_shadow'](this['__wbg_ptr']);}[ar(0x22f)](){const aK=ar;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_get_loaded_fonts'](n,this['__wbg_ptr']);var h=i()[aK(0x222)](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=bt(h,l)['slice']();return r['__wbindgen_export4'](h,l*0x4,0x4),m;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_ast'](n){let v,x;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a5=w;r['typstcompiler_get_ast'](a3,this['__wbg_ptr'],a4,a5);var z=i()['getInt32'](a3+0x4*0x0,!0x0),O=i()['getInt32'](a3+0x4*0x1,!0x0),T=i()['getInt32'](a3+0x4*0x2,!0x0),a0=i()['getInt32'](a3+0x4*0x3,!0x0),a1=z,a2=O;if(a0)throw a1=0x0,a2=0x0,b(T);return v=a1,x=a2,I(a1,a2);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r['__wbindgen_export4'](v,x,0x1);}}[ar(0x235)](){const aL=ar;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_get_semantic_token_legend'](n,this[aL(0x242)]);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[ar(0x224)](n,x,z){const aM=ar;try{const a5=r['__wbindgen_add_to_stack_pointer'](-0x10),a6=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a7=w;var O=p(x)?0x0:f(x,r['__wbindgen_export'],r[aM(0x1fb)]),T=w,a0=p(z)?0x0:f(z,r['__wbindgen_export'],r['__wbindgen_export2']),a1=w;r['typstcompiler_get_semantic_tokens'](a5,this['__wbg_ptr'],a6,a7,O,T,a0,a1);var a2=i()[aM(0x222)](a5+0x4*0x0,!0x0),a3=i()['getInt32'](a5+0x4*0x1,!0x0),a4=i()[aM(0x222)](a5+0x4*0x2,!0x0);if(a4)throw b(a3);return b(a2);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['snapshot'](n,x,z){const aN=ar;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var O=p(n)?0x0:f(n,r['__wbindgen_export'],r['__wbindgen_export2']),T=w,a0=p(x)?0x0:f(x,r[aN(0x20e)],r['__wbindgen_export2']),a1=w,a2=p(z)?0x0:L(z,r['__wbindgen_export']),a3=w;r['typstcompiler_snapshot'](a7,this['__wbg_ptr'],O,T,a0,a1,a2,a3);var a4=i()['getInt32'](a7+0x4*0x0,!0x0),a5=i()[aN(0x222)](a7+0x4*0x1,!0x0),a6=i()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return C['__wrap'](a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_artifact'](h,l){const aO=ar;try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10),y=f(h,r[aO(0x20e)],r[aO(0x1fb)]),z=w;r['typstcompiler_get_artifact'](x,this['__wbg_ptr'],y,z,l);var m=i()[aO(0x222)](x+0x4*0x0,!0x0),n=i()['getInt32'](x+0x4*0x1,!0x0),v=i()['getInt32'](x+0x4*0x2,!0x0);if(v)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['compile'](n,z,O,T){const aP=ar;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var a0=p(n)?0x0:f(n,r['__wbindgen_export'],r[aP(0x1fb)]),a1=w,a2=p(z)?0x0:L(z,r['__wbindgen_export']),a3=w;const a8=f(O,r['__wbindgen_export'],r['__wbindgen_export2']),a9=w;r[aP(0x206)](a7,this['__wbg_ptr'],a0,a1,a2,a3,a8,a9,T);var a4=i()['getInt32'](a7+0x4*0x0,!0x0),a5=i()['getInt32'](a7+0x4*0x1,!0x0),a6=i()[aP(0x222)](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return b(a4);}finally{r[aP(0x1fd)](0x10);}}['query'](n,a0,a1,a2){const aQ=ar;let a3,a4;try{const af=r['__wbindgen_add_to_stack_pointer'](-0x10),ag=f(n,r[aQ(0x20e)],r[aQ(0x1fb)]),ah=w;var a5=p(a0)?0x0:L(a0,r[aQ(0x20e)]),a6=w;const ai=f(a1,r['__wbindgen_export'],r['__wbindgen_export2']),aj=w;var a7=p(a2)?0x0:f(a2,r[aQ(0x20e)],r['__wbindgen_export2']),a8=w;r['typstcompiler_query'](af,this['__wbg_ptr'],ag,ah,a5,a6,ai,aj,a7,a8);var a9=i()['getInt32'](af+0x4*0x0,!0x0),aa=i()['getInt32'](af+0x4*0x1,!0x0),ab=i()[aQ(0x222)](af+0x4*0x2,!0x0),ac=i()['getInt32'](af+0x4*0x3,!0x0),ad=a9,ae=aa;if(ac)throw ad=0x0,ae=0x0,b(ab);return a3=ad,a4=ae,I(ad,ae);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r[aQ(0x219)](a3,a4,0x1);}}[ar(0x1eb)](){const aR=ar;try{const n=r[aR(0x1fd)](-0x10);r['typstcompiler_create_incr_server'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()[aR(0x222)](n+0x4*0x2,!0x0);if(m)throw b(l);return A['__wrap'](h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['incr_compile'](n,v,x,z){const aS=ar;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r[aS(0x20e)],r['__wbindgen_export2']),a5=w;var O=p(v)?0x0:L(v,r['__wbindgen_export']),T=w;$(x,A),r[aS(0x23d)](a3,this['__wbg_ptr'],a4,a5,O,T,x['__wbg_ptr'],z);var a0=i()['getInt32'](a3+0x4*0x0,!0x0),a1=i()[aS(0x222)](a3+0x4*0x1,!0x0),a2=i()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw b(a1);return b(a0);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol[ar(0x201)]&&(D['prototype'][Symbol['dispose']]=D['prototype']['free']);class tt{[ar(0x21e)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}[ar(0x20d)](){const e=this['__destroy_into_raw']();r['__wbg_typstcompilerbuilder_free'](e,0x0);}constructor(){const aT=ar;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r[aT(0x23c)](n);var h=i()[aT(0x222)](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,K['register'](this,this['__wbg_ptr'],this),this;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_dummy_access_model'](){try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompilerbuilder_set_dummy_access_model'](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[ar(0x1f1)](h,l,m,n,u){const aU=ar,v=r[aU(0x1fa)](this['__wbg_ptr'],g(h),g(l),g(m),g(n),g(u));return b(v);}[ar(0x1ea)](h,l){const aV=ar,m=r[aV(0x236)](this['__wbg_ptr'],g(h),g(l));return b(m);}['add_raw_font'](h){const l=r['typstcompilerbuilder_add_raw_font'](this['__wbg_ptr'],g(h));return b(l);}['add_lazy_font'](h,l){const m=r['typstcompilerbuilder_add_lazy_font'](this['__wbg_ptr'],g(h),g(l));return b(m);}['build'](){const h=this['__destroy_into_raw'](),l=r['typstcompilerbuilder_build'](h);return b(l);}}Symbol['dispose']&&(tt['prototype'][Symbol[ar(0x201)]]=tt['prototype']['free']);class j{static['__wrap'](h){h=h>>>0x0;const l=Object['create'](j['prototype']);return l['__wbg_ptr']=h,Q['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const aW=ar,e=this[aW(0x242)];return this['__wbg_ptr']=0x0,Q[aW(0x1f6)](this),e;}[ar(0x20d)](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolver_free'](e,0x0);}}Symbol['dispose']&&(j['prototype'][Symbol[ar(0x201)]]=j['prototype']['free']);class et{['__destroy_into_raw'](){const aX=ar,e=this['__wbg_ptr'];return this[aX(0x242)]=0x0,Z[aX(0x1f6)](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolverbuilder_free'](e,0x0);}constructor(){const aY=ar;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_new'](n);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,Z['register'](this,this['__wbg_ptr'],this),this;}finally{r[aY(0x1fd)](0x10);}}['get_font_info'](h){try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_get_font_info'](s,this['__wbg_ptr'],g(h));var l=i()['getInt32'](s+0x4*0x0,!0x0),m=i()['getInt32'](s+0x4*0x1,!0x0),n=i()['getInt32'](s+0x4*0x2,!0x0);if(n)throw b(m);return b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[ar(0x243)](h){const aZ=ar;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_add_raw_font'](n,this['__wbg_ptr'],g(h));var l=i()[aZ(0x222)](n+0x4*0x0,!0x0),m=i()['getInt32'](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r[aZ(0x1fd)](0x10);}}[ar(0x212)](h,l){try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_add_lazy_font'](s,this['__wbg_ptr'],g(h),g(l));var m=i()['getInt32'](s+0x4*0x0,!0x0),n=i()['getInt32'](s+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){const b0=ar,h=this['__destroy_into_raw'](),l=r[b0(0x1e8)](h);return b(l);}}Symbol['dispose']&&(et['prototype'][Symbol[ar(0x201)]]=et['prototype'][ar(0x20d)]);function Ft(e){const h=r['get_font_info'](g(e));return b(h);}const ht=new Set([ar(0x225),ar(0x1fe),ar(0x207)]);async function mt(h,l){const b1=ar;if(typeof Response=='function'&&h instanceof Response){if(typeof WebAssembly['instantiateStreaming']=='function')try{return await WebAssembly['instantiateStreaming'](h,l);}catch(o){if(h['ok']&&ht['has'](h[b1(0x218)])&&h['headers']['get']('Content-Type')!=='application/wasm')console['warn']('`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a',o);else throw o;}const m=await h['arrayBuffer']();return await WebAssembly['instantiate'](m,l);}else{const s=await WebAssembly['instantiate'](h,l);return s instanceof WebAssembly['Instance']?{'instance':s,'module':h}:s;}}function rt(){const b2=ar,e={};return e['wbg']={},e[b2(0x221)]['__wbg_Error_52673b7de5a0ca89']=function(h,l){const m=Error(I(h,l));return g(m);},e['wbg'][b2(0x20b)]=function(h){return Number(a(h));},e[b2(0x221)]['__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d']=function(h,l){const b3=b2,m=a(l),s=typeof m=='bigint'?m:void 0x0;i()[b3(0x21c)](h+0x8*0x1,p(s)?BigInt(0x0):s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e['wbg']['__wbg___wbindgen_boolean_get_dea25b33882b895b']=function(h){const b4=b2,l=a(h),m=typeof l==b4(0x211)?l:void 0x0;return p(m)?0xffffff:m?0x1:0x0;},e['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(h,l){const b5=b2,m=V(a(l)),s=f(m,r['__wbindgen_export'],r['__wbindgen_export2']),u=w;i()[b5(0x239)](h+0x4*0x1,u,!0x0),i()['setInt32'](h+0x4*0x0,s,!0x0);},e['wbg'][b2(0x21d)]=function(h,l){return a(h)in a(l);},e['wbg'][b2(0x229)]=function(h){return typeof a(h)=='bigint';},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(h){const b6=b2;return typeof a(h)==b6(0x1ed);},e['wbg']['__wbg___wbindgen_is_object_ce774f3490692386']=function(h){const l=a(h);return typeof l=='object'&&l!==null;},e['wbg']['__wbg___wbindgen_is_string_704ef9c8fc131030']=function(h){return typeof a(h)=='string';},e['wbg']['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(h){return a(h)===void 0x0;},e['wbg']['__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36']=function(h,l){return a(h)===a(l);},e['wbg']['__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d']=function(h,l){return a(h)==a(l);},e[b2(0x221)]['__wbg___wbindgen_number_get_9619185a74197f95']=function(h,l){const b7=b2,m=a(l),s=typeof m=='number'?m:void 0x0;i()['setFloat64'](h+0x8*0x1,p(s)?0x0:s,!0x0),i()[b7(0x239)](h+0x4*0x0,!p(s),!0x0);},e['wbg']['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(h,l){const b8=b2,m=a(l),u=typeof m=='string'?m:void 0x0;var v=p(u)?0x0:f(u,r[b8(0x20e)],r['__wbindgen_export2']),x=w;i()[b8(0x239)](h+0x4*0x1,x,!0x0),i()['setInt32'](h+0x4*0x0,v,!0x0);},e[b2(0x221)]['__wbg___wbindgen_throw_dd24417ed36fc46e']=function(h,l){throw new Error(I(h,l));},e['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(h){a(h)['_wbg_cb_unref']();},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return S(function(h,l,m){const b9=d,s=a(h)[b9(0x203)](a(l),a(m));return g(s);},arguments);},e['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return S(function(h,l,m,u,v){const ba=d,x=a(h)[ba(0x203)](a(l),a(m),a(u),a(v));return g(x);},arguments);},e[b2(0x221)]['__wbg_call_abb4ff46ce38be40']=function(){return S(function(h,l){const m=a(h)['call'](a(l));return g(m);},arguments);},e['wbg']['__wbg_done_62ea16af4ce34b24']=function(h){return a(h)['done'];},e['wbg']['__wbg_entries_83c79938054e065f']=function(h){const l=Object['entries'](a(h));return g(l);},e[b2(0x221)]['__wbg_error_7534b8e9a36f1ab4']=function(h,l){let m,s;try{m=h,s=l,console['error'](I(h,l));}finally{r['__wbindgen_export4'](m,s,0x1);}},e['wbg'][b2(0x1fc)]=function(h,l,m){console['error'](a(h),a(l),a(m));},e['wbg']['__wbg_getTimezoneOffset_45389e26d6f46823']=function(h){return a(h)['getTimezoneOffset']();},e[b2(0x221)][b2(0x205)]=function(h,l){const m=a(h)[l>>>0x0];return g(m);},e['wbg']['__wbg_get_af9dab7e9603ea93']=function(){return S(function(h,l){const bb=d,m=Reflect[bb(0x23a)](a(h),a(l));return g(m);},arguments);},e[b2(0x221)]['__wbg_get_with_ref_key_1dc361bd10053bfe']=function(h,l){const m=a(h)[a(l)];return g(m);},e['wbg'][b2(0x21f)]=function(h){console['info'](a(h));},e['wbg']['__wbg_instanceof_ArrayBuffer_f3320d2419cd0355']=function(h){let l;try{l=a(h)instanceof ArrayBuffer;}catch{l=!0x1;}return l;},e['wbg']['__wbg_instanceof_Map_084be8da74364158']=function(h){let l;try{l=a(h)instanceof Map;}catch{l=!0x1;}return l;},e[b2(0x221)]['__wbg_instanceof_Uint8Array_da54ccc9d3e09434']=function(h){let l;try{l=a(h)instanceof Uint8Array;}catch{l=!0x1;}return l;},e['wbg'][b2(0x234)]=function(h){const bc=b2;return Array[bc(0x233)](a(h));},e['wbg'][b2(0x1ee)]=function(h){return Number['isSafeInteger'](a(h));},e['wbg']['__wbg_iterator_27b7c8b35ab3e86b']=function(){return g(Symbol['iterator']);},e['wbg']['__wbg_length_22ac23eaec9d8053']=function(h){return a(h)['length'];},e['wbg']['__wbg_length_d45040a40c570362']=function(h){return a(h)['length'];},e['wbg']['__wbg_new_1ba21ce319a06297']=function(){const h=new Object();return g(h);},e['wbg']['__wbg_new_25f239778d6112b9']=function(){const h=new Array();return g(h);},e['wbg'][b2(0x1f7)]=function(h){const l=new Uint8Array(a(h));return g(l);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){const h=new Error();return g(h);},e['wbg'][b2(0x1f4)]=function(h){const l=new Date(a(h));return g(l);},e['wbg']['__wbg_new_df1173567d5ff028']=function(h,l){const m=new Error(I(h,l));return g(m);},e[b2(0x221)]['__wbg_new_ff12d2b041fb48f1']=function(h,l){try{var m={'a':h,'b':l},s=(v,x)=>{const y=m['a'];m['a']=0x0;try{return yt(y,m['b'],v,x);}finally{m['a']=y;}};const u=new Promise(s);return g(u);}finally{m['a']=m['b']=0x0;}},e['wbg']['__wbg_new_from_slice_db0691b69e9d3891']=function(h,l){const m=new Uint32Array(ut(h,l));return g(m);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(h,l){const m=new Uint8Array(J(h,l));return g(m);},e['wbg']['__wbg_new_no_args_cb138f77cf6151ee']=function(h,l){const m=new Function(I(h,l));return g(m);},e['wbg']['__wbg_new_with_args_df9e7125ffe55248']=function(h,l,m,s){const u=new Function(I(h,l),I(m,s));return g(u);},e['wbg']['__wbg_next_138a17bbf04e926c']=function(h){const l=a(h)['next'];return g(l);},e['wbg']['__wbg_next_3cfe5c0fe2a4cc53']=function(){return S(function(h){const l=a(h)['next']();return g(l);},arguments);},e[b2(0x221)][b2(0x1f2)]=function(){return Date['now']();},e['wbg'][b2(0x216)]=function(h,l,m){Uint8Array['prototype']['set']['call'](J(h,l),a(m));},e['wbg']['__wbg_proxycontext_new']=function(h){const l=B['__wrap'](h);return g(l);},e[b2(0x221)]['__wbg_push_7d9be8f38fc13975']=function(h,l){return a(h)['push'](a(l));},e['wbg']['__wbg_queueMicrotask_9b549dfce8865860']=function(h){const l=a(h)['queueMicrotask'];return g(l);},e['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(h){queueMicrotask(a(h));},e['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(h){const l=Promise['resolve'](a(h));return g(l);},e['wbg']['__wbg_set_3f1d0b984ed272ed']=function(h,l,m){a(h)[b(l)]=b(m);},e['wbg']['__wbg_set_781438a03c0c3c81']=function(){return S(function(h,l,m){return Reflect['set'](a(h),a(l),a(m));},arguments);},e[b2(0x221)]['__wbg_set_7df433eea03a5c14']=function(h,l,m){a(h)[l>>>0x0]=b(m);},e['wbg']['__wbg_stack_0ed75d68575b0f3c']=function(h,l){const bd=b2,m=a(l)[bd(0x1e7)],s=f(m,r['__wbindgen_export'],r[bd(0x1fb)]),u=w;i()['setInt32'](h+0x4*0x1,u,!0x0),i()[bd(0x239)](h+0x4*0x0,s,!0x0);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){const h=typeof global>'u'?null:global;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1']=function(){const h=typeof globalThis>'u'?null:globalThis;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){const h=typeof self>'u'?null:self;return p(h)?0x0:g(h);},e['wbg'][b2(0x209)]=function(){const h=typeof window>'u'?null:window;return p(h)?0x0:g(h);},e[b2(0x221)][b2(0x226)]=function(h,l){const be=b2,m=a(h)[be(0x23b)](a(l));return g(m);},e['wbg']['__wbg_typstcompiler_new']=function(h){const bf=b2,l=D[bf(0x208)](h);return g(l);},e[b2(0x221)]['__wbg_typstfontresolver_new']=function(h){const l=j['__wrap'](h);return g(l);},e['wbg']['__wbg_value_57b7b035e117f7ee']=function(h){const l=a(h)['value'];return g(l);},e['wbg'][b2(0x23e)]=function(h,l){const m=I(h,l);return g(m);},e['wbg']['__wbindgen_cast_3334ea73b4b28ba3']=function(h,l){const bg=b2,m=dt(h,l,r[bg(0x20c)],lt);return g(m);},e['wbg']['__wbindgen_cast_4625c577ab2ec9ee']=function(h){const l=BigInt['asUintN'](0x40,h);return g(l);},e['wbg']['__wbindgen_cast_9ae0607507abb057']=function(h){return g(h);},e['wbg'][b2(0x202)]=function(h){return g(h);},e['wbg']['__wbindgen_object_clone_ref']=function(h){const l=a(h);return g(l);},e[b2(0x221)][b2(0x1f0)]=function(h){b(h);},e;}function _t(e,h){return r=e['exports'],vt['__wbindgen_wasm_module']=h,F=null,E=null,M=null,r;}function At(h){const bh=ar;if(r!==void 0x0)return r;typeof h<'u'&&(Object['getPrototypeOf'](h)===Object[bh(0x231)]?{module:h}=h:console['warn']('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));const l=rt();h instanceof WebAssembly[bh(0x1f9)]||(h=new WebAssembly['Module'](h));const m=new WebAssembly['Instance'](h,l);return _t(m,h);}async function vt(h){const bi=ar;if(r!==void 0x0)return r;typeof h<'u'&&(Object['getPrototypeOf'](h)===Object['prototype']?{module_or_path:h}=h:console['warn']('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),typeof h>'u'&&(h=ot('typst_ts_web_compiler_bg.wasm',import.meta.url));const l=rt();(typeof h=='string'||typeof Request==bi(0x1ed)&&h instanceof Request||typeof URL=='function'&&h instanceof URL)&&(h=fetch(h));const {instance:m,module:o}=await mt(await h,l);return _t(m,o);}let ot=async function(e,h){throw new Error('Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20'+e+'\x20'+h);};function It(e){ot=e;}let xt=async function(h,l){const m=new Function('m','return\x20import(m)'),{readFileSync:s}=await m('fs'),u=new URL(h,l);return await s(u)['buffer'];};const kt=typeof process<'u'&&process['versions']!=null&&process['versions'][ar(0x204)]!=null;kt&&It(xt);export{A as IncrServer,B as ProxyContext,C as TypstCompileWorld,D as TypstCompiler,tt as TypstCompilerBuilder,j as TypstFontResolver,et as TypstFontResolverBuilder,vt as default,Ft as get_font_info,At as initSync,It as setImportWasmModule};
1
+ const as=d;(function(e,h){const ak=d,l=e();while(!![]){try{const m=-parseInt(ak(0xf4))/0x1+parseInt(ak(0xf2))/0x2+-parseInt(ak(0xb0))/0x3*(parseInt(ak(0xd7))/0x4)+-parseInt(ak(0xca))/0x5*(parseInt(ak(0xe3))/0x6)+-parseInt(ak(0xd3))/0x7+-parseInt(ak(0xc5))/0x8*(parseInt(ak(0xb2))/0x9)+-parseInt(ak(0xd9))/0xa*(-parseInt(ak(0xc9))/0xb);if(m===h)break;else l['push'](l['shift']());}catch(n){l['push'](l['shift']());}}}(c,0xefc0e));let r;function g(e){const al=d;W===k['length']&&k['push'](k[al(0xef)]+0x1);const h=W;return W=k[h],k[h]=e,h;}function $(e,h){if(!(e instanceof h))throw new Error('expected\x20instance\x20of\x20'+h['name']);}const G=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e['dtor'](e['a'],e['b']));function V(h){const am=d,l=typeof h;if(l==am(0xe2)||l=='boolean'||h==null)return''+h;if(l=='string')return'\x22'+h+'\x22';if(l=='symbol'){const v=h[am(0xb7)];return v==null?'Symbol':'Symbol('+v+')';}if(l=='function'){const x=h['name'];return typeof x=='string'&&x['length']>0x0?'Function('+x+')':'Function';}if(Array['isArray'](h)){const y=h['length'];let z='[';y>0x0&&(z+=V(h[0x0]));for(let O=0x1;O<y;O++)z+=',\x20'+V(h[O]);return z+=']',z;}const m=/\[object ([^\]]+)\]/[am(0xd6)](toString['call'](h));let u;if(m&&m[am(0xef)]>0x1)u=m[0x1];else return toString[am(0xae)](h);if(u=='Object')try{return'Object('+JSON['stringify'](h)+')';}catch{return'Object';}return h instanceof Error?h['name']+':\x20'+h['message']+'\x0a'+h['stack']:u;}function gt(e){e<0x84||(k[e]=W,W=e);}function bt(h,l){const an=d;h=h>>>0x0;const m=i(),s=[];for(let u=h;u<h+0x4*l;u+=0x4)s['push'](b(m[an(0xda)](u,!0x0)));return s;}function ut(e,h){return e=e>>>0x0,wt()['subarray'](e/0x4,e/0x4+h);}function J(e,h){return e=e>>>0x0,R()['subarray'](e/0x1,e/0x1+h);}let F=null;function i(){return(F===null||F['buffer']['detached']===!0x0||F['buffer']['detached']===void 0x0&&F['buffer']!==r['memory']['buffer'])&&(F=new DataView(r['memory']['buffer'])),F;}function I(e,h){return e=e>>>0x0,pt(e,h);}let E=null;function wt(){return(E===null||E['byteLength']===0x0)&&(E=new Uint32Array(r['memory']['buffer'])),E;}let M=null;function R(){return(M===null||M['byteLength']===0x0)&&(M=new Uint8Array(r['memory']['buffer'])),M;}function a(e){return k[e];}function S(h,l){const ao=d;try{return h['apply'](this,l);}catch(m){r[ao(0xf6)](g(m));}}let k=new Array(0x80)['fill'](void 0x0);k['push'](void 0x0,null,!0x0,!0x1);let W=k['length'];function p(e){return e==null;}function dt(h,l,m,s){const u={'a':h,'b':l,'cnt':0x1,'dtor':m},v=(...x)=>{u['cnt']++;const y=u['a'];u['a']=0x0;try{return s(y,u['b'],...x);}finally{u['a']=y,v['_wbg_cb_unref']();}};return v['_wbg_cb_unref']=()=>{--u['cnt']===0x0&&(u['dtor'](u['a'],u['b']),u['a']=0x0,G['unregister'](u));},G['register'](v,u,u),v;}function nt(h,l){const ap=d,m=l(h['length']*0x1,0x1)>>>0x0;return R()['set'](h,m/0x1),w=h[ap(0xef)],m;}function L(h,l){const aq=d,m=l(h['length']*0x4,0x4)>>>0x0,s=i();for(let u=0x0;u<h['length'];u++)s['setUint32'](m+0x4*u,g(h[u]),!0x0);return w=h[aq(0xef)],m;}function f(h,l,m){const ar=d;if(m===void 0x0){const O=U['encode'](h),T=l(O['length'],0x1)>>>0x0;return R()['subarray'](T,T+O['length'])['set'](O),w=O['length'],T;}let v=h['length'],x=l(v,0x1)>>>0x0;const y=R();let z=0x0;for(;z<v;z++){const a0=h['charCodeAt'](z);if(a0>0x7f)break;y[x+z]=a0;}if(z!==v){z!==0x0&&(h=h['slice'](z)),x=m(x,v,v=z+h['length']*0x3,0x1)>>>0x0;const a1=R()[ar(0xf0)](x+z,x+v),a2=U['encodeInto'](h,a1);z+=a2['written'],x=m(x,v,z,0x1)>>>0x0;}return w=z,x;}function b(e){const h=a(e);return gt(e),h;}let q=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});q['decode']();const ft=0x7ff00000;let N=0x0;function pt(e,h){return N+=h,N>=ft&&(q=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),q['decode'](),N=h),q['decode'](R()['subarray'](e,e+h));}const U=new TextEncoder();as(0xed)in U||(U['encodeInto']=function(h,l){const m=U['encode'](h);return l['set'](m),{'read':h['length'],'written':m['length']};});let w=0x0;function lt(h,l,m){r['__wasm_bindgen_func_elem_944'](h,l,g(m));}function yt(h,l,m,o){r['__wasm_bindgen_func_elem_37350'](h,l,g(m),g(o));}const H=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_incrserver_free'](e>>>0x0,0x1)),P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_proxycontext_free'](e>>>0x0,0x1)),X=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompileworld_free'](e>>>0x0,0x1)),Y=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompiler_free'](e>>>0x0,0x1)),K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompilerbuilder_free'](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstfontresolver_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstfontresolverbuilder_free'](e>>>0x0,0x1));class A{static[as(0xb5)](h){const at=as;h=h>>>0x0;const l=Object['create'](A['prototype']);return l['__wbg_ptr']=h,H[at(0xcf)](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,H['unregister'](this),e;}[as(0xd4)](){const e=this['__destroy_into_raw']();r['__wbg_incrserver_free'](e,0x0);}[as(0xb3)](e){const au=as;r[au(0xde)](this['__wbg_ptr'],e);}['current'](){const av=as;try{const m=r[av(0xe4)](-0x10);r['incrserver_current'](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);let n;return h!==0x0&&(n=J(h,l)[av(0xbd)](),r['__wbindgen_export4'](h,l*0x1,0x1)),n;}finally{r[av(0xe4)](0x10);}}[as(0xc6)](){const aw=as;r[aw(0xce)](this[aw(0xaf)]);}}function c(){const bk=['subarray','__wbindgen_export4','2436998hFKcwR','get_ast','567640GnblJC','build','__wbindgen_export3','Module','_wbg_cb_unref','__wbindgen_object_drop_ref','__destroy_into_raw','__wbg_new_b2db8aa2650f793a','call','__wbg_ptr','229911LrBoEH','__wbg___wbindgen_is_string_704ef9c8fc131030','3851163Zihcel','set_attach_debug_info','typstcompilerbuilder_set_package_registry','__wrap','__wbg_call_abb4ff46ce38be40','description','setInt32','bigint','proxycontext_untar','dispose','typstcompilerbuilder_set_dummy_access_model','slice','iterator','getInt32','__wbindgen_export','exports','__wbg_getTimezoneOffset_45389e26d6f46823','typstcompiler_set_fonts','next','8iawFPy','reset','__wbg_length_22ac23eaec9d8053','unmap_shadow','38433571iPfCvn','693170tqztTY','prototype','__wbg_typstcompileworld_free','__wbg___wbindgen_in_0d3e1e8f0c669317','incrserver_reset','register','__wbindgen_cast_4625c577ab2ec9ee','__wbg_info_ce6bcc489c22f6f0','headers','10844218btfnjg','free','error','exec','4gmouwG','wbg','10XeSmYI','getUint32','function','__wbg_new_25f239778d6112b9','__wbindgen_cast_2241b6af4c4b2941','incrserver_set_attach_debug_info','__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d','Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20','warn','number','48RPmedF','__wbindgen_add_to_stack_pointer','Instance','typstfontresolverbuilder_add_lazy_font','__wbindgen_export2','set_dummy_access_model','__wbg___wbindgen_debug_string_adfb662ae34724b6','__wbg_new_df1173567d5ff028','__wbg_then_4f95312d68691235','typstcompiler_add_source','encodeInto','__wbg_proxycontext_free','length'];c=function(){return bk;};return c();}Symbol['dispose']&&(A['prototype'][Symbol[as(0xbb)]]=A['prototype']['free']);class B{static['__wrap'](h){const ax=as;h=h>>>0x0;const l=Object['create'](B['prototype']);return l['__wbg_ptr']=h,P[ax(0xcf)](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const ay=as,e=this[ay(0xaf)];return this['__wbg_ptr']=0x0,P['unregister'](this),e;}['free'](){const az=as,e=this['__destroy_into_raw']();r[az(0xee)](e,0x0);}constructor(h){const aA=as,l=r['proxycontext_new'](g(h));return this['__wbg_ptr']=l>>>0x0,P['register'](this,this[aA(0xaf)],this),this;}get['context'](){const e=r['proxycontext_context'](this['__wbg_ptr']);return b(e);}['untar'](h,l){const aB=as;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10),x=nt(h,r['__wbindgen_export']),y=w;r[aB(0xba)](v,this['__wbg_ptr'],x,y,g(l));var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0);if(n)throw b(m);}finally{r[aB(0xe4)](0x10);}}}Symbol['dispose']&&(B['prototype'][Symbol['dispose']]=B['prototype'][as(0xd4)]);class C{static[as(0xb5)](h){h=h>>>0x0;const l=Object['create'](C['prototype']);return l['__wbg_ptr']=h,X['register'](l,l['__wbg_ptr'],l),l;}[as(0xfa)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,X['unregister'](this),e;}['free'](){const aC=as,e=this['__destroy_into_raw']();r[aC(0xcc)](e,0x0);}['compile'](h,l){const aD=as;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_compile'](v,this['__wbg_ptr'],h,l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r[aD(0xe4)](0x10);}}['title'](h){const aE=as;try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_title'](x,this[aE(0xaf)],h);var l=i()['getInt32'](x+0x4*0x0,!0x0),m=i()['getInt32'](x+0x4*0x1,!0x0),n=i()['getInt32'](x+0x4*0x2,!0x0),v=i()['getInt32'](x+0x4*0x3,!0x0);if(v)throw b(n);let y;return l!==0x0&&(y=I(l,m)['slice'](),r['__wbindgen_export4'](l,m*0x1,0x1)),y;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_artifact'](h,l){const aF=as;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_get_artifact'](v,this[aF(0xaf)],h,l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['query'](n,T,a0){const aG=as;let a1,a2;try{const ab=r['__wbindgen_add_to_stack_pointer'](-0x10),ac=f(T,r['__wbindgen_export'],r['__wbindgen_export2']),ad=w;var a3=p(a0)?0x0:f(a0,r[aG(0xc0)],r[aG(0xe7)]),a4=w;r['typstcompileworld_query'](ab,this['__wbg_ptr'],n,ac,ad,a3,a4);var a5=i()[aG(0xbf)](ab+0x4*0x0,!0x0),a6=i()['getInt32'](ab+0x4*0x1,!0x0),a7=i()['getInt32'](ab+0x4*0x2,!0x0),a8=i()['getInt32'](ab+0x4*0x3,!0x0),a9=a5,aa=a6;if(a8)throw a9=0x0,aa=0x0,b(a7);return a1=a9,a2=aa,I(a9,aa);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r['__wbindgen_export4'](a1,a2,0x1);}}['incr_compile'](h,l){const aH=as;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);$(h,A),r['typstcompileworld_incr_compile'](v,this['__wbg_ptr'],h[aH(0xaf)],l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r[aH(0xe4)](0x10);}}}Symbol['dispose']&&(C['prototype'][Symbol['dispose']]=C['prototype']['free']);class D{static['__wrap'](h){h=h>>>0x0;const l=Object['create'](D['prototype']);return l['__wbg_ptr']=h,Y['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const aI=as,e=this[aI(0xaf)];return this['__wbg_ptr']=0x0,Y['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstcompiler_free'](e,0x0);}['reset'](){const aJ=as;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_reset'](m,this['__wbg_ptr']);var h=i()[aJ(0xbf)](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_fonts'](h){const aK=as;try{const n=r[aK(0xe4)](-0x10);$(h,j),r[aK(0xc3)](n,this['__wbg_ptr'],h['__wbg_ptr']);var l=i()[aK(0xbf)](n+0x4*0x0,!0x0),m=i()['getInt32'](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_inputs'](h){const aL=as;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_set_inputs'](n,this['__wbg_ptr'],g(h));var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()['getInt32'](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r[aL(0xe4)](0x10);}}['add_source'](h,l){const aM=as,m=f(h,r[aM(0xc0)],r['__wbindgen_export2']),n=w,u=f(l,r['__wbindgen_export'],r['__wbindgen_export2']),v=w;return r[aM(0xec)](this['__wbg_ptr'],m,n,u,v)!==0x0;}['map_shadow'](h,l){const m=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),n=w,u=nt(l,r['__wbindgen_export']),v=w;return r['typstcompiler_map_shadow'](this['__wbg_ptr'],m,n,u,v)!==0x0;}[as(0xc8)](h){const l=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),m=w;return r['typstcompiler_unmap_shadow'](this['__wbg_ptr'],l,m)!==0x0;}['reset_shadow'](){r['typstcompiler_reset_shadow'](this['__wbg_ptr']);}['get_loaded_fonts'](){const aN=as;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_get_loaded_fonts'](n,this[aN(0xaf)]);var h=i()[aN(0xbf)](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=bt(h,l)[aN(0xbd)]();return r['__wbindgen_export4'](h,l*0x4,0x4),m;}finally{r[aN(0xe4)](0x10);}}[as(0xf3)](n){const aO=as;let v,x;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r[aO(0xc0)],r['__wbindgen_export2']),a5=w;r['typstcompiler_get_ast'](a3,this['__wbg_ptr'],a4,a5);var z=i()[aO(0xbf)](a3+0x4*0x0,!0x0),O=i()['getInt32'](a3+0x4*0x1,!0x0),T=i()['getInt32'](a3+0x4*0x2,!0x0),a0=i()[aO(0xbf)](a3+0x4*0x3,!0x0),a1=z,a2=O;if(a0)throw a1=0x0,a2=0x0,b(T);return v=a1,x=a2,I(a1,a2);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r[aO(0xf1)](v,x,0x1);}}['get_semantic_token_legend'](){const aP=as;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_get_semantic_token_legend'](n,this['__wbg_ptr']);var h=i()[aP(0xbf)](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_semantic_tokens'](n,x,z){const aQ=as;try{const a5=r['__wbindgen_add_to_stack_pointer'](-0x10),a6=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a7=w;var O=p(x)?0x0:f(x,r['__wbindgen_export'],r['__wbindgen_export2']),T=w,a0=p(z)?0x0:f(z,r['__wbindgen_export'],r['__wbindgen_export2']),a1=w;r['typstcompiler_get_semantic_tokens'](a5,this[aQ(0xaf)],a6,a7,O,T,a0,a1);var a2=i()['getInt32'](a5+0x4*0x0,!0x0),a3=i()['getInt32'](a5+0x4*0x1,!0x0),a4=i()['getInt32'](a5+0x4*0x2,!0x0);if(a4)throw b(a3);return b(a2);}finally{r[aQ(0xe4)](0x10);}}['snapshot'](n,x,z){const aR=as;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var O=p(n)?0x0:f(n,r['__wbindgen_export'],r['__wbindgen_export2']),T=w,a0=p(x)?0x0:f(x,r['__wbindgen_export'],r['__wbindgen_export2']),a1=w,a2=p(z)?0x0:L(z,r['__wbindgen_export']),a3=w;r['typstcompiler_snapshot'](a7,this['__wbg_ptr'],O,T,a0,a1,a2,a3);var a4=i()[aR(0xbf)](a7+0x4*0x0,!0x0),a5=i()['getInt32'](a7+0x4*0x1,!0x0),a6=i()[aR(0xbf)](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return C['__wrap'](a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_artifact'](h,l){const aS=as;try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10),y=f(h,r[aS(0xc0)],r['__wbindgen_export2']),z=w;r['typstcompiler_get_artifact'](x,this['__wbg_ptr'],y,z,l);var m=i()['getInt32'](x+0x4*0x0,!0x0),n=i()['getInt32'](x+0x4*0x1,!0x0),v=i()['getInt32'](x+0x4*0x2,!0x0);if(v)throw b(n);return b(m);}finally{r[aS(0xe4)](0x10);}}['compile'](n,z,O,T){const aT=as;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var a0=p(n)?0x0:f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a1=w,a2=p(z)?0x0:L(z,r[aT(0xc0)]),a3=w;const a8=f(O,r['__wbindgen_export'],r['__wbindgen_export2']),a9=w;r['typstcompiler_compile'](a7,this['__wbg_ptr'],a0,a1,a2,a3,a8,a9,T);var a4=i()['getInt32'](a7+0x4*0x0,!0x0),a5=i()['getInt32'](a7+0x4*0x1,!0x0),a6=i()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return b(a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['query'](n,a0,a1,a2){const aU=as;let a3,a4;try{const af=r['__wbindgen_add_to_stack_pointer'](-0x10),ag=f(n,r[aU(0xc0)],r['__wbindgen_export2']),ah=w;var a5=p(a0)?0x0:L(a0,r['__wbindgen_export']),a6=w;const ai=f(a1,r['__wbindgen_export'],r[aU(0xe7)]),aj=w;var a7=p(a2)?0x0:f(a2,r[aU(0xc0)],r['__wbindgen_export2']),a8=w;r['typstcompiler_query'](af,this['__wbg_ptr'],ag,ah,a5,a6,ai,aj,a7,a8);var a9=i()['getInt32'](af+0x4*0x0,!0x0),aa=i()['getInt32'](af+0x4*0x1,!0x0),ab=i()[aU(0xbf)](af+0x4*0x2,!0x0),ac=i()['getInt32'](af+0x4*0x3,!0x0),ad=a9,ae=aa;if(ac)throw ad=0x0,ae=0x0,b(ab);return a3=ad,a4=ae,I(ad,ae);}finally{r[aU(0xe4)](0x10),r['__wbindgen_export4'](a3,a4,0x1);}}['create_incr_server'](){const aV=as;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_create_incr_server'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()[aV(0xbf)](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return A['__wrap'](h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['incr_compile'](n,v,x,z){const aW=as;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a5=w;var O=p(v)?0x0:L(v,r['__wbindgen_export']),T=w;$(x,A),r['typstcompiler_incr_compile'](a3,this[aW(0xaf)],a4,a5,O,T,x['__wbg_ptr'],z);var a0=i()['getInt32'](a3+0x4*0x0,!0x0),a1=i()['getInt32'](a3+0x4*0x1,!0x0),a2=i()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw b(a1);return b(a0);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(D['prototype'][Symbol['dispose']]=D['prototype'][as(0xd4)]);class tt{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}[as(0xd4)](){const e=this['__destroy_into_raw']();r['__wbg_typstcompilerbuilder_free'](e,0x0);}constructor(){try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompilerbuilder_new'](n);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,K['register'](this,this['__wbg_ptr'],this),this;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[as(0xe8)](){const aX=as;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r[aX(0xbc)](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_access_model'](h,l,m,n,u){const v=r['typstcompilerbuilder_set_access_model'](this['__wbg_ptr'],g(h),g(l),g(m),g(n),g(u));return b(v);}['set_package_registry'](h,l){const aY=as,m=r[aY(0xb4)](this['__wbg_ptr'],g(h),g(l));return b(m);}['add_raw_font'](h){const l=r['typstcompilerbuilder_add_raw_font'](this['__wbg_ptr'],g(h));return b(l);}['add_lazy_font'](h,l){const aZ=as,m=r['typstcompilerbuilder_add_lazy_font'](this[aZ(0xaf)],g(h),g(l));return b(m);}[as(0xf5)](){const h=this['__destroy_into_raw'](),l=r['typstcompilerbuilder_build'](h);return b(l);}}Symbol['dispose']&&(tt[as(0xcb)][Symbol['dispose']]=tt[as(0xcb)]['free']);class j{static['__wrap'](h){h=h>>>0x0;const l=Object['create'](j['prototype']);return l['__wbg_ptr']=h,Q['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Q['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolver_free'](e,0x0);}}Symbol[as(0xbb)]&&(j['prototype'][Symbol[as(0xbb)]]=j['prototype']['free']);class et{[as(0xfa)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Z['unregister'](this),e;}[as(0xd4)](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolverbuilder_free'](e,0x0);}constructor(){try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_new'](n);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,Z['register'](this,this['__wbg_ptr'],this),this;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_font_info'](h){const b0=as;try{const s=r[b0(0xe4)](-0x10);r['typstfontresolverbuilder_get_font_info'](s,this['__wbg_ptr'],g(h));var l=i()['getInt32'](s+0x4*0x0,!0x0),m=i()[b0(0xbf)](s+0x4*0x1,!0x0),n=i()['getInt32'](s+0x4*0x2,!0x0);if(n)throw b(m);return b(l);}finally{r[b0(0xe4)](0x10);}}['add_raw_font'](h){const b1=as;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_add_raw_font'](n,this[b1(0xaf)],g(h));var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()[b1(0xbf)](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['add_lazy_font'](h,l){const b2=as;try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r[b2(0xe6)](s,this['__wbg_ptr'],g(h),g(l));var m=i()[b2(0xbf)](s+0x4*0x0,!0x0),n=i()['getInt32'](s+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[as(0xf5)](){const b3=as,h=this[b3(0xfa)](),l=r['typstfontresolverbuilder_build'](h);return b(l);}}Symbol['dispose']&&(et[as(0xcb)][Symbol['dispose']]=et['prototype']['free']);function Ft(e){const h=r['get_font_info'](g(e));return b(h);}function d(a,b){a=a-0xad;const e=c();let f=e[a];return f;}const ht=new Set(['basic','cors','default']);async function mt(h,l){const b4=as;if(typeof Response=='function'&&h instanceof Response){if(typeof WebAssembly['instantiateStreaming']==b4(0xdb))try{return await WebAssembly['instantiateStreaming'](h,l);}catch(o){if(h['ok']&&ht['has'](h['type'])&&h[b4(0xd2)]['get']('Content-Type')!=='application/wasm')console[b4(0xe1)]('`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a',o);else throw o;}const m=await h['arrayBuffer']();return await WebAssembly['instantiate'](m,l);}else{const s=await WebAssembly['instantiate'](h,l);return s instanceof WebAssembly['Instance']?{'instance':s,'module':h}:s;}}function rt(){const b5=as,e={};return e[b5(0xd8)]={},e['wbg']['__wbg_Error_52673b7de5a0ca89']=function(h,l){const m=Error(I(h,l));return g(m);},e['wbg']['__wbg_Number_2d1dcfcf4ec51736']=function(h){return Number(a(h));},e['wbg'][b5(0xdf)]=function(h,l){const b6=b5,m=a(l),s=typeof m==b6(0xb9)?m:void 0x0;i()['setBigInt64'](h+0x8*0x1,p(s)?BigInt(0x0):s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e['wbg']['__wbg___wbindgen_boolean_get_dea25b33882b895b']=function(h){const l=a(h),m=typeof l=='boolean'?l:void 0x0;return p(m)?0xffffff:m?0x1:0x0;},e['wbg'][b5(0xe9)]=function(h,l){const b7=b5,m=V(a(l)),s=f(m,r[b7(0xc0)],r['__wbindgen_export2']),u=w;i()[b7(0xb8)](h+0x4*0x1,u,!0x0),i()['setInt32'](h+0x4*0x0,s,!0x0);},e['wbg'][b5(0xcd)]=function(h,l){return a(h)in a(l);},e['wbg']['__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27']=function(h){return typeof a(h)=='bigint';},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(h){return typeof a(h)=='function';},e['wbg']['__wbg___wbindgen_is_object_ce774f3490692386']=function(h){const l=a(h);return typeof l=='object'&&l!==null;},e['wbg'][b5(0xb1)]=function(h){return typeof a(h)=='string';},e[b5(0xd8)]['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(h){return a(h)===void 0x0;},e['wbg']['__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36']=function(h,l){return a(h)===a(l);},e['wbg']['__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d']=function(h,l){return a(h)==a(l);},e[b5(0xd8)]['__wbg___wbindgen_number_get_9619185a74197f95']=function(h,l){const m=a(l),s=typeof m=='number'?m:void 0x0;i()['setFloat64'](h+0x8*0x1,p(s)?0x0:s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e[b5(0xd8)]['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(h,l){const b8=b5,m=a(l),u=typeof m=='string'?m:void 0x0;var v=p(u)?0x0:f(u,r['__wbindgen_export'],r['__wbindgen_export2']),x=w;i()['setInt32'](h+0x4*0x1,x,!0x0),i()[b8(0xb8)](h+0x4*0x0,v,!0x0);},e['wbg']['__wbg___wbindgen_throw_dd24417ed36fc46e']=function(h,l){throw new Error(I(h,l));},e['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(h){const b9=b5;a(h)[b9(0xf8)]();},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return S(function(h,l,m){const s=a(h)['call'](a(l),a(m));return g(s);},arguments);},e[b5(0xd8)]['__wbg_call_78f94eb02ec7f9b2']=function(){return S(function(h,l,m,u,v){const ba=d,x=a(h)[ba(0xae)](a(l),a(m),a(u),a(v));return g(x);},arguments);},e[b5(0xd8)][b5(0xb6)]=function(){return S(function(h,l){const m=a(h)['call'](a(l));return g(m);},arguments);},e[b5(0xd8)]['__wbg_done_62ea16af4ce34b24']=function(h){return a(h)['done'];},e[b5(0xd8)]['__wbg_entries_83c79938054e065f']=function(h){const l=Object['entries'](a(h));return g(l);},e[b5(0xd8)]['__wbg_error_7534b8e9a36f1ab4']=function(h,l){const bb=b5;let m,s;try{m=h,s=l,console['error'](I(h,l));}finally{r[bb(0xf1)](m,s,0x1);}},e['wbg']['__wbg_error_85faeb8919b11cc6']=function(h,l,m){const bc=b5;console[bc(0xd5)](a(h),a(l),a(m));},e['wbg'][b5(0xc2)]=function(h){return a(h)['getTimezoneOffset']();},e['wbg']['__wbg_get_6b7bd52aca3f9671']=function(h,l){const m=a(h)[l>>>0x0];return g(m);},e['wbg']['__wbg_get_af9dab7e9603ea93']=function(){return S(function(h,l){const m=Reflect['get'](a(h),a(l));return g(m);},arguments);},e['wbg']['__wbg_get_with_ref_key_1dc361bd10053bfe']=function(h,l){const m=a(h)[a(l)];return g(m);},e['wbg'][b5(0xd1)]=function(h){console['info'](a(h));},e['wbg']['__wbg_instanceof_ArrayBuffer_f3320d2419cd0355']=function(h){let l;try{l=a(h)instanceof ArrayBuffer;}catch{l=!0x1;}return l;},e['wbg']['__wbg_instanceof_Map_084be8da74364158']=function(h){let l;try{l=a(h)instanceof Map;}catch{l=!0x1;}return l;},e['wbg']['__wbg_instanceof_Uint8Array_da54ccc9d3e09434']=function(h){let l;try{l=a(h)instanceof Uint8Array;}catch{l=!0x1;}return l;},e['wbg']['__wbg_isArray_51fd9e6422c0a395']=function(h){return Array['isArray'](a(h));},e['wbg']['__wbg_isSafeInteger_ae7d3f054d55fa16']=function(h){return Number['isSafeInteger'](a(h));},e['wbg']['__wbg_iterator_27b7c8b35ab3e86b']=function(){const bd=b5;return g(Symbol[bd(0xbe)]);},e['wbg'][b5(0xc7)]=function(h){return a(h)['length'];},e['wbg']['__wbg_length_d45040a40c570362']=function(h){return a(h)['length'];},e['wbg']['__wbg_new_1ba21ce319a06297']=function(){const h=new Object();return g(h);},e['wbg'][b5(0xdc)]=function(){const h=new Array();return g(h);},e['wbg']['__wbg_new_6421f6084cc5bc5a']=function(h){const l=new Uint8Array(a(h));return g(l);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){const h=new Error();return g(h);},e['wbg'][b5(0xad)]=function(h){const l=new Date(a(h));return g(l);},e['wbg'][b5(0xea)]=function(h,l){const m=new Error(I(h,l));return g(m);},e['wbg']['__wbg_new_ff12d2b041fb48f1']=function(h,l){try{var m={'a':h,'b':l},s=(v,x)=>{const y=m['a'];m['a']=0x0;try{return yt(y,m['b'],v,x);}finally{m['a']=y;}};const u=new Promise(s);return g(u);}finally{m['a']=m['b']=0x0;}},e['wbg']['__wbg_new_from_slice_db0691b69e9d3891']=function(h,l){const m=new Uint32Array(ut(h,l));return g(m);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(h,l){const m=new Uint8Array(J(h,l));return g(m);},e['wbg']['__wbg_new_no_args_cb138f77cf6151ee']=function(h,l){const m=new Function(I(h,l));return g(m);},e['wbg']['__wbg_new_with_args_df9e7125ffe55248']=function(h,l,m,s){const u=new Function(I(h,l),I(m,s));return g(u);},e['wbg']['__wbg_next_138a17bbf04e926c']=function(h){const l=a(h)['next'];return g(l);},e[b5(0xd8)]['__wbg_next_3cfe5c0fe2a4cc53']=function(){return S(function(h){const be=d,l=a(h)[be(0xc4)]();return g(l);},arguments);},e[b5(0xd8)]['__wbg_now_69d776cd24f5215b']=function(){return Date['now']();},e['wbg']['__wbg_prototypesetcall_dfe9b766cdc1f1fd']=function(h,l,m){const bf=b5;Uint8Array[bf(0xcb)]['set'][bf(0xae)](J(h,l),a(m));},e[b5(0xd8)]['__wbg_proxycontext_new']=function(h){const l=B['__wrap'](h);return g(l);},e[b5(0xd8)]['__wbg_push_7d9be8f38fc13975']=function(h,l){return a(h)['push'](a(l));},e['wbg']['__wbg_queueMicrotask_9b549dfce8865860']=function(h){const l=a(h)['queueMicrotask'];return g(l);},e['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(h){queueMicrotask(a(h));},e[b5(0xd8)]['__wbg_resolve_fd5bfbaa4ce36e1e']=function(h){const l=Promise['resolve'](a(h));return g(l);},e['wbg']['__wbg_set_3f1d0b984ed272ed']=function(h,l,m){a(h)[b(l)]=b(m);},e['wbg']['__wbg_set_781438a03c0c3c81']=function(){return S(function(h,l,m){return Reflect['set'](a(h),a(l),a(m));},arguments);},e['wbg']['__wbg_set_7df433eea03a5c14']=function(h,l,m){a(h)[l>>>0x0]=b(m);},e['wbg']['__wbg_stack_0ed75d68575b0f3c']=function(h,l){const bg=b5,m=a(l)['stack'],s=f(m,r['__wbindgen_export'],r['__wbindgen_export2']),u=w;i()[bg(0xb8)](h+0x4*0x1,u,!0x0),i()[bg(0xb8)](h+0x4*0x0,s,!0x0);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){const h=typeof global>'u'?null:global;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1']=function(){const h=typeof globalThis>'u'?null:globalThis;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){const h=typeof self>'u'?null:self;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){const h=typeof window>'u'?null:window;return p(h)?0x0:g(h);},e['wbg'][b5(0xeb)]=function(h,l){const m=a(h)['then'](a(l));return g(m);},e['wbg']['__wbg_typstcompiler_new']=function(h){const l=D['__wrap'](h);return g(l);},e['wbg']['__wbg_typstfontresolver_new']=function(h){const l=j['__wrap'](h);return g(l);},e['wbg']['__wbg_value_57b7b035e117f7ee']=function(h){const l=a(h)['value'];return g(l);},e['wbg'][b5(0xdd)]=function(h,l){const m=I(h,l);return g(m);},e['wbg']['__wbindgen_cast_3334ea73b4b28ba3']=function(h,l){const m=dt(h,l,r['__wasm_bindgen_func_elem_957'],lt);return g(m);},e[b5(0xd8)][b5(0xd0)]=function(h){const l=BigInt['asUintN'](0x40,h);return g(l);},e['wbg']['__wbindgen_cast_9ae0607507abb057']=function(h){return g(h);},e['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(h){return g(h);},e['wbg']['__wbindgen_object_clone_ref']=function(h){const l=a(h);return g(l);},e['wbg'][b5(0xf9)]=function(h){b(h);},e;}function _t(e,h){const bh=as;return r=e[bh(0xc1)],vt['__wbindgen_wasm_module']=h,F=null,E=null,M=null,r;}function At(h){const bi=as;if(r!==void 0x0)return r;typeof h<'u'&&(Object['getPrototypeOf'](h)===Object['prototype']?{module:h}=h:console[bi(0xe1)]('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));const l=rt();h instanceof WebAssembly[bi(0xf7)]||(h=new WebAssembly['Module'](h));const m=new WebAssembly[(bi(0xe5))](h,l);return _t(m,h);}async function vt(h){if(r!==void 0x0)return r;typeof h<'u'&&(Object['getPrototypeOf'](h)===Object['prototype']?{module_or_path:h}=h:console['warn']('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),typeof h>'u'&&(h=ot('typst_ts_web_compiler_bg.wasm',import.meta.url));const l=rt();(typeof h=='string'||typeof Request=='function'&&h instanceof Request||typeof URL=='function'&&h instanceof URL)&&(h=fetch(h));const {instance:m,module:o}=await mt(await h,l);return _t(m,o);}let ot=async function(e,h){const bj=as;throw new Error(bj(0xe0)+e+'\x20'+h);};function It(e){ot=e;}let xt=async function(h,l){const m=new Function('m','return\x20import(m)'),{readFileSync:s}=await m('fs'),u=new URL(h,l);return await s(u)['buffer'];};const kt=typeof process<'u'&&process['versions']!=null&&process['versions']['node']!=null;kt&&It(xt);export{A as IncrServer,B as ProxyContext,C as TypstCompileWorld,D as TypstCompiler,tt as TypstCompilerBuilder,j as TypstFontResolver,et as TypstFontResolverBuilder,vt as default,Ft as get_font_info,At as initSync,It as setImportWasmModule};
@@ -1 +1 @@
1
- function b(c,d){c=c-0xc4;var e=a();var f=e[c];return f;}function a(){var k=['1368xaGcNl','925860OsVFkI','263585BdJbpj','3424nnSYCY','3157DdnXul','5hsuobd','worker','654790hrXNqK','2587029TFjNYg','27XlYAHZ','8oBXWSK','999450bxudrL','18073BiqNaL'];a=function(){return k;};return a();}var i=b;(function(c,d){var h=b,e=c();while(!![]){try{var f=-parseInt(h(0xcc))/0x1+-parseInt(h(0xcb))/0x2+-parseInt(h(0xc5))/0x3*(-parseInt(h(0xc7))/0x4)+parseInt(h(0xcf))/0x5*(parseInt(h(0xc8))/0x6)+-parseInt(h(0xce))/0x7*(parseInt(h(0xcd))/0x8)+-parseInt(h(0xc6))/0x9*(parseInt(h(0xc4))/0xa)+-parseInt(h(0xc9))/0xb*(-parseInt(h(0xca))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xeb017));class o{[i(0xd0)]=null;constructor(c){var j=i;this[j(0xd0)]=c;}['defaults'](c){return this['worker']||c();}}function l(c,d=!0x1){return new o(null);}export{l as r};
1
+ var i=b;function a(){var k=['808086RYEkCq','4919493mWGtIm','280fVjTxy','207783OtYAOJ','defaults','10610tJiUUb','5414492JhhQLo','worker','35vMZnnJ','18227HnJsuS','5274765SlDbiG','2NHJMwe','408749KGoTCv'];a=function(){return k;};return a();}(function(c,d){var h=b,e=c();while(!![]){try{var f=parseInt(h(0xf2))/0x1+-parseInt(h(0xf1))/0x2*(parseInt(h(0xf4))/0x3)+parseInt(h(0xec))/0x4+parseInt(h(0xf0))/0x5+parseInt(h(0xf3))/0x6*(parseInt(h(0xee))/0x7)+-parseInt(h(0xf5))/0x8*(-parseInt(h(0xf6))/0x9)+-parseInt(h(0xeb))/0xa*(parseInt(h(0xef))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xdbf03));function b(c,d){c=c-0xeb;var e=a();var f=e[c];return f;}class o{['worker']=null;constructor(c){this['worker']=c;}[i(0xf7)](c){var j=i;return this[j(0xed)]||c();}}function l(c,d=!0x1){return new o(null);}export{l as r};