@postnzt/docx-js-editor 0.0.33

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 (117) hide show
  1. package/dist/ClipboardManager-C0rTRkVQ.d.ts +464 -0
  2. package/dist/ClipboardManager-CgpKW2At.d.mts +464 -0
  3. package/dist/DocumentAgent-BqA9EJ3F.d.mts +442 -0
  4. package/dist/DocumentAgent-CRCXiBT7.d.ts +442 -0
  5. package/dist/FindReplaceDialog-KNJETYJX.js +1 -0
  6. package/dist/FindReplaceDialog-YW3R4FHM.mjs +1 -0
  7. package/dist/FootnotePropertiesDialog-452A4UT5.js +1 -0
  8. package/dist/FootnotePropertiesDialog-H24AC5XK.mjs +1 -0
  9. package/dist/HyperlinkDialog-GBAYMTUE.js +1 -0
  10. package/dist/HyperlinkDialog-HNYTXDCB.mjs +1 -0
  11. package/dist/ImagePositionDialog-B4RLP2W5.mjs +1 -0
  12. package/dist/ImagePositionDialog-M65BYQQE.js +1 -0
  13. package/dist/ImagePropertiesDialog-JOGW3WDU.mjs +1 -0
  14. package/dist/ImagePropertiesDialog-O4WQSF5M.js +1 -0
  15. package/dist/PageSetupDialog-2GIBTKMJ.js +1 -0
  16. package/dist/PageSetupDialog-Q7SHEZIJ.mjs +1 -0
  17. package/dist/TablePropertiesDialog-LMXWX3FI.mjs +1 -0
  18. package/dist/TablePropertiesDialog-WOZ4ES3H.js +1 -0
  19. package/dist/agentApi-BVHzyk2l.d.mts +2239 -0
  20. package/dist/agentApi-BVHzyk2l.d.ts +2239 -0
  21. package/dist/chunk-2HDYCD2Q.mjs +1 -0
  22. package/dist/chunk-377ZVTSE.js +2 -0
  23. package/dist/chunk-37SLIJPH.mjs +58 -0
  24. package/dist/chunk-4VUZBV2S.js +1 -0
  25. package/dist/chunk-6WPRCJ5A.mjs +1 -0
  26. package/dist/chunk-7MGFEP2R.mjs +26 -0
  27. package/dist/chunk-7QTNB64A.mjs +9 -0
  28. package/dist/chunk-AARNCPWR.js +1 -0
  29. package/dist/chunk-AU5NVRHP.js +2 -0
  30. package/dist/chunk-BP3V2HDD.js +261 -0
  31. package/dist/chunk-BUEMG4NW.js +1 -0
  32. package/dist/chunk-DC65PJYE.js +4 -0
  33. package/dist/chunk-DLVLK5FT.mjs +24 -0
  34. package/dist/chunk-EV3CM6TU.js +1 -0
  35. package/dist/chunk-FVUGBRDD.js +1 -0
  36. package/dist/chunk-GZOCOWWB.mjs +2 -0
  37. package/dist/chunk-H5NTJZO4.js +1 -0
  38. package/dist/chunk-IFPN3NT3.js +3 -0
  39. package/dist/chunk-KCOGY3V2.js +10 -0
  40. package/dist/chunk-KUL2SDYC.js +26 -0
  41. package/dist/chunk-LFZXSNOF.mjs +261 -0
  42. package/dist/chunk-LYBG4YI7.mjs +1 -0
  43. package/dist/chunk-M5F4SK3W.mjs +1 -0
  44. package/dist/chunk-P7WEP4JU.js +9 -0
  45. package/dist/chunk-PB7VMDDP.js +24 -0
  46. package/dist/chunk-QAZ4233N.mjs +1 -0
  47. package/dist/chunk-QSUPYUOP.js +2 -0
  48. package/dist/chunk-QTSXJRP6.mjs +1 -0
  49. package/dist/chunk-QVPR2W5S.js +1 -0
  50. package/dist/chunk-RTFUE3KK.mjs +10 -0
  51. package/dist/chunk-SCYTWBF5.mjs +111 -0
  52. package/dist/chunk-SE5EN2QL.js +1 -0
  53. package/dist/chunk-T6X4C2QO.js +111 -0
  54. package/dist/chunk-TAUMSKRE.mjs +1 -0
  55. package/dist/chunk-W53SI3XW.mjs +1 -0
  56. package/dist/chunk-WOHFANC5.mjs +3 -0
  57. package/dist/chunk-X5A54T6S.mjs +4 -0
  58. package/dist/chunk-YKBSKEBS.mjs +2 -0
  59. package/dist/chunk-Z26WOH6R.mjs +2 -0
  60. package/dist/chunk-ZJNGMDRE.js +58 -0
  61. package/dist/clipboard-Cu80iVDh.d.ts +1181 -0
  62. package/dist/clipboard-dFROLI95.d.mts +1181 -0
  63. package/dist/colorResolver-BwI_Uxp3.d.mts +662 -0
  64. package/dist/colorResolver-Dlmk3itT.d.ts +662 -0
  65. package/dist/core-plugins-reexport.d.mts +31 -0
  66. package/dist/core-plugins-reexport.d.ts +31 -0
  67. package/dist/core-plugins-reexport.js +1 -0
  68. package/dist/core-plugins-reexport.mjs +1 -0
  69. package/dist/core-reexport.d.mts +309 -0
  70. package/dist/core-reexport.d.ts +309 -0
  71. package/dist/core-reexport.js +1 -0
  72. package/dist/core-reexport.mjs +1 -0
  73. package/dist/executor-L2MVKMXO.js +1 -0
  74. package/dist/executor-XKBCCVNY.mjs +1 -0
  75. package/dist/fontLoader-BI9ZoACv.d.ts +176 -0
  76. package/dist/fontLoader-DicgJidU.d.mts +176 -0
  77. package/dist/headless-reexport.d.mts +195 -0
  78. package/dist/headless-reexport.d.ts +195 -0
  79. package/dist/headless-reexport.js +4 -0
  80. package/dist/headless-reexport.mjs +4 -0
  81. package/dist/index.css +1 -0
  82. package/dist/index.d.mts +480 -0
  83. package/dist/index.d.ts +480 -0
  84. package/dist/index.js +112 -0
  85. package/dist/index.mjs +112 -0
  86. package/dist/lib-BCT2DRYI.mjs +1 -0
  87. package/dist/lib-U35UU4OU.js +1 -0
  88. package/dist/mcp-reexport.d.mts +156 -0
  89. package/dist/mcp-reexport.d.ts +156 -0
  90. package/dist/mcp-reexport.js +16 -0
  91. package/dist/mcp-reexport.mjs +16 -0
  92. package/dist/processTemplate-5ZST2Q5L.js +1 -0
  93. package/dist/processTemplate-LRHXOWMZ.mjs +1 -0
  94. package/dist/react-Cl2n0F5S.d.ts +1091 -0
  95. package/dist/react-DZlAKNXg.d.mts +1091 -0
  96. package/dist/react.css +1 -0
  97. package/dist/react.d.mts +10 -0
  98. package/dist/react.d.ts +10 -0
  99. package/dist/react.js +1 -0
  100. package/dist/react.mjs +1 -0
  101. package/dist/registry-D4FQ9aKX.d.mts +165 -0
  102. package/dist/registry-DrYyUXQr.d.ts +165 -0
  103. package/dist/selectionRects-DEX5THEG.js +1 -0
  104. package/dist/selectionRects-SQTAHMCH.mjs +1 -0
  105. package/dist/styles.css +1 -0
  106. package/dist/types-B3LkfO0u.d.mts +310 -0
  107. package/dist/types-igZ1x_e4.d.ts +310 -0
  108. package/dist/ui.d.mts +2005 -0
  109. package/dist/ui.d.ts +2005 -0
  110. package/dist/ui.js +1 -0
  111. package/dist/ui.mjs +1 -0
  112. package/dist/variableDetector-CIqTek7A.d.mts +204 -0
  113. package/dist/variableDetector-CkYvLv62.d.ts +204 -0
  114. package/i18n/de.json +745 -0
  115. package/i18n/en.json +745 -0
  116. package/i18n/pl.json +745 -0
  117. package/package.json +127 -0
