nadesiko3 3.3.1 → 3.3.4

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 (62) hide show
  1. package/batch/browsers.template.md +3 -0
  2. package/batch/build_browsers.nako3 +72 -0
  3. package/batch/build_command.nako3 +44 -0
  4. package/batch/build_nako_version.nako3 +14 -0
  5. package/batch/calc_hash.nako3 +29 -0
  6. package/batch/cmd_txt2json.nako3 +72 -0
  7. package/batch/command.txt +1046 -0
  8. package/batch/command_nakopad.txt +996 -0
  9. package/batch/download-extlib.nako3 +43 -0
  10. package/batch/gen_command_nakopad.nako3 +57 -0
  11. package/batch/jsplugin2text.nako3 +269 -0
  12. package/batch/pickup_command.nako3 +84 -0
  13. package/batch/pickup_reserved_words.nako3 +11 -0
  14. package/batch/publish_version.nako3 +46 -0
  15. package/batch/show_agents.js +14 -0
  16. package/batch/turtle2js.nako3 +21 -0
  17. package/demo/runscript3.html +35 -0
  18. package/package.json +8 -6
  19. package/release/_hash.txt +20 -20
  20. package/release/_script-tags.txt +14 -14
  21. package/release/command.json +1 -1
  22. package/release/command.json.js +1 -1
  23. package/release/command_cnako3.json +1 -1
  24. package/release/command_list.json +1 -1
  25. package/release/editor.js +1 -1
  26. package/release/plugin_csv.js +1 -1
  27. package/release/plugin_weykturtle3d.js.LICENSE.txt +3 -0
  28. package/release/stats.json +1 -1
  29. package/release/version.js +1 -1
  30. package/release/wnako3.js +1 -1
  31. package/src/cnako3mod.mjs +78 -53
  32. package/src/nako3.mjs +18 -10
  33. package/src/nako_errors.mjs +2 -2
  34. package/src/nako_from_dncl.mjs +4 -3
  35. package/src/nako_indent.mjs +26 -22
  36. package/src/nako_prepare.mjs +45 -6
  37. package/src/nako_version.mjs +2 -2
  38. package/src/plugin_csv.mjs +2 -1
  39. package/src/plugin_keigo.mjs +1 -1
  40. package/src/wnako3.mjs +19 -9
  41. package/src/wnako3_editor.mjs +4 -4
  42. package/test/node/async_test.mjs +1 -2
  43. package/test/node/commander_ja_test.mjs +1 -1
  44. package/test/node/error_message_test.mjs +3 -3
  45. package/test/node/node_test.mjs +2 -2
  46. package/test/node/{plugin_browser_ut_ajax_test.mjs → plugin_browser_ut_ajax_test.mjs.todo} +2 -2
  47. package/test/node/plugin_browser_ut_location_test.mjs +1 -1
  48. package/test/node/plugin_markup_test.mjs +3 -3
  49. package/test/node/plugin_math_test.mjs +2 -2
  50. package/test/node/plugin_node_test.mjs +3 -3
  51. package/test/node/plugin_test.mjs +1 -1
  52. package/test/node/require_nako3_test.mjs +2 -2
  53. package/test/node/side_effects_test.mjs +4 -4
  54. package/test/node/wnako3_editor_test.mjs +5 -5
  55. package/tools/nako3edit/html/daisyui/LICENSE +22 -0
  56. package/tools/nako3edit/html/daisyui/full.css +1 -0
  57. package/tools/nako3edit/html/daisyui/tailwind.min.css +1 -0
  58. package/tools/nako3edit/html/daisyui/version_2.14.1 +1 -0
  59. package/tools/nako3edit/html/edit.html +104 -19
  60. package/tools/nako3edit/html/files.html +84 -8
  61. package/tools/nako3edit/html/nako3edit.css +6 -7
  62. package/tools/nako3edit/index.nako3 +44 -5
