lido-player 0.0.2-beta-18-dev → 0.0.2-beta-21-dev

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 (232) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{decode-DUZYNXIv.js → decode-Buln7Iaf.js} +1 -1
  3. package/dist/cjs/{index-BEjUmVtH.js → index-Bb_TFgTA.js} +137 -64
  4. package/dist/cjs/{index-DnqQXD5x.js → index-DBCFoh1I.js} +12 -53
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/lido-avatar_22.cjs.entry.js +139 -50
  7. package/dist/cjs/lido-player.cjs.js +2 -2
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/collection-manifest.json +1 -1
  10. package/dist/collection/components/avatar/lido-avatar.css +4 -4
  11. package/dist/collection/components/avatar/lido-avatar.js +1 -1
  12. package/dist/collection/components/avatar/lido-avatar.tsx +207 -207
  13. package/dist/collection/components/avatar/readme.md +49 -49
  14. package/dist/collection/components/calculator/lido-calculator.css +89 -89
  15. package/dist/collection/components/calculator/lido-calculator.js +2 -2
  16. package/dist/collection/components/canvas/lido-canvas.css +33 -33
  17. package/dist/collection/components/canvas/lido-canvas.js +1 -1
  18. package/dist/collection/components/cell/lido-cell.css +100 -100
  19. package/dist/collection/components/cell/lido-cell.js +12 -12
  20. package/dist/collection/components/column/lido-col.css +19 -19
  21. package/dist/collection/components/column/lido-col.js +6 -6
  22. package/dist/collection/components/container/lido-container.css +10 -10
  23. package/dist/collection/components/container/lido-container.js +8 -8
  24. package/dist/collection/components/flashCard/lido-flash-card.css +28 -28
  25. package/dist/collection/components/flashCard/lido-flash-card.js +4 -4
  26. package/dist/collection/components/float/lido-float.css +30 -30
  27. package/dist/collection/components/float/lido-float.js +2 -2
  28. package/dist/collection/components/home/lido-home.css +309 -309
  29. package/dist/collection/components/home/lido-home.js +5 -5
  30. package/dist/collection/components/image/lido-image.css +17 -17
  31. package/dist/collection/components/image/lido-image.js +6 -6
  32. package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
  33. package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
  34. package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
  35. package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
  36. package/dist/collection/components/position/lido-pos.css +16 -16
  37. package/dist/collection/components/position/lido-pos.js +2 -2
  38. package/dist/collection/components/random/lido-random.css +8 -8
  39. package/dist/collection/components/random/lido-random.js +2 -2
  40. package/dist/collection/components/root/lido-root.js +5 -5
  41. package/dist/collection/components/row/lido-row.css +10 -10
  42. package/dist/collection/components/row/lido-row.js +6 -6
  43. package/dist/collection/components/scale/assets/Shadow.svg +9 -9
  44. package/dist/collection/components/scale/lido-balance.css +145 -145
  45. package/dist/collection/components/scale/lido-balance.js +13 -13
  46. package/dist/collection/components/shape/lido-shape.css +216 -216
  47. package/dist/collection/components/shape/lido-shape.js +6 -6
  48. package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
  49. package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
  50. package/dist/collection/components/text/lido-text.css +53 -53
  51. package/dist/collection/components/text/lido-text.js +5 -5
  52. package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -8
  53. package/dist/collection/components/trace/lido-trace.css +97 -97
  54. package/dist/collection/components/trace/lido-trace.js +108 -19
  55. package/dist/collection/components/wrap/lido-wrap.css +18 -18
  56. package/dist/collection/components/wrap/lido-wrap.js +6 -6
  57. package/dist/collection/css/animation.css +211 -211
  58. package/dist/collection/css/index.css +324 -315
  59. package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
  60. package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
  61. package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
  62. package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
  63. package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
  64. package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
  65. package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
  66. package/dist/collection/stories/Templates/blender/blender.stories.js +59 -59
  67. package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
  68. package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
  69. package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
  70. package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
  71. package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
  72. package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
  73. package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
  74. package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
  75. package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
  76. package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
  77. package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
  78. package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
  79. package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
  80. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
  81. package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
  82. package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
  83. package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
  84. package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
  85. package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
  86. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
  87. package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
  88. package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
  89. package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
  90. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
  91. package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
  92. package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
  93. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
  94. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
  95. package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
  96. package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
  97. package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
  98. package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
  99. package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
  100. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
  101. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
  102. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
  103. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
  104. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
  105. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
  106. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
  107. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
  108. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
  109. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
  110. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
  111. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
  112. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
  113. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
  114. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
  115. package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
  116. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
  117. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
  118. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
  119. package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
  120. package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
  121. package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
  122. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
  123. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
  124. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
  125. package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +631 -631
  126. package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
  127. package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
  128. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
  129. package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
  130. package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
  131. package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
  132. package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
  133. package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
  134. package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
  135. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
  136. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
  137. package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
  138. package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
  139. package/dist/collection/stories/Templates/total/total.stories.js +28 -28
  140. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
  141. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
  142. package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
  143. package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
  144. package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
  145. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
  146. package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
  147. package/dist/collection/stories/components/flash-card.stories.js +48 -48
  148. package/dist/collection/stories/components/keyboard.stories.js +10 -10
  149. package/dist/collection/stories/components/slider.stories.js +4 -4
  150. package/dist/collection/stories/components/trace.stories.js +5 -5
  151. package/dist/collection/utils/audioPlayer.js +2 -5
  152. package/dist/collection/utils/utils.js +49 -9
  153. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +10 -10
  154. package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
  155. package/dist/collection/utils/utilsHandlers/sortHandler.js +53 -15
  156. package/dist/components/index.js +1 -1
  157. package/dist/components/lido-avatar.js +1 -1
  158. package/dist/components/lido-balance.js +1 -1
  159. package/dist/components/lido-calculator.js +1 -1
  160. package/dist/components/lido-canvas.js +1 -1
  161. package/dist/components/lido-cell.js +1 -1
  162. package/dist/components/lido-col.js +1 -1
  163. package/dist/components/lido-container.js +1 -1
  164. package/dist/components/lido-flash-card.js +1 -1
  165. package/dist/components/lido-float.js +1 -1
  166. package/dist/components/lido-home.js +1 -1
  167. package/dist/components/lido-keyboard.js +1 -1
  168. package/dist/components/lido-math-matrix.js +1 -1
  169. package/dist/components/lido-pos.js +1 -1
  170. package/dist/components/lido-random.js +1 -1
  171. package/dist/components/lido-root.js +1 -1
  172. package/dist/components/lido-row.js +1 -1
  173. package/dist/components/lido-shape.js +1 -1
  174. package/dist/components/lido-slide-fill.js +1 -1
  175. package/dist/components/lido-text.js +1 -1
  176. package/dist/components/lido-trace.js +1 -1
  177. package/dist/components/lido-wrap.js +1 -1
  178. package/dist/components/{p-yT7udDfd.js → p-B4YAipq-.js} +1 -1
  179. package/dist/components/{p-DdQ1eqJr.js → p-B8nzzM8c.js} +1 -1
  180. package/dist/components/p-BAfFgI9q.js +1 -0
  181. package/dist/components/{p-Sl9R-E6h.js → p-BBHM059l.js} +1 -1
  182. package/dist/components/{p-SPZTb5fI.js → p-BJMjg5wu.js} +1 -1
  183. package/dist/components/{p-Cj-6tqzU.js → p-BOQDbCrm.js} +1 -1
  184. package/dist/components/{p-CwDTdXe5.js → p-BeRr8u5m.js} +1 -1
  185. package/dist/components/{p-CjdDpXfk.js → p-BfqihbR6.js} +1 -1
  186. package/dist/components/{p-CPYnt0P-.js → p-C5WmmkI6.js} +1 -1
  187. package/dist/components/{p-useuhkjH.js → p-C70ykycD.js} +1 -1
  188. package/dist/components/{p-BE25wHoo.js → p-CCR42e0i.js} +1 -1
  189. package/dist/components/{p-BfwUqpXc.js → p-CTlcpv4a.js} +1 -1
  190. package/dist/components/{p-CyGxEcn7.js → p-CXHPZN3m.js} +1 -1
  191. package/dist/components/{p-Bw-OC9iR.js → p-CgsPIpg0.js} +1 -1
  192. package/dist/components/{p-D54c-ybm.js → p-CljvnHkI.js} +1 -1
  193. package/dist/components/p-CwIlwnQk.js +1 -0
  194. package/dist/components/p-DLyacZap.js +1 -0
  195. package/dist/components/p-DONbWJGn.js +1 -0
  196. package/dist/components/p-DVTigdH_.js +1 -0
  197. package/dist/components/{p-BNNX1Pew.js → p-wF7SBGpr.js} +2 -2
  198. package/dist/esm/{decode-BgBfbPZu.js → decode-B_VrYFdJ.js} +1 -1
  199. package/dist/esm/{index-D-29PaRa.js → index-B-VyHxJa.js} +137 -64
  200. package/dist/esm/{index-BeHFCsWf.js → index-mMpK8062.js} +12 -53
  201. package/dist/esm/index.js +2 -2
  202. package/dist/esm/lido-avatar_22.entry.js +139 -50
  203. package/dist/esm/lido-player.js +3 -3
  204. package/dist/esm/loader.js +2 -2
  205. package/dist/lido-player/assets/Shadow.svg +9 -9
  206. package/dist/lido-player/assets/Tracing-hand.svg +8 -8
  207. package/dist/lido-player/index.esm.js +1 -1
  208. package/dist/lido-player/lido-avatar.css +4 -4
  209. package/dist/lido-player/lido-avatar.tsx +207 -207
  210. package/dist/lido-player/lido-player.css +8 -8
  211. package/dist/lido-player/lido-player.esm.js +1 -1
  212. package/dist/lido-player/{p-856e1956.entry.js → p-744dee1c.entry.js} +2 -2
  213. package/dist/lido-player/p-BK926Rl3.js +1 -0
  214. package/dist/lido-player/{p-BA2X6O7O.js → p-Cw84dpIR.js} +1 -1
  215. package/dist/lido-player/p-mMpK8062.js +2 -0
  216. package/dist/lido-player/readme.md +49 -49
  217. package/dist/types/components/trace/lido-trace.d.ts +9 -1
  218. package/dist/types/stencil-public-runtime.d.ts +0 -12
  219. package/dist/types/types/json.d.ts +3 -3
  220. package/dist/types/utils/utils.d.ts +1 -1
  221. package/dist/types/utils/utilsHandlers/dragDropHandler.d.ts +1 -0
  222. package/dist/types/utils/utilsHandlers/sortHandler.d.ts +2 -0
  223. package/loader/index.d.ts +1 -1
  224. package/package.json +74 -74
  225. package/readme.md +113 -113
  226. package/dist/components/p-BSV5U72F.js +0 -1
  227. package/dist/components/p-CTlwn9r7.js +0 -1
  228. package/dist/components/p-D-B1groh.js +0 -1
  229. package/dist/components/p-DbR5sNOj.js +0 -1
  230. package/dist/components/p-leIEepjl.js +0 -1
  231. package/dist/lido-player/p-BeHFCsWf.js +0 -3
  232. package/dist/lido-player/p-TuBmCgtK.js +0 -1
