@piecemaker-legal/piecemaker 2.0.8 → 2.0.10

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 (169) hide show
  1. package/dist/assets/FindReplaceDialog-KU5TEIBJ-CQ76sPaJ.js +1 -0
  2. package/dist/assets/FootnotePropertiesDialog-W3YHM4BV-BpgYQvvd.js +1 -0
  3. package/dist/assets/HyperlinkDialog-ZYH7ZHRF-qIPBOssF.css +1 -0
  4. package/dist/assets/HyperlinkDialog-ZYH7ZHRF-z08UbYbL.js +144 -0
  5. package/dist/assets/ImagePositionDialog-HEWYR6Q3-CFzOnzAt.js +1 -0
  6. package/dist/assets/ImagePropertiesDialog-RAB47C6M-D-ThGU-b.js +1 -0
  7. package/dist/assets/PageSetupDialog-AIGIXO3E-_PYIO8eb.js +1 -0
  8. package/dist/assets/SplitCellDialog-IFBKYCD6-Cb9uQOB8.js +1 -0
  9. package/dist/assets/TablePropertiesDialog-TMLKGOOW-12vmjb6B.js +1 -0
  10. package/dist/assets/WatermarkDialog-KRL7WMIS-C-d8rzt2.js +1 -0
  11. package/dist/assets/{abnfDiagram-VCTEODGH-XuFdW3jA.js → abnfDiagram-VCTEODGH-B4OsX7eF.js} +1 -1
  12. package/dist/assets/arc-BK1oUIk7.js +1 -0
  13. package/dist/assets/architectureDiagram-5GKGNRK7-CfaFI6L7.js +36 -0
  14. package/dist/assets/{blockDiagram-I7D4REHJ-CsgOSDLB.js → blockDiagram-I7D4REHJ-DQEI2azY.js} +1 -1
  15. package/dist/assets/{c4Diagram-7LVT6UL2-awKtsGCB.js → c4Diagram-7LVT6UL2-DbravpVi.js} +1 -1
  16. package/dist/assets/channel-DVyNr2Yg.js +1 -0
  17. package/dist/assets/{chunk-2Q5K7J3B-DA5F8ig-.js → chunk-2Q5K7J3B-BLpZ9huC.js} +1 -1
  18. package/dist/assets/{chunk-5VM5RSS4-DawRFEGW.js → chunk-5VM5RSS4-BLlEdmX9.js} +1 -1
  19. package/dist/assets/{chunk-F27PBJKO-BO6B_U1p.js → chunk-F27PBJKO-D-ZNhI6q.js} +1 -1
  20. package/dist/assets/{chunk-IMKFNOWR-Dhrf_k6W.js → chunk-IMKFNOWR-vzSiKnhh.js} +1 -1
  21. package/dist/assets/{chunk-JWPE2WC7-BTGX4CJ7.js → chunk-JWPE2WC7-DfF0k4nb.js} +1 -1
  22. package/dist/assets/{chunk-POPQ4Y6H-ByKLZ0wa.js → chunk-POPQ4Y6H-BnwCYsPP.js} +1 -1
  23. package/dist/assets/{chunk-SVP7TREG-DNCtUeow.js → chunk-SVP7TREG-DRxc8fhq.js} +1 -1
  24. package/dist/assets/{chunk-TICWLB2K-bgcAtBKw.js → chunk-TICWLB2K-Dd2Q-md-.js} +1 -1
  25. package/dist/assets/{chunk-XXDRQBXY-AD-pwqOj.js → chunk-XXDRQBXY-DBjkEUp_.js} +1 -1
  26. package/dist/assets/classDiagram-ZZMXUADV-2pGPHl5H.js +1 -0
  27. package/dist/assets/classDiagram-v2-VYDZK3BY-2pGPHl5H.js +1 -0
  28. package/dist/assets/{cose-bilkent-JH36ORCC-D23VMTjy.js → cose-bilkent-JH36ORCC-By6PS4oe.js} +1 -1
  29. package/dist/assets/{cynefin-OW5HDTMX-thDLtHBg.js → cynefin-OW5HDTMX-YxWpjc5W.js} +1 -1
  30. package/dist/assets/{cynefinDiagram-5FMLGOSQ-BTG5qDGi.js → cynefinDiagram-5FMLGOSQ-DrtXzz3p.js} +1 -1
  31. package/dist/assets/{dagre-GXQ25YYZ-yXAeLV32.js → dagre-GXQ25YYZ-BDpTLKqZ.js} +1 -1
  32. package/dist/assets/{diagram-S7CK7UJ4-v1-YDY3c.js → diagram-S7CK7UJ4-C4LvqeCs.js} +1 -1
  33. package/dist/assets/{diagram-UQ7AKVKN-DlO9hQ63.js → diagram-UQ7AKVKN-BTpnMeHp.js} +1 -1
  34. package/dist/assets/{diagram-VSXAHHWV-B3Bz2C6Y.js → diagram-VSXAHHWV-DucHHWev.js} +1 -1
  35. package/dist/assets/{diagram-VX7I27RA-BosIgZRa.js → diagram-VX7I27RA-DYHZNmmH.js} +1 -1
  36. package/dist/assets/{diagram-Z3DM3KII-C1MFbIji.js → diagram-Z3DM3KII-BHIH2BGN.js} +1 -1
  37. package/dist/assets/{ebnfDiagram-PWID7BFC-B6g9aRAb.js → ebnfDiagram-PWID7BFC-CGiEkwj0.js} +1 -1
  38. package/dist/assets/{erDiagram-RLTQ6QDP-BuV5RUQ-.js → erDiagram-RLTQ6QDP-AJMHi2Us.js} +1 -1
  39. package/dist/assets/{flowDiagram-HODETNUW-OFcS8Psg.js → flowDiagram-HODETNUW-BqzANBh2.js} +1 -1
  40. package/dist/assets/{ganttDiagram-EL5Y4UJY-CxCIs-y4.js → ganttDiagram-EL5Y4UJY-B0xPDY2_.js} +1 -1
  41. package/dist/assets/{gitGraphDiagram-WWUBYQGX-DQHfgTRq.js → gitGraphDiagram-WWUBYQGX-CzPX5CNO.js} +1 -1
  42. package/dist/assets/{index-BPmxqMd5.js → index-Bk2iXKnJ.js} +140 -140
  43. package/dist/assets/index-Dc9wNuS4.css +1 -0
  44. package/dist/assets/{infoDiagram-27XIBGKW-UvDaFHGE.js → infoDiagram-27XIBGKW-Cjc44H0O.js} +1 -1
  45. package/dist/assets/{ishikawaDiagram-5VMMS53U-B04u_588.js → ishikawaDiagram-5VMMS53U-BWhr2v7r.js} +1 -1
  46. package/dist/assets/{journeyDiagram-3NMN7TZE-BYvBbjXl.js → journeyDiagram-3NMN7TZE-Bl4r6RrP.js} +1 -1
  47. package/dist/assets/{kanban-definition-UXKFOSKX-DxAJd2LW.js → kanban-definition-UXKFOSKX-FV-T0Vy1.js} +6 -6
  48. package/dist/assets/layout-CTfb1sAF.js +1 -0
  49. package/dist/assets/{linear-CmWY0F-m.js → linear-Dfgi6vlo.js} +1 -1
  50. package/dist/assets/{mermaid.core-ClUcKNvb.js → mermaid.core-DOCGsdlo.js} +7 -7
  51. package/dist/assets/{mindmap-definition-YA3MSWOX-DZ2GO-J-.js → mindmap-definition-YA3MSWOX-CymQ86ir.js} +1 -1
  52. package/dist/assets/{pegDiagram-XKGWAZYB-DF4i_o7r.js → pegDiagram-XKGWAZYB-1VMq_vi0.js} +1 -1
  53. package/dist/assets/{pieDiagram-E7YTZNPT-G20Z0KTO.js → pieDiagram-E7YTZNPT-C5GgXtJU.js} +1 -1
  54. package/dist/assets/processTemplate-GPFDLQMX-B1sVV2O0.js +22 -0
  55. package/dist/assets/{quadrantDiagram-AXDQQJYC-5MRlN0BO.js → quadrantDiagram-AXDQQJYC-C6zpryYf.js} +1 -1
  56. package/dist/assets/{railroadDiagram-O6MQD6OU-B4Fp-guo.js → railroadDiagram-O6MQD6OU-D-sv4SWi.js} +1 -1
  57. package/dist/assets/{requirementDiagram-BXWQKSXE-DFL0eww_.js → requirementDiagram-BXWQKSXE-CkjY-z4B.js} +1 -1
  58. package/dist/assets/sankeyDiagram-P5KCCOFB-De-d8Q6L.js +40 -0
  59. package/dist/assets/{sequenceDiagram-WJ2MYXX4-iP9OUxwi.js → sequenceDiagram-WJ2MYXX4-DCsGSJa9.js} +1 -1
  60. package/dist/assets/{server.browser-BzI1jrZw.js → server.browser-BY3bL-IX.js} +1 -1
  61. package/dist/assets/{sizeCapture-INFHLROL-C95kgcA-.js → sizeCapture-INFHLROL-xINZhgER.js} +1 -1
  62. package/dist/assets/stateDiagram-D77RDMKH-CuLUTWSL.js +1 -0
  63. package/dist/assets/stateDiagram-v2-MP3YSRHH-Cnbs-M92.js +1 -0
  64. package/dist/assets/{swimlanes-42K2YHIH-BbMY7ECY.js → swimlanes-42K2YHIH-BwxARD7N.js} +1 -1
  65. package/dist/assets/swimlanesDiagram-VR7AAH4N-D7p8qZI2.js +8 -0
  66. package/dist/assets/{timeline-definition-24CTP7MA-BQs8wPer.js → timeline-definition-24CTP7MA-BIOvnn-l.js} +3 -3
  67. package/dist/assets/{vendor-codemirror-CjW0lHR5.js → vendor-codemirror-CN-sJePf.js} +2 -2
  68. package/dist/assets/{vendor-react-D809iwXR.js → vendor-react-B22wqN3J.js} +5 -5
  69. package/dist/assets/{vennDiagram-4TSXK5OY-Imm0EPbt.js → vennDiagram-4TSXK5OY-BSD6Pfmt.js} +4 -4
  70. package/dist/assets/{wardleyDiagram-VM6X3IG4-DpMMDayn.js → wardleyDiagram-VM6X3IG4-7Zz2iRkF.js} +1 -1
  71. package/dist/assets/{xychartDiagram-S5SC5T6Z-DdLp1sYL.js → xychartDiagram-S5SC5T6Z-Ctx17Y1D.js} +1 -1
  72. package/dist/index.html +4 -4
  73. package/dist/sw.js +1 -1
  74. package/dist-server/server/modules/providers/list/mistral/mistral-models.provider.js +4 -53
  75. package/dist-server/server/modules/providers/list/mistral/mistral-models.provider.js.map +1 -1
  76. package/dist-server/server/modules/providers/list/mistral/mistral-runtime.provider.js +2 -3
  77. package/dist-server/server/modules/providers/list/mistral/mistral-runtime.provider.js.map +1 -1
  78. package/dist-server/server/modules/providers/list/mistral/mistral-vibe-models.js +30 -0
  79. package/dist-server/server/modules/providers/list/mistral/mistral-vibe-models.js.map +1 -0
  80. package/dist-server/server/modules/providers/tests/mistral-vibe-models.test.js +24 -0
  81. package/dist-server/server/modules/providers/tests/mistral-vibe-models.test.js.map +1 -0
  82. package/dist-server/server/piecemaker/anonymizer/lifecycle.js +2 -3
  83. package/dist-server/server/piecemaker/anonymizer/lifecycle.js.map +1 -1
  84. package/dist-server/server/piecemaker/desktop-update/index.js +4 -3
  85. package/dist-server/server/piecemaker/desktop-update/index.js.map +1 -1
  86. package/dist-server/server/piecemaker/docx-document.js +50 -0
  87. package/dist-server/server/piecemaker/docx-document.js.map +1 -0
  88. package/dist-server/server/piecemaker/index.js +9 -2
  89. package/dist-server/server/piecemaker/index.js.map +1 -1
  90. package/dist-server/server/piecemaker/model-discovery/codex-catalog.js +46 -0
  91. package/dist-server/server/piecemaker/model-discovery/codex-catalog.js.map +1 -0
  92. package/dist-server/server/piecemaker/model-discovery/index.js +42 -0
  93. package/dist-server/server/piecemaker/model-discovery/index.js.map +1 -0
  94. package/dist-server/server/piecemaker/model-discovery/mistral-catalog.js +19 -0
  95. package/dist-server/server/piecemaker/model-discovery/mistral-catalog.js.map +1 -0
  96. package/dist-server/server/piecemaker/model-discovery/stdio-rpc.js +61 -0
  97. package/dist-server/server/piecemaker/model-discovery/stdio-rpc.js.map +1 -0
  98. package/dist-server/server/piecemaker/project-registry.js +29 -0
  99. package/dist-server/server/piecemaker/project-registry.js.map +1 -0
  100. package/package.json +12 -1
  101. package/scripts/piecemaker/cli/disable-anonymizer.mjs +19 -0
  102. package/scripts/piecemaker/cli/lib/config.mjs +0 -1
  103. package/scripts/piecemaker/cli/lib/services.mjs +1 -10
  104. package/scripts/piecemaker/cli/piecemaker.mjs +0 -3
  105. package/server/modules/providers/list/mistral/mistral-models.provider.ts +4 -53
  106. package/server/modules/providers/list/mistral/mistral-runtime.provider.ts +2 -3
  107. package/server/modules/providers/list/mistral/mistral-vibe-models.ts +43 -0
  108. package/server/modules/providers/tests/mistral-vibe-models.test.ts +27 -0
  109. package/server/piecemaker/anonymizer/client-config.cjs +92 -92
  110. package/server/piecemaker/anonymizer/hudsucker-fixture.cjs +9 -16
  111. package/server/piecemaker/anonymizer/hudsucker-proxy/Cargo.toml +1 -1
  112. package/server/piecemaker/anonymizer/hudsucker-proxy/src/main.rs +251 -268
  113. package/server/piecemaker/anonymizer/lifecycle.ts +2 -3
  114. package/server/piecemaker/anonymizer/rewriter-bridge.cjs +6 -0
  115. package/server/piecemaker/anonymizer/service.cjs +117 -175
  116. package/server/piecemaker/desktop-update/index.ts +4 -3
  117. package/server/piecemaker/docx-document.ts +54 -0
  118. package/server/piecemaker/harness/decisions.cjs +1 -1
  119. package/server/piecemaker/harness/index.cjs +2 -3
  120. package/server/piecemaker/harness/verification.cjs +1 -1
  121. package/server/piecemaker/index.ts +11 -3
  122. package/server/piecemaker/model-discovery/codex-catalog.ts +67 -0
  123. package/server/piecemaker/model-discovery/index.ts +69 -0
  124. package/server/piecemaker/model-discovery/mistral-catalog.ts +36 -0
  125. package/server/piecemaker/model-discovery/stdio-rpc.ts +79 -0
  126. package/server/piecemaker/project-registry.ts +34 -0
  127. package/server/piecemaker/router.cjs +6 -7
  128. package/server/piecemaker/vendor/installer/bin/piecemaker.mjs +31 -77
  129. package/server/piecemaker/vendor/installer/lib/codex-skills.mjs +2 -84
  130. package/server/piecemaker/vendor/installer/lib/service.mjs +4 -24
  131. package/server/piecemaker/vendor/installer/steps/06-hooks.mjs +10 -21
  132. package/server/piecemaker/vendor/installer/steps/09-claude-assets.mjs +0 -11
  133. package/server/piecemaker/vendor/installer/steps/09-codex-plugin.mjs +6 -36
  134. package/server/piecemaker/vendor/installer/steps/13-garde-secrets.mjs +30 -12
  135. package/server/piecemaker/vendor/piecemaker-plugin/README.md +2 -9
  136. package/server/piecemaker/vendor/piecemaker-plugin/scripts/billing-track.mjs +5 -5
  137. package/server/piecemaker/vendor/piecemaker-plugin/scripts/classify-ai-documents.mjs +8 -8
  138. package/server/piecemaker/vendor/piecemaker-plugin/scripts/commit-track.mjs +2 -2
  139. package/server/piecemaker/vendor/piecemaker-plugin/scripts/compile-recherche.mjs +4 -6
  140. package/server/piecemaker/vendor/piecemaker-plugin/scripts/lib/case-folders.cjs +71 -38
  141. package/server/piecemaker/vendor/piecemaker-plugin/scripts/lib/mapping.cjs +8 -38
  142. package/server/piecemaker/vendor/piecemaker-plugin/scripts/lib/protection.cjs +82 -61
  143. package/server/piecemaker/vendor/piecemaker-plugin/scripts/protect-originals.mjs +4 -55
  144. package/server/piecemaker/vendor/piecemaker-plugin/scripts/statusline.mjs +24 -117
  145. package/server/piecemaker/vendor/piecemaker-plugin/skills/tamponnage/SKILL.md +2 -2
  146. package/server/piecemaker/vendor/websocket-server/admin-routes.cjs +15 -121
  147. package/server/piecemaker/vendor/websocket-server/case-registry.cjs +16 -32
  148. package/server/piecemaker/vendor/websocket-server/claude-hooks.cjs +0 -73
  149. package/server/piecemaker/vendor/websocket-server/originals-pipeline.cjs +0 -7
  150. package/server/piecemaker/vendor/websocket-server/scripts/presidio-gliner/scanner_worker.py +2 -0
  151. package/server/piecemaker/vendor/websocket-server/stamping-routes.cjs +3 -12
  152. package/server/piecemaker/vendor/websocket-server/workspace-paths.cjs +6 -6
  153. package/dist/assets/arc-CsCtfL20.js +0 -1
  154. package/dist/assets/architectureDiagram-5GKGNRK7-DGxozBGS.js +0 -36
  155. package/dist/assets/channel-DnynWwYa.js +0 -1
  156. package/dist/assets/classDiagram-ZZMXUADV-CHIsGj2B.js +0 -1
  157. package/dist/assets/classDiagram-v2-VYDZK3BY-CHIsGj2B.js +0 -1
  158. package/dist/assets/index-WwknP0l4.css +0 -1
  159. package/dist/assets/layout-R7w2kLxO.js +0 -1
  160. package/dist/assets/sankeyDiagram-P5KCCOFB-CpOdmqdy.js +0 -40
  161. package/dist/assets/stateDiagram-D77RDMKH-D9WHRvlY.js +0 -1
  162. package/dist/assets/stateDiagram-v2-MP3YSRHH-D9Qlflkb.js +0 -1
  163. package/dist/assets/swimlanesDiagram-VR7AAH4N-CA64dwpM.js +0 -8
  164. package/scripts/piecemaker/cli/lib/piecemaker-anonymizer.mjs +0 -78
  165. package/scripts/piecemaker/hooks/proxy-guard.mjs +0 -251
  166. package/server/piecemaker/anonymizer/providers.cjs +0 -120
  167. package/server/piecemaker/vendor/installer/steps/08-telegram.mjs +0 -482
  168. package/server/piecemaker/vendor/piecemaker-plugin/scripts/lib/central-mapping.cjs +0 -0
  169. package/server/piecemaker/vendor/websocket-server/telegram-admin.cjs +0 -602
@@ -0,0 +1,22 @@
1
+ import{g as Li}from"./vendor-react-B22wqN3J.js";var Vt={exports:{}},It={},wa;function Vn(){if(wa)return It;wa=1;var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return It.encode=function(u){for(var h="",b,y,I,P,k,O,c,s=0;s<u.length;)b=u.charCodeAt(s++),y=u.charCodeAt(s++),I=u.charCodeAt(s++),P=b>>2,k=(b&3)<<4|y>>4,O=(y&15)<<2|I>>6,c=I&63,isNaN(y)?O=c=64:isNaN(I)&&(c=64),h=h+l.charAt(P)+l.charAt(k)+l.charAt(O)+l.charAt(c);return h},It.decode=function(u){var h="",b,y,I,P,k,O,c,s=0;for(u=u.replace(/[^A-Za-z0-9\+\/\=]/g,"");s<u.length;)P=l.indexOf(u.charAt(s++)),k=l.indexOf(u.charAt(s++)),O=l.indexOf(u.charAt(s++)),c=l.indexOf(u.charAt(s++)),b=P<<2|k>>4,y=(k&15)<<4|O>>2,I=(O&3)<<6|c,h+=String.fromCharCode(b),O!==64&&(h+=String.fromCharCode(y)),c!==64&&(h+=String.fromCharCode(I));return h},It}var Ht,xa;function go(){return xa||(xa=1,Ht=function(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1048576,b=u===void 0?h:u;if(!Number.isSafeInteger(b)||b<64||b>2147483647)throw new RangeError("chunkSize must be an integer between 64 and 2147483647 bytes");return b}),Ht}var Zt,Da;function mo(){return Da||(Da=1,Zt=function(){throw new Error("Filesystem ZIP storage is only available in Node.js")}),Zt}var Pr={},Aa;function ht(){if(Aa)return Pr;if(Aa=1,Pr.base64=!0,Pr.array=!0,Pr.string=!0,Pr.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",Pr.nodebuffer=typeof Buffer<"u",Pr.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")Pr.blob=!1;else{var l=new ArrayBuffer(0);try{Pr.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var u=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,h=new u;h.append(l),Pr.blob=h.getBlob("application/zip").size===0}catch{Pr.blob=!1}}}return Pr}var Gt={},Rt={},ut={},bt={exports:{}};var yo=bt.exports,Ta;function bo(){return Ta||(Ta=1,(function(l,u){(function(h,b){b(u)})(yo,(function(h){function b(e){for(var n=e.length;--n>=0;)e[n]=0}var y=256,I=286,P=30,k=15,O=new Uint8Array([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]),c=new Uint8Array([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]),s=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),o=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),v=new Array(576);b(v);var f=new Array(60);b(f);var g=new Array(512);b(g);var N=new Array(256);b(N);var B=new Array(29);b(B);var T,V,q,W=new Array(P);function Y(e,n,r,A,x){this.static_tree=e,this.extra_bits=n,this.extra_base=r,this.elems=A,this.max_length=x,this.has_stree=e&&e.length}function w(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}b(W);var z=function(e){return e<256?g[e]:g[256+(e>>>7)]},C=function(e,n){e.pending_buf[e.pending++]=255&n,e.pending_buf[e.pending++]=n>>>8&255},E=function(e,n,r){e.bi_valid>16-r?(e.bi_buf|=n<<e.bi_valid&65535,C(e,e.bi_buf),e.bi_buf=n>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=r)},L=function(e,n,r){E(e,r[2*n],r[2*n+1])},K=function(e,n){var r=0;do r|=1&e,e>>>=1,r<<=1;while(--n>0);return r>>>1},ue=function(e,n,r){var A,x,R=new Array(16),ge=0;for(A=1;A<=k;A++)ge=ge+r[A-1]<<1,R[A]=ge;for(x=0;x<=n;x++){var te=e[2*x+1];te!==0&&(e[2*x]=K(R[te]++,te))}},we=function(e){var n;for(n=0;n<I;n++)e.dyn_ltree[2*n]=0;for(n=0;n<P;n++)e.dyn_dtree[2*n]=0;for(n=0;n<19;n++)e.bl_tree[2*n]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},De=function(e){e.bi_valid>8?C(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},J=function(e,n,r,A){var x=2*n,R=2*r;return e[x]<e[R]||e[x]===e[R]&&A[n]<=A[r]},Q=function(e,n,r){for(var A=e.heap[r],x=r<<1;x<=e.heap_len&&(x<e.heap_len&&J(n,e.heap[x+1],e.heap[x],e.depth)&&x++,!J(n,A,e.heap[x],e.depth));)e.heap[r]=e.heap[x],r=x,x<<=1;e.heap[r]=A},D=function(e,n,r){var A,x,R,ge,te=0;if(e.sym_next!==0)do A=255&e.pending_buf[e.sym_buf+te++],A+=(255&e.pending_buf[e.sym_buf+te++])<<8,x=e.pending_buf[e.sym_buf+te++],A===0?L(e,x,n):(R=N[x],L(e,R+y+1,n),(ge=O[R])!==0&&(x-=B[R],E(e,x,ge)),A--,R=z(A),L(e,R,r),(ge=c[R])!==0&&(A-=W[R],E(e,A,ge)));while(te<e.sym_next);L(e,256,n)},m=function(e,n){var r,A,x,R=n.dyn_tree,ge=n.stat_desc.static_tree,te=n.stat_desc.has_stree,pe=n.stat_desc.elems,$=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<pe;r++)R[2*r]!==0?(e.heap[++e.heap_len]=$=r,e.depth[r]=0):R[2*r+1]=0;for(;e.heap_len<2;)R[2*(x=e.heap[++e.heap_len]=$<2?++$:0)]=1,e.depth[x]=0,e.opt_len--,te&&(e.static_len-=ge[2*x+1]);for(n.max_code=$,r=e.heap_len>>1;r>=1;r--)Q(e,R,r);x=pe;do r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Q(e,R,1),A=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=A,R[2*x]=R[2*r]+R[2*A],e.depth[x]=(e.depth[r]>=e.depth[A]?e.depth[r]:e.depth[A])+1,R[2*r+1]=R[2*A+1]=x,e.heap[1]=x++,Q(e,R,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],(function(ae,tr){var Me,Ee,Be,rr,Qe,ir,Re=tr.dyn_tree,Ne=tr.max_code,He=tr.stat_desc.static_tree,vr=tr.stat_desc.has_stree,je=tr.stat_desc.extra_bits,fr=tr.stat_desc.extra_base,sr=tr.stat_desc.max_length,Ge=0;for(rr=0;rr<=k;rr++)ae.bl_count[rr]=0;for(Re[2*ae.heap[ae.heap_max]+1]=0,Me=ae.heap_max+1;Me<573;Me++)(rr=Re[2*Re[2*(Ee=ae.heap[Me])+1]+1]+1)>sr&&(rr=sr,Ge++),Re[2*Ee+1]=rr,Ee>Ne||(ae.bl_count[rr]++,Qe=0,Ee>=fr&&(Qe=je[Ee-fr]),ir=Re[2*Ee],ae.opt_len+=ir*(rr+Qe),vr&&(ae.static_len+=ir*(He[2*Ee+1]+Qe)));if(Ge!==0){do{for(rr=sr-1;ae.bl_count[rr]===0;)rr--;ae.bl_count[rr]--,ae.bl_count[rr+1]+=2,ae.bl_count[sr]--,Ge-=2}while(Ge>0);for(rr=sr;rr!==0;rr--)for(Ee=ae.bl_count[rr];Ee!==0;)(Be=ae.heap[--Me])>Ne||(Re[2*Be+1]!==rr&&(ae.opt_len+=(rr-Re[2*Be+1])*Re[2*Be],Re[2*Be+1]=rr),Ee--)}})(e,n),ue(R,$,e.bl_count)},S=function(e,n,r){var A,x,R=-1,ge=n[1],te=0,pe=7,$=4;for(ge===0&&(pe=138,$=3),n[2*(r+1)+1]=65535,A=0;A<=r;A++)x=ge,ge=n[2*(A+1)+1],++te<pe&&x===ge||(te<$?e.bl_tree[2*x]+=te:x!==0?(x!==R&&e.bl_tree[2*x]++,e.bl_tree[32]++):te<=10?e.bl_tree[34]++:e.bl_tree[36]++,te=0,R=x,ge===0?(pe=138,$=3):x===ge?(pe=6,$=3):(pe=7,$=4))},Z=function(e,n,r){var A,x,R=-1,ge=n[1],te=0,pe=7,$=4;for(ge===0&&(pe=138,$=3),A=0;A<=r;A++)if(x=ge,ge=n[2*(A+1)+1],!(++te<pe&&x===ge)){if(te<$)do L(e,x,e.bl_tree);while(--te!=0);else x!==0?(x!==R&&(L(e,x,e.bl_tree),te--),L(e,16,e.bl_tree),E(e,te-3,2)):te<=10?(L(e,17,e.bl_tree),E(e,te-3,3)):(L(e,18,e.bl_tree),E(e,te-11,7));te=0,R=x,ge===0?(pe=138,$=3):x===ge?(pe=6,$=3):(pe=7,$=4)}},ce=!1,Ce=function(e,n,r,A){E(e,0+(A?1:0),3),De(e),C(e,r),C(e,~r),r&&e.pending_buf.set(e.window.subarray(n,n+r),e.pending),e.pending+=r},be=function(e,n,r,A){var x,R,ge=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=(function(te){var pe,$=4093624447;for(pe=0;pe<=31;pe++,$>>>=1)if(1&$&&te.dyn_ltree[2*pe]!==0)return 0;if(te.dyn_ltree[18]!==0||te.dyn_ltree[20]!==0||te.dyn_ltree[26]!==0)return 1;for(pe=32;pe<y;pe++)if(te.dyn_ltree[2*pe]!==0)return 1;return 0})(e)),m(e,e.l_desc),m(e,e.d_desc),ge=(function(te){var pe;for(S(te,te.dyn_ltree,te.l_desc.max_code),S(te,te.dyn_dtree,te.d_desc.max_code),m(te,te.bl_desc),pe=18;pe>=3&&te.bl_tree[2*o[pe]+1]===0;pe--);return te.opt_len+=3*(pe+1)+5+5+4,pe})(e),x=e.opt_len+3+7>>>3,(R=e.static_len+3+7>>>3)<=x&&(x=R)):x=R=r+5,r+4<=x&&n!==-1?Ce(e,n,r,A):e.strategy===4||R===x?(E(e,2+(A?1:0),3),D(e,v,f)):(E(e,4+(A?1:0),3),(function(te,pe,$,ae){var tr;for(E(te,pe-257,5),E(te,$-1,5),E(te,ae-4,4),tr=0;tr<ae;tr++)E(te,te.bl_tree[2*o[tr]+1],3);Z(te,te.dyn_ltree,pe-1),Z(te,te.dyn_dtree,$-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,ge+1),D(e,e.dyn_ltree,e.dyn_dtree)),we(e),A&&De(e)},ye={_tr_init:function(e){ce||((function(){var n,r,A,x,R,ge=new Array(16);for(A=0,x=0;x<28;x++)for(B[x]=A,n=0;n<1<<O[x];n++)N[A++]=x;for(N[A-1]=x,R=0,x=0;x<16;x++)for(W[x]=R,n=0;n<1<<c[x];n++)g[R++]=x;for(R>>=7;x<P;x++)for(W[x]=R<<7,n=0;n<1<<c[x]-7;n++)g[256+R++]=x;for(r=0;r<=k;r++)ge[r]=0;for(n=0;n<=143;)v[2*n+1]=8,n++,ge[8]++;for(;n<=255;)v[2*n+1]=9,n++,ge[9]++;for(;n<=279;)v[2*n+1]=7,n++,ge[7]++;for(;n<=287;)v[2*n+1]=8,n++,ge[8]++;for(ue(v,287,ge),n=0;n<P;n++)f[2*n+1]=5,f[2*n]=K(n,5);T=new Y(v,O,257,I,k),V=new Y(f,c,0,P,k),q=new Y(new Array(0),s,0,19,7)})(),ce=!0),e.l_desc=new w(e.dyn_ltree,T),e.d_desc=new w(e.dyn_dtree,V),e.bl_desc=new w(e.bl_tree,q),e.bi_buf=0,e.bi_valid=0,we(e)},_tr_stored_block:Ce,_tr_flush_block:be,_tr_tally:function(e,n,r){return e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,n===0?e.dyn_ltree[2*r]++:(e.matches++,n--,e.dyn_ltree[2*(N[r]+y+1)]++,e.dyn_dtree[2*z(n)]++),e.sym_next===e.sym_end},_tr_align:function(e){E(e,2,3),L(e,256,v),(function(n){n.bi_valid===16?(C(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=255&n.bi_buf,n.bi_buf>>=8,n.bi_valid-=8)})(e)}},d=function(e,n,r,A){for(var x=65535&e|0,R=e>>>16&65535|0,ge=0;r!==0;){r-=ge=r>2e3?2e3:r;do R=R+(x=x+n[A++]|0)|0;while(--ge);x%=65521,R%=65521}return x|R<<16|0},a=new Uint32Array((function(){for(var e,n=[],r=0;r<256;r++){e=r;for(var A=0;A<8;A++)e=1&e?3988292384^e>>>1:e>>>1;n[r]=e}return n})()),p=function(e,n,r,A){var x=a,R=A+r;e^=-1;for(var ge=A;ge<R;ge++)e=e>>>8^x[255&(e^n[ge])];return-1^e},F={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"},H={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_MEM_ERROR:-4,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},me=ye._tr_init,ve=ye._tr_stored_block,Ae=ye._tr_flush_block,_e=ye._tr_tally,ke=ye._tr_align,Ie=H.Z_NO_FLUSH,j=H.Z_PARTIAL_FLUSH,ee=H.Z_FULL_FLUSH,U=H.Z_FINISH,fe=H.Z_BLOCK,de=H.Z_OK,Le=H.Z_STREAM_END,Se=H.Z_STREAM_ERROR,Je=H.Z_DATA_ERROR,Ze=H.Z_BUF_ERROR,Xe=H.Z_DEFAULT_COMPRESSION,er=H.Z_FILTERED,M=H.Z_HUFFMAN_ONLY,re=H.Z_RLE,se=H.Z_FIXED,he=H.Z_DEFAULT_STRATEGY,Pe=H.Z_UNKNOWN,Oe=H.Z_DEFLATED,ie=258,oe=262,X=42,ne=113,Te=666,Fe=function(e,n){return e.msg=F[n],n},We=function(e){return 2*e-(e>4?9:0)},Ue=function(e){for(var n=e.length;--n>=0;)e[n]=0},Ke=function(e){var n,r,A,x=e.w_size;A=n=e.hash_size;do r=e.head[--A],e.head[A]=r>=x?r-x:0;while(--n);A=n=x;do r=e.prev[--A],e.prev[A]=r>=x?r-x:0;while(--n)},or=function(e,n,r){return(n<<e.hash_shift^r)&e.hash_mask},ur=function(e,n){var r;if(e.legacy_hash)r=e.ins_h=or(e,e.ins_h,e.window[n+3-1]);else{var A=e.window,x=A[n]|A[n+1]<<8|A[n+2]<<16|A[n+3]<<24;r=e.ins_h=Math.imul(x,66521)+66521>>>16&e.hash_mask}var R=e.prev[n&e.w_mask]=e.head[r];return e.head[r]=n,R},nr=function(e){var n=e.state,r=n.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+r),e.next_out),e.next_out+=r,n.pending_out+=r,e.total_out+=r,e.avail_out-=r,n.pending-=r,n.pending===0&&(n.pending_out=0))},pr=function(e,n){Ae(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,nr(e.strm)},Ve=function(e,n){e.pending_buf[e.pending++]=n},yr=function(e,n){e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=255&n},Cr=function(e,n,r,A){var x=e.avail_in;return x>A&&(x=A),x===0?0:(e.avail_in-=x,n.set(e.input.subarray(e.next_in,e.next_in+x),r),e.state.wrap===1?e.adler=d(e.adler,n,x,r):e.state.wrap===2&&(e.adler=p(e.adler,n,x,r)),e.next_in+=x,e.total_in+=x,x)},ar=function(e,n){var r,A,x=e.max_chain_length,R=e.strstart,ge=e.prev_length,te=e.nice_match,pe=e.strstart>e.w_size-oe?e.strstart-(e.w_size-oe):0,$=e.window,ae=e.w_mask,tr=e.prev,Me=e.strstart+ie,Ee=$[R+ge-1],Be=$[R+ge];e.prev_length>=e.good_match&&(x>>=2),te>e.lookahead&&(te=e.lookahead);do if($[(r=n)+ge]===Be&&$[r+ge-1]===Ee&&$[r]===$[R]&&$[++r]===$[R+1]){R+=2,r++;do;while($[++R]===$[++r]&&$[++R]===$[++r]&&$[++R]===$[++r]&&$[++R]===$[++r]&&$[++R]===$[++r]&&$[++R]===$[++r]&&$[++R]===$[++r]&&$[++R]===$[++r]&&R<Me);if(A=ie-(Me-R),R=Me-ie,A>ge){if(e.match_start=n,ge=A,A>=te)break;Ee=$[R+ge-1],Be=$[R+ge]}}while((n=tr[n&ae])>pe&&--x!=0);return ge<=e.lookahead?ge:e.lookahead},cr=function(e){var n,r,A,x=e.w_size;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=x+(x-oe)&&(e.window.set(e.window.subarray(x,x+x-r),0),e.match_start-=x,e.strstart-=x,e.block_start-=x,e.insert>e.strstart&&(e.insert=e.strstart),Ke(e),r+=x),e.strm.avail_in===0)break;if(n=Cr(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.legacy_hash){if(e.lookahead+e.insert>=3)for(A=e.strstart-e.insert,e.ins_h=e.window[A],e.ins_h=or(e,e.ins_h,e.window[A+1]);e.insert&&(ur(e,A),A++,e.insert--,!(e.lookahead+e.insert<3)););}else if(e.lookahead+e.insert>3)for(A=e.strstart-e.insert;e.insert&&(ur(e,A),A++,e.insert--,!(e.lookahead+e.insert<=3)););}while(e.lookahead<oe&&e.strm.avail_in!==0)},Er=function(e,n){var r,A,x,R=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,ge=0,te=e.strm.avail_in;do{if(r=65535,x=e.bi_valid+42>>3,e.strm.avail_out<x||(x=e.strm.avail_out-x,r>(A=e.strstart-e.block_start)+e.strm.avail_in&&(r=A+e.strm.avail_in),r>x&&(r=x),r<R&&(r===0&&n!==U||n===Ie||r!==A+e.strm.avail_in)))break;ge=n===U&&r===A+e.strm.avail_in?1:0,ve(e,0,0,ge),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,nr(e.strm),A&&(A>r&&(A=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+A),e.strm.next_out),e.strm.next_out+=A,e.strm.avail_out-=A,e.strm.total_out+=A,e.block_start+=A,r-=A),r&&(Cr(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(ge===0);return(te-=e.strm.avail_in)&&(te>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=te&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-te,e.strm.next_in),e.strstart),e.strstart+=te,e.insert+=te>e.w_size-e.insert?e.w_size-e.insert:te),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),ge?4:n!==Ie&&n!==U&&e.strm.avail_in===0&&e.strstart===e.block_start?2:(x=e.window_size-e.strstart,e.strm.avail_in>x&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,x+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),x>e.strm.avail_in&&(x=e.strm.avail_in),x&&(Cr(e.strm,e.window,e.strstart,x),e.strstart+=x,e.insert+=x>e.w_size-e.insert?e.w_size-e.insert:x),e.high_water<e.strstart&&(e.high_water=e.strstart),x=e.bi_valid+42>>3,R=(x=e.pending_buf_size-x>65535?65535:e.pending_buf_size-x)>e.w_size?e.w_size:x,((A=e.strstart-e.block_start)>=R||(A||n===U)&&n!==Ie&&e.strm.avail_in===0&&A<=x)&&(r=A>x?x:A,ge=n===U&&e.strm.avail_in===0&&r===A?1:0,ve(e,e.block_start,r,ge),e.block_start+=r,nr(e.strm)),ge?3:1)},_r=function(e,n){for(var r,A;;){if(e.lookahead<oe){if(cr(e),e.lookahead<oe&&n===Ie)return 1;if(e.lookahead===0)break}if(r=0,e.lookahead>=3&&(r=ur(e,e.strstart)),r!==0&&e.strstart-r<=e.w_size-oe&&(e.match_length=ar(e,r)),e.match_length>=3)if(A=_e(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do e.strstart++,r=ur(e,e.strstart);while(--e.match_length!=0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.legacy_hash&&(e.ins_h=e.window[e.strstart],e.ins_h=or(e,e.ins_h,e.window[e.strstart+1]));else A=_e(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(A&&(pr(e,!1),e.strm.avail_out===0))return 1}return e.insert=e.strstart<2?e.strstart:2,n===U?(pr(e,!0),e.strm.avail_out===0?3:4):e.sym_next&&(pr(e,!1),e.strm.avail_out===0)?1:2},Nr=function(e,n){for(var r,A,x;;){if(e.lookahead<oe){if(cr(e),e.lookahead<oe&&n===Ie)return 1;if(e.lookahead===0)break}if(r=0,e.lookahead>=3&&(r=ur(e,e.strstart)),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-oe&&(e.match_length=ar(e,r),e.match_length<=5&&(e.strategy===er||e.match_length===3&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){x=e.strstart+e.lookahead-3,A=_e(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=x&&(r=ur(e,e.strstart));while(--e.prev_length!=0);if(e.match_available=0,e.match_length=2,e.strstart++,A&&(pr(e,!1),e.strm.avail_out===0))return 1}else if(e.match_available){if((A=_e(e,0,e.window[e.strstart-1]))&&pr(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(A=_e(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,n===U?(pr(e,!0),e.strm.avail_out===0?3:4):e.sym_next&&(pr(e,!1),e.strm.avail_out===0)?1:2};function Ar(e,n,r,A,x){this.good_length=e,this.max_lazy=n,this.nice_length=r,this.max_chain=A,this.func=x}var zr=[new Ar(0,0,0,0,Er),new Ar(4,4,8,4,_r),new Ar(4,5,16,8,_r),new Ar(4,6,32,32,_r),new Ar(4,4,16,16,Nr),new Ar(8,16,32,32,Nr),new Ar(8,16,128,128,Nr),new Ar(8,32,128,256,Nr),new Ar(32,128,258,1024,Nr),new Ar(32,258,258,4096,Nr)];function rt(){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=Oe,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.legacy_hash=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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Ue(this.dyn_ltree),Ue(this.dyn_dtree),Ue(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Ue(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Ue(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var t=function(e){if(!e)return 1;var n=e.state;return!n||n.strm!==e||n.status!==X&&n.status!==57&&n.status!==69&&n.status!==73&&n.status!==91&&n.status!==103&&n.status!==ne&&n.status!==Te?1:0},i=function(e){if(t(e))return Fe(e,Se);e.total_in=e.total_out=0,e.data_type=Pe;var n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?57:n.wrap?X:ne,e.adler=n.wrap===2?0:1,n.last_flush=-2,me(n),de},_=function(e){var n,r=i(e);return r===de&&((n=e.state).window_size=2*n.w_size,Ue(n.head),n.max_lazy_match=zr[n.level].max_lazy,n.good_match=zr[n.level].good_length,n.nice_match=zr[n.level].nice_length,n.max_chain_length=zr[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),r},G=function(e,n,r,A,x,R,ge){if(!e)return Se;var te=1;if(n===Xe&&(n=6),A<0?(te=0,A=-A):A>15&&(te=2,A-=16),x<1||x>9||r!==Oe||A<8||A>15||n<0||n>9||R<0||R>se||A===8&&te!==1)return Fe(e,Se);A===8&&(A=9);var pe=new rt;return e.state=pe,pe.strm=e,pe.status=X,pe.wrap=te,pe.gzhead=null,pe.w_bits=A,pe.w_size=1<<pe.w_bits,pe.w_mask=pe.w_size-1,pe.legacy_hash=ge?1:0,pe.hash_bits=x+7,!pe.legacy_hash&&pe.hash_bits<15&&(pe.hash_bits=15),pe.hash_size=1<<pe.hash_bits,pe.hash_mask=pe.hash_size-1,pe.hash_shift=~~((pe.hash_bits+3-1)/3),pe.window=new Uint8Array(2*pe.w_size),pe.head=new Uint16Array(pe.hash_size),pe.prev=new Uint16Array(pe.w_size),pe.lit_bufsize=1<<x+6,pe.pending_buf_size=4*pe.lit_bufsize,pe.pending_buf=new Uint8Array(pe.pending_buf_size),pe.sym_buf=pe.lit_bufsize,pe.sym_end=3*(pe.lit_bufsize-1),pe.level=n,pe.strategy=R,pe.method=r,_(e)},le={deflateInit:function(e,n){return G(e,n,Oe,15,8,he)},deflateInit2:G,deflateReset:_,deflateResetKeep:i,deflateSetHeader:function(e,n){return t(e)||e.state.wrap!==2?Se:(e.state.gzhead=n,de)},deflate:function(e,n){if(t(e)||n>fe||n<0)return e?Fe(e,Se):Se;var r=e.state;if(!e.output||e.avail_in!==0&&!e.input||r.status===Te&&n!==U)return Fe(e,e.avail_out===0?Ze:Se);var A=r.last_flush;if(r.last_flush=n,r.pending!==0){if(nr(e),e.avail_out===0)return r.last_flush=-1,de}else if(e.avail_in===0&&We(n)<=We(A)&&n!==U)return Fe(e,Ze);if(r.status===Te&&e.avail_in!==0)return Fe(e,Ze);if(r.status===X&&r.wrap===0&&(r.status=ne),r.status===X){var x=Oe+(r.w_bits-8<<4)<<8;if(x|=(r.strategy>=M||r.level<2?0:r.level<6?1:r.level===6?2:3)<<6,r.strstart!==0&&(x|=32),yr(r,x+=31-x%31),r.strstart!==0&&(yr(r,e.adler>>>16),yr(r,65535&e.adler)),e.adler=1,r.status=ne,nr(e),r.pending!==0)return r.last_flush=-1,de}if(r.status===57){if(e.adler=0,Ve(r,31),Ve(r,139),Ve(r,8),r.gzhead)Ve(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Ve(r,255&r.gzhead.time),Ve(r,r.gzhead.time>>8&255),Ve(r,r.gzhead.time>>16&255),Ve(r,r.gzhead.time>>24&255),Ve(r,r.level===9?2:r.strategy>=M||r.level<2?4:0),Ve(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Ve(r,255&r.gzhead.extra.length),Ve(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=p(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69;else if(Ve(r,0),Ve(r,0),Ve(r,0),Ve(r,0),Ve(r,0),Ve(r,r.level===9?2:r.strategy>=M||r.level<2?4:0),Ve(r,3),r.status=ne,nr(e),r.pending!==0)return r.last_flush=-1,de}if(r.status===69){if(r.gzhead.extra){for(var R=r.pending,ge=(65535&r.gzhead.extra.length)-r.gzindex;r.pending+ge>r.pending_buf_size;){var te=r.pending_buf_size-r.pending;if(r.pending_buf.set(r.gzhead.extra.subarray(r.gzindex,r.gzindex+te),r.pending),r.pending=r.pending_buf_size,r.gzhead.hcrc&&r.pending>R&&(e.adler=p(e.adler,r.pending_buf,r.pending-R,R)),r.gzindex+=te,nr(e),r.pending!==0)return r.last_flush=-1,de;R=0,ge-=te}var pe=new Uint8Array(r.gzhead.extra);r.pending_buf.set(pe.subarray(r.gzindex,r.gzindex+ge),r.pending),r.pending+=ge,r.gzhead.hcrc&&r.pending>R&&(e.adler=p(e.adler,r.pending_buf,r.pending-R,R)),r.gzindex=0}r.status=73}if(r.status===73){if(r.gzhead.name){var $,ae=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>ae&&(e.adler=p(e.adler,r.pending_buf,r.pending-ae,ae)),nr(e),r.pending!==0)return r.last_flush=-1,de;ae=0}$=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Ve(r,$)}while($!==0);r.gzhead.hcrc&&r.pending>ae&&(e.adler=p(e.adler,r.pending_buf,r.pending-ae,ae)),r.gzindex=0}r.status=91}if(r.status===91){if(r.gzhead.comment){var tr,Me=r.pending;do{if(r.pending===r.pending_buf_size){if(r.gzhead.hcrc&&r.pending>Me&&(e.adler=p(e.adler,r.pending_buf,r.pending-Me,Me)),nr(e),r.pending!==0)return r.last_flush=-1,de;Me=0}tr=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Ve(r,tr)}while(tr!==0);r.gzhead.hcrc&&r.pending>Me&&(e.adler=p(e.adler,r.pending_buf,r.pending-Me,Me))}r.status=103}if(r.status===103){if(r.gzhead.hcrc){if(r.pending+2>r.pending_buf_size&&(nr(e),r.pending!==0))return r.last_flush=-1,de;Ve(r,255&e.adler),Ve(r,e.adler>>8&255),e.adler=0}if(r.status=ne,nr(e),r.pending!==0)return r.last_flush=-1,de}if(e.avail_in!==0||r.lookahead!==0||n!==Ie&&r.status!==Te){var Ee=r.level===0?Er(r,n):r.strategy===M?(function(Be,rr){for(var Qe;;){if(Be.lookahead===0&&(cr(Be),Be.lookahead===0)){if(rr===Ie)return 1;break}if(Be.match_length=0,Qe=_e(Be,0,Be.window[Be.strstart]),Be.lookahead--,Be.strstart++,Qe&&(pr(Be,!1),Be.strm.avail_out===0))return 1}return Be.insert=0,rr===U?(pr(Be,!0),Be.strm.avail_out===0?3:4):Be.sym_next&&(pr(Be,!1),Be.strm.avail_out===0)?1:2})(r,n):r.strategy===re?(function(Be,rr){for(var Qe,ir,Re,Ne,He=Be.window;;){if(Be.lookahead<=ie){if(cr(Be),Be.lookahead<=ie&&rr===Ie)return 1;if(Be.lookahead===0)break}if(Be.match_length=0,Be.lookahead>=3&&Be.strstart>0&&(ir=He[Re=Be.strstart-1])===He[++Re]&&ir===He[++Re]&&ir===He[++Re]){Ne=Be.strstart+ie;do;while(ir===He[++Re]&&ir===He[++Re]&&ir===He[++Re]&&ir===He[++Re]&&ir===He[++Re]&&ir===He[++Re]&&ir===He[++Re]&&ir===He[++Re]&&Re<Ne);Be.match_length=ie-(Ne-Re),Be.match_length>Be.lookahead&&(Be.match_length=Be.lookahead)}if(Be.match_length>=3?(Qe=_e(Be,1,Be.match_length-3),Be.lookahead-=Be.match_length,Be.strstart+=Be.match_length,Be.match_length=0):(Qe=_e(Be,0,Be.window[Be.strstart]),Be.lookahead--,Be.strstart++),Qe&&(pr(Be,!1),Be.strm.avail_out===0))return 1}return Be.insert=0,rr===U?(pr(Be,!0),Be.strm.avail_out===0?3:4):Be.sym_next&&(pr(Be,!1),Be.strm.avail_out===0)?1:2})(r,n):zr[r.level].func(r,n);if(Ee!==3&&Ee!==4||(r.status=Te),Ee===1||Ee===3)return e.avail_out===0&&(r.last_flush=-1),de;if(Ee===2&&(n===j?ke(r):n!==fe&&(ve(r,0,0,!1),n===ee&&(Ue(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),nr(e),e.avail_out===0))return r.last_flush=-1,de}return n!==U?de:r.wrap<=0?Le:(r.wrap===2?(Ve(r,255&e.adler),Ve(r,e.adler>>8&255),Ve(r,e.adler>>16&255),Ve(r,e.adler>>24&255),Ve(r,255&e.total_in),Ve(r,e.total_in>>8&255),Ve(r,e.total_in>>16&255),Ve(r,e.total_in>>24&255)):(yr(r,e.adler>>>16),yr(r,65535&e.adler)),nr(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?de:Le)},deflateEnd:function(e){if(t(e))return Se;var n=e.state.status;return e.state=null,n===ne?Fe(e,Je):de},deflateSetDictionary:function(e,n){var r=n.length;if(t(e))return Se;var A=e.state,x=A.wrap;if(x===2||x===1&&A.status!==X||A.lookahead)return Se;if(x===1&&(e.adler=d(e.adler,n,r,0)),A.wrap=0,r>=A.w_size){x===0&&(Ue(A.head),A.strstart=0,A.block_start=0,A.insert=0);var R=new Uint8Array(A.w_size);R.set(n.subarray(r-A.w_size,r),0),n=R,r=A.w_size}var ge=e.avail_in,te=e.next_in,pe=e.input;for(e.avail_in=r,e.next_in=0,e.input=n,cr(A);A.lookahead>=3;){var $=A.strstart,ae=A.lookahead-2;do ur(A,$),$++;while(--ae);A.strstart=$,A.lookahead=2,cr(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=2,A.match_available=0,e.next_in=te,e.input=pe,e.avail_in=ge,A.wrap=x,de},deflateInfo:"pako deflate (from Nodeca project)"};function xe(e){return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xe(e)}var ze=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},hr=function(e){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var r=n.shift();if(r){if(xe(r)!=="object")throw new TypeError(r+"must be non-object");for(var A in r)ze(r,A)&&(e[A]=r[A])}}return e},br=function(e){for(var n=0,r=0,A=e.length;r<A;r++)n+=e[r].length;for(var x=new Uint8Array(n),R=0,ge=0,te=e.length;R<te;R++){var pe=e[R];x.set(pe,ge),ge+=pe.length}return x},qe=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{qe=!1}for(var wr=new Uint8Array(256),xr=0;xr<256;xr++)wr[xr]=xr>=252?6:xr>=248?5:xr>=240?4:xr>=224?3:xr>=192?2:1;wr[254]=wr[255]=1;var Or=function(e){if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);var n,r,A,x,R,ge=e.length,te=0;for(x=0;x<ge;x++)(64512&(r=e.charCodeAt(x)))==55296&&x+1<ge&&(64512&(A=e.charCodeAt(x+1)))==56320&&(r=65536+(r-55296<<10)+(A-56320),x++),te+=r<128?1:r<2048?2:r<65536?3:4;for(n=new Uint8Array(te),R=0,x=0;R<te;x++)(64512&(r=e.charCodeAt(x)))==55296&&x+1<ge&&(64512&(A=e.charCodeAt(x+1)))==56320&&(r=65536+(r-55296<<10)+(A-56320),x++),r<128?n[R++]=r:r<2048?(n[R++]=192|r>>>6,n[R++]=128|63&r):r<65536?(n[R++]=224|r>>>12,n[R++]=128|r>>>6&63,n[R++]=128|63&r):(n[R++]=240|r>>>18,n[R++]=128|r>>>12&63,n[R++]=128|r>>>6&63,n[R++]=128|63&r);return n},Ir=function(e,n){var r,A,x=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));var R=new Array(2*x);for(A=0,r=0;r<x;){var ge=e[r++];if(ge<128)R[A++]=ge;else{var te=wr[ge];if(te>4)R[A++]=65533,r+=te-1;else{for(ge&=te===2?31:te===3?15:7;te>1&&r<x;)ge=ge<<6|63&e[r++],te--;te>1?R[A++]=65533:ge<65536?R[A++]=ge:(ge-=65536,R[A++]=55296|ge>>10&1023,R[A++]=56320|1023&ge)}}}return(function(pe,$){if($<65534&&pe.subarray&&qe)return String.fromCharCode.apply(null,pe.length===$?pe:pe.subarray(0,$));for(var ae="",tr=0;tr<$;tr++)ae+=String.fromCharCode(pe[tr]);return ae})(R,A)},tt=function(e,n){(n=n||e.length)>e.length&&(n=e.length);for(var r=n-1;r>=0&&(192&e[r])==128;)r--;return r<0||r===0?n:r+wr[e[r]]>n?r:n},jr=function(){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},nt=Object.prototype.toString,ct=H.Z_NO_FLUSH,Hr=H.Z_SYNC_FLUSH,Zr=H.Z_FULL_FLUSH,Xr=H.Z_FINISH,Br=H.Z_OK,Rr=H.Z_STREAM_END,vt={level:H.Z_DEFAULT_COMPRESSION,method:H.Z_DEFLATED,chunkSize:16384,windowBits:15,memLevel:8,strategy:H.Z_DEFAULT_STRATEGY,legacyHash:!0};function Lr(e){this.options=hr({},vt,e||{});var n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new jr,this.strm.avail_out=0;var r=le.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy,n.legacyHash);if(r!==Br)throw new Error(F[r]);if(n.header&&le.deflateSetHeader(this.strm,n.header),n.dictionary){var A;if(A=typeof n.dictionary=="string"?Or(n.dictionary):nt.call(n.dictionary)==="[object ArrayBuffer]"?new Uint8Array(n.dictionary):n.dictionary,(r=le.deflateSetDictionary(this.strm,A))!==Br)throw new Error(F[r]);this._dict_set=!0}}function Gr(e,n){var r=new Lr(n);if(r.push(e,!0),r.err)throw r.msg||F[r.err];return r.result}Lr.prototype.push=function(e,n){var r,A,x=this.strm,R=this.options.chunkSize;if(this.ended)return!1;for(A=n===~~n?n:n===!0?Xr:ct,typeof e=="string"?x.input=Or(e):nt.call(e)==="[object ArrayBuffer]"?x.input=new Uint8Array(e):x.input=e,x.next_in=0,x.avail_in=x.input.length;;)if(x.avail_out===0&&(x.output=new Uint8Array(R),x.next_out=0,x.avail_out=R),(A===Hr||A===Zr)&&x.avail_out<=6)this.onData(x.output.subarray(0,x.next_out)),x.avail_out=0;else{if((r=le.deflate(x,A))===Rr)return x.next_out>0&&this.onData(x.output.subarray(0,x.next_out)),r=le.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===Br;if(x.avail_out!==0){if(A>0&&x.next_out>0)this.onData(x.output.subarray(0,x.next_out)),x.avail_out=0;else if(x.avail_in===0)break}else this.onData(x.output)}return!0},Lr.prototype.onData=function(e){this.chunks.push(e)},Lr.prototype.onEnd=function(e){e===Br&&(this.result=br(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Kr={Deflate:Lr,deflate:Gr,deflateRaw:function(e,n){return(n=n||{}).raw=!0,Gr(e,n)},gzip:function(e,n){return(n=n||{}).gzip=!0,Gr(e,n)}},Qr=16209,Jr=function(e,n){var r,A,x,R,ge,te,pe,$,ae,tr,Me,Ee,Be,rr,Qe,ir,Re,Ne,He,vr,je,fr,sr,Ge,$e=e.state;r=e.next_in,sr=e.input,A=r+(e.avail_in-5),x=e.next_out,Ge=e.output,R=x-(n-e.avail_out),ge=x+(e.avail_out-257),te=$e.dmax,pe=$e.wsize,$=$e.whave,ae=$e.wnext,tr=$e.window,Me=$e.hold,Ee=$e.bits,Be=$e.lencode,rr=$e.distcode,Qe=(1<<$e.lenbits)-1,ir=(1<<$e.distbits)-1;e:do{Ee<15&&(Me+=sr[r++]<<Ee,Ee+=8,Me+=sr[r++]<<Ee,Ee+=8),Re=Be[Me&Qe];r:for(;;){if(Me>>>=Ne=Re>>>24,Ee-=Ne,(Ne=Re>>>16&255)===0)Ge[x++]=65535&Re;else{if(!(16&Ne)){if((64&Ne)==0){Re=Be[(65535&Re)+(Me&(1<<Ne)-1)];continue r}if(32&Ne){$e.mode=16191;break e}e.msg="invalid literal/length code",$e.mode=Qr;break e}He=65535&Re,(Ne&=15)&&(Ee<Ne&&(Me+=sr[r++]<<Ee,Ee+=8),He+=Me&(1<<Ne)-1,Me>>>=Ne,Ee-=Ne),Ee<15&&(Me+=sr[r++]<<Ee,Ee+=8,Me+=sr[r++]<<Ee,Ee+=8),Re=rr[Me&ir];t:for(;;){if(Me>>>=Ne=Re>>>24,Ee-=Ne,!(16&(Ne=Re>>>16&255))){if((64&Ne)==0){Re=rr[(65535&Re)+(Me&(1<<Ne)-1)];continue t}e.msg="invalid distance code",$e.mode=Qr;break e}if(vr=65535&Re,Ee<(Ne&=15)&&(Me+=sr[r++]<<Ee,(Ee+=8)<Ne&&(Me+=sr[r++]<<Ee,Ee+=8)),(vr+=Me&(1<<Ne)-1)>te){e.msg="invalid distance too far back",$e.mode=Qr;break e}if(Me>>>=Ne,Ee-=Ne,vr>(Ne=x-R)){if((Ne=vr-Ne)>$&&$e.sane){e.msg="invalid distance too far back",$e.mode=Qr;break e}if(je=0,fr=tr,ae===0){if(je+=pe-Ne,Ne<He){He-=Ne;do Ge[x++]=tr[je++];while(--Ne);je=x-vr,fr=Ge}}else if(ae<Ne){if(je+=pe+ae-Ne,(Ne-=ae)<He){He-=Ne;do Ge[x++]=tr[je++];while(--Ne);if(je=0,ae<He){He-=Ne=ae;do Ge[x++]=tr[je++];while(--Ne);je=x-vr,fr=Ge}}}else if(je+=ae-Ne,Ne<He){He-=Ne;do Ge[x++]=tr[je++];while(--Ne);je=x-vr,fr=Ge}for(;He>2;)Ge[x++]=fr[je++],Ge[x++]=fr[je++],Ge[x++]=fr[je++],He-=3;He&&(Ge[x++]=fr[je++],He>1&&(Ge[x++]=fr[je++]))}else{je=x-vr;do Ge[x++]=Ge[je++],Ge[x++]=Ge[je++],Ge[x++]=Ge[je++],He-=3;while(He>2);He&&(Ge[x++]=Ge[je++],He>1&&(Ge[x++]=Ge[je++]))}break}}break}}while(r<A&&x<ge);r-=He=Ee>>3,Me&=(1<<(Ee-=He<<3))-1,e.next_in=r,e.next_out=x,e.avail_in=r<A?A-r+5:5-(r-A),e.avail_out=x<ge?ge-x+257:257-(x-ge),$e.hold=Me,$e.bits=Ee},Wr=15,Mr=new Uint16Array([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]),eo=new Uint8Array([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,199,75]),ro=new Uint16Array([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]),to=new Uint8Array([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]),gt=function(e,n,r,A,x,R,ge,te){var pe,$,ae,tr,Me,Ee,Be,rr,Qe,ir=te.bits,Re=0,Ne=0,He=0,vr=0,je=0,fr=0,sr=0,Ge=0,$e=0,dr=0,ot=null,$r=new Uint16Array(16),Ot=new Uint16Array(16),Nt=null;for(Re=0;Re<=Wr;Re++)$r[Re]=0;for(Ne=0;Ne<A;Ne++)$r[n[r+Ne]]++;for(je=ir,vr=Wr;vr>=1&&$r[vr]===0;vr--);if(je>vr&&(je=vr),vr===0)return x[R++]=20971520,x[R++]=20971520,te.bits=1,0;for(He=1;He<vr&&$r[He]===0;He++);for(je<He&&(je=He),Ge=1,Re=1;Re<=Wr;Re++)if(Ge<<=1,(Ge-=$r[Re])<0)return-1;if(Ge>0&&(e===0||vr!==1))return-1;for(Ot[1]=0,Re=1;Re<Wr;Re++)Ot[Re+1]=Ot[Re]+$r[Re];for(Ne=0;Ne<A;Ne++)n[r+Ne]!==0&&(ge[Ot[n[r+Ne]]++]=Ne);if(e===0?(ot=Nt=ge,Ee=20):e===1?(ot=Mr,Nt=eo,Ee=257):(ot=ro,Nt=to,Ee=0),dr=0,Ne=0,Re=He,Me=R,fr=je,sr=0,ae=-1,tr=($e=1<<je)-1,e===1&&$e>852||e===2&&$e>592)return 1;for(;;){Be=Re-sr,ge[Ne]+1<Ee?(rr=0,Qe=ge[Ne]):ge[Ne]>=Ee?(rr=Nt[ge[Ne]-Ee],Qe=ot[ge[Ne]-Ee]):(rr=96,Qe=0),pe=1<<Re-sr,He=$=1<<fr;do x[Me+(dr>>sr)+($-=pe)]=Be<<24|rr<<16|Qe|0;while($!==0);for(pe=1<<Re-1;dr&pe;)pe>>=1;if(pe!==0?(dr&=pe-1,dr+=pe):dr=0,Ne++,--$r[Re]==0){if(Re===vr)break;Re=n[r+ge[Ne]]}if(Re>je&&(dr&tr)!==ae){for(sr===0&&(sr=je),Me+=He,Ge=1<<(fr=Re-sr);fr+sr<vr&&!((Ge-=$r[fr+sr])<=0);)fr++,Ge<<=1;if($e+=1<<fr,e===1&&$e>852||e===2&&$e>592)return 1;x[ae=dr&tr]=je<<24|fr<<16|Me-R|0}}return dr!==0&&(x[Me+dr]=Re-sr<<24|64<<16|0),te.bits=je,0},Qn=H.Z_FINISH,no=H.Z_BLOCK,Dt=H.Z_TREES,at=H.Z_OK,ao=H.Z_STREAM_END,io=H.Z_NEED_DICT,Ur=H.Z_STREAM_ERROR,Jn=H.Z_DATA_ERROR,$n=H.Z_MEM_ERROR,oo=H.Z_BUF_ERROR,ea=H.Z_DEFLATED,At=16180,Tt=16190,Yr=16191,kt=16192,Lt=16194,Ct=16199,_t=16200,Mt=16206,gr=16209,ra=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function uo(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Ut,qt,it=function(e){if(!e)return 1;var n=e.state;return!n||n.strm!==e||n.mode<At||n.mode>16211?1:0},ta=function(e){if(it(e))return Ur;var n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=1&n.wrap),n.mode=At,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(852),n.distcode=n.distdyn=new Int32Array(592),n.sane=1,n.back=-1,at},na=function(e){if(it(e))return Ur;var n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,ta(e)},aa=function(e,n){var r;if(it(e))return Ur;var A=e.state;return n<0?(r=0,n=-n):(r=5+(n>>4),n<48&&(n&=15)),n&&(n<8||n>15)?Ur:(A.window!==null&&A.wbits!==n&&(A.window=null),A.wrap=r,A.wbits=n,na(e))},ia=function(e,n){if(!e)return Ur;var r=new uo;e.state=r,r.strm=e,r.window=null,r.mode=At;var A=aa(e,n);return A!==at&&(e.state=null),A},oa=!0,so=function(e){if(oa){Ut=new Int32Array(512),qt=new Int32Array(32);for(var n=0;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(gt(1,e.lens,0,288,Ut,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;gt(2,e.lens,0,32,qt,0,e.work,{bits:5}),oa=!1}e.lencode=Ut,e.lenbits=9,e.distcode=qt,e.distbits=5},ua=function(e,n,r,A){var x,R=e.state;return R.window===null&&(R.window=new Uint8Array(1<<R.wbits)),R.wsize===0&&(R.wsize=1<<R.wbits,R.wnext=0,R.whave=0),A>=R.wsize?(R.window.set(n.subarray(r-R.wsize,r),0),R.wnext=0,R.whave=R.wsize):((x=R.wsize-R.wnext)>A&&(x=A),R.window.set(n.subarray(r-A,r-A+x),R.wnext),(A-=x)?(R.window.set(n.subarray(r-A,r),0),R.wnext=A,R.whave=R.wsize):(R.wnext+=x,R.wnext===R.wsize&&(R.wnext=0),R.whave<R.wsize&&(R.whave+=x))),0},Vr={inflateReset:na,inflateReset2:aa,inflateResetKeep:ta,inflateInit:function(e){return ia(e,15)},inflateInit2:ia,inflate:function(e,n){var r,A,x,R,ge,te,pe,$,ae,tr,Me,Ee,Be,rr,Qe,ir,Re,Ne,He,vr,je,fr,sr,Ge,$e=0,dr=new Uint8Array(4),ot=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(it(e)||!e.output||!e.input&&e.avail_in!==0)return Ur;(r=e.state).mode===Yr&&(r.mode=kt),ge=e.next_out,x=e.output,pe=e.avail_out,R=e.next_in,A=e.input,te=e.avail_in,$=r.hold,ae=r.bits,tr=te,Me=pe,fr=at;e:for(;;)switch(r.mode){case At:if(r.wrap===0){r.mode=kt;break}for(;ae<16;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}if(2&r.wrap&&$===35615){r.wbits===0&&(r.wbits=15),r.check=0,dr[0]=255&$,dr[1]=$>>>8&255,r.check=p(r.check,dr,2,0),$=0,ae=0,r.mode=16181;break}if(r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&$)<<8)+($>>8))%31){e.msg="incorrect header check",r.mode=gr;break}if((15&$)!==ea){e.msg="unknown compression method",r.mode=gr;break}if(ae-=4,je=8+(15&($>>>=4)),r.wbits===0&&(r.wbits=je),je>15||je>r.wbits){e.msg="invalid window size",r.mode=gr;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=512&$?16189:Yr,$=0,ae=0;break;case 16181:for(;ae<16;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}if(r.flags=$,(255&r.flags)!==ea){e.msg="unknown compression method",r.mode=gr;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=gr;break}r.head&&(r.head.text=$>>8&1),512&r.flags&&4&r.wrap&&(dr[0]=255&$,dr[1]=$>>>8&255,r.check=p(r.check,dr,2,0)),$=0,ae=0,r.mode=16182;case 16182:for(;ae<32;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}r.head&&(r.head.time=$),512&r.flags&&4&r.wrap&&(dr[0]=255&$,dr[1]=$>>>8&255,dr[2]=$>>>16&255,dr[3]=$>>>24&255,r.check=p(r.check,dr,4,0)),$=0,ae=0,r.mode=16183;case 16183:for(;ae<16;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}r.head&&(r.head.xflags=255&$,r.head.os=$>>8),512&r.flags&&4&r.wrap&&(dr[0]=255&$,dr[1]=$>>>8&255,r.check=p(r.check,dr,2,0)),$=0,ae=0,r.mode=16184;case 16184:if(1024&r.flags){for(;ae<16;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}r.length=$,r.head&&(r.head.extra_len=$),512&r.flags&&4&r.wrap&&(dr[0]=255&$,dr[1]=$>>>8&255,r.check=p(r.check,dr,2,0)),$=0,ae=0}else r.head&&(r.head.extra=null);r.mode=16185;case 16185:if(1024&r.flags&&((Ee=r.length)>te&&(Ee=te),Ee&&(r.head&&(je=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(A.subarray(R,R+Ee),je)),512&r.flags&&4&r.wrap&&(r.check=p(r.check,A,Ee,R)),te-=Ee,R+=Ee,r.length-=Ee),r.length))break e;r.length=0,r.mode=16186;case 16186:if(2048&r.flags){if(te===0)break e;Ee=0;do je=A[R+Ee++],r.head&&je&&r.length<65536&&(r.head.name+=String.fromCharCode(je));while(je&&Ee<te);if(512&r.flags&&4&r.wrap&&(r.check=p(r.check,A,Ee,R)),te-=Ee,R+=Ee,je)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=16187;case 16187:if(4096&r.flags){if(te===0)break e;Ee=0;do je=A[R+Ee++],r.head&&je&&r.length<65536&&(r.head.comment+=String.fromCharCode(je));while(je&&Ee<te);if(512&r.flags&&4&r.wrap&&(r.check=p(r.check,A,Ee,R)),te-=Ee,R+=Ee,je)break e}else r.head&&(r.head.comment=null);r.mode=16188;case 16188:if(512&r.flags){for(;ae<16;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}if(4&r.wrap&&$!==(65535&r.check)){e.msg="header crc mismatch",r.mode=gr;break}$=0,ae=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Yr;break;case 16189:for(;ae<32;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}e.adler=r.check=ra($),$=0,ae=0,r.mode=Tt;case Tt:if(r.havedict===0)return e.next_out=ge,e.avail_out=pe,e.next_in=R,e.avail_in=te,r.hold=$,r.bits=ae,io;e.adler=r.check=1,r.mode=Yr;case Yr:if(n===no||n===Dt)break e;case kt:if(r.last){$>>>=7&ae,ae-=7&ae,r.mode=Mt;break}for(;ae<3;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}switch(r.last=1&$,ae-=1,3&($>>>=1)){case 0:r.mode=16193;break;case 1:if(so(r),r.mode=Ct,n===Dt){$>>>=2,ae-=2;break e}break;case 2:r.mode=16196;break;case 3:e.msg="invalid block type",r.mode=gr}$>>>=2,ae-=2;break;case 16193:for($>>>=7&ae,ae-=7&ae;ae<32;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}if((65535&$)!=($>>>16^65535)){e.msg="invalid stored block lengths",r.mode=gr;break}if(r.length=65535&$,$=0,ae=0,r.mode=Lt,n===Dt)break e;case Lt:r.mode=16195;case 16195:if(Ee=r.length){if(Ee>te&&(Ee=te),Ee>pe&&(Ee=pe),Ee===0)break e;x.set(A.subarray(R,R+Ee),ge),te-=Ee,R+=Ee,pe-=Ee,ge+=Ee,r.length-=Ee;break}r.mode=Yr;break;case 16196:for(;ae<14;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}if(r.nlen=257+(31&$),$>>>=5,ae-=5,r.ndist=1+(31&$),$>>>=5,ae-=5,r.ncode=4+(15&$),$>>>=4,ae-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=gr;break}r.have=0,r.mode=16197;case 16197:for(;r.have<r.ncode;){for(;ae<3;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}r.lens[ot[r.have++]]=7&$,$>>>=3,ae-=3}for(;r.have<19;)r.lens[ot[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,sr={bits:r.lenbits},fr=gt(0,r.lens,0,19,r.lencode,0,r.work,sr),r.lenbits=sr.bits,fr){e.msg="invalid code lengths set",r.mode=gr;break}r.have=0,r.mode=16198;case 16198:for(;r.have<r.nlen+r.ndist;){for(;ir=($e=r.lencode[$&(1<<r.lenbits)-1])>>>16&255,Re=65535&$e,!((Qe=$e>>>24)<=ae);){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}if(Re<16)$>>>=Qe,ae-=Qe,r.lens[r.have++]=Re;else{if(Re===16){for(Ge=Qe+2;ae<Ge;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}if($>>>=Qe,ae-=Qe,r.have===0){e.msg="invalid bit length repeat",r.mode=gr;break}je=r.lens[r.have-1],Ee=3+(3&$),$>>>=2,ae-=2}else if(Re===17){for(Ge=Qe+3;ae<Ge;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}ae-=Qe,je=0,Ee=3+(7&($>>>=Qe)),$>>>=3,ae-=3}else{for(Ge=Qe+7;ae<Ge;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}ae-=Qe,je=0,Ee=11+(127&($>>>=Qe)),$>>>=7,ae-=7}if(r.have+Ee>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=gr;break}for(;Ee--;)r.lens[r.have++]=je}}if(r.mode===gr)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=gr;break}if(r.lenbits=9,sr={bits:r.lenbits},fr=gt(1,r.lens,0,r.nlen,r.lencode,0,r.work,sr),r.lenbits=sr.bits,fr){e.msg="invalid literal/lengths set",r.mode=gr;break}if(r.distbits=6,r.distcode=r.distdyn,sr={bits:r.distbits},fr=gt(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,sr),r.distbits=sr.bits,fr){e.msg="invalid distances set",r.mode=gr;break}if(r.mode=Ct,n===Dt)break e;case Ct:r.mode=_t;case _t:if(te>=6&&pe>=258){e.next_out=ge,e.avail_out=pe,e.next_in=R,e.avail_in=te,r.hold=$,r.bits=ae,Jr(e,Me),ge=e.next_out,x=e.output,pe=e.avail_out,R=e.next_in,A=e.input,te=e.avail_in,$=r.hold,ae=r.bits,r.mode===Yr&&(r.back=-1);break}for(r.back=0;ir=($e=r.lencode[$&(1<<r.lenbits)-1])>>>16&255,Re=65535&$e,!((Qe=$e>>>24)<=ae);){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}if(ir&&(240&ir)==0){for(Ne=Qe,He=ir,vr=Re;ir=($e=r.lencode[vr+(($&(1<<Ne+He)-1)>>Ne)])>>>16&255,Re=65535&$e,!(Ne+(Qe=$e>>>24)<=ae);){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}$>>>=Ne,ae-=Ne,r.back+=Ne}if($>>>=Qe,ae-=Qe,r.back+=Qe,r.length=Re,ir===0){r.mode=16205;break}if(32&ir){r.back=-1,r.mode=Yr;break}if(64&ir){e.msg="invalid literal/length code",r.mode=gr;break}r.extra=15&ir,r.mode=16201;case 16201:if(r.extra){for(Ge=r.extra;ae<Ge;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}r.length+=$&(1<<r.extra)-1,$>>>=r.extra,ae-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=16202;case 16202:for(;ir=($e=r.distcode[$&(1<<r.distbits)-1])>>>16&255,Re=65535&$e,!((Qe=$e>>>24)<=ae);){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}if((240&ir)==0){for(Ne=Qe,He=ir,vr=Re;ir=($e=r.distcode[vr+(($&(1<<Ne+He)-1)>>Ne)])>>>16&255,Re=65535&$e,!(Ne+(Qe=$e>>>24)<=ae);){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}$>>>=Ne,ae-=Ne,r.back+=Ne}if($>>>=Qe,ae-=Qe,r.back+=Qe,64&ir){e.msg="invalid distance code",r.mode=gr;break}r.offset=Re,r.extra=15&ir,r.mode=16203;case 16203:if(r.extra){for(Ge=r.extra;ae<Ge;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}r.offset+=$&(1<<r.extra)-1,$>>>=r.extra,ae-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=gr;break}r.mode=16204;case 16204:if(pe===0)break e;if(Ee=Me-pe,r.offset>Ee){if((Ee=r.offset-Ee)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=gr;break}Ee>r.wnext?(Ee-=r.wnext,Be=r.wsize-Ee):Be=r.wnext-Ee,Ee>r.length&&(Ee=r.length),rr=r.window}else rr=x,Be=ge-r.offset,Ee=r.length;Ee>pe&&(Ee=pe),pe-=Ee,r.length-=Ee;do x[ge++]=rr[Be++];while(--Ee);r.length===0&&(r.mode=_t);break;case 16205:if(pe===0)break e;x[ge++]=r.length,pe--,r.mode=_t;break;case Mt:if(r.wrap){for(;ae<32;){if(te===0)break e;te--,$|=A[R++]<<ae,ae+=8}if(Me-=pe,e.total_out+=Me,r.total+=Me,4&r.wrap&&Me&&(e.adler=r.check=r.flags?p(r.check,x,Me,ge-Me):d(r.check,x,Me,ge-Me)),Me=pe,4&r.wrap&&(r.flags?$:ra($))!==r.check){e.msg="incorrect data check",r.mode=gr;break}$=0,ae=0}r.mode=16207;case 16207:if(r.wrap&&r.flags){for(;ae<32;){if(te===0)break e;te--,$+=A[R++]<<ae,ae+=8}if(4&r.wrap&&$!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=gr;break}$=0,ae=0}r.mode=16208;case 16208:fr=ao;break e;case gr:fr=Jn;break e;case 16210:return $n;default:return Ur}return e.next_out=ge,e.avail_out=pe,e.next_in=R,e.avail_in=te,r.hold=$,r.bits=ae,(r.wsize||Me!==e.avail_out&&r.mode<gr&&(r.mode<Mt||n!==Qn))&&ua(e,e.output,e.next_out,Me-e.avail_out),tr-=e.avail_in,Me-=e.avail_out,e.total_in+=tr,e.total_out+=Me,r.total+=Me,4&r.wrap&&Me&&(e.adler=r.check=r.flags?p(r.check,x,Me,e.next_out-Me):d(r.check,x,Me,e.next_out-Me)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Yr?128:0)+(r.mode===Ct||r.mode===Lt?256:0),(tr===0&&Me===0||n===Qn)&&fr===at&&(fr=oo),fr},inflateEnd:function(e){if(it(e))return Ur;var n=e.state;return n.window&&(n.window=null),e.state=null,at},inflateGetHeader:function(e,n){if(it(e))return Ur;var r=e.state;return(2&r.wrap)==0?Ur:(r.head=n,n.done=!1,at)},inflateSetDictionary:function(e,n){var r,A=n.length;return it(e)||(r=e.state).wrap!==0&&r.mode!==Tt?Ur:r.mode===Tt&&d(1,n,A,0)!==r.check?Jn:ua(e,n,A,A)?(r.mode=16210,$n):(r.havedict=1,at)},inflateInfo:"pako inflate (from Nodeca project)"},lo=function(){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=!1},sa=Object.prototype.toString,co=H.Z_NO_FLUSH,la=H.Z_FINISH,ft=H.Z_OK,zt=H.Z_STREAM_END,jt=H.Z_NEED_DICT,fo=H.Z_STREAM_ERROR,ca=H.Z_DATA_ERROR,po=H.Z_MEM_ERROR,fa=H.Z_BUF_ERROR,ho={chunkSize:65536,windowBits:15,to:""};function mt(e){this.options=hr({},ho,e||{});var n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),!(n.windowBits>=0&&n.windowBits<16)||e&&e.windowBits||(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(15&n.windowBits)==0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new jr,this.strm.avail_out=0;var r=Vr.inflateInit2(this.strm,n.windowBits);if(r!==ft)throw new Error(F[r]);if(this.header=new lo,Vr.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Or(n.dictionary):sa.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(r=Vr.inflateSetDictionary(this.strm,n.dictionary))!==ft))throw new Error(F[r])}function Xt(e,n){var r=new mt(n);if(r.push(e,!0),r.err)throw r.msg||F[r.err];return r.result}mt.prototype.push=function(e,n){var r,A,x,R=this.strm,ge=this.options.chunkSize,te=this.options.dictionary;if(this.ended)return!1;for(A=n===~~n?n:n===!0?la:co,sa.call(e)==="[object ArrayBuffer]"?R.input=new Uint8Array(e):R.input=e,R.next_in=0,R.avail_in=R.input.length;;){for(R.avail_out===0&&(R.output=new Uint8Array(ge),R.next_out=0,R.avail_out=ge),(r=Vr.inflate(R,A))===jt&&te&&((r=Vr.inflateSetDictionary(R,te))===ft?r=Vr.inflate(R,A):r===ca&&(r=jt));R.avail_in>0&&r===zt&&2&R.state.wrap&&R.state.flags!==0&&R.input[R.next_in]!==0;)Vr.inflateReset(R),r=Vr.inflate(R,A);switch(r){case fo:case ca:case jt:case po:return this.onEnd(r),this.ended=!0,!1}if(x=R.avail_out,R.next_out&&(R.avail_out===0||r===zt||A>0))if(this.options.to==="string"){var pe=tt(R.output,R.next_out),$=R.next_out-pe,ae=Ir(R.output,pe);R.next_out=$,R.avail_out=ge-$,$&&R.output.set(R.output.subarray(pe,pe+$),0),this.onData(ae)}else this.onData(R.output.length===R.next_out?R.output:R.output.subarray(0,R.next_out)),R.avail_out=0,R.next_out=0;if(r!==ft&&r!==fa||x!==0){if(r===zt)return r=Vr.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(R.avail_in===0){if(A===la)return r=Vr.inflateEnd(this.strm),this.onEnd(r===ft?fa:r),this.ended=!0,!1;break}}}return!0},mt.prototype.onData=function(e){this.chunks.push(e)},mt.prototype.onEnd=function(e){e===ft&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=br(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var St={Inflate:mt,inflate:Xt,inflateRaw:function(e,n){return(n=n||{}).raw=!0,Xt(e,n)},ungzip:Xt},pa=Kr.Deflate,ha=Kr.deflate,da=Kr.deflateRaw,va=Kr.gzip,ga=St.Inflate,ma=St.inflate,ya=St.inflateRaw,ba=St.ungzip,Ea=H,vo={Deflate:pa,deflate:ha,deflateRaw:da,gzip:va,Inflate:ga,inflate:ma,inflateRaw:ya,ungzip:ba,constants:Ea};h.Deflate=pa,h.Inflate=ga,h.constants=Ea,h.default=vo,h.deflate=ha,h.deflateRaw=da,h.gzip=va,h.inflate=ma,h.inflateRaw=ya,h.ungzip=ba,Object.defineProperty(h,"__esModule",{value:!0})}))})(bt,bt.exports)),bt.exports}var Ca;function Eo(){if(Ca)return ut;Ca=1;var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",u=bo();return ut.uncompressInputType=l?"uint8array":"array",ut.compressInputType=l?"uint8array":"array",ut.magic="\b\0",ut.compress=function(h,b){return u.deflateRaw(h,{level:b.level||-1})},ut.uncompress=function(h){return u.inflateRaw(h)},ut}var _a;function Hn(){return _a||(_a=1,Rt.STORE={magic:"\0\0",compress:function(u){return u},uncompress:function(u){return u},compressInputType:null,uncompressInputType:null},Rt.DEFLATE=Eo()),Rt}var Bt={exports:{}},Sa;function Zn(){return Sa||(Sa=1,Bt.exports=function(l,u){return typeof l=="number"?Buffer.alloc(l):Buffer.from(l,u)},Bt.exports.test=function(l){return Buffer.isBuffer(l)}),Bt.exports}var Oa;function kr(){return Oa||(Oa=1,(function(l){function u(s){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},u(s)}var h=ht(),b=Hn(),y=Zn();l.string2binary=function(s){for(var o="",v=0;v<s.length;v++)o+=String.fromCharCode(s.charCodeAt(v)&255);return o},l.arrayBuffer2Blob=function(s,o){l.checkSupport("blob"),o=o||"application/zip";try{return new Blob([s],{type:o})}catch{try{var v=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,f=new v;return f.append(s),f.getBlob(o)}catch{throw new Error("Bug : can't construct the Blob.")}}};function I(s){return s}function P(s,o){for(var v=0;v<s.length;++v)o[v]=s.charCodeAt(v)&255;return o}function k(s){var o=65536,v=[],f=s.length,g=l.getTypeOf(s),N=0,B=!0;try{switch(g){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,y(0));break}}catch{B=!1}if(!B){for(var T="",V=0;V<s.length;V++)T+=String.fromCharCode(s[V]);return T}for(;N<f&&o>1;)try{g==="array"||g==="nodebuffer"?v.push(String.fromCharCode.apply(null,s.slice(N,Math.min(N+o,f)))):v.push(String.fromCharCode.apply(null,s.subarray(N,Math.min(N+o,f)))),N+=o}catch{o=Math.floor(o/2)}return v.join("")}l.applyFromCharCode=k;function O(s,o){for(var v=0;v<s.length;v++)o[v]=s[v];return o}var c={};c.string={string:I,array:function(o){return P(o,new Array(o.length))},arraybuffer:function(o){return c.string.uint8array(o).buffer},uint8array:function(o){return P(o,new Uint8Array(o.length))},nodebuffer:function(o){return P(o,y(o.length))}},c.array={string:k,array:I,arraybuffer:function(o){return new Uint8Array(o).buffer},uint8array:function(o){return new Uint8Array(o)},nodebuffer:function(o){return y(o)}},c.arraybuffer={string:function(o){return k(new Uint8Array(o))},array:function(o){return O(new Uint8Array(o),new Array(o.byteLength))},arraybuffer:I,uint8array:function(o){return new Uint8Array(o)},nodebuffer:function(o){return y(new Uint8Array(o))}},c.uint8array={string:k,array:function(o){return O(o,new Array(o.length))},arraybuffer:function(o){return o.buffer},uint8array:I,nodebuffer:function(o){return y(o)}},c.nodebuffer={string:k,array:function(o){return O(o,new Array(o.length))},arraybuffer:function(o){return c.nodebuffer.uint8array(o).buffer},uint8array:function(o){return O(o,new Uint8Array(o.length))},nodebuffer:I},l.transformTo=function(s,o){if(o||(o=""),!s)return o;l.checkSupport(s);var v=l.getTypeOf(o),f=c[v][s](o);return f},l.getTypeOf=function(s){if(s!=null){if(typeof s=="string")return"string";var o=Object.prototype.toString.call(s);if(o==="[object Array]")return"array";if(h.nodebuffer&&y.test(s))return"nodebuffer";if(h.uint8array&&o==="[object Uint8Array]")return"uint8array";if(h.arraybuffer&&o==="[object ArrayBuffer]")return"arraybuffer";if(o==="[object Promise]")throw new Error("Cannot read data from a promise, you probably are running new PizZip(data) with a promise");if(u(s)==="object"&&typeof s.file=="function")throw new Error("Cannot read data from a pizzip instance, you probably are running new PizZip(zip) with a zipinstance");if(o==="[object Date]")throw new Error("Cannot read data from a Date, you probably are running new PizZip(data) with a date");if(u(s)==="object"&&s.crc32==null)throw new Error("Unsupported data given to new PizZip(data) (object given)")}},l.checkSupport=function(s){var o=h[s.toLowerCase()];if(!o)throw new Error(s+" is not supported by this browser")},l.MAX_VALUE_16BITS=65535,l.MAX_VALUE_32BITS=-1,l.pretty=function(s){var o="",v,f;for(f=0;f<(s||"").length;f++)v=s.charCodeAt(f),o+="\\x"+(v<16?"0":"")+v.toString(16).toUpperCase();return o},l.findCompression=function(s){for(var o in b)if(b.hasOwnProperty(o)&&b[o].magic===s)return b[o];return null},l.isRegExp=function(s){return Object.prototype.toString.call(s)==="[object RegExp]"},l.extend=function(){var s={},o,v;for(o=0;o<arguments.length;o++)for(v in arguments[o])arguments[o].hasOwnProperty(v)&&typeof s[v]>"u"&&(s[v]=arguments[o][v]);return s}})(Gt)),Gt}var Wt,Na;function wo(){if(Na)return Wt;Na=1;var l=kr(),u=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];return Wt=function(b,y){if(typeof b>"u"||!b.length)return 0;var I=l.getTypeOf(b)!=="string";typeof y>"u"&&(y=0);var P=0,k=0,O=0;y^=-1;for(var c=0,s=b.length;c<s;c++)O=I?b[c]:b.charCodeAt(c),k=(y^O)&255,P=u[k],y=y>>>8^P;return y^-1},Wt}var et={},Ia;function Mi(){return Ia||(Ia=1,et.LOCAL_FILE_HEADER="PK",et.CENTRAL_FILE_HEADER="PK",et.CENTRAL_DIRECTORY_END="PK",et.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",et.ZIP64_CENTRAL_DIRECTORY_END="PK",et.DATA_DESCRIPTOR="PK\x07\b"),et}var Fr={},Ra;function Ui(){return Ra||(Ra=1,Fr.base64=!1,Fr.binary=!1,Fr.dir=!1,Fr.createFolders=!1,Fr.date=null,Fr.compression=null,Fr.compressionOptions=null,Fr.comment=null,Fr.unixPermissions=null,Fr.dosPermissions=null),Fr}var Yt,Ba;function qi(){if(Ba)return Yt;Ba=1;var l=kr();function u(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}return u.from=function(h,b){var y=l.findCompression(h.compressionMethod);if(!y)throw new Error("Corrupted zip : compression "+l.pretty(h.compressionMethod)+" unknown");var I=new u;return I.compressedSize=h.compressedSize,I.uncompressedSize=h.uncompressedSize,I.crc32=h.crc32,I.compressionMethod=h.compressionMethod,I.getCompressedContent=b,I.getContent=function(){var P=y.uncompress(l.transformTo(y.uncompressInputType,b()));if(P.length!==I.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch");return P},I},u.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},Yt=u,Yt}var Pt={},Pa;function zi(){if(Pa)return Pt;Pa=1;for(var l=kr(),u=ht(),h=Zn(),b=new Array(256),y=0;y<256;y++)b[y]=y>=252?6:y>=248?5:y>=240?4:y>=224?3:y>=192?2:1;b[254]=b[254]=1;function I(O){var c,s,o,v,f,g=0,N=O.length;for(v=0;v<N;v++)s=O.charCodeAt(v),(s&64512)===55296&&v+1<N&&(o=O.charCodeAt(v+1),(o&64512)===56320&&(s=65536+(s-55296<<10)+(o-56320),v++)),g+=s<128?1:s<2048?2:s<65536?3:4;for(u.uint8array?c=new Uint8Array(g):c=new Array(g),f=0,v=0;f<g;v++)s=O.charCodeAt(v),(s&64512)===55296&&v+1<N&&(o=O.charCodeAt(v+1),(o&64512)===56320&&(s=65536+(s-55296<<10)+(o-56320),v++)),s<128?c[f++]=s:s<2048?(c[f++]=192|s>>>6,c[f++]=128|s&63):s<65536?(c[f++]=224|s>>>12,c[f++]=128|s>>>6&63,c[f++]=128|s&63):(c[f++]=240|s>>>18,c[f++]=128|s>>>12&63,c[f++]=128|s>>>6&63,c[f++]=128|s&63);return c}function P(O,c){var s;for(c=c||O.length,c>O.length&&(c=O.length),s=c-1;s>=0&&(O[s]&192)===128;)s--;return s<0||s===0?c:s+b[O[s]]>c?s:c}function k(O){var c,s,o,v,f=O.length,g=new Array(f*2);for(s=0,c=0;c<f;){if(o=O[c++],o<128){g[s++]=o;continue}if(v=b[o],v>4){g[s++]=65533,c+=v-1;continue}for(o&=v===2?31:v===3?15:7;v>1&&c<f;)o=o<<6|O[c++]&63,v--;if(v>1){g[s++]=65533;continue}o<65536?g[s++]=o:(o-=65536,g[s++]=55296|o>>10&1023,g[s++]=56320|o&1023)}return g.length!==s&&(g.subarray?g=g.subarray(0,s):g.length=s),l.applyFromCharCode(g)}return Pt.utf8encode=function(c){return u.nodebuffer?h(c,"utf-8"):I(c)},Pt.utf8decode=function(c){if(u.nodebuffer)return l.transformTo("nodebuffer",c).toString("utf-8");c=l.transformTo(u.uint8array?"uint8array":"array",c);for(var s=[],o=c.length,v=65536,f=0;f<o;){var g=P(c,Math.min(f+v,o));u.uint8array?s.push(k(c.subarray(f,g))):s.push(k(c.slice(f,g))),f=g}return s.join("")},Pt}var Kt,Fa;function xo(){if(Fa)return Kt;Fa=1;var l=kr();function u(){this.data=[]}return u.prototype={append:function(b){b=l.transformTo("string",b),this.data.push(b)},finalize:function(){return this.data.join("")}},Kt=u,Kt}var Qt,ka;function Do(){if(ka)return Qt;ka=1;var l=kr();function u(h){this.data=new Uint8Array(h),this.index=0}return u.prototype={append:function(b){b.length!==0&&(b=l.transformTo("uint8array",b),this.data.set(b,this.index),this.index+=b.length)},finalize:function(){return this.data}},Qt=u,Qt}var Jt,La;function Ao(){if(La)return Jt;La=1;function l(P){return y(P)||b(P)||h(P)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(P,k){if(P){if(typeof P=="string")return I(P,k);var O={}.toString.call(P).slice(8,-1);return O==="Object"&&P.constructor&&(O=P.constructor.name),O==="Map"||O==="Set"?Array.from(P):O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O)?I(P,k):void 0}}function b(P){if(typeof Symbol<"u"&&P[Symbol.iterator]!=null||P["@@iterator"]!=null)return Array.from(P)}function y(P){if(Array.isArray(P))return I(P)}function I(P,k){(k==null||k>P.length)&&(k=P.length);for(var O=0,c=Array(k);O<k;O++)c[O]=P[O];return c}return Jt=function(k,O){if(typeof O=="function")return O(k);var c=Object.keys(k);return Array.isArray(O)?[].concat(l(O),l(c.filter(function(s){return!O.includes(s)}))):c},Jt}var $t,Ma;function ji(){if(Ma)return $t;Ma=1;function l(D,m){var S=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(!S){if(Array.isArray(D)||(S=u(D))||m){S&&(D=S);var Z=0,ce=function(){};return{s:ce,n:function(){return Z>=D.length?{done:!0}:{done:!1,value:D[Z++]}},e:function(a){throw a},f:ce}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ce,be=!0,ye=!1;return{s:function(){S=S.call(D)},n:function(){var a=S.next();return be=a.done,a},e:function(a){ye=!0,Ce=a},f:function(){try{be||S.return==null||S.return()}finally{if(ye)throw Ce}}}}function u(D,m){if(D){if(typeof D=="string")return h(D,m);var S={}.toString.call(D).slice(8,-1);return S==="Object"&&D.constructor&&(S=D.constructor.name),S==="Map"||S==="Set"?Array.from(D):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?h(D,m):void 0}}function h(D,m){(m==null||m>D.length)&&(m=D.length);for(var S=0,Z=Array(m);S<m;S++)Z[S]=D[S];return Z}var b=ht(),y=kr(),I=wo(),P=Mi(),k=Ui(),O=Vn(),c=Hn(),s=qi(),o=Zn(),v=zi(),f=xo(),g=Do(),N=Ao();function B(D){if(D._data&&D._data._pizzipDiskData)return D._data.getContent();if(D._data instanceof s&&(D._data=D._data.getContent(),D.options.binary=!0,D.options.base64=!1,y.getTypeOf(D._data)==="uint8array")){var m=D._data;D._data=new Uint8Array(m.length),m.length!==0&&D._data.set(m,0)}return D._data}function T(D){var m=B(D),S=y.getTypeOf(m);return S==="string"?!D.options.binary&&b.nodebuffer?o(m,"utf-8"):D.asBinary():m}var V={load:function(){throw new Error("Load method is not defined. Is the file pizzip-load.js included ?")},filter:function(m){var S=[],Z,ce,Ce,be;for(Z in this.files)this.files.hasOwnProperty(Z)&&(Ce=this.files[Z],be=new W(Ce.name,Ce._data,y.extend(Ce.options)),ce=Z.slice(this.root.length,Z.length),Z.slice(0,this.root.length)===this.root&&m(ce,be)&&S.push(be));return S},file:function(m,S,Z){if(arguments.length===1){if(y.isRegExp(m)){var ce=m;return this.filter(function(Ce,be){return!be.dir&&ce.test(Ce)})}return this.filter(function(Ce,be){return!be.dir&&Ce===m})[0]||null}return m=this.root+m,E.call(this,m,S,Z),this},folder:function(m){if(!m)return this;if(y.isRegExp(m))return this.filter(function(Ce,be){return be.dir&&m.test(Ce)});var S=this.root+m,Z=ue.call(this,S),ce=this.shallowClone();return ce.root=Z.name,ce},remove:function(m){m=this.root+m;var S=this.files[m];if(S||(m.slice(-1)!=="/"&&(m+="/"),S=this.files[m]),S&&!S.dir)delete this.files[m];else for(var Z=this.filter(function(Ce,be){return be.name.slice(0,m.length)===m}),ce=0;ce<Z.length;ce++)delete this.files[Z[ce].name];return this},generate:function(m){m=y.extend(m||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:v.utf8encode}),y.checkSupport(m.type),(m.platform==="darwin"||m.platform==="freebsd"||m.platform==="linux"||m.platform==="sunos")&&(m.platform="UNIX"),m.platform==="win32"&&(m.platform="DOS");var S=[],Z=y.transformTo("string",m.encodeFileName(m.comment||this.comment||"")),ce=0,Ce=0,be,ye,d=N(this.files,m.fileOrder),a=l(d),p;try{for(a.s();!(p=a.n()).done;){var F=p.value;if(this.files.hasOwnProperty(F)){var H=this.files[F],me=H.options.compression||m.compression.toUpperCase(),ve=c[me];if(!ve)throw new Error(me+" is not a valid compression method !");var Ae=H.options.compressionOptions||m.compressionOptions||{},_e=we.call(this,H,ve,Ae),ke=Q.call(this,F,H,_e,ce,m.platform,m.encodeFileName);ce+=ke.fileRecord.length+_e.compressedSize,Ce+=ke.dirRecord.length,S.push(ke)}}}catch(U){a.e(U)}finally{a.f()}var Ie="";Ie=P.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Y(S.length,2)+Y(S.length,2)+Y(Ce,4)+Y(ce,4)+Y(Z.length,2)+Z;var j=m.type.toLowerCase();for(j==="uint8array"||j==="arraybuffer"||j==="blob"||j==="nodebuffer"?be=new g(ce+Ce+Ie.length):be=new f(ce+Ce+Ie.length),ye=0;ye<S.length;ye++)be.append(S[ye].fileRecord),be.append(S[ye].compressedObject.compressedContent);for(ye=0;ye<S.length;ye++)be.append(S[ye].dirRecord);be.append(Ie);var ee=be.finalize();switch(m.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return y.transformTo(m.type.toLowerCase(),ee);case"blob":return y.arrayBuffer2Blob(y.transformTo("arraybuffer",ee),m.mimeType);case"base64":return m.base64?O.encode(ee):ee;default:return ee}},crc32:function(m,S){return I(m,S)},utf8encode:function(m){return y.transformTo("string",v.utf8encode(m))},utf8decode:function(m){return v.utf8decode(m)}};function q(D){var m=B(this);return m===null||typeof m>"u"?"":(this.options.base64&&(m=O.decode(m)),D&&this.options.binary?m=V.utf8decode(m):m=y.transformTo("string",m),!D&&!this.options.binary&&(m=y.transformTo("string",V.utf8encode(m))),m)}function W(D,m,S){this.name=D,this.dir=S.dir,this.date=S.date,this.comment=S.comment,this.unixPermissions=S.unixPermissions,this.dosPermissions=S.dosPermissions,this._data=m,this.options=S,this._initialMetadata={dir:S.dir,date:S.date}}W.prototype={asText:function(){return q.call(this,!0)},asBinary:function(){return q.call(this,!1)},asNodeBuffer:function(){var m=T(this);return y.transformTo("nodebuffer",m)},asUint8Array:function(){var m=T(this);return y.transformTo("uint8array",m)},asArrayBuffer:function(){return this.asUint8Array().buffer}};function Y(D,m){var S="",Z;for(Z=0;Z<m;Z++)S+=String.fromCharCode(D&255),D>>>=8;return S}function w(D){return D=D||{},D.base64===!0&&(D.binary===null||D.binary===void 0)&&(D.binary=!0),D=y.extend(D,k),D.date=D.date||new Date,typeof D.compression=="string"?D.compression=D.compression.toUpperCase():D.compression=null,D}function z(D){var m=new Uint8Array(y.transformTo("uint8array",D.getCompressedContent()));return s.from(D,function(){return m})}function C(D,m,S,Z){if(S instanceof s)return D.shouldStore(m)?S._fileReader?D.compressedFromReader(S):D.compressed(S.getCompressedContent(),S):S._fileReader?S:z(S);if(!D.shouldStore(m))return S;var ce="utf-8";return typeof S=="string"&&(Z.base64?(S=O.decode(S),ce="binary"):Z.binary&&(ce="binary")),Z.base64=!1,Z.binary=!0,D.write(S,typeof S=="string"?ce:null)}function E(D,m,S){var Z=y.getTypeOf(m),ce;if(S=w(S),typeof S.unixPermissions=="string"&&(S.unixPermissions=parseInt(S.unixPermissions,8)),S.unixPermissions&&S.unixPermissions&16384&&(S.dir=!0),S.dosPermissions&&S.dosPermissions&16&&(S.dir=!0),S.dir&&(D=K(D)),S.createFolders&&(ce=L(D))&&ue.call(this,ce,!0),S.dir||m===null||typeof m>"u")S.base64=!1,S.binary=!1,m=null,Z=null;else if(Z==="string")S.binary&&!S.base64&&S.optimizedBinaryString!==!0&&(m=y.string2binary(m));else{if(S.base64=!1,S.binary=!0,!Z&&!(m instanceof s)&&!(m&&m._pizzipDiskData))throw new Error("The data of '"+D+"' is in an unsupported format !");Z==="arraybuffer"&&(m=y.transformTo("uint8array",m))}this._storage&&m!==null&&(m=C(this._storage,D,m,S));var Ce=new W(D,m,S);return this.files[D]=Ce,Ce}function L(D){D.slice(-1)==="/"&&(D=D.substring(0,D.length-1));var m=D.lastIndexOf("/");return m>0?D.substring(0,m):""}function K(D){return D.slice(-1)!=="/"&&(D+="/"),D}function ue(D,m){return m=typeof m<"u"?m:!1,D=K(D),this.files[D]||E.call(this,D,null,{dir:!0,createFolders:m}),this.files[D]}function we(D,m,S){var Z=new s,ce;return D._data instanceof s?(Z.uncompressedSize=D._data.uncompressedSize,Z.crc32=D._data.crc32,Z.uncompressedSize===0||D.dir?(m=c.STORE,Z.compressedContent="",Z.crc32=0):D._data.compressionMethod===m.magic?Z.compressedContent=D._data.getCompressedContent():(ce=D._data.getContent(),Z.compressedContent=m.compress(y.transformTo(m.compressInputType,ce),S))):(ce=T(D),(!ce||ce.length===0||D.dir)&&(m=c.STORE,ce=""),Z.uncompressedSize=ce.length,Z.crc32=I(ce),Z.compressedContent=m.compress(y.transformTo(m.compressInputType,ce),S)),Z.compressedSize=Z.compressedContent.length,Z.compressionMethod=m.magic,Z}function De(D,m){var S=D;return D||(S=m?16893:33204),(S&65535)<<16}function J(D){return(D||0)&63}function Q(D,m,S,Z,ce,Ce){var be=Ce!==v.utf8encode,ye=y.transformTo("string",Ce(m.name)),d=y.transformTo("string",v.utf8encode(m.name)),a=m.comment||"",p=y.transformTo("string",Ce(a)),F=y.transformTo("string",v.utf8encode(a)),H=d.length!==m.name.length,me=F.length!==a.length,ve=m.options,Ae,_e,ke="",Ie="",j="",ee,U;m._initialMetadata.dir!==m.dir?ee=m.dir:ee=ve.dir,m._initialMetadata.date!==m.date?U=m.date:U=ve.date;var fe=0,de=0;ee&&(fe|=16),ce==="UNIX"?(de=798,fe|=De(m.unixPermissions,ee)):(de=20,fe|=J(m.dosPermissions)),Ae=U.getHours(),Ae<<=6,Ae|=U.getMinutes(),Ae<<=5,Ae|=U.getSeconds()/2,_e=U.getFullYear()-1980,_e<<=4,_e|=U.getMonth()+1,_e<<=5,_e|=U.getDate(),H&&(Ie=Y(1,1)+Y(I(ye),4)+d,ke+="up"+Y(Ie.length,2)+Ie),me&&(j=Y(1,1)+Y(this.crc32(p),4)+F,ke+="uc"+Y(j.length,2)+j);var Le="";Le+=`
4
+ \0`,Le+=!be&&(H||me)?"\0\b":"\0\0",Le+=S.compressionMethod,Le+=Y(Ae,2),Le+=Y(_e,2),Le+=Y(S.crc32,4),Le+=Y(S.compressedSize,4),Le+=Y(S.uncompressedSize,4),Le+=Y(ye.length,2),Le+=Y(ke.length,2);var Se=P.LOCAL_FILE_HEADER+Le+ye+ke,Je=P.CENTRAL_FILE_HEADER+Y(de,2)+Le+Y(p.length,2)+"\0\0\0\0"+Y(fe,4)+Y(Z,4)+ye+ke+p;return{fileRecord:Se,dirRecord:Je,compressedObject:S}}return $t=V,$t}var en,Ua;function Xi(){if(Ua)return en;Ua=1;var l=kr();function u(){this.data=null,this.length=0,this.index=0,this.zero=0}return u.prototype={checkOffset:function(b){this.checkIndex(this.index+b)},checkIndex:function(b){if(this.length<this.zero+b||b<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+b+"). Corrupted zip ?")},setIndex:function(b){this.checkIndex(b),this.index=b},skip:function(b){this.setIndex(this.index+b)},byteAt:function(){},readInt:function(b){var y=0,I;for(this.checkOffset(b),I=this.index+b-1;I>=this.index;I--)y=(y<<8)+this.byteAt(I);return this.index+=b,y},readString:function(b){return l.transformTo("string",this.readData(b))},readData:function(){},lastIndexOfSignature:function(){},readDate:function(){var b=this.readInt(4);return new Date((b>>25&127)+1980,(b>>21&15)-1,b>>16&31,b>>11&31,b>>5&63,(b&31)<<1)}},en=u,en}var rn,qa;function Vi(){if(qa)return rn;qa=1;var l=Xi(),u=kr();function h(b,y){this.data=b,y||(this.data=u.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}return h.prototype=new l,h.prototype.byteAt=function(b){return this.data.charCodeAt(this.zero+b)},h.prototype.lastIndexOfSignature=function(b){return this.data.lastIndexOf(b)-this.zero},h.prototype.readData=function(b){this.checkOffset(b);var y=this.data.slice(this.zero+this.index,this.zero+this.index+b);return this.index+=b,y},rn=h,rn}var tn,za;function Hi(){if(za)return tn;za=1;var l=Xi();function u(h){if(h){this.data=h,this.length=this.data.length,this.index=0,this.zero=0;for(var b=0;b<this.data.length;b++)h[b]&=h[b]}}return u.prototype=new l,u.prototype.byteAt=function(h){return this.data[this.zero+h]},u.prototype.lastIndexOfSignature=function(h){for(var b=h.charCodeAt(0),y=h.charCodeAt(1),I=h.charCodeAt(2),P=h.charCodeAt(3),k=this.length-4;k>=0;--k)if(this.data[k]===b&&this.data[k+1]===y&&this.data[k+2]===I&&this.data[k+3]===P)return k-this.zero;return-1},u.prototype.readData=function(h){if(this.checkOffset(h),h===0)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,b},tn=u,tn}var nn,ja;function Zi(){if(ja)return nn;ja=1;var l=Hi();function u(h){h&&(this.data=h,this.length=this.data.length,this.index=0,this.zero=0)}return u.prototype=new l,u.prototype.readData=function(h){if(this.checkOffset(h),h===0)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+h);return this.index+=h,b},nn=u,nn}var an,Xa;function To(){if(Xa)return an;Xa=1;var l=Zi();function u(h){this.data=h,this.length=this.data.length,this.index=0,this.zero=0}return u.prototype=new l,u.prototype.readData=function(h){this.checkOffset(h);var b=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,b},an=u,an}var on,Va;function Co(){if(Va)return on;Va=1;var l=Vi(),u=kr(),h=qi(),b=ji(),y=ht(),I=0,P=3;function k(O,c){this.options=O,this.loadOptions=c}return k.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},prepareCompressedContent:function(c,s,o){return function(){var v=c.index;c.setIndex(s);var f=c.readData(o);return c.setIndex(v),f}},prepareContent:function(c,s,o,v,f){return function(){var g=u.transformTo(v.uncompressInputType,this.getCompressedContent()),N=v.uncompress(g);if(N.length!==f)throw new Error("Bug : uncompressed data size mismatch");return N}},readLocalPart:function(c){c.skip(22),this.fileNameLength=c.readInt(2);var s=c.readInt(2);if(this.fileName=c.readData(this.fileNameLength),c.skip(s),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");var o=u.findCompression(this.compressionMethod);if(o===null)throw new Error("Corrupted zip : compression "+u.pretty(this.compressionMethod)+" unknown (inner file : "+u.transformTo("string",this.fileName)+")");if(this.decompressed=new h,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(c,c.index,this.compressedSize,o),this.decompressed.getContent=this.prepareContent(c,c.index,this.compressedSize,o,this.uncompressedSize),c._pizzipFileReader){if(this.compressedSize<0||this.uncompressedSize<0)throw new Error("Corrupted zip : invalid entry size");c.checkOffset(this.compressedSize),this.decompressed._fileReader=c,this.decompressed._fileOffset=c.zero+c.index}if(this.loadOptions.checkCRC32){if(c.checkCRC32){c.checkCRC32(this.decompressed);return}if(this.decompressed=u.transformTo("string",this.decompressed.getContent()),b.crc32(this.decompressed)!==this.crc32)throw new Error("Corrupted zip : CRC32 mismatch")}},readCentralPart:function(c){if(this.versionMadeBy=c.readInt(2),this.versionNeeded=c.readInt(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4),this.fileNameLength=c.readInt(2),this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=c.readData(this.fileNameLength),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),c===I&&(this.dosPermissions=this.externalFileAttributes&63),c===P&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=new l(this.extraFields[1].value);this.uncompressedSize===u.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===u.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===u.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===u.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var s=c.index,o,v,f;for(this.extraFields=this.extraFields||{};c.index<s+this.extraFieldsLength;)o=c.readInt(2),v=c.readInt(2),f=c.readString(v),this.extraFields[o]={id:o,length:v,value:f}},handleUTF8:function(){var c=y.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=b.utf8decode(this.fileName),this.fileCommentStr=b.utf8decode(this.fileComment);else{var s=this.findExtraFieldUnicodePath();if(s!==null)this.fileNameStr=s;else{var o=u.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(o)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var f=u.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(f)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var s=new l(c.value);return s.readInt(1)!==1||b.crc32(this.fileName)!==s.readInt(4)?null:b.utf8decode(s.readString(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var s=new l(c.value);return s.readInt(1)!==1||b.crc32(this.fileComment)!==s.readInt(4)?null:b.utf8decode(s.readString(c.length-5))}return null}},on=k,on}var un,Ha;function _o(){if(Ha)return un;Ha=1;var l=Vi(),u=To(),h=Zi(),b=Hi(),y=kr(),I=Mi(),P=Co(),k=ht();function O(c,s){this.files=[],this.loadOptions=s,c&&this.load(c)}return O.prototype={checkSignature:function(s){var o=this.reader.readString(4);if(o!==s)throw new Error("Corrupted zip or bug : unexpected signature ("+y.pretty(o)+", expected "+y.pretty(s)+")")},isSignature:function(s,o){var v=this.reader.index;this.reader.setIndex(s);var f=this.reader.readString(4),g=f===o;return this.reader.setIndex(v),g},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 s=this.reader.readData(this.zipCommentLength),o=k.uint8array?"uint8array":"array",v=y.transformTo(o,s);this.zipComment=this.loadOptions.decodeFileName(v)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),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 s=this.zip64EndOfCentralSize-44,o=0,v,f,g;o<s;)v=this.reader.readInt(2),f=this.reader.readInt(4),g=this.reader.readString(f),this.zip64ExtensibleData[v]={id:v,length:f,value:g}},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 s,o;for(s=0;s<this.files.length;s++)o=this.files[s],this.reader.setIndex(o.localHeaderOffset),this.checkSignature(I.LOCAL_FILE_HEADER),o.readLocalPart(this.reader),o.handleUTF8(),o.processAttributes()},readCentralDir:function(){var s;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===I.CENTRAL_FILE_HEADER;)s=new P({zip64:this.zip64},this.loadOptions),s.readCentralPart(this.reader),this.files.push(s);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 s=this.reader.lastIndexOfSignature(I.CENTRAL_DIRECTORY_END);if(s<0){var o=!this.isSignature(0,I.LOCAL_FILE_HEADER);throw o?new Error("Can't find end of central directory : is this a zip file ?"):new Error("Corrupted zip : can't find end of central directory")}this.reader.setIndex(s);var v=s;if(this.checkSignature(I.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===y.MAX_VALUE_16BITS||this.diskWithCentralDirStart===y.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===y.MAX_VALUE_16BITS||this.centralDirRecords===y.MAX_VALUE_16BITS||this.centralDirSize===y.MAX_VALUE_32BITS||this.centralDirOffset===y.MAX_VALUE_32BITS){if(this.zip64=!0,s=this.reader.lastIndexOfSignature(I.ZIP64_CENTRAL_DIRECTORY_LOCATOR),s<0)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(s),this.checkSignature(I.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,I.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(I.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(I.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var f=this.centralDirOffset+this.centralDirSize;this.zip64&&(f+=20,f+=12+this.zip64EndOfCentralSize);var g=v-f;if(g>0)this.isSignature(v,I.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(s){if(s&&s._pizzipFileReader){this.reader=s;return}var o=y.getTypeOf(s);if(y.checkSupport(o),o==="string"&&!k.uint8array)this.reader=new l(s,this.loadOptions.optimizedBinaryString);else if(o==="nodebuffer")this.reader=new u(s);else if(k.uint8array)this.reader=new h(y.transformTo("uint8array",s));else if(k.array)this.reader=new b(y.transformTo("array",s));else throw new Error("Unexpected error: unsupported type '"+o+"'")},load:function(s){this.prepareReader(s),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},un=O,un}var sn,Za;function So(){if(Za)return sn;Za=1;var l=Vn(),u=zi(),h=kr(),b=_o();return sn=function(y,I){var P,k;I=h.extend(I||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:u.utf8decode}),I.base64&&(y=l.decode(y));var O=new b(y,I),c=O.files;for(P=0;P<c.length;P++)k=c[P],this.file(k.fileNameStr,k.decompressed,{binary:!0,optimizedBinaryString:!0,date:k.date,dir:k.dir,comment:k.fileCommentStr.length?k.fileCommentStr:null,unixPermissions:k.unixPermissions,dosPermissions:k.dosPermissions,createFolders:I.createFolders});return O.zipComment.length&&(this.comment=O.zipComment),this},sn}var ln,Ga;function Oo(){return Ga||(Ga=1,ln=function(){throw new Error("loadFile is only available in Node.js")}),ln}var Sr={},Wa;function No(){if(Wa)return Sr;Wa=1;var l=kr();return Sr.string2binary=function(u){return l.string2binary(u)},Sr.string2Uint8Array=function(u){return l.transformTo("uint8array",u)},Sr.uint8Array2String=function(u){return l.transformTo("string",u)},Sr.string2Blob=function(u){var h=l.transformTo("arraybuffer",u);return l.arrayBuffer2Blob(h)},Sr.arrayBuffer2Blob=function(u){return l.arrayBuffer2Blob(u)},Sr.transformTo=function(u,h){return l.transformTo(u,h)},Sr.getTypeOf=function(u){return l.getTypeOf(u)},Sr.checkSupport=function(u){return l.checkSupport(u)},Sr.MAX_VALUE_16BITS=l.MAX_VALUE_16BITS,Sr.MAX_VALUE_32BITS=l.MAX_VALUE_32BITS,Sr.pretty=function(u){return l.pretty(u)},Sr.findCompression=function(u){return l.findCompression(u)},Sr.isRegExp=function(u){return l.isRegExp(u)},Sr}var cn,Ya;function Io(){return Ya||(Ya=1,cn=function(){throw new Error("generateNodeStream is only available in Node.js")}),cn}var Ka;function Ro(){return Ka||(Ka=1,(function(l){function u(v){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},u(v)}function h(v,f){var g=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(!g){if(Array.isArray(v)||(g=b(v))||f){g&&(v=g);var N=0,B=function(){};return{s:B,n:function(){return N>=v.length?{done:!0}:{done:!1,value:v[N++]}},e:function(Y){throw Y},f:B}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T,V=!0,q=!1;return{s:function(){g=g.call(v)},n:function(){var Y=g.next();return V=Y.done,Y},e:function(Y){q=!0,T=Y},f:function(){try{V||g.return==null||g.return()}finally{if(q)throw T}}}}function b(v,f){if(v){if(typeof v=="string")return y(v,f);var g={}.toString.call(v).slice(8,-1);return g==="Object"&&v.constructor&&(g=v.constructor.name),g==="Map"||g==="Set"?Array.from(v):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?y(v,f):void 0}}function y(v,f){(f==null||f>v.length)&&(f=v.length);for(var g=0,N=Array(f);g<f;g++)N[g]=v[g];return N}function I(v,f){var g=Object.keys(v);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(v);f&&(N=N.filter(function(B){return Object.getOwnPropertyDescriptor(v,B).enumerable})),g.push.apply(g,N)}return g}function P(v){for(var f=1;f<arguments.length;f++){var g=arguments[f]!=null?arguments[f]:{};f%2?I(Object(g),!0).forEach(function(N){k(v,N,g[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)):I(Object(g)).forEach(function(N){Object.defineProperty(v,N,Object.getOwnPropertyDescriptor(g,N))})}return v}function k(v,f,g){return(f=O(f))in v?Object.defineProperty(v,f,{value:g,enumerable:!0,configurable:!0,writable:!0}):v[f]=g,v}function O(v){var f=c(v,"string");return u(f)=="symbol"?f:f+""}function c(v,f){if(u(v)!="object"||!v)return v;var g=v[Symbol.toPrimitive];if(g!==void 0){var N=g.call(v,f);if(u(N)!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(v)}var s=Vn();function o(v,f){if(!(this instanceof o))return new o(v,f);if(this.files={},this.comment=null,this._chunkSize=go()(f&&f.chunkSize),this._storage=null,this._readers=new Set,f&&f.storage&&f.storage.type==="filesystem"&&(this._storage=new(mo())(P(P({},f.storage),{},{chunkSize:this._chunkSize}))),this.dispose=function(){var g=h(this._readers),N;try{for(g.s();!(N=g.n()).done;){var B=N.value;B.dispose()}}catch(T){g.e(T)}finally{g.f()}this._readers.clear(),this._storage&&this._storage.dispose()},this.root="",v)try{this.load(v,f)}catch(g){throw this.dispose(),g}this.clone=function(){var g=this,N=new o;return Object.keys(this.files).forEach(function(B){N.file(B,g.files[B].asUint8Array())}),N},this.shallowClone=function(){var g=new o;for(var N in this)typeof this[N]!="function"&&(g[N]=this[N]);return g}}o.prototype=ji(),o.prototype.load=So(),o.prototype.loadFile=Oo(),o.support=ht(),o.defaults=Ui(),o.utils=No(),o.base64={encode:function(f){return s.encode(f)},decode:function(f){return s.decode(f)}},o.compressions=Hn(),o.prototype.generateNodeStream=Io(),l.exports=o,l.exports.default=o})(Vt)),Vt.exports}var Bo=Ro();const Et=Li(Bo);var fn={exports:{}},lr={},Tr={},Qa;function dt(){if(Qa)return Tr;Qa=1;function l(T,V,q){if(q===void 0&&(q=Array.prototype),T&&typeof q.find=="function")return q.find.call(T,V);for(var W=0;W<T.length;W++)if(h(T,W)){var Y=T[W];if(V.call(void 0,Y,W,T))return Y}}function u(T,V){return V===void 0&&(V=Object),V&&typeof V.getOwnPropertyDescriptors=="function"&&(T=V.create(null,V.getOwnPropertyDescriptors(T))),V&&typeof V.freeze=="function"?V.freeze(T):T}function h(T,V){return Object.prototype.hasOwnProperty.call(T,V)}function b(T,V){if(T===null||typeof T!="object")throw new TypeError("target is not an object");for(var q in V)h(V,q)&&(T[q]=V[q]);return T}var y=u({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0});function I(T){return h(y,T.toLowerCase())}var P=u({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function k(T){return h(P,T.toLowerCase())}var O=u({script:!1,style:!1,textarea:!0,title:!0});function c(T){var V=T.toLowerCase();return h(O,V)&&!O[V]}function s(T){var V=T.toLowerCase();return h(O,V)&&O[V]}function o(T){return T===f.HTML}function v(T){return o(T)||T===f.XML_XHTML_APPLICATION}var f=u({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),g=Object.keys(f).map(function(T){return f[T]});function N(T){return g.indexOf(T)>-1}var B=u({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return Tr.assign=b,Tr.find=l,Tr.freeze=u,Tr.HTML_BOOLEAN_ATTRIBUTES=y,Tr.HTML_RAW_TEXT_ELEMENTS=O,Tr.HTML_VOID_ELEMENTS=P,Tr.hasDefaultHTMLNamespace=v,Tr.hasOwn=h,Tr.isHTMLBooleanAttribute=I,Tr.isHTMLRawTextElement=c,Tr.isHTMLEscapableRawTextElement=s,Tr.isHTMLMimeType=o,Tr.isHTMLVoidElement=k,Tr.isValidMimeType=N,Tr.MIME_TYPE=f,Tr.NAMESPACE=B,Tr}var pt={},Ja;function Ft(){if(Ja)return pt;Ja=1;var l=dt();function u(v,f){v.prototype=Object.create(Error.prototype,{constructor:{value:v},name:{value:v.name,enumerable:!0,writable:f}})}var h=l.freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),b=Object.keys(h);function y(v){return typeof v=="number"&&v>=1&&v<=25}function I(v){return typeof v=="string"&&v.substring(v.length-h.Error.length)===h.Error}function P(v,f){y(v)?(this.name=b[v],this.message=f||""):(this.message=v,this.name=I(f)?f:h.Error),Error.captureStackTrace&&Error.captureStackTrace(this,P)}u(P,!0),Object.defineProperties(P.prototype,{code:{enumerable:!0,get:function(){var v=b.indexOf(this.name);return y(v)?v:0}}});for(var k={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},O=Object.entries(k),c=0;c<O.length;c++){var s=O[c][0];P[s]=O[c][1]}function o(v,f,g){this.message=v,this.locator=f,this.cause=g,Error.captureStackTrace&&Error.captureStackTrace(this,o)}return u(o),pt.DOMException=P,pt.DOMExceptionName=h,pt.ExceptionCode=k,pt.ParseError=o,pt}var mr={},Ye={},$a;function Gi(){if($a)return Ye;$a=1;function l(ar){try{typeof ar!="function"&&(ar=RegExp);var cr=new ar("𝌆","u").exec("𝌆");return!!cr&&cr[0].length===2}catch{}return!1}var u=l();function h(ar){if(ar.source[0]!=="[")throw new Error(ar+" can not be used with chars");return ar.source.slice(1,ar.source.lastIndexOf("]"))}function b(ar,cr){if(ar.source[0]!=="[")throw new Error("/"+ar.source+"/ can not be used with chars_without");if(!cr||typeof cr!="string")throw new Error(JSON.stringify(cr)+" is not a valid search");if(ar.source.indexOf(cr)===-1)throw new Error('"'+cr+'" is not is /'+ar.source+"/");if(cr==="-"&&ar.source.indexOf(cr)!==1)throw new Error('"'+cr+'" is not at the first postion of /'+ar.source+"/");return new RegExp(ar.source.replace(cr,""),u?"u":"")}function y(ar){var cr=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(Er){var _r=typeof Er=="string";if(_r&&cr===void 0&&Er==="|")throw new Error("use regg instead of reg to wrap expressions with `|`!");return _r?Er:Er.source}).join(""),u?"u":"")}function I(ar){if(arguments.length===0)throw new Error("no parameters provided");return y.apply(I,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var P="�",k=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;u&&(k=y("[",h(k),"\\u{10000}-\\u{10FFFF}","]"));var O=new RegExp("[^"+h(k)+"]",u?"u":""),c=/[\x20\x09\x0D\x0A]/,s=h(c),o=y(c,"+"),v=y(c,"*"),f=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;u&&(f=y("[",h(f),"\\u{10000}-\\u{10FFFF}","]"));var g=h(f),N=y("[",g,h(/[-.0-9\xB7]/),h(/[\u0300-\u036F\u203F-\u2040]/),"]"),B=y(f,N,"*"),T=y("^",B,"$"),V=y(N,"+"),q=y("&",B,";"),W=I(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),Y=I(q,"|",W),w=y("%",B,";"),z=I(y('"',I(/[^%&"]/,"|",w,"|",Y),"*",'"'),"|",y("'",I(/[^%&']/,"|",w,"|",Y),"*","'")),C=I('"',I(/[^<&"]/,"|",Y),"*",'"',"|","'",I(/[^<&']/,"|",Y),"*","'"),E=b(f,":"),L=b(N,":"),K=y(E,L,"*"),ue=y("^",K,"$"),we=y(K,I(":",K),"?"),De=y("^",we,"$"),J=y("(",we,")"),Q=I(/"[^"]*"|'[^']*'/),D=y(/^<\?/,"(",B,")",I(o,"(?!",c,")(",k,"*?)"),"?",/\?>/),m=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,S=I('"',m,'*"',"|","'",b(m,"'"),"*'"),Z="<!--",ce="-->",Ce=y(Z,I(b(k,"-"),"|",y("-",b(k,"-"))),"*",ce),be="#PCDATA",ye=I(y(/\(/,v,be,I(v,/\|/,v,we),"*",v,/\)\*/),"|",y(/\(/,v,be,v,/\)/)),d=/[?*+]?/,a=y(/\([^>]+\)/,d),p=I("EMPTY","|","ANY","|",ye,"|",a),F="<!ELEMENT",H=y(F,o,I(we,"|",w),o,I(p,"|",w),v,">"),me=y("NOTATION",o,/\(/,v,B,I(v,/\|/,v,B),"*",v,/\)/),ve=y(/\(/,v,V,I(v,/\|/,v,V),"*",v,/\)/),Ae=I(me,"|",ve),_e=I(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",Ae),ke=I(/#REQUIRED|#IMPLIED/,"|",I(I("#FIXED",o),"?",C)),Ie=I(o,B,o,_e,o,ke),j="<!ATTLIST",ee=y(j,o,B,Ie,"*",v,">"),U="about:legacy-compat",fe=I('"'+U+'"',"|","'"+U+"'"),de="SYSTEM",Le="PUBLIC",Se=I(I(de,o,Q),"|",I(Le,o,S,o,Q)),Je=y("^",I(I(de,o,"(?<SystemLiteralOnly>",Q,")"),"|",I(Le,o,"(?<PubidLiteral>",S,")",o,"(?<SystemLiteral>",Q,")"))),Ze=y("^",S,"$"),Xe=y("^",Q,"$"),er=I(o,"NDATA",o,B),M=I(z,"|",I(Se,er,"?")),re="<!ENTITY",se=y(re,o,B,o,M,v,">"),he=I(z,"|",Se),Pe=y(re,o,"%",o,B,o,he,v,">"),Oe=I(se,"|",Pe),ie=y(Le,o,S),oe=y("<!NOTATION",o,B,o,I(Se,"|",ie),v,">"),X=y(v,"=",v),ne=/1[.]\d+/,Te=y(o,"version",X,I("'",ne,"'","|",'"',ne,'"')),Fe=/[A-Za-z][-A-Za-z0-9._]*/,We=I(o,"encoding",X,I('"',Fe,'"',"|","'",Fe,"'")),Ue=I(o,"standalone",X,I("'",I("yes","|","no"),"'","|",'"',I("yes","|","no"),'"')),Ke=y(/^<\?xml/,Te,We,"?",Ue,"?",v,/\?>/),or="<!DOCTYPE",ur="<![CDATA[",nr="]]>",pr=/<!\[CDATA\[/,Ve=/\]\]>/,yr=y(k,"*?",Ve),Cr=y(pr,yr);return Ye.chars=h,Ye.chars_without=b,Ye.detectUnicodeSupport=l,Ye.reg=y,Ye.regg=I,Ye.ABOUT_LEGACY_COMPAT=U,Ye.ABOUT_LEGACY_COMPAT_SystemLiteral=fe,Ye.AttlistDecl=ee,Ye.CDATA_START=ur,Ye.CDATA_END=nr,Ye.CDSect=Cr,Ye.Char=k,Ye.Comment=Ce,Ye.COMMENT_START=Z,Ye.COMMENT_END=ce,Ye.DOCTYPE_DECL_START=or,Ye.elementdecl=H,Ye.EntityDecl=Oe,Ye.EntityValue=z,Ye.ExternalID=Se,Ye.ExternalID_match=Je,Ye.Name=B,Ye.Name_exact=T,Ye.NCName_exact=ue,Ye.NotationDecl=oe,Ye.Reference=Y,Ye.PEReference=w,Ye.PI=D,Ye.PUBLIC=Le,Ye.PubidLiteral=S,Ye.PubidLiteral_match=Ze,Ye.QName=we,Ye.QName_exact=De,Ye.QName_group=J,Ye.S=o,Ye.SChar_s=s,Ye.S_OPT=v,Ye.SYSTEM=de,Ye.SystemLiteral=Q,Ye.SystemLiteral_match=Xe,Ye.InvalidChar=O,Ye.UNICODE_REPLACEMENT_CHARACTER=P,Ye.UNICODE_SUPPORT=u,Ye.XMLDecl=Ke,Ye}var ei;function Wi(){if(ei)return mr;ei=1;var l=dt(),u=l.find,h=l.hasDefaultHTMLNamespace,b=l.hasOwn,y=l.isHTMLMimeType,I=l.isHTMLRawTextElement,P=l.isHTMLVoidElement,k=l.MIME_TYPE,O=l.NAMESPACE,c=Symbol(),s=Ft(),o=s.DOMException,v=s.DOMExceptionName,f=Gi();function g(t){if(t!==c)throw new TypeError("Illegal constructor")}function N(t){return t!==""}function B(t){return t?t.split(/[\t\n\f\r ]+/).filter(N):[]}function T(t,i){return b(t,i)||(t[i]=!0),t}function V(t){if(!t)return[];var i=B(t);return Object.keys(i.reduce(T,{}))}function q(t){return function(i){return t&&t.indexOf(i)!==-1}}function W(t){if(!f.QName_exact.test(t))throw new o(o.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+t+'"')}function Y(t,i){W(i),t=t||null;var _=null,G=i;if(i.indexOf(":")>=0){var le=i.split(":");_=le[0],G=le[1]}if(_!==null&&t===null)throw new o(o.NAMESPACE_ERR,"prefix is non-null and namespace is null");if(_==="xml"&&t!==l.NAMESPACE.XML)throw new o(o.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if((_==="xmlns"||i==="xmlns")&&t!==l.NAMESPACE.XMLNS)throw new o(o.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(t===l.NAMESPACE.XMLNS&&_!=="xmlns"&&i!=="xmlns")throw new o(o.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[t,_,G]}function w(t,i){for(var _ in t)b(t,_)&&(i[_]=t[_])}function z(t,i){var _=t.prototype;if(!(_ instanceof i)){let G=function(){};G.prototype=i.prototype,G=new G,w(_,G),t.prototype=_=G}_.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),_.constructor=t)}var C={},E=C.ELEMENT_NODE=1,L=C.ATTRIBUTE_NODE=2,K=C.TEXT_NODE=3,ue=C.CDATA_SECTION_NODE=4,we=C.ENTITY_REFERENCE_NODE=5,De=C.ENTITY_NODE=6,J=C.PROCESSING_INSTRUCTION_NODE=7,Q=C.COMMENT_NODE=8,D=C.DOCUMENT_NODE=9,m=C.DOCUMENT_TYPE_NODE=10,S=C.DOCUMENT_FRAGMENT_NODE=11,Z=C.NOTATION_NODE=12,ce=l.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function Ce(t,i){if(i.length<t.length)return Ce(i,t);var _=null;for(var G in t){if(t[G]!==i[G])return _;_=t[G]}return _}function be(t){return t.guid||(t.guid=Math.random()),t.guid}function ye(){}ye.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t){var i;typeof t=="function"?i={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:t}:t?i={requireWellFormed:!!t.requireWellFormed,splitCDATASections:t.splitCDATASections!==!1,nodeFilter:t.nodeFilter||null}:i={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};for(var _=[],G=0;G<this.length;G++)_r(this[G],_,null,i);return _.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}},ye.prototype[Symbol.iterator]=function(){var t=this,i=0;return{next:function(){return i<t.length?{value:t[i++],done:!1}:{done:!0}},return:function(){return{done:!0}}}};function d(t,i){this._node=t,this._refresh=i,a(this)}function a(t){var i=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==i){var _=t._refresh(t._node);if(zr(t,"length",_.length),!t.$$length||_.length<t.$$length)for(var G=_.length;G in t;G++)b(t,G)&&delete t[G];w(_,t),t._inc=i}}d.prototype.item=function(t){return a(this),this[t]||null},z(d,ye);function p(){this._nsIndex=Object.create(null),this._noNsIndex=Object.create(null)}function F(t,i){for(var _=0;_<t.length;){if(t[_]===i)return _;_++}}function H(t,i,_){if(!i)return t._noNsIndex;var G=t._nsIndex[i];return!G&&_&&(G=t._nsIndex[i]=Object.create(null)),G}function me(t,i,_){var G=H(t,i,!1),le=G&&G[_];return le||null}function ve(t,i){H(t,i.namespaceURI,!0)[i.localName]=i}function Ae(t,i){var _=H(t,i.namespaceURI,!1);_&&delete _[i.localName]}function _e(t,i,_,G){if(G?i[F(i,G)]=_:(i[i.length]=_,i.length++),ve(i,_),t){_.ownerElement=t;var le=t.ownerDocument;le&&(G&&Se(le,t,G),Le(le,t,_))}}function ke(t,i,_){var G=F(i,_);if(G>=0){for(var le=i.length-1;G<=le;)i[G]=i[++G];if(i.length=le,Ae(i,_),t){var xe=t.ownerDocument;xe&&Se(xe,t,_),_.ownerElement=null}}}p.prototype={length:0,item:ye.prototype.item,getNamedItem:function(t){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(t=t.toLowerCase());for(var i=0;i<this.length;){var _=this[i];if(_.nodeName===t)return _;i++}return null},setNamedItem:function(t){var i=t.ownerElement;if(i&&i!==this._ownerElement)throw new o(o.INUSE_ATTRIBUTE_ERR);var _=me(this,t.namespaceURI,t.localName);return _===t?t:(_e(this._ownerElement,this,t,_),_)},setNamedItemNS:function(t){return this.setNamedItem(t)},removeNamedItem:function(t){var i=this.getNamedItem(t);if(!i)throw new o(o.NOT_FOUND_ERR,t);return ke(this._ownerElement,this,i),i},removeNamedItemNS:function(t,i){var _=this.getNamedItemNS(t,i);if(!_)throw new o(o.NOT_FOUND_ERR,t?t+" : "+i:i);return ke(this._ownerElement,this,_),_},getNamedItemNS:function(t,i){t||(t=null);for(var _=0;_<this.length;){var G=this[_];if(G.localName===i&&G.namespaceURI===t)return G;_++}return null}},p.prototype[Symbol.iterator]=function(){var t=this,i=0;return{next:function(){return i<t.length?{value:t[i++],done:!1}:{done:!0}},return:function(){return{done:!0}}}};function Ie(){}Ie.prototype={hasFeature:function(t,i){return!0},createDocument:function(t,i,_){var G=k.XML_APPLICATION;t===O.HTML?G=k.XML_XHTML_APPLICATION:t===O.SVG&&(G=k.XML_SVG_IMAGE);var le=new de(c,{contentType:G});if(le.implementation=this,le.childNodes=new ye,le.doctype=_||null,_&&le.appendChild(_),i){var xe=le.createElementNS(t,i);le.appendChild(xe)}return le},createDocumentType:function(t,i,_,G){W(t);var le=new or(c);return le.name=t,le.nodeName=t,le.publicId=i||"",le.systemId=_||"",le.internalSubset=G||"",le.childNodes=new ye,le},createHTMLDocument:function(t){var i=new de(c,{contentType:k.HTML});if(i.implementation=this,i.childNodes=new ye,t!==!1){i.doctype=this.createDocumentType("html"),i.doctype.ownerDocument=i,i.appendChild(i.doctype);var _=i.createElement("html");i.appendChild(_);var G=i.createElement("head");if(_.appendChild(G),typeof t=="string"){var le=i.createElement("title");le.appendChild(i.createTextNode(t)),G.appendChild(le)}_.appendChild(i.createElement("body"))}return i}};function j(t){g(t)}j.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var t=this.getRootNode();return t&&t.nodeType===t.DOCUMENT_NODE},contains:function(t){if(!t)return!1;var i=t;do{if(this===i)return!0;i=i.parentNode}while(i);return!1},getRootNode:function(t){var i=this;do{if(!i.parentNode)return i;i=i.parentNode}while(i)},isEqualNode:function(t){if(!t)return!1;for(var i=[{node:this,other:t}];i.length>0;){var _=i.pop(),G=_.node,le=_.other;if(G.nodeType!==le.nodeType)return!1;switch(G.nodeType){case G.DOCUMENT_TYPE_NODE:if(G.name!==le.name||G.publicId!==le.publicId||G.systemId!==le.systemId)return!1;break;case G.ELEMENT_NODE:if(G.namespaceURI!==le.namespaceURI||G.prefix!==le.prefix||G.localName!==le.localName||G.attributes.length!==le.attributes.length)return!1;for(var xe=0;xe<G.attributes.length;xe++){var ze=G.attributes.item(xe),hr=le.getAttributeNodeNS(ze.namespaceURI,ze.localName);if(!hr)return!1;i.push({node:ze,other:hr})}break;case G.ATTRIBUTE_NODE:if(G.namespaceURI!==le.namespaceURI||G.localName!==le.localName||G.value!==le.value)return!1;break;case G.PROCESSING_INSTRUCTION_NODE:if(G.target!==le.target||G.data!==le.data)return!1;break;case G.TEXT_NODE:case G.CDATA_SECTION_NODE:case G.COMMENT_NODE:if(G.data!==le.data)return!1;break}if(G.childNodes.length!==le.childNodes.length)return!1;for(var xe=G.childNodes.length-1;xe>=0;xe--)i.push({node:G.childNodes[xe],other:le.childNodes[xe]})}return!0},isSameNode:function(t){return this===t},insertBefore:function(t,i){return X(this,t,i)},replaceChild:function(t,i){X(this,t,i,oe),i&&this.removeChild(i)},removeChild:function(t){return Ze(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Ar(this.ownerDocument||this,this,t)},normalize:function(){fe(this,null,{enter:function(t){for(var i=t.firstChild;i;){var _=i.nextSibling;if(_!==null&&_.nodeType===K&&i.nodeType===K){for(var G=[],le=_;le!==null&&le.nodeType===K;)G.push(le.data),le=le.nextSibling;for(var xe=i.nextSibling;xe!==le;){var ze=xe.nextSibling;xe.parentNode=null,xe.previousSibling=null,xe.nextSibling=null,xe=ze}i.nextSibling=le,le!==null?le.previousSibling=i:t.lastChild=i,i.appendData(G.join("")),Je(t.ownerDocument,t),i=le}else i=_}return!0}})},isSupported:function(t,i){return this.ownerDocument.implementation.hasFeature(t,i)},lookupPrefix:function(t){for(var i=this;i;){var _=i._nsMap;if(_){for(var G in _)if(b(_,G)&&_[G]===t)return G}i=i.nodeType==L?i.ownerDocument:i.parentNode}return null},lookupNamespaceURI:function(t){for(var i=this;i;){var _=i._nsMap;if(_&&b(_,t))return _[t];i=i.nodeType==L?i.ownerDocument:i.parentNode}return null},isDefaultNamespace:function(t){var i=this.lookupPrefix(t);return i==null},compareDocumentPosition:function(t){if(this===t)return 0;var i=t,_=this,G=null,le=null;if(i instanceof Te&&(G=i,i=G.ownerElement),_ instanceof Te&&(le=_,_=le.ownerElement,G&&i&&_===i))for(var xe=0,ze;ze=_.attributes[xe];xe++){if(ze===G)return ce.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+ce.DOCUMENT_POSITION_PRECEDING;if(ze===le)return ce.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+ce.DOCUMENT_POSITION_FOLLOWING}if(!i||!_||_.ownerDocument!==i.ownerDocument)return ce.DOCUMENT_POSITION_DISCONNECTED+ce.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(be(_.ownerDocument)>be(i.ownerDocument)?ce.DOCUMENT_POSITION_FOLLOWING:ce.DOCUMENT_POSITION_PRECEDING);if(le&&i===_)return ce.DOCUMENT_POSITION_CONTAINS+ce.DOCUMENT_POSITION_PRECEDING;if(G&&i===_)return ce.DOCUMENT_POSITION_CONTAINED_BY+ce.DOCUMENT_POSITION_FOLLOWING;for(var hr=[],br=i.parentNode;br;){if(!le&&br===_)return ce.DOCUMENT_POSITION_CONTAINED_BY+ce.DOCUMENT_POSITION_FOLLOWING;hr.push(br),br=br.parentNode}hr.reverse();for(var qe=[],wr=_.parentNode;wr;){if(!G&&wr===i)return ce.DOCUMENT_POSITION_CONTAINS+ce.DOCUMENT_POSITION_PRECEDING;qe.push(wr),wr=wr.parentNode}qe.reverse();var xr=Ce(hr,qe);for(var Or in xr.childNodes){var Ir=xr.childNodes[Or];if(Ir===_)return ce.DOCUMENT_POSITION_FOLLOWING;if(Ir===i)return ce.DOCUMENT_POSITION_PRECEDING;if(qe.indexOf(Ir)>=0)return ce.DOCUMENT_POSITION_FOLLOWING;if(hr.indexOf(Ir)>=0)return ce.DOCUMENT_POSITION_PRECEDING}return 0}};function ee(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}w(C,j),w(C,j.prototype),w(ce,j),w(ce,j.prototype);function U(t,i){fe(t,null,{enter:function(_){return i(_)?fe.STOP:!0}})}function fe(t,i,_){for(var G=[{node:t,context:i,phase:fe.ENTER}];G.length>0;){var le=G.pop();if(le.phase===fe.ENTER){var xe=_.enter(le.node,le.context);if(xe===fe.STOP)return fe.STOP;if(G.push({node:le.node,context:xe,phase:fe.EXIT}),xe==null)continue;for(var ze=le.node.lastChild;ze;)G.push({node:ze,context:xe,phase:fe.ENTER}),ze=ze.previousSibling}else _.exit&&_.exit(le.node,le.context)}}fe.STOP=Symbol("walkDOM.STOP"),fe.ENTER=0,fe.EXIT=1;function de(t,i){g(t);var _=i||{};this.ownerDocument=this,this.contentType=_.contentType||k.XML_APPLICATION,this.type=y(this.contentType)?"html":"xml"}function Le(t,i,_){t&&t._inc++;var G=_.namespaceURI;G===O.XMLNS&&(i._nsMap[_.prefix?_.localName:""]=_.value)}function Se(t,i,_,G){t&&t._inc++;var le=_.namespaceURI;le===O.XMLNS&&delete i._nsMap[_.prefix?_.localName:""]}function Je(t,i,_){if(t&&t._inc){t._inc++;var G=i.childNodes;if(_&&!_.nextSibling)G[G.length++]=_;else{for(var le=i.firstChild,xe=0;le;)G[xe++]=le,le=le.nextSibling;G.length=xe,delete G[G.length]}}}function Ze(t,i){if(t!==i.parentNode)throw new o(o.NOT_FOUND_ERR,"child's parent is not parent");var _=i.previousSibling,G=i.nextSibling;return _?_.nextSibling=G:t.firstChild=G,G?G.previousSibling=_:t.lastChild=_,Je(t.ownerDocument,t),i.parentNode=null,i.previousSibling=null,i.nextSibling=null,i}function Xe(t){return t&&(t.nodeType===j.DOCUMENT_NODE||t.nodeType===j.DOCUMENT_FRAGMENT_NODE||t.nodeType===j.ELEMENT_NODE)}function er(t){return t&&(t.nodeType===j.CDATA_SECTION_NODE||t.nodeType===j.COMMENT_NODE||t.nodeType===j.DOCUMENT_FRAGMENT_NODE||t.nodeType===j.DOCUMENT_TYPE_NODE||t.nodeType===j.ELEMENT_NODE||t.nodeType===j.PROCESSING_INSTRUCTION_NODE||t.nodeType===j.TEXT_NODE)}function M(t){return t&&t.nodeType===j.DOCUMENT_TYPE_NODE}function re(t){return t&&t.nodeType===j.ELEMENT_NODE}function se(t){return t&&t.nodeType===j.TEXT_NODE}function he(t,i){var _=t.childNodes||[];if(u(_,re)||M(i))return!1;var G=u(_,M);return!(i&&G&&_.indexOf(G)>_.indexOf(i))}function Pe(t,i){var _=t.childNodes||[];function G(xe){return re(xe)&&xe!==i}if(u(_,G))return!1;var le=u(_,M);return!(i&&le&&_.indexOf(le)>_.indexOf(i))}function Oe(t,i,_){if(!Xe(t))throw new o(o.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+t.nodeType);if(_&&_.parentNode!==t)throw new o(o.NOT_FOUND_ERR,"child not in parent");if(!er(i)||M(i)&&t.nodeType!==j.DOCUMENT_NODE)throw new o(o.HIERARCHY_REQUEST_ERR,"Unexpected node type "+i.nodeType+" for parent node type "+t.nodeType)}function ie(t,i,_){var G=t.childNodes||[],le=i.childNodes||[];if(i.nodeType===j.DOCUMENT_FRAGMENT_NODE){var xe=le.filter(re);if(xe.length>1||u(le,se))throw new o(o.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(xe.length===1&&!he(t,_))throw new o(o.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(re(i)&&!he(t,_))throw new o(o.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(M(i)){if(u(G,M))throw new o(o.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var ze=u(G,re);if(_&&G.indexOf(ze)<G.indexOf(_))throw new o(o.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!_&&ze)throw new o(o.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function oe(t,i,_){var G=t.childNodes||[],le=i.childNodes||[];if(i.nodeType===j.DOCUMENT_FRAGMENT_NODE){var xe=le.filter(re);if(xe.length>1||u(le,se))throw new o(o.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(xe.length===1&&!Pe(t,_))throw new o(o.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(re(i)&&!Pe(t,_))throw new o(o.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(M(i)){if(u(G,function(br){return M(br)&&br!==_}))throw new o(o.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var ze=u(G,re);if(_&&G.indexOf(ze)<G.indexOf(_))throw new o(o.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function X(t,i,_,G){Oe(t,i,_),t.nodeType===j.DOCUMENT_NODE&&(G||ie)(t,i,_);var le=i.parentNode;if(le&&le.removeChild(i),i.nodeType===S){var xe=i.firstChild;if(xe==null)return i;var ze=i.lastChild}else xe=ze=i;var hr=_?_.previousSibling:t.lastChild;xe.previousSibling=hr,ze.nextSibling=_,hr?hr.nextSibling=xe:t.firstChild=xe,_==null?t.lastChild=ze:_.previousSibling=ze;do xe.parentNode=t;while(xe!==ze&&(xe=xe.nextSibling));return Je(t.ownerDocument||t,t,i),i.nodeType==S&&(i.firstChild=i.lastChild=null),i}de.prototype={implementation:null,nodeName:"#document",nodeType:D,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,i){if(t.nodeType===S){for(var _=t.firstChild;_;){var G=_.nextSibling;this.insertBefore(_,i),_=G}return t}return X(this,t,i),t.ownerDocument=this,this.documentElement===null&&t.nodeType===E&&(this.documentElement=t),t},removeChild:function(t){var i=Ze(this,t);return i===this.documentElement&&(this.documentElement=null),i},replaceChild:function(t,i){X(this,t,i,oe),t.ownerDocument=this,i&&this.removeChild(i),re(t)&&(this.documentElement=t)},importNode:function(t,i){return Nr(this,t,i)},getElementById:function(t){var i=null;return U(this.documentElement,function(_){if(_.nodeType==E&&_.getAttribute("id")==t)return i=_,!0}),i},createElement:function(t){var i=new ne(c);i.ownerDocument=this,this.type==="html"&&(t=t.toLowerCase()),h(this.contentType)&&(i.namespaceURI=O.HTML),i.nodeName=t,i.tagName=t,i.localName=t,i.childNodes=new ye;var _=i.attributes=new p;return _._ownerElement=i,i},createDocumentFragment:function(){var t=new Ve(c);return t.ownerDocument=this,t.childNodes=new ye,t},createTextNode:function(t){var i=new We(c);return i.ownerDocument=this,i.childNodes=new ye,i.appendData(t),i},createComment:function(t){var i=new Ue(c);return i.ownerDocument=this,i.childNodes=new ye,i.appendData(t),i},createCDATASection:function(t){if(t.indexOf("]]>")!==-1)throw new o(o.INVALID_CHARACTER_ERR,'data contains "]]>"');var i=new Ke(c);return i.ownerDocument=this,i.childNodes=new ye,i.appendData(t),i},createProcessingInstruction:function(t,i){var _=new yr(c);return _.ownerDocument=this,_.childNodes=new ye,_.nodeName=_.target=t,_.nodeValue=_.data=i,_},createAttribute:function(t){if(!f.QName_exact.test(t))throw new o(o.INVALID_CHARACTER_ERR,'invalid character in name "'+t+'"');return this.type==="html"&&(t=t.toLowerCase()),this._createAttribute(t)},_createAttribute:function(t){var i=new Te(c);return i.ownerDocument=this,i.childNodes=new ye,i.name=t,i.nodeName=t,i.localName=t,i.specified=!0,i},createEntityReference:function(t){if(!f.Name_exact.test(t))throw new o(o.INVALID_CHARACTER_ERR,'not a valid xml name "'+t+'"');if(this.type==="html")throw new o("document is an html document",v.NotSupportedError);var i=new pr(c);return i.ownerDocument=this,i.childNodes=new ye,i.nodeName=t,i},createElementNS:function(t,i){var _=Y(t,i),G=new ne(c),le=G.attributes=new p;return G.childNodes=new ye,G.ownerDocument=this,G.nodeName=i,G.tagName=i,G.namespaceURI=_[0],G.prefix=_[1],G.localName=_[2],le._ownerElement=G,G},createAttributeNS:function(t,i){var _=Y(t,i),G=new Te(c);return G.ownerDocument=this,G.childNodes=new ye,G.nodeName=i,G.name=i,G.specified=!0,G.namespaceURI=_[0],G.prefix=_[1],G.localName=_[2],G}},z(de,j);function ne(t){g(t),this._nsMap=Object.create(null)}ne.prototype={nodeType:E,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return this.ownerDocument.type==="html"&&this.namespaceURI===O.HTML},hasAttributes:function(){return!!(this.attributes&&this.attributes.length)},hasAttribute:function(t){return!!this.getAttributeNode(t)},getAttribute:function(t){var i=this.getAttributeNode(t);return i?i.value:null},getAttributeNode:function(t){return this._isInHTMLDocumentAndNamespace()&&(t=t.toLowerCase()),this.attributes.getNamedItem(t)},setAttribute:function(t,i){this._isInHTMLDocumentAndNamespace()&&(t=t.toLowerCase());var _=this.getAttributeNode(t);_?_.value=_.nodeValue=""+i:(_=this.ownerDocument._createAttribute(t),_.value=_.nodeValue=""+i,this.setAttributeNode(_))},removeAttribute:function(t){var i=this.getAttributeNode(t);i&&this.removeAttributeNode(i)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,i){var _=this.getAttributeNodeNS(t,i);_&&this.removeAttributeNode(_)},hasAttributeNS:function(t,i){return this.getAttributeNodeNS(t,i)!=null},getAttributeNS:function(t,i){var _=this.getAttributeNodeNS(t,i);return _?_.value:null},setAttributeNS:function(t,i,_){var G=Y(t,i),le=G[2],xe=this.getAttributeNodeNS(t,le);xe?xe.value=xe.nodeValue=""+_:(xe=this.ownerDocument.createAttributeNS(t,i),xe.value=xe.nodeValue=""+_,this.setAttributeNode(xe))},getAttributeNodeNS:function(t,i){return this.attributes.getNamedItemNS(t,i)},getElementsByClassName:function(t){var i=V(t);return new d(this,function(_){var G=[];return i.length>0&&U(_,function(le){if(le!==_&&le.nodeType===E){var xe=le.getAttribute("class");if(xe){var ze=t===xe;if(!ze){var hr=V(xe);ze=i.every(q(hr))}ze&&G.push(le)}}}),G})},getElementsByTagName:function(t){var i=(this.nodeType===D?this:this.ownerDocument).type==="html",_=t.toLowerCase();return new d(this,function(G){var le=[];return U(G,function(xe){if(!(xe===G||xe.nodeType!==E))if(t==="*")le.push(xe);else{var ze=xe.getQualifiedName(),hr=i&&xe.namespaceURI===O.HTML?_:t;ze===hr&&le.push(xe)}}),le})},getElementsByTagNameNS:function(t,i){return new d(this,function(_){var G=[];return U(_,function(le){le!==_&&le.nodeType===E&&(t==="*"||le.namespaceURI===t)&&(i==="*"||le.localName==i)&&G.push(le)}),G})}},de.prototype.getElementsByClassName=ne.prototype.getElementsByClassName,de.prototype.getElementsByTagName=ne.prototype.getElementsByTagName,de.prototype.getElementsByTagNameNS=ne.prototype.getElementsByTagNameNS,z(ne,j);function Te(t){g(t),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}Te.prototype.nodeType=L,z(Te,j);function Fe(t){g(t)}Fe.prototype={data:"",substringData:function(t,i){return this.data.substring(t,t+i)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,i){this.replaceData(t,0,i)},deleteData:function(t,i){this.replaceData(t,i,"")},replaceData:function(t,i,_){var G=this.data.substring(0,t),le=this.data.substring(t+i);_=G+_+le,this.nodeValue=this.data=_,this.length=_.length}},z(Fe,j);function We(t){g(t)}We.prototype={nodeName:"#text",nodeType:K,splitText:function(t){var i=this.data,_=i.substring(t);i=i.substring(0,t),this.data=this.nodeValue=i,this.length=i.length;var G=this.ownerDocument.createTextNode(_);return this.parentNode&&this.parentNode.insertBefore(G,this.nextSibling),G}},z(We,Fe);function Ue(t){g(t)}Ue.prototype={nodeName:"#comment",nodeType:Q},z(Ue,Fe);function Ke(t){g(t)}Ke.prototype={nodeName:"#cdata-section",nodeType:ue},z(Ke,We);function or(t){g(t)}or.prototype.nodeType=m,z(or,j);function ur(t){g(t)}ur.prototype.nodeType=Z,z(ur,j);function nr(t){g(t)}nr.prototype.nodeType=De,z(nr,j);function pr(t){g(t)}pr.prototype.nodeType=we,z(pr,j);function Ve(t){g(t)}Ve.prototype.nodeName="#document-fragment",Ve.prototype.nodeType=S,z(Ve,j);function yr(t){g(t)}yr.prototype.nodeType=J,z(yr,Fe);function Cr(){}Cr.prototype.serializeToString=function(t,i){return ar.call(t,i)},j.prototype.toString=ar;function ar(t){var i;typeof t=="function"?i={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:t}:t!=null?i={requireWellFormed:!!t.requireWellFormed,splitCDATASections:t.splitCDATASections!==!1,nodeFilter:t.nodeFilter||null}:i={requireWellFormed:!1,splitCDATASections:!0,nodeFilter:null};var _=[],G=this.nodeType===D&&this.documentElement||this,le=G.prefix,xe=G.namespaceURI;if(xe&&le==null){var le=G.lookupPrefix(xe);if(le==null)var ze=[{namespace:xe,prefix:null}]}return _r(this,_,ze,i),_.join("")}function cr(t,i,_){var G=t.prefix||"",le=t.namespaceURI;if(!le||G==="xml"&&le===O.XML||le===O.XMLNS)return!1;for(var xe=_.length;xe--;){var ze=_[xe];if(ze.prefix===G)return ze.namespace!==le}return!0}function Er(t,i,_,G){if(G&&!f.QName_exact.test(i))throw new o('The attribute name "'+i+'" is not a valid XML QName',v.InvalidStateError);t.push(" ",i,'="',_.replace(/[<>&"\t\n\r]/g,ee),'"')}function _r(t,i,_,G){_||(_=[]);var le=G.nodeFilter,xe=G.requireWellFormed,ze=G.splitCDATASections,hr=t.nodeType===D?t:t.ownerDocument,br=hr.type==="html";fe(t,{ns:_},{enter:function(qe,wr){var xr=wr.ns;if(le)if(qe=le(qe),qe){if(typeof qe=="string")return i.push(qe),null}else return null;switch(qe.nodeType){case E:var Or=qe.attributes,Ir=Or.length,tt=qe.tagName,jr=tt;if(!br&&!qe.prefix&&qe.namespaceURI){for(var nt,ct=0;ct<Or.length;ct++)if(Or.item(ct).name==="xmlns"){nt=Or.item(ct).value;break}if(!nt)for(var Hr=xr.length-1;Hr>=0;Hr--){var Zr=xr[Hr];if(Zr.prefix===""&&Zr.namespace===qe.namespaceURI){nt=Zr.namespace;break}}if(nt!==qe.namespaceURI)for(var Hr=xr.length-1;Hr>=0;Hr--){var Zr=xr[Hr];if(Zr.namespace===qe.namespaceURI){Zr.prefix&&(jr=Zr.prefix+":"+tt);break}}}if(xe&&!f.QName_exact.test(jr))throw new o('The element name "'+jr+'" is not a valid XML QName',v.InvalidStateError);i.push("<",jr);for(var Xr=xr.slice(),Br=0;Br<Ir;Br++){var Rr=Or.item(Br);Rr.prefix=="xmlns"?Xr.push({prefix:Rr.localName,namespace:Rr.value}):Rr.nodeName=="xmlns"&&Xr.push({prefix:"",namespace:Rr.value})}for(var Br=0;Br<Ir;Br++){var Rr=Or.item(Br);if(cr(Rr,br,Xr)){var vt=Rr.prefix||"",Lr=Rr.namespaceURI;Er(i,vt?"xmlns:"+vt:"xmlns",Lr,xe),Xr.push({prefix:vt,namespace:Lr})}var Gr=le?le(Rr):Rr;Gr&&(typeof Gr=="string"?i.push(Gr):Er(i,Gr.name,Gr.value,xe))}if(tt===jr&&cr(qe,br,Xr)){var Kr=qe.prefix||"",Lr=qe.namespaceURI;Er(i,Kr?"xmlns:"+Kr:"xmlns",Lr,xe),Xr.push({prefix:Kr,namespace:Lr})}var Qr=!qe.firstChild;if(Qr&&(br||qe.namespaceURI===O.HTML)&&(Qr=P(tt)),Qr)return i.push("/>"),null;if(i.push(">"),br&&I(tt)){for(var Jr=qe.firstChild;Jr;)Jr.data?i.push(Jr.data):_r(Jr,i,Xr.slice(),G),Jr=Jr.nextSibling;return i.push("</",jr,">"),null}return{ns:Xr,tag:jr};case D:case S:if(xe&&qe.nodeType===D&&qe.documentElement==null)throw new o("The Document has no documentElement",v.InvalidStateError);return{ns:xr};case L:return Er(i,qe.name,qe.value,xe),null;case K:if(xe&&f.InvalidChar.test(qe.data))throw new o("The Text node data contains characters outside the XML Char production",v.InvalidStateError);return i.push(qe.data.replace(/[<&>]/g,ee)),null;case ue:if(xe&&qe.data.indexOf("]]>")!==-1)throw new o('The CDATASection data contains "]]>"',v.InvalidStateError);return ze?i.push(f.CDATA_START,qe.data.replace(/]]>/g,"]]]]><![CDATA[>"),f.CDATA_END):i.push(f.CDATA_START,qe.data,f.CDATA_END),null;case Q:if(xe){if(f.InvalidChar.test(qe.data))throw new o("The comment node data contains characters outside the XML Char production",v.InvalidStateError);if(qe.data.indexOf("--")!==-1||qe.data[qe.data.length-1]==="-")throw new o('The comment node data contains "--" or ends with "-"',v.InvalidStateError)}return i.push(f.COMMENT_START,qe.data,f.COMMENT_END),null;case m:var Wr=qe.publicId,Mr=qe.systemId;if(xe){if(!f.Name_exact.test(qe.name))throw new o('The doctype name "'+qe.name+'" is not a valid XML Name',v.InvalidStateError);if(Wr&&!f.PubidLiteral_match.test(Wr))throw new o("DocumentType publicId is not a valid PubidLiteral",v.InvalidStateError);if(Mr&&Mr!=="."&&!f.SystemLiteral_match.test(Mr))throw new o("DocumentType systemId is not a valid SystemLiteral",v.InvalidStateError);if(qe.internalSubset&&qe.internalSubset.indexOf("]>")!==-1)throw new o('DocumentType internalSubset contains "]>"',v.InvalidStateError)}return i.push(f.DOCTYPE_DECL_START," ",qe.name),Wr?(i.push(" ",f.PUBLIC," ",Wr),Mr&&Mr!=="."&&i.push(" ",Mr)):Mr&&Mr!=="."&&i.push(" ",f.SYSTEM," ",Mr),qe.internalSubset&&i.push(" [",qe.internalSubset,"]"),i.push(">"),null;case J:if(xe){if(!f.NCName_exact.test(qe.target)||qe.target.toLowerCase()==="xml")throw new o('The processing instruction target "'+qe.target+'" is not a valid XML NCName or is reserved',v.InvalidStateError);if(f.InvalidChar.test(qe.data))throw new o("The ProcessingInstruction data contains characters outside the XML Char production",v.InvalidStateError);if(qe.data.indexOf("?>")!==-1)throw new o('The ProcessingInstruction data contains "?>"',v.InvalidStateError)}return i.push("<?",qe.target," ",qe.data,"?>"),null;case we:if(xe&&!f.Name_exact.test(qe.nodeName))throw new o('The entity reference name "'+qe.nodeName+'" is not a valid XML Name',v.InvalidStateError);return i.push("&",qe.nodeName,";"),null;default:return i.push("??",qe.nodeName),null}},exit:function(qe,wr){wr&&wr.tag&&i.push("</",wr.tag,">")}})}function Nr(t,i,_){var G;return fe(i,null,{enter:function(le,xe){var ze=le.cloneNode(!1);ze.ownerDocument=t,ze.parentNode=null,xe===null?G=ze:xe.appendChild(ze);var hr=le.nodeType===L||_;return hr?ze:null}}),G}function Ar(t,i,_){var G;return fe(i,null,{enter:function(le,xe){var ze=new le.constructor(c);for(var hr in le)if(b(le,hr)){var br=le[hr];typeof br!="object"&&br!=ze[hr]&&(ze[hr]=br)}le.childNodes&&(ze.childNodes=new ye),ze.ownerDocument=t;var qe=_;switch(ze.nodeType){case E:var wr=le.attributes,xr=ze.attributes=new p,Or=wr.length;xr._ownerElement=ze;for(var Ir=0;Ir<Or;Ir++)ze.setAttributeNode(Ar(t,wr.item(Ir),!0));break;case L:qe=!0}return xe!==null?xe.appendChild(ze):G=ze,qe?ze:null}}),G}function zr(t,i,_){t[i]=_}function rt(t){for(var i=[],_=t.firstChild;_;)_.nodeType===E&&i.push(_),_=_.nextSibling;return i}try{Object.defineProperty&&(Object.defineProperty(d.prototype,"length",{get:function(){return a(this),this.$$length}}),Object.defineProperty(j.prototype,"textContent",{get:function(){if(this.nodeType===E||this.nodeType===S){var t=[];return fe(this,null,{enter:function(i){if(i.nodeType===E||i.nodeType===S)return!0;if(i.nodeType===J||i.nodeType===Q)return null;t.push(i.nodeValue)}}),t.join("")}return this.nodeValue},set:function(t){switch(this.nodeType){case E:case S:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),Object.defineProperty(Fe.prototype,"data",{get:function(){return this._data!=null?this._data:""},set:function(t){this._data=t,this.length=typeof t=="string"?t.length:0}}),Object.defineProperty(Fe.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!0,configurable:!0}),Object.defineProperty(ne.prototype,"children",{get:function(){return new d(this,rt)}}),Object.defineProperty(de.prototype,"children",{get:function(){return new d(this,rt)}}),Object.defineProperty(Ve.prototype,"children",{get:function(){return new d(this,rt)}}),zr=function(t,i,_){t["$$"+i]=_})}catch{}return mr._updateLiveList=a,mr.Attr=Te,mr.CDATASection=Ke,mr.CharacterData=Fe,mr.Comment=Ue,mr.Document=de,mr.DocumentFragment=Ve,mr.DocumentType=or,mr.DOMImplementation=Ie,mr.Element=ne,mr.Entity=nr,mr.EntityReference=pr,mr.LiveNodeList=d,mr.NamedNodeMap=p,mr.Node=j,mr.NodeList=ye,mr.Notation=ur,mr.Text=We,mr.ProcessingInstruction=yr,mr.walkDOM=fe,mr.XMLSerializer=Cr,mr}var st={},pn={},ri;function Po(){return ri||(ri=1,(function(l){var u=dt().freeze;l.XML_ENTITIES=u({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),l.HTML_ENTITIES=u({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
6
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),l.entityMap=l.HTML_ENTITIES})(pn)),pn}var yt={},ti;function Fo(){if(ti)return yt;ti=1;var l=dt(),u=Gi(),h=Ft(),b=l.isHTMLEscapableRawTextElement,y=l.isHTMLMimeType,I=l.isHTMLRawTextElement,P=l.hasOwn,k=l.NAMESPACE,O=h.ParseError,c=h.DOMException,s=0,o=1,v=2,f=3,g=4,N=5,B=6,T=7;function V(){}V.prototype={parse:function(J,Q,D){var m=this.domBuilder;m.startDocument(),E(Q,Q=Object.create(null)),W(J,Q,D,m,this.errorHandler),m.endDocument()}};var q=/&#?\w+;?/g;function W(J,Q,D,m,S){var Z=y(m.mimeType);J.indexOf(u.UNICODE_REPLACEMENT_CHARACTER)>=0&&S.warning("Unicode replacement character detected, source encoding issues?");function ce(Oe){if(Oe>65535){Oe-=65536;var ie=55296+(Oe>>10),oe=56320+(Oe&1023);return String.fromCharCode(ie,oe)}else return String.fromCharCode(Oe)}function Ce(Oe){var ie=Oe[Oe.length-1]===";"?Oe:Oe+";";if(!Z&&ie!==Oe)return S.error("EntityRef: expecting ;"),Oe;var oe=u.Reference.exec(ie);if(!oe||oe[0].length!==ie.length)return S.error("entity not matching Reference production: "+Oe),Oe;var X=ie.slice(1,-1);return P(D,X)?D[X]:X.charAt(0)==="#"?ce(parseInt(X.substring(1).replace("x","0x"))):(S.error("entity not found:"+Oe),Oe)}function be(Oe){if(Oe>ve){var ie=J.substring(ve,Oe).replace(q,Ce);p&&F(ve),m.characters(ie,0,Oe-ve),ve=Oe}}var ye=0,d=0,a=/\r\n?|\n|$/g,p=m.locator;function F(Oe,ie){for(;Oe>=d&&(ie=a.exec(J));)ye=d,d=ie.index+ie[0].length,p.lineNumber++;p.columnNumber=Oe-ye+1}for(var H=[{currentNSMap:Q}],me=[],ve=0;;){try{var Ae=J.indexOf("<",ve);if(Ae<0){if(!Z&&me.length>0)return S.fatalError("unclosed xml tag(s): "+me.join(", "));if(!J.substring(ve).match(/^\s*$/)){var _e=m.doc,ke=_e.createTextNode(J.substring(ve));if(_e.documentElement)return S.error("Extra content at the end of the document");_e.appendChild(ke),m.currentElement=ke}return}if(Ae>ve){var Ie=J.substring(ve,Ae);!Z&&me.length===0&&(Ie=Ie.replace(new RegExp(u.S_OPT.source,"g"),""),Ie&&S.error("Unexpected content outside root element: '"+Ie+"'")),be(Ae)}switch(J.charAt(Ae+1)){case"/":var M=J.indexOf(">",Ae+2),j=J.substring(Ae+2,M>0?M:void 0);if(!j)return S.fatalError("end tag name missing");var ee=u.reg("^",u.QName_group,u.S_OPT,"$"),U=M>0&&ee.exec(j);if(!U){var fe=M>0&&u.reg("^",u.QName_group).exec(j);if(Z&&fe)S.warning('end tag name contains invalid trailing characters: "'+j+'"'),U=fe;else if(fe&&new RegExp(ee.source,ee.flags+"m").test(j))S.error('end tag name is followed by a line break and trailing content: "'+j+'"'),U=fe;else return S.fatalError('end tag name contains invalid characters: "'+j+'"')}if(!m.currentElement&&!m.doc.documentElement)return;var de=me[me.length-1]||m.currentElement.tagName||m.doc.documentElement.tagName||"";if(de!==U[1]){var Le=U[1].toLowerCase();if(!Z||de.toLowerCase()!==Le)return S.fatalError('Opening and ending tag mismatch: "'+de+'" != "'+j+'"')}var Se=H.pop();me.pop();var Je=Se.localNSMap;if(m.endElement(Se.uri,Se.localName,de),Je)for(var Ze in Je)P(Je,Ze)&&m.endPrefixMapping(Ze);M++;break;case"?":p&&F(Ae),M=we(J,Ae,m,S);break;case"!":p&&F(Ae),M=ue(J,Ae,m,S,Z);break;default:p&&F(Ae);var Xe=new De,er=H[H.length-1].currentNSMap,M=w(J,Ae,Xe,er,Ce,S,Z),re=Xe.length;if(Xe.closed||(Z&&l.isHTMLVoidElement(Xe.tagName)?Xe.closed=!0:me.push(Xe.tagName)),p&&re){for(var se=Y(p,{}),he=0;he<re;he++){var Pe=Xe[he];F(Pe.offset),Pe.locator=Y(p,{})}m.locator=se,z(Xe,m,er)&&H.push(Xe),m.locator=p}else z(Xe,m,er)&&H.push(Xe);Z&&!Xe.closed?M=C(J,M,Xe.tagName,Ce,m):M++}}catch(Oe){if(Oe instanceof O)throw Oe;if(Oe instanceof c)return S.fatalError("Error constructing the DOM: "+Oe.name+": "+Oe.message,Oe);S.error("element parse error: "+Oe),M=-1}M>ve?ve=M:be(Math.max(Ae,ve)+1)}}function Y(J,Q){return Q.lineNumber=J.lineNumber,Q.columnNumber=J.columnNumber,Q}function w(J,Q,D,m,S,Z,ce){function Ce(F,H,me){if(P(D.attributeNames,F))return Z.fatalError("Attribute "+F+" redefined");if(!ce&&H.indexOf("<")>=0)return Z.fatalError("Unescaped '<' not allowed in attributes values");D.addValue(F,H.replace(/[\t\n\r]/g," ").replace(q,S),me)}for(var be,ye,d=++Q,a=s;;){var p=J.charAt(d);if(a===s&&p==="<")throw new Error("unexpected < in tag name: "+J.slice(Q,d));switch(p){case"=":if(a===o)be=J.slice(Q,d),a=f;else if(a===v)a=f;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(a===f||a===o)if(a===o&&(Z.warning('attribute value must after "="'),be=J.slice(Q,d)),Q=d+1,d=J.indexOf(p,Q),d>0)ye=J.slice(Q,d),Ce(be,ye,Q-1),a=N;else throw new Error("attribute value no end '"+p+"' match");else if(a==g)ye=J.slice(Q,d),Ce(be,ye,Q),Z.warning('attribute "'+be+'" missed start quot('+p+")!!"),Q=d+1,a=N;else throw new Error('attribute value must after "="');break;case"/":switch(a){case s:D.setTagName(J.slice(Q,d));case N:case B:case T:a=T,D.closed=!0;case g:case o:break;case v:D.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return Z.error("unexpected end of input"),a==s&&D.setTagName(J.slice(Q,d)),d;case">":switch(a){case s:D.setTagName(J.slice(Q,d));case N:case B:case T:break;case g:case o:ye=J.slice(Q,d),ye.slice(-1)==="/"&&(D.closed=!0,ye=ye.slice(0,-1));case v:a===v&&(ye=be),a==g?(Z.warning('attribute "'+ye+'" missed quot(")!'),Ce(be,ye,Q)):(ce||Z.warning('attribute "'+ye+'" missed value!! "'+ye+'" instead!!'),Ce(ye,ye,Q));break;case f:if(!ce)return Z.fatalError(`AttValue: ' or " expected`)}return d;case"€":p=" ";default:if(p<=" ")switch(a){case s:D.setTagName(J.slice(Q,d)),a=B;break;case o:be=J.slice(Q,d),a=v;break;case g:var ye=J.slice(Q,d);Z.warning('attribute "'+ye+'" missed quot(")!!'),Ce(be,ye,Q);case N:a=B;break}else switch(a){case v:ce||Z.warning('attribute "'+be+'" missed value!! "'+be+'" instead2!!'),Ce(be,be,Q),Q=d,a=o;break;case N:Z.warning('attribute space is required"'+be+'"!!');case B:a=o,Q=d;break;case f:a=g,Q=d;break;case T:throw new Error("elements closed character '/' and '>' must be connected to")}}d++}}function z(J,Q,D){for(var m=J.tagName,S=null,a=J.length;a--;){var Z=J[a],ce=Z.qName,Ce=Z.value,p=ce.indexOf(":");if(p>0)var be=Z.prefix=ce.slice(0,p),ye=ce.slice(p+1),d=be==="xmlns"&&ye;else ye=ce,be=null,d=ce==="xmlns"&&"";Z.localName=ye,d!==!1&&(S==null&&(S=Object.create(null),D=Object.create(D)),D[d]=S[d]=Ce,Z.uri=k.XMLNS,Q.startPrefixMapping(d,Ce))}for(var a=J.length;a--;)Z=J[a],Z.prefix&&(Z.prefix==="xml"&&(Z.uri=k.XML),Z.prefix!=="xmlns"&&(Z.uri=D[Z.prefix]));var p=m.indexOf(":");p>0?(be=J.prefix=m.slice(0,p),ye=J.localName=m.slice(p+1)):(be=null,ye=J.localName=m);var F=J.uri=D[be||""];if(Q.startElement(F,ye,m,J),J.closed){if(Q.endElement(F,ye,m),S)for(be in S)P(S,be)&&Q.endPrefixMapping(be)}else return J.currentNSMap=D,J.localNSMap=S,!0}function C(J,Q,D,m,S){var Z=b(D);if(Z||I(D)){var ce=new RegExp("</"+D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+">","ig");ce.lastIndex=Q;var Ce=ce.exec(J),be=Ce?Ce.index:-1;if(be<0)return Q+1;var ye=J.substring(Q+1,be);return Z&&(ye=ye.replace(q,m)),S.characters(ye,0,ye.length),be}return Q+1}function E(J,Q){for(var D in J)P(J,D)&&(Q[D]=J[D])}function L(J,Q){var D=Q;function m(d){return d=d||0,J.charAt(D+d)}function S(d){d=d||1,D+=d}function Z(){for(var d=0;D<J.length;){var a=m();if(a!==" "&&a!==`
7
+ `&&a!==" "&&a!=="\r")return d;d++,S()}return-1}function ce(){return J.substring(D)}function Ce(d){return J.substring(D,D+d.length)===d}function be(d){return J.substring(D,D+d.length).toUpperCase()===d.toUpperCase()}function ye(d){var a=u.reg("^",d),p=a.exec(ce());return p?(S(p[0].length),p[0]):null}return{char:m,getIndex:function(){return D},getMatch:ye,getSource:function(){return J},skip:S,skipBlanks:Z,substringFromIndex:ce,substringStartsWith:Ce,substringStartsWithCaseInsensitive:be}}function K(J,Q){function D(Ce,be){var ye=u.PI.exec(Ce.substringFromIndex());return ye?ye[1].toLowerCase()==="xml"?be.fatalError("xml declaration is only allowed at the start of the document, but found at position "+Ce.getIndex()):(Ce.skip(ye[0].length),ye[0]):be.fatalError("processing instruction is not well-formed at position "+Ce.getIndex())}var m=J.getSource();if(J.char()==="["){J.skip(1);for(var S=J.getIndex();J.getIndex()<m.length;){if(J.skipBlanks(),J.char()==="]"){var Z=m.substring(S,J.getIndex());return J.skip(1),Z}var ce=null;if(J.char()==="<"&&J.char(1)==="!")switch(J.char(2)){case"E":J.char(3)==="L"?ce=J.getMatch(u.elementdecl):J.char(3)==="N"&&(ce=J.getMatch(u.EntityDecl));break;case"A":ce=J.getMatch(u.AttlistDecl);break;case"N":ce=J.getMatch(u.NotationDecl);break;case"-":ce=J.getMatch(u.Comment);break}else if(J.char()==="<"&&J.char(1)==="?")ce=D(J,Q);else if(J.char()==="%")ce=J.getMatch(u.PEReference);else return Q.fatalError("Error detected in Markup declaration");if(!ce)return Q.fatalError("Error in internal subset at position "+J.getIndex())}return Q.fatalError("doctype internal subset is not well-formed, missing ]")}}function ue(J,Q,D,m,S){var Z=L(J,Q);switch(S?Z.char(2).toUpperCase():Z.char(2)){case"-":var ce=Z.getMatch(u.Comment);return ce?(D.comment(ce,u.COMMENT_START.length,ce.length-u.COMMENT_START.length-u.COMMENT_END.length),Z.getIndex()):m.fatalError("comment is not well-formed at position "+Z.getIndex());case"[":var Ce=Z.getMatch(u.CDSect);return Ce?!S&&!D.currentElement?m.fatalError("CDATA outside of element"):(D.startCDATA(),D.characters(Ce,u.CDATA_START.length,Ce.length-u.CDATA_START.length-u.CDATA_END.length),D.endCDATA(),Z.getIndex()):m.fatalError("Invalid CDATA starting at position "+Q);case"D":{if(D.doc&&D.doc.documentElement)return m.fatalError("Doctype not allowed inside or after documentElement at position "+Z.getIndex());if(S?!Z.substringStartsWithCaseInsensitive(u.DOCTYPE_DECL_START):!Z.substringStartsWith(u.DOCTYPE_DECL_START))return m.fatalError("Expected "+u.DOCTYPE_DECL_START+" at position "+Z.getIndex());if(Z.skip(u.DOCTYPE_DECL_START.length),Z.skipBlanks()<1)return m.fatalError("Expected whitespace after "+u.DOCTYPE_DECL_START+" at position "+Z.getIndex());var be={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(be.name=Z.getMatch(u.Name),!be.name)return m.fatalError("doctype name missing or contains unexpected characters at position "+Z.getIndex());if(S&&be.name.toLowerCase()!=="html"&&m.warning("Unexpected DOCTYPE in HTML document at position "+Z.getIndex()),Z.skipBlanks(),Z.substringStartsWith(u.PUBLIC)||Z.substringStartsWith(u.SYSTEM)){var ye=u.ExternalID_match.exec(Z.substringFromIndex());if(!ye)return m.fatalError("doctype external id is not well-formed at position "+Z.getIndex());ye.groups.SystemLiteralOnly!==void 0?be.systemId=ye.groups.SystemLiteralOnly:(be.systemId=ye.groups.SystemLiteral,be.publicId=ye.groups.PubidLiteral),Z.skip(ye[0].length)}else if(S&&Z.substringStartsWithCaseInsensitive(u.SYSTEM)){if(Z.skip(u.SYSTEM.length),Z.skipBlanks()<1)return m.fatalError("Expected whitespace after "+u.SYSTEM+" at position "+Z.getIndex());if(be.systemId=Z.getMatch(u.ABOUT_LEGACY_COMPAT_SystemLiteral),!be.systemId)return m.fatalError("Expected "+u.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+u.SYSTEM+" at position "+Z.getIndex())}return S&&be.systemId&&!u.ABOUT_LEGACY_COMPAT_SystemLiteral.test(be.systemId)&&m.warning("Unexpected doctype.systemId in HTML document at position "+Z.getIndex()),S||(Z.skipBlanks(),be.internalSubset=K(Z,m)),Z.skipBlanks(),Z.char()!==">"?m.fatalError("doctype not terminated with > at position "+Z.getIndex()):(Z.skip(1),D.startDTD(be.name,be.publicId,be.systemId,be.internalSubset),D.endDTD(),Z.getIndex())}default:return m.fatalError('Not well-formed XML starting with "<!" at position '+Q)}}function we(J,Q,D,m){var S=J.substring(Q).match(u.PI);if(!S)return m.fatalError("Invalid processing instruction starting at position "+Q);if(S[1].toLowerCase()==="xml"){if(Q>0)return m.fatalError("processing instruction at position "+Q+" is an xml declaration which is only at the start of the document");if(!u.XMLDecl.test(J.substring(Q)))return m.fatalError("xml declaration is not well-formed")}return D.processingInstruction(S[1],S[2]),Q+S[0].length}function De(){this.attributeNames=Object.create(null)}return De.prototype={setTagName:function(J){if(!u.QName_exact.test(J))throw new Error("invalid tagName:"+J);this.tagName=J},addValue:function(J,Q,D){if(!u.QName_exact.test(J))throw new Error("invalid attribute:"+J);this.attributeNames[J]=this.length,this[this.length++]={qName:J,value:Q,offset:D}},length:0,getLocalName:function(J){return this[J].localName},getLocator:function(J){return this[J].locator},getQName:function(J){return this[J].qName},getURI:function(J){return this[J].uri},getValue:function(J){return this[J].value}},yt.XMLReader=V,yt.parseUtils=L,yt.parseDoctypeCommentOrCData=ue,yt}var ni;function ko(){if(ni)return st;ni=1;var l=dt(),u=Wi(),h=Ft(),b=Po(),y=Fo(),I=u.DOMImplementation,P=l.hasDefaultHTMLNamespace,k=l.isHTMLMimeType,O=l.isValidMimeType,c=l.MIME_TYPE,s=l.NAMESPACE,o=h.ParseError,v=y.XMLReader;function f(w){return w.replace(/\r[\n\u0085]/g,`
8
+ `).replace(/[\r\u0085\u2028\u2029]/g,`
9
+ `)}function g(w){if(w=w||{},w.locator===void 0&&(w.locator=!0),this.assign=w.assign||l.assign,this.domHandler=w.domHandler||N,this.onError=w.onError||w.errorHandler,w.errorHandler&&typeof w.errorHandler!="function")throw new TypeError("errorHandler object is no longer supported, switch to onError!");w.errorHandler&&w.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=w.normalizeLineEndings||f,this.locator=!!w.locator,this.xmlns=this.assign(Object.create(null),w.xmlns)}g.prototype.parseFromString=function(w,z){if(!O(z))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+z+'" is not valid.');var C=this.assign(Object.create(null),this.xmlns),E=b.XML_ENTITIES,L=C[""]||null;P(z)?(E=b.HTML_ENTITIES,L=s.HTML):z===c.XML_SVG_IMAGE&&(L=s.SVG),C[""]=L,C.xml=C.xml||s.XML;var K=new this.domHandler({mimeType:z,defaultNamespace:L,onError:this.onError}),ue=this.locator?{}:void 0;this.locator&&K.setDocumentLocator(ue);var we=new v;we.errorHandler=K,we.domBuilder=K;var De=!l.isHTMLMimeType(z);return De&&typeof w!="string"&&we.errorHandler.fatalError("source is not a string"),we.parse(this.normalizeLineEndings(String(w)),C,E),K.doc.documentElement||we.errorHandler.fatalError("missing root element"),K.doc};function N(w){var z=w||{};this.mimeType=z.mimeType||c.XML_APPLICATION,this.defaultNamespace=z.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=z.onError}function B(w,z){z.lineNumber=w.lineNumber,z.columnNumber=w.columnNumber}N.prototype={startDocument:function(){var w=new I;this.doc=k(this.mimeType)?w.createHTMLDocument(!1):w.createDocument(this.defaultNamespace,"")},startElement:function(w,z,C,E){var L=this.doc,K=L.createElementNS(w,C||z),ue=E.length;q(this,K),this.currentElement=K,this.locator&&B(this.locator,K);for(var we=0;we<ue;we++){var w=E.getURI(we),De=E.getValue(we),C=E.getQName(we),J=L.createAttributeNS(w,C);this.locator&&B(E.getLocator(we),J),J.value=J.nodeValue=De,K.setAttributeNode(J)}},endElement:function(w,z,C){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(w,z){},endPrefixMapping:function(w){},processingInstruction:function(w,z){var C=this.doc.createProcessingInstruction(w,z);this.locator&&B(this.locator,C),q(this,C)},ignorableWhitespace:function(w,z,C){},characters:function(w,z,C){if(w=V.apply(this,arguments),w){if(this.cdata)var E=this.doc.createCDATASection(w);else var E=this.doc.createTextNode(w);this.currentElement?this.currentElement.appendChild(E):/^\s*$/.test(w)&&this.doc.appendChild(E),this.locator&&B(this.locator,E)}},skippedEntity:function(w){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(w){w&&(w.lineNumber=0),this.locator=w},comment:function(w,z,C){w=V.apply(this,arguments);var E=this.doc.createComment(w);this.locator&&B(this.locator,E),q(this,E)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(w,z,C,E){var L=this.doc.implementation;if(L&&L.createDocumentType){var K=L.createDocumentType(w,z,C,E);this.locator&&B(this.locator,K),q(this,K),this.doc.doctype=K}},reportError:function(w,z){if(typeof this.onError=="function")try{this.onError(w,z,this)}catch(C){throw new o("Reporting "+w+' "'+z+'" caused '+C,this.locator)}else console.error("[xmldom "+w+"] "+z,T(this.locator))},warning:function(w){this.reportError("warning",w)},error:function(w){this.reportError("error",w)},fatalError:function(w,z){throw this.reportError("fatalError",w),new o(w,this.locator,z)}};function T(w){if(w)return`
10
+ @#[line:`+w.lineNumber+",col:"+w.columnNumber+"]"}function V(w,z,C){return typeof w=="string"?w.substr(z,C):w.length>=z+C||z?new java.lang.String(w,z,C)+"":w}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(w){N.prototype[w]=function(){return null}});function q(w,z){w.currentElement?w.currentElement.appendChild(z):w.doc.appendChild(z)}function W(w){if(w==="error")throw"onErrorStopParsing"}function Y(){throw"onWarningStopParsing"}return st.__DOMHandler=N,st.DOMParser=g,st.normalizeLineEndings=f,st.onErrorStopParsing=W,st.onWarningStopParsing=Y,st}var ai;function Lo(){if(ai)return lr;ai=1;var l=dt();lr.assign=l.assign,lr.hasDefaultHTMLNamespace=l.hasDefaultHTMLNamespace,lr.isHTMLMimeType=l.isHTMLMimeType,lr.isValidMimeType=l.isValidMimeType,lr.MIME_TYPE=l.MIME_TYPE,lr.NAMESPACE=l.NAMESPACE;var u=Ft();lr.DOMException=u.DOMException,lr.DOMExceptionName=u.DOMExceptionName,lr.ExceptionCode=u.ExceptionCode,lr.ParseError=u.ParseError;var h=Wi();lr.Attr=h.Attr,lr.CDATASection=h.CDATASection,lr.CharacterData=h.CharacterData,lr.Comment=h.Comment,lr.Document=h.Document,lr.DocumentFragment=h.DocumentFragment,lr.DocumentType=h.DocumentType,lr.DOMImplementation=h.DOMImplementation,lr.Element=h.Element,lr.Entity=h.Entity,lr.EntityReference=h.EntityReference,lr.LiveNodeList=h.LiveNodeList,lr.NamedNodeMap=h.NamedNodeMap,lr.Node=h.Node,lr.NodeList=h.NodeList,lr.Notation=h.Notation,lr.ProcessingInstruction=h.ProcessingInstruction,lr.Text=h.Text,lr.XMLSerializer=h.XMLSerializer;var b=ko();return lr.DOMParser=b.DOMParser,lr.normalizeLineEndings=b.normalizeLineEndings,lr.onErrorStopParsing=b.onErrorStopParsing,lr.onWarningStopParsing=b.onWarningStopParsing,lr}var hn,ii;function Gn(){if(ii)return hn;ii=1;function l(h){return h[h.length-1]}function u(h){return h[0]}return hn={last:l,first:u},hn}var dn,oi;function qr(){if(oi)return dn;oi=1;function l(a){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},l(a)}function u(a,p){var F=Object.keys(a);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(a);p&&(H=H.filter(function(me){return Object.getOwnPropertyDescriptor(a,me).enumerable})),F.push.apply(F,H)}return F}function h(a){for(var p=1;p<arguments.length;p++){var F=arguments[p]!=null?arguments[p]:{};p%2?u(Object(F),!0).forEach(function(H){b(a,H,F[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(F)):u(Object(F)).forEach(function(H){Object.defineProperty(a,H,Object.getOwnPropertyDescriptor(F,H))})}return a}function b(a,p,F){return(p=y(p))in a?Object.defineProperty(a,p,{value:F,enumerable:!0,configurable:!0,writable:!0}):a[p]=F,a}function y(a){var p=I(a,"string");return l(p)=="symbol"?p:p+""}function I(a,p){if(l(a)!="object"||!a)return a;var F=a[Symbol.toPrimitive];if(F!==void 0){var H=F.call(a,p);if(l(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(a)}var P=Gn(),k=P.last,O=P.first;function c(a){this.name="GenericError",this.message=a,this.stack=new Error(a).stack}c.prototype=Error.prototype;function s(a){this.name="TemplateError",this.message=a,this.stack=new Error(a).stack}s.prototype=new c;function o(a){this.name="RenderingError",this.message=a,this.stack=new Error(a).stack}o.prototype=new c;function v(a){this.name="ScopeParserError",this.message=a,this.stack=new Error(a).stack}v.prototype=new c;function f(a){this.name="InternalError",this.properties={explanation:"InternalError"},this.message=a,this.stack=new Error(a).stack}f.prototype=new c;function g(a){this.name="APIVersionError",this.properties={explanation:"APIVersionError"},this.message=a,this.stack=new Error(a).stack}g.prototype=new c;function N(a,p){var F=new g(a);throw F.properties=h({id:"api_version_error"},p),F}function B(a){var p=Object.keys(a.files).slice(0,10),F="";p.length===0?F="Empty zip file":F="Zip file contains : ".concat(p.join(","));var H=new f("The filetype for this file could not be identified, is this file corrupted ? ".concat(F));throw H.properties={id:"filetype_not_identified",explanation:"The filetype for this file could not be identified, is this file corrupted ? ".concat(F)},H}function T(a){var p=new f('The filetype "'.concat(a,'" is not handled by Docxtemplater'));throw p.properties={id:"filetype_not_handled",explanation:'The file you are trying to generate is of type "'.concat(a,'", but only docx and pptx formats are handled'),fileType:a},p}function V(a){var p=new s("Multi error");throw p.properties={errors:a,id:"multi_error",explanation:"The template has multiple errors"},p}function q(a){var p=new s("Unopened tag");return p.properties={xtag:k(a.xtag.split(" ")),id:"unopened_tag",context:a.xtag,offset:a.offset,lIndex:a.lIndex,explanation:'The tag beginning with "'.concat(a.xtag.substr(0,30),'" is unopened')},p}function W(a){var p=new s("Duplicate open tag, expected one open tag");return p.properties={xtag:O(a.xtag.split(" ")),id:"duplicate_open_tag",context:a.xtag,offset:a.offset,lIndex:a.lIndex,explanation:'The tag beginning with "'.concat(a.xtag.substr(0,30),'" has duplicate open tags')},p}function Y(a){var p=new s("Duplicate close tag, expected one close tag");return p.properties={xtag:O(a.xtag.split(" ")),id:"duplicate_close_tag",context:a.xtag,offset:a.offset,lIndex:a.lIndex,explanation:'The tag ending with "'.concat(a.xtag.substr(0,30),'" has duplicate close tags')},p}function w(a){var p=new s("Unclosed tag");return p.properties={xtag:O(a.xtag.split(" ")).substr(1),id:"unclosed_tag",context:a.xtag,offset:a.offset,lIndex:a.lIndex,explanation:'The tag beginning with "'.concat(a.xtag.substr(0,30),'" is unclosed')},p}function z(a){a.position==="left"?C(a):E(a)}function C(a){var p=new s('No tag "'.concat(a.element,'" was found at the ').concat(a.position)),F=a.parsed[a.index];throw p.properties={id:"no_xml_tag_found_at_left",explanation:'No tag "'.concat(a.element,'" was found at the left'),offset:F.offset,part:F,parsed:a.parsed,index:a.index,element:a.element},p}function E(a){var p=new s('No tag "'.concat(a.element,'" was found at the ').concat(a.position)),F=a.parsed[a.index];throw p.properties={id:"no_xml_tag_found_at_right",explanation:'No tag "'.concat(a.element,'" was found at the right'),offset:F.offset,part:F,parsed:a.parsed,index:a.index,element:a.element},p}function L(a){var p=a.tag,F=a.value,H=a.offset,me=new o("There are some XML corrupt characters");return me.properties={id:"invalid_xml_characters",xtag:p,value:F,offset:H,explanation:'There are some corrupt characters for the field "'.concat(p,'"')},me}function K(a){var p=a.tag,F=a.value,H=a.offset,me=a.partDelims,ve=new o("Non string values are not allowed for rawXML tags");return ve.properties={id:"invalid_raw_xml_value",xtag:p,value:F,offset:H,explanation:'The value of the raw tag : "'.concat(me,'" is not a string')},ve}function ue(a){var p=a.part,F=p.value,H=p.offset,me=a.id,ve=me===void 0?"raw_tag_outerxml_invalid":me,Ae=a.message,_e=Ae===void 0?"Raw tag not in paragraph":Ae,ke=a.part,Ie=a.explanation,j=Ie===void 0?'The tag "'.concat(F,'" is not inside a paragraph'):Ie;typeof j=="function"&&(j=j(ke));var ee=new s(_e);throw ee.properties={id:ve,explanation:j,rootError:a.rootError,xtag:F,offset:H,postparsed:a.postparsed,expandTo:a.expandTo,index:a.index},ee}function we(a){var p=new s("Raw tag should be the only text in paragraph"),F=a.part.value;throw p.properties={id:"raw_xml_tag_should_be_only_text_in_paragraph",explanation:'The raw tag "'.concat(F,'" should be the only text in this paragraph. This means that this tag should not be surrounded by any text or spaces.'),xtag:F,offset:a.part.offset,paragraphParts:a.paragraphParts},p}function De(a){var p=a.location,F=a.offset,H=a.square,me=p==="start"?"unclosed":"unopened",ve=p==="start"?"Unclosed":"Unopened",Ae=new s("".concat(ve," loop")),_e=a.value;return Ae.properties={id:"".concat(me,"_loop"),explanation:'The loop with tag "'.concat(_e,'" is ').concat(me),xtag:_e,offset:F},H&&(Ae.properties.square=H),Ae}function J(a,p){var F=new s("Unbalanced loop tag"),H=p[0].part.value,me=p[1].part.value,ve=a[0].part.value,Ae=a[1].part.value;return F.properties={id:"unbalanced_loop_tags",explanation:"Unbalanced loop tags {#".concat(H,"}{/").concat(me,"}{#").concat(ve,"}{/").concat(Ae,"}"),offset:[p[0].part.offset,a[1].part.offset],lastPair:{left:p[0].part.value,right:p[1].part.value},pair:{left:a[0].part.value,right:a[1].part.value}},F}function Q(a){var p=a.tags,F=new s("Closing tag does not match opening tag");return F.properties={id:"closing_tag_does_not_match_opening_tag",explanation:'The tag "'.concat(p[0].value,'" is closed by the tag "').concat(p[1].value,'"'),openingtag:O(p).value,offset:[O(p).offset,k(p).offset],closingtag:k(p).value},O(p).square&&(F.properties.square=[O(p).square,k(p).square]),F}function D(a){var p=a.tag,F=a.offset,H=new s('The position of the loop tags "'.concat(p,'" would produce invalid XML'));return H.properties={xtag:p,id:"loop_position_invalid",explanation:'The tags "'.concat(p,'" are misplaced in the document, for example one of them is in a table and the other one outside the table'),offset:F},H}function m(a){var p=a.tag,F=a.rootError,H=a.offset,me=new v("Scope parser compilation failed");return me.properties={id:"scopeparser_compilation_failed",offset:H,xtag:p,explanation:'The scope parser for the tag "'.concat(p,'" failed to compile'),rootError:F},me}function S(a){var p=a.tag,F=a.scope,H=a.error,me=a.offset,ve=new v("Scope parser execution failed");return ve.properties={id:"scopeparser_execution_failed",explanation:'The scope parser for the tag "'.concat(p,'" failed to execute'),scope:F,offset:me,xtag:p,rootError:H},ve}function Z(a,p){var F='Unimplemented tag type "'.concat(a.type,'"');a.module&&(F+=' "'.concat(a.module,'"'));var H=new s(F);throw H.properties={part:a,index:p,id:"unimplemented_tag_type"},H}function ce(){var a=new f("Malformed xml");throw a.properties={explanation:"The template contains malformed xml",id:"malformed_xml"},a}function Ce(){var a=new f("You must run `.compile()` before running `.resolveData()`");throw a.properties={id:"resolve_before_compile",explanation:"You must run `.compile()` before running `.resolveData()`"},a}function be(){var a=new f("You should not call .render on a document that had compilation errors");throw a.properties={id:"render_on_invalid_template",explanation:"You should not call .render on a document that had compilation errors"},a}function ye(){var a=new f("You should not call .render twice on the same Docxtemplater instance");throw a.properties={id:"render_twice",explanation:"You should not call .render twice on the same Docxtemplater instance"},a}function d(a,p){var F=new s("An XML file has invalid xml");throw F.properties={id:"file_has_invalid_xml",content:a,offset:p,explanation:"The docx contains invalid XML, it is most likely corrupt"},F}return dn={XTError:c,XTTemplateError:s,XTInternalError:f,XTScopeParserError:v,XTAPIVersionError:g,RenderingError:o,XTRenderingError:o,getClosingTagNotMatchOpeningTag:Q,getLoopPositionProducesInvalidXMLError:D,getScopeCompilationError:m,getScopeParserExecutionError:S,getUnclosedTagException:w,getUnopenedTagException:q,getUnmatchedLoopException:De,getDuplicateCloseTagException:Y,getDuplicateOpenTagException:W,getCorruptCharactersException:L,getInvalidRawXMLValueException:K,getUnbalancedLoopException:J,throwApiVersionError:N,throwFileTypeNotHandled:T,throwFileTypeNotIdentified:B,throwMalformedXml:ce,throwMultiError:V,throwExpandNotFound:ue,throwRawTagShouldBeOnlyTextInParagraph:we,throwUnimplementedTagType:Z,throwXmlTagNotFound:z,throwXmlInvalid:d,throwResolveBeforeCompile:Ce,throwRenderInvalidTemplate:be,throwRenderTwice:ye},dn}var vn,ui;function Dr(){if(ui)return vn;ui=1;function l(M,re){return I(M)||y(M,re)||h(M,re)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(M,re){if(M){if(typeof M=="string")return b(M,re);var se={}.toString.call(M).slice(8,-1);return se==="Object"&&M.constructor&&(se=M.constructor.name),se==="Map"||se==="Set"?Array.from(M):se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(se)?b(M,re):void 0}}function b(M,re){(re==null||re>M.length)&&(re=M.length);for(var se=0,he=Array(re);se<re;se++)he[se]=M[se];return he}function y(M,re){var se=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(se!=null){var he,Pe,Oe,ie,oe=[],X=!0,ne=!1;try{if(Oe=(se=se.call(M)).next,re!==0)for(;!(X=(he=Oe.call(se)).done)&&(oe.push(he.value),oe.length!==re);X=!0);}catch(Te){ne=!0,Pe=Te}finally{try{if(!X&&se.return!=null&&(ie=se.return(),Object(ie)!==ie))return}finally{if(ne)throw Pe}}return oe}}function I(M){if(Array.isArray(M))return M}var P=Lo(),k=P.DOMParser,O=P.XMLSerializer,c=qr(),s=c.throwXmlTagNotFound,o=Gn(),v=o.last,f=o.first,g=Object.prototype.hasOwnProperty,N=Function.prototype.bind,B=Function.prototype.call,T=B.bind(B,N),V=T(B,B,g);function q(M){return/^[ \n\r\t]+$/.test(M)}function W(M){return{get:function(se){return M==="."?se:se&&(V(se,M)?se[M]:void 0)}}}function Y(M){for(var re=0;re<M.length;re++){var se=M[re];se.message&&console.warn("Warning : "+se.message)}}var w={};function z(M,re,se){var he;if(w[re]?he=w[re]:(he=new RegExp("(<.* ".concat(re,'=")([^"]*)(".*)$')),w[re]=he),he.test(M))return M.replace(he,"$1".concat(se,"$3"));var Pe=M.lastIndexOf("/>");return Pe===-1&&(Pe=M.lastIndexOf(">")),M.substr(0,Pe)+" ".concat(re,'="').concat(se,'"')+M.substr(Pe)}function C(M,re){var se=M.indexOf(" ".concat(re,'="'));if(se===-1)return null;var he=M.substr(se).search(/["']/)+se,Pe=M.substr(he+1).search(/["']/)+he;return M.substr(he+1,Pe-he)}function E(M,re){var se=M.length-re.length;return se>=0&&M.lastIndexOf(re,se)===se}function L(M,re){return M.lastIndexOf(re,0)===0}function K(M){for(var re=[],se={},he=[],Pe=0,Oe=M.length;Pe<Oe;++Pe)se[M[Pe]]?re.push(M[Pe]):(se[M[Pe]]=!0,he.push(M[Pe]));return re}function ue(M){for(var re={},se=[],he=0,Pe=M.length;he<Pe;++he)re[M[he]]||(re[M[he]]=!0,se.push(M[he]));return se}function we(M,re){for(var se=[[]],he=0;he<M.length;he++){var Pe=M[he],Oe=se[se.length-1],ie=re(Pe);ie==="start"?se.push([Pe]):ie==="end"?(Oe.push(Pe),se.push([])):Oe.push(Pe)}for(var oe=[],X=0;X<se.length;X++){var ne=se[X];ne.length>0&&oe.push(ne)}return oe}function De(){return{errorLogging:"json",stripInvalidXMLChars:!1,paragraphLoop:!1,nullGetter:function(re){return re.module?"":"undefined"},xmlFileNames:["[Content_Types].xml"],parser:W,warnFn:Y,linebreaks:!1,fileTypeConfig:null,delimiters:{start:"{",end:"}"},syntax:{changeDelimiterPrefix:"=",preserveNewlinesInTags:!1,allowUnopenedTag:!1,allowUnclosedTag:!1,allowUnbalancedLoops:!1}}}function J(M){return new O().serializeToString(M).replace(/xmlns(:[a-z0-9]+)?="" ?/g,"")}function Q(M){return M.charCodeAt(0)===65279&&(M=M.substr(1)),new k().parseFromString(M,"text/xml")}var D=[["&","&amp;"],["<","&lt;"],[">","&gt;"],['"',"&quot;"],["'","&apos;"]],m=D.map(function(M){var re=l(M,2),se=re[0],he=re[1];return{rstart:new RegExp(he,"g"),rend:new RegExp(se,"g"),start:he,end:se}});function S(M){for(var re=m.length-1;re>=0;re--){var se=m[re];M=M.replace(se.rstart,se.end)}return M}function Z(M){var re;(re=M)!==null&&re!==void 0&&re.toString?M=M.toString():M="";for(var se,he=0,Pe=m.length;he<Pe;he++)se=m[he],M=M.replace(se.rend,se.start);return M}function ce(M){for(var re=[],se=0;se<M.length;se++)for(var he=M[se],Pe=0;Pe<he.length;Pe++){var Oe=he[Pe];re.push(Oe)}return re}function Ce(M,re){if(!re)return M;for(var se=0,he=re.length;se<he;se++)M.push(re[se]);return M}var be=new RegExp(" ","g");function ye(M){return M.replace(be," ")}function d(M,re){for(var se=[],he;(he=M.exec(re))!=null;)se.push({array:he,offset:he.index});return se}function a(M,re){return M==="</"+re+">"}function p(M,re){return M.indexOf("<"+re)===0&&[">"," ","/"].indexOf(M[re.length+1])!==-1}function F(M,re,se){var he=H(M,re,se);if(he!==null)return he;s({position:"right",element:re,parsed:M,index:se})}function H(M,re,se){typeof re=="string"&&(re=[re]);for(var he=1,Pe=se,Oe=M.length;Pe<Oe;Pe++)for(var ie=M[Pe],oe=0,X=re;oe<X.length;oe++){var ne=X[oe];if(a(ie.value,ne)&&he--,p(ie.value,ne)&&he++,he===0)return Pe}return null}function me(M,re,se){var he=ve(M,re,se);if(he!==null)return he;s({position:"left",element:re,parsed:M,index:se})}function ve(M,re,se){typeof re=="string"&&(re=[re]);for(var he=1,Pe=se;Pe>=0;Pe--)for(var Oe=M[Pe],ie=0,oe=re;ie<oe.length;ie++){var X=oe[ie];if(p(Oe.value,X)&&he--,a(Oe.value,X)&&he++,he===0)return Pe}return null}function Ae(M,re){var se=re.type,he=re.tag,Pe=re.position;return se==="tag"&&he===M&&(Pe==="start"||Pe==="selfclosing")}function _e(M,re){var se=re.type,he=re.tag,Pe=re.position;return se==="tag"&&he===M&&Pe==="end"}function ke(M){var re=M.type,se=M.tag,he=M.position;return["w:p","a:p","text:p"].indexOf(se)!==-1&&re==="tag"&&he==="start"}function Ie(M){var re=M.type,se=M.tag,he=M.position;return["w:p","a:p","text:p"].indexOf(se)!==-1&&re==="tag"&&he==="end"}function j(M){var re=M.type,se=M.tag,he=M.position;return["w:br","a:br"].indexOf(se)!==-1&&re==="tag"&&(he==="start"||he==="selfclosing")}function ee(M){var re=M.type,se=M.position,he=M.text;return he&&re==="tag"&&se==="start"}function U(M){var re=M.type,se=M.position,he=M.text;return he&&re==="tag"&&se==="end"}function fe(M){var re=M.type,se=M.position;return re==="placeholder"||re==="content"&&se==="insidetag"}function de(M,re){var se=M.module,he=M.type;return re instanceof Array||(re=[re]),he==="placeholder"&&re.indexOf(se)!==-1}var Le=/[\x00-\x08\x0B\x0C\x0E-\x1F]/g;function Se(M){return Le.lastIndex=0,Le.test(M)}function Je(M){return typeof M!="string"&&(M=String(M)),M.replace(Le,"")}function Ze(M){var re={};for(var se in M){var he=M[se];re[he]||(re[he]=[]),re[he].push(se)}return re}function Xe(M,re){for(var se=[],he=0;he<M.length;he++)se.push({item:M[he],index:he});se.sort(function(ie,oe){return re(ie.item,oe.item)||ie.index-oe.index});for(var Pe=[],Oe=0;Oe<se.length;Oe++)Pe.push(se[Oe].item);return Pe}function er(M,re){return re.delimiters.start+M.raw+re.delimiters.end}return vn={getPartWithDelimiters:er,endsWith:E,startsWith:L,isContent:fe,isParagraphStart:ke,isParagraphEnd:Ie,isBreakTag:j,isTagStart:Ae,isTagEnd:_e,isTextStart:ee,isTextEnd:U,isStarting:p,isEnding:a,isModule:de,uniq:ue,getDuplicates:K,chunkBy:we,last:v,first:f,xml2str:J,str2xml:Q,getRightOrNull:H,getRight:F,getLeftOrNull:ve,getLeft:me,pregMatchAll:d,convertSpaces:ye,charMapRegexes:m,hasCorruptCharacters:Se,removeCorruptCharacters:Je,getDefaults:De,wordToUtf8:S,utf8ToWord:Z,concatArrays:ce,pushArray:Ce,invertMap:Ze,charMap:D,getSingleAttribute:C,setSingleAttribute:z,isWhiteSpace:q,stableSort:Xe},vn}var gn,si;function Mo(){if(si)return gn;si=1;function l(f,g){return I(f)||y(f,g)||h(f,g)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(f,g){if(f){if(typeof f=="string")return b(f,g);var N={}.toString.call(f).slice(8,-1);return N==="Object"&&f.constructor&&(N=f.constructor.name),N==="Map"||N==="Set"?Array.from(f):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?b(f,g):void 0}}function b(f,g){(g==null||g>f.length)&&(g=f.length);for(var N=0,B=Array(g);N<g;N++)B[N]=f[N];return B}function y(f,g){var N=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(N!=null){var B,T,V,q,W=[],Y=!0,w=!1;try{if(V=(N=N.call(f)).next,g!==0)for(;!(Y=(B=V.call(N)).done)&&(W.push(B.value),W.length!==g);Y=!0);}catch(z){w=!0,T=z}finally{try{if(!Y&&N.return!=null&&(q=N.return(),Object(q)!==q))return}finally{if(w)throw T}}return W}}function I(f){if(Array.isArray(f))return f}function P(f){"@babel/helpers - typeof";return P=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},P(f)}function k(f,g){if(!(f instanceof g))throw new TypeError("Cannot call a class as a function")}function O(f,g){for(var N=0;N<g.length;N++){var B=g[N];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(f,s(B.key),B)}}function c(f,g,N){return N&&O(f,N),Object.defineProperty(f,"prototype",{writable:!1}),f}function s(f){var g=o(f,"string");return P(g)=="symbol"?g:g+""}function o(f,g){if(P(f)!="object"||!f)return f;var N=f[Symbol.toPrimitive];if(N!==void 0){var B=N.call(f,g);if(P(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}var v=(function(){function f(){k(this,f)}return c(f,null,[{key:"createSchema",value:function(N){var B={validate:N,optional:function(){return f.createSchema(function(V){return V===void 0?{success:!0,value:V}:N(V)})},nullable:function(){return f.createSchema(function(V){return V==null?{success:!0,value:V}:N(V)})}};return B}},{key:"string",value:function(){return f.createSchema(function(N){return typeof N!="string"?{success:!1,error:"Expected string, received ".concat(P(N))}:{success:!0,value:N}})}},{key:"date",value:function(){return f.createSchema(function(N){return N instanceof Date?{success:!0,value:N}:{success:!1,error:"Expected date, received ".concat(P(N))}})}},{key:"boolean",value:function(){return f.createSchema(function(N){return typeof N!="boolean"?{success:!1,error:"Expected boolean, received ".concat(P(N))}:{success:!0,value:N}})}},{key:"number",value:function(){return f.createSchema(function(N){return typeof N!="number"?{success:!1,error:"Expected number, received ".concat(P(N))}:{success:!0,value:N}})}},{key:"function",value:function(){return f.createSchema(function(N){return typeof N!="function"?{success:!1,error:"Expected function, received ".concat(P(N))}:{success:!0,value:N}})}},{key:"array",value:function(N){return f.createSchema(function(B){if(!Array.isArray(B))return{success:!1,error:"Expected array, received ".concat(P(B))};for(var T=0;T<B.length;T++){var V=N.validate(B[T]);if(!V.success)return{success:!1,error:"".concat(V.error," at index ").concat(T)}}return{success:!0,value:B}})}},{key:"any",value:function(){return f.createSchema(function(N){return{success:!0,value:N}})}},{key:"isRegex",value:function(){return f.createSchema(function(N){return N instanceof RegExp?{success:!0,value:N}:{success:!1,error:"Expected RegExp, received ".concat(P(N))}})}},{key:"union",value:function(N){return f.createSchema(function(B){for(var T=0;T<N.length;T++){var V=N[T],q=V.validate(B);if(q.success)return q}return{success:!1,error:"Value ".concat(B," does not match any schema in union")}})}},{key:"object",value:function(N){var B=f.createSchema(function(T){if(T==null)return{success:!1,error:"Expected object, received ".concat(T)};if(P(T)!=="object")return{success:!1,error:"Expected object, received ".concat(P(T))};for(var V=0,q=Object.entries(N);V<q.length;V++){var W=l(q[V],2),Y=W[0],w=W[1],z=w.validate(T[Y]);if(!z.success)return{success:!1,error:"".concat(z.error," at ").concat(Y)}}return{success:!0,value:T}});return B.strict=function(){return f.createSchema(function(T){var V=B.validate(T);if(!V.success)return V;var q=Object.keys(T).filter(function(W){return!(W in N)});return q.length>0?{success:!1,error:"Unexpected properties: ".concat(q.join(", "))}:V})},B}},{key:"record",value:function(N){return f.createSchema(function(B){if(B===null)return{success:!1,error:"Expected object, received null"};if(P(B)!=="object")return{success:!1,error:"Expected object, received ".concat(P(B))};for(var T=0,V=Object.keys(B);T<V.length;T++){var q=V[T];if(typeof q!="string")return{success:!1,error:"Expected string key, received ".concat(P(q)," at ").concat(q)};var W=N.validate(B[q]);if(!W.success)return{success:!1,error:"".concat(W.error," at key ").concat(q)}}return{success:!0,value:B}})}}])})();return gn=v,gn}var mn,li;function Uo(){if(li)return mn;li=1;var l=Dr(),u=l.str2xml,h="_rels/.rels";function b(y){for(var I=y.files[h],P=I?u(I.asText()):null,k=P?P.getElementsByTagName("Relationship"):[],O={},c=0;c<k.length;c++){var s=k[c];O[s.getAttribute("Target")]=s.getAttribute("Type")}return O}return mn={getRelsTypes:b},mn}var yn,ci;function qo(){if(ci)return yn;ci=1;var l=Dr(),u=l.str2xml,h="[Content_Types].xml";function b(I,P,k){for(var O={},c=0;c<I.length;c++){var s=I[c],o=s.getAttribute("ContentType"),v=s.getAttribute("PartName").substr(1);O[v]=o}return k.file(/./).map(function(f){for(var g=f.name,N=0;N<P.length;N++){var B=P[N],T=B.getAttribute("ContentType"),V=B.getAttribute("Extension");g.slice(g.length-V.length)===V&&!O[g]&&g!==h&&(O[g]=T)}O[g]||(O[g]="")}),O}function y(I){var P=I.files[h],k=P?u(P.asText()):null,O=k?k.getElementsByTagName("Override"):null,c=k?k.getElementsByTagName("Default"):null;return{overrides:O,defaults:c,contentTypes:P,contentTypeXml:k}}return yn={collectContentTypes:b,getContentTypes:y},yn}var bn,fi;function lt(){if(fi)return bn;fi=1;var l=qr(),u=l.XTInternalError;function h(){}function b(y){return y}return bn=function(y){var I={on:h,set:h,getFileType:h,optionsTransformer:b,preparse:b,matchers:function(){return[]},parse:h,getTraits:h,postparse:b,errorsTransformer:b,preResolve:h,resolve:h,getRenderedMap:b,render:h,nullGetter:h,postrender:b};if(Object.keys(I).every(function(O){return!y[O]})){var P=new u("This module cannot be wrapped, because it doesn't define any of the necessary functions");throw P.properties={id:"module_cannot_be_wrapped",explanation:"This module cannot be wrapped, because it doesn't define any of the necessary functions"},P}for(var k in I)y[k]||(y[k]=I[k]);return y},bn}var En,pi;function Wn(){if(pi)return En;pi=1;function l(d){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},l(d)}function u(d){return y(d)||b(d)||k(d)||h()}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function y(d){if(Array.isArray(d))return O(d)}function I(d,a){return s(d)||c(d,a)||k(d,a)||P()}function P(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(d,a){if(d){if(typeof d=="string")return O(d,a);var p={}.toString.call(d).slice(8,-1);return p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set"?Array.from(d):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?O(d,a):void 0}}function O(d,a){(a==null||a>d.length)&&(a=d.length);for(var p=0,F=Array(a);p<a;p++)F[p]=d[p];return F}function c(d,a){var p=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(p!=null){var F,H,me,ve,Ae=[],_e=!0,ke=!1;try{if(me=(p=p.call(d)).next,a!==0)for(;!(_e=(F=me.call(p)).done)&&(Ae.push(F.value),Ae.length!==a);_e=!0);}catch(Ie){ke=!0,H=Ie}finally{try{if(!_e&&p.return!=null&&(ve=p.return(),Object(ve)!==ve))return}finally{if(ke)throw H}}return Ae}}function s(d){if(Array.isArray(d))return d}function o(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(d);a&&(F=F.filter(function(H){return Object.getOwnPropertyDescriptor(d,H).enumerable})),p.push.apply(p,F)}return p}function v(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?o(Object(p),!0).forEach(function(F){f(d,F,p[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):o(Object(p)).forEach(function(F){Object.defineProperty(d,F,Object.getOwnPropertyDescriptor(p,F))})}return d}function f(d,a,p){return(a=g(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}function g(d){var a=N(d,"string");return l(a)=="symbol"?a:a+""}function N(d,a){if(l(d)!="object"||!d)return d;var p=d[Symbol.toPrimitive];if(p!==void 0){var F=p.call(d,a);if(l(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(d)}var B=Dr(),T=B.getRightOrNull,V=B.getRight,q=B.getLeft,W=B.getLeftOrNull,Y=B.chunkBy,w=B.isTagStart,z=B.isTagEnd,C=B.isContent,E=B.last,L=B.first,K=qr(),ue=K.XTTemplateError,we=K.throwExpandNotFound,De=K.getLoopPositionProducesInvalidXMLError;function J(d,a){if(d.length===0)return!1;var p=E(d).substr(1);return p.indexOf(a)===0}function Q(d){for(var a=[],p=0;p<d.length;p++){var F=d[p],H=F.position,me=F.value,ve=F.tag;ve&&(H==="end"?J(a,ve)?a.pop():a.push(me):H==="start"&&a.push(me))}return a}function D(d,a){for(var p=0;p<a.length;p++){var F=a[p];if(F.indexOf("<".concat(d))===0)return!0}return!1}function m(d,a,p){for(var F=Q(d.slice(a[0].offset,a[1].offset)),H=function(){var _e=p[ve],ke=_e.contains,Ie=_e.expand,j=_e.onlyTextInTag;if(D(ke,F)){if(j){var ee=W(d,ke,a[0].offset),U=T(d,ke,a[1].offset);if(ee===null||U===null)return 0;var fe=d.slice(ee,U),de=Y(fe,function(Pe){return w(ke,Pe)?"start":z(ke,Pe)?"end":null}),Le=L(de),Se=E(de),Je=Le.filter(C),Ze=Se.filter(C);if(Je.length!==1||Ze.length!==1)return 0}for(var Xe=S(F),er=0,M=0;M<Xe.length;M++){var re=Xe[M],se=re.tag,he=re.position;se===Ie&&(he==="start"&&er++,he==="end"&&er--)}return er!==0?{v:{error:De({tag:L(a).part.value,offset:[L(a).part.offset,E(a).part.offset]})}}:{v:{value:Ie}}}},me,ve=0;ve<p.length;ve++)if(me=H(),me!==0&&me)return me.v;return ce(F)?{}:{error:De({tag:L(a).part.value,offset:[L(a).part.offset,E(a).part.offset]})}}function S(d){for(var a=[],p=0;p<d.length;p++){var F=d[p],H=Z(F),me=/^\s*<\//.test(F)?"end":"start";a.push({tag:H,position:me})}return a}function Z(d){return d.replace(/^\s*<\/?([a-zA-Z:]+).*/,"$1")}function ce(d){if(d.length%2===1)return!1;for(var a=0,p=d.length/2;a<p;a++){var F=d[a],H=d[d.length-a-1],me=Z(F),ve=Z(H);if(me!==ve)return!1}return!0}function Ce(d,a,p,F){var H=d.expandTo||F.expandTo;if(H){var me,ve;try{ve=q(p,H,a),me=V(p,H,a)}catch(ke){var Ae=v({part:d,rootError:ke,postparsed:p,expandTo:H,index:a},F.error);if(F.onError){var _e=F.onError(Ae);if(_e==="ignore")return}we(Ae)}return[ve,me]}}function be(d,a,p,F){var H=I(d,2),me=H[0],ve=H[1],Ae=p.indexOf(a),_e=p.slice(me,Ae),ke=p.slice(Ae+1,ve+1),Ie=F.getInner({postparse:F.postparse,index:Ae,part:a,leftParts:_e,rightParts:ke,left:me,right:ve,postparsed:p});return Ie.length||(Ie.expanded=[_e,ke],Ie=[Ie]),{left:me,right:ve,inner:Ie}}function ye(d,a){var p=[];d.errors&&(p=d.errors,d=d.postparsed);for(var F=[],H=0,me=d.length;H<me;H++){var ve=d[H];if(ve.type==="placeholder"&&ve.module===a.moduleName&&!ve.subparsed&&!ve.expanded)try{var Ae=Ce(ve,H,d,a);if(!Ae)continue;var _e=I(Ae,2),ke=_e[0],Ie=_e[1];F.push({left:ke,right:Ie,part:ve,i:H,leftPart:d[ke],rightPart:d[Ie]})}catch(Ze){p.push(Ze)}}F.sort(function(Ze,Xe){return Ze.left===Xe.left?Xe.part.lIndex<Ze.part.lIndex?1:-1:Xe.left<Ze.left?1:-1});for(var j=-1,ee=0,U=0,fe=F.length;U<fe;U++){var de,Le=F[U];if(j=Math.max(j,U>0?F[U-1].right:0),!(Le.left<j)){var Se=void 0;try{Se=be([Le.left+ee,Le.right+ee],Le.part,d,a)}catch(Ze){if(a.onError){var Je=a.onError(v({part:Le.part,rootError:Ze,postparsed:d,expandOne:be},a.errors));if(Je==="ignore")continue}if(Ze instanceof ue)p.push(Ze);else throw Ze}Se&&(ee+=Se.inner.length-(Se.right+1-Se.left),(de=d).splice.apply(de,[Se.left,Se.right+1-Se.left].concat(u(Se.inner))))}}return{postparsed:d,errors:p}}return En={expandToOne:ye,getExpandToDefault:m},En}var wn,hi;function Yn(){if(hi)return wn;hi=1;var l="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml",u="application/vnd.ms-word.document.macroEnabled.main+xml",h="application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml",b="application/vnd.ms-word.template.macroEnabledTemplate.main+xml",y="application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",I="application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml",P="application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml",k="application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",O="application/vnd.openxmlformats-officedocument.presentationml.slide+xml",c="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml",s="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml",o="application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",v="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",f="application/vnd.ms-excel.sheet.macroEnabled.main+xml",g="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",N=[l,u,h,b],B={main:N,docx:[y].concat(N,[k,I,P]),pptx:[O,c,s,o],xlsx:[v,f,g]};return wn=B,wn}var xn,di;function Yi(){if(di)return xn;di=1;var l="application/vnd.openxmlformats-package.core-properties+xml",u="application/vnd.openxmlformats-officedocument.extended-properties+xml",h="application/vnd.openxmlformats-officedocument.custom-properties+xml",b="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml",y="application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml",I="application/vnd.ms-office.drawingml.diagramDrawing+xml";return xn={settingsContentType:b,coreContentType:l,appContentType:u,customContentType:h,diagramDataContentType:y,diagramDrawingContentType:I},xn}var Dn,vi;function zo(){if(vi)return Dn;vi=1;function l(q){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l(q)}function u(q,W){if(!(q instanceof W))throw new TypeError("Cannot call a class as a function")}function h(q,W){for(var Y=0;Y<W.length;Y++){var w=W[Y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(q,y(w.key),w)}}function b(q,W,Y){return W&&h(q.prototype,W),Object.defineProperty(q,"prototype",{writable:!1}),q}function y(q){var W=I(q,"string");return l(W)=="symbol"?W:W+""}function I(q,W){if(l(q)!="object"||!q)return q;var Y=q[Symbol.toPrimitive];if(Y!==void 0){var w=Y.call(q,W);if(l(w)!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}var P=Dr(),k=P.pushArray,O=lt(),c=Yn(),s=Yi(),o=s.settingsContentType,v=s.coreContentType,f=s.appContentType,g=s.customContentType,N=s.diagramDataContentType,B=s.diagramDrawingContentType,T=[o,v,f,g,N,B],V=(function(){function q(){u(this,q),this.name="Common"}return b(q,[{key:"getFileType",value:function(Y){var w=Y.doc,z=w.invertedContentTypes;if(z){for(var C=0;C<T.length;C++){var E=T[C];z[E]&&k(w.targets,z[E])}for(var L=["docx","pptx","xlsx"],K,ue=0;ue<L.length;ue++)for(var we=L[ue],De=c[we],J=0;J<De.length;J++){var Q=De[J];if(z[Q])for(var D=0,m=z[Q];D<m.length;D++){var S=m[D];w.relsTypes[S]&&["http://purl.oclc.org/ooxml/officeDocument/relationships/officeDocument","http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"].indexOf(w.relsTypes[S])===-1||(K=we,(c.main.indexOf(Q)!==-1||Q===c.pptx[0])&&(w.textTarget||(w.textTarget=S)),K!=="xlsx"&&w.targets.push(S))}}return K}}}])})();return Dn=function(){return O(new V)},Dn}var An,gi;function jo(){if(gi)return An;gi=1;function l(B){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},l(B)}function u(B,T){if(!(B instanceof T))throw new TypeError("Cannot call a class as a function")}function h(B,T){for(var V=0;V<T.length;V++){var q=T[V];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(B,y(q.key),q)}}function b(B,T,V){return T&&h(B.prototype,T),Object.defineProperty(B,"prototype",{writable:!1}),B}function y(B){var T=I(B,"string");return l(T)=="symbol"?T:T+""}function I(B,T){if(l(B)!="object"||!B)return B;var V=B[Symbol.toPrimitive];if(V!==void 0){var q=V.call(B,T);if(l(q)!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}var P=qr(),k=P.getScopeParserExecutionError,O=Gn(),c=O.last,s=Dr(),o=s.concatArrays;function v(B,T){for(var V=B.length>>>0,q,W=0;W<V;W++)if(q=B[W],T.call(this,q,W,B))return q}function f(B,T,V){var q=this,W=this.scopeList[V],Y=this.scopeList[this.scopeList.length-1];if(this.root.finishedResolving){for(var w=this.resolved,z=function(){var we=q.scopeLindex[C];w=v(w,function(De){return De.lIndex===we}),w=w.value[q.scopePathItem[C]]},C=this.resolveOffset,E=this.scopePath.length;C<E;C++)z();return v(w,function(ue){return T.part.lIndex===ue.lIndex}).value}var L,K;!this.cachedParsers||!T.part?K=this.parser(B,{tag:T.part,scopePath:this.scopePath}):this.cachedParsers[T.part.lIndex]?K=this.cachedParsers[T.part.lIndex]:K=this.cachedParsers[T.part.lIndex]=this.parser(B,{tag:T.part,scopePath:this.scopePath});try{L=K.get(W,this.getContext(T,V))}catch(ue){throw k({tag:B,scope:W,error:ue,offset:T.part.offset})}if(L==null&&V>0)return f.call(this,B,T,V-1);if(typeof L=="function")try{L=L(Y,this)}catch(ue){throw k({tag:B,scope:W,error:ue,offset:T.part.offset})}return L}function g(B,T,V){var q=this,W=this.scopeList[V],Y=this.scopeList[this.scopeList.length-1],w;return!this.cachedParsers||!T.part?w=this.parser(B,{tag:T.part,scopePath:this.scopePath}):this.cachedParsers[T.part.lIndex]?w=this.cachedParsers[T.part.lIndex]:w=this.cachedParsers[T.part.lIndex]=this.parser(B,{tag:T.part,scopePath:this.scopePath}),Promise.resolve().then(function(){return w.get(W,q.getContext(T,V))}).catch(function(z){throw k({tag:B,scope:W,error:z,offset:T.part.offset})}).then(function(z){return z==null&&V>0?g.call(q,B,T,V-1):z}).then(function(z){if(typeof z=="function")try{z=z(Y,q)}catch(C){throw k({tag:B,scope:W,error:C,offset:T.part.offset})}return z})}var N=(function(){function B(T){u(this,B),this.root=T.root||this,this.resolveOffset=T.resolveOffset||0,this.scopePath=T.scopePath,this.scopePathItem=T.scopePathItem,this.scopePathLength=T.scopePathLength,this.scopeList=T.scopeList,this.scopeType="",this.scopeTypes=T.scopeTypes,this.scopeLindex=T.scopeLindex,this.parser=T.parser,this.resolved=T.resolved,this.cachedParsers=T.cachedParsers}return b(B,[{key:"loopOver",value:function(V,q,W,Y){return this.loopOverValue(this.getValue(V,Y),q,W)}},{key:"functorIfInverted",value:function(V,q,W,Y,w){return V&&q(W,Y,w),V}},{key:"isValueFalsy",value:function(V,q){return V==null||!V||q==="[object Array]"&&V.length===0}},{key:"loopOverValue",value:function(V,q,W){this.root.finishedResolving&&(W=!1);var Y=Object.prototype.toString.call(V);if(this.isValueFalsy(V,Y))return this.scopeType=!1,this.functorIfInverted(W,q,c(this.scopeList),0,1);if(Y==="[object Array]"){this.scopeType="array";for(var w=0;w<V.length;w++)this.functorIfInverted(!W,q,V[w],w,V.length);return!0}return Y==="[object Object]"?(this.scopeType="object",this.functorIfInverted(!W,q,V,0,1)):(this.scopeType=!0,this.functorIfInverted(!W,q,c(this.scopeList),0,1))}},{key:"getValue",value:function(V,q){var W=f.call(this,V,q,this.scopeList.length-1);return W}},{key:"getValueAsync",value:function(V,q){return g.call(this,V,q,this.scopeList.length-1)}},{key:"getContext",value:function(V,q){return{num:q,meta:V,scopeList:this.scopeList,resolved:this.resolved,scopePath:this.scopePath,scopeTypes:this.scopeTypes,scopePathItem:this.scopePathItem,scopePathLength:this.scopePathLength}}},{key:"createSubScopeManager",value:function(V,q,W,Y,w){return new B({root:this.root,resolveOffset:this.resolveOffset,resolved:this.resolved,parser:this.parser,cachedParsers:this.cachedParsers,scopeTypes:o([this.scopeTypes,[this.scopeType]]),scopeList:o([this.scopeList,[V]]),scopePath:o([this.scopePath,[q]]),scopePathItem:o([this.scopePathItem,[W]]),scopePathLength:o([this.scopePathLength,[w]]),scopeLindex:o([this.scopeLindex,[Y.lIndex]])})}}])})();return An=function(B){return B.scopePath=[],B.scopePathItem=[],B.scopePathLength=[],B.scopeTypes=[],B.scopeLindex=[],B.scopeList=[B.tags],new N(B)},An}var Tn,mi;function Ki(){if(mi)return Tn;mi=1;function l(d){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},l(d)}function u(d,a){return P(d)||I(d,a)||b(d,a)||h()}function h(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(d,a){if(d){if(typeof d=="string")return y(d,a);var p={}.toString.call(d).slice(8,-1);return p==="Object"&&d.constructor&&(p=d.constructor.name),p==="Map"||p==="Set"?Array.from(d):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?y(d,a):void 0}}function y(d,a){(a==null||a>d.length)&&(a=d.length);for(var p=0,F=Array(a);p<a;p++)F[p]=d[p];return F}function I(d,a){var p=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(p!=null){var F,H,me,ve,Ae=[],_e=!0,ke=!1;try{if(me=(p=p.call(d)).next,a!==0)for(;!(_e=(F=me.call(p)).done)&&(Ae.push(F.value),Ae.length!==a);_e=!0);}catch(Ie){ke=!0,H=Ie}finally{try{if(!_e&&p.return!=null&&(ve=p.return(),Object(ve)!==ve))return}finally{if(ke)throw H}}return Ae}}function P(d){if(Array.isArray(d))return d}function k(d,a){var p=Object.keys(d);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(d);a&&(F=F.filter(function(H){return Object.getOwnPropertyDescriptor(d,H).enumerable})),p.push.apply(p,F)}return p}function O(d){for(var a=1;a<arguments.length;a++){var p=arguments[a]!=null?arguments[a]:{};a%2?k(Object(p),!0).forEach(function(F){c(d,F,p[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):k(Object(p)).forEach(function(F){Object.defineProperty(d,F,Object.getOwnPropertyDescriptor(p,F))})}return d}function c(d,a,p){return(a=s(a))in d?Object.defineProperty(d,a,{value:p,enumerable:!0,configurable:!0,writable:!0}):d[a]=p,d}function s(d){var a=o(d,"string");return l(a)=="symbol"?a:a+""}function o(d,a){if(l(d)!="object"||!d)return d;var p=d[Symbol.toPrimitive];if(p!==void 0){var F=p.call(d,a);if(l(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(d)}var v=qr(),f=v.getUnclosedTagException,g=v.getUnopenedTagException,N=v.getDuplicateOpenTagException,B=v.getDuplicateCloseTagException,T=v.throwMalformedXml,V=v.throwXmlInvalid,q=v.XTTemplateError,W=Dr(),Y=W.isTextStart,w=W.isTextEnd,z=W.wordToUtf8,C=W.pushArray,E=0,L=1,K=2,ue=3;function we(d,a){return d[0]<=a.offset&&a.offset<d[1]}function De(d,a){return Y(d)?(a&&T(),!0):w(d)?(a||T(),!1):a}function J(d){var a="",p=1,F=d.indexOf(" ");return d[d.length-2]==="/"?(a="selfclosing",F===-1&&(F=d.length-2)):d[1]==="/"?(p=2,a="end",F===-1&&(F=d.length-1)):(a="start",F===-1&&(F=d.length-1)),{tag:d.slice(p,F),position:a}}function Q(d,a,p){for(var F=0,H=d.length,me={},ve=0;ve<a.length;ve++){var Ae=a[ve];me[Ae]=!0}for(var _e=0;_e<p.length;_e++){var ke=p[_e];me[ke]=!1}for(var Ie=[];F<H&&(F=d.indexOf("<",F),F!==-1);){var j=F,ee=d.indexOf("<",F+1);F=d.indexOf(">",F),(F===-1||ee!==-1&&F>ee)&&V(d,j);var U=d.slice(j,F+1),fe=J(U),de=fe.tag,Le=fe.position,Se=me[de];Se!=null&&Ie.push({type:"tag",position:Le,text:Se,offset:j,value:U,tag:de})}return Ie}function D(d,a,p){var F=[],H=!1,me={offset:0},ve,Ae=d.reduce(function(ke,Ie){var j=Ie.position,ee=Ie.offset,U=me.offset,fe=me.length;if(ve=a.substr(U,ee-U),H&&j==="start"){if(U+fe===ee&&(ve=a.substr(U,ee-U+fe+4),!p.allowUnclosedTag))return F.push(N({xtag:ve,offset:U})),me=Ie,ke.push(O(O({},Ie),{},{error:!0})),ke;p.allowUnclosedTag||F.push(f({xtag:z(ve),offset:U})),ke.pop()}return!H&&j==="end"?p.allowUnopenedTag?ke:U+fe===ee?(ve=a.substr(U-4,ee-U+fe+4),F.push(B({xtag:ve,offset:U})),me=Ie,ke.push(O(O({},Ie),{},{error:!0})),ke):(F.push(g({xtag:ve,offset:ee})),me=Ie,ke.push(O(O({},Ie),{},{error:!0})),ke):(H=j==="start",me=Ie,ke.push(Ie),ke)},[]);if(H){var _e=me.offset;ve=a.substr(_e,a.length-_e),p.allowUnclosedTag||F.push(f({xtag:z(ve),offset:_e})),Ae.pop()}return{delimiterWithErrors:Ae,errors:F}}function m(d,a){return d===-1&&a===-1?E:d===a?L:d===-1||a===-1?a<d?K:ue:d<a?K:ue}function S(d){var a=d.split(" ");if(a.length!==2){var p=new q("New Delimiters cannot be parsed");throw p.properties={id:"change_delimiters_invalid",explanation:"Cannot parser delimiters"},p}var F=u(a,2),H=F[0],me=F[1];if(H.length===0||me.length===0){var ve=new q("New Delimiters cannot be parsed");throw ve.properties={id:"change_delimiters_invalid",explanation:"Cannot parser delimiters"},ve}return[H,me]}function Z(d,a,p){var F=[],H=a.start,me=a.end,ve=-1,Ae=!1;if(H==null&&me==null)return[];for(;;){var _e=d.indexOf(H,ve+1),ke=d.indexOf(me,ve+1),Ie=null,j=void 0,ee=m(_e,ke);switch(ee===L&&(ee=Ae?ue:K),ee){case E:return F;case ue:Ae=!1,ve=ke,Ie="end",j=me.length;break;case K:Ae=!0,ve=_e,Ie="start",j=H.length;break}if(p.changeDelimiterPrefix&&ee===K&&d[ve+H.length]===p.changeDelimiterPrefix){F.push({offset:_e,position:"start",length:H.length,changedelimiter:!0});var U=d.indexOf(p.changeDelimiterPrefix,ve+H.length+1),fe=d.indexOf(me,U+1);F.push({offset:fe,position:"end",length:me.length,changedelimiter:!0});var de=d.substr(ve+H.length+1,U-ve-H.length-1),Le=S(de),Se=u(Le,2);H=Se[0],me=Se[1],ve=fe;continue}F.push({offset:ve,position:Ie,length:j})}}function ce(d,a,p){for(var F="",H=0;H<d.length;H++){var me=d[H];F+=me.value}for(var ve=Z(F,a,p),Ae=0,_e=[],ke=0;ke<d.length;ke++){var Ie=d[ke];Ae+=Ie.value.length,_e.push({offset:Ae-Ie.value.length,lIndex:Ie.lIndex})}for(var j=D(ve,F,p),ee=j.delimiterWithErrors,U=j.errors,fe=0,de=0,Le=[],Se=0;Se<_e.length;Se++){for(var Je=_e[Se],Ze=d[Se],Xe=Je.offset,er=[Xe,Xe+Ze.value.length],M=Ze.value,re=[];de<ee.length&&we(er,ee[de]);)re.push(ee[de]),de++;var se=[],he=0;fe>0&&(he=fe,fe=0);for(var Pe=0;Pe<re.length;Pe++){var Oe=re[Pe],ie=M.substr(he,Oe.offset-Xe-he);if(Oe.changedelimiter){Oe.position==="start"?ie.length>0&&se.push({type:"content",value:ie}):he=Oe.offset-Xe+Oe.length;continue}ie.length>0&&(se.push({type:"content",value:ie}),he+=ie.length);var oe={type:"delimiter",position:Oe.position,offset:he+Xe};se.push(oe),he=Oe.offset-Xe+Oe.length}fe=he-M.length;var X=M.substr(he);X.length>0&&se.push({type:"content",value:X}),Le.push(se)}return{parsed:Le,errors:U}}function Ce(d){return d.type==="content"&&d.position==="insidetag"}function be(d){return d.filter(Ce)}function ye(d,a){for(var p=!1,F=0;F<d.length;F++){var H=d[F];p=De(H,p),H.type==="content"&&(H.position=p?"insidetag":"outsidetag"),a!=="text"&&Ce(H)&&(H.value=H.value.replace(/>/g,"&gt;"))}}return Tn={parseDelimiters:ce,parse:function(a,p,F,H){ye(a,H);for(var me=ce(be(a),p,F),ve=me.parsed,Ae=me.errors,_e=[],ke=0,Ie=0,j=0;j<a.length;j++){var ee=a[j];if(Ce(ee)){for(var U=0,fe=ve[ke];U<fe.length;U++){var de=fe[U];de.type==="content"&&(de.position="insidetag"),de.lIndex=Ie++}C(_e,ve[ke]),ke++}else ee.lIndex=Ie++,_e.push(ee)}return{errors:Ae,lexed:_e}},xmlparse:function(a,p){for(var F=Q(a,p.text,p.other),H=0,me=[],ve=0;ve<F.length;ve++){var Ae=F[ve];a.length>H&&Ae.offset-H>0&&me.push({type:"content",value:a.substr(H,Ae.offset-H)}),H=Ae.offset+Ae.value.length,delete Ae.offset,me.push(Ae)}return a.length>H&&me.push({type:"content",value:a.substr(H)}),me}},Tn}var Cn,yi;function Xo(){if(yi)return Cn;yi=1;function l(O){return y(O)||b(O)||h(O)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(O,c){if(O){if(typeof O=="string")return I(O,c);var s={}.toString.call(O).slice(8,-1);return s==="Object"&&O.constructor&&(s=O.constructor.name),s==="Map"||s==="Set"?Array.from(O):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?I(O,c):void 0}}function b(O){if(typeof Symbol<"u"&&O[Symbol.iterator]!=null||O["@@iterator"]!=null)return Array.from(O)}function y(O){if(Array.isArray(O))return I(O)}function I(O,c){(c==null||c>O.length)&&(c=O.length);for(var s=0,o=Array(c);s<c;s++)o[s]=O[s];return o}function P(O){return O.type==="placeholder"}function k(O){var c={},s=[{items:O.filter(P),parents:[],path:[]}];function o(Q,D,m){m.length&&s.push({items:m,parents:[].concat(l(D.parents),[Q]),path:Q.dataBound!==!1&&!Q.attrParsed&&Q.value&&!Q.attrParsed?[].concat(l(D.path),[Q.value]):l(D.path)})}function v(Q,D){for(var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:D.length,S=Q,Z=0;Z<m;Z++)S=S[D[Z]];return S}function f(Q,D){for(var m=D.length,S=0;S<D.length;S++){var Z=D[S],ce=typeof Z.lIndex=="number"?Z.lIndex:parseInt(Z.lIndex.split("-")[0],10);ce>Q.lIndex&&m--}return m}for(;s.length>0;)for(var g=s.pop(),N=v(c,g.path),B=0,T=g.items;B<T.length;B++){var V,q,W=T[B];if(W.attrParsed){for(var Y in W.attrParsed)o(W,g,W.attrParsed[Y].filter(P));continue}if(W.subparsed){if(W.dataBound!==!1){var w,z;(w=N)[z=W.value]||(w[z]={})}o(W,g,W.subparsed.filter(P));continue}if(W.cellParsed){for(var C=0,E=W.cellPostParsed;C<E.length;C++){var L=E[C];if(L.type==="placeholder"){if(L.module==="pro-xml-templating/xls-module-loop")continue;if(L.subparsed){var K,ue;(K=N)[ue=L.value]||(K[ue]={}),o(L,g,L.subparsed.filter(P))}else{var we,De,J=f(W,g.parents);N=v(c,g.path,J),(we=N)[De=L.value]||(we[De]={})}}}continue}W.dataBound!==!1&&((V=N)[q=W.value]||(V[q]={}))}return c}return Cn={getTags:k,isPlaceholder:P},Cn}var _n,bi;function Vo(){if(bi)return _n;bi=1;var l=Dr(),u=l.pushArray;function h(y,I){return I instanceof Error?u(Object.getOwnPropertyNames(I),["stack"]).reduce(function(P,k){return P[k]=I[k],k==="stack"&&(P[k]=I[k].toString()),P},{}):I}function b(y,I){if(console.log(JSON.stringify({error:y},h,I==="json"?2:null)),y.properties&&y.properties.errors instanceof Array){var P=y.properties.errors.map(function(k){return k.properties.explanation}).join(`
17
+ `);console.log("errorMessages",P)}}return _n=b,_n}var Sn,Ei;function Qi(){if(Ei)return Sn;Ei=1;var l=Dr(),u=l.pregMatchAll;return Sn=function(b,y){var I={content:b},P=y.join("|"),k=new RegExp("(?:(<(?:".concat(P,")[^>]*>)([^<>]*)</(?:").concat(P,")>)|(<(?:").concat(P,")[^>]*/>)"),"g");return I.matches=u(k,I.content),I},Sn}var On,wi;function Ho(){if(wi)return On;wi=1;function l(P){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},l(P)}var u=new RegExp(" ","g");function h(P){return P.replace(u," ")}function b(P,k){var O=l(P);if(O==="string")return h(k.substr(0,P.length))===P;if(P instanceof RegExp)return P.test(h(k));if(O==="function")return!!P(k)}function y(P,k){var O=l(P);if(O==="string")return h(k).substr(P.length);if(P instanceof RegExp)return h(k).match(P)[1];if(O==="function")return P(k)}function I(P,k){var O=l(P);if(O==="string")return[k,h(k).substr(P.length)];if(P instanceof RegExp)return h(k).match(P);if(O==="function")return[k,P(k)]}return On={match:b,getValue:y,getValues:I},On}var Nn,xi;function Zo(){if(xi)return Nn;xi=1;function l(E){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},l(E)}function u(E,L){var K=Object.keys(E);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(E);L&&(ue=ue.filter(function(we){return Object.getOwnPropertyDescriptor(E,we).enumerable})),K.push.apply(K,ue)}return K}function h(E){for(var L=1;L<arguments.length;L++){var K=arguments[L]!=null?arguments[L]:{};L%2?u(Object(K),!0).forEach(function(ue){b(E,ue,K[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(K)):u(Object(K)).forEach(function(ue){Object.defineProperty(E,ue,Object.getOwnPropertyDescriptor(K,ue))})}return E}function b(E,L,K){return(L=y(L))in E?Object.defineProperty(E,L,{value:K,enumerable:!0,configurable:!0,writable:!0}):E[L]=K,E}function y(E){var L=I(E,"string");return l(L)=="symbol"?L:L+""}function I(E,L){if(l(E)!="object"||!E)return E;var K=E[Symbol.toPrimitive];if(K!==void 0){var ue=K.call(E,L);if(l(ue)!="object")return ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return(L==="string"?String:Number)(E)}function P(E,L){return o(E)||s(E,L)||O(E,L)||k()}function k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(E,L){if(E){if(typeof E=="string")return c(E,L);var K={}.toString.call(E).slice(8,-1);return K==="Object"&&E.constructor&&(K=E.constructor.name),K==="Map"||K==="Set"?Array.from(E):K==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K)?c(E,L):void 0}}function c(E,L){(L==null||L>E.length)&&(L=E.length);for(var K=0,ue=Array(L);K<L;K++)ue[K]=E[K];return ue}function s(E,L){var K=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(K!=null){var ue,we,De,J,Q=[],D=!0,m=!1;try{if(De=(K=K.call(E)).next,L!==0)for(;!(D=(ue=De.call(K)).done)&&(Q.push(ue.value),Q.length!==L);D=!0);}catch(S){m=!0,we=S}finally{try{if(!D&&K.return!=null&&(J=K.return(),Object(J)!==J))return}finally{if(m)throw we}}return Q}}function o(E){if(Array.isArray(E))return E}var v=Dr(),f=v.wordToUtf8,g=v.pushArray,N=v.isParagraphStart,B=v.isBreakTag,T=Ho(),V=T.match,q=T.getValue,W=T.getValues;function Y(E,L){for(var K=[],ue=0;ue<E.length;ue++){var we=E[ue];if(we.matchers){var De=we.matchers(L);if(!(De instanceof Array))throw new Error("module matcher returns a non array");g(K,De)}}return K}function w(E,L,K){for(var ue=[],we=0;we<E.length;we++){var De=E[we],J=P(De,2),Q=J[0],D=J[1],m=De[2]||{};if(K.match(Q,L)){var S=K.getValues(Q,L);if(typeof m=="function"&&(m=m(S)),!m.value){var Z=P(S,2);m.value=Z[1]}ue.push(h({type:"placeholder",prefix:Q,module:D,onMatch:m.onMatch,priority:m.priority},m))}}return ue}function z(E,L){var K=L.modules,ue=L.startOffset,we=L.lIndex,De;L.offset=ue,L.match=V,L.getValue=q,L.getValues=W;var J=Y(K,L),Q=w(J,E,L);if(Q.length>0){for(var D=null,m=0;m<Q.length;m++){var S=Q[m];S.priority||(S.priority=-S.value.length),(!D||S.priority>D.priority)&&(D=S)}return D.offset=ue,delete D.priority,D.endLindex=we,D.lIndex=we,D.raw=E,D.onMatch&&D.onMatch(D),delete D.onMatch,delete D.prefix,D}for(var Z=0;Z<K.length;Z++){var ce=K[Z];if(De=ce.parse(E,L),De)return De.offset=ue,De.endLindex=we,De.lIndex=we,De.raw=E,De}return{type:"placeholder",value:E,offset:ue,endLindex:we,lIndex:we}}var C={preparse:function(L,K,ue){function we(De,J){for(var Q=0;Q<K.length;Q++){var D=K[Q];De=D.preparse(De,J)||De}return De}return we(L,ue)},parse:function(L,K,ue){var we=!1,De="",J,Q=[],D=ue.fileTypeConfig.droppedTagsInsidePlaceholder||[];return L.reduce(function(m,S){return S.type==="delimiter"?(we=S.position==="start",S.position==="end"&&(ue.parse=function(Z){return z(Z,h(h(h({},ue),S),{},{startOffset:J,modules:K}))},m.push(ue.parse(f(De))),g(m,Q),Q=[]),S.position==="start"&&(Q=[],J=S.offset),De="",m):we?S.type!=="content"||S.position!=="insidetag"?(ue.syntax.preserveNewlinesInTags&&(B(S)||N(S))&&(De+=`
19
+ `),D.indexOf(S.tag)!==-1||Q.push(S),m):(De+=S.value,m):(m.push(S),m)},[])},postparse:function(L,K,ue){function we(Q,D,m){for(var S=[],Z=0;Z<K.length;Z++){var ce=K[Z];S.push(ce.getTraits(Q,D,m))}return S}var De=[];function J(Q,D){for(var m=Q,S=0;S<K.length;S++){var Z=K[S],ce=Z.postparse(m,h(h({},D),{},{postparse:function(be,ye){return J(be,h(h({},D),ye))},getTraits:we}));if(ce!=null){if(ce.errors){g(De,ce.errors),m=ce.postparsed;continue}m=ce}}return m}return{postparsed:J(L,ue),errors:De}}};return Nn=C,Nn}var In,Di;function Ji(){if(Di)return In;Di=1;function l(u,h){if(u.lIndex==null)return null;var b=h.scopeManager.scopePathItem;u.parentPart&&(b=b.slice(0,b.length-1));var y=h.filePath+"@"+u.lIndex.toString()+"-"+b.join("-");return y}return In=l,In}var Rn,Ai;function Go(){if(Ai)return Rn;Ai=1;var l=qr(),u=l.throwUnimplementedTagType,h=l.XTScopeParserError,b=Dr(),y=b.pushArray,I=Ji();function P(O,c){for(var s=0,o=c.modules;s<o.length;s++){var v=o[s],f=v.render(O,c);if(f)return f}return!1}function k(O){var c=O.baseNullGetter,s=O.compiled,o=O.scopeManager;O.nullGetter=function(Y,w){return c(Y,w||o)};for(var v=[],f=[],g=0,N=s.length;g<N;g++){var B=s[g];O.index=g,O.resolvedId=I(B,O);var T=void 0;try{T=P(B,O)}catch(Y){if(Y instanceof h){v.push(Y),f.push(B);continue}throw Y}if(T){T.errors&&y(v,T.errors),f.push(T);continue}if(B.type==="content"||B.type==="tag"){f.push(B);continue}u(B,g)}for(var V=[],q=0;q<f.length;q++){var W=f[q].value;W instanceof Array?y(V,W):W&&V.push(W)}return{errors:v,parts:V}}return Rn=k,Rn}var Bn,Ti;function Wo(){if(Ti)return Bn;Ti=1;function l(b){for(var y=0,I=-1,P=0;P<b.length;P++){var k=b[P];if(k instanceof Uint8Array){I!==-1&&(y+=3,I=-1),y+=k.length;continue}for(var O=0;O<k.length;O++){var c=k.charCodeAt(O);if(I!==-1){if((c&64512)===56320){y+=4,I=-1;continue}y+=3,I=-1}if((c&64512)===55296)if(O+1<k.length){var s=k.charCodeAt(O+1);if((s&64512)===56320){y+=4,O++;continue}}else{I=c;continue}y+=c<128?1:c<2048?2:3}}return y+(I===-1?0:3)}function u(b,y){var I=0,P=-1;function k(f){f<128?y[I++]=f:f<2048?(y[I++]=192|f>>>6,y[I++]=128|f&63):f<65536?(y[I++]=224|f>>>12,y[I++]=128|f>>>6&63,y[I++]=128|f&63):(y[I++]=240|f>>>18,y[I++]=128|f>>>12&63,y[I++]=128|f>>>6&63,y[I++]=128|f&63)}for(var O=0;O<b.length;O++){var c=b[O];if(c instanceof Uint8Array){P!==-1&&(k(P),P=-1),y.set(c,I),I+=c.length;continue}for(var s=0;s<c.length;s++){var o=c.charCodeAt(s);if(P!==-1){if((o&64512)===56320){k(65536+(P-55296<<10)+(o-56320)),P=-1;continue}k(P),P=-1}if((o&64512)===55296)if(s+1<c.length){var v=c.charCodeAt(s+1);if((v&64512)===56320)o=65536+(o-55296<<10)+(v-56320),s++;else{k(o);continue}}else{P=o;continue}k(o)}}P!==-1&&k(P)}function h(b,y){for(var I=0,P=b.length;I<P;I++)typeof b[I]=="number"&&(b[I]=b[I].toString());for(var k=0,O=y.modules;k<O.length;k++){var c=O[k];b=c.postrender(b,y)}var s=y.joinUncorrupt(b,y),o=new Uint8Array(l(s));u(s,o);for(var v=0;v<s.length;v++)delete s[v];return o}return Bn=h,Bn}var Pn,Ci;function Yo(){if(Ci)return Pn;Ci=1;function l(g){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},l(g)}function u(g,N){var B=Object.keys(g);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(g);N&&(T=T.filter(function(V){return Object.getOwnPropertyDescriptor(g,V).enumerable})),B.push.apply(B,T)}return B}function h(g){for(var N=1;N<arguments.length;N++){var B=arguments[N]!=null?arguments[N]:{};N%2?u(Object(B),!0).forEach(function(T){b(g,T,B[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(B)):u(Object(B)).forEach(function(T){Object.defineProperty(g,T,Object.getOwnPropertyDescriptor(B,T))})}return g}function b(g,N,B){return(N=y(N))in g?Object.defineProperty(g,N,{value:B,enumerable:!0,configurable:!0,writable:!0}):g[N]=B,g}function y(g){var N=I(g,"string");return l(N)=="symbol"?N:N+""}function I(g,N){if(l(g)!="object"||!g)return g;var B=g[Symbol.toPrimitive];if(B!==void 0){var T=B.call(g,N);if(l(T)!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(g)}var P=Dr(),k=P.pushArray,O=Ji();function c(g,N){for(var B=0,T=N.modules;B<T.length;B++){var V=T[B],q=V.resolve(g,N);if(q)return q}return!1}function s(g,N,B,T){var V=c(g,h(h({},T),{},{resolvedId:O(g,T)}));if(V)return V.then(function(q){N.push({tag:g.value,lIndex:g.lIndex,value:q})}).catch(function(q){q instanceof Array?k(B,q):B.push(q)});if(g.type==="placeholder")return T.scopeManager.getValueAsync(g.value,{part:g}).then(function(q){return q??T.nullGetter(g)}).then(function(q){N.push({tag:g.value,lIndex:g.lIndex,value:q})}).catch(function(q){q instanceof Array?k(B,q):B.push(q)})}function o(g){var N=[],B=[],T=g.baseNullGetter,V=g.scopeManager;g.nullGetter=function(W,Y){return T(W,Y||V)},g.resolved=N;var q=v(g,B,N);return q?q.then(function(){return f(g,B,N)}):f(g,B,N)}function v(g,N,B){for(var T=null,V=function(){var w=W[q];if(["content","tag"].indexOf(w.type)!==-1)return 1;w.resolveFirst&&(T??(T=Promise.resolve(null)),T=T.then(function(){return s(w,B,N,g)}))},q=0,W=g.compiled;q<W.length;q++)V();return T}function f(g,N,B){for(var T=[],V=0,q=g.compiled;V<q.length;V++){var W=q[V];["content","tag"].indexOf(W.type)===-1&&(W.resolveFirst||T.push(s(W,B,N,g)))}return Promise.all(T).then(function(){return{errors:N,resolved:B}})}return Pn=o,Pn}var Fn,_i;function Ko(){if(_i)return Fn;_i=1;var l=Dr(),u=l.startsWith,h=l.endsWith,b=l.isStarting,y=l.isEnding,I=l.isWhiteSpace,P=Yn();function k(c){for(var s="",o=0,v=c.length;o<v;o++){var f=c[o];f instanceof Uint8Array||I(f)||u(f,"<w:bookmarkEnd")||(h(s,"</w:tbl>")&&!u(f,"<w:p")&&!u(f,"<w:tbl")&&!u(f,"<w:sectPr")&&!u(f,"</w:ftr>")&&!u(f,"</w:hdr>")&&(f="<w:p/>".concat(f)),s=f,c[o]=f)}return c}function O(c,s){var o=s.fileTypeConfig.tagShouldContain||[],v=-1;P.docx.indexOf(s.contentType)!==-1&&(c=k(c));for(var f=-1,g=0,N=o.length;g<N;g++)for(var B=o[g],T=B.tag,V=B.shouldContain,q=B.value,W=B.drop,Y=B.dropParent,w=null,z=0,C=c.length;z<C;z++){var E=c[z];if(!(E instanceof Uint8Array)){if(v===g)if(y(E,T)){if(v=-1,Y){for(var L=-1,K=f;K>0;K--)if(b(c[K],Y)){L=K;break}for(var ue=L;ue<=c.length;ue++){if(y(c[ue],Y)){c[ue]="";break}c[ue]=""}}else{for(var we=f;we<=z;we++)c[we]="";W||(c[z]=w.join("")+q+E)}w=null}else{w&&w.push(E);for(var De=0,J=V.length;De<J;De++)if(b(E,V[De])){v=-1,w=null;break}}v===-1&&b(E,T)&&E.indexOf("<",1)===-1&&(E[E.length-2]==="/"?c[z]="":(f=z,v=g,w=W||Y?null:[E]))}}return c}return Fn=O,Fn}var kn,Si;function Qo(){if(Si)return kn;Si=1;function l(Y){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},l(Y)}function u(Y,w){if(!(Y instanceof w))throw new TypeError("Cannot call a class as a function")}function h(Y,w){for(var z=0;z<w.length;z++){var C=w[z];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(Y,y(C.key),C)}}function b(Y,w,z){return w&&h(Y.prototype,w),Object.defineProperty(Y,"prototype",{writable:!1}),Y}function y(Y){var w=I(Y,"string");return l(w)=="symbol"?w:w+""}function I(Y,w){if(l(Y)!="object"||!Y)return Y;var z=Y[Symbol.toPrimitive];if(z!==void 0){var C=z.call(Y,w);if(l(C)!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Y)}var P=Dr(),k=P.pushArray,O=P.wordToUtf8,c=P.convertSpaces,s=Qi(),o=Ki(),v=Zo(),f=Go(),g=Wo(),N=Yo(),B=Ko(),T=Function.prototype.bind,V=Function.prototype.call,q=V.bind(V,T);function W(Y,w){for(var z=s(Y,w),C=[],E=0,L=z.matches;E<L.length;E++){var K=L[E];C.push(K.array[2])}return O(c(C.join("")))}return kn=(function(){function Y(w,z){u(this,Y),this.cachedParsers={},this.content=w;for(var C in z)this[C]=z[C];this.setModules({inspect:{filePath:z.filePath}})}return b(Y,[{key:"resolveTags",value:function(z){var C=this;this.tags=z;var E=this.getOptions(),L=this.filePath;E.scopeManager=this.scopeManager,E.resolve=N;for(var K=[],ue=[],we=0,De=this.modules;we<De.length;we++){var J=De[we];ue.push(Promise.resolve(J.preResolve(E)).catch(function(Q){K.push(Q)}))}return Promise.all(ue).then(function(){if(K.length!==0)throw K;return N(E).then(function(Q){for(var D=Q.resolved,m=Q.errors,S=0;S<m.length;S++){var Z,ce=m[S];ce instanceof Error||(ce=new Error(ce)),(Z=ce).properties||(Z.properties={}),ce.properties.file=L,m[S]=ce}if(m.length!==0)throw m;return Promise.all(D).then(function(Ce){return E.scopeManager.root.finishedResolving=!0,E.scopeManager.resolved=Ce,C.setModules({inspect:{resolved:Ce,filePath:L}}),Ce})}).catch(function(Q){throw C.errorChecker(Q),Q})})}},{key:"getFullText",value:function(){return W(this.content,this.fileTypeConfig.tagsXmlTextArray)}},{key:"setModules",value:function(z){for(var C=0,E=this.modules;C<E.length;C++){var L=E[C];L.set(z)}}},{key:"preparse",value:function(){this.allErrors=[],this.xmllexed=o.xmlparse(this.content,{text:this.fileTypeConfig.tagsXmlTextArray,other:this.fileTypeConfig.tagsXmlLexedArray}),this.setModules({inspect:{filePath:this.filePath,xmllexed:this.xmllexed}});var z=o.parse(this.xmllexed,this.delimiters,this.syntax,this.fileType),C=z.lexed,E=z.errors;k(this.allErrors,E),this.lexed=C,this.setModules({inspect:{filePath:this.filePath,lexed:this.lexed}});var L=this.getOptions();this.lexed=v.preparse(this.lexed,this.modules,L)}},{key:"parse",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=z.noPostParse;this.setModules({inspect:{filePath:this.filePath}});var E=this.getOptions();return this.parsed=v.parse(this.lexed,this.modules,E),this.setModules({inspect:{filePath:this.filePath,parsed:this.parsed}}),C?this:this.postparse()}},{key:"postparse",value:function(){var z=this.getOptions(),C=v.postparse(this.parsed,this.modules,z),E=C.postparsed,L=C.errors;return this.postparsed=E,this.setModules({inspect:{filePath:this.filePath,postparsed:this.postparsed}}),k(this.allErrors,L),this.errorChecker(this.allErrors),this}},{key:"errorChecker",value:function(z){for(var C=0,E=z;C<E.length;C++){var L=E[C];L.properties||(L.properties={}),L.properties.file=this.filePath}for(var K=0,ue=this.modules;K<ue.length;K++){var we=ue[K];z=we.errorsTransformer(z)}}},{key:"baseNullGetter",value:function(z,C){for(var E=null,L=0,K=this.modules;L<K.length;L++){var ue=K[L];E==null&&(E=ue.nullGetter(z,C,this))}return E??this.nullGetter(z,C)}},{key:"getOptions",value:function(){return{compiled:this.postparsed,cachedParsers:this.cachedParsers,tags:this.tags,modules:this.modules,parser:this.parser,contentType:this.contentType,relsType:this.relsType,baseNullGetter:q(this.baseNullGetter,this),filePath:this.filePath,syntax:this.syntax,fileTypeConfig:this.fileTypeConfig,fileType:this.fileType,linebreaks:this.linebreaks,stripInvalidXMLChars:this.stripInvalidXMLChars}}},{key:"render",value:function(z){this.filePath=z;var C=this.getOptions();C.resolved=this.scopeManager.resolved,C.scopeManager=this.scopeManager,C.render=f,C.joinUncorrupt=B;var E=f(C),L=E.errors,K=E.parts;return L.length>0?(this.allErrors=L,this.errorChecker(L),this):(this.content=g(K,C),this.setModules({inspect:{filePath:this.filePath,content:this.content}}),this)}}])})(),kn}var Ln,Oi;function Jo(){if(Oi)return Ln;Oi=1;function l(j){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ee){return typeof ee}:function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},l(j)}function u(j,ee){var U=Object.keys(j);if(Object.getOwnPropertySymbols){var fe=Object.getOwnPropertySymbols(j);ee&&(fe=fe.filter(function(de){return Object.getOwnPropertyDescriptor(j,de).enumerable})),U.push.apply(U,fe)}return U}function h(j){for(var ee=1;ee<arguments.length;ee++){var U=arguments[ee]!=null?arguments[ee]:{};ee%2?u(Object(U),!0).forEach(function(fe){b(j,fe,U[fe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(U)):u(Object(U)).forEach(function(fe){Object.defineProperty(j,fe,Object.getOwnPropertyDescriptor(U,fe))})}return j}function b(j,ee,U){return(ee=f(ee))in j?Object.defineProperty(j,ee,{value:U,enumerable:!0,configurable:!0,writable:!0}):j[ee]=U,j}function y(j,ee){return c(j)||O(j,ee)||P(j,ee)||I()}function I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P(j,ee){if(j){if(typeof j=="string")return k(j,ee);var U={}.toString.call(j).slice(8,-1);return U==="Object"&&j.constructor&&(U=j.constructor.name),U==="Map"||U==="Set"?Array.from(j):U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U)?k(j,ee):void 0}}function k(j,ee){(ee==null||ee>j.length)&&(ee=j.length);for(var U=0,fe=Array(ee);U<ee;U++)fe[U]=j[U];return fe}function O(j,ee){var U=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(U!=null){var fe,de,Le,Se,Je=[],Ze=!0,Xe=!1;try{if(Le=(U=U.call(j)).next,ee!==0)for(;!(Ze=(fe=Le.call(U)).done)&&(Je.push(fe.value),Je.length!==ee);Ze=!0);}catch(er){Xe=!0,de=er}finally{try{if(!Ze&&U.return!=null&&(Se=U.return(),Object(Se)!==Se))return}finally{if(Xe)throw de}}return Je}}function c(j){if(Array.isArray(j))return j}function s(j,ee){if(!(j instanceof ee))throw new TypeError("Cannot call a class as a function")}function o(j,ee){for(var U=0;U<ee.length;U++){var fe=ee[U];fe.enumerable=fe.enumerable||!1,fe.configurable=!0,"value"in fe&&(fe.writable=!0),Object.defineProperty(j,f(fe.key),fe)}}function v(j,ee,U){return ee&&o(j.prototype,ee),Object.defineProperty(j,"prototype",{writable:!1}),j}function f(j){var ee=g(j,"string");return l(ee)=="symbol"?ee:ee+""}function g(j,ee){if(l(j)!="object"||!j)return j;var U=j[Symbol.toPrimitive];if(U!==void 0){var fe=U.call(j,ee);if(l(fe)!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(j)}var N=Dr(),B=N.chunkBy,T=N.last,V=N.isParagraphStart,q=N.isModule,W=N.pushArray,Y=N.isParagraphEnd,w=N.isContent,z=N.startsWith,C=N.isTagEnd,E=N.isTagStart,L=N.getSingleAttribute,K=N.setSingleAttribute,ue=Yn(),we=lt(),De=Dr(),J=De.isWhiteSpace,Q="loop";function D(j){for(var ee=0;ee<j.length;ee++){var U=j[ee];if(w(U))return!0}return!1}function m(j){for(var ee=0;ee<j.length;ee++){var U=j[ee];if(U.type!=="content")return U}return null}function S(j){var ee=m(j.subparsed);return ee!=null&&ee.tag!=="w:t"}function Z(j){return j.hasPageBreak&&S(j)?'<w:p><w:r><w:br w:type="page"/></w:r></w:p>':""}function ce(j){return j.length&&V(j[0])&&Y(T(j))}function Ce(j){return D(j)?0:j.length}function be(j){var ee=j.parts.length-1;j.parts[ee]==="</w:p>"?j.parts.splice(ee,0,'<w:r><w:br w:type="page"/></w:r>'):j.parts.push('<w:p><w:r><w:br w:type="page"/></w:r></w:p>')}function ye(j){j.parts.unshift('<w:p><w:r><w:br w:type="page"/></w:r></w:p>')}function d(j){for(var ee=0;ee<j.length;ee++){var U=j[ee];if(E("w:type",U)&&U.value.indexOf("continuous")!==-1)return!0}return!1}function a(j){for(var ee=0;ee<j.length;ee++){var U=j[ee];if(E("w:type",U)&&U.value.indexOf('w:val="nextPage"')!==-1)return!0}return!1}function p(j,ee){for(var U="",fe=0;fe<ee.length;fe++){var de=ee[fe].value;U+=de}j.unshift("<w:p><w:pPr>".concat(U,"</w:pPr></w:p>"))}function F(j){for(var ee=!1,U=!1,fe=0;fe<j.length;fe++){var de=j[fe];!ee&&z(de,"<w:sectPr")&&(U=!0),U&&(z(de,"<w:type")&&(ee=!0),!ee&&z(de,"</w:sectPr")&&(j.splice(fe,0,'<w:type w:val="continuous"/>'),fe++))}return j}function H(j){for(var ee=0,U=0;U<j.length;U++)!z(j[U],"<w:headerReference")&&!z(j[U],"<w:footerReference")&&(j[ee]=j[U],ee++);return j.length=ee,j}function me(j){for(var ee=0;ee<j.length;ee++){var U=j[ee];if(U.tag==="w:br"&&U.value.indexOf('w:type="page"')!==-1)return!0}return!1}function ve(j){for(var ee=0;ee<j.length;ee++){var U=j[ee];if(U.tag==="w:drawing")return!0}return!1}function Ae(j){for(var ee=[],U=null,fe=0;fe<j.length;fe++){var de=j[fe];E("w:sectPr",de)&&(U=[],ee.push(U)),U!==null&&U.push(de),C("w:sectPr",de)&&(U=null)}return ee}function _e(j){for(var ee=!1,U=0,fe=0;fe<j.length;fe++){var de=j[fe];E("w:sectPr",de)&&(ee=!0),ee&&(de.tag==="w:headerReference"||de.tag==="w:footerReference")&&(U++,ee=!1),C("w:sectPr",de)&&(ee=!1)}return U}function ke(j){for(var ee=[],U=!1,fe=j.length-1;fe>=0;fe--){var de=j[fe];if(C("w:sectPr",de)&&(U=!0),E("w:sectPr",de)&&(ee.unshift(de.value),U=!1),U&&ee.unshift(de.value),V(de)){if(ee.length>0)return ee.join("");break}}return""}var Ie=(function(){function j(){s(this,j),this.name="LoopModule",this.inXfrm=!1,this.totalSectPr=0,this.prefix={start:"#",end:"/",dash:/^-([^\s]+)\s(.+)/,inverted:"^"}}return v(j,[{key:"optionsTransformer",value:function(U,fe){return this.docxtemplater=fe,U}},{key:"preparse",value:function(U,fe){var de=fe.contentType;ue.main.indexOf(de)!==-1&&(this.sects=Ae(U))}},{key:"matchers",value:function(){var U=Q;return[[this.prefix.start,U,{expandTo:"auto",location:"start",inverted:!1}],[this.prefix.inverted,U,{expandTo:"auto",location:"start",inverted:!0}],[this.prefix.end,U,{location:"end"}],[this.prefix.dash,U,function(fe){var de=y(fe,3),Le=de[1],Se=de[2];return{location:"start",inverted:!1,expandTo:Le,value:Se}}]]}},{key:"getTraits",value:function(U,fe){if(U==="expandPair"){for(var de=[],Le=0,Se=fe.length;Le<Se;Le++){var Je=fe[Le];q(Je,Q)&&Je.subparsed==null&&de.push({part:Je,offset:Le})}return de}}},{key:"postparse",value:function(U,fe){var de=fe.basePart;if(de&&this.docxtemplater.fileType==="docx"&&U.length>0){de.sectPrCount=_e(U),this.totalSectPr+=de.sectPrCount;for(var Le=this.sects,Se=0,Je=Le.length;Se<Je;Se++){var Ze=Le[Se];if(de.lIndex<Ze[0].lIndex){Se+1<Le.length&&d(Le[Se+1])&&(de.addContinuousType=!0);break}if(U[0].lIndex<Ze[0].lIndex&&Ze[0].lIndex<de.lIndex){a(Le[Se])&&(de.addNextPage={index:Se});break}}de.lastParagrapSectPr=ke(U)}if(!de||de.expandTo!=="auto"||de.module!==Q||!ce(U))return U;de.paragraphLoop=!0;var Xe=0,er=B(U,function(Pe){return V(Pe)&&(Xe++,Xe===1)?"start":Y(Pe)&&(Xe--,Xe===0)?"end":null}),M=er[0],re=T(er),se=Ce(M),he=Ce(re);return se>0&&er[1][0].type==="content"&&J(er[1][0].value)&&(se+=1),he>0&&T(er[er.length-2]).type==="content"&&J(T(er[er.length-2]).value)&&(he+=1),de.hasPageBreakBeginning=me(M),de.hasPageBreak=me(re),ve(M)&&(se=0),ve(re)&&(he=0),U.slice(se,U.length-he)}},{key:"resolve",value:function(U,fe){var de=this;if(!q(U,Q))return null;var Le=fe.scopeManager,Se=Le.getValueAsync(U.value,{part:U}),Je=[],Ze;de.resolveSerially&&(Ze=Promise.resolve(null));function Xe(M,re,se){var he=Le.createSubScopeManager(M,U.value,re,U,se);de.resolveSerially?(Ze=Ze.then(function(){return fe.resolve(h(h({},fe),{},{compiled:U.subparsed,tags:{},scopeManager:he}))}),Je.push(Ze)):Je.push(fe.resolve(h(h({},fe),{},{compiled:U.subparsed,tags:{},scopeManager:he})))}var er=[];return Se.then(function(M){return M??(M=fe.nullGetter(U)),M instanceof Promise?M.then(function(re){return re instanceof Array?Promise.all(re):re}):M instanceof Array?Promise.all(M):M}).then(function(M){return Le.loopOverValue(M,Xe,U.inverted),Promise.all(Je).then(function(re){for(var se=[],he=0;he<re.length;he++){var Pe=re[he],Oe=Pe.resolved,ie=Pe.errors;W(er,ie),se.push(Oe)}return se}).then(function(re){if(er.length>0)throw er;return re})})}},{key:"render",value:function(U,fe){var de=this;if(U.tag==="p:xfrm"&&(de.inXfrm=U.position==="start"),U.tag==="a:ext"&&de.inXfrm)return de.lastExt=U,U;if(!q(U,Q))return null;var Le=[],Se=[],Je=0,Ze=U.subparsed[0],Xe=0;Ze?.tag==="a:tr"&&(Xe=+L(Ze.value,"h")),Je-=Xe;var er=0,M=S(U);function re(Oe,ie,oe){Je+=Xe;for(var X=fe.scopeManager.createSubScopeManager(Oe,U.value,ie,U,oe),ne=0,Te=U.subparsed;ne<Te.length;ne++){var Fe=Te[ne];if(E("a16:rowId",Fe)){var We=+L(Fe.value,"val")+er;er=1,Fe.value=K(Fe.value,"val",We)}}var Ue=fe.render(h(h({},fe),{},{compiled:U.subparsed,tags:{},scopeManager:X}));U.hasPageBreak&&ie===oe-1&&M&&be(Ue);var Ke=X.scopePathItem.some(function(pr){return pr!==0});Ke?(U.sectPrCount===1&&(Ue.parts=H(Ue.parts)),U.addContinuousType&&(Ue.parts=F(Ue.parts))):U.addNextPage&&p(Ue.parts,de.sects[U.addNextPage.index]),U.addNextPage&&be(Ue),U.hasPageBreakBeginning&&M&&ye(Ue);for(var or=0,ur=Ue.parts;or<ur.length;or++){var nr=ur[or];Le.push(nr)}W(Se,Ue.errors)}var se=fe.scopeManager.getValue(U.value,{part:U});se??(se=fe.nullGetter(U));var he=fe.scopeManager.loopOverValue(se,re,U.inverted);if(he===!1)return U.lastParagrapSectPr?U.paragraphLoop?{value:"<w:p><w:pPr>".concat(U.lastParagrapSectPr,"</w:pPr></w:p>")}:{value:"</w:t></w:r></w:p><w:p><w:pPr>".concat(U.lastParagrapSectPr,"</w:pPr><w:r><w:t>")}:{value:Z(U)||"",errors:Se};if(Je!==0){var Pe=+L(de.lastExt.value,"cy");de.lastExt.value=K(de.lastExt.value,"cy",Pe+Je)}return{value:fe.joinUncorrupt(Le,h(h({},fe),{},{basePart:U})),errors:Se}}}])})();return Ln=function(){return we(new Ie)},Ln}var Mn,Ni;function $o(){if(Ni)return Mn;Ni=1;function l(Y){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},l(Y)}function u(Y,w){if(!(Y instanceof w))throw new TypeError("Cannot call a class as a function")}function h(Y,w){for(var z=0;z<w.length;z++){var C=w[z];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(Y,y(C.key),C)}}function b(Y,w,z){return w&&h(Y.prototype,w),Object.defineProperty(Y,"prototype",{writable:!1}),Y}function y(Y){var w=I(Y,"string");return l(w)=="symbol"?w:w+""}function I(Y,w){if(l(Y)!="object"||!Y)return Y;var z=Y[Symbol.toPrimitive];if(z!==void 0){var C=z.call(Y,w);if(l(C)!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Y)}var P=lt(),k=Dr(),O=k.isTextStart,c=k.isTextEnd,s=k.endsWith,o=k.startsWith,v=k.pushArray,f='<w:t xml:space="preserve">',g=f.length,N="</w:t>",B=N.length;function T(Y){return O(Y)&&Y.tag==="w:t"}function V(Y,w){var z=Y[w].value;return Y[w+1].value==="</w:t>"||z.indexOf('xml:space="preserve"')!==-1?z:z.substr(0,z.length-1)+' xml:space="preserve">'}function q(Y,w){return Y&&Y.basePart&&w.length>1}var W=(function(){function Y(){u(this,Y),this.name="SpacePreserveModule"}return b(Y,[{key:"postparse",value:function(z,C){var E=[],L=!1,K=0,ue=0;function we(J,Q){return J.type==="placeholder"&&Q.length>1}var De=z.reduce(function(J,Q){return T(Q)&&(L=!0,ue=E.length),L?(E.push(Q),q(C,E)&&(K=C.basePart.endLindex,E[0].value=V(E,0)),we(Q,E)&&(E[ue].value=V(E,ue),K=Q.endLindex),c(Q)&&Q.lIndex>K&&(K!==0&&(E[ue].value=V(E,ue)),v(J,E),E=[],L=!1,K=0,ue=0),J):(J.push(Q),J)},[]);return v(De,E),De}},{key:"postrender",value:function(z){for(var C=0,E=!1,L=0,K=z.length;L<K;L++)if(!(z[L]===""||z[L]instanceof Uint8Array)){var ue=z[L];E&&o(ue,N)&&(z[C]=z[C].substr(0,z[C].length-g)+"<w:t/>",ue=ue.substr(B),z[L]=ue),E=s(ue,f),C=L}return z}}])})();return Mn=function(){return P(new W)},Mn}var Un,Ii;function eu(){if(Ii)return Un;Ii=1;function l(T){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},l(T)}function u(T,V){if(!(T instanceof V))throw new TypeError("Cannot call a class as a function")}function h(T,V){for(var q=0;q<V.length;q++){var W=V[q];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(T,y(W.key),W)}}function b(T,V,q){return V&&h(T.prototype,V),Object.defineProperty(T,"prototype",{writable:!1}),T}function y(T){var V=I(T,"string");return l(V)=="symbol"?V:V+""}function I(T,V){if(l(T)!="object"||!T)return T;var q=T[Symbol.toPrimitive];if(q!==void 0){var W=q.call(T,V);if(l(W)!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}var P=Wn(),k=Dr(),O=k.isContent,c=k.getPartWithDelimiters,s=qr(),o=s.throwRawTagShouldBeOnlyTextInParagraph,v=s.getInvalidRawXMLValueException,f=lt(),g="rawxml";function N(T){for(var V=T.part,q=T.left,W=T.right,Y=T.postparsed,w=T.index,z=Y.slice(q+1,W),C=0,E=z.length;C<E;C++)if(C!==w-q-1){var L=z[C];O(L)&&o({paragraphParts:z,part:V})}return V}var B=(function(){function T(){u(this,T),this.name="RawXmlModule",this.prefix="@"}return b(T,[{key:"optionsTransformer",value:function(q,W){return this.fileTypeConfig=W.fileTypeConfig,q}},{key:"matchers",value:function(){return[[this.prefix,g]]}},{key:"postparse",value:function(q){var W=this;return P.expandToOne(q,{moduleName:g,getInner:N,expandTo:this.fileTypeConfig.tagRawXml,error:{message:"Raw tag not in paragraph",id:"raw_tag_outerxml_invalid",explanation:function(w){return'The tag "'.concat(c(w,W.docxtemplater),'" is not inside a paragraph, putting raw tags inside an inline loop is disallowed.')}}})}},{key:"render",value:function(q,W){if(q.module!==g)return null;var Y,w=[];try{Y=W.scopeManager.getValue(q.value,{part:q}),Y??(Y=W.nullGetter(q))}catch(z){return w.push(z),{errors:w}}return Y=Y||"",typeof Y=="string"?{value:Y}:{errors:[v({tag:q.value,value:Y,partDelims:c(q,this.docxtemplater),part:q,offset:q.offset})]}}}])})();return Un=function(){return f(new B)},Un}var qn,Ri;function ru(){if(Ri)return qn;Ri=1;function l(u,h){for(var b=-1,y=0,I=u.length;y<I;y++)h[y]>=u[y].length||(b===-1||u[y][h[y]].offset<u[b][h[b]].offset)&&(b=y);return b}return qn=function(u){for(var h=0,b=0,y=u;b<y.length;b++){var I=y[b];h+=I.length}u=u.filter(function(s){return s.length>0});for(var P=new Array(h),k=u.map(function(){return 0}),O=0;O<h;O++){var c=l(u,k);P[O]=u[c][k[c]],k[c]++}return P},qn}var zn,Bi;function tu(){if(Bi)return zn;Bi=1;function l(C){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},l(C)}function u(C,E){if(!(C instanceof E))throw new TypeError("Cannot call a class as a function")}function h(C,E){for(var L=0;L<E.length;L++){var K=E[L];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(C,y(K.key),K)}}function b(C,E,L){return E&&h(C.prototype,E),Object.defineProperty(C,"prototype",{writable:!1}),C}function y(C){var E=I(C,"string");return l(E)=="symbol"?E:E+""}function I(C,E){if(l(C)!="object"||!C)return C;var L=C[Symbol.toPrimitive];if(L!==void 0){var K=L.call(C,E);if(l(K)!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(C)}var P="expandPair",k=ru(),O=Dr(),c=O.getLeft,s=O.getRight,o=O.pushArray,v=lt(),f=Wn(),g=f.getExpandToDefault,N=qr(),B=N.getUnmatchedLoopException,T=N.getClosingTagNotMatchOpeningTag,V=N.getUnbalancedLoopException;function q(C){switch(C.location){case"start":return 1;case"end":return-1}}function W(C,E){return C!=null&&E!=null&&(C.part.location==="start"&&E.part.location==="end"&&C.part.value===E.part.value||E.part.value==="")}function Y(C){for(var E=0,L=[];E<C.length;){var K=C[E].part;if(K.location==="end"){if(E===0)return C.splice(0,1),L.push(B(K)),{traits:C,errors:L};var ue=E,we=E-1,De=1;if(W(C[we],C[ue]))return C.splice(ue,1),C.splice(we,1),{errors:L,traits:C};for(;De<50;){var J=C[we-De],Q=C[ue+De];if(W(J,C[ue]))return C.splice(ue,1),C.splice(we-De,1),{errors:L,traits:C};if(W(C[we],Q))return C.splice(ue+De,1),C.splice(we,1),{errors:L,traits:C};De++}return L.push(T({tags:[C[we].part,C[ue].part]})),C.splice(ue,1),C.splice(we,1),{traits:C,errors:L}}E++}for(var D=0;D<C.length;D++){var m=C[D].part;L.push(B(m))}return{traits:[],errors:L}}function w(C){var E={},L=[],K=[],ue=[];for(o(ue,C);ue.length>0;){var we=Y(ue);o(L,we.errors),ue=we.traits}if(L.length>0)return{pairs:K,errors:L};for(var De=0,J=0;J<C.length;J++){var Q=C[J],D=Q.part,m=q(D);if(De+=m,m===1)E[De]=Q;else{var S=E[De+1];De===0&&K.push([S,Q])}De=De>=0?De:0}return{pairs:K,errors:L}}var z=(function(){function C(){u(this,C),this.name="ExpandPairTrait"}return b(C,[{key:"optionsTransformer",value:function(L,K){return K.options.paragraphLoop&&o(K.fileTypeConfig.expandTags,K.fileTypeConfig.onParagraphLoop),this.expandTags=K.fileTypeConfig.expandTags,L}},{key:"postparse",value:function(L,K){var ue=this,we=K.getTraits,De=K.postparse,J=K.fileType,Q=we(P,L,K);Q=Q.map(function(a){return a||[]}),Q=k(Q);var D=w(Q),m=D.pairs,S=D.errors,Z=0,ce=null,Ce=m.map(function(a){var p=a[0].part.expandTo;if(p==="auto"&&J!=="text"){var F=g(L,a,ue.expandTags);F.error&&S.push(F.error),p=F.value}if(!p||J==="text"){var H=a[0].offset,me=a[1].offset;return H<Z&&!ue.docxtemplater.options.syntax.allowUnbalancedLoops&&S.push(V(a,ce)),ce=a,Z=me,[H,me]}var ve,Ae;try{ve=c(L,p,a[0].offset)}catch(_e){S.push(_e)}try{Ae=s(L,p,a[1].offset)}catch(_e){S.push(_e)}return ve<Z&&!ue.docxtemplater.options.syntax.allowUnbalancedLoops&&S.push(V(a,ce)),Z=Ae,ce=a,[ve,Ae]});if(S.length>0)return{postparsed:L,errors:S};var be=0,ye,d=L.reduce(function(a,p,F){var H=be<m.length&&Ce[be][0]<=F&&F<=Ce[be][1],me=m[be],ve=Ce[be];if(!H)return a.push(p),a;if(ve[0]===F&&(ye=[]),me[0].offset!==F&&me[1].offset!==F&&ye.push(p),ve[1]===F){var Ae=L[me[0].offset];Ae.subparsed=De(ye,{basePart:Ae}),Ae.endLindex=me[1].part.lIndex,delete Ae.location,delete Ae.expandTo,a.push(Ae),be++;for(var _e=Ce[be];_e&&_e[0]<F;)be++,_e=Ce[be]}return a},[]);return{postparsed:d,errors:S}}}])})();return zn=function(){return v(new z)},zn}var jn,Pi;function nu(){if(Pi)return jn;Pi=1;function l(w){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},l(w)}function u(w,z){if(!(w instanceof z))throw new TypeError("Cannot call a class as a function")}function h(w,z){for(var C=0;C<z.length;C++){var E=z[C];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,y(E.key),E)}}function b(w,z,C){return z&&h(w.prototype,z),Object.defineProperty(w,"prototype",{writable:!1}),w}function y(w){var z=I(w,"string");return l(z)=="symbol"?z:z+""}function I(w,z){if(l(w)!="object"||!w)return w;var C=w[Symbol.toPrimitive];if(C!==void 0){var E=C.call(w,z);if(l(E)!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(w)}var P=lt(),k=qr(),O=k.getScopeCompilationError,c=k.getCorruptCharactersException,s=Dr(),o=s.utf8ToWord,v=s.hasCorruptCharacters,f=s.removeCorruptCharacters,g=Yi(),N=g.settingsContentType,B=g.coreContentType,T=g.appContentType,V=g.customContentType,q=[N,B,T,V],W={docx:"w",pptx:"a"},Y=(function(){function w(){u(this,w),this.name="Render",this.recordRun=!1,this.recordedRun=[]}return b(w,[{key:"set",value:function(C){C.compiled&&(this.compiled=C.compiled),C.data!=null&&(this.data=C.data)}},{key:"optionsTransformer",value:function(C,E){return this.docxtemplater=E,this.brTag=E.fileType==="docx"?"<w:r><w:br/></w:r>":"<a:br/>",this.prefix=W[E.fileType],this.runStartTag="".concat(this.prefix,":r"),this.runPropsStartTag="".concat(this.prefix,":rPr"),C}},{key:"postparse",value:function(C,E){for(var L=[],K=0;K<C.length;K++){var ue=C[K];if(ue.type==="placeholder"){var we=ue.value;try{E.cachedParsers[ue.lIndex]=this.docxtemplater.parser(we,{tag:ue})}catch(De){L.push(O({tag:we,rootError:De,offset:ue.offset}))}}}return{postparsed:C,errors:L}}},{key:"getRenderedMap",value:function(C){for(var E in this.compiled)C[E]={from:E,data:this.data};return C}},{key:"render",value:function(C,E){var L=E.contentType,K=E.scopeManager,ue=E.linebreaks,we=E.nullGetter,De=E.fileType,J=E.stripInvalidXMLChars;if(q.indexOf(L)!==-1&&(ue=!1),ue&&this.recordRuns(C),!(C.type!=="placeholder"||C.module)){var Q;try{Q=K.getValue(C.value,{part:C})}catch(D){return{errors:[D]}}if(Q??(Q=we(C)),typeof Q=="string"){if(J)Q=f(Q);else if(["docx","pptx","xlsx"].indexOf(De)!==-1&&v(Q))return{errors:[c({tag:C.value,value:Q,offset:C.offset})]}}return De==="text"?{value:Q}:{value:ue&&typeof Q=="string"?this.renderLineBreaks(Q):o(Q)}}}},{key:"recordRuns",value:function(C){C.tag===this.runStartTag?this.recordedRun="":C.tag===this.runPropsStartTag?(C.position==="start"&&(this.recordRun=!0,this.recordedRun+=C.value),(C.position==="end"||C.position==="selfclosing")&&(this.recordedRun+=C.value,this.recordRun=!1)):this.recordRun&&(this.recordedRun+=C.value)}},{key:"renderLineBreaks",value:function(C){for(var E=[],L=C.split(`
21
+ `),K=0,ue=L.length;K<ue;K++)E.push(o(L[K])),K<L.length-1&&E.push("</".concat(this.prefix,":t></").concat(this.prefix,":r>").concat(this.brTag,"<").concat(this.prefix,":r>").concat(this.recordedRun,"<").concat(this.prefix,":t").concat(this.docxtemplater.fileType==="docx"?' xml:space="preserve"':"",">"));return E}}])})();return jn=function(){return P(new Y)},jn}var Xn,Fi;function au(){if(Fi)return Xn;Fi=1;var l=Jo(),u=$o(),h=eu(),b=tu(),y=nu();function I(){return{getTemplatedFiles:function(){return[]},templatedNs:["http://schemas.microsoft.com/office/2006/coverPageProps"],textPath:function(O){return O.textTarget},tagsXmlTextArray:["Company","HyperlinkBase","Manager","cp:category","cp:keywords","dc:creator","dc:description","dc:subject","dc:title","cp:contentStatus","PublishDate","Abstract","CompanyAddress","CompanyPhone","CompanyFax","CompanyEmail","w:t","a:t","m:t","vt:lpstr","vt:lpwstr"],tagsXmlLexedArray:["w:proofState","w:tc","w:tr","w:tbl","w:ftr","w:hdr","w:body","w:document","w:p","w:r","w:br","w:rPr","w:pPr","w:spacing","w:sdtContent","w:sdt","w:drawing","w:sectPr","w:type","w:headerReference","w:footerReference","w:bookmarkStart","w:bookmarkEnd","w:commentRangeStart","w:commentRangeEnd","w:commentReference"],droppedTagsInsidePlaceholder:["w:p","w:br","w:bookmarkStart","w:bookmarkEnd"],expandTags:[{contains:"w:tc",expand:"w:tr"}],onParagraphLoop:[{contains:"w:p",expand:"w:p",onlyTextInTag:!0}],tagRawXml:"w:p",baseModules:[l,u,b,h,y],tagShouldContain:[{tag:"w:sdtContent",shouldContain:["w:p","w:r","w:commentRangeStart","w:sdt"],value:"<w:p></w:p>"},{tag:"w:tc",shouldContain:["w:p"],value:"<w:p></w:p>"},{tag:"w:tr",shouldContain:["w:tc"],drop:!0},{tag:"w:tbl",shouldContain:["w:tr"],drop:!0}]}}function P(){return{getTemplatedFiles:function(){return[]},textPath:function(O){return O.textTarget},tagsXmlTextArray:["Company","HyperlinkBase","Manager","cp:category","cp:keywords","dc:creator","dc:description","dc:subject","dc:title","a:t","m:t","vt:lpstr","vt:lpwstr"],tagsXmlLexedArray:["p:sp","a:tc","a:tr","a:tbl","a:graphicData","a:p","a:r","a:rPr","p:txBody","a:txBody","a:off","a:ext","p:graphicFrame","p:xfrm","a16:rowId","a:endParaRPr"],droppedTagsInsidePlaceholder:["a:p","a:endParaRPr"],expandTags:[{contains:"a:tc",expand:"a:tr"}],onParagraphLoop:[{contains:"a:p",expand:"a:p",onlyTextInTag:!0}],tagRawXml:"p:sp",baseModules:[l,b,h,y],tagShouldContain:[{tag:"a:tbl",shouldContain:["a:tr"],dropParent:"p:graphicFrame"},{tag:"p:txBody",shouldContain:["a:p"],value:"<a:p></a:p>"},{tag:"a:txBody",shouldContain:["a:p"],value:"<a:p></a:p>"}]}}return Xn={docx:I,pptx:P},Xn}var ki;function iu(){return ki||(ki=1,(function(l){var u=["modules"];function h(ie,oe){var X=Object.keys(ie);if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(ie);oe&&(ne=ne.filter(function(Te){return Object.getOwnPropertyDescriptor(ie,Te).enumerable})),X.push.apply(X,ne)}return X}function b(ie){for(var oe=1;oe<arguments.length;oe++){var X=arguments[oe]!=null?arguments[oe]:{};oe%2?h(Object(X),!0).forEach(function(ne){y(ie,ne,X[ne])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ie,Object.getOwnPropertyDescriptors(X)):h(Object(X)).forEach(function(ne){Object.defineProperty(ie,ne,Object.getOwnPropertyDescriptor(X,ne))})}return ie}function y(ie,oe,X){return(oe=T(oe))in ie?Object.defineProperty(ie,oe,{value:X,enumerable:!0,configurable:!0,writable:!0}):ie[oe]=X,ie}function I(ie,oe){return s(ie)||c(ie,oe)||k(ie,oe)||P()}function P(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(ie,oe){if(ie){if(typeof ie=="string")return O(ie,oe);var X={}.toString.call(ie).slice(8,-1);return X==="Object"&&ie.constructor&&(X=ie.constructor.name),X==="Map"||X==="Set"?Array.from(ie):X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X)?O(ie,oe):void 0}}function O(ie,oe){(oe==null||oe>ie.length)&&(oe=ie.length);for(var X=0,ne=Array(oe);X<oe;X++)ne[X]=ie[X];return ne}function c(ie,oe){var X=ie==null?null:typeof Symbol<"u"&&ie[Symbol.iterator]||ie["@@iterator"];if(X!=null){var ne,Te,Fe,We,Ue=[],Ke=!0,or=!1;try{if(Fe=(X=X.call(ie)).next,oe===0){if(Object(X)!==X)return;Ke=!1}else for(;!(Ke=(ne=Fe.call(X)).done)&&(Ue.push(ne.value),Ue.length!==oe);Ke=!0);}catch(ur){or=!0,Te=ur}finally{try{if(!Ke&&X.return!=null&&(We=X.return(),Object(We)!==We))return}finally{if(or)throw Te}}return Ue}}function s(ie){if(Array.isArray(ie))return ie}function o(ie){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},o(ie)}function v(ie,oe){if(ie==null)return{};var X,ne,Te=f(ie,oe);if(Object.getOwnPropertySymbols){var Fe=Object.getOwnPropertySymbols(ie);for(ne=0;ne<Fe.length;ne++)X=Fe[ne],oe.indexOf(X)===-1&&{}.propertyIsEnumerable.call(ie,X)&&(Te[X]=ie[X])}return Te}function f(ie,oe){if(ie==null)return{};var X={};for(var ne in ie)if({}.hasOwnProperty.call(ie,ne)){if(oe.indexOf(ne)!==-1)continue;X[ne]=ie[ne]}return X}function g(ie,oe){if(!(ie instanceof oe))throw new TypeError("Cannot call a class as a function")}function N(ie,oe){for(var X=0;X<oe.length;X++){var ne=oe[X];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(ie,T(ne.key),ne)}}function B(ie,oe,X){return oe&&N(ie.prototype,oe),Object.defineProperty(ie,"prototype",{writable:!1}),ie}function T(ie){var oe=V(ie,"string");return o(oe)=="symbol"?oe:oe+""}function V(ie,oe){if(o(ie)!="object"||!ie)return ie;var X=ie[Symbol.toPrimitive];if(X!==void 0){var ne=X.call(ie,oe);if(o(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ie)}var q=Dr(),W=Mo(),Y=W.object({allowUnopenedTag:W.boolean().optional(),allowUnclosedTag:W.boolean().optional(),allowUnbalancedLoops:W.boolean().optional(),changeDelimiterPrefix:W.string().optional().nullable()}),w=W.object({delimiters:W.object({start:W.string().nullable(),end:W.string().nullable()}).strict().optional(),fileTypeConfig:W.object({}).optional(),paragraphLoop:W.boolean().optional(),parser:W.function().optional(),errorLogging:W.union([W.boolean(),W.string()]).optional(),linebreaks:W.boolean().optional(),nullGetter:W.function().optional(),syntax:Y.optional(),stripInvalidXMLChars:W.boolean().optional(),warnFn:W.function().optional()}).strict(),z=Uo(),C=z.getRelsTypes,E=qo(),L=E.collectContentTypes,K=E.getContentTypes,ue=lt(),we=Wn(),De=zo(),J=jo(),Q=Ki(),D=Xo(),m=D.getTags,S=Vo(),Z=qr(),ce=Z.throwMultiError,Ce=Z.throwResolveBeforeCompile,be=Z.throwRenderInvalidTemplate,ye=Z.throwRenderTwice,d=Z.XTInternalError,a=Z.XTTemplateError,p=Z.throwFileTypeNotIdentified,F=Z.throwFileTypeNotHandled,H=Z.throwApiVersionError;q.getRelsTypes=C,q.traits=we,q.moduleWrapper=ue,q.collectContentTypes=L,q.getContentTypes=K;var me=q.getDefaults,ve=q.str2xml,Ae=q.xml2str,_e=q.concatArrays,ke=q.uniq,Ie=q.getDuplicates,j=q.stableSort,ee=q.pushArray,U=q.utf8ToWord,fe=q.invertMap,de="[Content_Types].xml",Le="_rels/.rels",Se=[3,48,0];function Je(ie){for(var oe=[],X=0;X<ie.length;X++){var ne=ie[X];oe.push(ne.name)}var Te=Ie(oe);if(Te.length>0)throw new d('Detected duplicate module "'.concat(Te[0],'"'))}function Ze(ie){for(var oe=0,X=ie.modules;oe<X.length;oe++)for(var ne=X[oe],Te=0,Fe=ne.xmlContentTypes||[];Te<Fe.length;Te++)for(var We=Fe[Te],Ue=ie.invertedContentTypes[We]||[],Ke=0;Ke<Ue.length;Ke++){var or=Ue[Ke];ie.zip.files[or]&&ie.options.xmlFileNames.push(or)}}function Xe(ie){return j(ie,function(oe,X){return(X.priority||0)-(oe.priority||0)})}function er(ie){var oe=[];for(var X in ie)oe.push(X);for(var ne=[de,Le],Te=["word/","xl/","ppt/"],Fe=0;Fe<oe.length;Fe++)for(var We=oe[Fe],Ue=0;Ue<Te.length;Ue++){var Ke=Te[Ue];We.indexOf("".concat(Ke))===0&&ne.push(We)}for(var or=0;or<oe.length;or++){var ur=oe[or];ne.indexOf(ur)===-1&&ne.push(ur)}return ne}function M(ie,oe){ie.hideDeprecations!==!0&&console.warn(oe)}function re(ie,oe){if(ie.hideDeprecations!==!0)return M(ie,'Deprecated method ".'.concat(oe,'", view upgrade guide : https://docxtemplater.com/docs/api/#upgrade-guide, stack : ').concat(new Error().stack))}function se(ie){ie.modules=ie.modules.filter(function(oe){if(!oe.supportedFileTypes)return!0;if(!Array.isArray(oe.supportedFileTypes))throw new Error("The supportedFileTypes field of the module must be an array");var X=oe.supportedFileTypes.includes(ie.fileType);return X||oe.on("detached"),X})}function he(ie){var oe=ie.compiled;ie.errors=_e(Object.keys(oe).map(function(X){return oe[X].allErrors})),ie.errors.length!==0&&(ie.options.errorLogging&&S(ie.errors,ie.options.errorLogging),ce(ie.errors))}function Pe(ie){return typeof Buffer<"u"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(ie)}var Oe=(function(){function ie(oe){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=X.modules,Te=ne===void 0?[]:ne,Fe=v(X,u);if(g(this,ie),this.targets=[],this.rendered=!1,this.scopeManagers={},this.compiled={},this.modules=[De()],this.xmlDocuments={},arguments.length===0)M(this,"Deprecated docxtemplater constructor with no arguments, view upgrade guide : https://docxtemplater.com/docs/api/#upgrade-guide, stack : ".concat(new Error().stack)),this.hideDeprecations=!0,this.setOptions(Fe);else{if(this.hideDeprecations=!0,this.setOptions(Fe),Pe(oe))throw new Error("You passed a Buffer to the Docxtemplater constructor. The first argument of docxtemplater's constructor must be a valid zip file (jszip v2 or pizzip v3)");if(!oe||!oe.files||typeof oe.file!="function")throw new Error("The first argument of docxtemplater's constructor must be a valid zip file (jszip v2 or pizzip v3)");if(!Array.isArray(Te))throw new Error("The modules argument of docxtemplater's constructor must be an array");for(var We=0;We<Te.length;We++){var Ue=Te[We];this.attachModule(Ue)}this.loadZip(oe),this.compile(),this.v4Constructor=!0}this.hideDeprecations=!1}return B(ie,[{key:"verifyApiVersion",value:function(X){X=X.split(".");for(var ne=0;ne<X.length;ne++)X[ne]=parseInt(X[ne],10);return X.length!==3&&H("neededVersion is not a valid version",{neededVersion:X,explanation:"the neededVersion must be an array of length 3"}),X[0]!==Se[0]&&H("The major api version do not match, you probably have to update docxtemplater with npm install --save docxtemplater",{neededVersion:X,currentModuleApiVersion:Se,explanation:"moduleAPIVersionMismatch : needed=".concat(X.join("."),", current=").concat(Se.join("."))}),X[1]>Se[1]&&H("The minor api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",{neededVersion:X,currentModuleApiVersion:Se,explanation:"moduleAPIVersionMismatch : needed=".concat(X.join("."),", current=").concat(Se.join("."))}),X[1]===Se[1]&&X[2]>Se[2]&&H("The patch api version is not uptodate, you probably have to update docxtemplater with npm install --save docxtemplater",{neededVersion:X,currentModuleApiVersion:Se,explanation:"moduleAPIVersionMismatch : needed=".concat(X.join("."),", current=").concat(Se.join("."))}),!0}},{key:"setModules",value:function(X){for(var ne=0,Te=this.modules;ne<Te.length;ne++){var Fe=Te[ne];Fe.set(X)}}},{key:"sendEvent",value:function(X){for(var ne=0,Te=this.modules;ne<Te.length;ne++){var Fe=Te[ne];Fe.on(X)}}},{key:"attachModule",value:function(X){if(this.v4Constructor)throw new d("attachModule() should not be called manually when using the v4 constructor");re(this,"attachModule");var ne=o(X);if(ne==="function")throw new d("Cannot attach a class/function as a module. Most probably you forgot to instantiate the module by using `new` on the module.");if(!X||ne!=="object")throw new d("Cannot attachModule with a falsy value");if(X.requiredAPIVersion&&this.verifyApiVersion(X.requiredAPIVersion),X.attached===!0)if(typeof X.clone=="function")X=X.clone();else throw new Error('Cannot attach a module that was already attached : "'.concat(X.name,'". The most likely cause is that you are instantiating the module at the root level, and using it for multiple instances of Docxtemplater'));X.attached=!0;var Te=ue(X);return this.modules.push(Te),Te.on("attached"),this.fileType&&se(this),this}},{key:"findModule",value:function(X){for(var ne=0,Te=this.modules;ne<Te.length;ne++){var Fe=Te[ne];if(Fe.name===X)return Fe}}},{key:"setOptions",value:function(X){var ne,Te;if(this.v4Constructor)throw new Error("setOptions() should not be called manually when using the v4 constructor");if(!X)throw new Error("setOptions should be called with an object as first parameter");var Fe=w.validate(X);if(Fe.success===!1)throw new Error(Fe.error);re(this,"setOptions"),this.options={};var We=me();for(var Ue in We){var Ke=We[Ue];this.options[Ue]=X[Ue]!=null?X[Ue]:this[Ue]||Ke,this[Ue]=this.options[Ue]}return(ne=this.delimiters).start&&(ne.start=U(this.delimiters.start)),(Te=this.delimiters).end&&(Te.end=U(this.delimiters.end)),this}},{key:"loadZip",value:function(X){if(this.v4Constructor)throw new Error("loadZip() should not be called manually when using the v4 constructor");if(re(this,"loadZip"),X.loadAsync)throw new d("Docxtemplater doesn't handle JSZip version >=3, please use pizzip");X.xtRendered&&this.options.warnFn([new Error("This zip file appears to be the outcome of a previous docxtemplater generation. This typically indicates that docxtemplater was integrated by reusing the same zip file. It is recommended to create a new Pizzip instance for each docxtemplater generation.")]),this.zip=X,this.updateFileTypeConfig(),this.modules=_e([this.fileTypeConfig.baseModules.map(function(We){return We()}),this.modules]);for(var ne=0,Te=this.modules;ne<Te.length;ne++){var Fe=Te[ne];Fe.zip=this.zip,Fe.docxtemplater=this,Fe.fileTypeConfig=this.fileTypeConfig,Fe.fileType=this.fileType,Fe.xtOptions=this.options,Fe.modules=this.modules}return se(this),this}},{key:"precompileFile",value:function(X){var ne=this.createTemplateClass(X);ne.preparse(),this.compiled[X]=ne}},{key:"compileFile",value:function(X){this.compiled[X].parse()}},{key:"getScopeManager",value:function(X,ne,Te){var Fe;return(Fe=this.scopeManagers)[X]||(Fe[X]=J({tags:Te,parser:this.parser,cachedParsers:ne.cachedParsers})),this.scopeManagers[X]}},{key:"resolveData",value:function(X){var ne=this;re(this,"resolveData");var Te=[];return Object.keys(this.compiled).length||Ce(),Promise.resolve(X).then(function(Fe){ne.data=Fe,ne.setModules({data:ne.data,Lexer:Q}),ne.mapper=ne.modules.reduce(function(ur,nr){return nr.getRenderedMap(ur)},{});for(var We=[],Ue=function(){var nr=or[Ke],pr=ne.mapper[nr],Ve=pr.from,yr=pr.data;We.push(Promise.resolve(yr).then(function(Cr){var ar=ne.compiled[Ve];return ar.filePath=nr,ar.scopeManager=ne.getScopeManager(nr,ar,Cr),ar.resolveTags(Cr).then(function(cr){return ar.scopeManager.finishedResolving=!0,cr},function(cr){ee(Te,cr)})}))},Ke=0,or=Object.keys(ne.mapper);Ke<or.length;Ke++)Ue();return Promise.all(We).then(function(ur){return Te.length!==0&&(ne.options.errorLogging&&S(Te,ne.options.errorLogging),ce(Te)),_e(ur)})})}},{key:"compile",value:function(){if(re(this,"compile"),this.updateFileTypeConfig(),Je(this.modules),this.modules=Xe(this.modules),Object.keys(this.compiled).length)return this;for(var X=this.options,ne=0,Te=this.modules;ne<Te.length;ne++){var Fe=Te[ne];X=Fe.optionsTransformer(X,this)}this.options=X,this.options.xmlFileNames=ke(this.options.xmlFileNames);for(var We=0,Ue=this.options.xmlFileNames;We<Ue.length;We++){var Ke=Ue[We],or=this.zip.files[Ke].asText();this.xmlDocuments[Ke]=ve(or)}this.setModules({zip:this.zip,xmlDocuments:this.xmlDocuments});for(var ur=0,nr=this.modules;ur<nr.length;ur++){var pr=nr[ur];pr.xmlDocuments=this.xmlDocuments}this.getTemplatedFiles(),this.sendEvent("before-preparse");for(var Ve=0,yr=this.templatedFiles;Ve<yr.length;Ve++){var Cr=yr[Ve];this.zip.files[Cr]!=null&&this.precompileFile(Cr)}this.sendEvent("after-preparse");for(var ar=0,cr=this.templatedFiles;ar<cr.length;ar++){var Er=cr[ar];this.zip.files[Er]!=null&&this.compiled[Er].parse({noPostParse:!0})}this.sendEvent("after-parse");for(var _r=0,Nr=this.templatedFiles;_r<Nr.length;_r++){var Ar=Nr[_r];this.zip.files[Ar]!=null&&this.compiled[Ar].postparse()}return this.sendEvent("after-postparse"),this.setModules({compiled:this.compiled}),he(this),this}},{key:"updateFileTypeConfig",value:function(){this.relsTypes=C(this.zip);var X=K(this.zip),ne=X.overrides,Te=X.defaults,Fe=X.contentTypes,We=X.contentTypeXml;We&&(this.filesContentTypes=L(ne,Te,this.zip),this.invertedContentTypes=fe(this.filesContentTypes),this.setModules({contentTypes:this.contentTypes,invertedContentTypes:this.invertedContentTypes}));var Ue;this.zip.files.mimetype&&(Ue="odt");for(var Ke=0,or=this.modules;Ke<or.length;Ke++){var ur=or[Ke];Ue=ur.getFileType({zip:this.zip,contentTypes:Fe,contentTypeXml:We,overrides:ne,defaults:Te,doc:this})||Ue}if(this.fileType=Ue,Ue==="odt"&&F(Ue),Ue||p(this.zip),Ze(this),se(this),this.fileTypeConfig=this.options.fileTypeConfig||this.fileTypeConfig,!this.fileTypeConfig)if(ie.FileTypeConfig[this.fileType])this.fileTypeConfig=ie.FileTypeConfig[this.fileType]();else{var nr='Filetype "'.concat(this.fileType,'" is not supported'),pr="filetype_not_supported";this.fileType==="xlsx"&&(nr='Filetype "'.concat(this.fileType,'" is supported only with the paid XlsxModule'),pr="xlsx_filetype_needs_xlsx_module");var Ve=new a(nr);throw Ve.properties={id:pr,explanation:nr},Ve}return this}},{key:"renderAsync",value:function(X){var ne=this;this.hideDeprecations=!0;var Te=this.resolveData(X);return this.hideDeprecations=!1,this.zip.xtRendered=!0,Te.then(function(){return ne.render()})}},{key:"render",value:function(X){this.zip.xtRendered=!0,this.rendered&&ye(),this.rendered=!0,Object.keys(this.compiled).length===0&&this.compile(),this.errors.length>0&&be(),arguments.length>0&&(this.data=X),this.setModules({data:this.data,Lexer:Q}),this.mapper||(this.mapper=this.modules.reduce(function(zr,rt){return rt.getRenderedMap(zr)},{}));var ne=[];for(var Te in this.mapper){var Fe=this.mapper[Te],We=Fe.from,Ue=Fe.data,Ke=this.compiled[We];Ke.scopeManager=this.getScopeManager(Te,Ke,Ue),Ke.render(Te),ne.push([Te,Ke.content,Ke]),delete Ke.content}for(var or=0;or<ne.length;or++)for(var ur=ne[or],nr=I(ur,3),pr=nr[1],Ve=nr[2],yr=0,Cr=this.modules;yr<Cr.length;yr++){var ar=Cr[yr];if(ar.preZip){var cr=ar.preZip(pr,Ve);typeof cr=="string"&&(ur[1]=cr)}}for(var Er=0;Er<ne.length;Er++){var _r=I(ne[Er],2),Nr=_r[0],Ar=_r[1];this.zip.file(Nr,Ar,{createFolders:!0})}return he(this),this.sendEvent("syncing-zip"),this.syncZip(),this.sendEvent("synced-zip"),this}},{key:"syncZip",value:function(){for(var X in this.xmlDocuments){this.zip.remove(X);var ne=Ae(this.xmlDocuments[X]);this.zip.file(X,ne,{createFolders:!0})}}},{key:"setData",value:function(X){return re(this,"setData"),this.data=X,this}},{key:"getZip",value:function(){return this.zip}},{key:"createTemplateClass",value:function(X){var ne=this.zip.files[X].asText();return this.createTemplateClassFromContent(ne,X)}},{key:"createTemplateClassFromContent",value:function(X,ne){for(var Te={filePath:ne,contentType:this.filesContentTypes[ne],relsType:this.relsTypes[ne]},Fe=me(),We=ee(Object.keys(Fe),["filesContentTypes","fileTypeConfig","fileType","modules"]),Ue=0;Ue<We.length;Ue++){var Ke=We[Ue];Te[Ke]=this[Ke]}return new ie.XmlTemplater(X,Te)}},{key:"getFullText",value:function(X){return this.createTemplateClass(X||this.fileTypeConfig.textPath(this)).getFullText()}},{key:"getTemplatedFiles",value:function(){this.templatedFiles=this.fileTypeConfig.getTemplatedFiles(this.zip),ee(this.templatedFiles,this.targets);var X=this.fileTypeConfig.templatedNs||[];if(X.length>0){for(var ne in this.filesContentTypes)if(/^customXml\/item\d+\.xml$/.test(ne))for(var Te=0;Te<X.length;Te++){var Fe=X[Te],We=this.zip.file(ne).asText();We.indexOf('xmlns="'.concat(Fe,'"'))!==-1&&this.templatedFiles.push(ne)}}return this.templatedFiles=ke(this.templatedFiles),this.templatedFiles}},{key:"getTags",value:function(){var X={headers:[],footers:[]};for(var ne in this.compiled){var Te=this.filesContentTypes[ne];Te==="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"&&(X.document={target:ne,tags:m(this.compiled[ne].postparsed)}),Te==="application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml"&&X.headers.push({target:ne,tags:m(this.compiled[ne].postparsed)}),Te==="application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml"&&X.footers.push({target:ne,tags:m(this.compiled[ne].postparsed)})}return X}},{key:"toBuffer",value:function(X){return this.zip.generate(b(b({compression:"DEFLATE",fileOrder:er},X),{},{type:"nodebuffer"}))}},{key:"toBlob",value:function(X){return this.zip.generate(b(b({compression:"DEFLATE",fileOrder:er},X),{},{type:"blob"}))}},{key:"toBase64",value:function(X){return this.zip.generate(b(b({compression:"DEFLATE",fileOrder:er},X),{},{type:"base64"}))}},{key:"toUint8Array",value:function(X){return this.zip.generate(b(b({compression:"DEFLATE",fileOrder:er},X),{},{type:"uint8array"}))}},{key:"toArrayBuffer",value:function(X){return this.zip.generate(b(b({compression:"DEFLATE",fileOrder:er},X),{},{type:"arraybuffer"}))}}])})();Oe.DocUtils=q,Oe.Errors=qr(),Oe.XmlTemplater=Qo(),Oe.FileTypeConfig=au(),Oe.XmlMatcher=Qi(),l.exports=Oe,l.exports.default=Oe})(fn)),fn.exports}var ou=iu();const wt=Li(ou);function Kn(l,u,h={}){return uu(l,u,h).buffer}function uu(l,u,h={}){let{nullGetter:b="keep",linebreaks:y=!0,delimiters:I}=h,P=[],k=[],O=[];try{let c=new Et(l),s=new wt(c,{paragraphLoop:!0,linebreaks:y,nullGetter:o=>{let v=o.value||"";if(b==="error")throw new Error(`Undefined variable: ${v}`);return b==="empty"?(O.push(v),""):(O.push(v),`{${v}}`)},delimiters:I?{start:I.start||"{",end:I.end||"}"}:void 0});return Object.keys(u).forEach(o=>{u[o]!==void 0&&u[o]!==null&&k.push(o)}),s.setData(u),s.render(),{buffer:s.getZip().generate({type:"arraybuffer",compression:"DEFLATE",compressionOptions:{level:6}}),replacedVariables:k,unreplacedVariables:O,warnings:P}}catch(c){throw xt(c)}}function su(l,u,h={}){let b=Kn(l,u,h);return new Blob([b],{type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"})}function hu(l,u,h="document",b={}){let y=su(l,u,b);fu(y,`${h}.docx`)}function du(l){try{let u=new Et(l),h=new wt(u,{paragraphLoop:!0,linebreaks:!0}).getFullText();return $i(h)}catch(u){throw xt(u)}}function vu(l){let u=[],h=[];try{let b=new Et(l),y=new wt(b,{paragraphLoop:!0,linebreaks:!0}).getFullText();h=$i(y);let I=lu(y);for(let P of I)u.push({message:`Unclosed tag: ${P}`,variable:P,type:"parse"});return{valid:u.length===0,errors:u,tags:h}}catch(b){return u.push(xt(b)),{valid:!1,errors:u,tags:h}}}function gu(l,u){return l.filter(h=>!(h in u)||u[h]===void 0||u[h]===null)}function mu(l,u){try{let h=new Et(l),b=new wt(h,{paragraphLoop:!0,linebreaks:!0,nullGetter:y=>`[${y.value||""}]`});return b.setData(u),b.render(),b.getFullText()}catch(h){throw xt(h)}}function $i(l){let u=[],h=/\{([^{}]+)\}/g,b;for(;(b=h.exec(l))!==null;){let y=b[1].trim();y&&!u.includes(y)&&u.push(y)}return u.sort()}function lu(l){let u=[],h=0,b="";for(let y of l)y==="{"?(h++,b=""):y==="}"?(h--,h<0&&(h=0)):h>0&&(b+=y);return h>0&&b.trim()&&u.push(b.trim()),u}function cu(l){return"properties"in l&&typeof l.properties=="object"}function xt(l){if(l instanceof Error){if(cu(l)&&l.properties?.errors){let u=l.properties.errors[0];return{message:u?.message||"Template processing error",variable:u?.properties?.tag,type:"render",originalError:l}}if(l.message.includes("undefined")){let u=l.message.match(/undefined (?:variable|tag):\s*(\S+)/i);return{message:l.message,variable:u?u[1]:void 0,type:"undefined",originalError:l}}return l.message.includes("parse")||l.message.includes("unclosed")||l.message.includes("syntax")?{message:l.message,type:"parse",originalError:l}:{message:l.message,type:"unknown",originalError:l}}return{message:String(l),type:"unknown"}}function fu(l,u){let h=URL.createObjectURL(l),b=document.createElement("a");b.href=h,b.download=u,document.body.appendChild(b),b.click(),document.body.removeChild(b),URL.revokeObjectURL(h)}function yu(l,u,h={}){let{linebreaks:b=!0,delimiters:y}=h;try{let I=new Et(l),P=new wt(I,{paragraphLoop:!0,linebreaks:b,delimiters:y?{start:y.start||"{",end:y.end||"}"}:void 0});return P.setData(u),P.render(),P.getZip().generate({type:"arraybuffer",compression:"DEFLATE"})}catch(I){throw xt(I)}}function bu(l={}){return(u,h)=>Kn(u,h,l)}var Eu=Kn;export{bu as createTemplateProcessor,Eu as default,gu as getMissingVariables,du as getTemplateTags,mu as previewTemplate,Kn as processTemplate,yu as processTemplateAdvanced,hu as processTemplateAndDownload,su as processTemplateAsBlob,uu as processTemplateDetailed,vu as validateTemplate};