@@ -0,0 +1 @@
1
+ 'use strict';function ee(e,t,r,n){let a=e-t-r,o=(n.count-1)*n.gap;return (a-o)/n.count}function te(e){let{pageSize:t,margins:r}=e,n=e.columns??{count:1,gap:0},a=[],o=[],c=r.top,i=t.h-r.bottom;if(i-c<=0)throw new Error("Paginator: page size and margins yield no content area");let u=ee(t.w,r.left,r.right,n),g=c;function l(p){return r.left+p*(u+n.gap)}function m(){let p=a.length+1,S=e.footnoteReservedHeights?.get(p)??0,I=i-S,T={number:p,fragments:[],margins:{...r},size:{...t},footnoteReservedHeight:S>0?S:void 0,columns:n.count>1?{...n}:void 0},M={page:T,cursorY:c,columnIndex:0,topMargin:c,contentBottom:I,trailingSpacing:0};return a.push(T),o.push(M),g=c,e.onNewPage&&e.onNewPage(M),M}function f(){return o.length===0?m():o[o.length-1]}function x(p){return p.contentBottom-p.cursorY}function d(p,S){let I=S||f();return x(I)>=p}function b(p){return p.columnIndex<n.count-1?(p.columnIndex+=1,p.cursorY=g,p.trailingSpacing=0,p):m()}function h(p){let S=f(),I=Number.isFinite(p)&&p>0?p:0,T=S.contentBottom-S.topMargin;if(I>T)return S.cursorY!==S.topMargin&&(S=b(S)),S;for(;!d(I,S);)S=b(S);return S}function k(p,S,I=0,T=0){let M=Math.max(I,f().trailingSpacing),C=M+S,R=h(C),E=R.cursorY===R.topMargin?0:M,L=l(R.columnIndex),F=R.cursorY+E;return p.x=L,p.y=F,R.page.fragments.push(p),R.cursorY=F+S,R.trailingSpacing=T,{state:R,x:L,y:F}}function y(){return m()}function B(){let p=f();return b(p)}function w(p){n=p,u=ee(t.w,r.left,r.right,n);let S=f();S.page.columns=n.count>1?{...n}:void 0,g=S.cursorY,S.columnIndex=0;}return {pages:a,states:o,get columnWidth(){return u},get columns(){return {...n}},getCurrentState:f,getAvailableHeight:()=>x(f()),fits:p=>d(p),ensureFits:h,addFragment:k,forcePageBreak:y,forceColumnBreak:B,getColumnX:l,updateColumns:w}}function ne(e){let t=new Map,r=new Set;for(let n=0;n<e.length;n++){if(r.has(n))continue;let a=e[n];if(a.kind!=="paragraph"||!a.attrs?.keepNext)continue;let c=[n],i=n;for(let g=n+1;g<e.length;g++){let l=e[g];if(l.kind==="sectionBreak"||l.kind==="pageBreak"||l.kind==="columnBreak"||l.kind!=="paragraph")break;if(l.attrs?.keepNext)c.push(g),i=g,r.add(g);else break}let s=i+1,u=-1;if(s<e.length){let g=e[s];g.kind!=="sectionBreak"&&g.kind!=="pageBreak"&&g.kind!=="columnBreak"&&(u=s);}t.set(n,{startIndex:n,endIndex:i,memberIndices:c,anchorIndex:u});}return t}function re(e,t,r){let n=0;for(let a of e.memberIndices){let o=t[a],c=r[a];if(o.kind!=="paragraph"||c.kind!=="paragraph")continue;let i=o,s=c,u=i.attrs?.spacing?.before??0;n+=u,n+=s.totalHeight;let g=i.attrs?.spacing?.after??0;n+=g;}if(e.anchorIndex!==-1){let a=r[e.anchorIndex];if(a?.kind==="paragraph"){let o=a;o.lines.length>0&&(n+=o.lines[0].lineHeight);}}return n}function oe(e){let t=new Set;for(let r of e.values())for(let n=1;n<r.memberIndices.length;n++)t.add(r.memberIndices[n]);return t}function ae(e){return e.kind!=="paragraph"?false:e.attrs?.pageBreakBefore===true}var Ue={top:4,bottom:4,left:7,right:7},je=200;var Fe={w:816,h:1056},O={top:96,right:96,bottom:96,left:96};function ie(e){return e.attrs?.spacing?.before??0}function se(e){return e.attrs?.spacing?.after??0}function Be(e){for(let t=0;t<e.length-1;t++){let r=e[t],n=e[t+1];if(r.kind!=="paragraph"||n.kind!=="paragraph")continue;let a=r.attrs,o=n.attrs;a?.contextualSpacing&&o?.contextualSpacing&&a.styleId&&a.styleId===o.styleId&&(a.spacing&&(a.spacing={...a.spacing,after:0}),o.spacing&&(o.spacing={...o.spacing,before:0}));}}function Je(e,t,r={}){if(e.length!==t.length)throw new Error(`layoutDocument: expected one measure per block (blocks=${e.length}, measures=${t.length})`);let n=r.pageSize??Fe,a={top:r.margins?.top??O.top,right:r.margins?.right??O.right,bottom:r.margins?.bottom??O.bottom,left:r.margins?.left??O.left,header:r.margins?.header??r.margins?.top??O.top,footer:r.margins?.footer??r.margins?.bottom??O.bottom};r.headerContentHeights,r.footerContentHeights,r.titlePage,r.evenAndOddHeaders;let o={...a},c=n.w-o.left-o.right;if(c<=0)throw new Error("layoutDocument: page size and margins yield no content area");let i={count:1,gap:0},s=[],u=[];for(let d=0;d<e.length;d++)if(e[d].kind==="sectionBreak"){let b=e[d];s.push(b.columns??i),u.push(b.type);}s.push(r.columns??i),u.push(r.bodyBreakType);let g=s.length>0?s[0]:r.columns,l=te({pageSize:n,margins:o,columns:g,footnoteReservedHeights:r.footnoteReservedHeights});Be(e);let m=ne(e),f=oe(m),x=0;for(let d=0;d<e.length;d++){let b=e[d],h=t[d];ae(b)&&l.forcePageBreak();let k=m.get(d);if(k&&!f.has(d)){let y=re(k,e,t),B=l.getCurrentState(),w=l.getAvailableHeight(),p=B.contentBottom-B.topMargin;y<=p&&y>w&&B.page.fragments.length>0&&l.forcePageBreak();}switch(b.kind){case "paragraph":we(b,h,l,c);break;case "table":b.floating?Ie(b,h,l,c):Te(b,h,l);break;case "image":Me(b,h,l);break;case "textBox":Ce(b,h,l);break;case "pageBreak":l.forcePageBreak();break;case "columnBreak":l.forceColumnBreak();break;case "sectionBreak":{let y=u[x+1]??u[x];Le(b,l,s[x+1]??i,y),x++;break}}}return l.pages.length===0&&l.getCurrentState(),{pageSize:n,pages:l.pages,columns:r.columns,pageGap:r.pageGap}}function we(e,t,r,n){if(t.kind!=="paragraph")throw new Error("layoutParagraph: expected paragraph measure");let a=t.lines;if(a.length===0){let s=ie(e),u=se(e),g=r.getCurrentState(),l={kind:"paragraph",blockId:e.id,x:r.getColumnX(g.columnIndex),y:g.cursorY+s,width:n,height:0,fromLine:0,toLine:0,pmStart:e.pmStart,pmEnd:e.pmEnd};r.addFragment(l,0,s,u);return}let o=ie(e),c=se(e),i=0;for(;i<a.length;){let s=r.getCurrentState(),u=r.getAvailableHeight(),g=0,l=0;for(let k=i;k<a.length;k++){let y=a[k].lineHeight,B=g+y;if((i===0&&k===i?B+o:B)<=u||l===0)g=B,l++;else break}let m=i===0,f=i+l>=a.length,x=m?o:0,d=f?c:0,b={kind:"paragraph",blockId:e.id,x:r.getColumnX(s.columnIndex),y:0,width:n,height:g,fromLine:i,toLine:i+l,pmStart:e.pmStart,pmEnd:e.pmEnd,continuesFromPrev:!m,continuesOnNext:!f},h=r.addFragment(b,g,x,d);b.y=h.y,i+=l,i<a.length&&r.ensureFits(a[i].lineHeight);}}function Pe(e){let t=0;for(let r of e.rows)if(r.isHeader)t++;else break;return t}function Y(e,t){let r=0;for(let n=0;n<t&&n<e.rows.length;n++)r+=e.rows[n].height;return r}function Te(e,t,r){if(t.kind!=="table")throw new Error("layoutTable: expected table measure");let n=t.rows;if(n.length===0)return;let a=Pe(e),o=Y(t,a),c=0;for(;c<n.length;){let i=r.getCurrentState(),s=r.getAvailableHeight(),u=c===0,g=u?i.trailingSpacing:0,l=s-g,m=!u&&a>0?o:0,f=0,x=0;for(let B=c;B<n.length;B++){let w=n[B].height;if(f+w+m<=l||x===0)f+=w,x++;else break}let d=f+m,b=c+x>=n.length,h=r.getColumnX(i.columnIndex);e.justification==="center"?h=h+(r.columnWidth-t.totalWidth)/2:e.justification==="right"?h=h+r.columnWidth-t.totalWidth:e.indent&&(h+=e.indent);let k={kind:"table",blockId:e.id,x:h,y:0,width:t.totalWidth,height:d,fromRow:c,toRow:c+x,pmStart:e.pmStart,pmEnd:e.pmEnd,continuesFromPrev:!u,continuesOnNext:!b,headerRowCount:!u&&a>0?a:void 0},y=r.addFragment(k,d,0,0);if(k.y=y.y,k.x=h,c+=x,c<n.length){let B=n[c].height+(a>0?o:0);r.ensureFits(B);}}}function Ie(e,t,r,n){if(t.kind!=="table")throw new Error("layoutFloatingTable: expected table measure");let a=r.getCurrentState(),o=e.floating,c=a.page,i=c.margins,s=t.totalWidth,u=t.totalHeight,g=c.size.h-i.top-i.bottom,l=i.left,m=i.top;o?.horzAnchor==="page"&&(l=0),o?.vertAnchor==="page"&&(m=0);let f=r.getColumnX(a.columnIndex);if(o?.tblpX!==void 0)f=l+o.tblpX;else if(o?.tblpXSpec){let y=o.tblpXSpec;y==="left"||y==="inside"?f=l:y==="right"||y==="outside"?f=l+n-s:y==="center"&&(f=l+(n-s)/2);}else e.justification==="center"?f=l+(n-s)/2:e.justification==="right"&&(f=l+n-s);let x=a.cursorY,d=false;if(o?.tblpY!==void 0)x=m+o.tblpY,d=true;else if(o?.tblpYSpec){d=true;let y=o.tblpYSpec;y==="top"?x=m:y==="bottom"?x=m+g-u:y==="center"&&(x=m+(g-u)/2);}d||(x=r.ensureFits(u).cursorY);let b=i.left,h=i.left+n-s;Number.isFinite(h)&&(f=Math.max(b,Math.min(f,h)));let k={kind:"table",blockId:e.id,x:f,y:x,width:s,height:u,fromRow:0,toRow:e.rows.length,pmStart:e.pmStart,pmEnd:e.pmEnd,isFloating:true};a.page.fragments.push(k);}function Me(e,t,r){if(t.kind!=="image")throw new Error("layoutImage: expected image measure");if(e.anchor?.isAnchored){Re(e,t,r);return}let n=r.ensureFits(t.height),a={kind:"image",blockId:e.id,x:r.getColumnX(n.columnIndex),y:0,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd},o=r.addFragment(a,t.height,0,0);a.y=o.y;}function Re(e,t,r){let n=r.getCurrentState(),a=e.anchor,o=a.offsetH??r.getColumnX(n.columnIndex),c=a.offsetV??n.cursorY,i={kind:"image",blockId:e.id,x:o,y:c,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd,isAnchored:true,zIndex:a.behindDoc?-1:1};n.page.fragments.push(i);}function Ce(e,t,r){if(t.kind!=="textBox")throw new Error("layoutTextBox: expected textBox measure");let n=r.ensureFits(t.height),a={kind:"textBox",blockId:e.id,x:r.getColumnX(n.columnIndex),y:0,width:t.width,height:t.height,pmStart:e.pmStart,pmEnd:e.pmEnd},o=r.addFragment(a,t.height,0,0);a.y=o.y;}function Le(e,t,r,n){switch(n??"nextPage"){case "nextPage":t.forcePageBreak();break;case "evenPage":{t.forcePageBreak().page.number%2!==0&&t.forcePageBreak();break}case "oddPage":{t.forcePageBreak().page.number%2===0&&t.forcePageBreak();break}}t.updateColumns(r);}var He={calibri:{googleFont:"Carlito",category:"sans-serif",fallbackStack:["Calibri","Carlito","Arial","Helvetica","sans-serif"],singleLineRatio:1.2207},cambria:{googleFont:"Caladea",category:"serif",fallbackStack:["Cambria","Caladea","Georgia","serif"],singleLineRatio:1.2676},arial:{googleFont:"Arimo",category:"sans-serif",fallbackStack:["Arial","Arimo","Helvetica","sans-serif"],singleLineRatio:1.1172},"times new roman":{googleFont:"Tinos",category:"serif",fallbackStack:["Times New Roman","Tinos","Times","serif"],singleLineRatio:1.1074},"courier new":{googleFont:"Cousine",category:"monospace",fallbackStack:["Courier New","Cousine","Courier","monospace"],singleLineRatio:1.1328},georgia:{googleFont:"Tinos",category:"serif",fallbackStack:["Georgia","Tinos","Times New Roman","serif"],singleLineRatio:1.1362},verdana:{googleFont:"Open Sans",category:"sans-serif",fallbackStack:["Verdana","Open Sans","Arial","sans-serif"],singleLineRatio:1.2153},tahoma:{googleFont:"Open Sans",category:"sans-serif",fallbackStack:["Tahoma","Open Sans","Arial","sans-serif"],singleLineRatio:1.2075},"trebuchet ms":{googleFont:"Fira Sans",category:"sans-serif",fallbackStack:["Trebuchet MS","Fira Sans","Arial","sans-serif"],singleLineRatio:1.1431},"comic sans ms":{googleFont:"Comic Neue",category:"cursive",fallbackStack:["Comic Sans MS","Comic Neue","cursive"],singleLineRatio:1.3936},impact:{googleFont:"Anton",category:"sans-serif",fallbackStack:["Impact","Anton","Arial Black","sans-serif"],singleLineRatio:1.2197},"palatino linotype":{googleFont:"EB Garamond",category:"serif",fallbackStack:["Palatino Linotype","EB Garamond","Palatino","Georgia","serif"],singleLineRatio:1.0259},"book antiqua":{googleFont:"EB Garamond",category:"serif",fallbackStack:["Book Antiqua","EB Garamond","Palatino","Georgia","serif"],singleLineRatio:1.0259},garamond:{googleFont:"EB Garamond",category:"serif",fallbackStack:["Garamond","EB Garamond","Georgia","serif"],singleLineRatio:1.068},"century gothic":{googleFont:"Questrial",category:"sans-serif",fallbackStack:["Century Gothic","Questrial","Arial","sans-serif"],singleLineRatio:1.1611},"lucida sans":{googleFont:"Open Sans",category:"sans-serif",fallbackStack:["Lucida Sans","Open Sans","Arial","sans-serif"],singleLineRatio:1.1655},"lucida console":{googleFont:"Cousine",category:"monospace",fallbackStack:["Lucida Console","Cousine","Courier New","monospace"],singleLineRatio:1.1387},consolas:{googleFont:"Inconsolata",category:"monospace",fallbackStack:["Consolas","Inconsolata","Cousine","Courier New","monospace"],singleLineRatio:1.1626},"ms mincho":{googleFont:"Noto Serif JP",category:"serif",fallbackStack:["MS Mincho","Noto Serif JP","serif"],singleLineRatio:1.15},"ms gothic":{googleFont:"Noto Sans JP",category:"sans-serif",fallbackStack:["MS Gothic","Noto Sans JP","sans-serif"],singleLineRatio:1.15},simhei:{googleFont:"Noto Sans SC",category:"sans-serif",fallbackStack:["SimHei","Noto Sans SC","sans-serif"],singleLineRatio:1.15},simsun:{googleFont:"Noto Serif SC",category:"serif",fallbackStack:["SimSun","Noto Serif SC","serif"],singleLineRatio:1.15},"malgun gothic":{googleFont:"Noto Sans KR",category:"sans-serif",fallbackStack:["Malgun Gothic","Noto Sans KR","sans-serif"],singleLineRatio:1.15}},Ee={"sans-serif":"Arial, Helvetica, sans-serif",serif:"Times New Roman, Times, serif",monospace:"Courier New, Courier, monospace",cursive:"cursive",fantasy:"fantasy","system-ui":"system-ui, sans-serif"};function ve(e){let t=e.toLowerCase();return t.includes("mono")||t.includes("courier")||t.includes("consolas")||t.includes("console")||t.includes("code")||t.includes("terminal")?"monospace":t.includes("times")||t.includes("georgia")||t.includes("garamond")||t.includes("palatino")||t.includes("baskerville")||t.includes("bodoni")||t.includes("cambria")||t.includes("mincho")||t.includes("ming")||t.includes("song")||t.includes("serif")?"serif":t.includes("script")||t.includes("cursive")||t.includes("comic")||t.includes("brush")||t.includes("hand")?"cursive":"sans-serif"}function ce(e){let t=e.trim().toLowerCase(),r=He[t];if(r)return {googleFont:r.googleFont,cssFallback:r.fallbackStack.map(le).join(", "),originalFont:e,hasGoogleEquivalent:true,singleLineRatio:r.singleLineRatio};let n=ve(e),a=Ee[n];return {googleFont:null,cssFallback:`${le(e)}, ${a}`,originalFont:e,hasGoogleEquivalent:false,singleLineRatio:1.15}}function le(e){return ["serif","sans-serif","monospace","cursive","fantasy","system-ui"].includes(e.toLowerCase())?e:/[\s,'"()]/.test(e)?`"${e.replace(/"/g,'\\"')}"`:e}function Ze(e,t){if(!t)return null;let n=e.toLowerCase().startsWith("major")?t.majorFont:t.minorFont;if(!n)return null;let a=e.toLowerCase();return a.includes("eastasia")||a.includes("ea")?n.ea??n.latin??null:a.includes("cs")||a.includes("bidi")?n.cs??n.latin??null:n.latin??null}var Ae=1440,ge=96,Ne=Ae/ge,me=11,pe="Calibri",Oe=1,Ye=.8,_e=.2,_=null;function U(){if(!_){let e=typeof document<"u"?document.createElement("canvas"):null;if(!e)throw new Error("Canvas not available. Ensure this runs in a DOM environment.");if(_=e.getContext("2d"),!_)throw new Error("Failed to get 2D context from canvas")}return _}function nt(){_=null;}var ue=new Map;function fe(e){let t=ue.get(e);if(t===void 0){let r=ce(e);t={cssFallback:r.cssFallback,singleLineRatio:r.singleLineRatio},ue.set(e,t);}return t}function ze(e){return fe(e).cssFallback}function j(e){let t=[];e.italic&&t.push("italic"),e.bold&&t.push("bold");let r=e.fontSize??me,n=he(r);t.push(`${n}px`);let a=e.fontFamily??pe;return t.push(ze(a)),t.join(" ")}function Xe(e){let t=e.fontSize??me,r=e.fontFamily??pe,n=he(t),a=n*Ye,o=n*_e,c=n*Oe;try{let s=U();s.font=j(e);let u=s.measureText("Hg");typeof u.actualBoundingBoxAscent=="number"&&typeof u.actualBoundingBoxDescent=="number"&&(a=u.actualBoundingBoxAscent,o=u.actualBoundingBoxDescent);}catch{}c=Math.max(c,a+o);let i=fe(r).singleLineRatio;return {fontSize:t,ascent:a,descent:o,lineHeight:c,fontFamily:r,singleLineRatio:i}}function rt(e,t){if(!e)return 0;let r=U();r.font=j(t);let a=r.measureText(e).width;return t.letterSpacing&&e.length>1&&(a+=t.letterSpacing*(e.length-1)),a}function K(e,t){let r=Xe(t);if(!e)return {width:0,charWidths:[],metrics:r};let n=U();n.font=j(t);let a=t.letterSpacing??0,o=[],c=0;for(let i=0;i<e.length;i++){let s=e[i],g=n.measureText(s).width;a&&i<e.length-1&&(g+=a),o.push(g),c+=g;}return {width:c,charWidths:o,metrics:r}}function ot(e,t){if(t.length===0||e<=0)return 0;let r=0;for(let n=0;n<t.length;n++){let a=t[n],o=r+a/2;if(e<=o)return n;r+=a;}return t.length}function at(e){return e/Ne}function he(e){return e*ge/72}function q(e,t){let r=e.pageGap??0,n=0;for(let a=0;a<t&&a<e.pages.length;a++){let c=e.pages[a].size?.h??e.pageSize.h;n+=c+r;}return n}function de(e,t){return e.findIndex(r=>r.id===t)}function Ge(e,t){let r=0;for(let n=e.fromLine;n<e.toLine&&n<t.lines.length;n++)r+=t.lines[n].lineHeight;return r}function lt(e,t,r,n){let a=[...e.page.fragments].sort((o,c)=>{let i=o.y-c.y;return Math.abs(i)>.5?i:o.x-c.x});for(let o of a){let c=de(t,o.blockId);if(c===-1)continue;let i=t[c],s=r[c];if(!i||!s)continue;let u;if(o.kind==="paragraph"){if(i.kind!=="paragraph"||s.kind!=="paragraph")continue;u=Ge(o,s);}else if(o.kind==="table")u=o.height;else if(o.kind==="image")u=o.height;else continue;let g=n.x>=o.x&&n.x<=o.x+o.width,l=n.y>=o.y&&n.y<=o.y+u;if(g&&l)return {fragment:o,block:i,measure:s,pageIndex:e.pageIndex,localX:n.x-o.x,localY:n.y-o.y}}return null}function ct(e,t,r,n){for(let a of e.page.fragments){if(a.kind!=="table")continue;let o=a,c=n.x>=o.x&&n.x<=o.x+o.width,i=n.y>=o.y&&n.y<=o.y+o.height;if(!c||!i)continue;let s=de(t,o.blockId);if(s===-1)continue;let u=t[s],g=r[s];if(!u||u.kind!=="table"||!g||g.kind!=="table")continue;let l=u,m=g,f=n.x-o.x,x=n.y-o.y,d=o.headerRowCount??0,b=d>0&&o.continuesFromPrev?Y(m,d):0,h=0,k=-1;if(m.rows.length===0||l.rows.length===0)continue;if(b>0&&x<b){let F=0;for(let P=0;P<d&&P<m.rows.length;P++){let v=m.rows[P];if(x>=F&&x<F+v.height){k=P;break}F+=v.height;}k===-1&&(k=0);}else {let F=x-b;for(let P=o.fromRow;P<o.toRow&&P<m.rows.length;P++){let v=m.rows[P];if(F>=h&&F<h+v.height){k=P;break}h+=v.height;}}if(k===-1&&(k=Math.min(o.toRow-1,m.rows.length-1),k<o.fromRow))continue;let y=m.rows[k],B=l.rows[k];if(!y||!B)continue;let w=0,p=-1;if(y.cells.length===0||B.cells.length===0)continue;for(let F=0;F<y.cells.length;F++){let P=y.cells[F];if(f>=w&&f<w+P.width){p=F;break}w+=P.width;}if(p===-1&&(p=y.cells.length-1,p<0))continue;let S=y.cells[p],I=B.cells[p];if(!S||!I)continue;let T=0;if(b>0&&k<d)for(let F=0;F<k;F++)T+=m.rows[F]?.height??0;else {T=b;for(let F=o.fromRow;F<k;F++)T+=m.rows[F]?.height??0;}let C=0;for(let F=0;F<p;F++)C+=y.cells[F]?.width??0;let R,H;if(I.blocks&&I.blocks.length>0){let F=I.blocks[0],P=S.blocks[0];F.kind==="paragraph"&&P?.kind==="paragraph"&&(R=F,H=P);}let E=f-C,L=x-T;return {fragment:o,block:l,measure:m,pageIndex:e.pageIndex,rowIndex:k,colIndex:p,cellBlock:R,cellMeasure:H,cellLocalX:Math.max(0,E),cellLocalY:Math.max(0,L)}}return null}function be(e){return {fontFamily:e.fontFamily??"Arial",fontSize:e.fontSize??12,bold:e.bold,italic:e.italic,letterSpacing:e.letterSpacing}}function $(e,t){return e.findIndex(r=>r.id===t)}function D(e,t){let n=(e.pmStart??0)+1,a=0,o;for(let s=0;s<e.runs.length&&s<=t.toRun;s++){let u=e.runs[s];if(u){if(s<t.fromRun)u.kind==="text"?a+=(u.text??"").length:a+=1;else if(s===t.fromRun){a+=t.fromChar,o=n+a;break}}}o===void 0&&(o=n);let c=0;for(let s=t.fromRun;s<=t.toRun&&s<e.runs.length;s++){let u=e.runs[s];if(u)if(u.kind==="text"){let g=u.text??"",l=s===t.fromRun?t.fromChar:0,m=s===t.toRun?t.toChar:g.length;c+=m-l;}else c+=1;}let i=o+c;return {pmStart:o,pmEnd:i}}function xe(e,t,r,n){let a=[];for(let o=0;o<t.lines.length;o++){let c=t.lines[o],i=D(e,c);i.pmStart===void 0||i.pmEnd===void 0||i.pmEnd>r&&i.pmStart<n&&a.push({line:c,index:o});}return a}function z(e,t,r){let n=D(e,t);return n.pmStart===void 0?0:Math.max(0,r-n.pmStart)}function X(e,t,r,n){let a=0,o=0;for(let c=t.fromRun;c<=t.toRun&&c<e.runs.length;c++){let i=e.runs[c];if(i){if(i.kind==="tab"){let s=i.width??48;if(o+1>=r)return r<=o?a:a+s;a+=s,o+=1;continue}if(i.kind==="image"){let s=i.width;if(o+1>=r)return r<=o?a:a+s;a+=s,o+=1;continue}if(i.kind==="lineBreak"){if(r<=o)return a;o+=1;continue}if(i.kind==="text"){let s=i.text??"",u=c===t.fromRun,g=c===t.toRun,l=u?t.fromChar:0,m=g?t.toChar:s.length,f=s.slice(l,m);if(o+f.length>=r){let b=r-o,h=be(i),k=K(f.slice(0,b),h);return a+k.width}let x=be(i),d=K(f,x);a+=d.width,o+=f.length;}}}return a}function G(e,t){let r=0;for(let n=0;n<t&&n<e.lines.length;n++)r+=e.lines[n].lineHeight;return r}function ft(e,t,r,n,a){if(n===a)return [];let o=Math.min(n,a),c=Math.max(n,a),i=[];for(let s=0;s<e.pages.length;s++){let u=e.pages[s],g=q(e,s);for(let l of u.fragments){if(l.kind==="paragraph"){let m=$(t,l.blockId);if(m===-1)continue;let f=t[m],x=r[m];if(!f||f.kind!=="paragraph"||!x||x.kind!=="paragraph")continue;let d=f,b=x,h=l,k=xe(d,b,o,c);for(let{line:y,index:B}of k){if(B<h.fromLine||B>=h.toLine)continue;let w=D(d,y);if(w.pmStart===void 0||w.pmEnd===void 0)continue;let p=Math.max(w.pmStart,o),S=Math.min(w.pmEnd,c);if(p>=S)continue;let I=z(d,y,p),T=z(d,y,S),M=d.attrs?.indent,C=M?.left??0,R=M?.right??0,H=Math.max(0,l.width-C-R),E=X(d,y,I),L=X(d,y,T),F=d.attrs?.alignment??"left",P=0;F==="center"?P=Math.max(0,(H-y.width)/2):F==="right"&&(P=Math.max(0,H-y.width));let v=G(b,B)-G(b,h.fromLine),A=l.x+C+P+Math.min(E,L),W=Math.max(1,Math.abs(L-E)),N=l.y+v;i.push({x:A,y:N+g,width:W,height:y.lineHeight,pageIndex:s});}}if(l.kind==="table"){let m=$(t,l.blockId);if(m===-1)continue;let f=t[m],x=r[m];if(!f||f.kind!=="table"||!x||x.kind!=="table")continue;let d=f,b=x,h=l,k=h.headerRowCount??0,B=k>0&&h.continuesFromPrev?Y(b,k):0;for(let w=h.fromRow;w<h.toRow&&w<d.rows.length;w++){let p=d.rows[w],S=b.rows[w];if(!p||!S)continue;let I=0;for(let T=0;T<p.cells.length;T++){let M=p.cells[T],C=S.cells[T];if(!(!M||!C)){for(let R=0;R<M.blocks.length;R++){let H=M.blocks[R],E=C.blocks[R];if(!H||H.kind!=="paragraph"||!E||E.kind!=="paragraph")continue;let L=H,F=E,P=xe(L,F,o,c),v=0;for(let{line:A,index:W}of P){let N=D(L,A);if(N.pmStart===void 0||N.pmEnd===void 0)continue;let J=Math.max(N.pmStart,o),V=Math.min(N.pmEnd,c);if(J>=V)continue;let ke=z(L,A,J),ye=z(L,A,V),Q=X(L,A,ke,C.width),Z=X(L,A,ye,C.width),Se=G(F,W);i.push({x:h.x+I+Math.min(Q,Z),y:h.y+B+v+Se+g,width:Math.max(1,Math.abs(Z-Q)),height:A.lineHeight,pageIndex:s});}v+=F.totalHeight;}I+=C.width;}}B+=S.height;}}if(l.kind==="image"){let m=l.pmStart??0;(l.pmEnd??m+1)>o&&m<c&&i.push({x:l.x,y:l.y+g,width:l.width,height:l.height,pageIndex:s});}}}return i}function ht(e,t,r,n){for(let a=0;a<e.pages.length;a++){let o=e.pages[a],c=q(e,a);for(let i of o.fragments){if(i.kind==="paragraph"){let s=$(t,i.blockId);if(s===-1)continue;let u=t[s],g=r[s];if(!u||u.kind!=="paragraph"||!g||g.kind!=="paragraph")continue;let l=u,m=g,f=i,x=l.pmStart??0,d=l.pmEnd??x;if(n<x||n>d)continue;for(let b=f.fromLine;b<f.toLine;b++){let h=m.lines[b];if(!h)continue;let k=D(l,h);if(!(k.pmStart===void 0||k.pmEnd===void 0)&&n>=k.pmStart&&n<=k.pmEnd){let y=z(l,h,n),B=l.attrs?.indent,w=B?.left??0,p=B?.right??0,S=Math.max(0,i.width-w-p),I=X(l,h,y),T=l.attrs?.alignment??"left",M=0;T==="center"?M=Math.max(0,(S-h.width)/2):T==="right"&&(M=Math.max(0,S-h.width));let C=G(m,b)-G(m,f.fromLine);return {x:i.x+w+M+I,y:i.y+C+c,height:h.lineHeight,pageIndex:a}}}}if(i.kind==="image"){let s=i.pmStart??0,u=i.pmEnd??s+1;if(n>=s&&n<=u){let g=n===s?0:i.width;return {x:i.x+g,y:i.y+c,height:i.height,pageIndex:a}}}}}return null}function dt(e){return e.length<=1?false:new Set(e.map(r=>r.pageIndex)).size>1}function bt(e){let t=new Map;for(let r of e){let n=t.get(r.pageIndex)??[];n.push(r),t.set(r.pageIndex,n);}return t}exports.a=ce;exports.b=Ze;exports.c=Ue;exports.d=je;exports.e=Je;exports.f=nt;exports.g=Xe;exports.h=rt;exports.i=K;exports.j=ot;exports.k=at;exports.l=he;exports.m=q;exports.n=lt;exports.o=ct;exports.p=ft;exports.q=ht;exports.r=dt;exports.s=bt;
@@ -0,0 +1 @@
1
+ 'use strict';var chunkH5NTJZO4_js=require('./chunk-H5NTJZO4.js');function E(){return {type:"break",breakType:"page"}}function K(){return {type:"break",breakType:"column"}}function j(t){return {type:"break",breakType:"textWrapping",clear:t}}function Z(){return {type:"run",content:[E()]}}function R(){return {type:"paragraph",content:[],formatting:{pageBreakBefore:true}}}function I(t){return t.content.filter(n=>n.type==="run")}function q(t,n){let{paragraphIndex:e}=n,o=[...t.package.document.content||[]],r=R();return o.splice(e+1,0,r),{...t,package:{...t.package,document:{...t.package.document,content:o}}}}function k(){return {type:"paragraph",content:[],formatting:{borders:{bottom:{style:"single",color:{rgb:"000000"},size:12,space:1}},spaceBefore:120,spaceAfter:120}}}function G(t,n){let{paragraphIndex:e}=n,o=[...t.package.document.content||[]],r=k();return o.splice(e+1,0,r),{...t,package:{...t.package,document:{...t.package.document,content:o}}}}function d(t){return t.type==="break"&&t.breakType==="page"}function Y(t){return t.type==="break"&&t.breakType==="column"}function Q(t){return t.type==="break"&&t.breakType==="textWrapping"}function ee(t){return t.type==="break"}function g(t){return t.formatting?.pageBreakBefore===true}function te(t){let n=0;for(let e of t.package.document.content||[])if(e.type==="paragraph"){let o=e;g(o)&&n++;let r=I(o);for(let a of r)for(let s of a.content)d(s)&&n++;}return n}function ne(t){let n=[],e=t.package.document.content||[];for(let o=0;o<e.length;o++){let r=e[o];if(r.type==="paragraph"){let a=r;g(a)&&n.push({paragraphIndex:o});let s=I(a);for(let l=0;l<s.length;l++){let c=s[l];for(let p of c.content)d(p)&&n.push({paragraphIndex:o,runIndex:l});}}}return n}function oe(t,n){let{paragraphIndex:e,runIndex:o}=n,r=[...t.package.document.content||[]],a=r[e];if(a.type!=="paragraph")return t;let s=a;if(g(s)&&o===void 0)return r[e]={...s,formatting:{...s.formatting,pageBreakBefore:false}},{...t,package:{...t.package,document:{...t.package.document,content:r}}};if(o!==void 0){let l=[],c=0;for(let p of s.content)if(p.type==="run"){if(c===o){let D=p.content.filter(X=>!d(X));D.length>0&&l.push({...p,content:D});}else l.push(p);c++;}else l.push(p);return r[e]={...s,content:l},{...t,package:{...t.package,document:{...t.package.document,content:r}}}}return t}var u=class{constructor(n){chunkH5NTJZO4_js.d(this,"listeners",new Set);chunkH5NTJZO4_js.d(this,"snapshot");chunkH5NTJZO4_js.d(this,"subscribe",n=>(this.listeners.add(n),()=>{this.listeners.delete(n);}));chunkH5NTJZO4_js.d(this,"getSnapshot",()=>this.snapshot);this.snapshot=n;}setSnapshot(n){this.snapshot=n,this.notify();}notify(){for(let n of this.listeners)n();}};var _="docx-editor-autosave",re=3e4,ae=1440*60*1e3,ie=2e3,A=1;function L(){try{let t="__docx_editor_test__";return localStorage.setItem(t,"test"),localStorage.removeItem(t),!0}catch{return false}}function P(t){return JSON.stringify({...t,originalBuffer:null})}function se(t){try{let n=JSON.parse(t);return !n||typeof n!="object"||!n.document||!n.savedAt?null:(n.version!==A&&console.warn("Auto-save data version mismatch, may need migration"),n)}catch{return null}}function le(t,n){let e=new Date(t).getTime();return Date.now()-e>n}var h=class extends u{constructor(e={}){super({status:"idle",lastSaveTime:null,hasRecoveryData:false,isEnabled:true});chunkH5NTJZO4_js.d(this,"storageKey");chunkH5NTJZO4_js.d(this,"interval");chunkH5NTJZO4_js.d(this,"maxAge");chunkH5NTJZO4_js.d(this,"saveOnChange");chunkH5NTJZO4_js.d(this,"debounceDelay");chunkH5NTJZO4_js.d(this,"onSaveCallback");chunkH5NTJZO4_js.d(this,"onErrorCallback");chunkH5NTJZO4_js.d(this,"onRecoveryAvailableCallback");chunkH5NTJZO4_js.d(this,"storageAvailable");chunkH5NTJZO4_js.d(this,"currentDocument",null);chunkH5NTJZO4_js.d(this,"lastSavedJson",null);chunkH5NTJZO4_js.d(this,"intervalTimer",null);chunkH5NTJZO4_js.d(this,"debounceTimer",null);chunkH5NTJZO4_js.d(this,"status","idle");chunkH5NTJZO4_js.d(this,"lastSaveTime",null);chunkH5NTJZO4_js.d(this,"_hasRecoveryData",false);chunkH5NTJZO4_js.d(this,"_isEnabled");this.storageKey=e.storageKey??_,this.interval=e.interval??re,this.maxAge=e.maxAge??ae,this.saveOnChange=e.saveOnChange??true,this.debounceDelay=e.debounceDelay??ie,this.onSaveCallback=e.onSave,this.onErrorCallback=e.onError,this.onRecoveryAvailableCallback=e.onRecoveryAvailable,this._isEnabled=true,this.storageAvailable=L(),this.checkRecoveryData();}onDocumentChanged(e){this.currentDocument=e,this._isEnabled&&this.saveOnChange&&e&&this.storageAvailable&&this.debounceSave();}async save(){if(!this.storageAvailable)return this.onErrorCallback?.(new Error("localStorage is not available")),false;let e=this.currentDocument;if(!e)return false;this.updateStatus("saving");try{let o=P(e);if(o===this.lastSavedJson)return this.updateStatus("saved"),!0;this.persistToStorage(o),this.lastSavedJson=o;let r=new Date;return this.lastSaveTime=r,this.updateStatus("saved"),this.onSaveCallback?.(r),!0}catch(o){return console.error("Auto-save failed:",o),this.updateStatus("error"),this.onErrorCallback?.(o),false}}clear(){if(this.storageAvailable)try{localStorage.removeItem(this.storageKey),this._hasRecoveryData=!1,this.lastSavedJson=null,this.emitSnapshot();}catch(e){console.error("Failed to clear auto-save:",e);}}getRecoveryData(){if(!this.storageAvailable)return null;try{let e=localStorage.getItem(this.storageKey);if(!e)return null;let o=se(e);return o?le(o.savedAt,this.maxAge)?(this.clear(),null):o:null}catch{return null}}acceptRecovery(){let e=this.getRecoveryData();return e?(this._hasRecoveryData=false,this.emitSnapshot(),e.document):null}dismissRecovery(){this.clear(),this._hasRecoveryData=false,this.emitSnapshot();}enable(){this._isEnabled=true,this.startInterval(),this.emitSnapshot();}disable(){this._isEnabled=false,this.stopTimers(),this.emitSnapshot();}startInterval(){this.stopTimers(),!(!this._isEnabled||!this.storageAvailable)&&(this.intervalTimer=setInterval(()=>{this.save();},this.interval));}destroy(){if(this.stopTimers(),this._isEnabled&&this.currentDocument&&this.storageAvailable)try{this.persistToStorage(P(this.currentDocument));}catch(e){console.error("Failed to save on destroy:",e);}}checkRecoveryData(){if(!this.storageAvailable)return;let e=this.getRecoveryData();e&&(this._hasRecoveryData=true,this.emitSnapshot(),this.onRecoveryAvailableCallback?.(e));}persistToStorage(e){let o={document:JSON.parse(e),savedAt:new Date().toISOString(),version:A};localStorage.setItem(this.storageKey,JSON.stringify(o));}debounceSave(){this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{this.save();},this.debounceDelay);}stopTimers(){this.intervalTimer&&(clearInterval(this.intervalTimer),this.intervalTimer=null),this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null);}updateStatus(e){this.status=e,this.emitSnapshot();}emitSnapshot(){this.setSnapshot({status:this.status,lastSaveTime:this.lastSaveTime,hasRecoveryData:this._hasRecoveryData,isEnabled:this._isEnabled});}};function B(t){if(!t)return "Never";let e=new Date().getTime()-t.getTime(),o=Math.floor(e/1e3),r=Math.floor(o/60),a=Math.floor(r/60);return o<10?"Just now":o<60?`${o} seconds ago`:r<60?`${r} minute${r===1?"":"s"} ago`:a<24?`${a} hour${a===1?"":"s"} ago`:t.toLocaleDateString()}function F(t){return {idle:"Ready",saving:"Saving...",saved:"Saved",error:"Save failed"}[t]}function z(t=_){try{let n=localStorage.getItem(t);return n?new Blob([n]).size:0}catch{return 0}}function w(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}function N(){return L()}var m={TABLE_INDEX:"data-table-index",ROW_INDEX:"data-row",COLUMN_INDEX:"data-col",TABLE_CELL:"data-table-cell"};function O(t,n){if(!(t instanceof Element))return null;let e=t;for(;e&&e!==n;){if(e.tagName==="TD"||e.tagName==="TH"){let o=e.getAttribute(m.ROW_INDEX),r=e.getAttribute(m.COLUMN_INDEX);if(o!==null&&r!==null){let a=e;for(;a&&a!==n;){if(a.tagName==="TABLE"){let s=a.getAttribute(m.TABLE_INDEX);if(s!==null)return {tableIndex:parseInt(s,10),rowIndex:parseInt(o,10),columnIndex:parseInt(r,10)};break}a=a.parentElement;}}break}e=e.parentElement;}return null}function M(t,n){if(!t.package?.document?.content)return null;let e=0;for(let o of t.package.document.content)if(o.type==="table"){if(e===n)return o;e++;}return null}function H(t,n,e){if(!t.package?.document?.content)return t;let o=0,r=t.package.document.content.map(a=>{if(a.type==="table"){if(o===n)return o++,e;o++;}return a});return {...t,package:{...t.package,document:{...t.package.document,content:r}}}}function V(t,n){if(!t.package?.document?.content)return t;let e=0,o=t.package.document.content.filter(r=>{if(r.type==="table"){let a=e===n;return e++,!a}return true});return {...t,package:{...t.package,document:{...t.package.document,content:o}}}}var f=class extends u{constructor(){super({selectedCell:null});}selectCell(n){this.setSnapshot({selectedCell:n});}clearSelection(){this.setSnapshot({selectedCell:null});}isCellSelected(n,e,o){let{selectedCell:r}=this.getSnapshot();return r?r.tableIndex===n&&r.rowIndex===e&&r.columnIndex===o:false}getSelectedCell(){return this.getSnapshot().selectedCell}};function W(t){if(!t||t==="transparent"||t==="inherit")return null;if(t.startsWith("#"))return t.slice(1).toUpperCase();let n=t.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(n){let e=parseInt(n[1]).toString(16).padStart(2,"0"),o=parseInt(n[2]).toString(16).padStart(2,"0"),r=parseInt(n[3]).toString(16).padStart(2,"0");return (e+o+r).toUpperCase()}return null}function y(t){let n=window.getComputedStyle(t),e={};(n.fontWeight==="bold"||parseInt(n.fontWeight)>=700)&&(e.bold=true),n.fontStyle==="italic"&&(e.italic=true);let o=n.textDecoration||n.textDecorationLine;o&&o.includes("underline")&&(e.underline={style:"single"}),o&&o.includes("line-through")&&(e.strike=true);let r=parseFloat(n.fontSize);!isNaN(r)&&r>0&&(e.fontSize=Math.round(r/1.333*2));let a=n.fontFamily.replace(/["']/g,"").split(",")[0].trim();a&&(e.fontFamily={ascii:a});let s=n.color;if(s&&s!=="rgb(0, 0, 0)"){let c=W(s);c&&(e.color={rgb:c});}let l=n.backgroundColor;if(l&&l!=="transparent"&&l!=="rgba(0, 0, 0, 0)"){let c=T(l);c&&(e.shading={fill:{rgb:c}});}return Object.keys(e).length>0?e:void 0}function ue(t,n){let e=document.createRange();e.selectNodeContents(t);let o=n.compareBoundaryPoints(Range.START_TO_START,e)>=0&&n.compareBoundaryPoints(Range.START_TO_END,e)<=0,r=n.compareBoundaryPoints(Range.END_TO_START,e)>=0&&n.compareBoundaryPoints(Range.END_TO_END,e)<=0;if(o&&r)return n.toString();if(o){let a=document.createRange();return a.setStart(n.startContainer,n.startOffset),a.selectNodeContents(t),a.setEnd(e.endContainer,e.endOffset),a.toString()}else if(r){let a=document.createRange();return a.selectNodeContents(t),a.setEnd(n.endContainer,n.endOffset),a.setStart(e.startContainer,e.startOffset),a.toString()}else if(n.intersectsNode(t))return t.textContent||"";return ""}function U(t){let n=t;for(;n;){if(n.nodeType===Node.ELEMENT_NODE){let e=n;if(e.hasAttribute("data-paragraph-index"))return e}n=n.parentNode;}return null}function C(){let t=window.getSelection();if(!t||t.isCollapsed)return [];let n=[],e=t.getRangeAt(0),o=e.commonAncestorContainer,r=o.nodeType===Node.ELEMENT_NODE?o:o.parentElement;if(!r)return n;if(r.querySelectorAll(".docx-run").forEach(s=>{if(e.intersectsNode(s)){let l=ue(s,e);if(l){let c=y(s);n.push({type:"run",formatting:c,content:[{type:"text",text:l}]});}}}),n.length===0){let s=t.toString();s&&n.push({type:"run",content:[{type:"text",text:s}]});}return n}function $(){let t=window.getSelection();if(!t||t.isCollapsed)return null;let n=C();if(n.length===0)return null;let e=t.toString(),o=t.getRangeAt(0),r=U(o.startContainer),a=U(o.endContainer),s=r?parseInt(r.getAttribute("data-paragraph-index")||"0",10):0,l=a?parseInt(a.getAttribute("data-paragraph-index")||"0",10):0;return {text:e,runs:n,startParagraphIndex:s,startRunIndex:0,startOffset:o.startOffset,endParagraphIndex:l,endRunIndex:0,endOffset:o.endOffset,isMultiParagraph:s!==l}}var T=W;var S=class extends u{constructor(){super({notifications:[]});chunkH5NTJZO4_js.d(this,"notifications",[]);chunkH5NTJZO4_js.d(this,"idCounter",0);chunkH5NTJZO4_js.d(this,"timers",new Set);}showError(e,o){return this.addNotification(e,"error",o)}showWarning(e,o){return this.addNotification(e,"warning",o)}showInfo(e,o){return this.addNotification(e,"info",o)}dismiss(e){this.notifications=this.notifications.map(r=>r.id===e?{...r,dismissed:true}:r),this.emitSnapshot();let o=setTimeout(()=>{this.timers.delete(o),this.notifications=this.notifications.filter(r=>r.id!==e),this.emitSnapshot();},300);this.timers.add(o);}clearAll(){this.notifications=[];for(let e of this.timers)clearTimeout(e);this.timers.clear(),this.emitSnapshot();}destroy(){for(let e of this.timers)clearTimeout(e);this.timers.clear(),this.notifications=[];}addNotification(e,o,r){let a=`error-${++this.idCounter}-${Date.now()}`,s={id:a,message:e,severity:o,details:r,timestamp:Date.now()};if(this.notifications=[...this.notifications,s],this.emitSnapshot(),o!=="error"){let l=setTimeout(()=>{this.timers.delete(l),this.dismiss(a);},5e3);this.timers.add(l);}return a}emitSnapshot(){this.setSnapshot({notifications:this.notifications});}};function J(t,n){let e=`plugin-styles-${t}`,o=document.getElementById(e);o&&o.remove();let r=document.createElement("style");return r.id=e,r.textContent=n,document.head.appendChild(r),()=>{let a=document.getElementById(e);a&&a.remove();}}var v=class extends u{constructor(){super({states:new Map,version:0});chunkH5NTJZO4_js.d(this,"plugins",[]);chunkH5NTJZO4_js.d(this,"pluginStates",new Map);chunkH5NTJZO4_js.d(this,"version",0);}initialize(e,o){this.destroyPlugins(),this.plugins=e;for(let r of e)r.initialize&&!this.pluginStates.has(r.id)&&this.pluginStates.set(r.id,r.initialize(o));this.emitSnapshot();}updateStates(e){let o=false;for(let r of this.plugins)if(r.onStateChange){let a=r.onStateChange(e);a!==void 0&&(this.pluginStates.set(r.id,a),o=true);}return o&&(this.version++,this.emitSnapshot()),o}getPluginState(e){return this.pluginStates.get(e)}setPluginState(e,o){this.pluginStates.set(e,o),this.version++,this.emitSnapshot();}destroy(){this.destroyPlugins(),this.emitSnapshot();}destroyPlugins(){for(let e of this.plugins)e.destroy&&e.destroy();this.pluginStates.clear(),this.plugins=[];}emitSnapshot(){this.setSnapshot({states:new Map(this.pluginStates),version:this.version});}};var b=class extends u{constructor(){super({hasLayout:false,selectionRects:[],caretPosition:null,selectedImageInfo:null,isFocused:false,isDragging:false,isResizingColumn:false,isImageInteracting:false,version:0});chunkH5NTJZO4_js.d(this,"_hasLayout",false);chunkH5NTJZO4_js.d(this,"_selectionRects",[]);chunkH5NTJZO4_js.d(this,"_caretPosition",null);chunkH5NTJZO4_js.d(this,"_isDragging",false);chunkH5NTJZO4_js.d(this,"_dragAnchor",null);chunkH5NTJZO4_js.d(this,"_columnResize",{isResizing:false,startX:0,columnIndex:0,tablePmStart:0,originalWidths:{left:0,right:0}});chunkH5NTJZO4_js.d(this,"_selectedImageInfo",null);chunkH5NTJZO4_js.d(this,"_isImageInteracting",false);chunkH5NTJZO4_js.d(this,"_isFocused",false);chunkH5NTJZO4_js.d(this,"_version",0);}setLayoutReady(e){this._hasLayout=e,this.emitSnapshot();}updateSelection(e,o){this._selectionRects=e,this._caretPosition=o,this.emitSnapshot();}startDrag(e){this._isDragging=true,this._dragAnchor=e,this.emitSnapshot();}endDrag(){this._isDragging=false,this._dragAnchor=null,this.emitSnapshot();}getDragAnchor(){return this._dragAnchor}startColumnResize(e,o,r,a){this._columnResize={isResizing:true,startX:r,columnIndex:o,tablePmStart:e,originalWidths:a},this.emitSnapshot();}endColumnResize(){this._columnResize={...this._columnResize,isResizing:false},this.emitSnapshot();}getColumnResize(){return this._columnResize}setSelectedImage(e){this._selectedImageInfo=e,this.emitSnapshot();}clearSelectedImage(){this._selectedImageInfo=null,this._isImageInteracting=false,this.emitSnapshot();}setImageInteracting(e){this._isImageInteracting=e,this.emitSnapshot();}setFocused(e){this._isFocused=e,this.emitSnapshot();}emitSnapshot(){this._version++,this.setSnapshot({hasLayout:this._hasLayout,selectionRects:this._selectionRects,caretPosition:this._caretPosition,selectedImageInfo:this._selectedImageInfo,isFocused:this._isFocused,isDragging:this._isDragging,isResizingColumn:this._columnResize.isResizing,isImageInteracting:this._isImageInteracting,version:this._version});}};var x=class extends u{constructor(e={}){let o=e.initialZoom??1;super({loadingState:"idle",parseError:null,isReady:false,zoom:o,fontsLoaded:false,version:0});chunkH5NTJZO4_js.d(this,"_loadingState","idle");chunkH5NTJZO4_js.d(this,"_parseError",null);chunkH5NTJZO4_js.d(this,"_zoom");chunkH5NTJZO4_js.d(this,"_fontsLoaded",false);chunkH5NTJZO4_js.d(this,"_document",null);chunkH5NTJZO4_js.d(this,"_version",0);chunkH5NTJZO4_js.d(this,"onChangeCallback");chunkH5NTJZO4_js.d(this,"onErrorCallback");this._zoom=o,this.onChangeCallback=e.onChange,this.onErrorCallback=e.onError;}setParsingStarted(){this._loadingState="parsing",this._parseError=null,this.emitSnapshot();}setDocumentLoaded(e){this._document=e,this._loadingState="loading-fonts",this._parseError=null,this.emitSnapshot();}setFontsLoaded(){this._fontsLoaded=true,this._loadingState="ready",this.emitSnapshot();}setLoadError(e){this._loadingState="error",this._parseError=e.message,this.onErrorCallback?.(e),this.emitSnapshot();}getDocument(){return this._document}updateDocument(e){this._document=e,this.onChangeCallback?.(e),this.emitSnapshot();}setZoom(e){this._zoom=Math.max(.25,Math.min(4,e)),this.emitSnapshot();}getZoom(){return this._zoom}emitSnapshot(){this._version++,this.setSnapshot({loadingState:this._loadingState,parseError:this._parseError,isReady:this._loadingState==="ready",zoom:this._zoom,fontsLoaded:this._fontsLoaded,version:this._version});}};var pn="0.0.2";exports.A=H;exports.B=V;exports.C=f;exports.D=y;exports.E=C;exports.F=$;exports.G=T;exports.H=S;exports.I=J;exports.J=v;exports.K=b;exports.L=x;exports.M=pn;exports.a=E;exports.b=K;exports.c=j;exports.d=Z;exports.e=R;exports.f=q;exports.g=k;exports.h=G;exports.i=d;exports.j=Y;exports.k=Q;exports.l=ee;exports.m=g;exports.n=te;exports.o=ne;exports.p=oe;exports.q=u;exports.r=h;exports.s=B;exports.t=F;exports.u=z;exports.v=w;exports.w=N;exports.x=m;exports.y=O;exports.z=M;
@@ -0,0 +1,2 @@
1
+ import {createContext,useMemo,useContext,useCallback}from'react';import {jsx}from'react/jsx-runtime';var p={_lang:"en",common:{cancel:"Cancel",insert:"Insert",apply:"Apply",close:"Close",delete:"Delete",update:"Update",save:"Save",retry:"Retry",send:"Send",edit:"Edit",comment:"Comment",reply:"Reply",accept:"Accept",reject:"Reject",dismiss:"Dismiss",change:"Change",px:"px",closeDialog:"Close dialog"},toolbar:{ariaLabel:"Formatting toolbar",file:"File",format:"Format",insert:"Insert",print:"Print",printShortcut:"Ctrl+P",pageSetup:"Page setup",leftToRight:"Left-to-right text",rightToLeft:"Right-to-left text",image:"Image",table:"Table",pageBreak:"Page break",tableOfContents:"Table of contents",symbol:"Symbol"},formattingBar:{groups:{history:"History",zoom:"Zoom",styles:"Styles",font:"Font",textFormatting:"Text formatting",script:"Script",alignment:"Alignment",listFormatting:"List formatting",image:"Image",table:"Table"},undo:"Undo",undoShortcut:"Undo (Ctrl+Z)",redo:"Redo",redoShortcut:"Redo (Ctrl+Y)",bold:"Bold",boldShortcut:"Bold (Ctrl+B)",italic:"Italic",italicShortcut:"Italic (Ctrl+I)",underline:"Underline",underlineShortcut:"Underline (Ctrl+U)",strikethrough:"Strikethrough",fontColor:"Font Color",highlightColor:"Text Highlight Color",insertLink:"Insert link",insertLinkShortcut:"Insert link (Ctrl+K)",superscript:"Superscript",superscriptShortcut:"Superscript (Ctrl+Shift+=)",subscript:"Subscript",subscriptShortcut:"Subscript (Ctrl+=)",imageProperties:"Image properties",imagePropertiesShortcut:"Image properties (alt text, border)...",clearFormatting:"Clear formatting"},alignment:{alignLeft:"Align Left",alignLeftShortcut:"Ctrl+L",center:"Center",centerShortcut:"Ctrl+E",alignRight:"Align Right",alignRightShortcut:"Ctrl+R",justify:"Justify",justifyShortcut:"Ctrl+J"},lists:{ariaLabel:"List formatting",typeAriaLabel:"List type",indentationAriaLabel:"List indentation",bulletList:"Bullet List",numberedList:"Numbered List",decreaseIndent:"Decrease Indent",increaseIndent:"Increase Indent"},lineSpacing:{single:"Single",double:"Double",lineSpacingTitle:"Line spacing: {label}",paragraphSpacing:"Paragraph spacing"},styles:{selectAriaLabel:"Select paragraph style",normalText:"Normal text",title:"Title",subtitle:"Subtitle",heading1:"Heading 1",heading2:"Heading 2",heading3:"Heading 3"},font:{selectAriaLabel:"Select font family",sansSerif:"Sans Serif",serif:"Serif",monospace:"Monospace"},fontSize:{decrease:"Decrease font size",increase:"Increase font size",label:"Font size",listLabel:"Font sizes"},zoom:{ariaLabel:"Zoom: {label}"},colorPicker:{ariaLabel:"{type} color picker",highlightColors:"Highlight Colors",customColor:"Custom Color",noColor:"No Color",automatic:"Automatic",themeColors:"Theme Colors",standardColors:"Standard Colors",colors:{black:"Black",darkRed:"Dark Red",red:"Red",orange:"Orange",yellow:"Yellow",darkYellow:"Dark Yellow",green:"Green",darkGreen:"Dark Green",teal:"Teal",darkTeal:"Dark Teal",blue:"Blue",darkBlue:"Dark Blue",purple:"Purple",darkPurple:"Dark Purple",brown:"Brown",grey50:"Grey 50%",grey25:"Grey 25%",grey10:"Grey 10%",white:"White",lightRed:"Light Red",lightOrange:"Light Orange",lightYellow:"Light Yellow",lightGreen:"Light Green",lightBlue:"Light Blue",lightPurple:"Light Purple",pink:"Pink",rose:"Rose",gold:"Gold",aqua:"Aqua",lavender:"Lavender",silver:"Silver",darkOrange:"Dark Orange",darkGray:"Dark Gray",gray:"Gray",cyan:"Cyan",magenta:"Magenta",paleGreen:"Pale Green",lightCyan:"Light Cyan",skyBlue:"Sky Blue",lightBlue2:"Light Blue 2",lightMagenta:"Light Magenta",brightGreen:"Bright Green",violet:"Violet"}},dialogs:{findReplace:{titleFind:"Find",titleFindReplace:"Find and Replace",findLabel:"Find:",findPlaceholder:"Enter text to find...",findAriaLabel:"Find text",findPrevious:"Find previous",findPreviousTitle:"Find Previous (Shift+Enter)",findNext:"Find next",findNextTitle:"Find Next (Enter)",matchCount:"{current} of {total} matches",noResults:"No results found",replaceLabel:"Replace:",replacePlaceholder:"Enter replacement text...",replaceAriaLabel:"Replace text",replaceButton:"Replace",replaceCurrentTitle:"Replace current match",replaceAllButton:"Replace All",replaceAllTitle:"Replace all matches",matchCase:"Match case",wholeWords:"Whole words",toggleReplace:"+ Replace"},hyperlink:{titleEdit:"Edit Hyperlink",titleInsert:"Insert Hyperlink",tabWebAddress:"Web Address",tabBookmark:"Bookmark",urlLabel:"URL",urlPlaceholder:"https://example.com",urlHint:"Enter a web address, email (mailto:), or phone (tel:)",bookmarkLabel:"Bookmark",bookmarkPlaceholder:"Select a bookmark...",displayTextLabel:"Display Text",displayTextPlaceholder:"Text to display (optional)",displayTextHint:"Leave empty to use the selected text",tooltipLabel:"Tooltip (optional)",tooltipPlaceholder:"Text shown on hover",removeLink:"Remove Link",invalidUrl:"Please enter a valid URL",urlRequired:"URL is required"},insertTable:{title:"Insert Table",hoverToSelect:"Hover to select size",tableSize:"{cols} x {rows} Table",orSpecifySize:"or specify size",rowsLabel:"Rows:",columnsLabel:"Columns:",insertButton:"Insert Table",sizeSelector:"Table size selector"},insertImage:{title:"Insert Image",uploadAriaLabel:"Click or drag to upload image",uploadText:"Click to select or drag and drop an image",uploadSubtext:"PNG, JPG, GIF up to 10MB",dimensions:"Dimensions",widthLabel:"Width:",heightLabel:"Height:",aspectRatioLocked:"Aspect ratio locked",aspectRatioUnlocked:"Aspect ratio unlocked",altTextLabel:"Alt Text (optional)",altTextPlaceholder:"Describe the image for accessibility",insertButton:"Insert Image",invalidFile:"Please select a valid image file",fileTooLarge:"Image file is too large (max 10MB)",readFailed:"Failed to read image file",loadFailed:"Failed to load image",preview:"Preview"},insertSymbol:{title:"Insert Symbol",searchPlaceholder:"Search symbols (character or Unicode)...",noResults:'No symbols found for "{query}"',decimal:"Decimal: {value}",categories:{common:"Common",arrows:"Arrows",math:"Math",greek:"Greek",shapes:"Shapes",punctuation:"Punctuation",currency:"Currency",music:"Music",emoji:"Emoji"}},imageProperties:{title:"Image Properties",altText:"Alt Text",altTextPlaceholder:"Describe this image for accessibility...",border:"Border",width:"Width",style:"Style",color:"Color",preview:"Preview",borderStyles:{solid:"Solid",dashed:"Dashed",dotted:"Dotted",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"}},imagePosition:{title:"Image Position",horizontal:"Horizontal",vertical:"Vertical",position:"Position",alignment:"Alignment",offset:"Offset",offsetPx:"Offset (px)",align:"Align",relativeTo:"Relative to",alignOptions:{left:"Left",center:"Center",right:"Right",top:"Top",bottom:"Bottom"},relativeOptions:{page:"Page",column:"Column",margin:"Margin",character:"Character",paragraph:"Paragraph",line:"Line"}},pageSetup:{title:"Page Setup",pageSize:"PAGE SIZE",sizeLabel:"Size",custom:"Custom",orientation:"Orientation",portrait:"Portrait",landscape:"Landscape",margins:"MARGINS",top:"Top",bottom:"Bottom",left:"Left",right:"Right",pageSizes:{letter:'Letter (8.5" \xD7 11")',a4:'A4 (8.27" \xD7 11.69")',legal:'Legal (8.5" \xD7 14")',a3:'A3 (11.69" \xD7 16.54")',a5:'A5 (5.83" \xD7 8.27")',b5:'B5 (6.93" \xD7 9.84")',executive:'Executive (7.25" \xD7 10.5")'}},tableProperties:{title:"Table Properties",widthType:"Width type",widthLabel:"Width",alignmentLabel:"Alignment",widthTypes:{auto:"Auto",fixed:"Fixed (twips)",percentage:"Percentage"},units:{fiftiethsPercent:"(50ths of %)",twips:"tw"},alignOptions:{left:"Left",center:"Center",right:"Right"}},pasteSpecial:{title:"Paste Special",keepFormatting:"Keep Source Formatting",keepFormattingDescription:"Paste with original formatting",keepFormattingShortcut:"Ctrl+V",plainText:"Paste as Plain Text",plainTextDescription:"Paste without any formatting",plainTextShortcut:"Ctrl+Shift+V",readingClipboard:"Reading clipboard...",preview:"Preview:",noContent:"No content available to paste",clipboardError:"Unable to read clipboard. Please use Ctrl+V to paste."},footnoteProperties:{title:"Footnote & Endnote Properties",footnotes:"Footnotes",endnotes:"Endnotes",position:"Position",numberFormat:"Number format",startAt:"Start at",numbering:"Numbering",footnotePositions:{bottomOfPage:"Bottom of page",belowText:"Below text"},endnotePositions:{endOfDocument:"End of document",endOfSection:"End of section"},numberingOptions:{continuous:"Continuous",restartSection:"Restart each section",restartPage:"Restart each page"},formats:{decimal:"1, 2, 3, ...",lowerRoman:"i, ii, iii, ...",upperRoman:"I, II, III, ...",lowerAlpha:"a, b, c, ...",upperAlpha:"A, B, C, ...",symbols:"*, \u2020, \u2021, ..."}},keyboardShortcuts:{ariaLabel:"Keyboard Shortcuts",searchPlaceholder:"Search shortcuts...",categories:{editing:"Editing",formatting:"Formatting",navigation:"Navigation",clipboard:"Clipboard",selection:"Selection",view:"View",file:"File",other:"Other"},shortcuts:{save:"Save",saveDescription:"Save document",print:"Print",printDescription:"Print document",undo:"Undo",undoDescription:"Undo last action",redo:"Redo",redoDescription:"Redo last action",delete:"Delete",deleteDescription:"Delete selected text",find:"Find",findDescription:"Find text in document",findReplace:"Find & Replace",findReplaceDescription:"Find and replace text",cut:"Cut",cutDescription:"Cut selected text",copy:"Copy",copyDescription:"Copy selected text",paste:"Paste",pasteDescription:"Paste from clipboard",pastePlainText:"Paste as Plain Text",pastePlainTextDescription:"Paste without formatting",bold:"Bold",boldDescription:"Toggle bold formatting",italic:"Italic",italicDescription:"Toggle italic formatting",underline:"Underline",underlineDescription:"Toggle underline formatting",strikethrough:"Strikethrough",strikethroughDescription:"Toggle strikethrough",subscript:"Subscript",subscriptDescription:"Toggle subscript",superscript:"Superscript",superscriptDescription:"Toggle superscript",alignLeft:"Align Left",alignLeftDescription:"Left align paragraph",alignCenter:"Align Center",alignCenterDescription:"Center align paragraph",alignRight:"Align Right",alignRightDescription:"Right align paragraph",justify:"Justify",justifyDescription:"Justify paragraph",increaseIndent:"Increase Indent",increaseIndentDescription:"Increase paragraph indent",decreaseIndent:"Decrease Indent",decreaseIndentDescription:"Decrease paragraph indent",selectAll:"Select All",selectAllDescription:"Select all content",selectWord:"Select Word",selectWordDescription:"Select current word",selectParagraph:"Select Paragraph",selectParagraphDescription:"Select current paragraph",extendSelectionByWord:"Extend Selection by Word",extendSelectionByWordDescription:"Extend selection to next/previous word",extendSelectionToLineEdge:"Extend Selection to Line Edge",extendSelectionToLineEdgeDescription:"Extend selection to line start/end",moveByWord:"Move by Word",moveByWordDescription:"Move cursor to next/previous word",moveToLineStart:"Move to Line Start",moveToLineStartDescription:"Move cursor to start of line",moveToLineEnd:"Move to Line End",moveToLineEndDescription:"Move cursor to end of line",moveToDocumentStart:"Move to Document Start",moveToDocumentStartDescription:"Move cursor to start of document",moveToDocumentEnd:"Move to Document End",moveToDocumentEndDescription:"Move cursor to end of document",pageUp:"Page Up",pageUpDescription:"Scroll up one page",pageDown:"Page Down",pageDownDescription:"Scroll down one page",zoomIn:"Zoom In",zoomInDescription:"Increase zoom level",zoomOut:"Zoom Out",zoomOutDescription:"Decrease zoom level",resetZoom:"Reset Zoom",resetZoomDescription:"Reset zoom to 100%",keyboardShortcuts:"Keyboard Shortcuts",keyboardShortcutsDescription:"Show this help dialog"},noResults:'No shortcuts found matching "{query}"',pressEscToClose:"Press {key} to close",or:"or"}},comments:{resolved:"Resolved",resolve:"Resolve",reopen:"Reopen",moreOptions:"More options",unknown:"Unknown",addComment:"Add a comment...",replyPlaceholder:"Reply or add others with @",replyCount:"{count, plural, one {# reply} other {# replies}}"},trackedChanges:{unknown:"Unknown",replaced:"Replaced",with:"with",added:"Added",deleted:"Deleted"},contextMenu:{ariaLabel:"AI actions menu",textMenuAriaLabel:"Text editing menu",customPromptPlaceholder:"Enter custom prompt...",cut:"Cut",cutShortcut:"Ctrl+X",copy:"Copy",copyShortcut:"Ctrl+C",paste:"Paste",pasteShortcut:"Ctrl+V",pastePlainText:"Paste as Plain Text",pastePlainTextShortcut:"Ctrl+Shift+V",delete:"Delete",deleteShortcut:"Del",selectAll:"Select All",selectAllShortcut:"Ctrl+A",selected:"Selected:",aiActions:{askAi:"Ask AI",rewrite:"Rewrite",expand:"Expand",summarize:"Summarize",translate:"Translate",explain:"Explain",fixGrammar:"Fix Grammar",makeFormal:"Make Formal",makeCasual:"Make Casual",custom:"Custom"}},documentOutline:{ariaLabel:"Document outline",closeAriaLabel:"Close outline",closeTitle:"Close outline",title:"Outline",noHeadings:"No headings found. Add headings to your document to see them here."},sidebar:{ariaLabel:"Annotations sidebar"},titleBar:{untitled:"Untitled",documentNameAriaLabel:"Document name",menuBarAriaLabel:"Menu bar"},errors:{loadingDocument:"Loading document...",noDocumentLoaded:"No document loaded",failedToLoad:"Failed to Load Document",unableToParse:"Unable to Parse Document",somethingWentWrong:"Something went wrong",errorDescription:"An error occurred while rendering this component. Please try again or contact support if the problem persists.",errorLabel:"Error:",componentStack:"Component Stack:",tryAgain:"Try Again",showDetails:"Show details",hideDetails:"Hide details",unsavedChanges:"You have unsaved changes. Are you sure you want to leave?"},table:{insertRowAbove:"Insert row above",insertRowBelow:"Insert row below",insertColumnLeft:"Insert column left",insertColumnRight:"Insert column right",deleteRow:"Delete row",deleteColumn:"Delete column",deleteTable:"Delete table",mergeCells:"Merge cells",splitCell:"Split cell",editingTools:"Table editing tools",label:"Table:",cellFillColor:"Cell Fill Color",borderColor:"Border Color",borderWidth:"Border width",unknownAction:"Unknown Action",borders:{all:"All borders",outside:"Outside borders",inside:"Inside borders",none:"No borders",remove:"Remove borders",top:"Top border",bottom:"Bottom border",left:"Left border",right:"Right border",styleAriaLabel:"Border style",tooltip:"Borders"},moreOptions:"More table options",styles:{title:"Table Styles",label:"Styles",normalTable:"Normal Table",tableGrid:"Table Grid",gridTableLight:"Grid Table Light",plainTable1:"Plain Table 1",plainTable2:"Plain Table 2",plainTable3:"Plain Table 3",plainTable4:"Plain Table 4",gridTable1Light:"Grid Table 1 Light",gridTable4Accent1:"Grid Table 4 Accent 1",gridTable5Dark:"Grid Table 5 Dark",listTable3Accent2:"List Table 3 Accent 2",listTable4Accent3:"List Table 4 Accent 3",gridTable4Accent5:"Grid Table 4 Accent 5",gridTable4Accent6:"Grid Table 4 Accent 6"}},tableAdvanced:{verticalAlignment:"Vertical alignment",top:"Top",middle:"Middle",bottom:"Bottom",cellMargins:"Cell margins",textDirection:"Text direction",textDirections:{horizontal:"Horizontal (LR)",verticalRL:"Vertical (top-bottom, RL)",verticalLR:"Vertical (bottom-top, LR)"},toggleNoWrap:"Toggle no-wrap",rowHeight:"Row height",heightRules:{auto:"Auto",atLeast:"At least",exact:"Exact"},rule:"Rule",height:"Height",toggleHeaderRow:"Toggle header row",distributeColumns:"Distribute columns evenly",autoFit:"Auto-fit to contents",tableProperties:"Table properties...",tableAlignment:"Table alignment",alignTableLeft:"Align table left",alignTableCenter:"Align table center",alignTableRight:"Align table right",tableOptionsMenu:"Table options menu",tableOptions:"Table options"},imageTransform:{tooltip:"Transform",rotateClockwise:"Rotate clockwise",rotateCounterClockwise:"Rotate counter-clockwise",flipHorizontal:"Flip horizontal",flipVertical:"Flip vertical"},imageWrap:{inline:"Inline with text",floatLeft:"Float left (wrap right)",floatRight:"Float right (wrap left)",topAndBottom:"Top and bottom",behindText:"Behind text",inFrontOfText:"In front of text",tooltipPrefix:"Wrap: {label}"},responsePreview:{loading:"{action}...",result:"{action} Result",closeEsc:"Close (Esc)",editPrompt:"Edit the result before accepting:",changes:"Changes:",original:"Original:",new:"New:",cancelEdit:"Cancel Edit"},commentMarkers:{resolvedComment:"Resolved comment",comment:"Comment"},editor:{toggleCommentsSidebar:"Toggle comments sidebar",showDocumentOutline:"Show document outline",editing:"Editing",editingDescription:"Edit document directly",suggesting:"Suggesting",suggestingDescription:"Edits become suggestions",viewing:"Viewing",viewingDescription:"Read-only, no edits",failedToParse:"Failed to parse document",linkRemoved:"Link removed",linkCopied:"Link copied to clipboard",failedToSave:"Failed to save document"},hyperlinkPopup:{displayTextPlaceholder:"Display text",urlPlaceholder:"https://example.com",copyLink:"Copy link",editLink:"Edit link",removeLink:"Remove link"},headerFooter:{header:"Header",footer:"Footer",options:"Options",insertPageNumber:"Insert current page number",insertTotalPages:"Insert total page count",remove:"Remove {label}",closeEditing:"Close {label} editing"},image:{placeholder:"Image placeholder",placeholderText:"[Image]",editableAriaLabel:"Editable image"},ruler:{horizontal:"Horizontal ruler",vertical:"Vertical ruler",firstLineIndent:"First line indent",leftIndent:"Left indent",rightIndent:"Right indent",topMargin:"Top margin",bottomMargin:"Bottom margin"},print:{label:"Print",allPages:"All ({totalPages} pages)",singlePage:"Page {start}",pageRange:"Pages {start}-{end}"},unsaved:{unsaved:"Unsaved",saved:"Saved",unsavedTitle:"Document has unsaved changes",savedTitle:"All changes saved",unsavedAriaLabel:"Unsaved changes",savedAriaLabel:"All changes saved"},loading:{label:"Loading"}};var b=p,f=createContext(b),T=createContext("en");function d(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function y(e,o){if(!o)return e;let t={...e};for(let r of Object.keys(o)){let i=o[r];i!==null&&(d(e[r])&&d(i)?t[r]=y(e[r],i):i!==void 0&&(t[r]=i));}return t}function v(e,o){let t=e;for(let r of o.split(".")){if(!d(t))return;t=t[r];}return typeof t=="string"?t:void 0}function C(e){let o={},t=/(=\d+|\w+)\s*\{([^}]*)\}/g,r;for(;(r=t.exec(e))!==null;)o[r[1]]=r[2];return o}function R(e,o,t){return o?e.replace(/\{(\w+),\s*plural,\s*((?:[^{}]|\{[^{}]*\})*)\}/g,(i,n,l)=>{let a=Number(o[n]);if(isNaN(a))return i;let s=C(l),g=s[`=${a}`];if(g!==void 0)return g.replace(/#/g,String(a));let c;try{c=new Intl.PluralRules(t||"en").select(a);}catch{c=a===1?"one":"other";}return (s[c]??s.other??"").replace(/#/g,String(a))}).replace(/\{(\w+)\}/g,(i,n)=>{let l=o[n];return l!==void 0?String(l):`{${n}}`}):e}function x({i18n:e,children:o}){let t=e,r=typeof t?._lang=="string"?t._lang:"en",i=useMemo(()=>y(b,t),[t]);return jsx(T.Provider,{value:r,children:jsx(f.Provider,{value:i,children:o})})}function A(){let e=useContext(f),o=useContext(T);return {t:useCallback((r,i)=>{let n=v(e,r);return R(n??r,i,o)},[e,o])}}
2
+ export{x as a,A as b};
@@ -0,0 +1 @@
1
+ 'use strict';var i=Object.create;var f=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty;var h=a=>{throw TypeError(a)};var n=(a,b,c)=>b in a?f(a,b,{enumerable:true,configurable:true,writable:true,value:c}):a[b]=c;var r=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var s=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var o=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of k(b))!m.call(a,e)&&e!==c&&f(a,e,{get:()=>b[e],enumerable:!(d=j(b,e))||d.enumerable});return a};var t=(a,b,c)=>(c=a!=null?i(l(a)):{},o(b||!a||!a.__esModule?f(c,"default",{value:a,enumerable:true}):c,a));var u=(a,b,c)=>n(a,typeof b!="symbol"?b+"":b,c),g=(a,b,c)=>b.has(a)||h("Cannot "+c);var p=(a,b,c)=>(g(a,b,"read from private field"),c?c.call(a):b.get(a)),v=(a,b,c)=>b.has(a)?h("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(a):b.set(a,c),q=(a,b,c,d)=>(g(a,b,"write to private field"),d?d.call(a,c):b.set(a,c),c),w=(a,b,c)=>(g(a,b,"access private method"),c);var x=(a,b,c,d)=>({set _(e){q(a,b,e,c);},get _(){return p(a,b,d)}});exports.a=r;exports.b=s;exports.c=t;exports.d=u;exports.e=p;exports.f=v;exports.g=q;exports.h=w;exports.i=x;
@@ -0,0 +1,3 @@
1
+ 'use strict';var chunkH5NTJZO4_js=require('./chunk-H5NTJZO4.js');var kt=chunkH5NTJZO4_js.b((qc,Qr)=>{typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Qr.exports={nextTick:il}:Qr.exports=process;function il(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var n=arguments.length,a,o;switch(n){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t);});case 3:return process.nextTick(function(){e.call(null,t,r);});case 4:return process.nextTick(function(){e.call(null,t,r,i);});default:for(a=new Array(n-1),o=0;o<a.length;)a[o++]=arguments[o];return process.nextTick(function(){e.apply(null,a);})}}});var Hn=chunkH5NTJZO4_js.b((Lc,Wn)=>{var nl={}.toString;Wn.exports=Array.isArray||function(e){return nl.call(e)=="[object Array]"};});var $r=chunkH5NTJZO4_js.b((Mc,Kn)=>{Kn.exports=chunkH5NTJZO4_js.a("stream");});var St=chunkH5NTJZO4_js.b((ei,Xn)=>{var sr=chunkH5NTJZO4_js.a("buffer"),pe=sr.Buffer;function Yn(e,t){for(var r in e)t[r]=e[r];}pe.from&&pe.alloc&&pe.allocUnsafe&&pe.allocUnsafeSlow?Xn.exports=sr:(Yn(sr,ei),ei.Buffer=Ve);function Ve(e,t,r){return pe(e,t,r)}Yn(pe,Ve);Ve.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return pe(e,t,r)};Ve.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=pe(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Ve.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return pe(e)};Ve.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return sr.SlowBuffer(e)};});var Je=chunkH5NTJZO4_js.b(Z=>{function al(e){return Array.isArray?Array.isArray(e):fr(e)==="[object Array]"}Z.isArray=al;function ol(e){return typeof e=="boolean"}Z.isBoolean=ol;function sl(e){return e===null}Z.isNull=sl;function fl(e){return e==null}Z.isNullOrUndefined=fl;function ll(e){return typeof e=="number"}Z.isNumber=ll;function ul(e){return typeof e=="string"}Z.isString=ul;function hl(e){return typeof e=="symbol"}Z.isSymbol=hl;function dl(e){return e===void 0}Z.isUndefined=dl;function cl(e){return fr(e)==="[object RegExp]"}Z.isRegExp=cl;function pl(e){return typeof e=="object"&&e!==null}Z.isObject=pl;function vl(e){return fr(e)==="[object Date]"}Z.isDate=vl;function _l(e){return fr(e)==="[object Error]"||e instanceof Error}Z.isError=_l;function gl(e){return typeof e=="function"}Z.isFunction=gl;function wl(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Z.isPrimitive=wl;Z.isBuffer=chunkH5NTJZO4_js.a("buffer").Buffer.isBuffer;function fr(e){return Object.prototype.toString.call(e)}});var Gn=chunkH5NTJZO4_js.b((Uc,ti)=>{typeof Object.create=="function"?ti.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}}));}:ti.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t;}};});var Qe=chunkH5NTJZO4_js.b((Zc,ii)=>{try{if(ri=chunkH5NTJZO4_js.a("util"),typeof ri.inherits!="function")throw "";ii.exports=ri.inherits;}catch{ii.exports=Gn();}var ri;});var Jn=chunkH5NTJZO4_js.b((jc,ni)=>{function bl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Vn=St().Buffer,Et=chunkH5NTJZO4_js.a("util");function ml(e,t,r){e.copy(t,r);}ni.exports=(function(){function e(){bl(this,e),this.head=null,this.tail=null,this.length=0;}return e.prototype.push=function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length;},e.prototype.unshift=function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length;},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0;},e.prototype.join=function(r){if(this.length===0)return "";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n},e.prototype.concat=function(r){if(this.length===0)return Vn.alloc(0);for(var i=Vn.allocUnsafe(r>>>0),n=this.head,a=0;n;)ml(n.data,i,a),a+=n.data.length,n=n.next;return i},e})();Et&&Et.inspect&&Et.inspect.custom&&(ni.exports.prototype[Et.inspect.custom]=function(){var e=Et.inspect({length:this.length});return this.constructor.name+" "+e});});var ai=chunkH5NTJZO4_js.b((Wc,Qn)=>{var lr=kt();function yl(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=true,lr.nextTick(ur,this,e)):lr.nextTick(ur,this,e)),this):(this._readableState&&(this._readableState.destroyed=true),this._writableState&&(this._writableState.destroyed=true),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=true,lr.nextTick(ur,r,a)):lr.nextTick(ur,r,a):t&&t(a);}),this)}function xl(){this._readableState&&(this._readableState.destroyed=false,this._readableState.reading=false,this._readableState.ended=false,this._readableState.endEmitted=false),this._writableState&&(this._writableState.destroyed=false,this._writableState.ended=false,this._writableState.ending=false,this._writableState.finalCalled=false,this._writableState.prefinished=false,this._writableState.finished=false,this._writableState.errorEmitted=false);}function ur(e,t){e.emit("error",t);}Qn.exports={destroy:yl,undestroy:xl};});var ea=chunkH5NTJZO4_js.b((Hc,$n)=>{$n.exports=chunkH5NTJZO4_js.a("util").deprecate;});var si=chunkH5NTJZO4_js.b((Kc,fa)=>{var Fe=kt();fa.exports=q;function ra(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Pl(t,e);};}var kl=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Fe.nextTick,$e;q.WritableState=Tt;var ia=Object.create(Je());ia.inherits=Qe();var Sl={deprecate:ea()},na=$r(),dr=St().Buffer,El=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Cl(e){return dr.from(e)}function Tl(e){return dr.isBuffer(e)||e instanceof El}var aa=ai();ia.inherits(q,na);function Al(){}function Tt(e,t){$e=$e||Ne(),e=e||{};var r=t instanceof $e;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,n=e.writableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=false,this.needDrain=false,this.ending=false,this.ended=false,this.finished=false,this.destroyed=false;var o=e.decodeStrings===false;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=false,this.corked=0,this.sync=true,this.bufferProcessing=false,this.onwrite=function(s){Fl(t,s);},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=false,this.errorEmitted=false,this.bufferedRequestCount=0,this.corkedRequestsFree=new ra(this);}Tt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Tt.prototype,"buffer",{get:Sl.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")});}catch{}})();var hr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(hr=Function.prototype[Symbol.hasInstance],Object.defineProperty(q,Symbol.hasInstance,{value:function(e){return hr.call(this,e)?true:this!==q?false:e&&e._writableState instanceof Tt}})):hr=function(e){return e instanceof this};function q(e){if($e=$e||Ne(),!hr.call(q,this)&&!(this instanceof $e))return new q(e);this._writableState=new Tt(e,this),this.writable=true,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),na.call(this);}q.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"));};function Rl(e,t){var r=new Error("write after end");e.emit("error",r),Fe.nextTick(t,r);}function Ol(e,t,r,i){var n=true,a=false;return r===null?a=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),Fe.nextTick(i,a),n=false),n}q.prototype.write=function(e,t,r){var i=this._writableState,n=false,a=!i.objectMode&&Tl(e);return a&&!dr.isBuffer(e)&&(e=Cl(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=Al),i.ended?Rl(this,r):(a||Ol(this,i,e,r))&&(i.pendingcb++,n=Dl(this,i,a,e,t,r)),n};q.prototype.cork=function(){var e=this._writableState;e.corked++;};q.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&oa(this,e));};q.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function Il(e,t,r){return !e.objectMode&&e.decodeStrings!==false&&typeof t=="string"&&(t=dr.from(t,r)),t}Object.defineProperty(q.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function Dl(e,t,r,i,n,a){if(!r){var o=Il(t,i,n);i!==o&&(r=true,n="buffer",i=o);}var s=t.objectMode?1:i.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=true),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:a,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1;}else oi(e,t,false,s,i,n,a);return u}function oi(e,t,r,i,n,a,o){t.writelen=i,t.writecb=o,t.writing=true,t.sync=true,r?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=false;}function Bl(e,t,r,i,n){--t.pendingcb,r?(Fe.nextTick(n,i),Fe.nextTick(Ct,e,t),e._writableState.errorEmitted=true,e.emit("error",i)):(n(i),e._writableState.errorEmitted=true,e.emit("error",i),Ct(e,t));}function zl(e){e.writing=false,e.writecb=null,e.length-=e.writelen,e.writelen=0;}function Fl(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(zl(r),t)Bl(e,r,i,t,n);else {var a=sa(r);!a&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&oa(e,r),i?kl(ta,e,r,a,n):ta(e,r,a,n);}}function ta(e,t,r,i){r||Nl(e,t),t.pendingcb--,i(),Ct(e,t);}function Nl(e,t){t.length===0&&t.needDrain&&(t.needDrain=false,e.emit("drain"));}function oa(e,t){t.bufferProcessing=true;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var o=0,s=true;r;)n[o]=r,r.isBuf||(s=false),r=r.next,o+=1;n.allBuffers=s,oi(e,t,true,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new ra(t),t.bufferedRequestCount=0;}else {for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,w=t.objectMode?1:u.length;if(oi(e,t,false,w,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null);}t.bufferedRequest=r,t.bufferProcessing=false;}q.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"));};q.prototype._writev=null;q.prototype.end=function(e,t,r){var i=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||Ml(this,i,r);};function sa(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function ql(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=true,e.emit("prefinish"),Ct(e,t);});}function Ll(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=true,Fe.nextTick(ql,e,t)):(t.prefinished=true,e.emit("prefinish")));}function Ct(e,t){var r=sa(t);return r&&(Ll(e,t),t.pendingcb===0&&(t.finished=true,e.emit("finish"))),r}function Ml(e,t,r){t.ending=true,Ct(e,t),r&&(t.finished?Fe.nextTick(r):e.once("finish",r)),t.ended=true,e.writable=false;}function Pl(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next;}t.corkedRequestsFree.next=e;}Object.defineProperty(q.prototype,"destroyed",{get:function(){return this._writableState===void 0?false:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e);}});q.prototype.destroy=aa.destroy;q.prototype._undestroy=aa.undestroy;q.prototype._destroy=function(e,t){this.end(),t(e);};});var Ne=chunkH5NTJZO4_js.b((Yc,da)=>{var la=kt(),Ul=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};da.exports=ve;var ua=Object.create(Je());ua.inherits=Qe();var ha=ui(),li=si();ua.inherits(ve,ha);for(fi=Ul(li.prototype),cr=0;cr<fi.length;cr++)pr=fi[cr],ve.prototype[pr]||(ve.prototype[pr]=li.prototype[pr]);var fi,pr,cr;function ve(e){if(!(this instanceof ve))return new ve(e);ha.call(this,e),li.call(this,e),e&&e.readable===false&&(this.readable=false),e&&e.writable===false&&(this.writable=false),this.allowHalfOpen=true,e&&e.allowHalfOpen===false&&(this.allowHalfOpen=false),this.once("end",Zl);}Object.defineProperty(ve.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function Zl(){this.allowHalfOpen||this._writableState.ended||la.nextTick(jl,this);}function jl(e){e.end();}Object.defineProperty(ve.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?false:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e);}});ve.prototype._destroy=function(e,t){this.push(null),this.end(),la.nextTick(t,e);};});var ci=chunkH5NTJZO4_js.b(pa=>{var di=St().Buffer,ca=di.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return true;default:return false}};function Wl(e){if(!e)return "utf8";for(var t;;)switch(e){case "utf8":case "utf-8":return "utf8";case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return "utf16le";case "latin1":case "binary":return "latin1";case "base64":case "ascii":case "hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=true;}}function Hl(e){var t=Wl(e);if(typeof t!="string"&&(di.isEncoding===ca||!ca(e)))throw new Error("Unknown encoding: "+e);return t||e}pa.StringDecoder=At;function At(e){this.encoding=Hl(e);var t;switch(this.encoding){case "utf16le":this.text=Jl,this.end=Ql,t=4;break;case "utf8":this.fillLast=Xl,t=4;break;case "base64":this.text=$l,this.end=eu,t=3;break;default:this.write=tu,this.end=ru;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=di.allocUnsafe(t);}At.prototype.write=function(e){if(e.length===0)return "";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return "";r=this.lastNeed,this.lastNeed=0;}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};At.prototype.end=Vl;At.prototype.text=Gl;At.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length;};function hi(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Kl(e,t,r){var i=t.length-1;if(i<r)return 0;var n=hi(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=hi(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=hi(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function Yl(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function Xl(e){var t=this.lastTotal-this.lastNeed,r=Yl(this,e);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length;}function Gl(e,t){var r=Kl(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function Vl(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function Jl(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Ql(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function $l(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function eu(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function tu(e){return e.toString(this.encoding)}function ru(e){return e&&e.length?this.write(e):""}});var ui=chunkH5NTJZO4_js.b((Vc,Ca)=>{var tt=kt();Ca.exports=B;var iu=Hn(),Rt;B.ReadableState=ya;chunkH5NTJZO4_js.a("events").EventEmitter;var wa=function(e,t){return e.listeners(t).length},wi=$r(),Ot=St().Buffer,nu=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function au(e){return Ot.from(e)}function ou(e){return Ot.isBuffer(e)||e instanceof nu}var ba=Object.create(Je());ba.inherits=Qe();var pi=chunkH5NTJZO4_js.a("util"),O=void 0;pi&&pi.debuglog?O=pi.debuglog("stream"):O=function(){};var su=Jn(),ma=ai(),et;ba.inherits(B,wi);var vi=["error","close","destroy","pause","resume"];function fu(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):iu(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]];}function ya(e,t){Rt=Rt||Ne(),e=e||{};var r=t instanceof Rt;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,n=e.readableHighWaterMark,a=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(n||n===0)?this.highWaterMark=n:this.highWaterMark=a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new su,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=false,this.endEmitted=false,this.reading=false,this.sync=true,this.needReadable=false,this.emittedReadable=false,this.readableListening=false,this.resumeScheduled=false,this.destroyed=false,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=false,this.decoder=null,this.encoding=null,e.encoding&&(et||(et=ci().StringDecoder),this.decoder=new et(e.encoding),this.encoding=e.encoding);}function B(e){if(Rt=Rt||Ne(),!(this instanceof B))return new B(e);this._readableState=new ya(e,this),this.readable=true,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),wi.call(this);}Object.defineProperty(B.prototype,"destroyed",{get:function(){return this._readableState===void 0?false:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e);}});B.prototype.destroy=ma.destroy;B.prototype._undestroy=ma.undestroy;B.prototype._destroy=function(e,t){this.push(null),t(e);};B.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=true:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Ot.from(e,t),t=""),i=true),xa(this,e,t,false,i)};B.prototype.unshift=function(e){return xa(this,e,null,true,false)};function xa(e,t,r,i,n){var a=e._readableState;if(t===null)a.reading=false,du(e,a);else {var o;n||(o=lu(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==Ot.prototype&&(t=au(t)),i?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_i(e,a,t,true):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=false,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?_i(e,a,t,false):ka(e,a)):_i(e,a,t,false))):i||(a.reading=false);}return uu(a)}function _i(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&vr(e)),ka(e,t);}function lu(e,t){var r;return !ou(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function uu(e){return !e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}B.prototype.isPaused=function(){return this._readableState.flowing===false};B.prototype.setEncoding=function(e){return et||(et=ci().StringDecoder),this._readableState.decoder=new et(e),this._readableState.encoding=e,this};var va=8388608;function hu(e){return e>=va?e=va:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function _a(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=hu(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=true,0))}B.prototype.read=function(e){O("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=false),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return O("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?gi(this):vr(this),null;if(e=_a(e,t),e===0&&t.ended)return t.length===0&&gi(this),null;var i=t.needReadable;O("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=true,O("length less than watermark",i)),t.ended||t.reading?(i=false,O("reading or ended",i)):i&&(O("do read"),t.reading=true,t.sync=true,t.length===0&&(t.needReadable=true),this._read(t.highWaterMark),t.sync=false,t.reading||(e=_a(r,t)));var n;return e>0?n=Sa(e,t):n=null,n===null?(t.needReadable=true,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=true),r!==e&&t.ended&&gi(this)),n!==null&&this.emit("data",n),n};function du(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length);}t.ended=true,vr(e);}}function vr(e){var t=e._readableState;t.needReadable=false,t.emittedReadable||(O("emitReadable",t.flowing),t.emittedReadable=true,t.sync?tt.nextTick(ga,e):ga(e));}function ga(e){O("emit readable"),e.emit("readable"),bi(e);}function ka(e,t){t.readingMore||(t.readingMore=true,tt.nextTick(cu,e,t));}function cu(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(O("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=false;}B.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"));};B.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,O("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==false)&&e!==process.stdout&&e!==process.stderr,a=n?s:y;i.endEmitted?tt.nextTick(a):r.once("end",a),e.on("unpipe",o);function o(_,c){O("onunpipe"),_===r&&c&&c.hasUnpiped===false&&(c.hasUnpiped=true,l());}function s(){O("onend"),e.end();}var u=pu(r);e.on("drain",u);var f=false;function l(){O("cleanup"),e.removeListener("close",k),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",y),r.removeListener("data",d),f=true,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u();}var w=false;r.on("data",d);function d(_){O("ondata"),w=false;var c=e.write(_);c===false&&!w&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&Ea(i.pipes,e)!==-1)&&!f&&(O("false write response, pause",i.awaitDrain),i.awaitDrain++,w=true),r.pause());}function h(_){O("onerror",_),y(),e.removeListener("error",h),wa(e,"error")===0&&e.emit("error",_);}fu(e,"error",h);function k(){e.removeListener("finish",b),y();}e.once("close",k);function b(){O("onfinish"),e.removeListener("close",k),y();}e.once("finish",b);function y(){O("unpipe"),r.unpipe(e);}return e.emit("pipe",r),i.flowing||(O("pipe resume"),r.resume()),e};function pu(e){return function(){var t=e._readableState;O("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&wa(e,"data")&&(t.flowing=true,bi(e));}}B.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=false,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=false;for(var a=0;a<n;a++)i[a].emit("unpipe",this,{hasUnpiped:false});return this}var o=Ea(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};B.prototype.on=function(e,t){var r=wi.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==false&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=true,i.emittedReadable=false,i.reading?i.length&&vr(this):tt.nextTick(vu,this));}return r};B.prototype.addListener=B.prototype.on;function vu(e){O("readable nexttick read 0"),e.read(0);}B.prototype.resume=function(){var e=this._readableState;return e.flowing||(O("resume"),e.flowing=true,_u(this,e)),this};function _u(e,t){t.resumeScheduled||(t.resumeScheduled=true,tt.nextTick(gu,e,t));}function gu(e,t){t.reading||(O("resume read 0"),e.read(0)),t.resumeScheduled=false,t.awaitDrain=0,e.emit("resume"),bi(e),t.flowing&&!t.reading&&e.read(0);}B.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==false&&(O("pause"),this._readableState.flowing=false,this.emit("pause")),this};function bi(e){var t=e._readableState;for(O("flow",t.flowing);t.flowing&&e.read()!==null;);}B.prototype.wrap=function(e){var t=this,r=this._readableState,i=false;e.on("end",function(){if(O("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o);}t.push(null);}),e.on("data",function(o){if(O("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(i=true,e.pause());}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=(function(o){return function(){return e[o].apply(e,arguments)}})(n));for(var a=0;a<vi.length;a++)e.on(vi[a],this.emit.bind(this,vi[a]));return this._read=function(o){O("wrapped _read",o),i&&(i=false,e.resume());},this};Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:false,get:function(){return this._readableState.highWaterMark}});B._fromList=Sa;function Sa(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=wu(e,t.buffer,t.decoder),r}function wu(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?bu(e,t):mu(e,t),i}function bu(e,t){var r=t.head,i=1,n=r.data;for(e-=n.length;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),e-=o,e===0){o===a.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++i;}return t.length-=i,n}function mu(e,t){var r=Ot.allocUnsafe(e),i=t.head,n=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var a=i.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),e-=o,e===0){o===a.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(o));break}++n;}return t.length-=n,r}function gi(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=true,tt.nextTick(yu,t,e));}function yu(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=true,t.readable=false,t.emit("end"));}function Ea(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return -1}});var mi=chunkH5NTJZO4_js.b((Jc,Ra)=>{Ra.exports=_e;var _r=Ne(),Aa=Object.create(Je());Aa.inherits=Qe();Aa.inherits(_e,_r);function xu(e,t){var r=this._transformState;r.transforming=false;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=false,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark);}function _e(e){if(!(this instanceof _e))return new _e(e);_r.call(this,e),this._transformState={afterTransform:xu.bind(this),needTransform:false,transforming:false,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=true,this._readableState.sync=false,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",ku);}function ku(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){Ta(e,t,r);}):Ta(this,null,null);}_e.prototype.push=function(e,t){return this._transformState.needTransform=false,_r.prototype.push.call(this,e,t)};_e.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};_e.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark);}};_e.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=true,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=true;};_e.prototype._destroy=function(e,t){var r=this;_r.prototype._destroy.call(this,e,function(i){t(i),r.emit("close");});};function Ta(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var Ba=chunkH5NTJZO4_js.b((Qc,Da)=>{Da.exports=It;var Oa=mi(),Ia=Object.create(Je());Ia.inherits=Qe();Ia.inherits(It,Oa);function It(e){if(!(this instanceof It))return new It(e);Oa.call(this,e);}It.prototype._transform=function(e,t,r){r(null,e);};});var yi=chunkH5NTJZO4_js.b((P,gr)=>{var oe=chunkH5NTJZO4_js.a("stream");process.env.READABLE_STREAM==="disable"&&oe?(gr.exports=oe,P=gr.exports=oe.Readable,P.Readable=oe.Readable,P.Writable=oe.Writable,P.Duplex=oe.Duplex,P.Transform=oe.Transform,P.PassThrough=oe.PassThrough,P.Stream=oe):(P=gr.exports=ui(),P.Stream=oe||P,P.Readable=P,P.Writable=si(),P.Duplex=Ne(),P.Transform=mi(),P.PassThrough=Ba());});var ge=chunkH5NTJZO4_js.b(X=>{X.base64=true;X.array=true;X.string=true;X.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";X.nodebuffer=typeof Buffer<"u";X.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")X.blob=false;else {xi=new ArrayBuffer(0);try{X.blob=new Blob([xi],{type:"application/zip"}).size===0;}catch{try{za=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,ki=new za,ki.append(xi),X.blob=ki.getBlob("application/zip").size===0;}catch{X.blob=false;}}}var xi,za,ki;try{X.nodestream=!!yi().Readable;}catch{X.nodestream=false;}});var Ei=chunkH5NTJZO4_js.b(Si=>{var Su=F(),Eu=ge(),se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Si.encode=function(e){for(var t=[],r,i,n,a,o,s,u,f=0,l=e.length,w=l,d=Su.getTypeOf(e)!=="string";f<e.length;)w=l-f,d?(r=e[f++],i=f<l?e[f++]:0,n=f<l?e[f++]:0):(r=e.charCodeAt(f++),i=f<l?e.charCodeAt(f++):0,n=f<l?e.charCodeAt(f++):0),a=r>>2,o=(r&3)<<4|i>>4,s=w>1?(i&15)<<2|n>>6:64,u=w>2?n&63:64,t.push(se.charAt(a)+se.charAt(o)+se.charAt(s)+se.charAt(u));return t.join("")};Si.decode=function(e){var t,r,i,n,a,o,s,u=0,f=0,l="data:";if(e.substr(0,l.length)===l)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var w=e.length*3/4;if(e.charAt(e.length-1)===se.charAt(64)&&w--,e.charAt(e.length-2)===se.charAt(64)&&w--,w%1!==0)throw new Error("Invalid base64 input, bad content length.");var d;for(Eu.uint8array?d=new Uint8Array(w|0):d=new Array(w|0);u<e.length;)n=se.indexOf(e.charAt(u++)),a=se.indexOf(e.charAt(u++)),o=se.indexOf(e.charAt(u++)),s=se.indexOf(e.charAt(u++)),t=n<<2|a>>4,r=(a&15)<<4|o>>2,i=(o&3)<<6|s,d[f++]=t,o!==64&&(d[f++]=r),s!==64&&(d[f++]=i);return d};});var Dt=chunkH5NTJZO4_js.b((tp,Fa)=>{Fa.exports={isNode:typeof Buffer<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}};});var Ma=chunkH5NTJZO4_js.b((rp,La)=>{var Na=global.MutationObserver||global.WebKitMutationObserver,rt;process.browser?Na?(Ci=0,qa=new Na(Bt),Ti=global.document.createTextNode(""),qa.observe(Ti,{characterData:true}),rt=function(){Ti.data=Ci=++Ci%2;}):!global.setImmediate&&typeof global.MessageChannel<"u"?(Ai=new global.MessageChannel,Ai.port1.onmessage=Bt,rt=function(){Ai.port2.postMessage(0);}):"document"in global&&"onreadystatechange"in global.document.createElement("script")?rt=function(){var e=global.document.createElement("script");e.onreadystatechange=function(){Bt(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null;},global.document.documentElement.appendChild(e);}:rt=function(){setTimeout(Bt,0);}:rt=function(){process.nextTick(Bt);};var Ci,qa,Ti,Ai,Ri,zt=[];function Bt(){Ri=true;for(var e,t,r=zt.length;r;){for(t=zt,zt=[],e=-1;++e<r;)t[e]();r=zt.length;}Ri=false;}La.exports=Cu;function Cu(e){zt.push(e)===1&&!Ri&&rt();}});var Ka=chunkH5NTJZO4_js.b((ip,Ha)=>{var Pa=Ma();function it(){}var j={},Ua=["REJECTED"],Oi=["FULFILLED"],Za=["PENDING"];process.browser||(Ft=["UNHANDLED"]);var Ft;Ha.exports=Se;function Se(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=Za,this.queue=[],this.outcome=void 0,process.browser||(this.handled=Ft),e!==it&&ja(this,e);}Se.prototype.finally=function(e){if(typeof e!="function")return this;var t=this.constructor;return this.then(r,i);function r(n){function a(){return n}return t.resolve(e()).then(a)}function i(n){function a(){throw n}return t.resolve(e()).then(a)}};Se.prototype.catch=function(e){return this.then(null,e)};Se.prototype.then=function(e,t){if(typeof e!="function"&&this.state===Oi||typeof t!="function"&&this.state===Ua)return this;var r=new this.constructor(it);if(process.browser||this.handled===Ft&&(this.handled=null),this.state!==Za){var i=this.state===Oi?e:t;Ii(r,i,this.outcome);}else this.queue.push(new Nt(r,e,t));return r};function Nt(e,t,r){this.promise=e,typeof t=="function"&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof r=="function"&&(this.onRejected=r,this.callRejected=this.otherCallRejected);}Nt.prototype.callFulfilled=function(e){j.resolve(this.promise,e);};Nt.prototype.otherCallFulfilled=function(e){Ii(this.promise,this.onFulfilled,e);};Nt.prototype.callRejected=function(e){j.reject(this.promise,e);};Nt.prototype.otherCallRejected=function(e){Ii(this.promise,this.onRejected,e);};function Ii(e,t,r){Pa(function(){var i;try{i=t(r);}catch(n){return j.reject(e,n)}i===e?j.reject(e,new TypeError("Cannot resolve promise with itself")):j.resolve(e,i);});}j.resolve=function(e,t){var r=Wa(Tu,t);if(r.status==="error")return j.reject(e,r.value);var i=r.value;if(i)ja(e,i);else {e.state=Oi,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t);}return e};j.reject=function(e,t){e.state=Ua,e.outcome=t,process.browser||e.handled===Ft&&Pa(function(){e.handled===Ft&&process.emit("unhandledRejection",t,e);});for(var r=-1,i=e.queue.length;++r<i;)e.queue[r].callRejected(t);return e};function Tu(e){var t=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof t=="function")return function(){t.apply(e,arguments);}}function ja(e,t){var r=false;function i(s){r||(r=true,j.reject(e,s));}function n(s){r||(r=true,j.resolve(e,s));}function a(){t(n,i);}var o=Wa(a);o.status==="error"&&i(o.value);}function Wa(e,t){var r={};try{r.value=e(t),r.status="success";}catch(i){r.status="error",r.value=i;}return r}Se.resolve=Au;function Au(e){return e instanceof this?e:j.resolve(new this(it),e)}Se.reject=Ru;function Ru(e){var t=new this(it);return j.reject(t,e)}Se.all=Ou;function Ou(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=false;if(!r)return this.resolve([]);for(var n=new Array(r),a=0,o=-1,s=new this(it);++o<r;)u(e[o],o);return s;function u(f,l){t.resolve(f).then(w,function(d){i||(i=true,j.reject(s,d));});function w(d){n[l]=d,++a===r&&!i&&(i=true,j.resolve(s,n));}}}Se.race=Iu;function Iu(e){var t=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var r=e.length,i=false;if(!r)return this.resolve([]);for(var n=-1,a=new this(it);++n<r;)o(e[n]);return a;function o(s){t.resolve(s).then(function(u){i||(i=true,j.resolve(a,u));},function(u){i||(i=true,j.reject(a,u));});}}});var nt=chunkH5NTJZO4_js.b((np,Ya)=>{var Di=null;typeof Promise<"u"?Di=Promise:Di=Ka();Ya.exports={Promise:Di};});var Ga=chunkH5NTJZO4_js.b(Xa=>{(function(e,t){if(e.setImmediate)return;var r=1,i={},n=false,a=e.document,o;function s(c){typeof c!="function"&&(c=new Function(""+c));for(var m=new Array(arguments.length-1),p=0;p<m.length;p++)m[p]=arguments[p+1];var g={callback:c,args:m};return i[r]=g,o(r),r++}function u(c){delete i[c];}function f(c){var m=c.callback,p=c.args;switch(p.length){case 0:m();break;case 1:m(p[0]);break;case 2:m(p[0],p[1]);break;case 3:m(p[0],p[1],p[2]);break;default:m.apply(t,p);break}}function l(c){if(n)setTimeout(l,0,c);else {var m=i[c];if(m){n=true;try{f(m);}finally{u(c),n=false;}}}}function w(){o=function(c){process.nextTick(function(){l(c);});};}function d(){if(e.postMessage&&!e.importScripts){var c=true,m=e.onmessage;return e.onmessage=function(){c=false;},e.postMessage("","*"),e.onmessage=m,c}}function h(){var c="setImmediate$"+Math.random()+"$",m=function(p){p.source===e&&typeof p.data=="string"&&p.data.indexOf(c)===0&&l(+p.data.slice(c.length));};e.addEventListener?e.addEventListener("message",m,false):e.attachEvent("onmessage",m),o=function(p){e.postMessage(c+p,"*");};}function k(){var c=new MessageChannel;c.port1.onmessage=function(m){var p=m.data;l(p);},o=function(m){c.port2.postMessage(m);};}function b(){var c=a.documentElement;o=function(m){var p=a.createElement("script");p.onreadystatechange=function(){l(m),p.onreadystatechange=null,c.removeChild(p),p=null;},c.appendChild(p);};}function y(){o=function(c){setTimeout(l,0,c);};}var _=Object.getPrototypeOf&&Object.getPrototypeOf(e);_=_&&_.setTimeout?_:e,{}.toString.call(e.process)==="[object process]"?w():d()?h():e.MessageChannel?k():a&&"onreadystatechange"in a.createElement("script")?b():y(),_.setImmediate=s,_.clearImmediate=u;})(typeof self>"u"?typeof global>"u"?Xa:global:self);});var F=chunkH5NTJZO4_js.b(L=>{var Ee=ge(),Du=Ei(),at=Dt(),Bi=nt();Ga();function Bu(e){var t=null;return Ee.uint8array?t=new Uint8Array(e.length):t=new Array(e.length),br(e,t)}L.newBlob=function(e,t){L.checkSupport("blob");try{return new Blob([e],{type:t})}catch{try{var r=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,i=new r;return i.append(e),i.getBlob(t)}catch{throw new Error("Bug : can't construct the Blob.")}}};function qt(e){return e}function br(e,t){for(var r=0;r<e.length;++r)t[r]=e.charCodeAt(r)&255;return t}var wr={stringifyByChunk:function(e,t,r){var i=[],n=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;n<a;)t==="array"||t==="nodebuffer"?i.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+r,a)))):i.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+r,a)))),n+=r;return i.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:(function(){try{return Ee.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return false}})(),nodebuffer:(function(){try{return Ee.nodebuffer&&String.fromCharCode.apply(null,at.allocBuffer(1)).length===1}catch{return false}})()}};function Lt(e){var t=65536,r=L.getTypeOf(e),i=true;if(r==="uint8array"?i=wr.applyCanBeUsed.uint8array:r==="nodebuffer"&&(i=wr.applyCanBeUsed.nodebuffer),i)for(;t>1;)try{return wr.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2);}return wr.stringifyByChar(e)}L.applyFromCharCode=Lt;function mr(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}var Ce={};Ce.string={string:qt,array:function(e){return br(e,new Array(e.length))},arraybuffer:function(e){return Ce.string.uint8array(e).buffer},uint8array:function(e){return br(e,new Uint8Array(e.length))},nodebuffer:function(e){return br(e,at.allocBuffer(e.length))}};Ce.array={string:Lt,array:qt,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return at.newBufferFrom(e)}};Ce.arraybuffer={string:function(e){return Lt(new Uint8Array(e))},array:function(e){return mr(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:qt,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return at.newBufferFrom(new Uint8Array(e))}};Ce.uint8array={string:Lt,array:function(e){return mr(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:qt,nodebuffer:function(e){return at.newBufferFrom(e)}};Ce.nodebuffer={string:Lt,array:function(e){return mr(e,new Array(e.length))},arraybuffer:function(e){return Ce.nodebuffer.uint8array(e).buffer},uint8array:function(e){return mr(e,new Uint8Array(e.length))},nodebuffer:qt};L.transformTo=function(e,t){if(t||(t=""),!e)return t;L.checkSupport(e);var r=L.getTypeOf(t),i=Ce[r][e](t);return i};L.resolve=function(e){for(var t=e.split("/"),r=[],i=0;i<t.length;i++){var n=t[i];n==="."||n===""&&i!==0&&i!==t.length-1||(n===".."?r.pop():r.push(n));}return r.join("/")};L.getTypeOf=function(e){if(typeof e=="string")return "string";if(Object.prototype.toString.call(e)==="[object Array]")return "array";if(Ee.nodebuffer&&at.isBuffer(e))return "nodebuffer";if(Ee.uint8array&&e instanceof Uint8Array)return "uint8array";if(Ee.arraybuffer&&e instanceof ArrayBuffer)return "arraybuffer"};L.checkSupport=function(e){var t=Ee[e.toLowerCase()];if(!t)throw new Error(e+" is not supported by this platform")};L.MAX_VALUE_16BITS=65535;L.MAX_VALUE_32BITS=-1;L.pretty=function(e){var t="",r,i;for(i=0;i<(e||"").length;i++)r=e.charCodeAt(i),t+="\\x"+(r<16?"0":"")+r.toString(16).toUpperCase();return t};L.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[]);});};L.inherits=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r;};L.extend=function(){var e={},t,r;for(t=0;t<arguments.length;t++)for(r in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],r)&&typeof e[r]>"u"&&(e[r]=arguments[t][r]);return e};L.prepareContent=function(e,t,r,i,n){var a=Bi.Promise.resolve(t).then(function(o){var s=Ee.blob&&(o instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(o))!==-1);return s&&typeof FileReader<"u"?new Bi.Promise(function(u,f){var l=new FileReader;l.onload=function(w){u(w.target.result);},l.onerror=function(w){f(w.target.error);},l.readAsArrayBuffer(o);}):o});return a.then(function(o){var s=L.getTypeOf(o);return s?(s==="arraybuffer"?o=L.transformTo("uint8array",o):s==="string"&&(n?o=Du.decode(o):r&&i!==true&&(o=Bu(o))),o):Bi.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})};});var G=chunkH5NTJZO4_js.b((sp,Ja)=>{function Va(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=true,this.isFinished=false,this.isLocked=false,this._listeners={data:[],end:[],error:[]},this.previous=null;}Va.prototype={push:function(e){this.emit("data",e);},end:function(){if(this.isFinished)return false;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0;}catch(e){this.emit("error",e);}return true},error:function(e){return this.isFinished?false:(this.isPaused?this.generatedError=e:(this.isFinished=true,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),true)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[];},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t);},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(r){t.processChunk(r);}),e.on("end",function(){t.end();}),e.on("error",function(r){t.error(r);}),this},pause:function(){return this.isPaused||this.isFinished?false:(this.isPaused=true,this.previous&&this.previous.pause(),true)},resume:function(){if(!this.isPaused||this.isFinished)return false;this.isPaused=false;var e=false;return this.generatedError&&(this.error(this.generatedError),e=true),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e);},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e]);},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=true,this.previous&&this.previous.lock();},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};Ja.exports=Va;});var st=chunkH5NTJZO4_js.b(Te=>{var ot=F(),qe=ge(),zu=Dt(),yr=G(),Mt=new Array(256);for(we=0;we<256;we++)Mt[we]=we>=252?6:we>=248?5:we>=240?4:we>=224?3:we>=192?2:1;var we;Mt[254]=Mt[254]=1;var Fu=function(e){var t,r,i,n,a,o=e.length,s=0;for(n=0;n<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(qe.uint8array?t=new Uint8Array(s):t=new Array(s),a=0,n=0;a<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t},Nu=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Mt[e[r]]>t?r:t},qu=function(e){var t,r,i,n,a=e.length,o=new Array(a*2);for(r=0,t=0;t<a;){if(i=e[t++],i<128){o[r++]=i;continue}if(n=Mt[i],n>4){o[r++]=65533,t+=n-1;continue}for(i&=n===2?31:n===3?15:7;n>1&&t<a;)i=i<<6|e[t++]&63,n--;if(n>1){o[r++]=65533;continue}i<65536?o[r++]=i:(i-=65536,o[r++]=55296|i>>10&1023,o[r++]=56320|i&1023);}return o.length!==r&&(o.subarray?o=o.subarray(0,r):o.length=r),ot.applyFromCharCode(o)};Te.utf8encode=function(t){return qe.nodebuffer?zu.newBufferFrom(t,"utf-8"):Fu(t)};Te.utf8decode=function(t){return qe.nodebuffer?ot.transformTo("nodebuffer",t).toString("utf-8"):(t=ot.transformTo(qe.uint8array?"uint8array":"array",t),qu(t))};function xr(){yr.call(this,"utf-8 decode"),this.leftOver=null;}ot.inherits(xr,yr);xr.prototype.processChunk=function(e){var t=ot.transformTo(qe.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(qe.uint8array){var r=t;t=new Uint8Array(r.length+this.leftOver.length),t.set(this.leftOver,0),t.set(r,this.leftOver.length);}else t=this.leftOver.concat(t);this.leftOver=null;}var i=Nu(t),n=t;i!==t.length&&(qe.uint8array?(n=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(n=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:Te.utf8decode(n),meta:e.meta});};xr.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Te.utf8decode(this.leftOver),meta:{}}),this.leftOver=null);};Te.Utf8DecodeWorker=xr;function zi(){yr.call(this,"utf-8 encode");}ot.inherits(zi,yr);zi.prototype.processChunk=function(e){this.push({data:Te.utf8encode(e.data),meta:e.meta});};Te.Utf8EncodeWorker=zi;});var to=chunkH5NTJZO4_js.b((lp,eo)=>{var Qa=G(),$a=F();function Fi(e){Qa.call(this,"ConvertWorker to "+e),this.destType=e;}$a.inherits(Fi,Qa);Fi.prototype.processChunk=function(e){this.push({data:$a.transformTo(this.destType,e.data),meta:e.meta});};eo.exports=Fi;});var no=chunkH5NTJZO4_js.b((up,io)=>{var ro=yi().Readable,Lu=F();Lu.inherits(Ni,ro);function Ni(e,t,r){ro.call(this,t),this._helper=e;var i=this;e.on("data",function(n,a){i.push(n)||i._helper.pause(),r&&r(a);}).on("error",function(n){i.emit("error",n);}).on("end",function(){i.push(null);});}Ni.prototype._read=function(){this._helper.resume();};io.exports=Ni;});var qi=chunkH5NTJZO4_js.b((hp,so)=>{var Le=F(),Mu=to(),Pu=G(),Uu=Ei(),Zu=ge(),ju=nt(),ao=null;if(Zu.nodestream)try{ao=no();}catch{}function Wu(e,t,r){switch(e){case "blob":return Le.newBlob(Le.transformTo("arraybuffer",t),r);case "base64":return Uu.encode(t);default:return Le.transformTo(e,t)}}function Hu(e,t){var r,i=0,n=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case "string":return t.join("");case "array":return Array.prototype.concat.apply([],t);case "uint8array":for(n=new Uint8Array(a),r=0;r<t.length;r++)n.set(t[r],i),i+=t[r].length;return n;case "nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}function Ku(e,t){return new ju.Promise(function(r,i){var n=[],a=e._internalType,o=e._outputType,s=e._mimeType;e.on("data",function(u,f){n.push(u),t&&t(f);}).on("error",function(u){n=[],i(u);}).on("end",function(){try{var u=Wu(o,Hu(a,n),s);r(u);}catch(f){i(f);}n=[];}).resume();})}function oo(e,t,r){var i=t;switch(t){case "blob":case "arraybuffer":i="uint8array";break;case "base64":i="string";break}try{this._internalType=i,this._outputType=t,this._mimeType=r,Le.checkSupport(i),this._worker=e.pipe(new Mu(i)),e.lock();}catch(n){this._worker=new Pu("error"),this._worker.error(n);}}oo.prototype={accumulate:function(e){return Ku(this,e)},on:function(e,t){var r=this;return e==="data"?this._worker.on(e,function(i){t.call(r,i.data,i.meta);}):this._worker.on(e,function(){Le.delay(t,arguments,r);}),this},resume:function(){return Le.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(Le.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new ao(this,{objectMode:this._outputType!=="nodebuffer"},e)}};so.exports=oo;});var Li=chunkH5NTJZO4_js.b(te=>{te.base64=false;te.binary=false;te.dir=false;te.createFolders=true;te.date=null;te.compression=null;te.compressionOptions=null;te.comment=null;te.unixPermissions=null;te.dosPermissions=null;});var Mi=chunkH5NTJZO4_js.b((cp,fo)=>{var kr=F(),Sr=G(),Yu=16*1024;function ft(e){Sr.call(this,"DataWorker");var t=this;this.dataIsReady=false,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=false,e.then(function(r){t.dataIsReady=true,t.data=r,t.max=r&&r.length||0,t.type=kr.getTypeOf(r),t.isPaused||t._tickAndRepeat();},function(r){t.error(r);});}kr.inherits(ft,Sr);ft.prototype.cleanUp=function(){Sr.prototype.cleanUp.call(this),this.data=null;};ft.prototype.resume=function(){return Sr.prototype.resume.call(this)?(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=true,kr.delay(this._tickAndRepeat,[],this)),true):false};ft.prototype._tickAndRepeat=function(){this._tickScheduled=false,!(this.isPaused||this.isFinished)&&(this._tick(),this.isFinished||(kr.delay(this._tickAndRepeat,[],this),this._tickScheduled=true));};ft.prototype._tick=function(){if(this.isPaused||this.isFinished)return false;var e=Yu,t=null,r=Math.min(this.max,this.index+e);if(this.index>=this.max)return this.end();switch(this.type){case "string":t=this.data.substring(this.index,r);break;case "uint8array":t=this.data.subarray(this.index,r);break;case "array":case "nodebuffer":t=this.data.slice(this.index,r);break}return this.index=r,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})};fo.exports=ft;});var Er=chunkH5NTJZO4_js.b((pp,uo)=>{var Xu=F();function Gu(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e;}return t}var lo=Gu();function Vu(e,t,r,i){var n=lo,a=i+r;e=e^-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}function Ju(e,t,r,i){var n=lo,a=i+r;e=e^-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t.charCodeAt(o))&255];return e^-1}uo.exports=function(t,r){if(typeof t>"u"||!t.length)return 0;var i=Xu.getTypeOf(t)!=="string";return i?Vu(r|0,t,t.length,0):Ju(r|0,t,t.length,0)};});var Ui=chunkH5NTJZO4_js.b((vp,co)=>{var ho=G(),Qu=Er(),$u=F();function Pi(){ho.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0);}$u.inherits(Pi,ho);Pi.prototype.processChunk=function(e){this.streamInfo.crc32=Qu(e.data,this.streamInfo.crc32||0),this.push(e);};co.exports=Pi;});var vo=chunkH5NTJZO4_js.b((_p,po)=>{var eh=F(),Zi=G();function ji(e){Zi.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0);}eh.inherits(ji,Zi);ji.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length;}Zi.prototype.processChunk.call(this,e);};po.exports=ji;});var Cr=chunkH5NTJZO4_js.b((gp,wo)=>{var _o=nt(),go=Mi(),th=Ui(),Wi=vo();function Hi(e,t,r,i,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=i,this.compressedContent=n;}Hi.prototype={getContentWorker:function(){var e=new go(_o.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Wi("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new go(_o.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};Hi.createWorkerFrom=function(e,t,r){return e.pipe(new th).pipe(new Wi("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new Wi("compressedSize")).withStreamInfo("compression",t)};wo.exports=Hi;});var xo=chunkH5NTJZO4_js.b((wp,yo)=>{var rh=qi(),ih=Mi(),Ki=st(),Yi=Cr(),bo=G(),Xi=function(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions};};Xi.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");r=e.toLowerCase();var i=r==="string"||r==="text";(r==="binarystring"||r==="text")&&(r="string"),t=this._decompressWorker();var n=!this._dataBinary;n&&!i&&(t=t.pipe(new Ki.Utf8EncodeWorker)),!n&&i&&(t=t.pipe(new Ki.Utf8DecodeWorker));}catch(a){t=new bo("error"),t.error(a);}return new rh(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof Yi&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Ki.Utf8EncodeWorker)),Yi.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof Yi?this._data.getContentWorker():this._data instanceof bo?this._data:new ih(this._data)}};var mo=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],nh=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(Tr=0;Tr<mo.length;Tr++)Xi.prototype[mo[Tr]]=nh;var Tr;yo.exports=Xi;});var be=chunkH5NTJZO4_js.b(W=>{var ah=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function oh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}W.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(var i in r)oh(r,i)&&(e[i]=r[i]);}}return e};W.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var sh={arraySet:function(e,t,r,i,n){if(t.subarray&&e.subarray){e.set(t.subarray(r,r+i),n);return}for(var a=0;a<i;a++)e[n+a]=t[r+a];},flattenChunks:function(e){var t,r,i,n,a,o;for(i=0,t=0,r=e.length;t<r;t++)i+=e[t].length;for(o=new Uint8Array(i),n=0,t=0,r=e.length;t<r;t++)a=e[t],o.set(a,n),n+=a.length;return o}},fh={arraySet:function(e,t,r,i,n){for(var a=0;a<i;a++)e[n+a]=t[r+a];},flattenChunks:function(e){return [].concat.apply([],e)}};W.setTyped=function(e){e?(W.Buf8=Uint8Array,W.Buf16=Uint16Array,W.Buf32=Int32Array,W.assign(W,sh)):(W.Buf8=Array,W.Buf16=Array,W.Buf32=Array,W.assign(W,fh));};W.setTyped(ah);});var Ho=chunkH5NTJZO4_js.b(ht=>{var lh=be(),uh=4,ko=0,So=1,hh=2;function ut(e){for(var t=e.length;--t>=0;)e[t]=0;}var dh=0,Oo=1,ch=2,ph=3,vh=258,tn=29,Ht=256,Ut=Ht+1+tn,lt=30,rn=19,Io=2*Ut+1,Me=15,Gi=16,_h=7,nn=256,Do=16,Bo=17,zo=18,$i=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Ar=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],gh=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Fo=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],wh=512,me=new Array((Ut+2)*2);ut(me);var Pt=new Array(lt*2);ut(Pt);var Zt=new Array(wh);ut(Zt);var jt=new Array(vh-ph+1);ut(jt);var an=new Array(tn);ut(an);var Rr=new Array(lt);ut(Rr);function Vi(e,t,r,i,n){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=n,this.has_stree=e&&e.length;}var No,qo,Lo;function Ji(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t;}function Mo(e){return e<256?Zt[e]:Zt[256+(e>>>7)]}function Wt(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255;}function K(e,t,r){e.bi_valid>Gi-r?(e.bi_buf|=t<<e.bi_valid&65535,Wt(e,e.bi_buf),e.bi_buf=t>>Gi-e.bi_valid,e.bi_valid+=r-Gi):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r);}function fe(e,t,r){K(e,r[t*2],r[t*2+1]);}function Po(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function bh(e){e.bi_valid===16?(Wt(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8);}function mh(e,t){var r=t.dyn_tree,i=t.max_code,n=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,u=t.stat_desc.max_length,f,l,w,d,h,k,b=0;for(d=0;d<=Me;d++)e.bl_count[d]=0;for(r[e.heap[e.heap_max]*2+1]=0,f=e.heap_max+1;f<Io;f++)l=e.heap[f],d=r[r[l*2+1]*2+1]+1,d>u&&(d=u,b++),r[l*2+1]=d,!(l>i)&&(e.bl_count[d]++,h=0,l>=s&&(h=o[l-s]),k=r[l*2],e.opt_len+=k*(d+h),a&&(e.static_len+=k*(n[l*2+1]+h)));if(b!==0){do{for(d=u-1;e.bl_count[d]===0;)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[u]--,b-=2;}while(b>0);for(d=u;d!==0;d--)for(l=e.bl_count[d];l!==0;)w=e.heap[--f],!(w>i)&&(r[w*2+1]!==d&&(e.opt_len+=(d-r[w*2+1])*r[w*2],r[w*2+1]=d),l--);}}function Uo(e,t,r){var i=new Array(Me+1),n=0,a,o;for(a=1;a<=Me;a++)i[a]=n=n+r[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=Po(i[s]++,s));}}function yh(){var e,t,r,i,n,a=new Array(Me+1);for(r=0,i=0;i<tn-1;i++)for(an[i]=r,e=0;e<1<<$i[i];e++)jt[r++]=i;for(jt[r-1]=i,n=0,i=0;i<16;i++)for(Rr[i]=n,e=0;e<1<<Ar[i];e++)Zt[n++]=i;for(n>>=7;i<lt;i++)for(Rr[i]=n<<7,e=0;e<1<<Ar[i]-7;e++)Zt[256+n++]=i;for(t=0;t<=Me;t++)a[t]=0;for(e=0;e<=143;)me[e*2+1]=8,e++,a[8]++;for(;e<=255;)me[e*2+1]=9,e++,a[9]++;for(;e<=279;)me[e*2+1]=7,e++,a[7]++;for(;e<=287;)me[e*2+1]=8,e++,a[8]++;for(Uo(me,Ut+1,a),e=0;e<lt;e++)Pt[e*2+1]=5,Pt[e*2]=Po(e,5);No=new Vi(me,$i,Ht+1,Ut,Me),qo=new Vi(Pt,Ar,0,lt,Me),Lo=new Vi(new Array(0),gh,0,rn,_h);}function Zo(e){var t;for(t=0;t<Ut;t++)e.dyn_ltree[t*2]=0;for(t=0;t<lt;t++)e.dyn_dtree[t*2]=0;for(t=0;t<rn;t++)e.bl_tree[t*2]=0;e.dyn_ltree[nn*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0;}function jo(e){e.bi_valid>8?Wt(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0;}function xh(e,t,r,i){jo(e),(Wt(e,r),Wt(e,~r)),lh.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r;}function Eo(e,t,r,i){var n=t*2,a=r*2;return e[n]<e[a]||e[n]===e[a]&&i[t]<=i[r]}function Qi(e,t,r){for(var i=e.heap[r],n=r<<1;n<=e.heap_len&&(n<e.heap_len&&Eo(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!Eo(t,i,e.heap[n],e.depth));)e.heap[r]=e.heap[n],r=n,n<<=1;e.heap[r]=i;}function Co(e,t,r){var i,n,a=0,o,s;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],n=e.pending_buf[e.l_buf+a],a++,i===0?fe(e,n,t):(o=jt[n],fe(e,o+Ht+1,t),s=$i[o],s!==0&&(n-=an[o],K(e,n,s)),i--,o=Mo(i),fe(e,o,r),s=Ar[o],s!==0&&(i-=Rr[o],K(e,i,s)));while(a<e.last_lit);fe(e,nn,t);}function en(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,n=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,u=-1,f;for(e.heap_len=0,e.heap_max=Io,o=0;o<a;o++)r[o*2]!==0?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):r[o*2+1]=0;for(;e.heap_len<2;)f=e.heap[++e.heap_len]=u<2?++u:0,r[f*2]=1,e.depth[f]=0,e.opt_len--,n&&(e.static_len-=i[f*2+1]);for(t.max_code=u,o=e.heap_len>>1;o>=1;o--)Qi(e,r,o);f=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Qi(e,r,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,r[f*2]=r[o*2]+r[s*2],e.depth[f]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,r[o*2+1]=r[s*2+1]=f,e.heap[1]=f++,Qi(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],mh(e,t),Uo(r,u,e.bl_count);}function To(e,t,r){var i,n=-1,a,o=t[1],s=0,u=7,f=4;for(o===0&&(u=138,f=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)a=o,o=t[(i+1)*2+1],!(++s<u&&a===o)&&(s<f?e.bl_tree[a*2]+=s:a!==0?(a!==n&&e.bl_tree[a*2]++,e.bl_tree[Do*2]++):s<=10?e.bl_tree[Bo*2]++:e.bl_tree[zo*2]++,s=0,n=a,o===0?(u=138,f=3):a===o?(u=6,f=3):(u=7,f=4));}function Ao(e,t,r){var i,n=-1,a,o=t[1],s=0,u=7,f=4;for(o===0&&(u=138,f=3),i=0;i<=r;i++)if(a=o,o=t[(i+1)*2+1],!(++s<u&&a===o)){if(s<f)do fe(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==n&&(fe(e,a,e.bl_tree),s--),fe(e,Do,e.bl_tree),K(e,s-3,2)):s<=10?(fe(e,Bo,e.bl_tree),K(e,s-3,3)):(fe(e,zo,e.bl_tree),K(e,s-11,7));s=0,n=a,o===0?(u=138,f=3):a===o?(u=6,f=3):(u=7,f=4);}}function kh(e){var t;for(To(e,e.dyn_ltree,e.l_desc.max_code),To(e,e.dyn_dtree,e.d_desc.max_code),en(e,e.bl_desc),t=rn-1;t>=3&&e.bl_tree[Fo[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Sh(e,t,r,i){var n;for(K(e,t-257,5),K(e,r-1,5),K(e,i-4,4),n=0;n<i;n++)K(e,e.bl_tree[Fo[n]*2+1],3);Ao(e,e.dyn_ltree,t-1),Ao(e,e.dyn_dtree,r-1);}function Eh(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return ko;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return So;for(r=32;r<Ht;r++)if(e.dyn_ltree[r*2]!==0)return So;return ko}var Ro=false;function Ch(e){Ro||(yh(),Ro=true),e.l_desc=new Ji(e.dyn_ltree,No),e.d_desc=new Ji(e.dyn_dtree,qo),e.bl_desc=new Ji(e.bl_tree,Lo),e.bi_buf=0,e.bi_valid=0,Zo(e);}function Wo(e,t,r,i){K(e,(dh<<1)+(i?1:0),3),xh(e,t,r);}function Th(e){K(e,Oo<<1,3),fe(e,nn,me),bh(e);}function Ah(e,t,r,i){var n,a,o=0;e.level>0?(e.strm.data_type===hh&&(e.strm.data_type=Eh(e)),en(e,e.l_desc),en(e,e.d_desc),o=kh(e),n=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=n&&(n=a)):n=a=r+5,r+4<=n&&t!==-1?Wo(e,t,r,i):e.strategy===uh||a===n?(K(e,(Oo<<1)+(i?1:0),3),Co(e,me,Pt)):(K(e,(ch<<1)+(i?1:0),3),Sh(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Co(e,e.dyn_ltree,e.dyn_dtree)),Zo(e),i&&jo(e);}function Rh(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(jt[r]+Ht+1)*2]++,e.dyn_dtree[Mo(t)*2]++),e.last_lit===e.lit_bufsize-1}ht._tr_init=Ch;ht._tr_stored_block=Wo;ht._tr_flush_block=Ah;ht._tr_tally=Rh;ht._tr_align=Th;});var on=chunkH5NTJZO4_js.b((yp,Ko)=>{function Oh(e,t,r,i){for(var n=e&65535|0,a=e>>>16&65535|0,o=0;r!==0;){o=r>2e3?2e3:r,r-=o;do n=n+t[i++]|0,a=a+n|0;while(--o);n%=65521,a%=65521;}return n|a<<16|0}Ko.exports=Oh;});var sn=chunkH5NTJZO4_js.b((xp,Yo)=>{function Ih(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e;}return t}var Dh=Ih();function Bh(e,t,r,i){var n=Dh,a=i+r;e^=-1;for(var o=i;o<a;o++)e=e>>>8^n[(e^t[o])&255];return e^-1}Yo.exports=Bh;});var Or=chunkH5NTJZO4_js.b((kp,Xo)=>{Xo.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};});var is=chunkH5NTJZO4_js.b(he=>{var H=be(),J=Ho(),Qo=on(),Ae=sn(),zh=Or(),je=0,Fh=1,Nh=3,Be=4,Go=5,ue=0,Vo=1,Q=-2,qh=-3,fn=-5,Lh=-1,Mh=1,Ir=2,Ph=3,Uh=4,Zh=0,jh=2,Fr=8,Wh=9,Hh=15,Kh=8,Yh=29,Xh=256,un=Xh+1+Yh,Gh=30,Vh=19,Jh=2*un+1,Qh=15,A=3,Ie=258,re=Ie+A+1,$h=32,Nr=42,hn=69,Dr=73,Br=91,zr=103,Pe=113,Yt=666,M=1,Xt=2,Ue=3,pt=4,ed=3;function De(e,t){return e.msg=zh[t],t}function Jo(e){return (e<<1)-(e>4?9:0)}function Oe(e){for(var t=e.length;--t>=0;)e[t]=0;}function Re(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(H.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0));}function U(e,t){J._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Re(e.strm);}function R(e,t){e.pending_buf[e.pending++]=t;}function Kt(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255;}function td(e,t,r,i){var n=e.avail_in;return n>i&&(n=i),n===0?0:(e.avail_in-=n,H.arraySet(t,e.input,e.next_in,n,r),e.state.wrap===1?e.adler=Qo(e.adler,t,n,r):e.state.wrap===2&&(e.adler=Ae(e.adler,t,n,r)),e.next_in+=n,e.total_in+=n,n)}function $o(e,t){var r=e.max_chain_length,i=e.strstart,n,a,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-re?e.strstart-(e.w_size-re):0,f=e.window,l=e.w_mask,w=e.prev,d=e.strstart+Ie,h=f[i+o-1],k=f[i+o];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do if(n=t,!(f[n+o]!==k||f[n+o-1]!==h||f[n]!==f[i]||f[++n]!==f[i+1])){i+=2,n++;do;while(f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&f[++i]===f[++n]&&i<d);if(a=Ie-(d-i),i=d-Ie,a>o){if(e.match_start=t,o=a,a>=s)break;h=f[i+o-1],k=f[i+o];}}while((t=w[t&l])>u&&--r!==0);return o<=e.lookahead?o:e.lookahead}function Ze(e){var t=e.w_size,r,i,n,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-re)){H.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do n=e.head[--r],e.head[r]=n>=t?n-t:0;while(--i);i=t,r=i;do n=e.prev[--r],e.prev[r]=n>=t?n-t:0;while(--i);a+=t;}if(e.strm.avail_in===0)break;if(i=td(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=i,e.lookahead+e.insert>=A)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+A-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<A)););}while(e.lookahead<re&&e.strm.avail_in!==0)}function rd(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ze(e),e.lookahead===0&&t===je)return M;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,U(e,false),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-re&&(U(e,false),e.strm.avail_out===0))return M}return e.insert=0,t===Be?(U(e,true),e.strm.avail_out===0?Ue:pt):(e.strstart>e.block_start&&(U(e,false),e.strm.avail_out===0),M)}function ln(e,t){for(var r,i;;){if(e.lookahead<re){if(Ze(e),e.lookahead<re&&t===je)return M;if(e.lookahead===0)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-re&&(e.match_length=$o(e,r)),e.match_length>=A)if(i=J._tr_tally(e,e.strstart-e.match_start,e.match_length-A),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=A){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++;}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=J._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(U(e,false),e.strm.avail_out===0))return M}return e.insert=e.strstart<A-1?e.strstart:A-1,t===Be?(U(e,true),e.strm.avail_out===0?Ue:pt):e.last_lit&&(U(e,false),e.strm.avail_out===0)?M:Xt}function dt(e,t){for(var r,i,n;;){if(e.lookahead<re){if(Ze(e),e.lookahead<re&&t===je)return M;if(e.lookahead===0)break}if(r=0,e.lookahead>=A&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=A-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-re&&(e.match_length=$o(e,r),e.match_length<=5&&(e.strategy===Mh||e.match_length===A&&e.strstart-e.match_start>4096)&&(e.match_length=A-1)),e.prev_length>=A&&e.match_length<=e.prev_length){n=e.strstart+e.lookahead-A,i=J._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-A),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+A-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=A-1,e.strstart++,i&&(U(e,false),e.strm.avail_out===0))return M}else if(e.match_available){if(i=J._tr_tally(e,0,e.window[e.strstart-1]),i&&U(e,false),e.strstart++,e.lookahead--,e.strm.avail_out===0)return M}else e.match_available=1,e.strstart++,e.lookahead--;}return e.match_available&&(i=J._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<A-1?e.strstart:A-1,t===Be?(U(e,true),e.strm.avail_out===0?Ue:pt):e.last_lit&&(U(e,false),e.strm.avail_out===0)?M:Xt}function id(e,t){for(var r,i,n,a,o=e.window;;){if(e.lookahead<=Ie){if(Ze(e),e.lookahead<=Ie&&t===je)return M;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=A&&e.strstart>0&&(n=e.strstart-1,i=o[n],i===o[++n]&&i===o[++n]&&i===o[++n])){a=e.strstart+Ie;do;while(i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&i===o[++n]&&n<a);e.match_length=Ie-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead);}if(e.match_length>=A?(r=J._tr_tally(e,1,e.match_length-A),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=J._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(U(e,false),e.strm.avail_out===0))return M}return e.insert=0,t===Be?(U(e,true),e.strm.avail_out===0?Ue:pt):e.last_lit&&(U(e,false),e.strm.avail_out===0)?M:Xt}function nd(e,t){for(var r;;){if(e.lookahead===0&&(Ze(e),e.lookahead===0)){if(t===je)return M;break}if(e.match_length=0,r=J._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(U(e,false),e.strm.avail_out===0))return M}return e.insert=0,t===Be?(U(e,true),e.strm.avail_out===0?Ue:pt):e.last_lit&&(U(e,false),e.strm.avail_out===0)?M:Xt}function le(e,t,r,i,n){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=n;}var ct;ct=[new le(0,0,0,0,rd),new le(4,4,8,4,ln),new le(4,5,16,8,ln),new le(4,6,32,32,ln),new le(4,4,16,16,dt),new le(8,16,32,32,dt),new le(8,16,128,128,dt),new le(8,32,128,256,dt),new le(32,128,258,1024,dt),new le(32,258,258,4096,dt)];function ad(e){e.window_size=2*e.w_size,Oe(e.head),e.max_lazy_match=ct[e.level].max_lazy,e.good_match=ct[e.level].good_length,e.nice_match=ct[e.level].nice_length,e.max_chain_length=ct[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=A-1,e.match_available=0,e.ins_h=0;}function od(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Fr,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new H.Buf16(Jh*2),this.dyn_dtree=new H.Buf16((2*Gh+1)*2),this.bl_tree=new H.Buf16((2*Vh+1)*2),Oe(this.dyn_ltree),Oe(this.dyn_dtree),Oe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new H.Buf16(Qh+1),this.heap=new H.Buf16(2*un+1),Oe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new H.Buf16(2*un+1),Oe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0;}function es(e){var t;return !e||!e.state?De(e,Q):(e.total_in=e.total_out=0,e.data_type=jh,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Nr:Pe,e.adler=t.wrap===2?0:1,t.last_flush=je,J._tr_init(t),ue)}function ts(e){var t=es(e);return t===ue&&ad(e.state),t}function sd(e,t){return !e||!e.state||e.state.wrap!==2?Q:(e.state.gzhead=t,ue)}function rs(e,t,r,i,n,a){if(!e)return Q;var o=1;if(t===Lh&&(t=6),i<0?(o=0,i=-i):i>15&&(o=2,i-=16),n<1||n>Wh||r!==Fr||i<8||i>15||t<0||t>9||a<0||a>Uh)return De(e,Q);i===8&&(i=9);var s=new od;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=n+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+A-1)/A),s.window=new H.Buf8(s.w_size*2),s.head=new H.Buf16(s.hash_size),s.prev=new H.Buf16(s.w_size),s.lit_bufsize=1<<n+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new H.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=r,ts(e)}function fd(e,t){return rs(e,t,Fr,Hh,Kh,Zh)}function ld(e,t){var r,i,n,a;if(!e||!e.state||t>Go||t<0)return e?De(e,Q):Q;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Yt&&t!==Be)return De(e,e.avail_out===0?fn:Q);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===Nr)if(i.wrap===2)e.adler=0,R(i,31),R(i,139),R(i,8),i.gzhead?(R(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),R(i,i.gzhead.time&255),R(i,i.gzhead.time>>8&255),R(i,i.gzhead.time>>16&255),R(i,i.gzhead.time>>24&255),R(i,i.level===9?2:i.strategy>=Ir||i.level<2?4:0),R(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(R(i,i.gzhead.extra.length&255),R(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=Ae(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=hn):(R(i,0),R(i,0),R(i,0),R(i,0),R(i,0),R(i,i.level===9?2:i.strategy>=Ir||i.level<2?4:0),R(i,ed),i.status=Pe);else {var o=Fr+(i.w_bits-8<<4)<<8,s=-1;i.strategy>=Ir||i.level<2?s=0:i.level<6?s=1:i.level===6?s=2:s=3,o|=s<<6,i.strstart!==0&&(o|=$h),o+=31-o%31,i.status=Pe,Kt(i,o),i.strstart!==0&&(Kt(i,e.adler>>>16),Kt(i,e.adler&65535)),e.adler=1;}if(i.status===hn)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Ae(e.adler,i.pending_buf,i.pending-n,n)),Re(e),n=i.pending,i.pending===i.pending_buf_size));)R(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=Ae(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Dr);}else i.status=Dr;if(i.status===Dr)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Ae(e.adler,i.pending_buf,i.pending-n,n)),Re(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.name.length?a=i.gzhead.name.charCodeAt(i.gzindex++)&255:a=0,R(i,a);}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=Ae(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.gzindex=0,i.status=Br);}else i.status=Br;if(i.status===Br)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=Ae(e.adler,i.pending_buf,i.pending-n,n)),Re(e),n=i.pending,i.pending===i.pending_buf_size)){a=1;break}i.gzindex<i.gzhead.comment.length?a=i.gzhead.comment.charCodeAt(i.gzindex++)&255:a=0,R(i,a);}while(a!==0);i.gzhead.hcrc&&i.pending>n&&(e.adler=Ae(e.adler,i.pending_buf,i.pending-n,n)),a===0&&(i.status=zr);}else i.status=zr;if(i.status===zr&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Re(e),i.pending+2<=i.pending_buf_size&&(R(i,e.adler&255),R(i,e.adler>>8&255),e.adler=0,i.status=Pe)):i.status=Pe),i.pending!==0){if(Re(e),e.avail_out===0)return i.last_flush=-1,ue}else if(e.avail_in===0&&Jo(t)<=Jo(r)&&t!==Be)return De(e,fn);if(i.status===Yt&&e.avail_in!==0)return De(e,fn);if(e.avail_in!==0||i.lookahead!==0||t!==je&&i.status!==Yt){var u=i.strategy===Ir?nd(i,t):i.strategy===Ph?id(i,t):ct[i.level].func(i,t);if((u===Ue||u===pt)&&(i.status=Yt),u===M||u===Ue)return e.avail_out===0&&(i.last_flush=-1),ue;if(u===Xt&&(t===Fh?J._tr_align(i):t!==Go&&(J._tr_stored_block(i,0,0,false),t===Nh&&(Oe(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),Re(e),e.avail_out===0))return i.last_flush=-1,ue}return t!==Be?ue:i.wrap<=0?Vo:(i.wrap===2?(R(i,e.adler&255),R(i,e.adler>>8&255),R(i,e.adler>>16&255),R(i,e.adler>>24&255),R(i,e.total_in&255),R(i,e.total_in>>8&255),R(i,e.total_in>>16&255),R(i,e.total_in>>24&255)):(Kt(i,e.adler>>>16),Kt(i,e.adler&65535)),Re(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?ue:Vo)}function ud(e){var t;return !e||!e.state?Q:(t=e.state.status,t!==Nr&&t!==hn&&t!==Dr&&t!==Br&&t!==zr&&t!==Pe&&t!==Yt?De(e,Q):(e.state=null,t===Pe?De(e,qh):ue))}function hd(e,t){var r=t.length,i,n,a,o,s,u,f,l;if(!e||!e.state||(i=e.state,o=i.wrap,o===2||o===1&&i.status!==Nr||i.lookahead))return Q;for(o===1&&(e.adler=Qo(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(o===0&&(Oe(i.head),i.strstart=0,i.block_start=0,i.insert=0),l=new H.Buf8(i.w_size),H.arraySet(l,t,r-i.w_size,i.w_size,0),t=l,r=i.w_size),s=e.avail_in,u=e.next_in,f=e.input,e.avail_in=r,e.next_in=0,e.input=t,Ze(i);i.lookahead>=A;){n=i.strstart,a=i.lookahead-(A-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+A-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++;while(--a);i.strstart=n,i.lookahead=A-1,Ze(i);}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=A-1,i.match_available=0,e.next_in=u,e.input=f,e.avail_in=s,i.wrap=o,ue}he.deflateInit=fd;he.deflateInit2=rs;he.deflateReset=ts;he.deflateResetKeep=es;he.deflateSetHeader=sd;he.deflate=ld;he.deflateEnd=ud;he.deflateSetDictionary=hd;he.deflateInfo="pako deflate (from Nodeca project)";});var dn=chunkH5NTJZO4_js.b(vt=>{var qr=be(),ns=true,as=true;try{String.fromCharCode.apply(null,[0]);}catch{ns=false;}try{String.fromCharCode.apply(null,new Uint8Array(1));}catch{as=false;}var Gt=new qr.Buf8(256);for(ye=0;ye<256;ye++)Gt[ye]=ye>=252?6:ye>=248?5:ye>=240?4:ye>=224?3:ye>=192?2:1;var ye;Gt[254]=Gt[254]=1;vt.string2buf=function(e){var t,r,i,n,a,o=e.length,s=0;for(n=0;n<o;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new qr.Buf8(s),a=0,n=0;a<s;n++)r=e.charCodeAt(n),(r&64512)===55296&&n+1<o&&(i=e.charCodeAt(n+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),n++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t};function os(e,t){if(t<65534&&(e.subarray&&as||!e.subarray&&ns))return String.fromCharCode.apply(null,qr.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}vt.buf2binstring=function(e){return os(e,e.length)};vt.binstring2buf=function(e){for(var t=new qr.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};vt.buf2string=function(e,t){var r,i,n,a,o=t||e.length,s=new Array(o*2);for(i=0,r=0;r<o;){if(n=e[r++],n<128){s[i++]=n;continue}if(a=Gt[n],a>4){s[i++]=65533,r+=a-1;continue}for(n&=a===2?31:a===3?15:7;a>1&&r<o;)n=n<<6|e[r++]&63,a--;if(a>1){s[i++]=65533;continue}n<65536?s[i++]=n:(n-=65536,s[i++]=55296|n>>10&1023,s[i++]=56320|n&1023);}return os(s,i)};vt.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Gt[e[r]]>t?r:t};});var cn=chunkH5NTJZO4_js.b((Cp,ss)=>{function dd(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0;}ss.exports=dd;});var hs=chunkH5NTJZO4_js.b(Qt=>{var Vt=is(),Jt=be(),vn=dn(),_n=Or(),cd=cn(),us=Object.prototype.toString,pd=0,pn=4,_t=0,fs=1,ls=2,vd=-1,_d=0,gd=8;function We(e){if(!(this instanceof We))return new We(e);this.options=Jt.assign({level:vd,method:gd,chunkSize:16384,windowBits:15,memLevel:8,strategy:_d,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=false,this.chunks=[],this.strm=new cd,this.strm.avail_out=0;var r=Vt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==_t)throw new Error(_n[r]);if(t.header&&Vt.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=vn.string2buf(t.dictionary):us.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=Vt.deflateSetDictionary(this.strm,i),r!==_t)throw new Error(_n[r]);this._dict_set=true;}}We.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n,a;if(this.ended)return false;a=t===~~t?t:t===true?pn:pd,typeof e=="string"?r.input=vn.string2buf(e):us.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new Jt.Buf8(i),r.next_out=0,r.avail_out=i),n=Vt.deflate(r,a),n!==fs&&n!==_t)return this.onEnd(n),this.ended=true,false;(r.avail_out===0||r.avail_in===0&&(a===pn||a===ls))&&(this.options.to==="string"?this.onData(vn.buf2binstring(Jt.shrinkBuf(r.output,r.next_out))):this.onData(Jt.shrinkBuf(r.output,r.next_out)));}while((r.avail_in>0||r.avail_out===0)&&n!==fs);return a===pn?(n=Vt.deflateEnd(this.strm),this.onEnd(n),this.ended=true,n===_t):(a===ls&&(this.onEnd(_t),r.avail_out=0),true)};We.prototype.onData=function(e){this.chunks.push(e);};We.prototype.onEnd=function(e){e===_t&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Jt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg;};function gn(e,t){var r=new We(t);if(r.push(e,true),r.err)throw r.msg||_n[r.err];return r.result}function wd(e,t){return t=t||{},t.raw=true,gn(e,t)}function bd(e,t){return t=t||{},t.gzip=true,gn(e,t)}Qt.Deflate=We;Qt.deflate=gn;Qt.deflateRaw=wd;Qt.gzip=bd;});var cs=chunkH5NTJZO4_js.b((Ap,ds)=>{var Lr=30,md=12;ds.exports=function(t,r){var i,n,a,o,s,u,f,l,w,d,h,k,b,y,_,c,m,p,g,C,E,S,T,D,x;i=t.state,n=t.next_in,D=t.input,a=n+(t.avail_in-5),o=t.next_out,x=t.output,s=o-(r-t.avail_out),u=o+(t.avail_out-257),f=i.dmax,l=i.wsize,w=i.whave,d=i.wnext,h=i.window,k=i.hold,b=i.bits,y=i.lencode,_=i.distcode,c=(1<<i.lenbits)-1,m=(1<<i.distbits)-1;e:do{b<15&&(k+=D[n++]<<b,b+=8,k+=D[n++]<<b,b+=8),p=y[k&c];t:for(;;){if(g=p>>>24,k>>>=g,b-=g,g=p>>>16&255,g===0)x[o++]=p&65535;else if(g&16){C=p&65535,g&=15,g&&(b<g&&(k+=D[n++]<<b,b+=8),C+=k&(1<<g)-1,k>>>=g,b-=g),b<15&&(k+=D[n++]<<b,b+=8,k+=D[n++]<<b,b+=8),p=_[k&m];r:for(;;){if(g=p>>>24,k>>>=g,b-=g,g=p>>>16&255,g&16){if(E=p&65535,g&=15,b<g&&(k+=D[n++]<<b,b+=8,b<g&&(k+=D[n++]<<b,b+=8)),E+=k&(1<<g)-1,E>f){t.msg="invalid distance too far back",i.mode=Lr;break e}if(k>>>=g,b-=g,g=o-s,E>g){if(g=E-g,g>w&&i.sane){t.msg="invalid distance too far back",i.mode=Lr;break e}if(S=0,T=h,d===0){if(S+=l-g,g<C){C-=g;do x[o++]=h[S++];while(--g);S=o-E,T=x;}}else if(d<g){if(S+=l+d-g,g-=d,g<C){C-=g;do x[o++]=h[S++];while(--g);if(S=0,d<C){g=d,C-=g;do x[o++]=h[S++];while(--g);S=o-E,T=x;}}}else if(S+=d-g,g<C){C-=g;do x[o++]=h[S++];while(--g);S=o-E,T=x;}for(;C>2;)x[o++]=T[S++],x[o++]=T[S++],x[o++]=T[S++],C-=3;C&&(x[o++]=T[S++],C>1&&(x[o++]=T[S++]));}else {S=o-E;do x[o++]=x[S++],x[o++]=x[S++],x[o++]=x[S++],C-=3;while(C>2);C&&(x[o++]=x[S++],C>1&&(x[o++]=x[S++]));}}else if((g&64)===0){p=_[(p&65535)+(k&(1<<g)-1)];continue r}else {t.msg="invalid distance code",i.mode=Lr;break e}break}}else if((g&64)===0){p=y[(p&65535)+(k&(1<<g)-1)];continue t}else if(g&32){i.mode=md;break e}else {t.msg="invalid literal/length code",i.mode=Lr;break e}break}}while(n<a&&o<u);C=b>>3,n-=C,b-=C<<3,k&=(1<<b)-1,t.next_in=n,t.next_out=o,t.avail_in=n<a?5+(a-n):5-(n-a),t.avail_out=o<u?257+(u-o):257-(o-u),i.hold=k,i.bits=b;};});var ms=chunkH5NTJZO4_js.b((Rp,bs)=>{var ps=be(),gt=15,vs=852,_s=592,gs=0,wn=1,ws=2,yd=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],xd=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],kd=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Sd=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];bs.exports=function(t,r,i,n,a,o,s,u){var f=u.bits,l=0,w=0,d=0,h=0,k=0,b=0,y=0,_=0,c=0,m=0,p,g,C,E,S,T=null,D=0,x,Y=new ps.Buf16(gt+1),Ge=new ps.Buf16(gt+1),nr=null,Zn=0,jn,ar,or;for(l=0;l<=gt;l++)Y[l]=0;for(w=0;w<n;w++)Y[r[i+w]]++;for(k=f,h=gt;h>=1&&Y[h]===0;h--);if(k>h&&(k=h),h===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,u.bits=1,0;for(d=1;d<h&&Y[d]===0;d++);for(k<d&&(k=d),_=1,l=1;l<=gt;l++)if(_<<=1,_-=Y[l],_<0)return -1;if(_>0&&(t===gs||h!==1))return -1;for(Ge[1]=0,l=1;l<gt;l++)Ge[l+1]=Ge[l]+Y[l];for(w=0;w<n;w++)r[i+w]!==0&&(s[Ge[r[i+w]]++]=w);if(t===gs?(T=nr=s,x=19):t===wn?(T=yd,D-=257,nr=xd,Zn-=257,x=256):(T=kd,nr=Sd,x=-1),m=0,w=0,l=d,S=o,b=k,y=0,C=-1,c=1<<k,E=c-1,t===wn&&c>vs||t===ws&&c>_s)return 1;for(;;){jn=l-y,s[w]<x?(ar=0,or=s[w]):s[w]>x?(ar=nr[Zn+s[w]],or=T[D+s[w]]):(ar=96,or=0),p=1<<l-y,g=1<<b,d=g;do g-=p,a[S+(m>>y)+g]=jn<<24|ar<<16|or|0;while(g!==0);for(p=1<<l-1;m&p;)p>>=1;if(p!==0?(m&=p-1,m+=p):m=0,w++,--Y[l]===0){if(l===h)break;l=r[i+s[w]];}if(l>k&&(m&E)!==C){for(y===0&&(y=k),S+=d,b=l-y,_=1<<b;b+y<h&&(_-=Y[b+y],!(_<=0));)b++,_<<=1;if(c+=1<<b,t===wn&&c>vs||t===ws&&c>_s)return 1;C=m&E,a[C]=k<<24|b<<16|S-o|0;}}return m!==0&&(a[S+m]=l-y<<24|64<<16|0),u.bits=k,0};});var tf=chunkH5NTJZO4_js.b(ie=>{var V=be(),Sn=on(),de=sn(),Ed=cs(),$t=ms(),Cd=0,Ks=1,Ys=2,ys=4,Td=5,Mr=6,He=0,Ad=1,Rd=2,$=-2,Xs=-3,En=-4,Od=-5,xs=8,Gs=1,ks=2,Ss=3,Es=4,Cs=5,Ts=6,As=7,Rs=8,Os=9,Is=10,Zr=11,xe=12,bn=13,Ds=14,mn=15,Bs=16,zs=17,Fs=18,Ns=19,Pr=20,Ur=21,qs=22,Ls=23,Ms=24,Ps=25,Us=26,yn=27,Zs=28,js=29,z=30,Cn=31,Id=32,Dd=852,Bd=592,zd=15,Fd=zd;function Ws(e){return (e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Nd(){this.mode=0,this.last=false,this.wrap=0,this.havedict=false,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new V.Buf16(320),this.work=new V.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0;}function Vs(e){var t;return !e||!e.state?$:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Gs,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new V.Buf32(Dd),t.distcode=t.distdyn=new V.Buf32(Bd),t.sane=1,t.back=-1,He)}function Js(e){var t;return !e||!e.state?$:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Vs(e))}function Qs(e,t){var r,i;return !e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?$:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Js(e))}function $s(e,t){var r,i;return e?(i=new Nd,e.state=i,i.window=null,r=Qs(e,t),r!==He&&(e.state=null),r):$}function qd(e){return $s(e,Fd)}var Hs=true,xn,kn;function Ld(e){if(Hs){var t;for(xn=new V.Buf32(512),kn=new V.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for($t(Ks,e.lens,0,288,xn,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;$t(Ys,e.lens,0,32,kn,0,e.work,{bits:5}),Hs=false;}e.lencode=xn,e.lenbits=9,e.distcode=kn,e.distbits=5;}function ef(e,t,r,i){var n,a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new V.Buf8(a.wsize)),i>=a.wsize?(V.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n=a.wsize-a.wnext,n>i&&(n=i),V.arraySet(a.window,t,r-i,n,a.wnext),i-=n,i?(V.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=n,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=n))),0}function Md(e,t){var r,i,n,a,o,s,u,f,l,w,d,h,k,b,y=0,_,c,m,p,g,C,E,S,T=new V.Buf8(4),D,x,Y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return $;r=e.state,r.mode===xe&&(r.mode=bn),o=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,f=r.hold,l=r.bits,w=s,d=u,S=He;e:for(;;)switch(r.mode){case Gs:if(r.wrap===0){r.mode=bn;break}for(;l<16;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}if(r.wrap&2&&f===35615){r.check=0,T[0]=f&255,T[1]=f>>>8&255,r.check=de(r.check,T,2,0),f=0,l=0,r.mode=ks;break}if(r.flags=0,r.head&&(r.head.done=false),!(r.wrap&1)||(((f&255)<<8)+(f>>8))%31){e.msg="incorrect header check",r.mode=z;break}if((f&15)!==xs){e.msg="unknown compression method",r.mode=z;break}if(f>>>=4,l-=4,E=(f&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=z;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=f&512?Is:xe,f=0,l=0;break;case ks:for(;l<16;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}if(r.flags=f,(r.flags&255)!==xs){e.msg="unknown compression method",r.mode=z;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=z;break}r.head&&(r.head.text=f>>8&1),r.flags&512&&(T[0]=f&255,T[1]=f>>>8&255,r.check=de(r.check,T,2,0)),f=0,l=0,r.mode=Ss;case Ss:for(;l<32;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}r.head&&(r.head.time=f),r.flags&512&&(T[0]=f&255,T[1]=f>>>8&255,T[2]=f>>>16&255,T[3]=f>>>24&255,r.check=de(r.check,T,4,0)),f=0,l=0,r.mode=Es;case Es:for(;l<16;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}r.head&&(r.head.xflags=f&255,r.head.os=f>>8),r.flags&512&&(T[0]=f&255,T[1]=f>>>8&255,r.check=de(r.check,T,2,0)),f=0,l=0,r.mode=Cs;case Cs:if(r.flags&1024){for(;l<16;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}r.length=f,r.head&&(r.head.extra_len=f),r.flags&512&&(T[0]=f&255,T[1]=f>>>8&255,r.check=de(r.check,T,2,0)),f=0,l=0;}else r.head&&(r.head.extra=null);r.mode=Ts;case Ts:if(r.flags&1024&&(h=r.length,h>s&&(h=s),h&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),V.arraySet(r.head.extra,i,a,h,E)),r.flags&512&&(r.check=de(r.check,i,h,a)),s-=h,a+=h,r.length-=h),r.length))break e;r.length=0,r.mode=As;case As:if(r.flags&2048){if(s===0)break e;h=0;do E=i[a+h++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&h<s);if(r.flags&512&&(r.check=de(r.check,i,h,a)),s-=h,a+=h,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Rs;case Rs:if(r.flags&4096){if(s===0)break e;h=0;do E=i[a+h++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E));while(E&&h<s);if(r.flags&512&&(r.check=de(r.check,i,h,a)),s-=h,a+=h,E)break e}else r.head&&(r.head.comment=null);r.mode=Os;case Os:if(r.flags&512){for(;l<16;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}if(f!==(r.check&65535)){e.msg="header crc mismatch",r.mode=z;break}f=0,l=0;}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=true),e.adler=r.check=0,r.mode=xe;break;case Is:for(;l<32;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}e.adler=r.check=Ws(f),f=0,l=0,r.mode=Zr;case Zr:if(r.havedict===0)return e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,r.hold=f,r.bits=l,Rd;e.adler=r.check=1,r.mode=xe;case xe:if(t===Td||t===Mr)break e;case bn:if(r.last){f>>>=l&7,l-=l&7,r.mode=yn;break}for(;l<3;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}switch(r.last=f&1,f>>>=1,l-=1,f&3){case 0:r.mode=Ds;break;case 1:if(Ld(r),r.mode=Pr,t===Mr){f>>>=2,l-=2;break e}break;case 2:r.mode=zs;break;case 3:e.msg="invalid block type",r.mode=z;}f>>>=2,l-=2;break;case Ds:for(f>>>=l&7,l-=l&7;l<32;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}if((f&65535)!==(f>>>16^65535)){e.msg="invalid stored block lengths",r.mode=z;break}if(r.length=f&65535,f=0,l=0,r.mode=mn,t===Mr)break e;case mn:r.mode=Bs;case Bs:if(h=r.length,h){if(h>s&&(h=s),h>u&&(h=u),h===0)break e;V.arraySet(n,i,a,h,o),s-=h,a+=h,u-=h,o+=h,r.length-=h;break}r.mode=xe;break;case zs:for(;l<14;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}if(r.nlen=(f&31)+257,f>>>=5,l-=5,r.ndist=(f&31)+1,f>>>=5,l-=5,r.ncode=(f&15)+4,f>>>=4,l-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=z;break}r.have=0,r.mode=Fs;case Fs:for(;r.have<r.ncode;){for(;l<3;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}r.lens[Y[r.have++]]=f&7,f>>>=3,l-=3;}for(;r.have<19;)r.lens[Y[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,D={bits:r.lenbits},S=$t(Cd,r.lens,0,19,r.lencode,0,r.work,D),r.lenbits=D.bits,S){e.msg="invalid code lengths set",r.mode=z;break}r.have=0,r.mode=Ns;case Ns:for(;r.have<r.nlen+r.ndist;){for(;y=r.lencode[f&(1<<r.lenbits)-1],_=y>>>24,c=y>>>16&255,m=y&65535,!(_<=l);){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}if(m<16)f>>>=_,l-=_,r.lens[r.have++]=m;else {if(m===16){for(x=_+2;l<x;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}if(f>>>=_,l-=_,r.have===0){e.msg="invalid bit length repeat",r.mode=z;break}E=r.lens[r.have-1],h=3+(f&3),f>>>=2,l-=2;}else if(m===17){for(x=_+3;l<x;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}f>>>=_,l-=_,E=0,h=3+(f&7),f>>>=3,l-=3;}else {for(x=_+7;l<x;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}f>>>=_,l-=_,E=0,h=11+(f&127),f>>>=7,l-=7;}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=z;break}for(;h--;)r.lens[r.have++]=E;}}if(r.mode===z)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=z;break}if(r.lenbits=9,D={bits:r.lenbits},S=$t(Ks,r.lens,0,r.nlen,r.lencode,0,r.work,D),r.lenbits=D.bits,S){e.msg="invalid literal/lengths set",r.mode=z;break}if(r.distbits=6,r.distcode=r.distdyn,D={bits:r.distbits},S=$t(Ys,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,D),r.distbits=D.bits,S){e.msg="invalid distances set",r.mode=z;break}if(r.mode=Pr,t===Mr)break e;case Pr:r.mode=Ur;case Ur:if(s>=6&&u>=258){e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,r.hold=f,r.bits=l,Ed(e,d),o=e.next_out,n=e.output,u=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,f=r.hold,l=r.bits,r.mode===xe&&(r.back=-1);break}for(r.back=0;y=r.lencode[f&(1<<r.lenbits)-1],_=y>>>24,c=y>>>16&255,m=y&65535,!(_<=l);){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}if(c&&(c&240)===0){for(p=_,g=c,C=m;y=r.lencode[C+((f&(1<<p+g)-1)>>p)],_=y>>>24,c=y>>>16&255,m=y&65535,!(p+_<=l);){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}f>>>=p,l-=p,r.back+=p;}if(f>>>=_,l-=_,r.back+=_,r.length=m,c===0){r.mode=Us;break}if(c&32){r.back=-1,r.mode=xe;break}if(c&64){e.msg="invalid literal/length code",r.mode=z;break}r.extra=c&15,r.mode=qs;case qs:if(r.extra){for(x=r.extra;l<x;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}r.length+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra;}r.was=r.length,r.mode=Ls;case Ls:for(;y=r.distcode[f&(1<<r.distbits)-1],_=y>>>24,c=y>>>16&255,m=y&65535,!(_<=l);){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}if((c&240)===0){for(p=_,g=c,C=m;y=r.distcode[C+((f&(1<<p+g)-1)>>p)],_=y>>>24,c=y>>>16&255,m=y&65535,!(p+_<=l);){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}f>>>=p,l-=p,r.back+=p;}if(f>>>=_,l-=_,r.back+=_,c&64){e.msg="invalid distance code",r.mode=z;break}r.offset=m,r.extra=c&15,r.mode=Ms;case Ms:if(r.extra){for(x=r.extra;l<x;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}r.offset+=f&(1<<r.extra)-1,f>>>=r.extra,l-=r.extra,r.back+=r.extra;}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=z;break}r.mode=Ps;case Ps:if(u===0)break e;if(h=d-u,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=z;break}h>r.wnext?(h-=r.wnext,k=r.wsize-h):k=r.wnext-h,h>r.length&&(h=r.length),b=r.window;}else b=n,k=o-r.offset,h=r.length;h>u&&(h=u),u-=h,r.length-=h;do n[o++]=b[k++];while(--h);r.length===0&&(r.mode=Ur);break;case Us:if(u===0)break e;n[o++]=r.length,u--,r.mode=Ur;break;case yn:if(r.wrap){for(;l<32;){if(s===0)break e;s--,f|=i[a++]<<l,l+=8;}if(d-=u,e.total_out+=d,r.total+=d,d&&(e.adler=r.check=r.flags?de(r.check,n,d,o-d):Sn(r.check,n,d,o-d)),d=u,(r.flags?f:Ws(f))!==r.check){e.msg="incorrect data check",r.mode=z;break}f=0,l=0;}r.mode=Zs;case Zs:if(r.wrap&&r.flags){for(;l<32;){if(s===0)break e;s--,f+=i[a++]<<l,l+=8;}if(f!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=z;break}f=0,l=0;}r.mode=js;case js:S=Ad;break e;case z:S=Xs;break e;case Cn:return En;case Id:default:return $}return e.next_out=o,e.avail_out=u,e.next_in=a,e.avail_in=s,r.hold=f,r.bits=l,(r.wsize||d!==e.avail_out&&r.mode<z&&(r.mode<yn||t!==ys))&&ef(e,e.output,e.next_out,d-e.avail_out)?(r.mode=Cn,En):(w-=e.avail_in,d-=e.avail_out,e.total_in+=w,e.total_out+=d,r.total+=d,r.wrap&&d&&(e.adler=r.check=r.flags?de(r.check,n,d,e.next_out-d):Sn(r.check,n,d,e.next_out-d)),e.data_type=r.bits+(r.last?64:0)+(r.mode===xe?128:0)+(r.mode===Pr||r.mode===mn?256:0),(w===0&&d===0||t===ys)&&S===He&&(S=Od),S)}function Pd(e){if(!e||!e.state)return $;var t=e.state;return t.window&&(t.window=null),e.state=null,He}function Ud(e,t){var r;return !e||!e.state||(r=e.state,(r.wrap&2)===0)?$:(r.head=t,t.done=false,He)}function Zd(e,t){var r=t.length,i,n,a;return !e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Zr)?$:i.mode===Zr&&(n=1,n=Sn(n,t,r,0),n!==i.check)?Xs:(a=ef(e,t,r,r),a?(i.mode=Cn,En):(i.havedict=1,He))}ie.inflateReset=Js;ie.inflateReset2=Qs;ie.inflateResetKeep=Vs;ie.inflateInit=qd;ie.inflateInit2=$s;ie.inflate=Md;ie.inflateEnd=Pd;ie.inflateGetHeader=Ud;ie.inflateSetDictionary=Zd;ie.inflateInfo="pako inflate (from Nodeca project)";});var Tn=chunkH5NTJZO4_js.b((Ip,rf)=>{rf.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};});var af=chunkH5NTJZO4_js.b((Dp,nf)=>{function jd(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=false;}nf.exports=jd;});var sf=chunkH5NTJZO4_js.b(tr=>{var wt=tf(),er=be(),jr=dn(),N=Tn(),An=Or(),Wd=cn(),Hd=af(),of=Object.prototype.toString;function Ke(e){if(!(this instanceof Ke))return new Ke(e);this.options=er.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=false,this.chunks=[],this.strm=new Wd,this.strm.avail_out=0;var r=wt.inflateInit2(this.strm,t.windowBits);if(r!==N.Z_OK)throw new Error(An[r]);if(this.header=new Hd,wt.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=jr.string2buf(t.dictionary):of.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=wt.inflateSetDictionary(this.strm,t.dictionary),r!==N.Z_OK)))throw new Error(An[r])}Ke.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,n=this.options.dictionary,a,o,s,u,f,l=false;if(this.ended)return false;o=t===~~t?t:t===true?N.Z_FINISH:N.Z_NO_FLUSH,typeof e=="string"?r.input=jr.binstring2buf(e):of.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new er.Buf8(i),r.next_out=0,r.avail_out=i),a=wt.inflate(r,N.Z_NO_FLUSH),a===N.Z_NEED_DICT&&n&&(a=wt.inflateSetDictionary(this.strm,n)),a===N.Z_BUF_ERROR&&l===true&&(a=N.Z_OK,l=false),a!==N.Z_STREAM_END&&a!==N.Z_OK)return this.onEnd(a),this.ended=true,false;r.next_out&&(r.avail_out===0||a===N.Z_STREAM_END||r.avail_in===0&&(o===N.Z_FINISH||o===N.Z_SYNC_FLUSH))&&(this.options.to==="string"?(s=jr.utf8border(r.output,r.next_out),u=r.next_out-s,f=jr.buf2string(r.output,s),r.next_out=u,r.avail_out=i-u,u&&er.arraySet(r.output,r.output,s,u,0),this.onData(f)):this.onData(er.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(l=true);}while((r.avail_in>0||r.avail_out===0)&&a!==N.Z_STREAM_END);return a===N.Z_STREAM_END&&(o=N.Z_FINISH),o===N.Z_FINISH?(a=wt.inflateEnd(this.strm),this.onEnd(a),this.ended=true,a===N.Z_OK):(o===N.Z_SYNC_FLUSH&&(this.onEnd(N.Z_OK),r.avail_out=0),true)};Ke.prototype.onData=function(e){this.chunks.push(e);};Ke.prototype.onEnd=function(e){e===N.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=er.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg;};function Rn(e,t){var r=new Ke(t);if(r.push(e,true),r.err)throw r.msg||An[r.err];return r.result}function Kd(e,t){return t=t||{},t.raw=true,Rn(e,t)}tr.Inflate=Ke;tr.inflate=Rn;tr.inflateRaw=Kd;tr.ungzip=Rn;});var uf=chunkH5NTJZO4_js.b((zp,lf)=>{var Yd=be().assign,Xd=hs(),Gd=sf(),Vd=Tn(),ff={};Yd(ff,Xd,Gd,Vd);lf.exports=ff;});var df=chunkH5NTJZO4_js.b(Hr=>{var Jd=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",Qd=uf(),hf=F(),Wr=G(),$d=Jd?"uint8array":"array";Hr.magic="\b\0";function Ye(e,t){Wr.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={};}hf.inherits(Ye,Wr);Ye.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(hf.transformTo($d,e.data),false);};Ye.prototype.flush=function(){Wr.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],true);};Ye.prototype.cleanUp=function(){Wr.prototype.cleanUp.call(this),this._pako=null;};Ye.prototype._createPako=function(){this._pako=new Qd[this._pakoAction]({raw:true,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta});};};Hr.compressWorker=function(e){return new Ye("Deflate",e)};Hr.uncompressWorker=function(){return new Ye("Inflate",{})};});var In=chunkH5NTJZO4_js.b(On=>{var cf=G();On.STORE={magic:"\0\0",compressWorker:function(){return new cf("STORE compression")},uncompressWorker:function(){return new cf("STORE decompression")}};On.DEFLATE=df();});var Dn=chunkH5NTJZO4_js.b(Xe=>{Xe.LOCAL_FILE_HEADER="PK";Xe.CENTRAL_FILE_HEADER="PK";Xe.CENTRAL_DIRECTORY_END="PK";Xe.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07";Xe.ZIP64_CENTRAL_DIRECTORY_END="PK";Xe.DATA_DESCRIPTOR="PK\x07\b";});var gf=chunkH5NTJZO4_js.b((Lp,_f)=>{var bt=F(),mt=G(),Bn=st(),pf=Er(),Kr=Dn(),I=function(e,t){var r="",i;for(i=0;i<t;i++)r+=String.fromCharCode(e&255),e=e>>>8;return r},ec=function(e,t){var r=e;return e||(r=t?16893:33204),(r&65535)<<16},tc=function(e){return (e||0)&63},vf=function(e,t,r,i,n,a){var o=e.file,s=e.compression,u=a!==Bn.utf8encode,f=bt.transformTo("string",a(o.name)),l=bt.transformTo("string",Bn.utf8encode(o.name)),w=o.comment,d=bt.transformTo("string",a(w)),h=bt.transformTo("string",Bn.utf8encode(w)),k=l.length!==o.name.length,b=h.length!==w.length,y,_,c="",m="",p="",g=o.dir,C=o.date,E={crc32:0,compressedSize:0,uncompressedSize:0};(!t||r)&&(E.crc32=e.crc32,E.compressedSize=e.compressedSize,E.uncompressedSize=e.uncompressedSize);var S=0;t&&(S|=8),!u&&(k||b)&&(S|=2048);var T=0,D=0;g&&(T|=16),n==="UNIX"?(D=798,T|=ec(o.unixPermissions,g)):(D=20,T|=tc(o.dosPermissions)),y=C.getUTCHours(),y=y<<6,y=y|C.getUTCMinutes(),y=y<<5,y=y|C.getUTCSeconds()/2,_=C.getUTCFullYear()-1980,_=_<<4,_=_|C.getUTCMonth()+1,_=_<<5,_=_|C.getUTCDate(),k&&(m=I(1,1)+I(pf(f),4)+l,c+="up"+I(m.length,2)+m),b&&(p=I(1,1)+I(pf(d),4)+h,c+="uc"+I(p.length,2)+p);var x="";x+=`
2
+ \0`,x+=I(S,2),x+=s.magic,x+=I(y,2),x+=I(_,2),x+=I(E.crc32,4),x+=I(E.compressedSize,4),x+=I(E.uncompressedSize,4),x+=I(f.length,2),x+=I(c.length,2);var Y=Kr.LOCAL_FILE_HEADER+x+f+c,Ge=Kr.CENTRAL_FILE_HEADER+I(D,2)+x+I(d.length,2)+"\0\0\0\0"+I(T,4)+I(i,4)+f+c+d;return {fileRecord:Y,dirRecord:Ge}},rc=function(e,t,r,i,n){var a="",o=bt.transformTo("string",n(i));return a=Kr.CENTRAL_DIRECTORY_END+"\0\0\0\0"+I(e,2)+I(e,2)+I(t,4)+I(r,4)+I(o.length,2)+o,a},ic=function(e){var t="";return t=Kr.DATA_DESCRIPTOR+I(e.crc32,4)+I(e.compressedSize,4)+I(e.uncompressedSize,4),t};function ne(e,t,r,i){mt.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=e,this.accumulate=false,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[];}bt.inherits(ne,mt);ne.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,mt.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-i-1))/r:100}}));};ne.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=vf(e,t,false,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}});}else this.accumulate=true;};ne.prototype.closedSource=function(e){this.accumulate=false;var t=this.streamFiles&&!e.file.dir,r=vf(e,t,true,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:ic(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null;};ne.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=rc(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}});};ne.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume();};ne.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r);}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end();}),e.on("error",function(r){t.error(r);}),this};ne.prototype.resume=function(){if(!mt.prototype.resume.call(this))return false;if(!this.previous&&this._sources.length)return this.prepareNextSource(),true;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),true};ne.prototype.error=function(e){var t=this._sources;if(!mt.prototype.error.call(this,e))return false;for(var r=0;r<t.length;r++)try{t[r].error(e);}catch{}return true};ne.prototype.lock=function(){mt.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock();};_f.exports=ne;});var bf=chunkH5NTJZO4_js.b(wf=>{var nc=In(),ac=gf(),oc=function(e,t){var r=e||t,i=nc[r];if(!i)throw new Error(r+" is not a valid compression method !");return i};wf.generateWorker=function(e,t,r){var i=new ac(t.streamFiles,r,t.platform,t.encodeFileName),n=0;try{e.forEach(function(a,o){n++;var s=oc(o.options.compression,t.compression),u=o.options.compressionOptions||t.compressionOptions||{},f=o.dir,l=o.date;o._compressWorker(s,u).withStreamInfo("file",{name:a,dir:f,date:l,comment:o.comment||"",unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions}).pipe(i);}),i.entriesCount=n;}catch(a){i.error(a);}return i};});var yf=chunkH5NTJZO4_js.b((Pp,mf)=>{var sc=F(),Yr=G();function rr(e,t){Yr.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=false,this._bindStream(t);}sc.inherits(rr,Yr);rr.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",function(r){t.push({data:r,meta:{percent:0}});}).on("error",function(r){t.isPaused?this.generatedError=r:t.error(r);}).on("end",function(){t.isPaused?t._upstreamEnded=true:t.end();});};rr.prototype.pause=function(){return Yr.prototype.pause.call(this)?(this._stream.pause(),true):false};rr.prototype.resume=function(){return Yr.prototype.resume.call(this)?(this._upstreamEnded?this.end():this._stream.resume(),true):false};mf.exports=rr;});var If=chunkH5NTJZO4_js.b((Up,Of)=>{var fc=st(),ir=F(),Ef=G(),lc=qi(),Cf=Li(),xf=Cr(),uc=xo(),hc=bf(),kf=Dt(),dc=yf(),Tf=function(e,t,r){var i=ir.getTypeOf(t),n,a=ir.extend(r||{},Cf);a.date=a.date||new Date,a.compression!==null&&(a.compression=a.compression.toUpperCase()),typeof a.unixPermissions=="string"&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&a.unixPermissions&16384&&(a.dir=true),a.dosPermissions&&a.dosPermissions&16&&(a.dir=true),a.dir&&(e=Af(e)),a.createFolders&&(n=cc(e))&&Rf.call(this,n,true);var o=i==="string"&&a.binary===false&&a.base64===false;(!r||typeof r.binary>"u")&&(a.binary=!o);var s=t instanceof xf&&t.uncompressedSize===0;(s||a.dir||!t||t.length===0)&&(a.base64=false,a.binary=true,t="",a.compression="STORE",i="string");var u=null;t instanceof xf||t instanceof Ef?u=t:kf.isNode&&kf.isStream(t)?u=new dc(e,t):u=ir.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var f=new uc(e,u,a);this.files[e]=f;},cc=function(e){e.slice(-1)==="/"&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},Af=function(e){return e.slice(-1)!=="/"&&(e+="/"),e},Rf=function(e,t){return t=typeof t<"u"?t:Cf.createFolders,e=Af(e),this.files[e]||Tf.call(this,e,null,{dir:true,createFolders:t}),this.files[e]};function Sf(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var pc={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,i;for(t in this.files)i=this.files[t],r=t.slice(this.root.length,t.length),r&&t.slice(0,this.root.length)===this.root&&e(r,i);},filter:function(e){var t=[];return this.forEach(function(r,i){e(r,i)&&t.push(i);}),t},file:function(e,t,r){if(arguments.length===1)if(Sf(e)){var i=e;return this.filter(function(a,o){return !o.dir&&i.test(a)})}else {var n=this.files[this.root+e];return n&&!n.dir?n:null}else e=this.root+e,Tf.call(this,e,t,r);return this},folder:function(e){if(!e)return this;if(Sf(e))return this.filter(function(n,a){return a.dir&&e.test(n)});var t=this.root+e,r=Rf.call(this,t),i=this.clone();return i.root=r.name,i},remove:function(e){e=this.root+e;var t=this.files[e];if(t||(e.slice(-1)!=="/"&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(n,a){return a.name.slice(0,e.length)===e}),i=0;i<r.length;i++)delete this.files[r[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if(r=ir.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:fc.utf8encode}),r.type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),r.type==="binarystring"&&(r.type="string"),!r.type)throw new Error("No output type specified.");ir.checkSupport(r.type),(r.platform==="darwin"||r.platform==="freebsd"||r.platform==="linux"||r.platform==="sunos")&&(r.platform="UNIX"),r.platform==="win32"&&(r.platform="DOS");var i=r.comment||this.comment||"";t=hc.generateWorker(this,r,i);}catch(n){t=new Ef("error"),t.error(n);}return new lc(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return e=e||{},e.type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};Of.exports=pc;});var zn=chunkH5NTJZO4_js.b((Zp,Bf)=>{var vc=F();function Df(e){this.data=e,this.length=e.length,this.index=0,this.zero=0;}Df.prototype={checkOffset:function(e){this.checkIndex(this.index+e);},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e;},skip:function(e){this.setIndex(this.index+e);},byteAt:function(){},readInt:function(e){var t=0,r;for(this.checkOffset(e),r=this.index+e-1;r>=this.index;r--)t=(t<<8)+this.byteAt(r);return this.index+=e,t},readString:function(e){return vc.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1))}};Bf.exports=Df;});var Fn=chunkH5NTJZO4_js.b((jp,Ff)=>{var zf=zn(),_c=F();function yt(e){zf.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=e[t]&255;}_c.inherits(yt,zf);yt.prototype.byteAt=function(e){return this.data[this.zero+e]};yt.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.length-4;a>=0;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===i&&this.data[a+3]===n)return a-this.zero;return -1};yt.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2),n=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&i===a[2]&&n===a[3]};yt.prototype.readData=function(e){if(this.checkOffset(e),e===0)return [];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Ff.exports=yt;});var Lf=chunkH5NTJZO4_js.b((Wp,qf)=>{var Nf=zn(),gc=F();function xt(e){Nf.call(this,e);}gc.inherits(xt,Nf);xt.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)};xt.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero};xt.prototype.readAndCheckSignature=function(e){var t=this.readData(4);return e===t};xt.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};qf.exports=xt;});var qn=chunkH5NTJZO4_js.b((Hp,Pf)=>{var Mf=Fn(),wc=F();function Nn(e){Mf.call(this,e);}wc.inherits(Nn,Mf);Nn.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Pf.exports=Nn;});var jf=chunkH5NTJZO4_js.b((Kp,Zf)=>{var Uf=qn(),bc=F();function Ln(e){Uf.call(this,e);}bc.inherits(Ln,Uf);Ln.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t};Zf.exports=Ln;});var Mn=chunkH5NTJZO4_js.b((Yp,Hf)=>{var Xr=F(),Wf=ge(),mc=Fn(),yc=Lf(),xc=jf(),kc=qn();Hf.exports=function(e){var t=Xr.getTypeOf(e);return Xr.checkSupport(t),t==="string"&&!Wf.uint8array?new yc(e):t==="nodebuffer"?new xc(e):Wf.uint8array?new kc(Xr.transformTo("uint8array",e)):new mc(Xr.transformTo("array",e))};});var Gf=chunkH5NTJZO4_js.b((Xp,Xf)=>{var Pn=Mn(),ze=F(),Sc=Cr(),Kf=Er(),Gr=st(),Vr=In(),Ec=ge(),Cc=0,Tc=3,Ac=function(e){for(var t in Vr)if(Object.prototype.hasOwnProperty.call(Vr,t)&&Vr[t].magic===e)return Vr[t];return null};function Yf(e,t){this.options=e,this.loadOptions=t;}Yf.prototype={isEncrypted:function(){return (this.bitFlag&1)===1},useUTF8:function(){return (this.bitFlag&2048)===2048},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(t=Ac(this.compressionMethod),t===null)throw new Error("Corrupted zip : compression "+ze.pretty(this.compressionMethod)+" unknown (inner file : "+ze.transformTo("string",this.fileName)+")");this.decompressed=new Sc(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize));},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength);},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),e===Cc&&(this.dosPermissions=this.externalFileAttributes&63),e===Tc&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=true);},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=Pn(this.extraFields[1].value);this.uncompressedSize===ze.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===ze.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===ze.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===ze.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4));}},readExtraFields:function(e){var t=e.index+this.extraFieldsLength,r,i,n;for(this.extraFields||(this.extraFields={});e.index+4<t;)r=e.readInt(2),i=e.readInt(2),n=e.readData(i),this.extraFields[r]={id:r,length:i,value:n};e.setIndex(t);},handleUTF8:function(){var e=Ec.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Gr.utf8decode(this.fileName),this.fileCommentStr=Gr.utf8decode(this.fileComment);else {var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else {var r=ze.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r);}var i=this.findExtraFieldUnicodeComment();if(i!==null)this.fileCommentStr=i;else {var n=ze.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(n);}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=Pn(e.value);return t.readInt(1)!==1||Kf(this.fileName)!==t.readInt(4)?null:Gr.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=Pn(e.value);return t.readInt(1)!==1||Kf(this.fileComment)!==t.readInt(4)?null:Gr.utf8decode(t.readData(e.length-5))}return null}};Xf.exports=Yf;});var Qf=chunkH5NTJZO4_js.b((Gp,Jf)=>{var Rc=Mn(),ke=F(),ae=Dn(),Oc=Gf(),Ic=ge();function Vf(e){this.files=[],this.loadOptions=e;}Vf.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+ke.pretty(t)+", expected "+ke.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var i=this.reader.readString(4),n=i===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=Ic.uint8array?"uint8array":"array",r=ke.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r);},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e=this.zip64EndOfCentralSize-44,t=0,r,i,n;t<e;)r=this.reader.readInt(2),i=this.reader.readInt(4),n=this.reader.readData(i),this.zip64ExtensibleData[r]={id:r,length:i,value:n};},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(ae.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes();},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(ae.CENTRAL_FILE_HEADER);)e=new Oc({zip64:this.zip64},this.loadOptions),e.readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(ae.CENTRAL_DIRECTORY_END);if(e<0){var t=!this.isSignature(0,ae.LOCAL_FILE_HEADER);throw t?new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html"):new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(e);var r=e;if(this.checkSignature(ae.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===ke.MAX_VALUE_16BITS||this.diskWithCentralDirStart===ke.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===ke.MAX_VALUE_16BITS||this.centralDirRecords===ke.MAX_VALUE_16BITS||this.centralDirSize===ke.MAX_VALUE_32BITS||this.centralDirOffset===ke.MAX_VALUE_32BITS){if(this.zip64=true,e=this.reader.lastIndexOfSignature(ae.ZIP64_CENTRAL_DIRECTORY_LOCATOR),e<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(ae.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,ae.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(ae.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(ae.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral();}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=r-i;if(n>0)this.isSignature(r,ae.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=Rc(e);},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles();}};Jf.exports=Vf;});var tl=chunkH5NTJZO4_js.b((Vp,el)=>{var Un=F(),Jr=nt(),Dc=st(),Bc=Qf(),zc=Ui(),$f=Dt();function Fc(e){return new Jr.Promise(function(t,r){var i=e.decompressed.getContentWorker().pipe(new zc);i.on("error",function(n){r(n);}).on("end",function(){i.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t();}).resume();})}el.exports=function(e,t){var r=this;return t=Un.extend(t||{},{base64:false,checkCRC32:false,optimizedBinaryString:false,createFolders:false,decodeFileName:Dc.utf8decode}),$f.isNode&&$f.isStream(e)?Jr.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Un.prepareContent("the loaded zip file",e,true,t.optimizedBinaryString,t.base64).then(function(i){var n=new Bc(t);return n.load(i),n}).then(function(n){var a=[Jr.Promise.resolve(n)],o=n.files;if(t.checkCRC32)for(var s=0;s<o.length;s++)a.push(Fc(o[s]));return Jr.Promise.all(a)}).then(function(n){for(var a=n.shift(),o=a.files,s=0;s<o.length;s++){var u=o[s],f=u.fileNameStr,l=Un.resolve(u.fileNameStr);r.file(l,u.decompressed,{binary:true,optimizedBinaryString:true,date:u.date,dir:u.dir,comment:u.fileCommentStr.length?u.fileCommentStr:null,unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions,createFolders:t.createFolders}),u.dir||(r.file(l).unsafeOriginalName=f);}return a.zipComment.length&&(r.comment=a.zipComment),r})};});var Nc=chunkH5NTJZO4_js.b((Jp,rl)=>{function ee(){if(!(this instanceof ee))return new ee;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new ee;for(var t in this)typeof this[t]!="function"&&(e[t]=this[t]);return e};}ee.prototype=If();ee.prototype.loadAsync=tl();ee.support=ge();ee.defaults=Li();ee.version="3.10.1";ee.loadAsync=function(e,t){return new ee().loadAsync(e,t)};ee.external=nt();rl.exports=ee;});
3
+ exports.a=Nc;
@@ -0,0 +1,10 @@
1
+ 'use strict';var chunkPB7VMDDP_js=require('./chunk-PB7VMDDP.js'),chunkKUL2SDYC_js=require('./chunk-KUL2SDYC.js');function _(e){return g(e).variables}function g(e){let t=[],n={body:[],headers:[],footers:[],footnotes:[],endnotes:[],textBoxes:[]};if(e.package?.document){let r=A(e.package.document);r.forEach(o=>{t.push({name:o,location:"body"});}),n.body=Array.from(new Set(r)).sort();}if(e.package?.document?.sections&&e.package.document.sections.forEach((r,o)=>{r.properties.headerReferences&&r.properties.headerReferences.forEach(i=>{});}),e.package?.footnotes){let r=C(e.package.footnotes);r.forEach(o=>{t.push({name:o,location:"footnote"});}),n.footnotes=Array.from(new Set(r)).sort();}if(e.package?.endnotes){let r=C(e.package.endnotes);r.forEach(o=>{t.push({name:o,location:"endnote"});}),n.endnotes=Array.from(new Set(r)).sort();}e.templateVariables&&e.templateVariables.forEach(r=>{t.some(o=>o.name===r)||t.push({name:r,location:"body"});});let a=new Set;return t.forEach(r=>a.add(r.name)),{variables:Array.from(a).sort(),totalOccurrences:t.length,byLocation:n,occurrences:t}}function A(e){let t=[];if(e.content&&t.push(...w(e.content)),e.sections)for(let n of e.sections)n.content&&t.push(...w(n.content));return t}function w(e){let t=[];for(let n of e)n.type==="paragraph"?t.push(...b(n)):n.type==="table"&&t.push(...I(n));return t}function b(e){let t=[];if(!e.content)return t;for(let n of e.content)n.type==="run"?t.push(...d(n)):n.type==="hyperlink"?t.push(...O(n)):n.type==="simpleField"?t.push(...N(n)):n.type==="complexField"&&t.push(...H(n));return t}function d(e){let t=[];if(!e.content)return t;for(let n of e.content)n.type==="text"&&n.text&&t.push(...P(n.text));return t}function O(e){let t=[];if(!e.children)return t;for(let n of e.children)n.type==="run"&&t.push(...d(n));return t}function N(e){let t=[];if(e.instruction&&t.push(...P(e.instruction)),e.content)for(let n of e.content)n.type==="run"&&t.push(...d(n));return t}function H(e){let t=[];if(e.fieldCode)for(let n of e.fieldCode)n.type==="run"&&t.push(...d(n));if(e.fieldResult)for(let n of e.fieldResult)n.type==="run"&&t.push(...d(n));return t}function I(e){let t=[];if(!e.rows)return t;for(let n of e.rows)if(n.cells)for(let a of n.cells)t.push(...$(a));return t}function $(e){let t=[];if(!e.content)return t;for(let n of e.content)n.type==="paragraph"?t.push(...b(n)):n.type==="table"&&t.push(...I(n));return t}function C(e){let t=[];for(let n of e)if(n.content)for(let a of n.content)t.push(...b(a));return t}var R=/\{([a-zA-Z_][a-zA-Z0-9_\-\.]*)\}/g,D=/\{(.+?)\}/g;function P(e){if(!e)return [];let t=[],n=new RegExp(R),a;for(;(a=n.exec(e))!==null;)t.push(a[1]);return t}function q(e){return R.test(e)}function U(e){return !(!e||typeof e!="string"||e.length===0||e.length>100||!/^[a-zA-Z_]/.test(e)||!/^[a-zA-Z_][a-zA-Z0-9_\-\.]*$/.test(e))}function X(e){if(!e)return "";let t=e.replace(/\s+/g,"_");return t=t.replace(/[^a-zA-Z0-9_\-\.]/g,""),t&&!/^[a-zA-Z_]/.test(t)&&(t="_"+t),t.substring(0,100)}function G(e){return `{${e}}`}function K(e){let t=e.match(/^\{(.+?)\}$/);return t?t[1]:null}function Q(e,t){return e&&e.replace(D,(n,a)=>{let r=a.trim();return r in t?t[r]:n})}function Y(e,t=""){return e&&e.replace(D,t)}function ee(e){return _(e).length>0}function J(e){return typeof e=="object"&&e!==null&&("_def"in e||"parse"in e||"safeParse"in e)}function k(e,t){let n=t,{position:a,variableName:r}=n,o=JSON.parse(JSON.stringify(e)),s=o.package.document.content.filter(u=>u.type==="paragraph");if(a.paragraphIndex>=s.length)throw new Error(`Paragraph index ${a.paragraphIndex} out of bounds`);let c=s[a.paragraphIndex],l=`{${r}}`;return E(c,a.offset,l),o.templateVariables||(o.templateVariables=[]),o.templateVariables.includes(r)||o.templateVariables.push(r),o}function M(e,t){let n=t,{range:a,variableName:r}=n,o=JSON.parse(JSON.stringify(e)),s=o.package.document.content.filter(u=>u.type==="paragraph");if(a.start.paragraphIndex!==a.end.paragraphIndex)throw new Error("Template variable replacement cannot span multiple paragraphs");if(a.start.paragraphIndex>=s.length)throw new Error(`Paragraph index ${a.start.paragraphIndex} out of bounds`);let c=s[a.start.paragraphIndex];L(c,a.start.offset,a.end.offset);let l=`{${r}}`;return E(c,a.start.offset,l),o.templateVariables||(o.templateVariables=[]),o.templateVariables.includes(r)||o.templateVariables.push(r),o}function E(e,t,n){let a=0,r=false;for(let o=0;o<e.content.length;o++){let i=e.content[o];if(i.type==="run"){let s=x(i),c=a,l=a+s.length;if(!r&&t>=c&&t<=l){let u=t-c,h=s.slice(0,u),y=s.slice(u),m=[];for(let p=0;p<o;p++)m.push(e.content[p]);h&&m.push({type:"run",formatting:i.formatting,content:[{type:"text",text:h}]}),m.push({type:"run",formatting:i.formatting,content:[{type:"text",text:n}]}),y&&m.push({type:"run",formatting:i.formatting,content:[{type:"text",text:y}]});for(let p=o+1;p<e.content.length;p++)m.push(e.content[p]);e.content=m,r=true;break}a=l;}else if(i.type==="hyperlink")for(let s of i.children)s.type==="run"&&(a+=x(s).length);}r||e.content.push({type:"run",content:[{type:"text",text:n}]});}function L(e,t,n){let a=[],r=0;for(let o of e.content)if(o.type==="run"){let i=x(o),s=r,c=r+i.length;if(c<=t||s>=n)a.push(o);else {let l="";s<t&&(l+=i.slice(0,t-s)),c>n&&(l+=i.slice(n-s)),l.length>0&&a.push({type:"run",formatting:o.formatting,content:[{type:"text",text:l}]});}r=c;}else a.push(o);e.content=a;}function x(e){return e.content.filter(t=>t.type==="text").map(t=>t.text).join("")}var f={type:"string",description:"Document ID from a previous docx_load call"},F={type:"object",properties:{paragraphIndex:{type:"number",description:"Index of the paragraph (0-indexed)"},offset:{type:"number",description:"Character offset within the paragraph"}},required:["paragraphIndex","offset"]},B={name:"docx_get_variables",description:`List all template variables ({name} format) found in the document.
2
+ Returns variable names without braces, along with their locations (body, headers, footers, etc.).
3
+ Use this to discover what data fields a template document expects.`,inputSchema:{type:"object",properties:{documentId:f},required:["documentId"]},handler:async(e,t)=>{let{documentId:n}=e,a=t.session.documents.get(n);if(!a)return {isError:true,content:[{type:"text",text:`Document not found: ${n}`}]};try{let r=g(a.document);return {content:[{type:"text",text:JSON.stringify({variables:r.variables,count:r.variables.length,totalOccurrences:r.totalOccurrences,byLocation:r.byLocation},null,2)}]}}catch(r){return {isError:true,content:[{type:"text",text:`Failed to detect variables: ${r.message}`}]}}},annotations:{category:"template",readOnly:true,complexity:"low",examples:[{description:"Get all variables from a loaded document",input:{documentId:"doc_123"},output:'{"variables": ["customer_name", "invoice_date"], "count": 2}'}]}},Z={name:"docx_insert_variable",description:`Insert a template variable placeholder ({name}) at a specific position in the document.
4
+ The variable can later be substituted with actual values using docx_apply_template.
5
+ Variable names should follow the pattern: letters, numbers, underscores, starting with a letter.`,inputSchema:{type:"object",properties:{documentId:f,position:F,variableName:{type:"string",description:'Variable name without braces (e.g., "customer_name"). Will be inserted as {customer_name}',pattern:"^[a-zA-Z_][a-zA-Z0-9_]*$"}},required:["documentId","position","variableName"]},handler:async(e,t)=>{let{documentId:n,position:a,variableName:r}=e,o=t.session.documents.get(n);if(!o)return {isError:true,content:[{type:"text",text:`Document not found: ${n}`}]};if(!/^[a-zA-Z_][a-zA-Z0-9_\-.]*$/.test(r))return {isError:true,content:[{type:"text",text:`Invalid variable name: ${r}. Must start with letter/underscore and contain only alphanumeric, underscore, hyphen, or dot.`}]};try{let{executeCommand:i}=await import('./executor-L2MVKMXO.js'),s=i(o.document,{type:"insertText",position:a,text:`{${r}}`});return o.document=s,o.lastModified=Date.now(),s.templateVariables||(s.templateVariables=[]),s.templateVariables.includes(r)||s.templateVariables.push(r),{content:[{type:"text",text:JSON.stringify({success:!0,variable:r,insertedAs:`{${r}}`,position:a})}]}}catch(i){return {isError:true,content:[{type:"text",text:`Failed to insert variable: ${i.message}`}]}}},annotations:{category:"template",readOnly:false,complexity:"low",examples:[{description:"Insert customer name variable at start of first paragraph",input:{documentId:"doc_123",position:{paragraphIndex:0,offset:0},variableName:"customer_name"}}]}},z={name:"docx_apply_template",description:`Substitute template variables with actual values in the document.
6
+ Replaces all {variable} placeholders with the corresponding values provided.
7
+ Preserves all formatting (fonts, styles, colors, tables).
8
+ Use docx_get_variables first to discover what variables exist in the document.`,inputSchema:{type:"object",properties:{documentId:f,variables:{type:"object",description:'Map of variable names to values (e.g., {"customer_name": "John Doe", "date": "2024-01-15"})',additionalProperties:{type:"string"}},keepUnmatchedVariables:{type:"boolean",description:"If true, keep {variable} placeholders for variables not in the map. If false, replace with empty string. Default: true",default:true}},required:["documentId","variables"]},handler:async(e,t)=>{let{documentId:n,variables:a,keepUnmatchedVariables:r=true}=e,o=t.session.documents.get(n);if(!o)return {isError:true,content:[{type:"text",text:`Document not found: ${n}`}]};if(!o.buffer)return {isError:true,content:[{type:"text",text:"Cannot apply template: document was not loaded from a DOCX buffer"}]};try{let i=chunkPB7VMDDP_js.b(o.buffer,a,{nullGetter:r?"keep":"empty"}),s=await chunkKUL2SDYC_js.n(i.buffer);return o.document=s,o.buffer=i.buffer,o.lastModified=Date.now(),{content:[{type:"text",text:JSON.stringify({success:!0,replacedVariables:i.replacedVariables,unreplacedVariables:i.unreplacedVariables,warnings:i.warnings})}]}}catch(i){return {isError:true,content:[{type:"text",text:`Failed to apply template: ${i.message}`}]}}},annotations:{category:"template",readOnly:false,complexity:"medium",examples:[{description:"Fill in customer and date values",input:{documentId:"doc_123",variables:{customer_name:"Jane Smith",invoice_date:"2024-02-15",amount:"$1,234.56"}}}]}},j={name:"docx_validate_template",description:`Validate that a document is a valid docxtemplater template.
9
+ Checks for syntax errors like unclosed braces, invalid tag names, etc.
10
+ Returns validation result with any errors found and list of valid tags.`,inputSchema:{type:"object",properties:{documentId:f},required:["documentId"]},handler:async(e,t)=>{let{documentId:n}=e,a=t.session.documents.get(n);if(!a)return {isError:true,content:[{type:"text",text:`Document not found: ${n}`}]};if(!a.buffer)return {isError:true,content:[{type:"text",text:"Cannot validate template: document was not loaded from a DOCX buffer"}]};try{let r=chunkPB7VMDDP_js.f(a.buffer);return {content:[{type:"text",text:JSON.stringify({valid:r.valid,tags:r.tags,errors:r.errors.map(o=>({message:o.message,variable:o.variable,type:o.type}))},null,2)}]}}catch(r){return {isError:true,content:[{type:"text",text:`Failed to validate template: ${r.message}`}]}}},annotations:{category:"template",readOnly:true,complexity:"low"}},S=[B,Z,z,j];var W={id:"docxtemplater",name:"Docxtemplater",version:"1.0.0",description:"Template variable support using standard docxtemplater syntax ({variable})",commandHandlers:{insertTemplateVariable:k,replaceWithTemplateVariable:M},mcpTools:S};exports.a=_;exports.b=g;exports.c=A;exports.d=b;exports.e=P;exports.f=q;exports.g=U;exports.h=X;exports.i=G;exports.j=K;exports.k=Q;exports.l=Y;exports.m=ee;exports.n=J;exports.o=W;