create-jsview 2.1.367-test.0 → 2.1.428
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/template-react-webpack/package-lock-json +6 -6
- package/template-react-webpack/package.json +2 -2
- package/template-vue-vite/.DS_Store +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/1.54c7645a.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/1.5dc15599.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/1280x7200.f72b317a.jpg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/2.c46fde4a.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/2.df10a8ad.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/3.920d6934.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/3.dd39d2bc.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/4.4cd633a0.jpg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/4.f58de085.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/Couplets.22a8bcb3.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/Square.2085a1e3.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/animated_webp.df116064.webp +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/ball_3.6443240f.webp +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg1.9dacd4a9.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg2.05147169.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg3.4725410a.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg4.67998d21.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg5.e6aeb8ef.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bg_btn.3bc67ce7.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bgimage.9ebd66c5.jpg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bgmusic.bf797943.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/blue_egg.a2c54f95.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/bmpDemo.e06bdb19.bmp +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/boom.159be4de.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/border.32f99a05.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/btn_ok.a0827ed4.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/coin.50aac2a4.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/coupon_left.c9f544cb.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/coupon_mid.ef262879.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/coupon_right.248ee7dc.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/egg_break.e01a800c.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/fail.446dfd56.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/firecracker.bf5b0aa9.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/fireworks.1c112f43.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/focus1.ff67f2e6.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/get.3509893a.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/girl_run.1c322b33.gif +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/goldencoin1.d31809e9.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/goldencoin2.3f5b59d2.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/holder_logo.5d13253c.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/icon.0d3ef206.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/jpegDemo.ede7ed35.jpeg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/jump.d2e172b2.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/jump_down.68b45798.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/jump_up.2f896dd9.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/leadWire.0c2130df.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/light.fd536e0c.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/light2.eac76425.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/line_left.36cc4bd9.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/line_mid.21f25bbe.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/line_right.3a4bbae6.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/lose.86f51553.mp3 +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/mask.c1211360.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/mathjax-tex-svg.d4295dc3.txt +1 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/php.9533a06f.jpg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/php2.7e5cf392.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/pngNoAlphaDemo.8d9edc0f.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/purpleStar.b1920ac5.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/quan.54556d84.webp +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/redCircle.091d191f.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/redStar.9c31bb42.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/red_egg.27ca7d39.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/redpacket1.72196c20.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/redpacket2.0ae89a46.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/resultSquare.b9e3527b.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/roll.aa0dfe6f.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/run.b84383b2.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/scroll.c4efa5a1.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/scroll1.744c0b08.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/snow.22f35787.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/spark.50b3f017.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/star1.dd634833.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/star2.df352429.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/star3.5a62b76f.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/star4.2283606c.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/swipLight.ab6b2bc2.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/tease.3d7fb077.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/tease_lock.3602bb0d.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/test.671066bc.jpg +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/webpDemo.eb0b7786.webp +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/assets/yellowStar.d80f0718.png +0 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.0e83537d.css +6 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.10e9d05f.css +14 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.16cc5e4a.css +20 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.18bd653b.css +10 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.2943d6ec.css +9 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.329ae9f6.css +23 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.32c55297.css +8 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.3e2a4eb1.css +108 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.4ea37a27.css +39 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.54fdcefd.css +51 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.6406907b.css +9 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.643b5c1b.css +8 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.66f2f353.css +553 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.76117f77.css +21 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.7a70ea9d.css +20 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.7ee969c5.css +40 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.8056ee27.css +144 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.81e870e8.css +16 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.8a41b2c9.css +4 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.8b7fc4be.css +21 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.9acd4020.css +9 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.9b8ef7c4.css +17 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.9c2363fe.css +11 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.9c9050df.css +10 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.a37ce6b4.css +78 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.acd46c9f.css +29 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.be6992f1.css +5 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.ce985162.css +37 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.cf0eea52.css +29 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.d80395de.css +76 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.dc17d9ed.css +355 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.e25f7308.css +20 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.e3998d69.css +10 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.e864d83a.css +99 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.eea7c4d0.css +37 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.f7bae60e.css +24 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.fb916576.css +53 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/App.ff455e8a.css +23 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/DispersedItemSample.24d1e5c2.css +31 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/Homepage.6291bd50.css +60 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/HorizontalButtonList.f4192657.css +12 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/MainPage.7bafbf88.css +9 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/SubPage.e3029827.css +17 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/index.bc47ba9c.css +20 -0
- package/template-vue-vite/dist-test-jsview-chunk/css/main.78821670.css +11 -0
- package/template-vue-vite/dist-test-jsview-chunk/debug/jsview-jsmap-serve.mjs +130 -0
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-dom-browser.min.24b59670.js.map +1 -0
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-dom-entry.280f04b1.js.map +1 -0
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-dom-native.min.0039079f.js.map +1 -0
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-engine-js-browser.min.f40edc22.js.map +1 -0
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-forge-define.bfab260e.js.map +1 -0
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-forge-define.min.26efdcd1.js.map +1 -0
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-loader.f9249ad3.js.map +1 -0
- package/template-vue-vite/dist-test-jsview-chunk/debug/map/jsview-vue-entry.415721d8.js.map +1 -0
- package/template-vue-vite/dist-test-jsview-chunk/index.html +14 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.0020360a.js +141 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.073cedd6.js +399 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.0f963d38.js +95 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.11cde12f.js +344 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.121965ad.js +116 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.1575b8f0.js +200 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.21ff555f.js +455 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.29b9c765.js +383 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.34ff6b40.js +107 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.361be0b7.js +144 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.368006e4.js +431 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.36fc32c5.js +192 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.386a753e.js +259 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.3b0de676.js +321 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.3e808b09.js +92 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.40f6e609.js +97 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.539ee14e.js +331 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.55166fae.js +189 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.56200035.js +221 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5698ed0a.js +243 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5788a834.js +1675 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5a51ba28.js +788 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5db3be20.js +215 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5f895413.js +53 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.5f95520c.js +320 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.64e2a47b.js +276 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.69ca326b.js +107 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.6f92a934.js +277 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.6fafe9e2.js +430 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.7067dfe2.js +120 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.754fa30e.js +776 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.7a63fc1e.js +240 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.7b9d1275.js +447 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.7bf78a71.js +89 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.832753e3.js +98 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.83b9bc1a.js +194 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.8473b928.js +568 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.85f0e26b.js +1342 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.8e86826b.js +502 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.94064c31.js +104 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.9625268d.js +173 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.96596f9f.js +119 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.977c745b.js +237 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.9e7fbf3c.js +122 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a059fc60.js +676 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a446bb49.js +369 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a485fc61.js +139 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a574bf96.js +122 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a58787a4.js +225 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a6e90b5c.js +614 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a6ef2ea5.js +241 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.a82ae465.js +119 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.ab97fadc.js +306 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.b8d07d60.js +68 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.ba82ae89.js +731 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.c0fa704f.js +181 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.ca457df6.js +193 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.cab5b11a.js +182 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.ceb70fcc.js +395 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.d1955c7b.js +139 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.d35f431e.js +524 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.d434d1bc.js +1201 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.d9ea2537.js +172 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.dce9c295.js +209 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.e06251fc.js +157 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.e160a2dd.js +587 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.e1d44beb.js +198 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.e442e6e0.js +611 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.e75db44d.js +257 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.ebb89cc7.js +97 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.f5f253ec.js +143 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App.f6a2ac1e.js +251 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/App2.f586c86d.js +112 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic.64639b51.js +112 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic.vue.5e093f8c.js +130 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic2.8b0c8a0a.js +106 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApic2.vue.7959bd77.js +124 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserApicLib.14ef44a9.js +416 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserAudio.28bef0de.js +251 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserAudio.vue.b874d583.js +265 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvLatex.06fbda62.js +100 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvLatex.vue.f0cdb016.js +112 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvPlayer.a6858caf.js +563 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserJsvPlayer.vue.8615ee65.js +575 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserPreload.fe21457d.js +139 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserPreload.vue.23eda6fd.js +146 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserQrcode.727b4b8f.js +175 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserQrcode.vue.8e2b3454.js +181 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserSpray.b126f2ae.js +57 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserSpray.vue.52301a81.js +70 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserTextureAnim.e70349c2.js +315 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/BrowserTextureAnim.vue.5426b5db.js +327 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/DispersedItemSample.9696c982.js +534 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/GifData.e5dd9fac.js +429 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/Homepage.d8afeb55.js +466 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/HorizontalButtonList.bbdbc725.js +160 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/MainPage.cff1e89b.js +57 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/SubPage.9633adf8.js +59 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/app.config.92148fde.js +18 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/export-sfc.2749ebea.js +23 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/index.32520aa9.js +938 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/index.56197146.js +2892 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/index.f76869d4.js +7522 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/jpegDemo.ff177df5.js +7 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-dom-browser.min.24b59670.js +1913 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-dom-entry.280f04b1.js +76 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-dom-native.min.0039079f.js +1487 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-engine-js-browser.min.f40edc22.js +10684 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-forge-define.bfab260e.js +9 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-forge-define.min.26efdcd1.js +97 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-loader.f9249ad3.js +238 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview-vue-entry.415721d8.js +22233 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/jsview.config.a8cf302c.js +49 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/main.bd759d7c.js +565 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/main.jsv.51a0d4f8.mjs +28 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/main.jsv.mjs +28 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/permission.88de599e.js +7 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/pngNoAlphaDemo.fbc58313.js +7 -0
- package/template-vue-vite/dist-test-jsview-chunk/js/vue.889a9b8b.js +5382 -0
- package/template-vue-vite/dist-test-jsview-chunk/jsv-info.json +9 -0
- package/template-vue-vite/dist-test-jsview-chunk/jsv-list.json +248 -0
- package/template-vue-vite/package-lock-json +6 -6
- package/template-vue-vite/package.json +2 -2
- package/template-vue-vite/src/permissionResult.tsx +5 -3
|
@@ -0,0 +1,938 @@
|
|
|
1
|
+
var mode$1 = {
|
|
2
|
+
MODE_NUMBER: 1 << 0,
|
|
3
|
+
MODE_ALPHA_NUM: 1 << 1,
|
|
4
|
+
MODE_8BIT_BYTE: 1 << 2,
|
|
5
|
+
MODE_KANJI: 1 << 3
|
|
6
|
+
};
|
|
7
|
+
var mode = mode$1;
|
|
8
|
+
function QR8bitByte(data) {
|
|
9
|
+
this.mode = mode.MODE_8BIT_BYTE;
|
|
10
|
+
this.data = data;
|
|
11
|
+
}
|
|
12
|
+
QR8bitByte.prototype = {
|
|
13
|
+
getLength: function(buffer) {
|
|
14
|
+
return this.data.length;
|
|
15
|
+
},
|
|
16
|
+
write: function(buffer) {
|
|
17
|
+
for (var i = 0; i < this.data.length; i++) {
|
|
18
|
+
buffer.put(this.data.charCodeAt(i), 8);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
var _8BitByte = QR8bitByte;
|
|
23
|
+
var ErrorCorrectLevel$1 = {
|
|
24
|
+
L: 1,
|
|
25
|
+
M: 0,
|
|
26
|
+
Q: 3,
|
|
27
|
+
H: 2
|
|
28
|
+
};
|
|
29
|
+
var ECL = ErrorCorrectLevel$1;
|
|
30
|
+
function QRRSBlock(totalCount, dataCount) {
|
|
31
|
+
this.totalCount = totalCount;
|
|
32
|
+
this.dataCount = dataCount;
|
|
33
|
+
}
|
|
34
|
+
QRRSBlock.RS_BLOCK_TABLE = [
|
|
35
|
+
// L
|
|
36
|
+
// M
|
|
37
|
+
// Q
|
|
38
|
+
// H
|
|
39
|
+
// 1
|
|
40
|
+
[1, 26, 19],
|
|
41
|
+
[1, 26, 16],
|
|
42
|
+
[1, 26, 13],
|
|
43
|
+
[1, 26, 9],
|
|
44
|
+
// 2
|
|
45
|
+
[1, 44, 34],
|
|
46
|
+
[1, 44, 28],
|
|
47
|
+
[1, 44, 22],
|
|
48
|
+
[1, 44, 16],
|
|
49
|
+
// 3
|
|
50
|
+
[1, 70, 55],
|
|
51
|
+
[1, 70, 44],
|
|
52
|
+
[2, 35, 17],
|
|
53
|
+
[2, 35, 13],
|
|
54
|
+
// 4
|
|
55
|
+
[1, 100, 80],
|
|
56
|
+
[2, 50, 32],
|
|
57
|
+
[2, 50, 24],
|
|
58
|
+
[4, 25, 9],
|
|
59
|
+
// 5
|
|
60
|
+
[1, 134, 108],
|
|
61
|
+
[2, 67, 43],
|
|
62
|
+
[2, 33, 15, 2, 34, 16],
|
|
63
|
+
[2, 33, 11, 2, 34, 12],
|
|
64
|
+
// 6
|
|
65
|
+
[2, 86, 68],
|
|
66
|
+
[4, 43, 27],
|
|
67
|
+
[4, 43, 19],
|
|
68
|
+
[4, 43, 15],
|
|
69
|
+
// 7
|
|
70
|
+
[2, 98, 78],
|
|
71
|
+
[4, 49, 31],
|
|
72
|
+
[2, 32, 14, 4, 33, 15],
|
|
73
|
+
[4, 39, 13, 1, 40, 14],
|
|
74
|
+
// 8
|
|
75
|
+
[2, 121, 97],
|
|
76
|
+
[2, 60, 38, 2, 61, 39],
|
|
77
|
+
[4, 40, 18, 2, 41, 19],
|
|
78
|
+
[4, 40, 14, 2, 41, 15],
|
|
79
|
+
// 9
|
|
80
|
+
[2, 146, 116],
|
|
81
|
+
[3, 58, 36, 2, 59, 37],
|
|
82
|
+
[4, 36, 16, 4, 37, 17],
|
|
83
|
+
[4, 36, 12, 4, 37, 13],
|
|
84
|
+
// 10
|
|
85
|
+
[2, 86, 68, 2, 87, 69],
|
|
86
|
+
[4, 69, 43, 1, 70, 44],
|
|
87
|
+
[6, 43, 19, 2, 44, 20],
|
|
88
|
+
[6, 43, 15, 2, 44, 16],
|
|
89
|
+
// 11
|
|
90
|
+
[4, 101, 81],
|
|
91
|
+
[1, 80, 50, 4, 81, 51],
|
|
92
|
+
[4, 50, 22, 4, 51, 23],
|
|
93
|
+
[3, 36, 12, 8, 37, 13],
|
|
94
|
+
// 12
|
|
95
|
+
[2, 116, 92, 2, 117, 93],
|
|
96
|
+
[6, 58, 36, 2, 59, 37],
|
|
97
|
+
[4, 46, 20, 6, 47, 21],
|
|
98
|
+
[7, 42, 14, 4, 43, 15],
|
|
99
|
+
// 13
|
|
100
|
+
[4, 133, 107],
|
|
101
|
+
[8, 59, 37, 1, 60, 38],
|
|
102
|
+
[8, 44, 20, 4, 45, 21],
|
|
103
|
+
[12, 33, 11, 4, 34, 12],
|
|
104
|
+
// 14
|
|
105
|
+
[3, 145, 115, 1, 146, 116],
|
|
106
|
+
[4, 64, 40, 5, 65, 41],
|
|
107
|
+
[11, 36, 16, 5, 37, 17],
|
|
108
|
+
[11, 36, 12, 5, 37, 13],
|
|
109
|
+
// 15
|
|
110
|
+
[5, 109, 87, 1, 110, 88],
|
|
111
|
+
[5, 65, 41, 5, 66, 42],
|
|
112
|
+
[5, 54, 24, 7, 55, 25],
|
|
113
|
+
[11, 36, 12],
|
|
114
|
+
// 16
|
|
115
|
+
[5, 122, 98, 1, 123, 99],
|
|
116
|
+
[7, 73, 45, 3, 74, 46],
|
|
117
|
+
[15, 43, 19, 2, 44, 20],
|
|
118
|
+
[3, 45, 15, 13, 46, 16],
|
|
119
|
+
// 17
|
|
120
|
+
[1, 135, 107, 5, 136, 108],
|
|
121
|
+
[10, 74, 46, 1, 75, 47],
|
|
122
|
+
[1, 50, 22, 15, 51, 23],
|
|
123
|
+
[2, 42, 14, 17, 43, 15],
|
|
124
|
+
// 18
|
|
125
|
+
[5, 150, 120, 1, 151, 121],
|
|
126
|
+
[9, 69, 43, 4, 70, 44],
|
|
127
|
+
[17, 50, 22, 1, 51, 23],
|
|
128
|
+
[2, 42, 14, 19, 43, 15],
|
|
129
|
+
// 19
|
|
130
|
+
[3, 141, 113, 4, 142, 114],
|
|
131
|
+
[3, 70, 44, 11, 71, 45],
|
|
132
|
+
[17, 47, 21, 4, 48, 22],
|
|
133
|
+
[9, 39, 13, 16, 40, 14],
|
|
134
|
+
// 20
|
|
135
|
+
[3, 135, 107, 5, 136, 108],
|
|
136
|
+
[3, 67, 41, 13, 68, 42],
|
|
137
|
+
[15, 54, 24, 5, 55, 25],
|
|
138
|
+
[15, 43, 15, 10, 44, 16],
|
|
139
|
+
// 21
|
|
140
|
+
[4, 144, 116, 4, 145, 117],
|
|
141
|
+
[17, 68, 42],
|
|
142
|
+
[17, 50, 22, 6, 51, 23],
|
|
143
|
+
[19, 46, 16, 6, 47, 17],
|
|
144
|
+
// 22
|
|
145
|
+
[2, 139, 111, 7, 140, 112],
|
|
146
|
+
[17, 74, 46],
|
|
147
|
+
[7, 54, 24, 16, 55, 25],
|
|
148
|
+
[34, 37, 13],
|
|
149
|
+
// 23
|
|
150
|
+
[4, 151, 121, 5, 152, 122],
|
|
151
|
+
[4, 75, 47, 14, 76, 48],
|
|
152
|
+
[11, 54, 24, 14, 55, 25],
|
|
153
|
+
[16, 45, 15, 14, 46, 16],
|
|
154
|
+
// 24
|
|
155
|
+
[6, 147, 117, 4, 148, 118],
|
|
156
|
+
[6, 73, 45, 14, 74, 46],
|
|
157
|
+
[11, 54, 24, 16, 55, 25],
|
|
158
|
+
[30, 46, 16, 2, 47, 17],
|
|
159
|
+
// 25
|
|
160
|
+
[8, 132, 106, 4, 133, 107],
|
|
161
|
+
[8, 75, 47, 13, 76, 48],
|
|
162
|
+
[7, 54, 24, 22, 55, 25],
|
|
163
|
+
[22, 45, 15, 13, 46, 16],
|
|
164
|
+
// 26
|
|
165
|
+
[10, 142, 114, 2, 143, 115],
|
|
166
|
+
[19, 74, 46, 4, 75, 47],
|
|
167
|
+
[28, 50, 22, 6, 51, 23],
|
|
168
|
+
[33, 46, 16, 4, 47, 17],
|
|
169
|
+
// 27
|
|
170
|
+
[8, 152, 122, 4, 153, 123],
|
|
171
|
+
[22, 73, 45, 3, 74, 46],
|
|
172
|
+
[8, 53, 23, 26, 54, 24],
|
|
173
|
+
[12, 45, 15, 28, 46, 16],
|
|
174
|
+
// 28
|
|
175
|
+
[3, 147, 117, 10, 148, 118],
|
|
176
|
+
[3, 73, 45, 23, 74, 46],
|
|
177
|
+
[4, 54, 24, 31, 55, 25],
|
|
178
|
+
[11, 45, 15, 31, 46, 16],
|
|
179
|
+
// 29
|
|
180
|
+
[7, 146, 116, 7, 147, 117],
|
|
181
|
+
[21, 73, 45, 7, 74, 46],
|
|
182
|
+
[1, 53, 23, 37, 54, 24],
|
|
183
|
+
[19, 45, 15, 26, 46, 16],
|
|
184
|
+
// 30
|
|
185
|
+
[5, 145, 115, 10, 146, 116],
|
|
186
|
+
[19, 75, 47, 10, 76, 48],
|
|
187
|
+
[15, 54, 24, 25, 55, 25],
|
|
188
|
+
[23, 45, 15, 25, 46, 16],
|
|
189
|
+
// 31
|
|
190
|
+
[13, 145, 115, 3, 146, 116],
|
|
191
|
+
[2, 74, 46, 29, 75, 47],
|
|
192
|
+
[42, 54, 24, 1, 55, 25],
|
|
193
|
+
[23, 45, 15, 28, 46, 16],
|
|
194
|
+
// 32
|
|
195
|
+
[17, 145, 115],
|
|
196
|
+
[10, 74, 46, 23, 75, 47],
|
|
197
|
+
[10, 54, 24, 35, 55, 25],
|
|
198
|
+
[19, 45, 15, 35, 46, 16],
|
|
199
|
+
// 33
|
|
200
|
+
[17, 145, 115, 1, 146, 116],
|
|
201
|
+
[14, 74, 46, 21, 75, 47],
|
|
202
|
+
[29, 54, 24, 19, 55, 25],
|
|
203
|
+
[11, 45, 15, 46, 46, 16],
|
|
204
|
+
// 34
|
|
205
|
+
[13, 145, 115, 6, 146, 116],
|
|
206
|
+
[14, 74, 46, 23, 75, 47],
|
|
207
|
+
[44, 54, 24, 7, 55, 25],
|
|
208
|
+
[59, 46, 16, 1, 47, 17],
|
|
209
|
+
// 35
|
|
210
|
+
[12, 151, 121, 7, 152, 122],
|
|
211
|
+
[12, 75, 47, 26, 76, 48],
|
|
212
|
+
[39, 54, 24, 14, 55, 25],
|
|
213
|
+
[22, 45, 15, 41, 46, 16],
|
|
214
|
+
// 36
|
|
215
|
+
[6, 151, 121, 14, 152, 122],
|
|
216
|
+
[6, 75, 47, 34, 76, 48],
|
|
217
|
+
[46, 54, 24, 10, 55, 25],
|
|
218
|
+
[2, 45, 15, 64, 46, 16],
|
|
219
|
+
// 37
|
|
220
|
+
[17, 152, 122, 4, 153, 123],
|
|
221
|
+
[29, 74, 46, 14, 75, 47],
|
|
222
|
+
[49, 54, 24, 10, 55, 25],
|
|
223
|
+
[24, 45, 15, 46, 46, 16],
|
|
224
|
+
// 38
|
|
225
|
+
[4, 152, 122, 18, 153, 123],
|
|
226
|
+
[13, 74, 46, 32, 75, 47],
|
|
227
|
+
[48, 54, 24, 14, 55, 25],
|
|
228
|
+
[42, 45, 15, 32, 46, 16],
|
|
229
|
+
// 39
|
|
230
|
+
[20, 147, 117, 4, 148, 118],
|
|
231
|
+
[40, 75, 47, 7, 76, 48],
|
|
232
|
+
[43, 54, 24, 22, 55, 25],
|
|
233
|
+
[10, 45, 15, 67, 46, 16],
|
|
234
|
+
// 40
|
|
235
|
+
[19, 148, 118, 6, 149, 119],
|
|
236
|
+
[18, 75, 47, 31, 76, 48],
|
|
237
|
+
[34, 54, 24, 34, 55, 25],
|
|
238
|
+
[20, 45, 15, 61, 46, 16]
|
|
239
|
+
];
|
|
240
|
+
QRRSBlock.getRSBlocks = function(typeNumber, errorCorrectLevel) {
|
|
241
|
+
var rsBlock = QRRSBlock.getRsBlockTable(typeNumber, errorCorrectLevel);
|
|
242
|
+
if (rsBlock == void 0) {
|
|
243
|
+
throw new Error("bad rs block @ typeNumber:" + typeNumber + "/errorCorrectLevel:" + errorCorrectLevel);
|
|
244
|
+
}
|
|
245
|
+
var length = rsBlock.length / 3;
|
|
246
|
+
var list = new Array();
|
|
247
|
+
for (var i = 0; i < length; i++) {
|
|
248
|
+
var count = rsBlock[i * 3 + 0];
|
|
249
|
+
var totalCount = rsBlock[i * 3 + 1];
|
|
250
|
+
var dataCount = rsBlock[i * 3 + 2];
|
|
251
|
+
for (var j = 0; j < count; j++) {
|
|
252
|
+
list.push(new QRRSBlock(totalCount, dataCount));
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return list;
|
|
256
|
+
};
|
|
257
|
+
QRRSBlock.getRsBlockTable = function(typeNumber, errorCorrectLevel) {
|
|
258
|
+
switch (errorCorrectLevel) {
|
|
259
|
+
case ECL.L:
|
|
260
|
+
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0];
|
|
261
|
+
case ECL.M:
|
|
262
|
+
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1];
|
|
263
|
+
case ECL.Q:
|
|
264
|
+
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2];
|
|
265
|
+
case ECL.H:
|
|
266
|
+
return QRRSBlock.RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3];
|
|
267
|
+
default:
|
|
268
|
+
return void 0;
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
var RSBlock$1 = QRRSBlock;
|
|
272
|
+
function QRBitBuffer() {
|
|
273
|
+
this.buffer = new Array();
|
|
274
|
+
this.length = 0;
|
|
275
|
+
}
|
|
276
|
+
QRBitBuffer.prototype = {
|
|
277
|
+
get: function(index) {
|
|
278
|
+
var bufIndex = Math.floor(index / 8);
|
|
279
|
+
return (this.buffer[bufIndex] >>> 7 - index % 8 & 1) == 1;
|
|
280
|
+
},
|
|
281
|
+
put: function(num, length) {
|
|
282
|
+
for (var i = 0; i < length; i++) {
|
|
283
|
+
this.putBit((num >>> length - i - 1 & 1) == 1);
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
getLengthInBits: function() {
|
|
287
|
+
return this.length;
|
|
288
|
+
},
|
|
289
|
+
putBit: function(bit) {
|
|
290
|
+
var bufIndex = Math.floor(this.length / 8);
|
|
291
|
+
if (this.buffer.length <= bufIndex) {
|
|
292
|
+
this.buffer.push(0);
|
|
293
|
+
}
|
|
294
|
+
if (bit) {
|
|
295
|
+
this.buffer[bufIndex] |= 128 >>> this.length % 8;
|
|
296
|
+
}
|
|
297
|
+
this.length++;
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
var BitBuffer$1 = QRBitBuffer;
|
|
301
|
+
var QRMath = {
|
|
302
|
+
glog: function(n) {
|
|
303
|
+
if (n < 1) {
|
|
304
|
+
throw new Error("glog(" + n + ")");
|
|
305
|
+
}
|
|
306
|
+
return QRMath.LOG_TABLE[n];
|
|
307
|
+
},
|
|
308
|
+
gexp: function(n) {
|
|
309
|
+
while (n < 0) {
|
|
310
|
+
n += 255;
|
|
311
|
+
}
|
|
312
|
+
while (n >= 256) {
|
|
313
|
+
n -= 255;
|
|
314
|
+
}
|
|
315
|
+
return QRMath.EXP_TABLE[n];
|
|
316
|
+
},
|
|
317
|
+
EXP_TABLE: new Array(256),
|
|
318
|
+
LOG_TABLE: new Array(256)
|
|
319
|
+
};
|
|
320
|
+
for (var i = 0; i < 8; i++) {
|
|
321
|
+
QRMath.EXP_TABLE[i] = 1 << i;
|
|
322
|
+
}
|
|
323
|
+
for (var i = 8; i < 256; i++) {
|
|
324
|
+
QRMath.EXP_TABLE[i] = QRMath.EXP_TABLE[i - 4] ^ QRMath.EXP_TABLE[i - 5] ^ QRMath.EXP_TABLE[i - 6] ^ QRMath.EXP_TABLE[i - 8];
|
|
325
|
+
}
|
|
326
|
+
for (var i = 0; i < 255; i++) {
|
|
327
|
+
QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]] = i;
|
|
328
|
+
}
|
|
329
|
+
var math$2 = QRMath;
|
|
330
|
+
var math$1 = math$2;
|
|
331
|
+
function QRPolynomial(num, shift) {
|
|
332
|
+
if (num.length == void 0) {
|
|
333
|
+
throw new Error(num.length + "/" + shift);
|
|
334
|
+
}
|
|
335
|
+
var offset = 0;
|
|
336
|
+
while (offset < num.length && num[offset] == 0) {
|
|
337
|
+
offset++;
|
|
338
|
+
}
|
|
339
|
+
this.num = new Array(num.length - offset + shift);
|
|
340
|
+
for (var i = 0; i < num.length - offset; i++) {
|
|
341
|
+
this.num[i] = num[i + offset];
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
QRPolynomial.prototype = {
|
|
345
|
+
get: function(index) {
|
|
346
|
+
return this.num[index];
|
|
347
|
+
},
|
|
348
|
+
getLength: function() {
|
|
349
|
+
return this.num.length;
|
|
350
|
+
},
|
|
351
|
+
multiply: function(e) {
|
|
352
|
+
var num = new Array(this.getLength() + e.getLength() - 1);
|
|
353
|
+
for (var i = 0; i < this.getLength(); i++) {
|
|
354
|
+
for (var j = 0; j < e.getLength(); j++) {
|
|
355
|
+
num[i + j] ^= math$1.gexp(math$1.glog(this.get(i)) + math$1.glog(e.get(j)));
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
return new QRPolynomial(num, 0);
|
|
359
|
+
},
|
|
360
|
+
mod: function(e) {
|
|
361
|
+
if (this.getLength() - e.getLength() < 0) {
|
|
362
|
+
return this;
|
|
363
|
+
}
|
|
364
|
+
var ratio = math$1.glog(this.get(0)) - math$1.glog(e.get(0));
|
|
365
|
+
var num = new Array(this.getLength());
|
|
366
|
+
for (var i = 0; i < this.getLength(); i++) {
|
|
367
|
+
num[i] = this.get(i);
|
|
368
|
+
}
|
|
369
|
+
for (var i = 0; i < e.getLength(); i++) {
|
|
370
|
+
num[i] ^= math$1.gexp(math$1.glog(e.get(i)) + ratio);
|
|
371
|
+
}
|
|
372
|
+
return new QRPolynomial(num, 0).mod(e);
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
var Polynomial$2 = QRPolynomial;
|
|
376
|
+
var Mode = mode$1;
|
|
377
|
+
var Polynomial$1 = Polynomial$2;
|
|
378
|
+
var math = math$2;
|
|
379
|
+
var QRMaskPattern = {
|
|
380
|
+
PATTERN000: 0,
|
|
381
|
+
PATTERN001: 1,
|
|
382
|
+
PATTERN010: 2,
|
|
383
|
+
PATTERN011: 3,
|
|
384
|
+
PATTERN100: 4,
|
|
385
|
+
PATTERN101: 5,
|
|
386
|
+
PATTERN110: 6,
|
|
387
|
+
PATTERN111: 7
|
|
388
|
+
};
|
|
389
|
+
var QRUtil = {
|
|
390
|
+
PATTERN_POSITION_TABLE: [
|
|
391
|
+
[],
|
|
392
|
+
[6, 18],
|
|
393
|
+
[6, 22],
|
|
394
|
+
[6, 26],
|
|
395
|
+
[6, 30],
|
|
396
|
+
[6, 34],
|
|
397
|
+
[6, 22, 38],
|
|
398
|
+
[6, 24, 42],
|
|
399
|
+
[6, 26, 46],
|
|
400
|
+
[6, 28, 50],
|
|
401
|
+
[6, 30, 54],
|
|
402
|
+
[6, 32, 58],
|
|
403
|
+
[6, 34, 62],
|
|
404
|
+
[6, 26, 46, 66],
|
|
405
|
+
[6, 26, 48, 70],
|
|
406
|
+
[6, 26, 50, 74],
|
|
407
|
+
[6, 30, 54, 78],
|
|
408
|
+
[6, 30, 56, 82],
|
|
409
|
+
[6, 30, 58, 86],
|
|
410
|
+
[6, 34, 62, 90],
|
|
411
|
+
[6, 28, 50, 72, 94],
|
|
412
|
+
[6, 26, 50, 74, 98],
|
|
413
|
+
[6, 30, 54, 78, 102],
|
|
414
|
+
[6, 28, 54, 80, 106],
|
|
415
|
+
[6, 32, 58, 84, 110],
|
|
416
|
+
[6, 30, 58, 86, 114],
|
|
417
|
+
[6, 34, 62, 90, 118],
|
|
418
|
+
[6, 26, 50, 74, 98, 122],
|
|
419
|
+
[6, 30, 54, 78, 102, 126],
|
|
420
|
+
[6, 26, 52, 78, 104, 130],
|
|
421
|
+
[6, 30, 56, 82, 108, 134],
|
|
422
|
+
[6, 34, 60, 86, 112, 138],
|
|
423
|
+
[6, 30, 58, 86, 114, 142],
|
|
424
|
+
[6, 34, 62, 90, 118, 146],
|
|
425
|
+
[6, 30, 54, 78, 102, 126, 150],
|
|
426
|
+
[6, 24, 50, 76, 102, 128, 154],
|
|
427
|
+
[6, 28, 54, 80, 106, 132, 158],
|
|
428
|
+
[6, 32, 58, 84, 110, 136, 162],
|
|
429
|
+
[6, 26, 54, 82, 110, 138, 166],
|
|
430
|
+
[6, 30, 58, 86, 114, 142, 170]
|
|
431
|
+
],
|
|
432
|
+
G15: 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0,
|
|
433
|
+
G18: 1 << 12 | 1 << 11 | 1 << 10 | 1 << 9 | 1 << 8 | 1 << 5 | 1 << 2 | 1 << 0,
|
|
434
|
+
G15_MASK: 1 << 14 | 1 << 12 | 1 << 10 | 1 << 4 | 1 << 1,
|
|
435
|
+
getBCHTypeInfo: function(data) {
|
|
436
|
+
var d = data << 10;
|
|
437
|
+
while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15) >= 0) {
|
|
438
|
+
d ^= QRUtil.G15 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G15);
|
|
439
|
+
}
|
|
440
|
+
return (data << 10 | d) ^ QRUtil.G15_MASK;
|
|
441
|
+
},
|
|
442
|
+
getBCHTypeNumber: function(data) {
|
|
443
|
+
var d = data << 12;
|
|
444
|
+
while (QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18) >= 0) {
|
|
445
|
+
d ^= QRUtil.G18 << QRUtil.getBCHDigit(d) - QRUtil.getBCHDigit(QRUtil.G18);
|
|
446
|
+
}
|
|
447
|
+
return data << 12 | d;
|
|
448
|
+
},
|
|
449
|
+
getBCHDigit: function(data) {
|
|
450
|
+
var digit = 0;
|
|
451
|
+
while (data != 0) {
|
|
452
|
+
digit++;
|
|
453
|
+
data >>>= 1;
|
|
454
|
+
}
|
|
455
|
+
return digit;
|
|
456
|
+
},
|
|
457
|
+
getPatternPosition: function(typeNumber) {
|
|
458
|
+
return QRUtil.PATTERN_POSITION_TABLE[typeNumber - 1];
|
|
459
|
+
},
|
|
460
|
+
getMask: function(maskPattern, i, j) {
|
|
461
|
+
switch (maskPattern) {
|
|
462
|
+
case QRMaskPattern.PATTERN000:
|
|
463
|
+
return (i + j) % 2 == 0;
|
|
464
|
+
case QRMaskPattern.PATTERN001:
|
|
465
|
+
return i % 2 == 0;
|
|
466
|
+
case QRMaskPattern.PATTERN010:
|
|
467
|
+
return j % 3 == 0;
|
|
468
|
+
case QRMaskPattern.PATTERN011:
|
|
469
|
+
return (i + j) % 3 == 0;
|
|
470
|
+
case QRMaskPattern.PATTERN100:
|
|
471
|
+
return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 == 0;
|
|
472
|
+
case QRMaskPattern.PATTERN101:
|
|
473
|
+
return i * j % 2 + i * j % 3 == 0;
|
|
474
|
+
case QRMaskPattern.PATTERN110:
|
|
475
|
+
return (i * j % 2 + i * j % 3) % 2 == 0;
|
|
476
|
+
case QRMaskPattern.PATTERN111:
|
|
477
|
+
return (i * j % 3 + (i + j) % 2) % 2 == 0;
|
|
478
|
+
default:
|
|
479
|
+
throw new Error("bad maskPattern:" + maskPattern);
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
getErrorCorrectPolynomial: function(errorCorrectLength) {
|
|
483
|
+
var a = new Polynomial$1([1], 0);
|
|
484
|
+
for (var i = 0; i < errorCorrectLength; i++) {
|
|
485
|
+
a = a.multiply(new Polynomial$1([1, math.gexp(i)], 0));
|
|
486
|
+
}
|
|
487
|
+
return a;
|
|
488
|
+
},
|
|
489
|
+
getLengthInBits: function(mode2, type) {
|
|
490
|
+
if (1 <= type && type < 10) {
|
|
491
|
+
switch (mode2) {
|
|
492
|
+
case Mode.MODE_NUMBER:
|
|
493
|
+
return 10;
|
|
494
|
+
case Mode.MODE_ALPHA_NUM:
|
|
495
|
+
return 9;
|
|
496
|
+
case Mode.MODE_8BIT_BYTE:
|
|
497
|
+
return 8;
|
|
498
|
+
case Mode.MODE_KANJI:
|
|
499
|
+
return 8;
|
|
500
|
+
default:
|
|
501
|
+
throw new Error("mode:" + mode2);
|
|
502
|
+
}
|
|
503
|
+
} else if (type < 27) {
|
|
504
|
+
switch (mode2) {
|
|
505
|
+
case Mode.MODE_NUMBER:
|
|
506
|
+
return 12;
|
|
507
|
+
case Mode.MODE_ALPHA_NUM:
|
|
508
|
+
return 11;
|
|
509
|
+
case Mode.MODE_8BIT_BYTE:
|
|
510
|
+
return 16;
|
|
511
|
+
case Mode.MODE_KANJI:
|
|
512
|
+
return 10;
|
|
513
|
+
default:
|
|
514
|
+
throw new Error("mode:" + mode2);
|
|
515
|
+
}
|
|
516
|
+
} else if (type < 41) {
|
|
517
|
+
switch (mode2) {
|
|
518
|
+
case Mode.MODE_NUMBER:
|
|
519
|
+
return 14;
|
|
520
|
+
case Mode.MODE_ALPHA_NUM:
|
|
521
|
+
return 13;
|
|
522
|
+
case Mode.MODE_8BIT_BYTE:
|
|
523
|
+
return 16;
|
|
524
|
+
case Mode.MODE_KANJI:
|
|
525
|
+
return 12;
|
|
526
|
+
default:
|
|
527
|
+
throw new Error("mode:" + mode2);
|
|
528
|
+
}
|
|
529
|
+
} else {
|
|
530
|
+
throw new Error("type:" + type);
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
getLostPoint: function(qrCode) {
|
|
534
|
+
var moduleCount = qrCode.getModuleCount();
|
|
535
|
+
var lostPoint = 0;
|
|
536
|
+
for (var row = 0; row < moduleCount; row++) {
|
|
537
|
+
for (var col = 0; col < moduleCount; col++) {
|
|
538
|
+
var sameCount = 0;
|
|
539
|
+
var dark = qrCode.isDark(row, col);
|
|
540
|
+
for (var r = -1; r <= 1; r++) {
|
|
541
|
+
if (row + r < 0 || moduleCount <= row + r) {
|
|
542
|
+
continue;
|
|
543
|
+
}
|
|
544
|
+
for (var c = -1; c <= 1; c++) {
|
|
545
|
+
if (col + c < 0 || moduleCount <= col + c) {
|
|
546
|
+
continue;
|
|
547
|
+
}
|
|
548
|
+
if (r == 0 && c == 0) {
|
|
549
|
+
continue;
|
|
550
|
+
}
|
|
551
|
+
if (dark == qrCode.isDark(row + r, col + c)) {
|
|
552
|
+
sameCount++;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
if (sameCount > 5) {
|
|
557
|
+
lostPoint += 3 + sameCount - 5;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
for (var row = 0; row < moduleCount - 1; row++) {
|
|
562
|
+
for (var col = 0; col < moduleCount - 1; col++) {
|
|
563
|
+
var count = 0;
|
|
564
|
+
if (qrCode.isDark(row, col))
|
|
565
|
+
count++;
|
|
566
|
+
if (qrCode.isDark(row + 1, col))
|
|
567
|
+
count++;
|
|
568
|
+
if (qrCode.isDark(row, col + 1))
|
|
569
|
+
count++;
|
|
570
|
+
if (qrCode.isDark(row + 1, col + 1))
|
|
571
|
+
count++;
|
|
572
|
+
if (count == 0 || count == 4) {
|
|
573
|
+
lostPoint += 3;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
for (var row = 0; row < moduleCount; row++) {
|
|
578
|
+
for (var col = 0; col < moduleCount - 6; col++) {
|
|
579
|
+
if (qrCode.isDark(row, col) && !qrCode.isDark(row, col + 1) && qrCode.isDark(row, col + 2) && qrCode.isDark(row, col + 3) && qrCode.isDark(row, col + 4) && !qrCode.isDark(row, col + 5) && qrCode.isDark(row, col + 6)) {
|
|
580
|
+
lostPoint += 40;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
for (var col = 0; col < moduleCount; col++) {
|
|
585
|
+
for (var row = 0; row < moduleCount - 6; row++) {
|
|
586
|
+
if (qrCode.isDark(row, col) && !qrCode.isDark(row + 1, col) && qrCode.isDark(row + 2, col) && qrCode.isDark(row + 3, col) && qrCode.isDark(row + 4, col) && !qrCode.isDark(row + 5, col) && qrCode.isDark(row + 6, col)) {
|
|
587
|
+
lostPoint += 40;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
var darkCount = 0;
|
|
592
|
+
for (var col = 0; col < moduleCount; col++) {
|
|
593
|
+
for (var row = 0; row < moduleCount; row++) {
|
|
594
|
+
if (qrCode.isDark(row, col)) {
|
|
595
|
+
darkCount++;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5;
|
|
600
|
+
lostPoint += ratio * 10;
|
|
601
|
+
return lostPoint;
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
var util$1 = QRUtil;
|
|
605
|
+
var BitByte = _8BitByte;
|
|
606
|
+
var RSBlock = RSBlock$1;
|
|
607
|
+
var BitBuffer = BitBuffer$1;
|
|
608
|
+
var util = util$1;
|
|
609
|
+
var Polynomial = Polynomial$2;
|
|
610
|
+
function QRCode$1(typeNumber, errorCorrectLevel) {
|
|
611
|
+
this.typeNumber = typeNumber;
|
|
612
|
+
this.errorCorrectLevel = errorCorrectLevel;
|
|
613
|
+
this.modules = null;
|
|
614
|
+
this.moduleCount = 0;
|
|
615
|
+
this.dataCache = null;
|
|
616
|
+
this.dataList = [];
|
|
617
|
+
}
|
|
618
|
+
var proto = QRCode$1.prototype;
|
|
619
|
+
proto.addData = function(data) {
|
|
620
|
+
var newData = new BitByte(data);
|
|
621
|
+
this.dataList.push(newData);
|
|
622
|
+
this.dataCache = null;
|
|
623
|
+
};
|
|
624
|
+
proto.isDark = function(row, col) {
|
|
625
|
+
if (row < 0 || this.moduleCount <= row || col < 0 || this.moduleCount <= col) {
|
|
626
|
+
throw new Error(row + "," + col);
|
|
627
|
+
}
|
|
628
|
+
return this.modules[row][col];
|
|
629
|
+
};
|
|
630
|
+
proto.getModuleCount = function() {
|
|
631
|
+
return this.moduleCount;
|
|
632
|
+
};
|
|
633
|
+
proto.make = function() {
|
|
634
|
+
if (this.typeNumber < 1) {
|
|
635
|
+
var typeNumber = 1;
|
|
636
|
+
for (typeNumber = 1; typeNumber < 40; typeNumber++) {
|
|
637
|
+
var rsBlocks = RSBlock.getRSBlocks(typeNumber, this.errorCorrectLevel);
|
|
638
|
+
var buffer = new BitBuffer();
|
|
639
|
+
var totalDataCount = 0;
|
|
640
|
+
for (var i = 0; i < rsBlocks.length; i++) {
|
|
641
|
+
totalDataCount += rsBlocks[i].dataCount;
|
|
642
|
+
}
|
|
643
|
+
for (var i = 0; i < this.dataList.length; i++) {
|
|
644
|
+
var data = this.dataList[i];
|
|
645
|
+
buffer.put(data.mode, 4);
|
|
646
|
+
buffer.put(data.getLength(), util.getLengthInBits(data.mode, typeNumber));
|
|
647
|
+
data.write(buffer);
|
|
648
|
+
}
|
|
649
|
+
if (buffer.getLengthInBits() <= totalDataCount * 8)
|
|
650
|
+
break;
|
|
651
|
+
}
|
|
652
|
+
this.typeNumber = typeNumber;
|
|
653
|
+
}
|
|
654
|
+
this.makeImpl(false, this.getBestMaskPattern());
|
|
655
|
+
};
|
|
656
|
+
proto.makeImpl = function(test, maskPattern) {
|
|
657
|
+
this.moduleCount = this.typeNumber * 4 + 17;
|
|
658
|
+
this.modules = new Array(this.moduleCount);
|
|
659
|
+
for (var row = 0; row < this.moduleCount; row++) {
|
|
660
|
+
this.modules[row] = new Array(this.moduleCount);
|
|
661
|
+
for (var col = 0; col < this.moduleCount; col++) {
|
|
662
|
+
this.modules[row][col] = null;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
this.setupPositionProbePattern(0, 0);
|
|
666
|
+
this.setupPositionProbePattern(this.moduleCount - 7, 0);
|
|
667
|
+
this.setupPositionProbePattern(0, this.moduleCount - 7);
|
|
668
|
+
this.setupPositionAdjustPattern();
|
|
669
|
+
this.setupTimingPattern();
|
|
670
|
+
this.setupTypeInfo(test, maskPattern);
|
|
671
|
+
if (this.typeNumber >= 7) {
|
|
672
|
+
this.setupTypeNumber(test);
|
|
673
|
+
}
|
|
674
|
+
if (this.dataCache == null) {
|
|
675
|
+
this.dataCache = QRCode$1.createData(this.typeNumber, this.errorCorrectLevel, this.dataList);
|
|
676
|
+
}
|
|
677
|
+
this.mapData(this.dataCache, maskPattern);
|
|
678
|
+
};
|
|
679
|
+
proto.setupPositionProbePattern = function(row, col) {
|
|
680
|
+
for (var r = -1; r <= 7; r++) {
|
|
681
|
+
if (row + r <= -1 || this.moduleCount <= row + r)
|
|
682
|
+
continue;
|
|
683
|
+
for (var c = -1; c <= 7; c++) {
|
|
684
|
+
if (col + c <= -1 || this.moduleCount <= col + c)
|
|
685
|
+
continue;
|
|
686
|
+
if (0 <= r && r <= 6 && (c == 0 || c == 6) || 0 <= c && c <= 6 && (r == 0 || r == 6) || 2 <= r && r <= 4 && 2 <= c && c <= 4) {
|
|
687
|
+
this.modules[row + r][col + c] = true;
|
|
688
|
+
} else {
|
|
689
|
+
this.modules[row + r][col + c] = false;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
};
|
|
694
|
+
proto.getBestMaskPattern = function() {
|
|
695
|
+
var minLostPoint = 0;
|
|
696
|
+
var pattern = 0;
|
|
697
|
+
for (var i = 0; i < 8; i++) {
|
|
698
|
+
this.makeImpl(true, i);
|
|
699
|
+
var lostPoint = util.getLostPoint(this);
|
|
700
|
+
if (i == 0 || minLostPoint > lostPoint) {
|
|
701
|
+
minLostPoint = lostPoint;
|
|
702
|
+
pattern = i;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
return pattern;
|
|
706
|
+
};
|
|
707
|
+
proto.createMovieClip = function(target_mc, instance_name, depth) {
|
|
708
|
+
var qr_mc = target_mc.createEmptyMovieClip(instance_name, depth);
|
|
709
|
+
var cs = 1;
|
|
710
|
+
this.make();
|
|
711
|
+
for (var row = 0; row < this.modules.length; row++) {
|
|
712
|
+
var y = row * cs;
|
|
713
|
+
for (var col = 0; col < this.modules[row].length; col++) {
|
|
714
|
+
var x = col * cs;
|
|
715
|
+
var dark = this.modules[row][col];
|
|
716
|
+
if (dark) {
|
|
717
|
+
qr_mc.beginFill(0, 100);
|
|
718
|
+
qr_mc.moveTo(x, y);
|
|
719
|
+
qr_mc.lineTo(x + cs, y);
|
|
720
|
+
qr_mc.lineTo(x + cs, y + cs);
|
|
721
|
+
qr_mc.lineTo(x, y + cs);
|
|
722
|
+
qr_mc.endFill();
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
return qr_mc;
|
|
727
|
+
};
|
|
728
|
+
proto.setupTimingPattern = function() {
|
|
729
|
+
for (var r = 8; r < this.moduleCount - 8; r++) {
|
|
730
|
+
if (this.modules[r][6] != null) {
|
|
731
|
+
continue;
|
|
732
|
+
}
|
|
733
|
+
this.modules[r][6] = r % 2 == 0;
|
|
734
|
+
}
|
|
735
|
+
for (var c = 8; c < this.moduleCount - 8; c++) {
|
|
736
|
+
if (this.modules[6][c] != null) {
|
|
737
|
+
continue;
|
|
738
|
+
}
|
|
739
|
+
this.modules[6][c] = c % 2 == 0;
|
|
740
|
+
}
|
|
741
|
+
};
|
|
742
|
+
proto.setupPositionAdjustPattern = function() {
|
|
743
|
+
var pos = util.getPatternPosition(this.typeNumber);
|
|
744
|
+
for (var i = 0; i < pos.length; i++) {
|
|
745
|
+
for (var j = 0; j < pos.length; j++) {
|
|
746
|
+
var row = pos[i];
|
|
747
|
+
var col = pos[j];
|
|
748
|
+
if (this.modules[row][col] != null) {
|
|
749
|
+
continue;
|
|
750
|
+
}
|
|
751
|
+
for (var r = -2; r <= 2; r++) {
|
|
752
|
+
for (var c = -2; c <= 2; c++) {
|
|
753
|
+
if (r == -2 || r == 2 || c == -2 || c == 2 || r == 0 && c == 0) {
|
|
754
|
+
this.modules[row + r][col + c] = true;
|
|
755
|
+
} else {
|
|
756
|
+
this.modules[row + r][col + c] = false;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
};
|
|
763
|
+
proto.setupTypeNumber = function(test) {
|
|
764
|
+
var bits = util.getBCHTypeNumber(this.typeNumber);
|
|
765
|
+
for (var i = 0; i < 18; i++) {
|
|
766
|
+
var mod = !test && (bits >> i & 1) == 1;
|
|
767
|
+
this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = mod;
|
|
768
|
+
}
|
|
769
|
+
for (var i = 0; i < 18; i++) {
|
|
770
|
+
var mod = !test && (bits >> i & 1) == 1;
|
|
771
|
+
this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = mod;
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
proto.setupTypeInfo = function(test, maskPattern) {
|
|
775
|
+
var data = this.errorCorrectLevel << 3 | maskPattern;
|
|
776
|
+
var bits = util.getBCHTypeInfo(data);
|
|
777
|
+
for (var i = 0; i < 15; i++) {
|
|
778
|
+
var mod = !test && (bits >> i & 1) == 1;
|
|
779
|
+
if (i < 6) {
|
|
780
|
+
this.modules[i][8] = mod;
|
|
781
|
+
} else if (i < 8) {
|
|
782
|
+
this.modules[i + 1][8] = mod;
|
|
783
|
+
} else {
|
|
784
|
+
this.modules[this.moduleCount - 15 + i][8] = mod;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
for (var i = 0; i < 15; i++) {
|
|
788
|
+
var mod = !test && (bits >> i & 1) == 1;
|
|
789
|
+
if (i < 8) {
|
|
790
|
+
this.modules[8][this.moduleCount - i - 1] = mod;
|
|
791
|
+
} else if (i < 9) {
|
|
792
|
+
this.modules[8][15 - i - 1 + 1] = mod;
|
|
793
|
+
} else {
|
|
794
|
+
this.modules[8][15 - i - 1] = mod;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
this.modules[this.moduleCount - 8][8] = !test;
|
|
798
|
+
};
|
|
799
|
+
proto.mapData = function(data, maskPattern) {
|
|
800
|
+
var inc = -1;
|
|
801
|
+
var row = this.moduleCount - 1;
|
|
802
|
+
var bitIndex = 7;
|
|
803
|
+
var byteIndex = 0;
|
|
804
|
+
for (var col = this.moduleCount - 1; col > 0; col -= 2) {
|
|
805
|
+
if (col == 6)
|
|
806
|
+
col--;
|
|
807
|
+
while (true) {
|
|
808
|
+
for (var c = 0; c < 2; c++) {
|
|
809
|
+
if (this.modules[row][col - c] == null) {
|
|
810
|
+
var dark = false;
|
|
811
|
+
if (byteIndex < data.length) {
|
|
812
|
+
dark = (data[byteIndex] >>> bitIndex & 1) == 1;
|
|
813
|
+
}
|
|
814
|
+
var mask = util.getMask(maskPattern, row, col - c);
|
|
815
|
+
if (mask) {
|
|
816
|
+
dark = !dark;
|
|
817
|
+
}
|
|
818
|
+
this.modules[row][col - c] = dark;
|
|
819
|
+
bitIndex--;
|
|
820
|
+
if (bitIndex == -1) {
|
|
821
|
+
byteIndex++;
|
|
822
|
+
bitIndex = 7;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
row += inc;
|
|
827
|
+
if (row < 0 || this.moduleCount <= row) {
|
|
828
|
+
row -= inc;
|
|
829
|
+
inc = -inc;
|
|
830
|
+
break;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
QRCode$1.PAD0 = 236;
|
|
836
|
+
QRCode$1.PAD1 = 17;
|
|
837
|
+
QRCode$1.createData = function(typeNumber, errorCorrectLevel, dataList) {
|
|
838
|
+
var rsBlocks = RSBlock.getRSBlocks(typeNumber, errorCorrectLevel);
|
|
839
|
+
var buffer = new BitBuffer();
|
|
840
|
+
for (var i = 0; i < dataList.length; i++) {
|
|
841
|
+
var data = dataList[i];
|
|
842
|
+
buffer.put(data.mode, 4);
|
|
843
|
+
buffer.put(data.getLength(), util.getLengthInBits(data.mode, typeNumber));
|
|
844
|
+
data.write(buffer);
|
|
845
|
+
}
|
|
846
|
+
var totalDataCount = 0;
|
|
847
|
+
for (var i = 0; i < rsBlocks.length; i++) {
|
|
848
|
+
totalDataCount += rsBlocks[i].dataCount;
|
|
849
|
+
}
|
|
850
|
+
if (buffer.getLengthInBits() > totalDataCount * 8) {
|
|
851
|
+
throw new Error("code length overflow. (" + buffer.getLengthInBits() + ">" + totalDataCount * 8 + ")");
|
|
852
|
+
}
|
|
853
|
+
if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) {
|
|
854
|
+
buffer.put(0, 4);
|
|
855
|
+
}
|
|
856
|
+
while (buffer.getLengthInBits() % 8 != 0) {
|
|
857
|
+
buffer.putBit(false);
|
|
858
|
+
}
|
|
859
|
+
while (true) {
|
|
860
|
+
if (buffer.getLengthInBits() >= totalDataCount * 8) {
|
|
861
|
+
break;
|
|
862
|
+
}
|
|
863
|
+
buffer.put(QRCode$1.PAD0, 8);
|
|
864
|
+
if (buffer.getLengthInBits() >= totalDataCount * 8) {
|
|
865
|
+
break;
|
|
866
|
+
}
|
|
867
|
+
buffer.put(QRCode$1.PAD1, 8);
|
|
868
|
+
}
|
|
869
|
+
return QRCode$1.createBytes(buffer, rsBlocks);
|
|
870
|
+
};
|
|
871
|
+
QRCode$1.createBytes = function(buffer, rsBlocks) {
|
|
872
|
+
var offset = 0;
|
|
873
|
+
var maxDcCount = 0;
|
|
874
|
+
var maxEcCount = 0;
|
|
875
|
+
var dcdata = new Array(rsBlocks.length);
|
|
876
|
+
var ecdata = new Array(rsBlocks.length);
|
|
877
|
+
for (var r = 0; r < rsBlocks.length; r++) {
|
|
878
|
+
var dcCount = rsBlocks[r].dataCount;
|
|
879
|
+
var ecCount = rsBlocks[r].totalCount - dcCount;
|
|
880
|
+
maxDcCount = Math.max(maxDcCount, dcCount);
|
|
881
|
+
maxEcCount = Math.max(maxEcCount, ecCount);
|
|
882
|
+
dcdata[r] = new Array(dcCount);
|
|
883
|
+
for (var i = 0; i < dcdata[r].length; i++) {
|
|
884
|
+
dcdata[r][i] = 255 & buffer.buffer[i + offset];
|
|
885
|
+
}
|
|
886
|
+
offset += dcCount;
|
|
887
|
+
var rsPoly = util.getErrorCorrectPolynomial(ecCount);
|
|
888
|
+
var rawPoly = new Polynomial(dcdata[r], rsPoly.getLength() - 1);
|
|
889
|
+
var modPoly = rawPoly.mod(rsPoly);
|
|
890
|
+
ecdata[r] = new Array(rsPoly.getLength() - 1);
|
|
891
|
+
for (var i = 0; i < ecdata[r].length; i++) {
|
|
892
|
+
var modIndex = i + modPoly.getLength() - ecdata[r].length;
|
|
893
|
+
ecdata[r][i] = modIndex >= 0 ? modPoly.get(modIndex) : 0;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
var totalCodeCount = 0;
|
|
897
|
+
for (var i = 0; i < rsBlocks.length; i++) {
|
|
898
|
+
totalCodeCount += rsBlocks[i].totalCount;
|
|
899
|
+
}
|
|
900
|
+
var data = new Array(totalCodeCount);
|
|
901
|
+
var index = 0;
|
|
902
|
+
for (var i = 0; i < maxDcCount; i++) {
|
|
903
|
+
for (var r = 0; r < rsBlocks.length; r++) {
|
|
904
|
+
if (i < dcdata[r].length) {
|
|
905
|
+
data[index++] = dcdata[r][i];
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
for (var i = 0; i < maxEcCount; i++) {
|
|
910
|
+
for (var r = 0; r < rsBlocks.length; r++) {
|
|
911
|
+
if (i < ecdata[r].length) {
|
|
912
|
+
data[index++] = ecdata[r][i];
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
return data;
|
|
917
|
+
};
|
|
918
|
+
var QRCode_1 = QRCode$1;
|
|
919
|
+
var QRCode = QRCode_1;
|
|
920
|
+
var ErrorCorrectLevel = ErrorCorrectLevel$1;
|
|
921
|
+
var qrcode = function(data, opt) {
|
|
922
|
+
opt = opt || {};
|
|
923
|
+
var qr = new QRCode(
|
|
924
|
+
opt.typeNumber || -1,
|
|
925
|
+
opt.errorCorrectLevel || ErrorCorrectLevel.H
|
|
926
|
+
);
|
|
927
|
+
qr.addData(data);
|
|
928
|
+
qr.make();
|
|
929
|
+
return qr;
|
|
930
|
+
};
|
|
931
|
+
qrcode.ErrorCorrectLevel = ErrorCorrectLevel;
|
|
932
|
+
var qr_js = qrcode;
|
|
933
|
+
export {
|
|
934
|
+
qr_js as q
|
|
935
|
+
};
|
|
936
|
+
//# sourceMappingURL=http://localhost:57245/map/index.32520aa9.js.map
|
|
937
|
+
|
|
938
|
+
/*jsvmd5:96f37a63da4510f79498545c9b899eb0*/
|