@@ -1,4 +1,4 @@
1
- import{G as t,I as i,t as r,p as n,H as e,J as o,A as s,K as a,M as h,q as f,N as u,O as c,P as l,Q as d,U as p,V as m,W as b,X as w,getAssetPath as v,Y as x,w as g,h as y,T as k,f as E,Z as A,S as j,_ as S,j as z,n as B,$ as C,b as O,c as U,a0 as D,a1 as T,a2 as R}from"./index.js";import{c as F,d as P}from"./p-C5jvgiPE.js";import{d as I,i as X}from"./p-Cj-6tqzU.js";import{d as _}from"./p-CwDTdXe5.js";import{d as Z}from"./p-CjdDpXfk.js";import{d as W}from"./p-yT7udDfd.js";import{d as N}from"./p-CPYnt0P-.js";import{d as L}from"./p-Bw-OC9iR.js";import{d as G}from"./p-BfwUqpXc.js";import{d as Y}from"./p-D54c-ybm.js";import{d as M}from"./p-D-B1groh.js";import{d as $}from"./p-DbR5sNOj.js";import{d as H}from"./p-SPZTb5fI.js";import{d as J}from"./p-DdQ1eqJr.js";import{d as K}from"./p-CyGxEcn7.js";import{d as q}from"./p-leIEepjl.js";import{d as V}from"./p-useuhkjH.js";import{d as Q}from"./p-BSV5U72F.js";import{d as tt}from"./p-Sl9R-E6h.js";import{d as it}from"./p-CTlwn9r7.js";import{d as rt}from"./p-BE25wHoo.js";var nt,et={exports:{}},ot=(nt||(nt=1,et.exports=function t(i,r,n){function e(s,a){if(!r[s]){if(!i[s]){var h="function"==typeof F&&F;if(!a&&h)return h(s,!0);if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var u=r[s]={exports:{}};i[s][0].call(u.exports,(function(t){return e(i[s][1][t]||t)}),u,u.exports,t,i,r,n)}return r[s].exports}for(var o="function"==typeof F&&F,s=0;s<n.length;s++)e(n[s]);return e}({1:[function(t,i,r){var n=t("./utils"),e=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t){for(var i,r,e,s,a,h,f=[],u=0,c=t.length,l=c,d="string"!==n.getTypeOf(t);u<t.length;)l=c-u,e=d?(i=t[u++],r=u<c?t[u++]:0,u<c?t[u++]:0):(i=t.charCodeAt(u++),r=u<c?t.charCodeAt(u++):0,u<c?t.charCodeAt(u++):0),s=(3&i)<<4|r>>4,a=1<l?(15&r)<<2|e>>6:64,h=2<l?63&e:64,f.push(o.charAt(i>>2)+o.charAt(s)+o.charAt(a)+o.charAt(h));return f.join("")},r.decode=function(t){var i,r,n,s,a,h,f=0,u=0,c="data:";if(t.substr(0,5)===c)throw new Error("Invalid base64 input, it looks like a data url.");var l,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&d--,t.charAt(t.length-2)===o.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=e.uint8array?new Uint8Array(0|d):new Array(0|d);f<t.length;)i=o.indexOf(t.charAt(f++))<<2|(s=o.indexOf(t.charAt(f++)))>>4,r=(15&s)<<4|(a=o.indexOf(t.charAt(f++)))>>2,n=(3&a)<<6|(h=o.indexOf(t.charAt(f++))),l[u++]=i,64!==a&&(l[u++]=r),64!==h&&(l[u++]=n);return l}},{"./support":30,"./utils":32}],2:[function(t,i){var r=t("./external"),n=t("./stream/DataWorker"),e=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function s(t,i,r,n,e){this.compressedSize=t,this.uncompressedSize=i,this.crc32=r,this.compression=n,this.compressedContent=e}s.prototype={getContentWorker:function(){var t=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),i=this;return t.on("end",(function(){if(this.streamInfo.data_length!==i.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,i,r){return t.pipe(new e).pipe(new o("uncompressedSize")).pipe(i.compressWorker(r)).pipe(new o("compressedSize")).withStreamInfo("compression",i)},i.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,r){var n=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i){var r=t("./utils"),n=function(){for(var t,i=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;i[r]=t}return i}();i.exports=function(t,i){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,i,r){var e=n,o=0+r;t^=-1;for(var s=0;s<o;s++)t=t>>>8^e[255&(t^i[s])];return~t}(0|i,t,t.length):function(t,i,r){var e=n,o=0+r;t^=-1;for(var s=0;s<o;s++)t=t>>>8^e[255&(t^i.charCodeAt(s))];return~t}(0|i,t,t.length):0}},{"./utils":32}],5:[function(t,i,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,i){var r;r="undefined"!=typeof Promise?Promise:t("lie"),i.exports={Promise:r}},{lie:37}],7:[function(t,i,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),a=n?"uint8array":"array";function h(t,i){s.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=i,this.meta={}}r.magic="\b\0",o.inherits(h,s),h.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,t.data),!1)},h.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(i){t.push({data:i,meta:t.meta})}},r.compressWorker=function(t){return new h("Deflate",t)},r.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,i){function r(t,i){var r,n="";for(r=0;r<i;r++)n+=String.fromCharCode(255&t),t>>>=8;return n}function n(t,i,n,o,f,u){var c,l,d=t.file,p=t.compression,m=u!==s.utf8encode,b=e.transformTo("string",u(d.name)),w=e.transformTo("string",s.utf8encode(d.name)),v=d.comment,x=e.transformTo("string",u(v)),g=e.transformTo("string",s.utf8encode(v)),y=w.length!==d.name.length,k=g.length!==v.length,E="",A="",j="",S=d.dir,z=d.date,B={crc32:0,compressedSize:0,uncompressedSize:0};i&&!n||(B.crc32=t.crc32,B.compressedSize=t.compressedSize,B.uncompressedSize=t.uncompressedSize);var C=0;i&&(C|=8),m||!y&&!k||(C|=2048);var O=0,U=0;S&&(O|=16),"UNIX"===f?(U=798,O|=function(t,i){var r=t;return t||(r=i?16893:33204),(65535&r)<<16}(d.unixPermissions,S)):(U=20,O|=function(t){return 63&(t||0)}(d.dosPermissions)),c=z.getUTCHours(),c<<=6,c|=z.getUTCMinutes(),c<<=5,c|=z.getUTCSeconds()/2,l=z.getUTCFullYear()-1980,l<<=4,l|=z.getUTCMonth()+1,l<<=5,l|=z.getUTCDate(),y&&(A=r(1,1)+r(a(b),4)+w,E+="up"+r(A.length,2)+A),k&&(j=r(1,1)+r(a(x),4)+g,E+="uc"+r(j.length,2)+j);var D="";return D+="\n\0",D+=r(C,2),D+=p.magic,D+=r(c,2),D+=r(l,2),D+=r(B.crc32,4),D+=r(B.compressedSize,4),D+=r(B.uncompressedSize,4),D+=r(b.length,2),D+=r(E.length,2),{fileRecord:h.LOCAL_FILE_HEADER+D+b+E,dirRecord:h.CENTRAL_FILE_HEADER+r(U,2)+D+r(x.length,2)+"\0\0\0\0"+r(O,4)+r(o,4)+b+E+x}}var e=t("../utils"),o=t("../stream/GenericWorker"),s=t("../utf8"),a=t("../crc32"),h=t("../signature");function f(t,i,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=i,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}e.inherits(f,o),f.prototype.push=function(t){var i=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(i+100*(r-n-1))/r:100}}))},f.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var i=this.streamFiles&&!t.file.dir;if(i){var r=n(t,i,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(t){this.accumulate=!1;var i=this.streamFiles&&!t.file.dir,e=n(t,i,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(e.dirRecord),i)this.push({data:function(t){return h.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:e.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var t=this.bytesWritten,i=0;i<this.dirRecords.length;i++)this.push({data:this.dirRecords[i],meta:{percent:100}});var n=function(t,i,n,o,s){var a=e.transformTo("string",s(o));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(t,2)+r(t,2)+r(i,4)+r(n,4)+r(a.length,2)+a}(this.dirRecords.length,this.bytesWritten-t,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(t){this._sources.push(t);var i=this;return t.on("data",(function(t){i.processChunk(t)})),t.on("end",(function(){i.closedSource(i.previous.streamInfo),i._sources.length?i.prepareNextSource():i.end()})),t.on("error",(function(t){i.error(t)})),this},f.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(t){var i=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var r=0;r<i.length;r++)try{i[r].error(t)}catch(t){}return!0},f.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,i=0;i<t.length;i++)t[i].lock()},i.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,i,r){var n=t("../compressions"),e=t("./ZipFileWorker");r.generateWorker=function(t,i,r){var o=new e(i.streamFiles,r,i.platform,i.encodeFileName),s=0;try{t.forEach((function(t,r){s++;var e=function(t,i){var r=t||i,e=n[r];if(!e)throw new Error(r+" is not a valid compression method !");return e}(r.options.compression,i.compression),a=r.dir,h=r.date;r._compressWorker(e,r.options.compressionOptions||i.compressionOptions||{}).withStreamInfo("file",{name:t,dir:a,date:h,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)})),o.entriesCount=s}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,i){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new r;for(var i in this)"function"!=typeof this[i]&&(t[i]=this[i]);return t}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.2",r.loadAsync=function(t,i){return(new r).loadAsync(t,i)},r.external=t("./external"),i.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,i){var r=t("./utils"),n=t("./external"),e=t("./utf8"),o=t("./zipEntries"),s=t("./stream/Crc32Probe"),a=t("./nodejsUtils");function h(t){return new n.Promise((function(i,r){var n=t.decompressed.getContentWorker().pipe(new s);n.on("error",(function(t){r(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):i()})).resume()}))}i.exports=function(t,i){var s=this;return i=r.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:e.utf8decode}),a.isNode&&a.isStream(t)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",t,!0,i.optimizedBinaryString,i.base64).then((function(t){var r=new o(i);return r.load(t),r})).then((function(t){var r=[n.Promise.resolve(t)],e=t.files;if(i.checkCRC32)for(var o=0;o<e.length;o++)r.push(h(e[o]));return n.Promise.all(r)})).then((function(t){for(var n=t.shift(),e=n.files,o=0;o<e.length;o++){var a=e[o],h=a.fileNameStr,f=r.resolve(a.fileNameStr);s.file(f,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:i.createFolders}),a.dir||(s.file(f).unsafeOriginalName=h)}return n.zipComment.length&&(s.comment=n.zipComment),s}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,i){var r=t("../utils"),n=t("../stream/GenericWorker");function e(t,i){n.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(i)}r.inherits(e,n),e.prototype._bindStream=function(t){var i=this;(this._stream=t).pause(),t.on("data",(function(t){i.push({data:t,meta:{percent:0}})})).on("error",(function(t){i.isPaused?this.generatedError=t:i.error(t)})).on("end",(function(){i.isPaused?i._upstreamEnded=!0:i.end()}))},e.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},e.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=e},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,i){var r=t("readable-stream").Readable;function n(t,i,n){r.call(this,i),this._helper=t;var e=this;t.on("data",(function(t,i){e.push(t)||e._helper.pause(),n&&n(i)})).on("error",(function(t){e.emit("error",t)})).on("end",(function(){e.push(null)}))}t("../utils").inherits(n,r),n.prototype._read=function(){this._helper.resume()},i.exports=n},{"../utils":32,"readable-stream":16}],14:[function(t,i){i.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,i){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,i);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,i)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var i=new Buffer(t);return i.fill(0),i},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,i){function r(t,i,r){var n,s=e.getTypeOf(i),u=e.extend(r||{},a);u.date=u.date||new Date,null!==u.compression&&(u.compression=u.compression.toUpperCase()),"string"==typeof u.unixPermissions&&(u.unixPermissions=parseInt(u.unixPermissions,8)),u.unixPermissions&&16384&u.unixPermissions&&(u.dir=!0),u.dosPermissions&&16&u.dosPermissions&&(u.dir=!0),u.dir&&(t=p(t)),u.createFolders&&(n=d(t))&&m.call(this,n,!0),r&&void 0!==r.binary||(u.binary=!("string"===s&&!1===u.binary&&!1===u.base64)),(i instanceof h&&0===i.uncompressedSize||u.dir||!i||0===i.length)&&(u.base64=!1,u.binary=!0,i="",u.compression="STORE",s="string");var b;b=i instanceof h||i instanceof o?i:c.isNode&&c.isStream(i)?new l(t,i):e.prepareContent(t,i,u.binary,u.optimizedBinaryString,u.base64);var w=new f(t,b,u);this.files[t]=w}var n=t("./utf8"),e=t("./utils"),o=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),a=t("./defaults"),h=t("./compressedObject"),f=t("./zipObject"),u=t("./generate"),c=t("./nodejsUtils"),l=t("./nodejs/NodejsStreamInputAdapter"),d=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var i=t.lastIndexOf("/");return 0<i?t.substring(0,i):""},p=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,i){return i=void 0!==i?i:a.createFolders,t=p(t),this.files[t]||r.call(this,t,null,{dir:!0,createFolders:i}),this.files[t]};function b(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var i,r,n;for(i in this.files)n=this.files[i],(r=i.slice(this.root.length,i.length))&&i.slice(0,this.root.length)===this.root&&t(r,n)},filter:function(t){var i=[];return this.forEach((function(r,n){t(r,n)&&i.push(n)})),i},file:function(t,i,n){if(1!==arguments.length)return r.call(this,t=this.root+t,i,n),this;if(b(t)){var e=t;return this.filter((function(t,i){return!i.dir&&e.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(b(t))return this.filter((function(i,r){return r.dir&&t.test(i)}));var i=m.call(this,this.root+t),r=this.clone();return r.root=i.name,r},remove:function(t){var i=this.files[t=this.root+t];if(i||("/"!==t.slice(-1)&&(t+="/"),i=this.files[t]),i&&!i.dir)delete this.files[t];else for(var r=this.filter((function(i,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var i,r={};try{if((r=e.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");e.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS"),i=u.generateWorker(this,r,r.comment||this.comment||"")}catch(t){(i=new o("error")).error(t)}return new s(i,r.type||"string",r.mimeType)},generateAsync:function(t,i){return this.generateInternalStream(t).accumulate(i)},generateNodeStream:function(t,i){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(i)}};i.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,i){i.exports=t("stream")},{stream:void 0}],17:[function(t,i){var r=t("./DataReader");function n(t){r.call(this,t);for(var i=0;i<this.data.length;i++)t[i]=255&t[i]}t("../utils").inherits(n,r),n.prototype.byteAt=function(t){return this.data[this.zero+t]},n.prototype.lastIndexOfSignature=function(t){for(var i=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),e=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===i&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===e)return o-this.zero;return-1},n.prototype.readAndCheckSignature=function(t){var i=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),e=t.charCodeAt(3),o=this.readData(4);return i===o[0]&&r===o[1]&&n===o[2]&&e===o[3]},n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var i=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./DataReader":18}],18:[function(t,i){var r=t("../utils");function n(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var i,r=0;for(this.checkOffset(t),i=this.index+t-1;i>=this.index;i--)r=(r<<8)+this.byteAt(i);return this.index+=t,r},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},i.exports=n},{"../utils":32}],19:[function(t,i){var r=t("./Uint8ArrayReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.readData=function(t){this.checkOffset(t);var i=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i){var r=t("./DataReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},n.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},n.prototype.readData=function(t){this.checkOffset(t);var i=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./DataReader":18}],21:[function(t,i){var r=t("./ArrayReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var i=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(t,i){var r=t("../utils"),n=t("../support"),e=t("./ArrayReader"),o=t("./StringReader"),s=t("./NodeBufferReader"),a=t("./Uint8ArrayReader");i.exports=function(t){var i=r.getTypeOf(t);return r.checkSupport(i),"string"!==i||n.uint8array?"nodebuffer"===i?new s(t):n.uint8array?new a(r.transformTo("uint8array",t)):new e(r.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,i){var r=t("./GenericWorker"),n=t("../utils");function e(t){r.call(this,"ConvertWorker to "+t),this.destType=t}n.inherits(e,r),e.prototype.processChunk=function(t){this.push({data:n.transformTo(this.destType,t.data),meta:t.meta})},i.exports=e},{"../utils":32,"./GenericWorker":28}],25:[function(t,i){var r=t("./GenericWorker"),n=t("../crc32");function e(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(e,r),e.prototype.processChunk=function(t){this.streamInfo.crc32=n(t.data,this.streamInfo.crc32||0),this.push(t)},i.exports=e},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i){var r=t("../utils"),n=t("./GenericWorker");function e(t){n.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(e,n),e.prototype.processChunk=function(t){t&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+t.data.length),n.prototype.processChunk.call(this,t)},i.exports=e},{"../utils":32,"./GenericWorker":28}],27:[function(t,i){var r=t("../utils"),n=t("./GenericWorker");function e(t){n.call(this,"DataWorker");var i=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){i.dataIsReady=!0,i.data=t,i.max=t&&t.length||0,i.type=r.getTypeOf(t),i.isPaused||i._tickAndRepeat()}),(function(t){i.error(t)}))}r.inherits(e,n),e.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,i=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,i);break;case"uint8array":t=this.data.subarray(this.index,i);break;case"array":case"nodebuffer":t=this.data.slice(this.index,i)}return this.index=i,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=e},{"../utils":32,"./GenericWorker":28}],28:[function(t,i){function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,i){return this._listeners[t].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,i){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,i)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var i=this;return t.on("data",(function(t){i.processChunk(t)})),t.on("end",(function(){i.end()})),t.on("error",(function(t){i.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,i){return this.extraStreamInfo[t]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},i.exports=r},{}],29:[function(t,i){var r=t("../utils"),n=t("./ConvertWorker"),e=t("./GenericWorker"),o=t("../base64"),s=t("../support"),a=t("../external"),h=null;if(s.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function f(t,i,o){var s=i;switch(i){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=i,this._mimeType=o,r.checkSupport(s),this._worker=t.pipe(new n(s)),t.lock()}catch(t){this._worker=new e("error"),this._worker.error(t)}}f.prototype={accumulate:function(t){return function(t,i){return new a.Promise((function(n,e){var s=[],a=t._internalType,h=t._outputType,f=t._mimeType;t.on("data",(function(t,r){s.push(t),i&&i(r)})).on("error",(function(t){s=[],e(t)})).on("end",(function(){try{var t=function(t,i,n){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",i),n);case"base64":return o.encode(i);default:return r.transformTo(t,i)}}(h,function(t,i){var r,n=0,e=null,o=0;for(r=0;r<i.length;r++)o+=i[r].length;switch(t){case"string":return i.join("");case"array":return Array.prototype.concat.apply([],i);case"uint8array":for(e=new Uint8Array(o),r=0;r<i.length;r++)e.set(i[r],n),n+=i[r].length;return e;case"nodebuffer":return Buffer.concat(i);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,s),f);n(t)}catch(t){e(t)}s=[]})).resume()}))}(this,t)},on:function(t,i){var n=this;return this._worker.on(t,"data"===t?function(t){i.call(n,t.data,t.meta)}:function(){r.delay(i,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:"nodebuffer"!==this._outputType},t)}},i.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,i,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(t){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);e.append(n),r.blob=0===e.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,r){for(var n=t("./utils"),e=t("./support"),o=t("./nodejsUtils"),s=t("./stream/GenericWorker"),a=new Array(256),h=0;h<256;h++)a[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function f(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,r.utf8encode=function(t){return e.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var i,r,n,o,s,a=t.length,h=0;for(o=0;o<a;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),h+=r<128?1:r<2048?2:r<65536?3:4;for(i=e.uint8array?new Uint8Array(h):new Array(h),o=s=0;s<h;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?i[s++]=r:(r<2048?i[s++]=192|r>>>6:(r<65536?i[s++]=224|r>>>12:(i[s++]=240|r>>>18,i[s++]=128|r>>>12&63),i[s++]=128|r>>>6&63),i[s++]=128|63&r);return i}(t)},r.utf8decode=function(t){return e.nodebuffer?n.transformTo("nodebuffer",t).toString("utf-8"):function(t){var i,r,e,o,s=t.length,h=new Array(2*s);for(i=r=0;i<s;)if((e=t[i++])<128)h[r++]=e;else if(4<(o=a[e]))h[r++]=65533,i+=o-1;else{for(e&=2===o?31:3===o?15:7;1<o&&i<s;)e=e<<6|63&t[i++],o--;1<o?h[r++]=65533:e<65536?h[r++]=e:(h[r++]=55296|(e-=65536)>>10&1023,h[r++]=56320|1023&e)}return h.length!==r&&(h.subarray?h=h.subarray(0,r):h.length=r),n.applyFromCharCode(h)}(t=n.transformTo(e.uint8array?"uint8array":"array",t))},n.inherits(f,s),f.prototype.processChunk=function(t){var i=n.transformTo(e.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var o=i;(i=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),i.set(o,this.leftOver.length)}else i=this.leftOver.concat(i);this.leftOver=null}var s=function(t,i){var r;for((i=i||t.length)>t.length&&(i=t.length),r=i-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?i:r+a[t[r]]>i?r:i}(i),h=i;s!==i.length&&(e.uint8array?(h=i.subarray(0,s),this.leftOver=i.subarray(s,i.length)):(h=i.slice(0,s),this.leftOver=i.slice(s,i.length))),this.push({data:r.utf8decode(h),meta:t.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=f,n.inherits(u,s),u.prototype.processChunk=function(t){this.push({data:r.utf8encode(t.data),meta:t.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,r){var n=t("./support"),e=t("./base64"),o=t("./nodejsUtils"),s=t("./external");function a(t){return t}function h(t,i){for(var r=0;r<t.length;++r)i[r]=255&t.charCodeAt(r);return i}t("setimmediate"),r.newBlob=function(t,i){r.checkSupport("blob");try{return new Blob([t],{type:i})}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(i)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(t,i,r){var n=[],e=0,o=t.length;if(o<=r)return String.fromCharCode.apply(null,t);for(;e<o;)n.push(String.fromCharCode.apply(null,"array"===i||"nodebuffer"===i?t.slice(e,Math.min(e+r,o)):t.subarray(e,Math.min(e+r,o)))),e+=r;return n.join("")},stringifyByChar:function(t){for(var i="",r=0;r<t.length;r++)i+=String.fromCharCode(t[r]);return i},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var i=65536,n=r.getTypeOf(t),e=!0;if("uint8array"===n?e=f.applyCanBeUsed.uint8array:"nodebuffer"===n&&(e=f.applyCanBeUsed.nodebuffer),e)for(;1<i;)try{return f.stringifyByChunk(t,n,i)}catch(t){i=Math.floor(i/2)}return f.stringifyByChar(t)}function c(t,i){for(var r=0;r<t.length;r++)i[r]=t[r];return i}r.applyFromCharCode=u;var l={};l.string={string:a,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return l.string.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:function(t){return h(t,o.allocBuffer(t.length))}},l.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},l.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return c(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},l.uint8array={string:u,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return o.newBufferFrom(t)}},l.nodebuffer={string:u,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return l.nodebuffer.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:a},r.transformTo=function(t,i){if(i=i||"",!t)return i;r.checkSupport(t);var n=r.getTypeOf(i);return l[n][t](i)},r.resolve=function(t){for(var i=t.split("/"),r=[],n=0;n<i.length;n++){var e=i[n];"."===e||""===e&&0!==n&&n!==i.length-1||(".."===e?r.pop():r.push(e))}return r.join("/")},r.getTypeOf=function(t){if("string"==typeof t)return"string";var i=Object.prototype.toString.call(t);return"[object Array]"===i?"array":n.nodebuffer&&o.isBuffer(t)?"nodebuffer":n.uint8array&&"[object Uint8Array]"===i?"uint8array":n.arraybuffer&&"[object ArrayBuffer]"===i?"arraybuffer":void 0},r.checkSupport=function(t){if(!n[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(t){var i,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((i=t.charCodeAt(r))<16?"0":"")+i.toString(16).toUpperCase();return n},r.delay=function(t,i,r){setImmediate((function(){t.apply(r||null,i||[])}))},r.inherits=function(t,i){function r(){}r.prototype=i.prototype,t.prototype=new r},r.extend=function(){var t,i,r={};for(t=0;t<arguments.length;t++)for(i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&void 0===r[i]&&(r[i]=arguments[t][i]);return r},r.prepareContent=function(t,i,o,a,f){return s.Promise.resolve(i).then((function(i){return n.blob&&(i instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(i)))?void 0!==Blob.prototype.arrayBuffer?i.arrayBuffer():"undefined"!=typeof FileReader?new s.Promise((function(t,r){var n=new FileReader;n.onload=function(i){t(i.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(i)})):s.Promise.reject(new Error(t+" is a Blob, but we have no way of reading it.")):i})).then((function(i){var u=r.getTypeOf(i);return u?("arraybuffer"===u?i=r.transformTo("uint8array",i):"string"===u&&(f?i=e.decode(i):o&&!0!==a&&(i=function(t){return h(t,n.uint8array?new Uint8Array(t.length):new Array(t.length))}(i))),i):s.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,i){var r=t("./reader/readerFor"),n=t("./utils"),e=t("./signature"),o=t("./zipEntry"),s=t("./support");function a(t){this.files=[],this.loadOptions=t}a.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var i=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(i)+", expected "+n.pretty(t)+")")}},isSignature:function(t,i){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===i;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),i=n.transformTo(s.uint8array?"uint8array":"array",t);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,i,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),i=this.reader.readInt(4),r=this.reader.readData(i),this.zip64ExtensibleData[t]={id:t,length:i,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,i;for(t=0;t<this.files.length;t++)this.reader.setIndex((i=this.files[t]).localHeaderOffset),this.checkSignature(e.LOCAL_FILE_HEADER),i.readLocalPart(this.reader),i.handleUTF8(),i.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(e.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(e.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,e.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var i=t;if(this.checkSignature(e.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,e.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(e.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(e.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var o=i-r;if(0<o)this.isSignature(i,e.CENTRAL_FILE_HEADER)||(this.reader.zero=o);else if(o<0)throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")},prepareReader:function(t){this.reader=r(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,i){var r=t("./reader/readerFor"),n=t("./utils"),e=t("./compressedObject"),o=t("./crc32"),s=t("./utf8"),a=t("./compressions"),h=t("./support");function f(t,i){this.options=t,this.loadOptions=i}f.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var i,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(i=function(t){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&a[i].magic===t)return a[i];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new e(this.compressedSize,this.uncompressedSize,this.crc32,i,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var i=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(i),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var i,r,n,e=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<e;)i=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[i]={id:i,length:r,value:n};t.setIndex(e)},handleUTF8:function(){var t=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var i=this.findExtraFieldUnicodePath();if(null!==i)this.fileNameStr=i;else{var r=n.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var e=this.findExtraFieldUnicodeComment();if(null!==e)this.fileCommentStr=e;else{var o=n.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var i=r(t.value);return 1!==i.readInt(1)||o(this.fileName)!==i.readInt(4)?null:s.utf8decode(i.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var i=r(t.value);return 1!==i.readInt(1)||o(this.fileComment)!==i.readInt(4)?null:s.utf8decode(i.readData(t.length-5))}return null}},i.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,i){function r(t,i,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=i,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var n=t("./stream/StreamHelper"),e=t("./stream/DataWorker"),o=t("./utf8"),s=t("./compressedObject"),a=t("./stream/GenericWorker");r.prototype={internalStream:function(t){var i=null,r="string";try{if(!t)throw new Error("No output type specified.");var e="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),i=this._decompressWorker();var s=!this._dataBinary;s&&!e&&(i=i.pipe(new o.Utf8EncodeWorker)),!s&&e&&(i=i.pipe(new o.Utf8DecodeWorker))}catch(t){(i=new a("error")).error(t)}return new n(i,r,"")},async:function(t,i){return this.internalStream(t).accumulate(i)},nodeStream:function(t,i){return this.internalStream(t||"nodebuffer").toNodejsStream(i)},_compressWorker:function(t,i){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(r,t,i)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof a?this._data:new e(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},u=0;u<h.length;u++)r.prototype[h[u]]=f;i.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(i,r){(function(t){var i,n,e=t.MutationObserver||t.WebKitMutationObserver;if(e){var o=0,s=new e(u),a=t.document.createTextNode("");s.observe(a,{characterData:!0}),i=function(){a.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)i="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var i=t.document.createElement("script");i.onreadystatechange=function(){u(),i.onreadystatechange=null,i.parentNode.removeChild(i),i=null},t.document.documentElement.appendChild(i)}:function(){setTimeout(u,0)};else{var h=new t.MessageChannel;h.port1.onmessage=u,i=function(){h.port2.postMessage(0)}}var f=[];function u(){var t,i;n=!0;for(var r=f.length;r;){for(i=f,f=[],t=-1;++t<r;)i[t]();r=f.length}n=!1}r.exports=function(t){1!==f.push(t)||n||i()}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,i){var r=t("immediate");function n(){}var e={},o=["REJECTED"],s=["FULFILLED"],a=["PENDING"];function h(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,t!==n&&l(this,t)}function f(t,i,r){this.promise=t,"function"==typeof i&&(this.onFulfilled=i,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function u(t,i,n){r((function(){var r;try{r=i(n)}catch(r){return e.reject(t,r)}r===t?e.reject(t,new TypeError("Cannot resolve promise with itself")):e.resolve(t,r)}))}function c(t){var i=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof i)return function(){i.apply(t,arguments)}}function l(t,i){var r=!1;function n(i){r||(r=!0,e.reject(t,i))}function o(i){r||(r=!0,e.resolve(t,i))}var s=d((function(){i(o,n)}));"error"===s.status&&n(s.value)}function d(t,i){var r={};try{r.value=t(i),r.status="success"}catch(t){r.status="error",r.value=t}return r}(i.exports=h).prototype.finally=function(t){if("function"!=typeof t)return this;var i=this.constructor;return this.then((function(r){return i.resolve(t()).then((function(){return r}))}),(function(r){return i.resolve(t()).then((function(){throw r}))}))},h.prototype.catch=function(t){return this.then(null,t)},h.prototype.then=function(t,i){if("function"!=typeof t&&this.state===s||"function"!=typeof i&&this.state===o)return this;var r=new this.constructor(n);return this.state!==a?u(r,this.state===s?t:i,this.outcome):this.queue.push(new f(r,t,i)),r},f.prototype.callFulfilled=function(t){e.resolve(this.promise,t)},f.prototype.otherCallFulfilled=function(t){u(this.promise,this.onFulfilled,t)},f.prototype.callRejected=function(t){e.reject(this.promise,t)},f.prototype.otherCallRejected=function(t){u(this.promise,this.onRejected,t)},e.resolve=function(t,i){var r=d(c,i);if("error"===r.status)return e.reject(t,r.value);var n=r.value;if(n)l(t,n);else{t.state=s,t.outcome=i;for(var o=-1,a=t.queue.length;++o<a;)t.queue[o].callFulfilled(i)}return t},e.reject=function(t,i){t.state=o,t.outcome=i;for(var r=-1,n=t.queue.length;++r<n;)t.queue[r].callRejected(i);return t},h.resolve=function(t){return t instanceof this?t:e.resolve(new this(n),t)},h.reject=function(t){var i=new this(n);return e.reject(i,t)},h.all=function(t){var i=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var r=t.length,o=!1;if(!r)return this.resolve([]);for(var s=new Array(r),a=0,h=-1,f=new this(n);++h<r;)u(t[h],h);return f;function u(t,n){i.resolve(t).then((function(t){s[n]=t,++a!==r||o||(o=!0,e.resolve(f,s))}),(function(t){o||(o=!0,e.reject(f,t))}))}},h.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,r=!1;if(!i)return this.resolve([]);for(var o=-1,s=new this(n);++o<i;)this.resolve(t[o]).then((function(t){r||(r=!0,e.resolve(s,t))}),(function(t){r||(r=!0,e.reject(s,t))}));return s}},{immediate:36}],38:[function(t,i){var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),i.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,i,r){var n=t("./zlib/deflate"),e=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/messages"),a=t("./zlib/zstream"),h=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var i=this.options;i.raw&&0<i.windowBits?i.windowBits=-i.windowBits:i.gzip&&0<i.windowBits&&i.windowBits<16&&(i.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,i.level,i.method,i.windowBits,i.memLevel,i.strategy);if(0!==r)throw new Error(s[r]);if(i.header&&n.deflateSetHeader(this.strm,i.header),i.dictionary){var u;if(u="string"==typeof i.dictionary?o.string2buf(i.dictionary):"[object ArrayBuffer]"===h.call(i.dictionary)?new Uint8Array(i.dictionary):i.dictionary,0!==(r=n.deflateSetDictionary(this.strm,u)))throw new Error(s[r]);this._dict_set=!0}}function u(t,i){var r=new f(i);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(t,i){var r,s,a=this.strm,f=this.options.chunkSize;if(this.ended)return!1;s=i===~~i?i:!0===i?4:0,a.input="string"==typeof t?o.string2buf(t):"[object ArrayBuffer]"===h.call(t)?new Uint8Array(t):t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new e.Buf8(f),a.next_out=0,a.avail_out=f),1!==(r=n.deflate(a,s))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||this.onData("string"===this.options.to?o.buf2binstring(e.shrinkBuf(a.output,a.next_out)):e.shrinkBuf(a.output,a.next_out))}while((0<a.avail_in||0===a.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==s||(this.onEnd(0),!(a.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){0===t&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Deflate=f,r.deflate=u,r.deflateRaw=function(t,i){return(i=i||{}).raw=!0,u(t,i)},r.gzip=function(t,i){return(i=i||{}).gzip=!0,u(t,i)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,i,r){var n=t("./zlib/inflate"),e=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/constants"),a=t("./zlib/messages"),h=t("./zlib/zstream"),f=t("./zlib/gzheader"),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},t||{});var i=this.options;i.raw&&0<=i.windowBits&&i.windowBits<16&&(i.windowBits=-i.windowBits,0===i.windowBits&&(i.windowBits=-15)),!(0<=i.windowBits&&i.windowBits<16)||t&&t.windowBits||(i.windowBits+=32),15<i.windowBits&&i.windowBits<48&&!(15&i.windowBits)&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,i.windowBits);if(r!==s.Z_OK)throw new Error(a[r]);this.header=new f,n.inflateGetHeader(this.strm,this.header)}function l(t,i){var r=new c(i);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(t,i){var r,a,h,f,c,l,d=this.strm,p=this.options.chunkSize,m=this.options.dictionary,b=!1;if(this.ended)return!1;a=i===~~i?i:!0===i?s.Z_FINISH:s.Z_NO_FLUSH,d.input="string"==typeof t?o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?new Uint8Array(t):t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new e.Buf8(p),d.next_out=0,d.avail_out=p),(r=n.inflate(d,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&m&&(l="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,l)),r===s.Z_BUF_ERROR&&!0===b&&(r=s.Z_OK,b=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&r!==s.Z_STREAM_END&&(0!==d.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(h=o.utf8border(d.output,d.next_out),f=d.next_out-h,c=o.buf2string(d.output,h),d.next_out=f,d.avail_out=p-f,f&&e.arraySet(d.output,d.output,h,f,0),this.onData(c)):this.onData(e.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(b=!0)}while((0<d.avail_in||0===d.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(d.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===s.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=c,r.inflate=l,r.inflateRaw=function(t,i){return(i=i||{}).raw=!0,l(t,i)},r.ungzip=l},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,i,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var i=Array.prototype.slice.call(arguments,1);i.length;){var r=i.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}}return t},r.shrinkBuf=function(t,i){return t.length===i?t:t.subarray?t.subarray(0,i):(t.length=i,t)};var e={arraySet:function(t,i,r,n,e){if(i.subarray&&t.subarray)t.set(i.subarray(r,r+n),e);else for(var o=0;o<n;o++)t[e+o]=i[r+o]},flattenChunks:function(t){var i,r,n,e,o,s;for(i=n=0,r=t.length;i<r;i++)n+=t[i].length;for(s=new Uint8Array(n),i=e=0,r=t.length;i<r;i++)s.set(o=t[i],e),e+=o.length;return s}},o={arraySet:function(t,i,r,n,e){for(var o=0;o<n;o++)t[e+o]=i[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,e)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(t,i,r){var n=t("./common"),e=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function h(t,i){if(i<65537&&(t.subarray&&o||!t.subarray&&e))return String.fromCharCode.apply(null,n.shrinkBuf(t,i));for(var r="",s=0;s<i;s++)r+=String.fromCharCode(t[s]);return r}s[254]=s[254]=1,r.string2buf=function(t){var i,r,e,o,s,a=t.length,h=0;for(o=0;o<a;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(e=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(e-56320),o++),h+=r<128?1:r<2048?2:r<65536?3:4;for(i=new n.Buf8(h),o=s=0;s<h;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(e=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(e-56320),o++),r<128?i[s++]=r:(r<2048?i[s++]=192|r>>>6:(r<65536?i[s++]=224|r>>>12:(i[s++]=240|r>>>18,i[s++]=128|r>>>12&63),i[s++]=128|r>>>6&63),i[s++]=128|63&r);return i},r.buf2binstring=function(t){return h(t,t.length)},r.binstring2buf=function(t){for(var i=new n.Buf8(t.length),r=0,e=i.length;r<e;r++)i[r]=t.charCodeAt(r);return i},r.buf2string=function(t,i){var r,n,e,o,a=i||t.length,f=new Array(2*a);for(r=n=0;r<a;)if((e=t[r++])<128)f[n++]=e;else if(4<(o=s[e]))f[n++]=65533,r+=o-1;else{for(e&=2===o?31:3===o?15:7;1<o&&r<a;)e=e<<6|63&t[r++],o--;1<o?f[n++]=65533:e<65536?f[n++]=e:(f[n++]=55296|(e-=65536)>>10&1023,f[n++]=56320|1023&e)}return h(f,n)},r.utf8border=function(t,i){var r;for((i=i||t.length)>t.length&&(i=t.length),r=i-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?i:r+s[t[r]]>i?r:i}},{"./common":41}],43:[function(t,i){i.exports=function(t,i,r,n){for(var e=65535&t,o=t>>>16&65535,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;o=o+(e=e+i[n++]|0)|0,--s;);e%=65521,o%=65521}return e|o<<16}},{}],44:[function(t,i){i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,i){var r=function(){for(var t,i=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;i[r]=t}return i}();i.exports=function(t,i,n,e){var o=r,s=e+n;t^=-1;for(var a=e;a<s;a++)t=t>>>8^o[255&(t^i[a])];return~t}},{}],46:[function(t,i,r){var n,e=t("../utils/common"),o=t("./trees"),s=t("./adler32"),a=t("./crc32"),h=t("./messages"),f=-2,u=258,c=262,l=113;function d(t,i){return t.msg=h[i],i}function p(t){return(t<<1)-(4<t?9:0)}function m(t){for(var i=t.length;0<=--i;)t[i]=0}function b(t){var i=t.state,r=i.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(e.arraySet(t.output,i.pending_buf,i.pending_out,r,t.next_out),t.next_out+=r,i.pending_out+=r,t.total_out+=r,t.avail_out-=r,i.pending-=r,0===i.pending&&(i.pending_out=0))}function w(t,i){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,i),t.block_start=t.strstart,b(t.strm)}function v(t,i){t.pending_buf[t.pending++]=i}function x(t,i){t.pending_buf[t.pending++]=i>>>8&255,t.pending_buf[t.pending++]=255&i}function g(t,i){var r,n,e=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,h=t.strstart>t.w_size-c?t.strstart-(t.w_size-c):0,f=t.window,l=t.w_mask,d=t.prev,p=t.strstart+u,m=f[o+s-1],b=f[o+s];t.prev_length>=t.good_match&&(e>>=2),a>t.lookahead&&(a=t.lookahead);do{if(f[(r=i)+s]===b&&f[r+s-1]===m&&f[r]===f[o]&&f[++r]===f[o+1]){o+=2,r++;do{}while(f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&o<p);if(n=u-(p-o),o=p-u,s<n){if(t.match_start=i,a<=(s=n))break;m=f[o+s-1],b=f[o+s]}}}while((i=d[i&l])>h&&0!=--e);return s<=t.lookahead?s:t.lookahead}function y(t){var i,r,n,o,h,f,u,l,d,p,m=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=m+(m-c)){for(e.arraySet(t.window,t.window,m,m,0),t.match_start-=m,t.strstart-=m,t.block_start-=m,i=r=t.hash_size;n=t.head[--i],t.head[i]=m<=n?n-m:0,--r;);for(i=r=m;n=t.prev[--i],t.prev[i]=m<=n?n-m:0,--r;);o+=m}if(0===t.strm.avail_in)break;if(u=t.window,l=t.strstart+t.lookahead,p=void 0,(d=o)<(p=(f=t.strm).avail_in)&&(p=d),r=0===p?0:(f.avail_in-=p,e.arraySet(u,f.input,f.next_in,p,l),1===f.state.wrap?f.adler=s(f.adler,u,p,l):2===f.state.wrap&&(f.adler=a(f.adler,u,p,l)),f.next_in+=p,f.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=3)for(t.ins_h=t.window[h=t.strstart-t.insert],t.ins_h=(t.ins_h<<t.hash_shift^t.window[h+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[h+3-1])&t.hash_mask,t.prev[h&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=h,h++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<c&&0!==t.strm.avail_in)}function k(t,i){for(var r,n;;){if(t.lookahead<c){if(y(t),t.lookahead<c&&0===i)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-c&&(t.match_length=g(t,r)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}function E(t,i){for(var r,n,e;;){if(t.lookahead<c){if(y(t),t.lookahead<c&&0===i)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-c&&(t.match_length=g(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(e=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=e&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(w(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&w(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}function A(t,i,r,n,e){this.good_length=t,this.max_lazy=i,this.nice_length=r,this.max_chain=n,this.func=e}function j(){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=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(1146),this.dyn_dtree=new e.Buf16(122),this.bl_tree=new e.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(16),this.heap=new e.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function S(t){var i;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(i=t.state).pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap?42:l,t.adler=2===i.wrap?0:1,i.last_flush=0,o._tr_init(i),0):d(t,f)}function z(t){var i=S(t);return 0===i&&function(t){t.window_size=2*t.w_size,m(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),i}function B(t,i,r,n,o,s){if(!t)return f;var a=1;if(-1===i&&(i=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),o<1||9<o||8!==r||n<8||15<n||i<0||9<i||s<0||4<s)return d(t,f);8===n&&(n=9);var h=new j;return(t.state=h).strm=t,h.wrap=a,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=o+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new e.Buf8(2*h.w_size),h.head=new e.Buf16(h.hash_size),h.prev=new e.Buf16(h.w_size),h.lit_bufsize=1<<o+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new e.Buf8(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=i,h.strategy=s,h.method=r,z(t)}n=[new A(0,0,0,0,(function(t,i){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===i)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,w(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-c&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===i?(w(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&w(t,!1),1)})),new A(4,4,8,4,k),new A(4,5,16,8,k),new A(4,6,32,32,k),new A(4,4,16,16,E),new A(8,16,32,32,E),new A(8,16,128,128,E),new A(8,32,128,256,E),new A(32,128,258,1024,E),new A(32,258,258,4096,E)],r.deflateInit=function(t,i){return B(t,i,8,15,8,0)},r.deflateInit2=B,r.deflateReset=z,r.deflateResetKeep=S,r.deflateSetHeader=function(t,i){return t&&t.state?2!==t.state.wrap?f:(t.state.gzhead=i,0):f},r.deflate=function(t,i){var r,e,s,h;if(!t||!t.state||5<i||i<0)return t?d(t,f):f;if(e=t.state,!t.output||!t.input&&0!==t.avail_in||666===e.status&&4!==i)return d(t,0===t.avail_out?-5:f);if(e.strm=t,r=e.last_flush,e.last_flush=i,42===e.status)if(2===e.wrap)t.adler=0,v(e,31),v(e,139),v(e,8),e.gzhead?(v(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),v(e,255&e.gzhead.time),v(e,e.gzhead.time>>8&255),v(e,e.gzhead.time>>16&255),v(e,e.gzhead.time>>24&255),v(e,9===e.level?2:2<=e.strategy||e.level<2?4:0),v(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(v(e,255&e.gzhead.extra.length),v(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=a(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(v(e,0),v(e,0),v(e,0),v(e,0),v(e,0),v(e,9===e.level?2:2<=e.strategy||e.level<2?4:0),v(e,3),e.status=l);else{var c=8+(e.w_bits-8<<4)<<8;c|=(2<=e.strategy||e.level<2?0:e.level<6?1:6===e.level?2:3)<<6,0!==e.strstart&&(c|=32),c+=31-c%31,e.status=l,x(e,c),0!==e.strstart&&(x(e,t.adler>>>16),x(e,65535&t.adler)),t.adler=1}if(69===e.status)if(e.gzhead.extra){for(s=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),b(t),s=e.pending,e.pending!==e.pending_buf_size));)v(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(73===e.status)if(e.gzhead.name){s=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),b(t),s=e.pending,e.pending===e.pending_buf_size)){h=1;break}h=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,v(e,h)}while(0!==h);e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),0===h&&(e.gzindex=0,e.status=91)}else e.status=91;if(91===e.status)if(e.gzhead.comment){s=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),b(t),s=e.pending,e.pending===e.pending_buf_size)){h=1;break}h=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,v(e,h)}while(0!==h);e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),0===h&&(e.status=103)}else e.status=103;if(103===e.status&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&b(t),e.pending+2<=e.pending_buf_size&&(v(e,255&t.adler),v(e,t.adler>>8&255),t.adler=0,e.status=l)):e.status=l),0!==e.pending){if(b(t),0===t.avail_out)return e.last_flush=-1,0}else if(0===t.avail_in&&p(i)<=p(r)&&4!==i)return d(t,-5);if(666===e.status&&0!==t.avail_in)return d(t,-5);if(0!==t.avail_in||0!==e.lookahead||0!==i&&666!==e.status){var g=2===e.strategy?function(t,i){for(var r;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===i)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}(e,i):3===e.strategy?function(t,i){for(var r,n,e,s,a=t.window;;){if(t.lookahead<=u){if(y(t),t.lookahead<=u&&0===i)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(n=a[e=t.strstart-1])===a[++e]&&n===a[++e]&&n===a[++e]){s=t.strstart+u;do{}while(n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&e<s);t.match_length=u-(s-e),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}(e,i):n[e.level].func(e,i);if(3!==g&&4!==g||(e.status=666),1===g||3===g)return 0===t.avail_out&&(e.last_flush=-1),0;if(2===g&&(1===i?o._tr_align(e):5!==i&&(o._tr_stored_block(e,0,0,!1),3===i&&(m(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),b(t),0===t.avail_out))return e.last_flush=-1,0}return 4!==i?0:e.wrap<=0?1:(2===e.wrap?(v(e,255&t.adler),v(e,t.adler>>8&255),v(e,t.adler>>16&255),v(e,t.adler>>24&255),v(e,255&t.total_in),v(e,t.total_in>>8&255),v(e,t.total_in>>16&255),v(e,t.total_in>>24&255)):(x(e,t.adler>>>16),x(e,65535&t.adler)),b(t),0<e.wrap&&(e.wrap=-e.wrap),0!==e.pending?0:1)},r.deflateEnd=function(t){var i;return t&&t.state?42!==(i=t.state.status)&&69!==i&&73!==i&&91!==i&&103!==i&&i!==l&&666!==i?d(t,f):(t.state=null,i===l?d(t,-3):0):f},r.deflateSetDictionary=function(t,i){var r,n,o,a,h,u,c,l,d=i.length;if(!t||!t.state)return f;if(2===(a=(r=t.state).wrap)||1===a&&42!==r.status||r.lookahead)return f;for(1===a&&(t.adler=s(t.adler,i,d,0)),r.wrap=0,d>=r.w_size&&(0===a&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new e.Buf8(r.w_size),e.arraySet(l,i,d-r.w_size,r.w_size,0),i=l,d=r.w_size),h=t.avail_in,u=t.next_in,c=t.input,t.avail_in=d,t.next_in=0,t.input=i,y(r);r.lookahead>=3;){for(n=r.strstart,o=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=2,y(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=u,t.input=c,t.avail_in=h,r.wrap=a,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,i){i.exports=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}},{}],48:[function(t,i){i.exports=function(t,i){var r,n,e,o,s,a,h,f,u,c,l,d,p,m,b,w,v,x,g,y,k,E,A,j,S;j=t.input,e=(n=t.next_in)+(t.avail_in-5),S=t.output,s=(o=t.next_out)-(i-t.avail_out),a=o+(t.avail_out-257),h=(r=t.state).dmax,f=r.wsize,u=r.whave,c=r.wnext,l=r.window,d=r.hold,p=r.bits,m=r.lencode,b=r.distcode,w=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{p<15&&(d+=j[n++]<<p,d+=j[n++]<<(p+=8),p+=8),x=m[d&w];i:for(;;){if(d>>>=g=x>>>24,p-=g,0==(g=x>>>16&255))S[o++]=65535&x;else{if(!(16&g)){if(!(64&g)){x=m[(65535&x)+(d&(1<<g)-1)];continue i}if(32&g){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}y=65535&x,(g&=15)&&(p<g&&(d+=j[n++]<<p,p+=8),y+=d&(1<<g)-1,d>>>=g,p-=g),p<15&&(d+=j[n++]<<p,d+=j[n++]<<(p+=8),p+=8),x=b[d&v];r:for(;;){if(d>>>=g=x>>>24,p-=g,!(16&(g=x>>>16&255))){if(!(64&g)){x=b[(65535&x)+(d&(1<<g)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&x,p<(g&=15)&&(d+=j[n++]<<p,(p+=8)<g&&(d+=j[n++]<<p,p+=8)),h<(k+=d&(1<<g)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=g,p-=g,(g=o-s)<k){if(u<(g=k-g)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(A=l,(E=0)===c){if(E+=f-g,g<y){for(y-=g;S[o++]=l[E++],--g;);E=o-k,A=S}}else if(c<g){if(E+=f+c-g,(g-=c)<y){for(y-=g;S[o++]=l[E++],--g;);if(E=0,c<y){for(y-=g=c;S[o++]=l[E++],--g;);E=o-k,A=S}}}else if(E+=c-g,g<y){for(y-=g;S[o++]=l[E++],--g;);E=o-k,A=S}for(;2<y;)S[o++]=A[E++],S[o++]=A[E++],S[o++]=A[E++],y-=3;y&&(S[o++]=A[E++],1<y&&(S[o++]=A[E++]))}else{for(E=o-k;S[o++]=S[E++],S[o++]=S[E++],S[o++]=S[E++],2<(y-=3););y&&(S[o++]=S[E++],1<y&&(S[o++]=S[E++]))}break}}break}}while(n<e&&o<a);n-=y=p>>3,d&=(1<<(p-=y<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<e?e-n+5:5-(n-e),t.avail_out=o<a?a-o+257:257-(o-a),r.hold=d,r.bits=p}},{}],49:[function(t,i,r){var n=t("../utils/common"),e=t("./adler32"),o=t("./crc32"),s=t("./inffast"),a=t("./inftrees"),h=-2;function f(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(t){var i;return t&&t.state?(t.total_in=t.total_out=(i=t.state).total=0,t.msg="",i.wrap&&(t.adler=1&i.wrap),i.mode=1,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new n.Buf32(852),i.distcode=i.distdyn=new n.Buf32(592),i.sane=1,i.back=-1,0):h}function l(t){var i;return t&&t.state?((i=t.state).wsize=0,i.whave=0,i.wnext=0,c(t)):h}function d(t,i){var r,n;return t&&t.state?(n=t.state,i<0?(r=0,i=-i):(r=1+(i>>4),i<48&&(i&=15)),i&&(i<8||15<i)?h:(null!==n.window&&n.wbits!==i&&(n.window=null),n.wrap=r,n.wbits=i,l(t))):h}function p(t,i){var r,n;return t?(n=new u,(t.state=n).window=null,0!==(r=d(t,i))&&(t.state=null),r):h}var m,b,w=!0;function v(t){if(w){var i;for(m=new n.Buf32(512),b=new n.Buf32(32),i=0;i<144;)t.lens[i++]=8;for(;i<256;)t.lens[i++]=9;for(;i<280;)t.lens[i++]=7;for(;i<288;)t.lens[i++]=8;for(a(1,t.lens,0,288,m,0,t.work,{bits:9}),i=0;i<32;)t.lens[i++]=5;a(2,t.lens,0,32,b,0,t.work,{bits:5}),w=!1}t.lencode=m,t.lenbits=9,t.distcode=b,t.distbits=5}function x(t,i,r,e){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),e>=s.wsize?(n.arraySet(s.window,i,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(e<(o=s.wsize-s.wnext)&&(o=e),n.arraySet(s.window,i,r-e,o,s.wnext),(e-=o)?(n.arraySet(s.window,i,r-e,e,0),s.wnext=e,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}r.inflateReset=l,r.inflateReset2=d,r.inflateResetKeep=c,r.inflateInit=function(t){return p(t,15)},r.inflateInit2=p,r.inflate=function(t,i){var r,u,c,l,d,p,m,b,w,g,y,k,E,A,j,S,z,B,C,O,U,D,T,R,F=0,P=new n.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(r=t.state).mode&&(r.mode=13),d=t.next_out,c=t.output,l=t.next_in,u=t.input,b=r.hold,w=r.bits,g=p=t.avail_in,y=m=t.avail_out,D=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(2&r.wrap&&35615===b){P[r.check=0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0),w=b=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",r.mode=30;break}if(w-=4,U=8+(15&(b>>>=4)),0===r.wbits)r.wbits=U;else if(U>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<U,t.adler=r.check=1,r.mode=512&b?10:12,w=b=0;break;case 2:for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(r.flags=b,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=b>>8&1),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0)),w=b=0,r.mode=3;case 3:for(;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.head&&(r.head.time=b),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,P[2]=b>>>16&255,P[3]=b>>>24&255,r.check=o(r.check,P,4,0)),w=b=0,r.mode=4;case 4:for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.head&&(r.head.xflags=255&b,r.head.os=b>>8),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0)),w=b=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.length=b,r.head&&(r.head.extra_len=b),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0)),w=b=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(k=r.length)&&(k=p),k&&(r.head&&(U=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,l,k,U)),512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,r.length-=k),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break t;for(k=0;U=u[l+k++],r.head&&U&&r.length<65536&&(r.head.name+=String.fromCharCode(U)),U&&k<p;);if(512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,U)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break t;for(k=0;U=u[l+k++],r.head&&U&&r.length<65536&&(r.head.comment+=String.fromCharCode(U)),U&&k<p;);if(512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,U)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(b!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}w=b=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}t.adler=r.check=f(b),w=b=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=d,t.avail_out=m,t.next_in=l,t.avail_in=p,r.hold=b,r.bits=w,2;t.adler=r.check=1,r.mode=12;case 12:if(5===i||6===i)break t;case 13:if(r.last){b>>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}switch(r.last=1&b,w-=1,3&(b>>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6!==i)break;b>>>=2,w-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&b,w=b=0,r.mode=15,6===i)break t;case 15:r.mode=16;case 16:if(k=r.length){if(p<k&&(k=p),m<k&&(k=m),0===k)break t;n.arraySet(c,u,l,k,d),p-=k,l+=k,m-=k,d+=k,r.length-=k;break}r.mode=12;break;case 17:for(;w<14;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(r.nlen=257+(31&b),w-=5,r.ndist=1+(31&(b>>>=5)),w-=5,r.ncode=4+(15&(b>>>=5)),b>>>=4,w-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;w<3;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.lens[I[r.have++]]=7&b,b>>>=3,w-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,D=a(0,r.lens,0,19,r.lencode,0,r.work,T={bits:r.lenbits}),r.lenbits=T.bits,D){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;S=(F=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,z=65535&F,!((j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(z<16)b>>>=j,w-=j,r.lens[r.have++]=z;else{if(16===z){for(R=j+2;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(b>>>=j,w-=j,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}U=r.lens[r.have-1],k=3+(3&b),b>>>=2,w-=2}else if(17===z){for(R=j+3;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}w-=j,U=0,k=3+(7&(b>>>=j)),b>>>=3,w-=3}else{for(R=j+7;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}w-=j,U=0,k=11+(127&(b>>>=j)),b>>>=7,w-=7}if(r.have+k>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=U}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,D=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,T={bits:r.lenbits}),r.lenbits=T.bits,D){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,D=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,T={bits:r.distbits}),r.distbits=T.bits,D){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===i)break t;case 20:r.mode=21;case 21:if(6<=p&&258<=m){t.next_out=d,t.avail_out=m,t.next_in=l,t.avail_in=p,r.hold=b,r.bits=w,s(t,y),d=t.next_out,c=t.output,m=t.avail_out,l=t.next_in,u=t.input,p=t.avail_in,b=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;S=(F=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,z=65535&F,!((j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(S&&!(240&S)){for(B=j,C=S,O=z;S=(F=r.lencode[O+((b&(1<<B+C)-1)>>B)])>>>16&255,z=65535&F,!(B+(j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}b>>>=B,w-=B,r.back+=B}if(b>>>=j,w-=j,r.back+=j,r.length=z,0===S){r.mode=26;break}if(32&S){r.back=-1,r.mode=12;break}if(64&S){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&S,r.mode=22;case 22:if(r.extra){for(R=r.extra;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;S=(F=r.distcode[b&(1<<r.distbits)-1])>>>16&255,z=65535&F,!((j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(!(240&S)){for(B=j,C=S,O=z;S=(F=r.distcode[O+((b&(1<<B+C)-1)>>B)])>>>16&255,z=65535&F,!(B+(j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}b>>>=B,w-=B,r.back+=B}if(b>>>=j,w-=j,r.back+=j,64&S){t.msg="invalid distance code",r.mode=30;break}r.offset=z,r.extra=15&S,r.mode=24;case 24:if(r.extra){for(R=r.extra;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break t;if(r.offset>(k=y-m)){if((k=r.offset-k)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}E=k>r.wnext?r.wsize-(k-=r.wnext):r.wnext-k,k>r.length&&(k=r.length),A=r.window}else A=c,E=d-r.offset,k=r.length;for(m<k&&(k=m),m-=k,r.length-=k;c[d++]=A[E++],--k;);0===r.length&&(r.mode=21);break;case 26:if(0===m)break t;c[d++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===p)break t;p--,b|=u[l++]<<w,w+=8}if(t.total_out+=y-=m,r.total+=y,y&&(t.adler=r.check=r.flags?o(r.check,c,y,d-y):e(r.check,c,y,d-y)),y=m,(r.flags?b:f(b))!==r.check){t.msg="incorrect data check",r.mode=30;break}w=b=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(b!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}w=b=0}r.mode=29;case 29:D=1;break t;case 30:D=-3;break t;case 31:return-4;default:return h}return t.next_out=d,t.avail_out=m,t.next_in=l,t.avail_in=p,r.hold=b,r.bits=w,(r.wsize||y!==t.avail_out&&r.mode<30&&(r.mode<27||4!==i))&&x(t,t.output,t.next_out,y-t.avail_out)?(r.mode=31,-4):(y-=t.avail_out,t.total_in+=g-=t.avail_in,t.total_out+=y,r.total+=y,r.wrap&&y&&(t.adler=r.check=r.flags?o(r.check,c,y,t.next_out-y):e(r.check,c,y,t.next_out-y)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==g&&0===y||4===i)&&0===D&&(D=-5),D)},r.inflateEnd=function(t){if(!t||!t.state)return h;var i=t.state;return i.window&&(i.window=null),t.state=null,0},r.inflateGetHeader=function(t,i){var r;return t&&t.state&&2&(r=t.state).wrap?((r.head=i).done=!1,0):h},r.inflateSetDictionary=function(t,i){var r,n=i.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?h:11===r.mode&&e(1,i,n,0)!==r.check?-3:x(t,i,n,n)?(r.mode=31,-4):(r.havedict=1,0):h},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,i){var r=t("../utils/common"),n=[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],e=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[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],s=[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];i.exports=function(t,i,a,h,f,u,c,l){var d,p,m,b,w,v,x,g,y,k=l.bits,E=0,A=0,j=0,S=0,z=0,B=0,C=0,O=0,U=0,D=0,T=null,R=0,F=new r.Buf16(16),P=new r.Buf16(16),I=null,X=0;for(E=0;E<=15;E++)F[E]=0;for(A=0;A<h;A++)F[i[a+A]]++;for(z=k,S=15;1<=S&&0===F[S];S--);if(S<z&&(z=S),0===S)return f[u++]=20971520,f[u++]=20971520,l.bits=1,0;for(j=1;j<S&&0===F[j];j++);for(z<j&&(z=j),E=O=1;E<=15;E++)if(O<<=1,(O-=F[E])<0)return-1;if(0<O&&(0===t||1!==S))return-1;for(P[1]=0,E=1;E<15;E++)P[E+1]=P[E]+F[E];for(A=0;A<h;A++)0!==i[a+A]&&(c[P[i[a+A]]++]=A);if(v=0===t?(T=I=c,19):1===t?(T=n,R-=257,I=e,X-=257,256):(T=o,I=s,-1),E=j,w=u,C=A=D=0,m=-1,b=(U=1<<(B=z))-1,1===t&&852<U||2===t&&592<U)return 1;for(;;){for(x=E-C,y=c[A]<v?(g=0,c[A]):c[A]>v?(g=I[X+c[A]],T[R+c[A]]):(g=96,0),d=1<<E-C,j=p=1<<B;f[w+(D>>C)+(p-=d)]=x<<24|g<<16|y,0!==p;);for(d=1<<E-1;D&d;)d>>=1;if(0!==d?(D&=d-1,D+=d):D=0,A++,0==--F[E]){if(E===S)break;E=i[a+c[A]]}if(z<E&&(D&b)!==m){for(0===C&&(C=z),w+=j,O=1<<(B=E-C);B+C<S&&!((O-=F[B+C])<=0);)B++,O<<=1;if(U+=1<<B,1===t&&852<U||2===t&&592<U)return 1;f[m=D&b]=z<<24|B<<16|w-u}}return 0!==D&&(f[w+D]=E-C<<24|64<<16),l.bits=z,0}},{"../utils/common":41}],51:[function(t,i){i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,i,r){var n=t("../utils/common");function e(t){for(var i=t.length;0<=--i;)t[i]=0}var o=256,s=286,a=30,h=15,f=[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],u=[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],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);e(d);var p=new Array(60);e(p);var m=new Array(512);e(m);var b=new Array(256);e(b);var w=new Array(29);e(w);var v,x,g,y=new Array(a);function k(t,i,r,n,e){this.static_tree=t,this.extra_bits=i,this.extra_base=r,this.elems=n,this.max_length=e,this.has_stree=t&&t.length}function E(t,i){this.dyn_tree=t,this.max_code=0,this.stat_desc=i}function A(t){return t<256?m[t]:m[256+(t>>>7)]}function j(t,i){t.pending_buf[t.pending++]=255&i,t.pending_buf[t.pending++]=i>>>8&255}function S(t,i,r){t.bi_valid>16-r?(t.bi_buf|=i<<t.bi_valid&65535,j(t,t.bi_buf),t.bi_buf=i>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=i<<t.bi_valid&65535,t.bi_valid+=r)}function z(t,i,r){S(t,r[2*i],r[2*i+1])}function B(t,i){for(var r=0;r|=1&t,t>>>=1,r<<=1,0<--i;);return r>>>1}function C(t,i,r){var n,e,o=new Array(16),s=0;for(n=1;n<=h;n++)o[n]=s=s+r[n-1]<<1;for(e=0;e<=i;e++){var a=t[2*e+1];0!==a&&(t[2*e]=B(o[a]++,a))}}function O(t){var i;for(i=0;i<s;i++)t.dyn_ltree[2*i]=0;for(i=0;i<a;i++)t.dyn_dtree[2*i]=0;for(i=0;i<19;i++)t.bl_tree[2*i]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function U(t){8<t.bi_valid?j(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function D(t,i,r,n){var e=2*i,o=2*r;return t[e]<t[o]||t[e]===t[o]&&n[i]<=n[r]}function T(t,i,r){for(var n=t.heap[r],e=r<<1;e<=t.heap_len&&(e<t.heap_len&&D(i,t.heap[e+1],t.heap[e],t.depth)&&e++,!D(i,n,t.heap[e],t.depth));)t.heap[r]=t.heap[e],r=e,e<<=1;t.heap[r]=n}function R(t,i,r){var n,e,s,a,h=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*h]<<8|t.pending_buf[t.d_buf+2*h+1],e=t.pending_buf[t.l_buf+h],h++,0===n?z(t,e,i):(z(t,(s=b[e])+o+1,i),0!==(a=f[s])&&S(t,e-=w[s],a),z(t,s=A(--n),r),0!==(a=u[s])&&S(t,n-=y[s],a)),h<t.last_lit;);z(t,256,i)}function F(t,i){var r,n,e,o=i.dyn_tree,s=i.stat_desc.static_tree,a=i.stat_desc.has_stree,f=i.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<f;r++)0!==o[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(e=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[e]=0,t.opt_len--,a&&(t.static_len-=s[2*e+1]);for(i.max_code=u,r=t.heap_len>>1;1<=r;r--)T(t,o,r);for(e=f;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*e]=o[2*r]+o[2*n],t.depth[e]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=e,t.heap[1]=e++,T(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,i){var r,n,e,o,s,a,f=i.dyn_tree,u=i.max_code,c=i.stat_desc.static_tree,l=i.stat_desc.has_stree,d=i.stat_desc.extra_bits,p=i.stat_desc.extra_base,m=i.stat_desc.max_length,b=0;for(o=0;o<=h;o++)t.bl_count[o]=0;for(f[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)m<(o=f[2*f[2*(n=t.heap[r])+1]+1]+1)&&(o=m,b++),f[2*n+1]=o,u<n||(t.bl_count[o]++,s=0,p<=n&&(s=d[n-p]),t.opt_len+=(a=f[2*n])*(o+s),l&&(t.static_len+=a*(c[2*n+1]+s)));if(0!==b){do{for(o=m-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[m]--,b-=2}while(0<b);for(o=m;0!==o;o--)for(n=t.bl_count[o];0!==n;)u<(e=t.heap[--r])||(f[2*e+1]!==o&&(t.opt_len+=(o-f[2*e+1])*f[2*e],f[2*e+1]=o),n--)}}(t,i),C(o,u,t.bl_count)}function P(t,i,r){var n,e,o=-1,s=i[1],a=0,h=7,f=4;for(0===s&&(h=138,f=3),i[2*(r+1)+1]=65535,n=0;n<=r;n++)e=s,s=i[2*(n+1)+1],++a<h&&e===s||(a<f?t.bl_tree[2*e]+=a:0!==e?(e!==o&&t.bl_tree[2*e]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=e,f=(a=0)===s?(h=138,3):e===s?(h=6,3):(h=7,4))}function I(t,i,r){var n,e,o=-1,s=i[1],a=0,h=7,f=4;for(0===s&&(h=138,f=3),n=0;n<=r;n++)if(e=s,s=i[2*(n+1)+1],!(++a<h&&e===s)){if(a<f)for(;z(t,e,t.bl_tree),0!=--a;);else 0!==e?(e!==o&&(z(t,e,t.bl_tree),a--),z(t,16,t.bl_tree),S(t,a-3,2)):a<=10?(z(t,17,t.bl_tree),S(t,a-3,3)):(z(t,18,t.bl_tree),S(t,a-11,7));o=e,f=(a=0)===s?(h=138,3):e===s?(h=6,3):(h=7,4)}}e(y);var X=!1;function _(t,i,r,e){S(t,0+(e?1:0),3),function(t,i,r){U(t),j(t,r),j(t,~r),n.arraySet(t.pending_buf,t.window,i,r,t.pending),t.pending+=r}(t,i,r)}r._tr_init=function(t){X||(function(){var t,i,r,n,e,o=new Array(16);for(n=r=0;n<28;n++)for(w[n]=r,t=0;t<1<<f[n];t++)b[r++]=n;for(b[r-1]=n,n=e=0;n<16;n++)for(y[n]=e,t=0;t<1<<u[n];t++)m[e++]=n;for(e>>=7;n<a;n++)for(y[n]=e<<7,t=0;t<1<<u[n]-7;t++)m[256+e++]=n;for(i=0;i<=h;i++)o[i]=0;for(t=0;t<=143;)d[2*t+1]=8,t++,o[8]++;for(;t<=255;)d[2*t+1]=9,t++,o[9]++;for(;t<=279;)d[2*t+1]=7,t++,o[7]++;for(;t<=287;)d[2*t+1]=8,t++,o[8]++;for(C(d,287,o),t=0;t<a;t++)p[2*t+1]=5,p[2*t]=B(t,5);v=new k(d,f,257,s,h),x=new k(p,u,0,a,h),g=new k(new Array(0),c,0,19,7)}(),X=!0),t.l_desc=new E(t.dyn_ltree,v),t.d_desc=new E(t.dyn_dtree,x),t.bl_desc=new E(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,O(t)},r._tr_stored_block=_,r._tr_flush_block=function(t,i,r,n){var e,s,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var i,r=4093624447;for(i=0;i<=31;i++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*i])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(i=32;i<o;i++)if(0!==t.dyn_ltree[2*i])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),a=function(t){var i;for(P(t,t.dyn_ltree,t.l_desc.max_code),P(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),i=18;3<=i&&0===t.bl_tree[2*l[i]+1];i--);return t.opt_len+=3*(i+1)+5+5+4,i}(t),(s=t.static_len+3+7>>>3)<=(e=t.opt_len+3+7>>>3)&&(e=s)):e=s=r+5,r+4<=e&&-1!==i?_(t,i,r,n):4===t.strategy||s===e?(S(t,2+(n?1:0),3),R(t,d,p)):(S(t,4+(n?1:0),3),function(t,i,r,n){var e;for(S(t,i-257,5),S(t,r-1,5),S(t,n-4,4),e=0;e<n;e++)S(t,t.bl_tree[2*l[e]+1],3);I(t,t.dyn_ltree,i-1),I(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),R(t,t.dyn_ltree,t.dyn_dtree)),O(t),n&&U(t)},r._tr_tally=function(t,i,r){return t.pending_buf[t.d_buf+2*t.last_lit]=i>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&i,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===i?t.dyn_ltree[2*r]++:(t.matches++,i--,t.dyn_ltree[2*(b[r]+o+1)]++,t.dyn_dtree[2*A(i)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){S(t,2,3),z(t,256,d),function(t){16===t.bi_valid?(j(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,i){i.exports=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}},{}],54:[function(){(function(t){!function(t){if(!t.setImmediate){var i,r,n,e,o=1,s={},a=!1,h=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,i="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){c(t)}))}:function(){if(t.postMessage&&!t.importScripts){var i=!0,r=t.onmessage;return t.onmessage=function(){i=!1},t.postMessage("","*"),t.onmessage=r,i}}()?(e="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",l,!1):t.attachEvent("onmessage",l),function(i){t.postMessage(e+i,"*")}):t.MessageChannel?((n=new MessageChannel).port1.onmessage=function(t){c(t.data)},function(t){n.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,function(t){var i=h.createElement("script");i.onreadystatechange=function(){c(t),i.onreadystatechange=null,r.removeChild(i),i=null},r.appendChild(i)}):function(t){setTimeout(c,0,t)},f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];return s[o]={callback:t,args:r},i(o),o++},f.clearImmediate=u}function u(t){delete s[t]}function c(t){if(a)setTimeout(c,0,t);else{var i=s[t];if(i){a=!0;try{!function(t){var i=t.callback,r=t.args;switch(r.length){case 0:i();break;case 1:i(r[0]);break;case 2:i(r[0],r[1]);break;case 3:i(r[0],r[1],r[2]);break;default:i.apply(undefined,r)}}(i)}finally{u(t),a=!1}}}}function l(i){i.source===t&&"string"==typeof i.data&&0===i.data.indexOf(e)&&c(+i.data.slice(e.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)),et.exports),st=i(ot);
1
+ import{G as t,I as i,t as r,p as n,H as e,J as o,A as s,K as a,M as h,q as f,N as u,O as c,P as l,Q as d,U as p,V as m,W as b,X as w,getAssetPath as v,Y as x,w as g,h as y,T as k,f as E,Z as A,S as j,_ as z,j as S,n as B,$ as C,b as O,c as U,a0 as D,a1 as T,a2 as R}from"./index.js";import{c as F,d as P}from"./p-C5jvgiPE.js";import{d as I,i as _}from"./p-BOQDbCrm.js";import{d as Z}from"./p-BeRr8u5m.js";import{d as X}from"./p-BfqihbR6.js";import{d as W}from"./p-B4YAipq-.js";import{d as N}from"./p-C5WmmkI6.js";import{d as L}from"./p-CgsPIpg0.js";import{d as G}from"./p-CTlcpv4a.js";import{d as Y}from"./p-CljvnHkI.js";import{d as M}from"./p-DVTigdH_.js";import{d as $}from"./p-DLyacZap.js";import{d as H}from"./p-BJMjg5wu.js";import{d as J}from"./p-B8nzzM8c.js";import{d as K}from"./p-CXHPZN3m.js";import{d as q}from"./p-DONbWJGn.js";import{d as Q}from"./p-C70ykycD.js";import{d as V}from"./p-CwIlwnQk.js";import{d as tt}from"./p-BBHM059l.js";import{d as it}from"./p-BAfFgI9q.js";import{d as rt}from"./p-CCR42e0i.js";var nt,et={exports:{}},ot=(nt||(nt=1,et.exports=function t(i,r,n){function e(s,a){if(!r[s]){if(!i[s]){var h="function"==typeof F&&F;if(!a&&h)return h(s,!0);if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var u=r[s]={exports:{}};i[s][0].call(u.exports,(function(t){return e(i[s][1][t]||t)}),u,u.exports,t,i,r,n)}return r[s].exports}for(var o="function"==typeof F&&F,s=0;s<n.length;s++)e(n[s]);return e}({1:[function(t,i,r){var n=t("./utils"),e=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t){for(var i,r,e,s,a,h,f=[],u=0,c=t.length,l=c,d="string"!==n.getTypeOf(t);u<t.length;)l=c-u,e=d?(i=t[u++],r=u<c?t[u++]:0,u<c?t[u++]:0):(i=t.charCodeAt(u++),r=u<c?t.charCodeAt(u++):0,u<c?t.charCodeAt(u++):0),s=(3&i)<<4|r>>4,a=1<l?(15&r)<<2|e>>6:64,h=2<l?63&e:64,f.push(o.charAt(i>>2)+o.charAt(s)+o.charAt(a)+o.charAt(h));return f.join("")},r.decode=function(t){var i,r,n,s,a,h,f=0,u=0,c="data:";if(t.substr(0,5)===c)throw new Error("Invalid base64 input, it looks like a data url.");var l,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&d--,t.charAt(t.length-2)===o.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=e.uint8array?new Uint8Array(0|d):new Array(0|d);f<t.length;)i=o.indexOf(t.charAt(f++))<<2|(s=o.indexOf(t.charAt(f++)))>>4,r=(15&s)<<4|(a=o.indexOf(t.charAt(f++)))>>2,n=(3&a)<<6|(h=o.indexOf(t.charAt(f++))),l[u++]=i,64!==a&&(l[u++]=r),64!==h&&(l[u++]=n);return l}},{"./support":30,"./utils":32}],2:[function(t,i){var r=t("./external"),n=t("./stream/DataWorker"),e=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function s(t,i,r,n,e){this.compressedSize=t,this.uncompressedSize=i,this.crc32=r,this.compression=n,this.compressedContent=e}s.prototype={getContentWorker:function(){var t=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),i=this;return t.on("end",(function(){if(this.streamInfo.data_length!==i.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,i,r){return t.pipe(new e).pipe(new o("uncompressedSize")).pipe(i.compressWorker(r)).pipe(new o("compressedSize")).withStreamInfo("compression",i)},i.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,r){var n=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i){var r=t("./utils"),n=function(){for(var t,i=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;i[r]=t}return i}();i.exports=function(t,i){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,i,r){var e=n,o=0+r;t^=-1;for(var s=0;s<o;s++)t=t>>>8^e[255&(t^i[s])];return~t}(0|i,t,t.length):function(t,i,r){var e=n,o=0+r;t^=-1;for(var s=0;s<o;s++)t=t>>>8^e[255&(t^i.charCodeAt(s))];return~t}(0|i,t,t.length):0}},{"./utils":32}],5:[function(t,i,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,i){var r;r="undefined"!=typeof Promise?Promise:t("lie"),i.exports={Promise:r}},{lie:37}],7:[function(t,i,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),a=n?"uint8array":"array";function h(t,i){s.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=i,this.meta={}}r.magic="\b\0",o.inherits(h,s),h.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,t.data),!1)},h.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(i){t.push({data:i,meta:t.meta})}},r.compressWorker=function(t){return new h("Deflate",t)},r.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,i){function r(t,i){var r,n="";for(r=0;r<i;r++)n+=String.fromCharCode(255&t),t>>>=8;return n}function n(t,i,n,o,f,u){var c,l,d=t.file,p=t.compression,m=u!==s.utf8encode,b=e.transformTo("string",u(d.name)),w=e.transformTo("string",s.utf8encode(d.name)),v=d.comment,x=e.transformTo("string",u(v)),g=e.transformTo("string",s.utf8encode(v)),y=w.length!==d.name.length,k=g.length!==v.length,E="",A="",j="",z=d.dir,S=d.date,B={crc32:0,compressedSize:0,uncompressedSize:0};i&&!n||(B.crc32=t.crc32,B.compressedSize=t.compressedSize,B.uncompressedSize=t.uncompressedSize);var C=0;i&&(C|=8),m||!y&&!k||(C|=2048);var O=0,U=0;z&&(O|=16),"UNIX"===f?(U=798,O|=function(t,i){var r=t;return t||(r=i?16893:33204),(65535&r)<<16}(d.unixPermissions,z)):(U=20,O|=function(t){return 63&(t||0)}(d.dosPermissions)),c=S.getUTCHours(),c<<=6,c|=S.getUTCMinutes(),c<<=5,c|=S.getUTCSeconds()/2,l=S.getUTCFullYear()-1980,l<<=4,l|=S.getUTCMonth()+1,l<<=5,l|=S.getUTCDate(),y&&(A=r(1,1)+r(a(b),4)+w,E+="up"+r(A.length,2)+A),k&&(j=r(1,1)+r(a(x),4)+g,E+="uc"+r(j.length,2)+j);var D="";return D+="\n\0",D+=r(C,2),D+=p.magic,D+=r(c,2),D+=r(l,2),D+=r(B.crc32,4),D+=r(B.compressedSize,4),D+=r(B.uncompressedSize,4),D+=r(b.length,2),D+=r(E.length,2),{fileRecord:h.LOCAL_FILE_HEADER+D+b+E,dirRecord:h.CENTRAL_FILE_HEADER+r(U,2)+D+r(x.length,2)+"\0\0\0\0"+r(O,4)+r(o,4)+b+E+x}}var e=t("../utils"),o=t("../stream/GenericWorker"),s=t("../utf8"),a=t("../crc32"),h=t("../signature");function f(t,i,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=i,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}e.inherits(f,o),f.prototype.push=function(t){var i=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(i+100*(r-n-1))/r:100}}))},f.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var i=this.streamFiles&&!t.file.dir;if(i){var r=n(t,i,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(t){this.accumulate=!1;var i=this.streamFiles&&!t.file.dir,e=n(t,i,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(e.dirRecord),i)this.push({data:function(t){return h.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:e.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var t=this.bytesWritten,i=0;i<this.dirRecords.length;i++)this.push({data:this.dirRecords[i],meta:{percent:100}});var n=function(t,i,n,o,s){var a=e.transformTo("string",s(o));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(t,2)+r(t,2)+r(i,4)+r(n,4)+r(a.length,2)+a}(this.dirRecords.length,this.bytesWritten-t,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(t){this._sources.push(t);var i=this;return t.on("data",(function(t){i.processChunk(t)})),t.on("end",(function(){i.closedSource(i.previous.streamInfo),i._sources.length?i.prepareNextSource():i.end()})),t.on("error",(function(t){i.error(t)})),this},f.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(t){var i=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var r=0;r<i.length;r++)try{i[r].error(t)}catch(t){}return!0},f.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,i=0;i<t.length;i++)t[i].lock()},i.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,i,r){var n=t("../compressions"),e=t("./ZipFileWorker");r.generateWorker=function(t,i,r){var o=new e(i.streamFiles,r,i.platform,i.encodeFileName),s=0;try{t.forEach((function(t,r){s++;var e=function(t,i){var r=t||i,e=n[r];if(!e)throw new Error(r+" is not a valid compression method !");return e}(r.options.compression,i.compression),a=r.dir,h=r.date;r._compressWorker(e,r.options.compressionOptions||i.compressionOptions||{}).withStreamInfo("file",{name:t,dir:a,date:h,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)})),o.entriesCount=s}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,i){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new r;for(var i in this)"function"!=typeof this[i]&&(t[i]=this[i]);return t}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.2",r.loadAsync=function(t,i){return(new r).loadAsync(t,i)},r.external=t("./external"),i.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,i){var r=t("./utils"),n=t("./external"),e=t("./utf8"),o=t("./zipEntries"),s=t("./stream/Crc32Probe"),a=t("./nodejsUtils");function h(t){return new n.Promise((function(i,r){var n=t.decompressed.getContentWorker().pipe(new s);n.on("error",(function(t){r(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):i()})).resume()}))}i.exports=function(t,i){var s=this;return i=r.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:e.utf8decode}),a.isNode&&a.isStream(t)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",t,!0,i.optimizedBinaryString,i.base64).then((function(t){var r=new o(i);return r.load(t),r})).then((function(t){var r=[n.Promise.resolve(t)],e=t.files;if(i.checkCRC32)for(var o=0;o<e.length;o++)r.push(h(e[o]));return n.Promise.all(r)})).then((function(t){for(var n=t.shift(),e=n.files,o=0;o<e.length;o++){var a=e[o],h=a.fileNameStr,f=r.resolve(a.fileNameStr);s.file(f,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:i.createFolders}),a.dir||(s.file(f).unsafeOriginalName=h)}return n.zipComment.length&&(s.comment=n.zipComment),s}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,i){var r=t("../utils"),n=t("../stream/GenericWorker");function e(t,i){n.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(i)}r.inherits(e,n),e.prototype._bindStream=function(t){var i=this;(this._stream=t).pause(),t.on("data",(function(t){i.push({data:t,meta:{percent:0}})})).on("error",(function(t){i.isPaused?this.generatedError=t:i.error(t)})).on("end",(function(){i.isPaused?i._upstreamEnded=!0:i.end()}))},e.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},e.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=e},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,i){var r=t("readable-stream").Readable;function n(t,i,n){r.call(this,i),this._helper=t;var e=this;t.on("data",(function(t,i){e.push(t)||e._helper.pause(),n&&n(i)})).on("error",(function(t){e.emit("error",t)})).on("end",(function(){e.push(null)}))}t("../utils").inherits(n,r),n.prototype._read=function(){this._helper.resume()},i.exports=n},{"../utils":32,"readable-stream":16}],14:[function(t,i){i.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,i){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,i);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,i)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var i=new Buffer(t);return i.fill(0),i},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,i){function r(t,i,r){var n,s=e.getTypeOf(i),u=e.extend(r||{},a);u.date=u.date||new Date,null!==u.compression&&(u.compression=u.compression.toUpperCase()),"string"==typeof u.unixPermissions&&(u.unixPermissions=parseInt(u.unixPermissions,8)),u.unixPermissions&&16384&u.unixPermissions&&(u.dir=!0),u.dosPermissions&&16&u.dosPermissions&&(u.dir=!0),u.dir&&(t=p(t)),u.createFolders&&(n=d(t))&&m.call(this,n,!0),r&&void 0!==r.binary||(u.binary=!("string"===s&&!1===u.binary&&!1===u.base64)),(i instanceof h&&0===i.uncompressedSize||u.dir||!i||0===i.length)&&(u.base64=!1,u.binary=!0,i="",u.compression="STORE",s="string");var b;b=i instanceof h||i instanceof o?i:c.isNode&&c.isStream(i)?new l(t,i):e.prepareContent(t,i,u.binary,u.optimizedBinaryString,u.base64);var w=new f(t,b,u);this.files[t]=w}var n=t("./utf8"),e=t("./utils"),o=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),a=t("./defaults"),h=t("./compressedObject"),f=t("./zipObject"),u=t("./generate"),c=t("./nodejsUtils"),l=t("./nodejs/NodejsStreamInputAdapter"),d=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var i=t.lastIndexOf("/");return 0<i?t.substring(0,i):""},p=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,i){return i=void 0!==i?i:a.createFolders,t=p(t),this.files[t]||r.call(this,t,null,{dir:!0,createFolders:i}),this.files[t]};function b(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var i,r,n;for(i in this.files)n=this.files[i],(r=i.slice(this.root.length,i.length))&&i.slice(0,this.root.length)===this.root&&t(r,n)},filter:function(t){var i=[];return this.forEach((function(r,n){t(r,n)&&i.push(n)})),i},file:function(t,i,n){if(1!==arguments.length)return r.call(this,t=this.root+t,i,n),this;if(b(t)){var e=t;return this.filter((function(t,i){return!i.dir&&e.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(b(t))return this.filter((function(i,r){return r.dir&&t.test(i)}));var i=m.call(this,this.root+t),r=this.clone();return r.root=i.name,r},remove:function(t){var i=this.files[t=this.root+t];if(i||("/"!==t.slice(-1)&&(t+="/"),i=this.files[t]),i&&!i.dir)delete this.files[t];else for(var r=this.filter((function(i,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var i,r={};try{if((r=e.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");e.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS"),i=u.generateWorker(this,r,r.comment||this.comment||"")}catch(t){(i=new o("error")).error(t)}return new s(i,r.type||"string",r.mimeType)},generateAsync:function(t,i){return this.generateInternalStream(t).accumulate(i)},generateNodeStream:function(t,i){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(i)}};i.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,i){i.exports=t("stream")},{stream:void 0}],17:[function(t,i){var r=t("./DataReader");function n(t){r.call(this,t);for(var i=0;i<this.data.length;i++)t[i]=255&t[i]}t("../utils").inherits(n,r),n.prototype.byteAt=function(t){return this.data[this.zero+t]},n.prototype.lastIndexOfSignature=function(t){for(var i=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),e=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===i&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===e)return o-this.zero;return-1},n.prototype.readAndCheckSignature=function(t){var i=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),e=t.charCodeAt(3),o=this.readData(4);return i===o[0]&&r===o[1]&&n===o[2]&&e===o[3]},n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var i=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./DataReader":18}],18:[function(t,i){var r=t("../utils");function n(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var i,r=0;for(this.checkOffset(t),i=this.index+t-1;i>=this.index;i--)r=(r<<8)+this.byteAt(i);return this.index+=t,r},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},i.exports=n},{"../utils":32}],19:[function(t,i){var r=t("./Uint8ArrayReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.readData=function(t){this.checkOffset(t);var i=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i){var r=t("./DataReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},n.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},n.prototype.readData=function(t){this.checkOffset(t);var i=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./DataReader":18}],21:[function(t,i){var r=t("./ArrayReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var i=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(t,i){var r=t("../utils"),n=t("../support"),e=t("./ArrayReader"),o=t("./StringReader"),s=t("./NodeBufferReader"),a=t("./Uint8ArrayReader");i.exports=function(t){var i=r.getTypeOf(t);return r.checkSupport(i),"string"!==i||n.uint8array?"nodebuffer"===i?new s(t):n.uint8array?new a(r.transformTo("uint8array",t)):new e(r.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,i){var r=t("./GenericWorker"),n=t("../utils");function e(t){r.call(this,"ConvertWorker to "+t),this.destType=t}n.inherits(e,r),e.prototype.processChunk=function(t){this.push({data:n.transformTo(this.destType,t.data),meta:t.meta})},i.exports=e},{"../utils":32,"./GenericWorker":28}],25:[function(t,i){var r=t("./GenericWorker"),n=t("../crc32");function e(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(e,r),e.prototype.processChunk=function(t){this.streamInfo.crc32=n(t.data,this.streamInfo.crc32||0),this.push(t)},i.exports=e},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i){var r=t("../utils"),n=t("./GenericWorker");function e(t){n.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(e,n),e.prototype.processChunk=function(t){t&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+t.data.length),n.prototype.processChunk.call(this,t)},i.exports=e},{"../utils":32,"./GenericWorker":28}],27:[function(t,i){var r=t("../utils"),n=t("./GenericWorker");function e(t){n.call(this,"DataWorker");var i=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){i.dataIsReady=!0,i.data=t,i.max=t&&t.length||0,i.type=r.getTypeOf(t),i.isPaused||i._tickAndRepeat()}),(function(t){i.error(t)}))}r.inherits(e,n),e.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,i=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,i);break;case"uint8array":t=this.data.subarray(this.index,i);break;case"array":case"nodebuffer":t=this.data.slice(this.index,i)}return this.index=i,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=e},{"../utils":32,"./GenericWorker":28}],28:[function(t,i){function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,i){return this._listeners[t].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,i){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,i)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var i=this;return t.on("data",(function(t){i.processChunk(t)})),t.on("end",(function(){i.end()})),t.on("error",(function(t){i.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,i){return this.extraStreamInfo[t]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},i.exports=r},{}],29:[function(t,i){var r=t("../utils"),n=t("./ConvertWorker"),e=t("./GenericWorker"),o=t("../base64"),s=t("../support"),a=t("../external"),h=null;if(s.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function f(t,i,o){var s=i;switch(i){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=i,this._mimeType=o,r.checkSupport(s),this._worker=t.pipe(new n(s)),t.lock()}catch(t){this._worker=new e("error"),this._worker.error(t)}}f.prototype={accumulate:function(t){return function(t,i){return new a.Promise((function(n,e){var s=[],a=t._internalType,h=t._outputType,f=t._mimeType;t.on("data",(function(t,r){s.push(t),i&&i(r)})).on("error",(function(t){s=[],e(t)})).on("end",(function(){try{var t=function(t,i,n){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",i),n);case"base64":return o.encode(i);default:return r.transformTo(t,i)}}(h,function(t,i){var r,n=0,e=null,o=0;for(r=0;r<i.length;r++)o+=i[r].length;switch(t){case"string":return i.join("");case"array":return Array.prototype.concat.apply([],i);case"uint8array":for(e=new Uint8Array(o),r=0;r<i.length;r++)e.set(i[r],n),n+=i[r].length;return e;case"nodebuffer":return Buffer.concat(i);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,s),f);n(t)}catch(t){e(t)}s=[]})).resume()}))}(this,t)},on:function(t,i){var n=this;return this._worker.on(t,"data"===t?function(t){i.call(n,t.data,t.meta)}:function(){r.delay(i,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:"nodebuffer"!==this._outputType},t)}},i.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,i,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(t){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);e.append(n),r.blob=0===e.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,r){for(var n=t("./utils"),e=t("./support"),o=t("./nodejsUtils"),s=t("./stream/GenericWorker"),a=new Array(256),h=0;h<256;h++)a[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function f(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,r.utf8encode=function(t){return e.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var i,r,n,o,s,a=t.length,h=0;for(o=0;o<a;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),h+=r<128?1:r<2048?2:r<65536?3:4;for(i=e.uint8array?new Uint8Array(h):new Array(h),o=s=0;s<h;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?i[s++]=r:(r<2048?i[s++]=192|r>>>6:(r<65536?i[s++]=224|r>>>12:(i[s++]=240|r>>>18,i[s++]=128|r>>>12&63),i[s++]=128|r>>>6&63),i[s++]=128|63&r);return i}(t)},r.utf8decode=function(t){return e.nodebuffer?n.transformTo("nodebuffer",t).toString("utf-8"):function(t){var i,r,e,o,s=t.length,h=new Array(2*s);for(i=r=0;i<s;)if((e=t[i++])<128)h[r++]=e;else if(4<(o=a[e]))h[r++]=65533,i+=o-1;else{for(e&=2===o?31:3===o?15:7;1<o&&i<s;)e=e<<6|63&t[i++],o--;1<o?h[r++]=65533:e<65536?h[r++]=e:(h[r++]=55296|(e-=65536)>>10&1023,h[r++]=56320|1023&e)}return h.length!==r&&(h.subarray?h=h.subarray(0,r):h.length=r),n.applyFromCharCode(h)}(t=n.transformTo(e.uint8array?"uint8array":"array",t))},n.inherits(f,s),f.prototype.processChunk=function(t){var i=n.transformTo(e.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var o=i;(i=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),i.set(o,this.leftOver.length)}else i=this.leftOver.concat(i);this.leftOver=null}var s=function(t,i){var r;for((i=i||t.length)>t.length&&(i=t.length),r=i-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?i:r+a[t[r]]>i?r:i}(i),h=i;s!==i.length&&(e.uint8array?(h=i.subarray(0,s),this.leftOver=i.subarray(s,i.length)):(h=i.slice(0,s),this.leftOver=i.slice(s,i.length))),this.push({data:r.utf8decode(h),meta:t.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=f,n.inherits(u,s),u.prototype.processChunk=function(t){this.push({data:r.utf8encode(t.data),meta:t.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,r){var n=t("./support"),e=t("./base64"),o=t("./nodejsUtils"),s=t("./external");function a(t){return t}function h(t,i){for(var r=0;r<t.length;++r)i[r]=255&t.charCodeAt(r);return i}t("setimmediate"),r.newBlob=function(t,i){r.checkSupport("blob");try{return new Blob([t],{type:i})}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(i)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(t,i,r){var n=[],e=0,o=t.length;if(o<=r)return String.fromCharCode.apply(null,t);for(;e<o;)n.push(String.fromCharCode.apply(null,"array"===i||"nodebuffer"===i?t.slice(e,Math.min(e+r,o)):t.subarray(e,Math.min(e+r,o)))),e+=r;return n.join("")},stringifyByChar:function(t){for(var i="",r=0;r<t.length;r++)i+=String.fromCharCode(t[r]);return i},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var i=65536,n=r.getTypeOf(t),e=!0;if("uint8array"===n?e=f.applyCanBeUsed.uint8array:"nodebuffer"===n&&(e=f.applyCanBeUsed.nodebuffer),e)for(;1<i;)try{return f.stringifyByChunk(t,n,i)}catch(t){i=Math.floor(i/2)}return f.stringifyByChar(t)}function c(t,i){for(var r=0;r<t.length;r++)i[r]=t[r];return i}r.applyFromCharCode=u;var l={};l.string={string:a,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return l.string.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:function(t){return h(t,o.allocBuffer(t.length))}},l.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},l.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return c(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},l.uint8array={string:u,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return o.newBufferFrom(t)}},l.nodebuffer={string:u,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return l.nodebuffer.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:a},r.transformTo=function(t,i){if(i=i||"",!t)return i;r.checkSupport(t);var n=r.getTypeOf(i);return l[n][t](i)},r.resolve=function(t){for(var i=t.split("/"),r=[],n=0;n<i.length;n++){var e=i[n];"."===e||""===e&&0!==n&&n!==i.length-1||(".."===e?r.pop():r.push(e))}return r.join("/")},r.getTypeOf=function(t){if("string"==typeof t)return"string";var i=Object.prototype.toString.call(t);return"[object Array]"===i?"array":n.nodebuffer&&o.isBuffer(t)?"nodebuffer":n.uint8array&&"[object Uint8Array]"===i?"uint8array":n.arraybuffer&&"[object ArrayBuffer]"===i?"arraybuffer":void 0},r.checkSupport=function(t){if(!n[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(t){var i,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((i=t.charCodeAt(r))<16?"0":"")+i.toString(16).toUpperCase();return n},r.delay=function(t,i,r){setImmediate((function(){t.apply(r||null,i||[])}))},r.inherits=function(t,i){function r(){}r.prototype=i.prototype,t.prototype=new r},r.extend=function(){var t,i,r={};for(t=0;t<arguments.length;t++)for(i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&void 0===r[i]&&(r[i]=arguments[t][i]);return r},r.prepareContent=function(t,i,o,a,f){return s.Promise.resolve(i).then((function(i){return n.blob&&(i instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(i)))?void 0!==Blob.prototype.arrayBuffer?i.arrayBuffer():"undefined"!=typeof FileReader?new s.Promise((function(t,r){var n=new FileReader;n.onload=function(i){t(i.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(i)})):s.Promise.reject(new Error(t+" is a Blob, but we have no way of reading it.")):i})).then((function(i){var u=r.getTypeOf(i);return u?("arraybuffer"===u?i=r.transformTo("uint8array",i):"string"===u&&(f?i=e.decode(i):o&&!0!==a&&(i=function(t){return h(t,n.uint8array?new Uint8Array(t.length):new Array(t.length))}(i))),i):s.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,i){var r=t("./reader/readerFor"),n=t("./utils"),e=t("./signature"),o=t("./zipEntry"),s=t("./support");function a(t){this.files=[],this.loadOptions=t}a.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var i=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(i)+", expected "+n.pretty(t)+")")}},isSignature:function(t,i){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===i;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),i=n.transformTo(s.uint8array?"uint8array":"array",t);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,i,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),i=this.reader.readInt(4),r=this.reader.readData(i),this.zip64ExtensibleData[t]={id:t,length:i,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,i;for(t=0;t<this.files.length;t++)this.reader.setIndex((i=this.files[t]).localHeaderOffset),this.checkSignature(e.LOCAL_FILE_HEADER),i.readLocalPart(this.reader),i.handleUTF8(),i.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(e.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(e.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,e.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var i=t;if(this.checkSignature(e.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,e.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(e.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(e.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var o=i-r;if(0<o)this.isSignature(i,e.CENTRAL_FILE_HEADER)||(this.reader.zero=o);else if(o<0)throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")},prepareReader:function(t){this.reader=r(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,i){var r=t("./reader/readerFor"),n=t("./utils"),e=t("./compressedObject"),o=t("./crc32"),s=t("./utf8"),a=t("./compressions"),h=t("./support");function f(t,i){this.options=t,this.loadOptions=i}f.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var i,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(i=function(t){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&a[i].magic===t)return a[i];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new e(this.compressedSize,this.uncompressedSize,this.crc32,i,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var i=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(i),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var i,r,n,e=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<e;)i=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[i]={id:i,length:r,value:n};t.setIndex(e)},handleUTF8:function(){var t=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var i=this.findExtraFieldUnicodePath();if(null!==i)this.fileNameStr=i;else{var r=n.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var e=this.findExtraFieldUnicodeComment();if(null!==e)this.fileCommentStr=e;else{var o=n.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var i=r(t.value);return 1!==i.readInt(1)||o(this.fileName)!==i.readInt(4)?null:s.utf8decode(i.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var i=r(t.value);return 1!==i.readInt(1)||o(this.fileComment)!==i.readInt(4)?null:s.utf8decode(i.readData(t.length-5))}return null}},i.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,i){function r(t,i,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=i,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var n=t("./stream/StreamHelper"),e=t("./stream/DataWorker"),o=t("./utf8"),s=t("./compressedObject"),a=t("./stream/GenericWorker");r.prototype={internalStream:function(t){var i=null,r="string";try{if(!t)throw new Error("No output type specified.");var e="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),i=this._decompressWorker();var s=!this._dataBinary;s&&!e&&(i=i.pipe(new o.Utf8EncodeWorker)),!s&&e&&(i=i.pipe(new o.Utf8DecodeWorker))}catch(t){(i=new a("error")).error(t)}return new n(i,r,"")},async:function(t,i){return this.internalStream(t).accumulate(i)},nodeStream:function(t,i){return this.internalStream(t||"nodebuffer").toNodejsStream(i)},_compressWorker:function(t,i){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(r,t,i)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof a?this._data:new e(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},u=0;u<h.length;u++)r.prototype[h[u]]=f;i.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(i,r){(function(t){var i,n,e=t.MutationObserver||t.WebKitMutationObserver;if(e){var o=0,s=new e(u),a=t.document.createTextNode("");s.observe(a,{characterData:!0}),i=function(){a.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)i="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var i=t.document.createElement("script");i.onreadystatechange=function(){u(),i.onreadystatechange=null,i.parentNode.removeChild(i),i=null},t.document.documentElement.appendChild(i)}:function(){setTimeout(u,0)};else{var h=new t.MessageChannel;h.port1.onmessage=u,i=function(){h.port2.postMessage(0)}}var f=[];function u(){var t,i;n=!0;for(var r=f.length;r;){for(i=f,f=[],t=-1;++t<r;)i[t]();r=f.length}n=!1}r.exports=function(t){1!==f.push(t)||n||i()}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,i){var r=t("immediate");function n(){}var e={},o=["REJECTED"],s=["FULFILLED"],a=["PENDING"];function h(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,t!==n&&l(this,t)}function f(t,i,r){this.promise=t,"function"==typeof i&&(this.onFulfilled=i,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function u(t,i,n){r((function(){var r;try{r=i(n)}catch(r){return e.reject(t,r)}r===t?e.reject(t,new TypeError("Cannot resolve promise with itself")):e.resolve(t,r)}))}function c(t){var i=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof i)return function(){i.apply(t,arguments)}}function l(t,i){var r=!1;function n(i){r||(r=!0,e.reject(t,i))}function o(i){r||(r=!0,e.resolve(t,i))}var s=d((function(){i(o,n)}));"error"===s.status&&n(s.value)}function d(t,i){var r={};try{r.value=t(i),r.status="success"}catch(t){r.status="error",r.value=t}return r}(i.exports=h).prototype.finally=function(t){if("function"!=typeof t)return this;var i=this.constructor;return this.then((function(r){return i.resolve(t()).then((function(){return r}))}),(function(r){return i.resolve(t()).then((function(){throw r}))}))},h.prototype.catch=function(t){return this.then(null,t)},h.prototype.then=function(t,i){if("function"!=typeof t&&this.state===s||"function"!=typeof i&&this.state===o)return this;var r=new this.constructor(n);return this.state!==a?u(r,this.state===s?t:i,this.outcome):this.queue.push(new f(r,t,i)),r},f.prototype.callFulfilled=function(t){e.resolve(this.promise,t)},f.prototype.otherCallFulfilled=function(t){u(this.promise,this.onFulfilled,t)},f.prototype.callRejected=function(t){e.reject(this.promise,t)},f.prototype.otherCallRejected=function(t){u(this.promise,this.onRejected,t)},e.resolve=function(t,i){var r=d(c,i);if("error"===r.status)return e.reject(t,r.value);var n=r.value;if(n)l(t,n);else{t.state=s,t.outcome=i;for(var o=-1,a=t.queue.length;++o<a;)t.queue[o].callFulfilled(i)}return t},e.reject=function(t,i){t.state=o,t.outcome=i;for(var r=-1,n=t.queue.length;++r<n;)t.queue[r].callRejected(i);return t},h.resolve=function(t){return t instanceof this?t:e.resolve(new this(n),t)},h.reject=function(t){var i=new this(n);return e.reject(i,t)},h.all=function(t){var i=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var r=t.length,o=!1;if(!r)return this.resolve([]);for(var s=new Array(r),a=0,h=-1,f=new this(n);++h<r;)u(t[h],h);return f;function u(t,n){i.resolve(t).then((function(t){s[n]=t,++a!==r||o||(o=!0,e.resolve(f,s))}),(function(t){o||(o=!0,e.reject(f,t))}))}},h.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,r=!1;if(!i)return this.resolve([]);for(var o=-1,s=new this(n);++o<i;)this.resolve(t[o]).then((function(t){r||(r=!0,e.resolve(s,t))}),(function(t){r||(r=!0,e.reject(s,t))}));return s}},{immediate:36}],38:[function(t,i){var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),i.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,i,r){var n=t("./zlib/deflate"),e=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/messages"),a=t("./zlib/zstream"),h=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var i=this.options;i.raw&&0<i.windowBits?i.windowBits=-i.windowBits:i.gzip&&0<i.windowBits&&i.windowBits<16&&(i.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,i.level,i.method,i.windowBits,i.memLevel,i.strategy);if(0!==r)throw new Error(s[r]);if(i.header&&n.deflateSetHeader(this.strm,i.header),i.dictionary){var u;if(u="string"==typeof i.dictionary?o.string2buf(i.dictionary):"[object ArrayBuffer]"===h.call(i.dictionary)?new Uint8Array(i.dictionary):i.dictionary,0!==(r=n.deflateSetDictionary(this.strm,u)))throw new Error(s[r]);this._dict_set=!0}}function u(t,i){var r=new f(i);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(t,i){var r,s,a=this.strm,f=this.options.chunkSize;if(this.ended)return!1;s=i===~~i?i:!0===i?4:0,a.input="string"==typeof t?o.string2buf(t):"[object ArrayBuffer]"===h.call(t)?new Uint8Array(t):t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new e.Buf8(f),a.next_out=0,a.avail_out=f),1!==(r=n.deflate(a,s))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||this.onData("string"===this.options.to?o.buf2binstring(e.shrinkBuf(a.output,a.next_out)):e.shrinkBuf(a.output,a.next_out))}while((0<a.avail_in||0===a.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==s||(this.onEnd(0),!(a.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){0===t&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Deflate=f,r.deflate=u,r.deflateRaw=function(t,i){return(i=i||{}).raw=!0,u(t,i)},r.gzip=function(t,i){return(i=i||{}).gzip=!0,u(t,i)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,i,r){var n=t("./zlib/inflate"),e=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/constants"),a=t("./zlib/messages"),h=t("./zlib/zstream"),f=t("./zlib/gzheader"),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},t||{});var i=this.options;i.raw&&0<=i.windowBits&&i.windowBits<16&&(i.windowBits=-i.windowBits,0===i.windowBits&&(i.windowBits=-15)),!(0<=i.windowBits&&i.windowBits<16)||t&&t.windowBits||(i.windowBits+=32),15<i.windowBits&&i.windowBits<48&&!(15&i.windowBits)&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,i.windowBits);if(r!==s.Z_OK)throw new Error(a[r]);this.header=new f,n.inflateGetHeader(this.strm,this.header)}function l(t,i){var r=new c(i);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(t,i){var r,a,h,f,c,l,d=this.strm,p=this.options.chunkSize,m=this.options.dictionary,b=!1;if(this.ended)return!1;a=i===~~i?i:!0===i?s.Z_FINISH:s.Z_NO_FLUSH,d.input="string"==typeof t?o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?new Uint8Array(t):t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new e.Buf8(p),d.next_out=0,d.avail_out=p),(r=n.inflate(d,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&m&&(l="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,l)),r===s.Z_BUF_ERROR&&!0===b&&(r=s.Z_OK,b=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&r!==s.Z_STREAM_END&&(0!==d.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(h=o.utf8border(d.output,d.next_out),f=d.next_out-h,c=o.buf2string(d.output,h),d.next_out=f,d.avail_out=p-f,f&&e.arraySet(d.output,d.output,h,f,0),this.onData(c)):this.onData(e.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(b=!0)}while((0<d.avail_in||0===d.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(d.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===s.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=c,r.inflate=l,r.inflateRaw=function(t,i){return(i=i||{}).raw=!0,l(t,i)},r.ungzip=l},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,i,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var i=Array.prototype.slice.call(arguments,1);i.length;){var r=i.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}}return t},r.shrinkBuf=function(t,i){return t.length===i?t:t.subarray?t.subarray(0,i):(t.length=i,t)};var e={arraySet:function(t,i,r,n,e){if(i.subarray&&t.subarray)t.set(i.subarray(r,r+n),e);else for(var o=0;o<n;o++)t[e+o]=i[r+o]},flattenChunks:function(t){var i,r,n,e,o,s;for(i=n=0,r=t.length;i<r;i++)n+=t[i].length;for(s=new Uint8Array(n),i=e=0,r=t.length;i<r;i++)s.set(o=t[i],e),e+=o.length;return s}},o={arraySet:function(t,i,r,n,e){for(var o=0;o<n;o++)t[e+o]=i[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,e)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(t,i,r){var n=t("./common"),e=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function h(t,i){if(i<65537&&(t.subarray&&o||!t.subarray&&e))return String.fromCharCode.apply(null,n.shrinkBuf(t,i));for(var r="",s=0;s<i;s++)r+=String.fromCharCode(t[s]);return r}s[254]=s[254]=1,r.string2buf=function(t){var i,r,e,o,s,a=t.length,h=0;for(o=0;o<a;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(e=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(e-56320),o++),h+=r<128?1:r<2048?2:r<65536?3:4;for(i=new n.Buf8(h),o=s=0;s<h;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(e=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(e-56320),o++),r<128?i[s++]=r:(r<2048?i[s++]=192|r>>>6:(r<65536?i[s++]=224|r>>>12:(i[s++]=240|r>>>18,i[s++]=128|r>>>12&63),i[s++]=128|r>>>6&63),i[s++]=128|63&r);return i},r.buf2binstring=function(t){return h(t,t.length)},r.binstring2buf=function(t){for(var i=new n.Buf8(t.length),r=0,e=i.length;r<e;r++)i[r]=t.charCodeAt(r);return i},r.buf2string=function(t,i){var r,n,e,o,a=i||t.length,f=new Array(2*a);for(r=n=0;r<a;)if((e=t[r++])<128)f[n++]=e;else if(4<(o=s[e]))f[n++]=65533,r+=o-1;else{for(e&=2===o?31:3===o?15:7;1<o&&r<a;)e=e<<6|63&t[r++],o--;1<o?f[n++]=65533:e<65536?f[n++]=e:(f[n++]=55296|(e-=65536)>>10&1023,f[n++]=56320|1023&e)}return h(f,n)},r.utf8border=function(t,i){var r;for((i=i||t.length)>t.length&&(i=t.length),r=i-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?i:r+s[t[r]]>i?r:i}},{"./common":41}],43:[function(t,i){i.exports=function(t,i,r,n){for(var e=65535&t,o=t>>>16&65535,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;o=o+(e=e+i[n++]|0)|0,--s;);e%=65521,o%=65521}return e|o<<16}},{}],44:[function(t,i){i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,i){var r=function(){for(var t,i=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;i[r]=t}return i}();i.exports=function(t,i,n,e){var o=r,s=e+n;t^=-1;for(var a=e;a<s;a++)t=t>>>8^o[255&(t^i[a])];return~t}},{}],46:[function(t,i,r){var n,e=t("../utils/common"),o=t("./trees"),s=t("./adler32"),a=t("./crc32"),h=t("./messages"),f=-2,u=258,c=262,l=113;function d(t,i){return t.msg=h[i],i}function p(t){return(t<<1)-(4<t?9:0)}function m(t){for(var i=t.length;0<=--i;)t[i]=0}function b(t){var i=t.state,r=i.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(e.arraySet(t.output,i.pending_buf,i.pending_out,r,t.next_out),t.next_out+=r,i.pending_out+=r,t.total_out+=r,t.avail_out-=r,i.pending-=r,0===i.pending&&(i.pending_out=0))}function w(t,i){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,i),t.block_start=t.strstart,b(t.strm)}function v(t,i){t.pending_buf[t.pending++]=i}function x(t,i){t.pending_buf[t.pending++]=i>>>8&255,t.pending_buf[t.pending++]=255&i}function g(t,i){var r,n,e=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,h=t.strstart>t.w_size-c?t.strstart-(t.w_size-c):0,f=t.window,l=t.w_mask,d=t.prev,p=t.strstart+u,m=f[o+s-1],b=f[o+s];t.prev_length>=t.good_match&&(e>>=2),a>t.lookahead&&(a=t.lookahead);do{if(f[(r=i)+s]===b&&f[r+s-1]===m&&f[r]===f[o]&&f[++r]===f[o+1]){o+=2,r++;do{}while(f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&o<p);if(n=u-(p-o),o=p-u,s<n){if(t.match_start=i,a<=(s=n))break;m=f[o+s-1],b=f[o+s]}}}while((i=d[i&l])>h&&0!=--e);return s<=t.lookahead?s:t.lookahead}function y(t){var i,r,n,o,h,f,u,l,d,p,m=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=m+(m-c)){for(e.arraySet(t.window,t.window,m,m,0),t.match_start-=m,t.strstart-=m,t.block_start-=m,i=r=t.hash_size;n=t.head[--i],t.head[i]=m<=n?n-m:0,--r;);for(i=r=m;n=t.prev[--i],t.prev[i]=m<=n?n-m:0,--r;);o+=m}if(0===t.strm.avail_in)break;if(u=t.window,l=t.strstart+t.lookahead,p=void 0,(d=o)<(p=(f=t.strm).avail_in)&&(p=d),r=0===p?0:(f.avail_in-=p,e.arraySet(u,f.input,f.next_in,p,l),1===f.state.wrap?f.adler=s(f.adler,u,p,l):2===f.state.wrap&&(f.adler=a(f.adler,u,p,l)),f.next_in+=p,f.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=3)for(t.ins_h=t.window[h=t.strstart-t.insert],t.ins_h=(t.ins_h<<t.hash_shift^t.window[h+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[h+3-1])&t.hash_mask,t.prev[h&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=h,h++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<c&&0!==t.strm.avail_in)}function k(t,i){for(var r,n;;){if(t.lookahead<c){if(y(t),t.lookahead<c&&0===i)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-c&&(t.match_length=g(t,r)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}function E(t,i){for(var r,n,e;;){if(t.lookahead<c){if(y(t),t.lookahead<c&&0===i)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-c&&(t.match_length=g(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(e=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=e&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(w(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&w(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}function A(t,i,r,n,e){this.good_length=t,this.max_lazy=i,this.nice_length=r,this.max_chain=n,this.func=e}function j(){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=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(1146),this.dyn_dtree=new e.Buf16(122),this.bl_tree=new e.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(16),this.heap=new e.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function z(t){var i;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(i=t.state).pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap?42:l,t.adler=2===i.wrap?0:1,i.last_flush=0,o._tr_init(i),0):d(t,f)}function S(t){var i=z(t);return 0===i&&function(t){t.window_size=2*t.w_size,m(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),i}function B(t,i,r,n,o,s){if(!t)return f;var a=1;if(-1===i&&(i=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),o<1||9<o||8!==r||n<8||15<n||i<0||9<i||s<0||4<s)return d(t,f);8===n&&(n=9);var h=new j;return(t.state=h).strm=t,h.wrap=a,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=o+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new e.Buf8(2*h.w_size),h.head=new e.Buf16(h.hash_size),h.prev=new e.Buf16(h.w_size),h.lit_bufsize=1<<o+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new e.Buf8(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=i,h.strategy=s,h.method=r,S(t)}n=[new A(0,0,0,0,(function(t,i){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===i)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,w(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-c&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===i?(w(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&w(t,!1),1)})),new A(4,4,8,4,k),new A(4,5,16,8,k),new A(4,6,32,32,k),new A(4,4,16,16,E),new A(8,16,32,32,E),new A(8,16,128,128,E),new A(8,32,128,256,E),new A(32,128,258,1024,E),new A(32,258,258,4096,E)],r.deflateInit=function(t,i){return B(t,i,8,15,8,0)},r.deflateInit2=B,r.deflateReset=S,r.deflateResetKeep=z,r.deflateSetHeader=function(t,i){return t&&t.state?2!==t.state.wrap?f:(t.state.gzhead=i,0):f},r.deflate=function(t,i){var r,e,s,h;if(!t||!t.state||5<i||i<0)return t?d(t,f):f;if(e=t.state,!t.output||!t.input&&0!==t.avail_in||666===e.status&&4!==i)return d(t,0===t.avail_out?-5:f);if(e.strm=t,r=e.last_flush,e.last_flush=i,42===e.status)if(2===e.wrap)t.adler=0,v(e,31),v(e,139),v(e,8),e.gzhead?(v(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),v(e,255&e.gzhead.time),v(e,e.gzhead.time>>8&255),v(e,e.gzhead.time>>16&255),v(e,e.gzhead.time>>24&255),v(e,9===e.level?2:2<=e.strategy||e.level<2?4:0),v(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(v(e,255&e.gzhead.extra.length),v(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=a(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(v(e,0),v(e,0),v(e,0),v(e,0),v(e,0),v(e,9===e.level?2:2<=e.strategy||e.level<2?4:0),v(e,3),e.status=l);else{var c=8+(e.w_bits-8<<4)<<8;c|=(2<=e.strategy||e.level<2?0:e.level<6?1:6===e.level?2:3)<<6,0!==e.strstart&&(c|=32),c+=31-c%31,e.status=l,x(e,c),0!==e.strstart&&(x(e,t.adler>>>16),x(e,65535&t.adler)),t.adler=1}if(69===e.status)if(e.gzhead.extra){for(s=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),b(t),s=e.pending,e.pending!==e.pending_buf_size));)v(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(73===e.status)if(e.gzhead.name){s=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),b(t),s=e.pending,e.pending===e.pending_buf_size)){h=1;break}h=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,v(e,h)}while(0!==h);e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),0===h&&(e.gzindex=0,e.status=91)}else e.status=91;if(91===e.status)if(e.gzhead.comment){s=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),b(t),s=e.pending,e.pending===e.pending_buf_size)){h=1;break}h=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,v(e,h)}while(0!==h);e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),0===h&&(e.status=103)}else e.status=103;if(103===e.status&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&b(t),e.pending+2<=e.pending_buf_size&&(v(e,255&t.adler),v(e,t.adler>>8&255),t.adler=0,e.status=l)):e.status=l),0!==e.pending){if(b(t),0===t.avail_out)return e.last_flush=-1,0}else if(0===t.avail_in&&p(i)<=p(r)&&4!==i)return d(t,-5);if(666===e.status&&0!==t.avail_in)return d(t,-5);if(0!==t.avail_in||0!==e.lookahead||0!==i&&666!==e.status){var g=2===e.strategy?function(t,i){for(var r;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===i)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}(e,i):3===e.strategy?function(t,i){for(var r,n,e,s,a=t.window;;){if(t.lookahead<=u){if(y(t),t.lookahead<=u&&0===i)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(n=a[e=t.strstart-1])===a[++e]&&n===a[++e]&&n===a[++e]){s=t.strstart+u;do{}while(n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&e<s);t.match_length=u-(s-e),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}(e,i):n[e.level].func(e,i);if(3!==g&&4!==g||(e.status=666),1===g||3===g)return 0===t.avail_out&&(e.last_flush=-1),0;if(2===g&&(1===i?o._tr_align(e):5!==i&&(o._tr_stored_block(e,0,0,!1),3===i&&(m(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),b(t),0===t.avail_out))return e.last_flush=-1,0}return 4!==i?0:e.wrap<=0?1:(2===e.wrap?(v(e,255&t.adler),v(e,t.adler>>8&255),v(e,t.adler>>16&255),v(e,t.adler>>24&255),v(e,255&t.total_in),v(e,t.total_in>>8&255),v(e,t.total_in>>16&255),v(e,t.total_in>>24&255)):(x(e,t.adler>>>16),x(e,65535&t.adler)),b(t),0<e.wrap&&(e.wrap=-e.wrap),0!==e.pending?0:1)},r.deflateEnd=function(t){var i;return t&&t.state?42!==(i=t.state.status)&&69!==i&&73!==i&&91!==i&&103!==i&&i!==l&&666!==i?d(t,f):(t.state=null,i===l?d(t,-3):0):f},r.deflateSetDictionary=function(t,i){var r,n,o,a,h,u,c,l,d=i.length;if(!t||!t.state)return f;if(2===(a=(r=t.state).wrap)||1===a&&42!==r.status||r.lookahead)return f;for(1===a&&(t.adler=s(t.adler,i,d,0)),r.wrap=0,d>=r.w_size&&(0===a&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new e.Buf8(r.w_size),e.arraySet(l,i,d-r.w_size,r.w_size,0),i=l,d=r.w_size),h=t.avail_in,u=t.next_in,c=t.input,t.avail_in=d,t.next_in=0,t.input=i,y(r);r.lookahead>=3;){for(n=r.strstart,o=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=2,y(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=u,t.input=c,t.avail_in=h,r.wrap=a,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,i){i.exports=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}},{}],48:[function(t,i){i.exports=function(t,i){var r,n,e,o,s,a,h,f,u,c,l,d,p,m,b,w,v,x,g,y,k,E,A,j,z;j=t.input,e=(n=t.next_in)+(t.avail_in-5),z=t.output,s=(o=t.next_out)-(i-t.avail_out),a=o+(t.avail_out-257),h=(r=t.state).dmax,f=r.wsize,u=r.whave,c=r.wnext,l=r.window,d=r.hold,p=r.bits,m=r.lencode,b=r.distcode,w=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{p<15&&(d+=j[n++]<<p,d+=j[n++]<<(p+=8),p+=8),x=m[d&w];i:for(;;){if(d>>>=g=x>>>24,p-=g,0==(g=x>>>16&255))z[o++]=65535&x;else{if(!(16&g)){if(!(64&g)){x=m[(65535&x)+(d&(1<<g)-1)];continue i}if(32&g){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}y=65535&x,(g&=15)&&(p<g&&(d+=j[n++]<<p,p+=8),y+=d&(1<<g)-1,d>>>=g,p-=g),p<15&&(d+=j[n++]<<p,d+=j[n++]<<(p+=8),p+=8),x=b[d&v];r:for(;;){if(d>>>=g=x>>>24,p-=g,!(16&(g=x>>>16&255))){if(!(64&g)){x=b[(65535&x)+(d&(1<<g)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&x,p<(g&=15)&&(d+=j[n++]<<p,(p+=8)<g&&(d+=j[n++]<<p,p+=8)),h<(k+=d&(1<<g)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=g,p-=g,(g=o-s)<k){if(u<(g=k-g)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(A=l,(E=0)===c){if(E+=f-g,g<y){for(y-=g;z[o++]=l[E++],--g;);E=o-k,A=z}}else if(c<g){if(E+=f+c-g,(g-=c)<y){for(y-=g;z[o++]=l[E++],--g;);if(E=0,c<y){for(y-=g=c;z[o++]=l[E++],--g;);E=o-k,A=z}}}else if(E+=c-g,g<y){for(y-=g;z[o++]=l[E++],--g;);E=o-k,A=z}for(;2<y;)z[o++]=A[E++],z[o++]=A[E++],z[o++]=A[E++],y-=3;y&&(z[o++]=A[E++],1<y&&(z[o++]=A[E++]))}else{for(E=o-k;z[o++]=z[E++],z[o++]=z[E++],z[o++]=z[E++],2<(y-=3););y&&(z[o++]=z[E++],1<y&&(z[o++]=z[E++]))}break}}break}}while(n<e&&o<a);n-=y=p>>3,d&=(1<<(p-=y<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<e?e-n+5:5-(n-e),t.avail_out=o<a?a-o+257:257-(o-a),r.hold=d,r.bits=p}},{}],49:[function(t,i,r){var n=t("../utils/common"),e=t("./adler32"),o=t("./crc32"),s=t("./inffast"),a=t("./inftrees"),h=-2;function f(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(t){var i;return t&&t.state?(t.total_in=t.total_out=(i=t.state).total=0,t.msg="",i.wrap&&(t.adler=1&i.wrap),i.mode=1,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new n.Buf32(852),i.distcode=i.distdyn=new n.Buf32(592),i.sane=1,i.back=-1,0):h}function l(t){var i;return t&&t.state?((i=t.state).wsize=0,i.whave=0,i.wnext=0,c(t)):h}function d(t,i){var r,n;return t&&t.state?(n=t.state,i<0?(r=0,i=-i):(r=1+(i>>4),i<48&&(i&=15)),i&&(i<8||15<i)?h:(null!==n.window&&n.wbits!==i&&(n.window=null),n.wrap=r,n.wbits=i,l(t))):h}function p(t,i){var r,n;return t?(n=new u,(t.state=n).window=null,0!==(r=d(t,i))&&(t.state=null),r):h}var m,b,w=!0;function v(t){if(w){var i;for(m=new n.Buf32(512),b=new n.Buf32(32),i=0;i<144;)t.lens[i++]=8;for(;i<256;)t.lens[i++]=9;for(;i<280;)t.lens[i++]=7;for(;i<288;)t.lens[i++]=8;for(a(1,t.lens,0,288,m,0,t.work,{bits:9}),i=0;i<32;)t.lens[i++]=5;a(2,t.lens,0,32,b,0,t.work,{bits:5}),w=!1}t.lencode=m,t.lenbits=9,t.distcode=b,t.distbits=5}function x(t,i,r,e){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),e>=s.wsize?(n.arraySet(s.window,i,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(e<(o=s.wsize-s.wnext)&&(o=e),n.arraySet(s.window,i,r-e,o,s.wnext),(e-=o)?(n.arraySet(s.window,i,r-e,e,0),s.wnext=e,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}r.inflateReset=l,r.inflateReset2=d,r.inflateResetKeep=c,r.inflateInit=function(t){return p(t,15)},r.inflateInit2=p,r.inflate=function(t,i){var r,u,c,l,d,p,m,b,w,g,y,k,E,A,j,z,S,B,C,O,U,D,T,R,F=0,P=new n.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(r=t.state).mode&&(r.mode=13),d=t.next_out,c=t.output,l=t.next_in,u=t.input,b=r.hold,w=r.bits,g=p=t.avail_in,y=m=t.avail_out,D=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(2&r.wrap&&35615===b){P[r.check=0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0),w=b=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",r.mode=30;break}if(w-=4,U=8+(15&(b>>>=4)),0===r.wbits)r.wbits=U;else if(U>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<U,t.adler=r.check=1,r.mode=512&b?10:12,w=b=0;break;case 2:for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(r.flags=b,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=b>>8&1),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0)),w=b=0,r.mode=3;case 3:for(;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.head&&(r.head.time=b),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,P[2]=b>>>16&255,P[3]=b>>>24&255,r.check=o(r.check,P,4,0)),w=b=0,r.mode=4;case 4:for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.head&&(r.head.xflags=255&b,r.head.os=b>>8),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0)),w=b=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.length=b,r.head&&(r.head.extra_len=b),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0)),w=b=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(k=r.length)&&(k=p),k&&(r.head&&(U=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,l,k,U)),512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,r.length-=k),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break t;for(k=0;U=u[l+k++],r.head&&U&&r.length<65536&&(r.head.name+=String.fromCharCode(U)),U&&k<p;);if(512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,U)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break t;for(k=0;U=u[l+k++],r.head&&U&&r.length<65536&&(r.head.comment+=String.fromCharCode(U)),U&&k<p;);if(512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,U)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(b!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}w=b=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}t.adler=r.check=f(b),w=b=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=d,t.avail_out=m,t.next_in=l,t.avail_in=p,r.hold=b,r.bits=w,2;t.adler=r.check=1,r.mode=12;case 12:if(5===i||6===i)break t;case 13:if(r.last){b>>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}switch(r.last=1&b,w-=1,3&(b>>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6!==i)break;b>>>=2,w-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&b,w=b=0,r.mode=15,6===i)break t;case 15:r.mode=16;case 16:if(k=r.length){if(p<k&&(k=p),m<k&&(k=m),0===k)break t;n.arraySet(c,u,l,k,d),p-=k,l+=k,m-=k,d+=k,r.length-=k;break}r.mode=12;break;case 17:for(;w<14;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(r.nlen=257+(31&b),w-=5,r.ndist=1+(31&(b>>>=5)),w-=5,r.ncode=4+(15&(b>>>=5)),b>>>=4,w-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;w<3;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.lens[I[r.have++]]=7&b,b>>>=3,w-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,D=a(0,r.lens,0,19,r.lencode,0,r.work,T={bits:r.lenbits}),r.lenbits=T.bits,D){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;z=(F=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,S=65535&F,!((j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(S<16)b>>>=j,w-=j,r.lens[r.have++]=S;else{if(16===S){for(R=j+2;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(b>>>=j,w-=j,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}U=r.lens[r.have-1],k=3+(3&b),b>>>=2,w-=2}else if(17===S){for(R=j+3;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}w-=j,U=0,k=3+(7&(b>>>=j)),b>>>=3,w-=3}else{for(R=j+7;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}w-=j,U=0,k=11+(127&(b>>>=j)),b>>>=7,w-=7}if(r.have+k>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=U}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,D=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,T={bits:r.lenbits}),r.lenbits=T.bits,D){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,D=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,T={bits:r.distbits}),r.distbits=T.bits,D){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===i)break t;case 20:r.mode=21;case 21:if(6<=p&&258<=m){t.next_out=d,t.avail_out=m,t.next_in=l,t.avail_in=p,r.hold=b,r.bits=w,s(t,y),d=t.next_out,c=t.output,m=t.avail_out,l=t.next_in,u=t.input,p=t.avail_in,b=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;z=(F=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,S=65535&F,!((j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(z&&!(240&z)){for(B=j,C=z,O=S;z=(F=r.lencode[O+((b&(1<<B+C)-1)>>B)])>>>16&255,S=65535&F,!(B+(j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}b>>>=B,w-=B,r.back+=B}if(b>>>=j,w-=j,r.back+=j,r.length=S,0===z){r.mode=26;break}if(32&z){r.back=-1,r.mode=12;break}if(64&z){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&z,r.mode=22;case 22:if(r.extra){for(R=r.extra;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;z=(F=r.distcode[b&(1<<r.distbits)-1])>>>16&255,S=65535&F,!((j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(!(240&z)){for(B=j,C=z,O=S;z=(F=r.distcode[O+((b&(1<<B+C)-1)>>B)])>>>16&255,S=65535&F,!(B+(j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}b>>>=B,w-=B,r.back+=B}if(b>>>=j,w-=j,r.back+=j,64&z){t.msg="invalid distance code",r.mode=30;break}r.offset=S,r.extra=15&z,r.mode=24;case 24:if(r.extra){for(R=r.extra;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break t;if(r.offset>(k=y-m)){if((k=r.offset-k)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}E=k>r.wnext?r.wsize-(k-=r.wnext):r.wnext-k,k>r.length&&(k=r.length),A=r.window}else A=c,E=d-r.offset,k=r.length;for(m<k&&(k=m),m-=k,r.length-=k;c[d++]=A[E++],--k;);0===r.length&&(r.mode=21);break;case 26:if(0===m)break t;c[d++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===p)break t;p--,b|=u[l++]<<w,w+=8}if(t.total_out+=y-=m,r.total+=y,y&&(t.adler=r.check=r.flags?o(r.check,c,y,d-y):e(r.check,c,y,d-y)),y=m,(r.flags?b:f(b))!==r.check){t.msg="incorrect data check",r.mode=30;break}w=b=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(b!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}w=b=0}r.mode=29;case 29:D=1;break t;case 30:D=-3;break t;case 31:return-4;default:return h}return t.next_out=d,t.avail_out=m,t.next_in=l,t.avail_in=p,r.hold=b,r.bits=w,(r.wsize||y!==t.avail_out&&r.mode<30&&(r.mode<27||4!==i))&&x(t,t.output,t.next_out,y-t.avail_out)?(r.mode=31,-4):(y-=t.avail_out,t.total_in+=g-=t.avail_in,t.total_out+=y,r.total+=y,r.wrap&&y&&(t.adler=r.check=r.flags?o(r.check,c,y,t.next_out-y):e(r.check,c,y,t.next_out-y)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==g&&0===y||4===i)&&0===D&&(D=-5),D)},r.inflateEnd=function(t){if(!t||!t.state)return h;var i=t.state;return i.window&&(i.window=null),t.state=null,0},r.inflateGetHeader=function(t,i){var r;return t&&t.state&&2&(r=t.state).wrap?((r.head=i).done=!1,0):h},r.inflateSetDictionary=function(t,i){var r,n=i.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?h:11===r.mode&&e(1,i,n,0)!==r.check?-3:x(t,i,n,n)?(r.mode=31,-4):(r.havedict=1,0):h},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,i){var r=t("../utils/common"),n=[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],e=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[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],s=[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];i.exports=function(t,i,a,h,f,u,c,l){var d,p,m,b,w,v,x,g,y,k=l.bits,E=0,A=0,j=0,z=0,S=0,B=0,C=0,O=0,U=0,D=0,T=null,R=0,F=new r.Buf16(16),P=new r.Buf16(16),I=null,_=0;for(E=0;E<=15;E++)F[E]=0;for(A=0;A<h;A++)F[i[a+A]]++;for(S=k,z=15;1<=z&&0===F[z];z--);if(z<S&&(S=z),0===z)return f[u++]=20971520,f[u++]=20971520,l.bits=1,0;for(j=1;j<z&&0===F[j];j++);for(S<j&&(S=j),E=O=1;E<=15;E++)if(O<<=1,(O-=F[E])<0)return-1;if(0<O&&(0===t||1!==z))return-1;for(P[1]=0,E=1;E<15;E++)P[E+1]=P[E]+F[E];for(A=0;A<h;A++)0!==i[a+A]&&(c[P[i[a+A]]++]=A);if(v=0===t?(T=I=c,19):1===t?(T=n,R-=257,I=e,_-=257,256):(T=o,I=s,-1),E=j,w=u,C=A=D=0,m=-1,b=(U=1<<(B=S))-1,1===t&&852<U||2===t&&592<U)return 1;for(;;){for(x=E-C,y=c[A]<v?(g=0,c[A]):c[A]>v?(g=I[_+c[A]],T[R+c[A]]):(g=96,0),d=1<<E-C,j=p=1<<B;f[w+(D>>C)+(p-=d)]=x<<24|g<<16|y,0!==p;);for(d=1<<E-1;D&d;)d>>=1;if(0!==d?(D&=d-1,D+=d):D=0,A++,0==--F[E]){if(E===z)break;E=i[a+c[A]]}if(S<E&&(D&b)!==m){for(0===C&&(C=S),w+=j,O=1<<(B=E-C);B+C<z&&!((O-=F[B+C])<=0);)B++,O<<=1;if(U+=1<<B,1===t&&852<U||2===t&&592<U)return 1;f[m=D&b]=S<<24|B<<16|w-u}}return 0!==D&&(f[w+D]=E-C<<24|64<<16),l.bits=S,0}},{"../utils/common":41}],51:[function(t,i){i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,i,r){var n=t("../utils/common");function e(t){for(var i=t.length;0<=--i;)t[i]=0}var o=256,s=286,a=30,h=15,f=[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],u=[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],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);e(d);var p=new Array(60);e(p);var m=new Array(512);e(m);var b=new Array(256);e(b);var w=new Array(29);e(w);var v,x,g,y=new Array(a);function k(t,i,r,n,e){this.static_tree=t,this.extra_bits=i,this.extra_base=r,this.elems=n,this.max_length=e,this.has_stree=t&&t.length}function E(t,i){this.dyn_tree=t,this.max_code=0,this.stat_desc=i}function A(t){return t<256?m[t]:m[256+(t>>>7)]}function j(t,i){t.pending_buf[t.pending++]=255&i,t.pending_buf[t.pending++]=i>>>8&255}function z(t,i,r){t.bi_valid>16-r?(t.bi_buf|=i<<t.bi_valid&65535,j(t,t.bi_buf),t.bi_buf=i>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=i<<t.bi_valid&65535,t.bi_valid+=r)}function S(t,i,r){z(t,r[2*i],r[2*i+1])}function B(t,i){for(var r=0;r|=1&t,t>>>=1,r<<=1,0<--i;);return r>>>1}function C(t,i,r){var n,e,o=new Array(16),s=0;for(n=1;n<=h;n++)o[n]=s=s+r[n-1]<<1;for(e=0;e<=i;e++){var a=t[2*e+1];0!==a&&(t[2*e]=B(o[a]++,a))}}function O(t){var i;for(i=0;i<s;i++)t.dyn_ltree[2*i]=0;for(i=0;i<a;i++)t.dyn_dtree[2*i]=0;for(i=0;i<19;i++)t.bl_tree[2*i]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function U(t){8<t.bi_valid?j(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function D(t,i,r,n){var e=2*i,o=2*r;return t[e]<t[o]||t[e]===t[o]&&n[i]<=n[r]}function T(t,i,r){for(var n=t.heap[r],e=r<<1;e<=t.heap_len&&(e<t.heap_len&&D(i,t.heap[e+1],t.heap[e],t.depth)&&e++,!D(i,n,t.heap[e],t.depth));)t.heap[r]=t.heap[e],r=e,e<<=1;t.heap[r]=n}function R(t,i,r){var n,e,s,a,h=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*h]<<8|t.pending_buf[t.d_buf+2*h+1],e=t.pending_buf[t.l_buf+h],h++,0===n?S(t,e,i):(S(t,(s=b[e])+o+1,i),0!==(a=f[s])&&z(t,e-=w[s],a),S(t,s=A(--n),r),0!==(a=u[s])&&z(t,n-=y[s],a)),h<t.last_lit;);S(t,256,i)}function F(t,i){var r,n,e,o=i.dyn_tree,s=i.stat_desc.static_tree,a=i.stat_desc.has_stree,f=i.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<f;r++)0!==o[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(e=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[e]=0,t.opt_len--,a&&(t.static_len-=s[2*e+1]);for(i.max_code=u,r=t.heap_len>>1;1<=r;r--)T(t,o,r);for(e=f;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*e]=o[2*r]+o[2*n],t.depth[e]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=e,t.heap[1]=e++,T(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,i){var r,n,e,o,s,a,f=i.dyn_tree,u=i.max_code,c=i.stat_desc.static_tree,l=i.stat_desc.has_stree,d=i.stat_desc.extra_bits,p=i.stat_desc.extra_base,m=i.stat_desc.max_length,b=0;for(o=0;o<=h;o++)t.bl_count[o]=0;for(f[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)m<(o=f[2*f[2*(n=t.heap[r])+1]+1]+1)&&(o=m,b++),f[2*n+1]=o,u<n||(t.bl_count[o]++,s=0,p<=n&&(s=d[n-p]),t.opt_len+=(a=f[2*n])*(o+s),l&&(t.static_len+=a*(c[2*n+1]+s)));if(0!==b){do{for(o=m-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[m]--,b-=2}while(0<b);for(o=m;0!==o;o--)for(n=t.bl_count[o];0!==n;)u<(e=t.heap[--r])||(f[2*e+1]!==o&&(t.opt_len+=(o-f[2*e+1])*f[2*e],f[2*e+1]=o),n--)}}(t,i),C(o,u,t.bl_count)}function P(t,i,r){var n,e,o=-1,s=i[1],a=0,h=7,f=4;for(0===s&&(h=138,f=3),i[2*(r+1)+1]=65535,n=0;n<=r;n++)e=s,s=i[2*(n+1)+1],++a<h&&e===s||(a<f?t.bl_tree[2*e]+=a:0!==e?(e!==o&&t.bl_tree[2*e]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=e,f=(a=0)===s?(h=138,3):e===s?(h=6,3):(h=7,4))}function I(t,i,r){var n,e,o=-1,s=i[1],a=0,h=7,f=4;for(0===s&&(h=138,f=3),n=0;n<=r;n++)if(e=s,s=i[2*(n+1)+1],!(++a<h&&e===s)){if(a<f)for(;S(t,e,t.bl_tree),0!=--a;);else 0!==e?(e!==o&&(S(t,e,t.bl_tree),a--),S(t,16,t.bl_tree),z(t,a-3,2)):a<=10?(S(t,17,t.bl_tree),z(t,a-3,3)):(S(t,18,t.bl_tree),z(t,a-11,7));o=e,f=(a=0)===s?(h=138,3):e===s?(h=6,3):(h=7,4)}}e(y);var _=!1;function Z(t,i,r,e){z(t,0+(e?1:0),3),function(t,i,r){U(t),j(t,r),j(t,~r),n.arraySet(t.pending_buf,t.window,i,r,t.pending),t.pending+=r}(t,i,r)}r._tr_init=function(t){_||(function(){var t,i,r,n,e,o=new Array(16);for(n=r=0;n<28;n++)for(w[n]=r,t=0;t<1<<f[n];t++)b[r++]=n;for(b[r-1]=n,n=e=0;n<16;n++)for(y[n]=e,t=0;t<1<<u[n];t++)m[e++]=n;for(e>>=7;n<a;n++)for(y[n]=e<<7,t=0;t<1<<u[n]-7;t++)m[256+e++]=n;for(i=0;i<=h;i++)o[i]=0;for(t=0;t<=143;)d[2*t+1]=8,t++,o[8]++;for(;t<=255;)d[2*t+1]=9,t++,o[9]++;for(;t<=279;)d[2*t+1]=7,t++,o[7]++;for(;t<=287;)d[2*t+1]=8,t++,o[8]++;for(C(d,287,o),t=0;t<a;t++)p[2*t+1]=5,p[2*t]=B(t,5);v=new k(d,f,257,s,h),x=new k(p,u,0,a,h),g=new k(new Array(0),c,0,19,7)}(),_=!0),t.l_desc=new E(t.dyn_ltree,v),t.d_desc=new E(t.dyn_dtree,x),t.bl_desc=new E(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,O(t)},r._tr_stored_block=Z,r._tr_flush_block=function(t,i,r,n){var e,s,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var i,r=4093624447;for(i=0;i<=31;i++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*i])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(i=32;i<o;i++)if(0!==t.dyn_ltree[2*i])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),a=function(t){var i;for(P(t,t.dyn_ltree,t.l_desc.max_code),P(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),i=18;3<=i&&0===t.bl_tree[2*l[i]+1];i--);return t.opt_len+=3*(i+1)+5+5+4,i}(t),(s=t.static_len+3+7>>>3)<=(e=t.opt_len+3+7>>>3)&&(e=s)):e=s=r+5,r+4<=e&&-1!==i?Z(t,i,r,n):4===t.strategy||s===e?(z(t,2+(n?1:0),3),R(t,d,p)):(z(t,4+(n?1:0),3),function(t,i,r,n){var e;for(z(t,i-257,5),z(t,r-1,5),z(t,n-4,4),e=0;e<n;e++)z(t,t.bl_tree[2*l[e]+1],3);I(t,t.dyn_ltree,i-1),I(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),R(t,t.dyn_ltree,t.dyn_dtree)),O(t),n&&U(t)},r._tr_tally=function(t,i,r){return t.pending_buf[t.d_buf+2*t.last_lit]=i>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&i,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===i?t.dyn_ltree[2*r]++:(t.matches++,i--,t.dyn_ltree[2*(b[r]+o+1)]++,t.dyn_dtree[2*A(i)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){z(t,2,3),S(t,256,d),function(t){16===t.bi_valid?(j(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,i){i.exports=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}},{}],54:[function(){(function(t){!function(t){if(!t.setImmediate){var i,r,n,e,o=1,s={},a=!1,h=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,i="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){c(t)}))}:function(){if(t.postMessage&&!t.importScripts){var i=!0,r=t.onmessage;return t.onmessage=function(){i=!1},t.postMessage("","*"),t.onmessage=r,i}}()?(e="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",l,!1):t.attachEvent("onmessage",l),function(i){t.postMessage(e+i,"*")}):t.MessageChannel?((n=new MessageChannel).port1.onmessage=function(t){c(t.data)},function(t){n.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,function(t){var i=h.createElement("script");i.onreadystatechange=function(){c(t),i.onreadystatechange=null,r.removeChild(i),i=null},r.appendChild(i)}):function(t){setTimeout(c,0,t)},f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];return s[o]={callback:t,args:r},i(o),o++},f.clearImmediate=u}function u(t){delete s[t]}function c(t){if(a)setTimeout(c,0,t);else{var i=s[t];if(i){a=!0;try{!function(t){var i=t.callback,r=t.args;switch(r.length){case 0:i();break;case 1:i(r[0]);break;case 2:i(r[0],r[1]);break;case 3:i(r[0],r[1],r[2]);break;default:i.apply(undefined,r)}}(i)}finally{u(t),a=!1}}}}function l(i){i.source===t&&"string"==typeof i.data&&0===i.data.indexOf(e)&&c(+i.data.slice(e.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)),et.exports),st=i(ot);
2
2
  /*!
3
3
 
4
4
  JSZip v3.10.2 - A JavaScript class for generating and reading zip files
@@ -9,4 +9,4 @@ Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/js
9
9
 
10
10
  JSZip uses the library pako released under the MIT license :
11
11
  https://github.com/nodeca/pako/blob/main/LICENSE
12
- */const at=new u,ht=n(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.commonAudioPath="",this.showNav=!0,this.activeContainerIndexes=[],this.Lang="en",this.xmlData="",this.initialIndex=0,this.canplay=!0,this.baseUrl="",this.height="",this.uuid=o(),this.zipUrl="",this.currentContainerIndex=this.initialIndex,this.resizeTrigger=0,this.exitFlag=!1,this.containers=[],this.templateData=[],this.placeholderRegex=/\{([a-zA-Z0-9_]+)\}/g,this.extractedAssets={},this.handleNextContainerEvent=()=>{this.NextContainerKey()},this.handlePrevContainerEvent=()=>{this.PrevContainerKey()},this.handleChangeContainerEvent=t=>{this.NextContainerKey(t.detail.index)},this.handleBeforeUnload=()=>{s.getI().stop(),localStorage.removeItem(a)},this.handleWindowResize=()=>{this.scaleNavbarContainer(),this.resizeTrigger++,this.containers=[...this.containers]},this.NextContainerKey=t=>{var i;this.uuid===(null===(i=document.querySelector("lido-home"))||void 0===i?void 0:i.getAttribute("uuid"))&&(null!=t&&t==this.currentContainerIndex||(null!=t&&t<this.containers.length?(this.currentContainerIndex=t,h(this.currentContainerIndex)):this.currentContainerIndex<this.containers.length-1?(this.currentContainerIndex++,h(this.currentContainerIndex)):this.currentContainerIndex>=this.containers.length-1&&(localStorage.removeItem(a),this.currentContainerIndex=null),this.containers=[...this.containers],this.updateArrowVisibility()))},this.PrevContainerKey=()=>{this.currentContainerIndex<=0||(this.currentContainerIndex--,h(this.currentContainerIndex),this.containers=[...this.containers],this.updateArrowVisibility())},this.showDotsandbtn=!1,this.updateArrowVisibility=()=>{this.showNav&&setTimeout((()=>{const t=this.el.querySelector("lido-container");if(!t)return;const i=t.getAttribute("show-prev-button"),r=t.getAttribute("show-next-button"),n=this.el.querySelector("#lido-arrow-right");this.el.querySelector("#lido-arrow-left").style.visibility="true"!==i?"hidden":"visible",n.style.visibility="true"!==r?"hidden":"visible"}),100)},this.btnpopupRunId=0,this.activeBtnpopupRunId=null,this.shouldStopActiveBtnpopupAudio=!0,this.handleWindowTouch=t=>{null!==this.activeBtnpopupRunId&&this.cancelBtnpopupRun(this.hasAudioOnInteractionTarget(t.target))},this.handleWindowPointer=t=>{"touch"===t.pointerType&&null!==this.activeBtnpopupRunId&&this.cancelBtnpopupRun(this.hasAudioOnInteractionTarget(t.target))},this.popUpClick=t=>{const i=this.el.querySelector(".lido-alert-popup");this.exitFlag=!1,i&&("exit"===t?(s.getI().stop(),f.getI().stop(),at.rightMoves=0,at.wrongMoves=0,at.totalRightMovesCount=0,at.totalWrongMovesCount=0,localStorage.removeItem(a),i.remove(),this.currentContainerIndex=0,c()):i.remove())}}translateHomeText(t){var i;const r=null===(i=this.Lang)||void 0===i?void 0:i.trim();return r?X.getFixedT(r)(t):X.t(t)}onCommonAudioPathChange(t){this.publishCommonAudioPath(t)}async componentWillLoad(){if(this.navBarIcons={exit:this.exitButtonUrl||m,prev:this.prevButtonUrl||p,next:this.nextButtonUrl||d,speak:this.speakerButtonUrl||l},0===this.currentContainerIndex&&localStorage.removeItem(a),window.addEventListener(b,this.handleNextContainerEvent),window.addEventListener(w,this.handlePrevContainerEvent),window.addEventListener("changeContainer",this.handleChangeContainerEvent),this.zipUrl&&(this.xmlData="",await this.extractZipAndSetBase(),await this.loadXmlFromZip()),await this.loadTemplateData(),(this.xmlData||"").trim().includes("lido-container"))this.parseXMLData(this.xmlData);else{const t=await this.decompressBrotliBase64(this.xmlData);this.parseXMLData(t)}window.addEventListener("beforeunload",this.handleBeforeUnload)}async loadTemplateData(){if(!this.baseUrl&&!this.zipUrl)return;const t=[this.resolveAsset("data.json")].filter(Boolean);for(const i of t)try{const t=i.startsWith("http")||i.startsWith("blob")?i:v(i),r=await fetch(t);if(!r.ok)continue;const n=await r.json();if(Array.isArray(n)&&(this.templateData=n.filter((t=>t&&"object"==typeof t)),this.templateData.length))return}catch(t){console.warn(`[LidoHome] Failed to load template data from ${i}`,t)}}async decompressBrotliBase64(t){var i;for(t=(t||"").trim().replace(/^data:.*;base64,/,"").replace(/^['"]|['"]$/g,"").replace(/\\n/g,"").replace(/\s+/g,"").replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";const r=atob(t),n=new Uint8Array(r.length);for(let t=0;t<r.length;t++)n[t]=r.charCodeAt(t);if("DecompressionStream"in window)try{const t=new window.DecompressionStream("br"),i=new Blob([n]).stream().pipeThrough(t),r=await new Response(i).arrayBuffer();return(new TextDecoder).decode(r)}catch(t){console.warn("[LidoRoot] Native Brotli unavailable, trying WASM fallback.",t)}try{const t=await import("./p-Bh_vemY3.js").then((function(t){return t.d})),r=t.BrotliDecompressBuffer||(null===(i=t.default)||void 0===i?void 0:i.BrotliDecompressBuffer);if("function"!=typeof r)throw new Error("BrotliDecompressBuffer function not found in brotli/dec/decode");const e=r(n);return(new TextDecoder).decode(e)}catch(t){throw new Error(`Brotli decompression failed (native + fallback): ${t instanceof Error?t.message:String(t)}`)}}async extractZipAndSetBase(){this.revokeExtractedAssets();const t=this.zipUrl.replace(/\\/g,"/"),i=t.startsWith("http")||t.startsWith("blob")||t.startsWith("data")?t:v(t),r=await fetch(i);if(!r.ok)throw new Error("Unable to fetch ZIP");const n=await r.blob(),e=await st.loadAsync(n);for(const t of Object.keys(e.files)){const i=e.files[t];if(!i.dir){const r=await i.async("blob");this.extractedAssets[t]=URL.createObjectURL(r)}}D(this.extractedAssets)}revokeExtractedAssets(){for(const t of Object.values(this.extractedAssets))URL.revokeObjectURL(t);this.extractedAssets={},T()}async loadXmlFromZip(){const t="index.xml",i=this.resolveAsset(t);if(!i)throw console.warn("[LidoHome] ZIP extraction keys:",Object.keys(this.extractedAssets)),new Error(`Unable to find XML file '${t}' inside ZIP`);const r=await fetch(i);if(!r.ok)throw new Error(`Unable to fetch XML from ZIP: ${r.statusText}`);this.xmlData=await r.text()}resolveAsset(t){if(this.zipUrl){const i=t.replace(/^\/+/,""),r=this.extractedAssets[t]||this.extractedAssets[i];if(r)return r;const n=i.replace(/^.*\//,""),e=Object.keys(this.extractedAssets).find((t=>t===i||t===n||t.endsWith(`/${i}`)||t.endsWith(`/${n}`)));return e?this.extractedAssets[e]:void 0}return`${this.baseUrl.replace(/\/+$/,"")}/${t}`}componentDidLoad(){this.publishCommonAudioPath(this.commonAudioPath),setTimeout((()=>{this.showDotsandbtn=!0}),10),this.updateArrowVisibility(),this.scaleNavbarContainer(),this.handleIcons(),window.addEventListener("resize",this.handleWindowResize),window.addEventListener("touchstart",this.handleWindowTouch,{passive:!0}),window.addEventListener("pointerdown",this.handleWindowPointer,{passive:!0})}publishCommonAudioPath(t){if(!t)return;const i=t.replace(/\/+$/,"");window[x]=i,window.dispatchEvent(new Event("lidoCommonAudioPathReady"))}async handleIcons(){var t;const i=async(t,i,r)=>t?U(t):i?U(i):null!=r&&r,r=document.getElementById(g),n=r.getAttribute("exit-button-url"),e=r.getAttribute("prev-button-url"),o=r.getAttribute("next-button-url"),s=null!==(t=r.getAttribute("speak-button-url"))&&void 0!==t?t:r.getAttribute("speaker-button-url");this.navBarIcons={exit:`${await i(this.exitButtonUrl,n,m)}`,prev:`${await i(this.prevButtonUrl,e,p)}`,next:`${await i(this.nextButtonUrl,o,d)}`,speak:`${await i(this.speakerButtonUrl,s,l)}`}}updateBackgroundImage(){const t=document.querySelector(g),i=t.getAttribute("bg-image");document.body.style.background="none",t.style.backgroundImage=i?`url(${i})`:"none",t.style.backgroundPosition=i?"bottom":"none",setTimeout((()=>{const i=document.querySelector(".lido-dot-container");i.classList.add("nav-for-lanai"),t.append(i)}),50)}disconnectedCallback(){s.destroyI(),this.revokeExtractedAssets(),window.removeEventListener(b,this.handleNextContainerEvent),window.removeEventListener("changeContainer",this.handleChangeContainerEvent),window.removeEventListener(w,this.handlePrevContainerEvent),window.removeEventListener("beforeunload",this.handleBeforeUnload),window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("touchstart",this.handleWindowTouch),window.removeEventListener("pointerdown",this.handleWindowPointer)}parseXMLData(t){if(t){const i=(new DOMParser).parseFromString(t,"text/xml");this.parseContainers(i.documentElement)}}resolveContainerData(t){var i;return(null===(i=this.templateData)||void 0===i?void 0:i.length)?this.templateData[t]?this.templateData[t]:1===this.templateData.length?this.templateData[0]:null:null}replacePlaceholders(t,i){return i&&t?t.replace(this.placeholderRegex,((t,r)=>{const n=i[r];return null==n?`{${r}}`:String(n)})):t}applyDataToElement(t,i){return i?([t,...Array.from(t.querySelectorAll("*"))].forEach((t=>{Array.from(t.attributes).forEach((r=>{const n=r.value.replace(this.placeholderRegex,((t,r)=>{const n=i[r];return null==n?`{${r}}`:String(n)}));n!==r.value&&t.setAttribute(r.name,n)}))})),t):t}onXmlDataChange(t){this.parseXMLData(t)}parseElement(t){const i=t.nodeName.toLowerCase(),r={};Array.from(t.attributes).forEach((t=>{r[t.name]=t.value}));const n=Array.from(t.childNodes).map((t=>1===t.nodeType?this.parseElement(t):3===t.nodeType&&""!==t.textContent.trim()?t.textContent:null)).filter(Boolean);"lido-text"===i&&r.string&&(r.string=X.t(r.string)),"lido-text"===i&&r.string&&(r.string=X.t(r.string));const e={"lido-container":y("lido-container",Object.assign({key:this.resizeTrigger},r,{canplay:this.canplay},this.zipUrl?{}:{baseUrl:this.baseUrl},{height:this.height}),n),"lido-flash-card":y("lido-flash-card",Object.assign({},r),n),"lido-col":y("lido-col",Object.assign({},r),n),"lido-trace":y("lido-trace",Object.assign({},r),n),"lido-image":y("lido-image",Object.assign({},r),n),"lido-row":y("lido-row",Object.assign({},r),n),"lido-text":y("lido-text",Object.assign({},r),n),"lido-pos":y("lido-pos",Object.assign({},r),n),"lido-shape":y("lido-shape",Object.assign({},r),n),"lido-wrap":y("lido-wrap",Object.assign({},r),n),"lido-random":y("lido-random",Object.assign({},r),n),"lido-avatar":y("lido-avatar",Object.assign({},r),n),"lido-cell":y("lido-cell",Object.assign({},r),n),"lido-slide-fill":y("lido-slide-fill",Object.assign({},r),n),"lido-float":y("lido-float",Object.assign({},r),n),"lido-keyboard":y("lido-keyboard",Object.assign({},r),n),"lido-math-matrix":y("lido-math-matrix",Object.assign({},r),n),"lido-balance":y("lido-balance",Object.assign({},r),n),"lido-calculator":y("lido-calculator",Object.assign({},r),n),"lido-canvas":y("lido-canvas",Object.assign({},r),n)};return e[i]?e[i]:(console.warn(`Unknown tag: ${i}`),null)}parseContainers(t){const i=t.querySelectorAll("lido-container"),r=Array.from(i).map(((t,i)=>{if(this.activeContainerIndexes.length&&!this.activeContainerIndexes.includes(i))return;const r=this.resolveContainerData(i),n=this.applyDataToElement(t,r);return()=>this.parseElement(n)})).filter(Boolean);this.containers=r}areAllDropsFilled(){const t=Array.from(document.querySelectorAll('[type="drop"]')),i=Array.from(document.querySelectorAll('[type="drag"]')).filter((t=>t.getAttribute("drop-to")));return t.every((t=>{const r=t.id;return i.some((t=>t.getAttribute("drop-to")===r))}))}async btnpopup(t){var i,r;const n=()=>t!==this.btnpopupRunId,e=document.getElementById(g);if(n())return;if(!e||"true"===e.getAttribute("game-completed"))return;if(R(!1),await s.getI().stop(),n())return;const o=e.querySelectorAll("*"),a=e.getAttribute(k);if(a){const t=this.el.querySelector(`#${a}`);if(t&&(await E("this.speak='true';",t),n()))return}for(const t of Array.from(o)){if(A()||n())break;const i=t.getAttribute("tab-index"),r=t;if(i&&Number(i)>0){const t=t=>{const i=t.getBoundingClientRect();return i.width>0&&i.height>0&&i.bottom>0&&i.right>0&&i.top<window.innerHeight&&i.left<window.innerWidth},i=null==r?void 0:r.getAttribute("type");if(r&&"true"!==r.getAttribute("disable-speak")&&((null==i?void 0:i.trim())&&t(r)||!i||!i.trim())&&await s.getI().play(r),A()||n()){this.shouldStopActiveBtnpopupAudio&&await s.getI().stop();break}if(await new Promise((t=>setTimeout(t,300))),n())break}}if(!n())if(this.areAllDropsFilled()){const t=e.objective,n=null!==(r=JSON.parse(null!==(i=e.getAttribute(j))&&void 0!==i?i:"[]"))&&void 0!==r?r:[];S(t,n)&&z()}else"true"===e.getAttribute("game-completed")&&z()}hasAudioOnInteractionTarget(t){const i=t;if(!i)return!1;const r=t=>{if(!(t instanceof e))return!1;const i=t.getAttribute("audio");return!!i&&i.trim().length>0};return!!r(i)||!!r(i.closest("[audio]"))||!!r(i.querySelector("[audio]"))}async cancelBtnpopupRun(t=!0){this.btnpopupRunId++,this.shouldStopActiveBtnpopupAudio=t,R(!0),t&&await s.getI().stop()}async handleBtnpopupClick(){await this.cancelBtnpopupRun();const t=this.btnpopupRunId;R(!1),this.activeBtnpopupRunId=t,this.shouldStopActiveBtnpopupAudio=!0;try{await this.btnpopup(t)}finally{this.activeBtnpopupRunId===t&&(this.activeBtnpopupRunId=null),this.shouldStopActiveBtnpopupAudio=!0}}scaleNavbarContainer(){setTimeout((()=>{const t=document.querySelector(".lido-dot-container");t&&((1600===window.innerWidth&&900===window.innerHeight||900===window.innerWidth&&1600===window.innerHeight)&&document.querySelectorAll(".lido-exit-button, #main-audio").forEach((t=>{t.style.marginLeft="10px",t.style.marginRight="10px"})),t.style.top=window.innerWidth>window.innerHeight?"6%":"3.5%",t.style.transform="translate(-50%, -50%)",t.style.visibility="visible",Array.from(t.children).forEach((t=>{t.style.transform=`scale(${B()})`})),t.style.width=window.outerWidth+"px")}),500)}renderDots(){const t={pointerEvents:this.canplay?"none":""};return y("div",{id:"lido-dot-indicator",class:"lido-dot-container",style:{visibility:"hidden"}},y("div",{class:"lido-exit-button popup-button",onClick:()=>{this.exitFlag=!0,s.getI().stop()}},y("lido-image",{src:this.navBarIcons.exit,width:"stretch"})),y("div",{class:"lido-btn-dot-container"},y("div",{id:"lido-arrow-left",onClick:()=>{C()}},y("lido-image",{src:this.navBarIcons.prev,width:"stretch"})),this.containers.map(((i,r)=>y("div",{class:"parent_dots"},y("span",{class:"lido-dot "+(r<this.currentContainerIndex?"completed":r===this.currentContainerIndex?"current":""),onClick:()=>this.jumpToContainer(r),style:t})))),y("div",{id:"lido-arrow-right",onClick:t=>{E("this.nextBtn='true'",t.currentTarget)}},y("lido-image",{src:this.navBarIcons.next,width:"stretch"}))),y("div",{id:"main-audio",class:"popup-button",onClick:()=>this.handleBtnpopupClick()},y("lido-image",{visible:"true",src:this.navBarIcons.speak,width:"stretch"})))}jumpToContainer(t){this.NextContainerKey(t)}render(){var t,i;return this.xmlData?y(O,{class:"lido-home",uuid:this.uuid,"template-id":"",index:this.currentContainerIndex,totalIndex:this.containers.length,style:{userSelect:"none"}},y("div",{key:this.currentContainerIndex},null===(i=(t=this.containers)[this.currentContainerIndex])||void 0===i?void 0:i.call(t)),this.renderDots(),this.exitFlag&&y("div",{class:"lido-alert-parent"},y("div",{class:"lido-alert-popup"},y("lido-cell",{class:"lido-alert-content",visible:"true",layout:"col",width:"340px",height:"210px","bg-color":"#fff","border-radius":"16px",onEntry:"this.box-shadow= '0 4px 8px 0 rgba(0, 0, 0, 0.25)';"},y("lido-text",{visible:"true",string:this.translateHomeText("Do you want to exit? button"),width:"294px",height:"38px",class:"popup-exit-text","font-size":"22px",onEntry:"this.margin-bottom =' -36px';"}),y("lido-cell",{visible:"true",layout:"row",width:"294px",class:"btn-cell"},y("lido-text",{visible:"true",string:this.translateHomeText("Exit button"),width:"92px",height:"53px","font-size":"16px",margin:"0px 50px 0px 0px",class:"popup-button",onClick:()=>this.popUpClick("exit"),borderRadius:"16px",onEntry:'this.color="#F34D08"; this.font-weight="700"; this.box-shadow="0 2px 0 #F34D08";',fontFamily:"Baloo Bhai 2","font-weight":"700",bgColor:"white","border-radius":"16px"}),y("lido-text",{visible:"true",string:this.translateHomeText("Continue playing button"),width:"155px",height:"53px","font-size":"16px",class:"popup-button",onClick:()=>this.popUpClick("cancel"),borderRadius:"16px",onEntry:'this.color=white; this.font-weight="700"; this.box-shadow="0 2px 0 #F34D08";',"font-family":"Baloo Bhai 2","font-weight":"700",bgColor:"#F34D08","border-radius":"16px"})))))):y("div",null,"Please provide XML data.")}get el(){return this}static get watchers(){return{commonAudioPath:[{onCommonAudioPathChange:0}],xmlData:[{onXmlDataChange:0}]}}static get style(){return"@font-face{font-family:'Baloo Bhai 2';font-style:normal;font-weight:400 800;font-display:swap;src:url('../assets/offline-assets/fonts/Baloo-Bhai-2/Baloo-Bhai-2-Variable.woff2') format('woff2')}body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:rgb(243, 77, 8) 0px 0px 40px !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}.lido-tts-highlight-overlay{position:fixed;left:0;top:0;pointer-events:none;z-index:9999;background:linear-gradient( 180deg, rgba(255, 235, 59, 0.95), rgba(255, 214, 0, 0.95) );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:width 25ms ease-out, height 25ms ease-out, opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height;contain:layout paint style}@keyframes rightToPlace{from{transform:translateX(2000px)}to{transform:translateX(0)}}@keyframes topToPlace{from{transform:translateY(-1000px)}to{transform:translateY(0)}}@keyframes bottomToPlace{from{transform:translateY(1000px)}to{transform:translateY(0)}}@keyframes placeToLeft{from{}to{transform:translateX(-2000px)}}@keyframes placeToRight{from{}to{transform:translateX(2000px)}}@keyframes leftToPlace{from{transform:translateX(-2000px)}to{transform:translateX(0)}}@keyframes shake{0%{transform:translateX(0)}10%{transform:translateX(-5px)}20%{transform:translateX(5px)}30%{transform:translateX(-5px)}40%{transform:translateX(5px)}50%{transform:translateX(-5px)}60%{transform:translateX(5px)}70%{transform:translateX(-5px)}80%{transform:translateX(5px)}90%{transform:translateX(-5px)}100%{transform:translateX(0)}}@keyframes fallAndBounce{0%{transform:translateY(-1000px)}25%{transform:translateY(0px)}50%{transform:translateY(-200px)}75%{transform:translateY(0)}90%{transform:translateY(-100px)}100%{transform:translateY(0)}}@keyframes placeToDown{0%{transform:translateY(0)}100%{transform:translateY(1000px)}}@keyframes strongShake{0%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-6px)}80%{transform:translateX(6px)}100%{transform:translateX(0)}}@keyframes scaledShake{0%{transform:scale(1) translateX(0);box-shadow:0 0 0 transparent}20%{transform:scale(1.10) translateX(-12px);box-shadow:0 0 10px red}40%{transform:scale(1.10) translateX(12px);box-shadow:0 0 12px red}60%{transform:scale(1.10) translateX(-8px);box-shadow:0 0 10px red}80%{transform:scale(1.10) translateX(8px);box-shadow:0 0 12px red}100%{transform:scale(1) translateX(0);box-shadow:none}}@keyframes horizontalShake{0%{transform:scale(1) translateX(0);background-color:transparent}20%{transform:translateX(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateX(20px);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateX(-10px);background-color:rgba(255, 0, 0, 0.3)}80%{transform:translateX(10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translateX(0);background-color:transparent}}@keyframes verticalShake{0%{transform:translateY(0);background-color:transparent}20%{transform:translateY(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateY(20px);background-color:rgba(255, 0, 0, 0.2)}80%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.1)}100%{transform:translateY(0);background-color:transparent}}@keyframes diagonalShake{0%{transform:translate(0, 0);background-color:transparent}25%{transform:translate(20px, -20px);background-color:rgba(255, 0, 0, 0.2)}50%{transform:translate(-20px, 20px);background-color:rgba(255, 0, 0, 0.3)}75%{transform:translate(10px, -10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translate(0, 0);background-color:transparent}}@keyframes glowPulse{0%{filter:drop-shadow(0 0 5px yellow) drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 30px orange)}50%{filter:drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 40px yellow) drop-shadow(0 0 50px orange)}100%{filter:drop-shadow(0 0 5px yellow) drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 30px orange)}}@keyframes trace-animation{0%{}100%{width:var(--trace-width, 100px);height:var(--trace-height, 100px)}}.lido-snackbar{visibility:visible;min-width:250px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:16px;position:fixed;z-index:1;bottom:30px;left:50%;transform:translateX(-50%);font-size:17px}.lido-dot-container{display:flex;justify-content:space-between;align-items:center;visibility:hidden;position:absolute;left:50%;padding:0 5px;z-index:1;width:100vw;max-width:100vw;box-sizing:border-box;height:0px}.lido-dot{height:18px;width:18px;margin:0 4px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color 0.3s;cursor:pointer;z-index:1}.lido-btn-dot-container{flex-shrink:1;flex-grow:1;display:flex;justify-content:center;align-items:center;text-align:center;z-index:1;min-width:0;height:0px}.lido-dot.completed{background-color:grey}.lido-dot.current{background-color:green}.lido-dot:not(.completed):not(.current){background-color:#bbb}#lido-arrow-left,#lido-arrow-right{width:88px;height:88px;display:flex;align-items:center;justify-content:center;border-radius:12px;z-index:1000;box-shadow:0px 8px 0px 0px #8b310f;background-color:#f34d08;cursor:pointer;visibility:hidden;flex-shrink:0}#lido-arrow-left:active,#lido-arrow-right:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px}.navbar{display:flex;justify-content:center}.lido-exit-button,#main-audio{width:80px;height:80px;z-index:1000;cursor:pointer;background-color:white;display:flex;align-items:center;justify-content:center;border:4px solid #f34d08;border-radius:16px;box-shadow:0px 8px #f34d08;flex-shrink:0;}#main-audio:active,.popup-button:active,.lido-exit-button:active{margin-bottom:-8px;box-shadow:0px 0px 0px 0px !important}.lido-alert-popup{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:1000}@media (max-width: 768px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0 8px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0 8px}.lido-dot{height:16px;width:16px;margin:0 2.5px}}@media (max-width: 480px){#lido-arrow-left,#lido-arrow-right{width:74px;height:74px;margin:0px 5px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0px 5px}.lido-dot{height:15px;width:15px;margin:0 1.5px}.lido-dot-container{padding:0 3px}}@media (max-width: 375px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 3px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 3px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 2px}}@media (max-width: 320px){#lido-arrow-left,#lido-arrow-right,.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 2px}.lido-dot{height:12px;width:12px;margin:0 0.5px}.lido-dot-container{padding:0 2px}}@media (max-width: 900px) and (orientation: landscape){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 5px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 5px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 5px}}.popup-exit-text{white-space:nowrap;font-size:22px;font-weight:600;margin-top:-8%}.lido-alert-parent{z-index:10000 !important;position:absolute;top:0;left:0}.popup-button{width:80px;height:80px;z-index:1000;cursor:pointer;display:flex;align-items:center;justify-content:center;border:4px solid #F34D08;border-radius:16px;box-shadow:0 8px 0 #F34D08}.nav-for-lanai{position:absolute;top:0%;left:0%;max-width:none;width:100%;height:auto;visibility:visible}"}},[0,"lido-home",{commonAudioPath:[1,"common-audio-path"],showNav:[4,"show-nav"],activeContainerIndexes:[16],Lang:[1,"lang"],xmlData:[1,"xml-data"],initialIndex:[2,"initial-index"],canplay:[4],baseUrl:[1,"base-url"],height:[1],exitButtonUrl:[1,"exit-button-url"],prevButtonUrl:[1,"prev-button-url"],nextButtonUrl:[1,"next-button-url"],speakerButtonUrl:[1,"speaker-button-url"],avatarUrl:[1,"avatar-url"],uuid:[1],zipUrl:[513,"zip-url"],navBarIcons:[32],currentContainerIndex:[32],resizeTrigger:[32],exitFlag:[32],containers:[32],templateData:[32],showDotsandbtn:[32]},void 0,{commonAudioPath:[{onCommonAudioPathChange:0}],xmlData:[{onXmlDataChange:0}]}]);function ft(){"undefined"!=typeof customElements&&["lido-home","lido-avatar","lido-balance","lido-calculator","lido-canvas","lido-cell","lido-col","lido-container","lido-flash-card","lido-float","lido-image","lido-keyboard","lido-math-matrix","lido-pos","lido-random","lido-row","lido-shape","lido-slide-fill","lido-text","lido-trace","lido-wrap"].forEach((t=>{switch(t){case"lido-home":customElements.get(r(t))||customElements.define(r(t),ht);break;case"lido-avatar":customElements.get(r(t))||_();break;case"lido-balance":customElements.get(r(t))||Z();break;case"lido-calculator":customElements.get(r(t))||W();break;case"lido-canvas":customElements.get(r(t))||N();break;case"lido-cell":customElements.get(r(t))||L();break;case"lido-col":customElements.get(r(t))||G();break;case"lido-container":customElements.get(r(t))||Y();break;case"lido-flash-card":customElements.get(r(t))||M();break;case"lido-float":customElements.get(r(t))||$();break;case"lido-image":customElements.get(r(t))||P();break;case"lido-keyboard":customElements.get(r(t))||H();break;case"lido-math-matrix":customElements.get(r(t))||J();break;case"lido-pos":customElements.get(r(t))||K();break;case"lido-random":customElements.get(r(t))||q();break;case"lido-row":customElements.get(r(t))||V();break;case"lido-shape":customElements.get(r(t))||Q();break;case"lido-slide-fill":customElements.get(r(t))||tt();break;case"lido-text":customElements.get(r(t))||I();break;case"lido-trace":customElements.get(r(t))||it();break;case"lido-wrap":customElements.get(r(t))||rt()}}))}ft();export{ht as L,ft as d}
12
+ */const at=new u,ht=n(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.commonAudioPath="",this.showNav=!0,this.activeContainerIndexes=[],this.Lang="en",this.xmlData="",this.initialIndex=0,this.canplay=!0,this.baseUrl="",this.height="",this.uuid=o(),this.zipUrl="",this.currentContainerIndex=this.initialIndex,this.resizeTrigger=0,this.exitFlag=!1,this.containers=[],this.templateData=[],this.placeholderRegex=/\{([a-zA-Z0-9_]+)\}/g,this.extractedAssets={},this.handleNextContainerEvent=()=>{this.NextContainerKey()},this.handlePrevContainerEvent=()=>{this.PrevContainerKey()},this.handleChangeContainerEvent=t=>{this.NextContainerKey(t.detail.index)},this.handleBeforeUnload=()=>{s.getI().stop(),localStorage.removeItem(a)},this.handleWindowResize=()=>{this.scaleNavbarContainer(),this.resizeTrigger++,this.containers=[...this.containers]},this.NextContainerKey=t=>{var i;this.uuid===(null===(i=document.querySelector("lido-home"))||void 0===i?void 0:i.getAttribute("uuid"))&&(null!=t&&t==this.currentContainerIndex||(null!=t&&t<this.containers.length?(this.currentContainerIndex=t,h(this.currentContainerIndex)):this.currentContainerIndex<this.containers.length-1?(this.currentContainerIndex++,h(this.currentContainerIndex)):this.currentContainerIndex>=this.containers.length-1&&(localStorage.removeItem(a),this.currentContainerIndex=null),this.containers=[...this.containers],this.updateArrowVisibility()))},this.PrevContainerKey=()=>{this.currentContainerIndex<=0||(this.currentContainerIndex--,h(this.currentContainerIndex),this.containers=[...this.containers],this.updateArrowVisibility())},this.showDotsandbtn=!1,this.updateArrowVisibility=()=>{this.showNav&&setTimeout((()=>{const t=this.el.querySelector("lido-container");if(!t)return;const i=t.getAttribute("show-prev-button"),r=t.getAttribute("show-next-button"),n=this.el.querySelector("#lido-arrow-right");this.el.querySelector("#lido-arrow-left").style.visibility="true"!==i?"hidden":"visible",n.style.visibility="true"!==r?"hidden":"visible"}),100)},this.btnpopupRunId=0,this.activeBtnpopupRunId=null,this.shouldStopActiveBtnpopupAudio=!0,this.handleWindowTouch=t=>{null!==this.activeBtnpopupRunId&&this.cancelBtnpopupRun(this.hasAudioOnInteractionTarget(t.target))},this.handleWindowPointer=t=>{"touch"===t.pointerType&&null!==this.activeBtnpopupRunId&&this.cancelBtnpopupRun(this.hasAudioOnInteractionTarget(t.target))},this.popUpClick=t=>{const i=this.el.querySelector(".lido-alert-popup");this.exitFlag=!1,i&&("exit"===t?(s.getI().stop(),f.getI().stop(),at.rightMoves=0,at.wrongMoves=0,at.totalRightMovesCount=0,at.totalWrongMovesCount=0,localStorage.removeItem(a),i.remove(),this.currentContainerIndex=0,c()):i.remove())}}translateHomeText(t){var i;const r=null===(i=this.Lang)||void 0===i?void 0:i.trim();return r?_.getFixedT(r)(t):_.t(t)}onCommonAudioPathChange(t){this.publishCommonAudioPath(t)}async componentWillLoad(){if(this.navBarIcons={exit:this.exitButtonUrl||m,prev:this.prevButtonUrl||p,next:this.nextButtonUrl||d,speak:this.speakerButtonUrl||l},0===this.currentContainerIndex&&localStorage.removeItem(a),window.addEventListener(b,this.handleNextContainerEvent),window.addEventListener(w,this.handlePrevContainerEvent),window.addEventListener("changeContainer",this.handleChangeContainerEvent),this.zipUrl&&(this.xmlData="",await this.extractZipAndSetBase(),await this.loadXmlFromZip()),await this.loadTemplateData(),(this.xmlData||"").trim().includes("lido-container"))this.parseXMLData(this.xmlData);else{const t=await this.decompressBrotliBase64(this.xmlData);this.parseXMLData(t)}window.addEventListener("beforeunload",this.handleBeforeUnload)}async loadTemplateData(){if(!this.baseUrl&&!this.zipUrl)return;const t=[this.resolveAsset("data.json")].filter(Boolean);for(const i of t)try{const t=i.startsWith("http")||i.startsWith("blob")?i:v(i),r=await fetch(t);if(!r.ok)continue;const n=await r.json();if(Array.isArray(n)&&(this.templateData=n.filter((t=>t&&"object"==typeof t)),this.templateData.length))return}catch(t){console.warn(`[LidoHome] Failed to load template data from ${i}`,t)}}async decompressBrotliBase64(t){var i;for(t=(t||"").trim().replace(/^data:.*;base64,/,"").replace(/^['"]|['"]$/g,"").replace(/\\n/g,"").replace(/\s+/g,"").replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";const r=atob(t),n=new Uint8Array(r.length);for(let t=0;t<r.length;t++)n[t]=r.charCodeAt(t);if("DecompressionStream"in window)try{const t=new window.DecompressionStream("br"),i=new Blob([n]).stream().pipeThrough(t),r=await new Response(i).arrayBuffer();return(new TextDecoder).decode(r)}catch(t){console.warn("[LidoRoot] Native Brotli unavailable, trying WASM fallback.",t)}try{const t=await import("./p-Bh_vemY3.js").then((function(t){return t.d})),r=t.BrotliDecompressBuffer||(null===(i=t.default)||void 0===i?void 0:i.BrotliDecompressBuffer);if("function"!=typeof r)throw new Error("BrotliDecompressBuffer function not found in brotli/dec/decode");const e=r(n);return(new TextDecoder).decode(e)}catch(t){throw new Error(`Brotli decompression failed (native + fallback): ${t instanceof Error?t.message:String(t)}`)}}async extractZipAndSetBase(){this.revokeExtractedAssets();const t=this.zipUrl.replace(/\\/g,"/"),i=t.startsWith("http")||t.startsWith("blob")||t.startsWith("data")?t:v(t),r=await fetch(i);if(!r.ok)throw new Error("Unable to fetch ZIP");const n=await r.blob(),e=await st.loadAsync(n);for(const t of Object.keys(e.files)){const i=e.files[t];if(!i.dir){const r=await i.async("blob");this.extractedAssets[t]=URL.createObjectURL(r)}}D(this.extractedAssets)}revokeExtractedAssets(){for(const t of Object.values(this.extractedAssets))URL.revokeObjectURL(t);this.extractedAssets={},T()}async loadXmlFromZip(){const t="index.xml",i=this.resolveAsset(t);if(!i)throw console.warn("[LidoHome] ZIP extraction keys:",Object.keys(this.extractedAssets)),new Error(`Unable to find XML file '${t}' inside ZIP`);const r=await fetch(i);if(!r.ok)throw new Error(`Unable to fetch XML from ZIP: ${r.statusText}`);this.xmlData=await r.text()}resolveAsset(t){if(this.zipUrl){const i=t.replace(/^\/+/,""),r=this.extractedAssets[t]||this.extractedAssets[i];if(r)return r;const n=i.replace(/^.*\//,""),e=Object.keys(this.extractedAssets).find((t=>t===i||t===n||t.endsWith(`/${i}`)||t.endsWith(`/${n}`)));return e?this.extractedAssets[e]:void 0}return`${this.baseUrl.replace(/\/+$/,"")}/${t}`}componentDidLoad(){this.publishCommonAudioPath(this.commonAudioPath),setTimeout((()=>{this.showDotsandbtn=!0}),10),this.updateArrowVisibility(),this.scaleNavbarContainer(),this.handleIcons(),window.addEventListener("resize",this.handleWindowResize),window.addEventListener("touchstart",this.handleWindowTouch,{passive:!0}),window.addEventListener("pointerdown",this.handleWindowPointer,{passive:!0})}publishCommonAudioPath(t){if(!t)return;const i=t.replace(/\/+$/,"");window[x]=i,window.dispatchEvent(new Event("lidoCommonAudioPathReady"))}async handleIcons(){var t;const i=async(t,i,r)=>t?U(t):i?U(i):null!=r&&r,r=document.getElementById(g),n=r.getAttribute("exit-button-url"),e=r.getAttribute("prev-button-url"),o=r.getAttribute("next-button-url"),s=null!==(t=r.getAttribute("speak-button-url"))&&void 0!==t?t:r.getAttribute("speaker-button-url");this.navBarIcons={exit:`${await i(this.exitButtonUrl,n,m)}`,prev:`${await i(this.prevButtonUrl,e,p)}`,next:`${await i(this.nextButtonUrl,o,d)}`,speak:`${await i(this.speakerButtonUrl,s,l)}`}}updateBackgroundImage(){const t=document.querySelector(g),i=t.getAttribute("bg-image");document.body.style.background="none",t.style.backgroundImage=i?`url(${i})`:"none",t.style.backgroundPosition=i?"bottom":"none",setTimeout((()=>{const i=document.querySelector(".lido-dot-container");i.classList.add("nav-for-lanai"),t.append(i)}),50)}disconnectedCallback(){s.destroyI(),this.revokeExtractedAssets(),window.removeEventListener(b,this.handleNextContainerEvent),window.removeEventListener("changeContainer",this.handleChangeContainerEvent),window.removeEventListener(w,this.handlePrevContainerEvent),window.removeEventListener("beforeunload",this.handleBeforeUnload),window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("touchstart",this.handleWindowTouch),window.removeEventListener("pointerdown",this.handleWindowPointer)}parseXMLData(t){if(t){const i=(new DOMParser).parseFromString(t,"text/xml");this.parseContainers(i.documentElement)}}resolveContainerData(t){var i;return(null===(i=this.templateData)||void 0===i?void 0:i.length)?this.templateData[t]?this.templateData[t]:1===this.templateData.length?this.templateData[0]:null:null}replacePlaceholders(t,i){return i&&t?t.replace(this.placeholderRegex,((t,r)=>{const n=i[r];return null==n?`{${r}}`:String(n)})):t}applyDataToElement(t,i){return i?([t,...Array.from(t.querySelectorAll("*"))].forEach((t=>{Array.from(t.attributes).forEach((r=>{const n=r.value.replace(this.placeholderRegex,((t,r)=>{const n=i[r];return null==n?`{${r}}`:String(n)}));n!==r.value&&t.setAttribute(r.name,n)}))})),t):t}onXmlDataChange(t){this.parseXMLData(t)}parseElement(t){const i=t.nodeName.toLowerCase(),r={};Array.from(t.attributes).forEach((t=>{r[t.name]=t.value}));const n=Array.from(t.childNodes).map((t=>1===t.nodeType?this.parseElement(t):3===t.nodeType&&""!==t.textContent.trim()?t.textContent:null)).filter(Boolean);"lido-text"===i&&r.string&&(r.string=_.t(r.string)),"lido-text"===i&&r.string&&(r.string=_.t(r.string));const e={"lido-container":y("lido-container",Object.assign({key:this.resizeTrigger},r,{canplay:this.canplay},this.zipUrl?{}:{baseUrl:this.baseUrl},{height:this.height}),n),"lido-flash-card":y("lido-flash-card",Object.assign({},r),n),"lido-col":y("lido-col",Object.assign({},r),n),"lido-trace":y("lido-trace",Object.assign({},r),n),"lido-image":y("lido-image",Object.assign({},r),n),"lido-row":y("lido-row",Object.assign({},r),n),"lido-text":y("lido-text",Object.assign({},r),n),"lido-pos":y("lido-pos",Object.assign({},r),n),"lido-shape":y("lido-shape",Object.assign({},r),n),"lido-wrap":y("lido-wrap",Object.assign({},r),n),"lido-random":y("lido-random",Object.assign({},r),n),"lido-avatar":y("lido-avatar",Object.assign({},r),n),"lido-cell":y("lido-cell",Object.assign({},r),n),"lido-slide-fill":y("lido-slide-fill",Object.assign({},r),n),"lido-float":y("lido-float",Object.assign({},r),n),"lido-keyboard":y("lido-keyboard",Object.assign({},r),n),"lido-math-matrix":y("lido-math-matrix",Object.assign({},r),n),"lido-balance":y("lido-balance",Object.assign({},r),n),"lido-calculator":y("lido-calculator",Object.assign({},r),n),"lido-canvas":y("lido-canvas",Object.assign({},r),n)};return e[i]?e[i]:(console.warn(`Unknown tag: ${i}`),null)}parseContainers(t){const i=t.querySelectorAll("lido-container"),r=Array.from(i).map(((t,i)=>{if(this.activeContainerIndexes.length&&!this.activeContainerIndexes.includes(i))return;const r=this.resolveContainerData(i),n=this.applyDataToElement(t,r);return()=>this.parseElement(n)})).filter(Boolean);this.containers=r}areAllDropsFilled(){const t=Array.from(document.querySelectorAll('[type="drop"]')),i=Array.from(document.querySelectorAll('[type="drag"]')).filter((t=>t.getAttribute("drop-to")));return t.every((t=>{const r=t.id;return i.some((t=>t.getAttribute("drop-to")===r))}))}async btnpopup(t){var i,r;const n=()=>t!==this.btnpopupRunId,e=document.getElementById(g);if(n())return;if(!e||"true"===e.getAttribute("game-completed"))return;if(R(!1),await s.getI().stop(),n())return;const o=e.querySelectorAll("*"),a=e.getAttribute(k);if(a){const t=this.el.querySelector(`#${a}`);if(t&&(await E("this.speak='true';",t),n()))return}for(const t of Array.from(o)){if(A()||n())break;const i=t.getAttribute("tab-index"),r=t;if(i&&Number(i)>0){const t=t=>{const i=t.getBoundingClientRect();return i.width>0&&i.height>0&&i.bottom>0&&i.right>0&&i.top<window.innerHeight&&i.left<window.innerWidth},i=null==r?void 0:r.getAttribute("type");if(r&&"true"!==r.getAttribute("disable-speak")&&((null==i?void 0:i.trim())&&t(r)||!i||!i.trim())&&await s.getI().play(r),A()||n()){this.shouldStopActiveBtnpopupAudio&&await s.getI().stop();break}if(await new Promise((t=>setTimeout(t,300))),n())break}}if(!n())if(this.areAllDropsFilled()){const t=e.objective,n=null!==(r=JSON.parse(null!==(i=e.getAttribute(j))&&void 0!==i?i:"[]"))&&void 0!==r?r:[];z(t,n)&&S()}else"true"===e.getAttribute("game-completed")&&S()}hasAudioOnInteractionTarget(t){const i=t;if(!i)return!1;const r=t=>{if(!(t instanceof e))return!1;const i=t.getAttribute("audio");return!!i&&i.trim().length>0};return!!r(i)||!!r(i.closest("[audio]"))||!!r(i.querySelector("[audio]"))}async cancelBtnpopupRun(t=!0){this.btnpopupRunId++,this.shouldStopActiveBtnpopupAudio=t,R(!0),t&&await s.getI().stop()}async handleBtnpopupClick(){await this.cancelBtnpopupRun();const t=this.btnpopupRunId;R(!1),this.activeBtnpopupRunId=t,this.shouldStopActiveBtnpopupAudio=!0;try{await this.btnpopup(t)}finally{this.activeBtnpopupRunId===t&&(this.activeBtnpopupRunId=null),this.shouldStopActiveBtnpopupAudio=!0}}scaleNavbarContainer(){setTimeout((()=>{const t=document.querySelector(".lido-dot-container");t&&((1600===window.innerWidth&&900===window.innerHeight||900===window.innerWidth&&1600===window.innerHeight)&&document.querySelectorAll(".lido-exit-button, #main-audio").forEach((t=>{t.style.marginLeft="10px",t.style.marginRight="10px"})),t.style.top=window.innerWidth>window.innerHeight?"6%":"3.5%",t.style.transform="translate(-50%, -50%)",t.style.visibility="visible",Array.from(t.children).forEach((t=>{t.style.transform=`scale(${B()})`})),t.style.width=window.outerWidth+"px")}),500)}renderDots(){const t={pointerEvents:this.canplay?"none":""};return y("div",{id:"lido-dot-indicator",class:"lido-dot-container",style:{visibility:"hidden"}},y("div",{class:"lido-exit-button popup-button",onClick:()=>{this.exitFlag=!0,s.getI().stop()}},y("lido-image",{src:this.navBarIcons.exit,width:"stretch"})),y("div",{class:"lido-btn-dot-container"},y("div",{id:"lido-arrow-left",onClick:()=>{C()}},y("lido-image",{src:this.navBarIcons.prev,width:"stretch"})),this.containers.map(((i,r)=>y("div",{class:"parent_dots"},y("span",{class:"lido-dot "+(r<this.currentContainerIndex?"completed":r===this.currentContainerIndex?"current":""),onClick:()=>this.jumpToContainer(r),style:t})))),y("div",{id:"lido-arrow-right",onClick:t=>{E("this.nextBtn='true'",t.currentTarget)}},y("lido-image",{src:this.navBarIcons.next,width:"stretch"}))),y("div",{id:"main-audio",class:"popup-button",onClick:()=>this.handleBtnpopupClick()},y("lido-image",{visible:"true",src:this.navBarIcons.speak,width:"stretch"})))}jumpToContainer(t){this.NextContainerKey(t)}render(){var t,i;return this.xmlData?y(O,{class:"lido-home",uuid:this.uuid,"template-id":"",index:this.currentContainerIndex,totalIndex:this.containers.length,style:{userSelect:"none"}},y("div",{key:this.currentContainerIndex},null===(i=(t=this.containers)[this.currentContainerIndex])||void 0===i?void 0:i.call(t)),this.renderDots(),this.exitFlag&&y("div",{class:"lido-alert-parent"},y("div",{class:"lido-alert-popup"},y("lido-cell",{class:"lido-alert-content",visible:"true",layout:"col",width:"340px",height:"210px","bg-color":"#fff","border-radius":"16px",onEntry:"this.box-shadow= '0 4px 8px 0 rgba(0, 0, 0, 0.25)';"},y("lido-text",{visible:"true",string:this.translateHomeText("Do you want to exit? button"),width:"294px",height:"38px",class:"popup-exit-text","font-size":"22px",onEntry:"this.margin-bottom =' -36px';"}),y("lido-cell",{visible:"true",layout:"row",width:"294px",class:"btn-cell"},y("lido-text",{visible:"true",string:this.translateHomeText("Exit button"),width:"92px",height:"53px","font-size":"16px",margin:"0px 50px 0px 0px",class:"popup-button",onClick:()=>this.popUpClick("exit"),borderRadius:"16px",onEntry:'this.color="#F34D08"; this.font-weight="700"; this.box-shadow="0 2px 0 #F34D08";',fontFamily:"Baloo Bhai 2","font-weight":"700",bgColor:"white","border-radius":"16px"}),y("lido-text",{visible:"true",string:this.translateHomeText("Continue playing button"),width:"155px",height:"53px","font-size":"16px",class:"popup-button",onClick:()=>this.popUpClick("cancel"),borderRadius:"16px",onEntry:'this.color=white; this.font-weight="700"; this.box-shadow="0 2px 0 #F34D08";',"font-family":"Baloo Bhai 2","font-weight":"700",bgColor:"#F34D08","border-radius":"16px"})))))):y("div",null,"Please provide XML data.")}get el(){return this}static get watchers(){return{commonAudioPath:[{onCommonAudioPathChange:0}],xmlData:[{onXmlDataChange:0}]}}static get style(){return"@font-face{font-family:'Baloo Bhai 2';font-style:normal;font-weight:400 800;font-display:swap;src:url('../assets/offline-assets/fonts/Baloo-Bhai-2/Baloo-Bhai-2-Variable.woff2') format('woff2')}body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:rgb(243, 77, 8) 0px 0px 40px !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}.lido-tts-highlight-overlay{position:fixed;left:0;top:0;pointer-events:none;z-index:9999;background:linear-gradient( 180deg, rgba(255, 235, 59, 0.95), rgba(255, 214, 0, 0.95) );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:width 25ms ease-out, height 25ms ease-out, opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height;contain:layout paint style}.category-dropped-onCorrect{box-shadow:rgba(129, 193, 39, 1) 0px 8px 8px 0px !important}.category-dropped-onInCorrect{box-shadow:rgba(255, 4, 16, 1) 0px 8px 8px 0px !important}@keyframes rightToPlace{from{transform:translateX(2000px)}to{transform:translateX(0)}}@keyframes topToPlace{from{transform:translateY(-1000px)}to{transform:translateY(0)}}@keyframes bottomToPlace{from{transform:translateY(1000px)}to{transform:translateY(0)}}@keyframes placeToLeft{from{}to{transform:translateX(-2000px)}}@keyframes placeToRight{from{}to{transform:translateX(2000px)}}@keyframes leftToPlace{from{transform:translateX(-2000px)}to{transform:translateX(0)}}@keyframes shake{0%{transform:translateX(0)}10%{transform:translateX(-5px)}20%{transform:translateX(5px)}30%{transform:translateX(-5px)}40%{transform:translateX(5px)}50%{transform:translateX(-5px)}60%{transform:translateX(5px)}70%{transform:translateX(-5px)}80%{transform:translateX(5px)}90%{transform:translateX(-5px)}100%{transform:translateX(0)}}@keyframes fallAndBounce{0%{transform:translateY(-1000px)}25%{transform:translateY(0px)}50%{transform:translateY(-200px)}75%{transform:translateY(0)}90%{transform:translateY(-100px)}100%{transform:translateY(0)}}@keyframes placeToDown{0%{transform:translateY(0)}100%{transform:translateY(1000px)}}@keyframes strongShake{0%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-6px)}80%{transform:translateX(6px)}100%{transform:translateX(0)}}@keyframes scaledShake{0%{transform:scale(1) translateX(0);box-shadow:0 0 0 transparent}20%{transform:scale(1.10) translateX(-12px);box-shadow:0 0 10px red}40%{transform:scale(1.10) translateX(12px);box-shadow:0 0 12px red}60%{transform:scale(1.10) translateX(-8px);box-shadow:0 0 10px red}80%{transform:scale(1.10) translateX(8px);box-shadow:0 0 12px red}100%{transform:scale(1) translateX(0);box-shadow:none}}@keyframes horizontalShake{0%{transform:scale(1) translateX(0);background-color:transparent}20%{transform:translateX(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateX(20px);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateX(-10px);background-color:rgba(255, 0, 0, 0.3)}80%{transform:translateX(10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translateX(0);background-color:transparent}}@keyframes verticalShake{0%{transform:translateY(0);background-color:transparent}20%{transform:translateY(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateY(20px);background-color:rgba(255, 0, 0, 0.2)}80%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.1)}100%{transform:translateY(0);background-color:transparent}}@keyframes diagonalShake{0%{transform:translate(0, 0);background-color:transparent}25%{transform:translate(20px, -20px);background-color:rgba(255, 0, 0, 0.2)}50%{transform:translate(-20px, 20px);background-color:rgba(255, 0, 0, 0.3)}75%{transform:translate(10px, -10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translate(0, 0);background-color:transparent}}@keyframes glowPulse{0%{filter:drop-shadow(0 0 5px yellow) drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 30px orange)}50%{filter:drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 40px yellow) drop-shadow(0 0 50px orange)}100%{filter:drop-shadow(0 0 5px yellow) drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 30px orange)}}@keyframes trace-animation{0%{}100%{width:var(--trace-width, 100px);height:var(--trace-height, 100px)}}.lido-snackbar{visibility:visible;min-width:250px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:16px;position:fixed;z-index:1;bottom:30px;left:50%;transform:translateX(-50%);font-size:17px}.lido-dot-container{display:flex;justify-content:space-between;align-items:center;visibility:hidden;position:absolute;left:50%;padding:0 5px;z-index:1;width:100vw;max-width:100vw;box-sizing:border-box;height:0px}.lido-dot{height:18px;width:18px;margin:0 4px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color 0.3s;cursor:pointer;z-index:1}.lido-btn-dot-container{flex-shrink:1;flex-grow:1;display:flex;justify-content:center;align-items:center;text-align:center;z-index:1;min-width:0;height:0px}.lido-dot.completed{background-color:grey}.lido-dot.current{background-color:green}.lido-dot:not(.completed):not(.current){background-color:#bbb}#lido-arrow-left,#lido-arrow-right{width:88px;height:88px;display:flex;align-items:center;justify-content:center;border-radius:12px;z-index:1000;box-shadow:0px 8px 0px 0px #8b310f;background-color:#f34d08;cursor:pointer;visibility:hidden;flex-shrink:0}#lido-arrow-left:active,#lido-arrow-right:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px}.navbar{display:flex;justify-content:center}.lido-exit-button,#main-audio{width:80px;height:80px;z-index:1000;cursor:pointer;background-color:white;display:flex;align-items:center;justify-content:center;border:4px solid #f34d08;border-radius:16px;box-shadow:0px 8px #f34d08;flex-shrink:0;}#main-audio:active,.popup-button:active,.lido-exit-button:active{margin-bottom:-8px;box-shadow:0px 0px 0px 0px !important}.lido-alert-popup{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:1000}@media (max-width: 768px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0 8px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0 8px}.lido-dot{height:16px;width:16px;margin:0 2.5px}}@media (max-width: 480px){#lido-arrow-left,#lido-arrow-right{width:74px;height:74px;margin:0px 5px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0px 5px}.lido-dot{height:15px;width:15px;margin:0 1.5px}.lido-dot-container{padding:0 3px}}@media (max-width: 375px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 3px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 3px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 2px}}@media (max-width: 320px){#lido-arrow-left,#lido-arrow-right,.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 2px}.lido-dot{height:12px;width:12px;margin:0 0.5px}.lido-dot-container{padding:0 2px}}@media (max-width: 900px) and (orientation: landscape){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 5px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 5px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 5px}}.popup-exit-text{white-space:nowrap;font-size:22px;font-weight:600;margin-top:-8%}.lido-alert-parent{z-index:10000 !important;position:absolute;top:0;left:0}.popup-button{width:80px;height:80px;z-index:1000;cursor:pointer;display:flex;align-items:center;justify-content:center;border:4px solid #F34D08;border-radius:16px;box-shadow:0 8px 0 #F34D08}.nav-for-lanai{position:absolute;top:0%;left:0%;max-width:none;width:100%;height:auto;visibility:visible}"}},[0,"lido-home",{commonAudioPath:[1,"common-audio-path"],showNav:[4,"show-nav"],activeContainerIndexes:[16],Lang:[1,"lang"],xmlData:[1,"xml-data"],initialIndex:[2,"initial-index"],canplay:[4],baseUrl:[1,"base-url"],height:[1],exitButtonUrl:[1,"exit-button-url"],prevButtonUrl:[1,"prev-button-url"],nextButtonUrl:[1,"next-button-url"],speakerButtonUrl:[1,"speaker-button-url"],avatarUrl:[1,"avatar-url"],uuid:[1],zipUrl:[513,"zip-url"],navBarIcons:[32],currentContainerIndex:[32],resizeTrigger:[32],exitFlag:[32],containers:[32],templateData:[32],showDotsandbtn:[32]},void 0,{commonAudioPath:[{onCommonAudioPathChange:0}],xmlData:[{onXmlDataChange:0}]}]);function ft(){"undefined"!=typeof customElements&&["lido-home","lido-avatar","lido-balance","lido-calculator","lido-canvas","lido-cell","lido-col","lido-container","lido-flash-card","lido-float","lido-image","lido-keyboard","lido-math-matrix","lido-pos","lido-random","lido-row","lido-shape","lido-slide-fill","lido-text","lido-trace","lido-wrap"].forEach((t=>{switch(t){case"lido-home":customElements.get(r(t))||customElements.define(r(t),ht);break;case"lido-avatar":customElements.get(r(t))||Z();break;case"lido-balance":customElements.get(r(t))||X();break;case"lido-calculator":customElements.get(r(t))||W();break;case"lido-canvas":customElements.get(r(t))||N();break;case"lido-cell":customElements.get(r(t))||L();break;case"lido-col":customElements.get(r(t))||G();break;case"lido-container":customElements.get(r(t))||Y();break;case"lido-flash-card":customElements.get(r(t))||M();break;case"lido-float":customElements.get(r(t))||$();break;case"lido-image":customElements.get(r(t))||P();break;case"lido-keyboard":customElements.get(r(t))||H();break;case"lido-math-matrix":customElements.get(r(t))||J();break;case"lido-pos":customElements.get(r(t))||K();break;case"lido-random":customElements.get(r(t))||q();break;case"lido-row":customElements.get(r(t))||Q();break;case"lido-shape":customElements.get(r(t))||V();break;case"lido-slide-fill":customElements.get(r(t))||tt();break;case"lido-text":customElements.get(r(t))||I();break;case"lido-trace":customElements.get(r(t))||it();break;case"lido-wrap":customElements.get(r(t))||rt()}}))}ft();export{ht as L,ft as d}