@@ -1 +1 @@
1
- !function(){var t={8516:function(t,r,e){t.exports=e(4869)},9985:function(t){"use strict";var r={delimiter:",",eol:"\r\n"};t.exports={options:r,parse:function(t,e){null==e&&(e=r.delimiter),t=(t=(t+="\n").replace(/(\r\n|\r)/g,"\n")).replace(/\s+$/,"")+"\n";for(var o=new RegExp("^(.*?)([\\"+e+"\\n])"),s=function(t){return"string"==typeof t&&t.search(/^[0-9\.]+$/)>=0&&(t=parseFloat(t)),t},n=[],i=[],u="";""!=t;)if((u=t.charAt(0))!==e)if("\n"!==u)if((u=(t=t.replace(/^\s+/,"")).charAt(0))!==e)if("="!==u||'"'!==t.charAt(1))if('"'===u)if('""'!=t.substr(0,2)){for(var p=1,l="";p<t.length;){var h=t.charAt(p),f=t.charAt(p+1);if('"'!=h||'"'!=f)if('"'!=h)l+=h,p++;else{if(p++,f==e){p++,i.push(s(l)),l="";break}if("\n"==f){p++,i.push(s(l)),n.push(i),i=[];break}p++}else p+=2,l+='"'}t=t.substr(p)}else i.push(""),t=t.substr(2);else{var a=o.exec(t);if(!a){i.push(s(t)),n.push(i),i=[];break}"\n"==a[2]?(i.push(s(a[1])),n.push(i),i=[]):a[2]==e&&i.push(s(a[1])),t=t.substr(a[0].length)}else t=t.substr(1);else console.log("delimiter"),i.push(""),t=t.substr(e.length);else i.push(""),n.push(i),i=[],t=t.substr(1);else t=t.substr(1),i.push("");return i.length>0&&n.push(i),n},stringify:function(t,e,o){null==e&&(e=r.delimiter),null==o&&(o=r.eol);var s=function(t,r){return function(r){var e=!1;return((r=""+r).indexOf("\n")>=0||r.indexOf("\r")>=0)&&(e=!0),r.indexOf(t)>=0&&(e=!0),r.indexOf('"')>=0&&(e=!0,r=r.replace(/\"/g,'""')),e&&(r='"'+r+'"'),r}}(e);if(null==t)return"";for(var n="",i=0;i<t.length;i++){var u=t[i];if(null!=u){for(var p=0;p<u.length;p++)u[p]=s(u[p]);n+=u.join(e)+o}else n+=o}return n=n.replace(/(\r\n|\r|\n)/g,o)}}},4869:function(t,r,e){"use strict";var o=e(9985);function s(){for(var t in this.rows=[],this.options=[],this.useHeader=!1,o.options)this.options[t]=o.options[t]}s.prototype.toString=function(){var t=this.options.delimiter,r=this.options.eol;return o.stringify(this.rows,t,r)},s.prototype.parse=function(t,r){this.rows=o.parse(t,r)},s.prototype.fromString=s.prototype.parse,s.prototype.stringify=s.prototype.toString,s.prototype.getCell=function(t,r){return this.rows[t][r]},s.prototype.setCell=function(t,r,e){for(var o=this.getColSize();this.rows.length<=t;){for(var s=[],n=0;n<o;n++)s.push("");this.rows.push(s)}this.rows[t][r]=e},s.prototype.getColSize=function(){return 0==this.rows.length?0:this.rows[0].length},s.prototype.setArray=function(t){this.rows=t},s.prototype.getArray=function(){return this.rows},s.prototype.getRowValues=function(t){return t>=this.length?[]:this.rows[t]},s.prototype.getColValues=function(t){var r=[];for(var e in this.rows){var o=this.rows[e];r.push(o[t])}return r},s.prototype.find=function(t,r,e){null==e&&(e=this.useHeader?1:0);for(var o=e;o<this.rows.length;o++){if(this.rows[o][t]==r)return o}return-1},s.prototype.findAll=function(t,r,e,o){var s=[];null==e&&(e=this.useHeader?1:0),null==o&&(o=this.rows.length);for(var n=e;n<this.rows.length;n++){var i=this.rows[n];if(i[t]==r&&(s.push(i),o<=s.length))break}return s},s.prototype.filter=function(t,r){return this.rows.filter((function(e,o,s){if(null==e)return!1;var n=e[t];return r(n,o,s)}))},s.prototype.sort=function(t,r){var e;if(null==r&&(r=!0),e=r?function(r,e){return r[t]>e[t]?1:-1}:function(r,e){return r[t]<e[t]?1:-1},this.useHeader){var o=this.rows.shift();this.rows.sort(e),this.rows.unshift(o)}else this.rows.sort(e)},s.prototype.sortNumber=function(t,r){var e;if(null==r&&(r=!0),e=r?function(r,e){return parseFloat(r[t])-parseFloat(e[t])}:function(r,e){return parseFloat(e[t])-parseFloat(r[t])},this.useHeader){var o=this.rows.shift();this.rows.sort(e),this.rows.unshift(o)}else this.rows.sort(e)},s.prototype.insertRow=function(t,r){this.rows.splice(t,0,r)},s.prototype.insert=s.prototype.insertRow,s.prototype.add=function(t){this.rows.push(t)},s.prototype.deleteRow=function(t){return this.rows.splice(t,1)},s.prototype.insertCol=function(t,r){this.rows.map((function(e,o,s){return e.splice(t,0,r[o]),e}))},s.prototype.deleteCol=function(t){this.rows.map((function(r,e,o){return r.splice(t,1),r}))},Object.defineProperty(s.prototype,"length",{get:function(){return null==this.rows?0:this.rows.length}}),o.CSVObject=s,t.exports=o}},r={};function e(o){var s=r[o];if(void 0!==s)return s.exports;var n=r[o]={exports:{}};return t[o](n,n.exports,e),n.exports}!function(){"use strict";e(8516);"object"==typeof navigator&&"object"==typeof navigator.nako3&&navigator.nako3.addPluginObject("PluginCSV",PluginCSV)}()}();
1
+ !function(){var t={8516:function(t,r,e){t.exports=e(4869)},9985:function(t){"use strict";var r={delimiter:",",eol:"\r\n"};t.exports={options:r,parse:function(t,e){null==e&&(e=r.delimiter),t=(t=(t+="\n").replace(/(\r\n|\r)/g,"\n")).replace(/\s+$/,"")+"\n";for(var o=new RegExp("^(.*?)([\\"+e+"\\n])"),n=function(t){return"string"==typeof t&&t.search(/^[0-9\.]+$/)>=0&&(t=parseFloat(t)),t},s=[],i=[],u="";""!=t;)if((u=t.charAt(0))!==e)if("\n"!==u)if((u=(t=t.replace(/^\s+/,"")).charAt(0))!==e)if("="!==u||'"'!==t.charAt(1))if('"'===u)if('""'!=t.substr(0,2)){for(var p=1,f="";p<t.length;){var l=t.charAt(p),h=t.charAt(p+1);if('"'!=l||'"'!=h)if('"'!=l)f+=l,p++;else{if(p++,h==e){p++,i.push(n(f)),f="";break}if("\n"==h){p++,i.push(n(f)),s.push(i),i=[];break}p++}else p+=2,f+='"'}t=t.substr(p)}else i.push(""),t=t.substr(2);else{var a=o.exec(t);if(!a){i.push(n(t)),s.push(i),i=[];break}"\n"==a[2]?(i.push(n(a[1])),s.push(i),i=[]):a[2]==e&&i.push(n(a[1])),t=t.substr(a[0].length)}else t=t.substr(1);else console.log("delimiter"),i.push(""),t=t.substr(e.length);else i.push(""),s.push(i),i=[],t=t.substr(1);else t=t.substr(1),i.push("");return i.length>0&&s.push(i),s},stringify:function(t,e,o){null==e&&(e=r.delimiter),null==o&&(o=r.eol);var n=function(t,r){return function(r){var e=!1;return((r=""+r).indexOf("\n")>=0||r.indexOf("\r")>=0)&&(e=!0),r.indexOf(t)>=0&&(e=!0),r.indexOf('"')>=0&&(e=!0,r=r.replace(/\"/g,'""')),e&&(r='"'+r+'"'),r}}(e);if(null==t)return"";for(var s="",i=0;i<t.length;i++){var u=t[i];if(null!=u){for(var p=0;p<u.length;p++)u[p]=n(u[p]);s+=u.join(e)+o}else s+=o}return s=s.replace(/(\r\n|\r|\n)/g,o)}}},4869:function(t,r,e){"use strict";var o=e(9985);function n(){for(var t in this.rows=[],this.options=[],this.useHeader=!1,o.options)this.options[t]=o.options[t]}n.prototype.toString=function(){var t=this.options.delimiter,r=this.options.eol;return o.stringify(this.rows,t,r)},n.prototype.parse=function(t,r){this.rows=o.parse(t,r)},n.prototype.fromString=n.prototype.parse,n.prototype.stringify=n.prototype.toString,n.prototype.getCell=function(t,r){return this.rows[t][r]},n.prototype.setCell=function(t,r,e){for(var o=this.getColSize();this.rows.length<=t;){for(var n=[],s=0;s<o;s++)n.push("");this.rows.push(n)}this.rows[t][r]=e},n.prototype.getColSize=function(){return 0==this.rows.length?0:this.rows[0].length},n.prototype.setArray=function(t){this.rows=t},n.prototype.getArray=function(){return this.rows},n.prototype.getRowValues=function(t){return t>=this.length?[]:this.rows[t]},n.prototype.getColValues=function(t){var r=[];for(var e in this.rows){var o=this.rows[e];r.push(o[t])}return r},n.prototype.find=function(t,r,e){null==e&&(e=this.useHeader?1:0);for(var o=e;o<this.rows.length;o++){if(this.rows[o][t]==r)return o}return-1},n.prototype.findAll=function(t,r,e,o){var n=[];null==e&&(e=this.useHeader?1:0),null==o&&(o=this.rows.length);for(var s=e;s<this.rows.length;s++){var i=this.rows[s];if(i[t]==r&&(n.push(i),o<=n.length))break}return n},n.prototype.filter=function(t,r){return this.rows.filter((function(e,o,n){if(null==e)return!1;var s=e[t];return r(s,o,n)}))},n.prototype.sort=function(t,r){var e;if(null==r&&(r=!0),e=r?function(r,e){return r[t]>e[t]?1:-1}:function(r,e){return r[t]<e[t]?1:-1},this.useHeader){var o=this.rows.shift();this.rows.sort(e),this.rows.unshift(o)}else this.rows.sort(e)},n.prototype.sortNumber=function(t,r){var e;if(null==r&&(r=!0),e=r?function(r,e){return parseFloat(r[t])-parseFloat(e[t])}:function(r,e){return parseFloat(e[t])-parseFloat(r[t])},this.useHeader){var o=this.rows.shift();this.rows.sort(e),this.rows.unshift(o)}else this.rows.sort(e)},n.prototype.insertRow=function(t,r){this.rows.splice(t,0,r)},n.prototype.insert=n.prototype.insertRow,n.prototype.add=function(t){this.rows.push(t)},n.prototype.deleteRow=function(t){return this.rows.splice(t,1)},n.prototype.insertCol=function(t,r){this.rows.map((function(e,o,n){return e.splice(t,0,r[o]),e}))},n.prototype.deleteCol=function(t){this.rows.map((function(r,e,o){return r.splice(t,1),r}))},Object.defineProperty(n.prototype,"length",{get:function(){return null==this.rows?0:this.rows.length}}),o.CSVObject=n,t.exports=o}},r={};function e(o){var n=r[o];if(void 0!==n)return n.exports;var s=r[o]={exports:{}};return t[o](s,s.exports,e),s.exports}!function(){"use strict";var t=e(8516);const r={"初期化":{type:"func",josi:[],pure:!0,fn:function(t){}},"CSV取得":{type:"func",josi:[["を","の","で"]],pure:!0,fn:function(r){return t.options.delimiter=",",t.parse(r)}},"TSV取得":{type:"func",josi:[["を","の","で"]],pure:!0,fn:function(r){return t.options.delimiter="\t",t.parse(r)}},"表CSV変換":{type:"func",josi:[["を"]],pure:!0,fn:function(r){return t.options.delimiter=",",t.stringify(r)}},"表TSV変換":{type:"func",josi:[["を"]],pure:!0,fn:function(r){return t.options.delimiter="\t",t.stringify(r)}}};"object"==typeof navigator&&"object"==typeof navigator.nako3&&navigator.nako3.addPluginObject("PluginCSV",r)}()}();
@@ -0,0 +1,3 @@
1
+ /*!*************************************!*\
2
+ !*** ./src/plugin_weykturtle3d.mjs ***!
3
+ \*************************************/