gina 0.3.5-alpha.1 → 0.3.5
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/CHANGELOG.md +5 -0
- package/framework/v0.3.5/VERSION +1 -0
- package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -2
- package/framework/v0.3.5/core/deps/swig-client/swig-2.0.0.min.js +19 -0
- package/framework/v0.3.5/core/deps/swig-client/swig.js +5114 -0
- package/framework/{v0.3.5-alpha.1 → v0.3.5}/package.json +1 -1
- package/gna.js +4 -4
- package/llms.txt +19 -20
- package/package.json +3 -2
- package/script/check_no_claude_leak.js +63 -0
- package/.claudeignore +0 -68
- package/framework/v0.3.5-alpha.1/VERSION +0 -1
- package/framework/v0.3.5-alpha.1/core/deps/swig-client/swig-2.0.0.min.js +0 -5
- package/framework/v0.3.5-alpha.1/core/deps/swig-client/swig.js +0 -5031
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/AUTHORS +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/LICENSE +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/html/static.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/html/toolbar.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/html/toolbar.html.br +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/html/toolbar.html.gz +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/js/gina.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/config.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/ai/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/ai/lib/connector.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/couchbase/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/couchbase/lib/connector.v2.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/mysql/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/mysql/lib/connector.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/postgresql/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/postgresql/lib/connector.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/redis/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/redis/lib/session-store.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/sql-parser.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/sqlite/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/sqlite/lib/connector.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/connectors/sqlite/lib/session-store.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/content.encoding +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/controller/controller.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/controller/controller.render-json.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/controller/controller.render-stream.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/controller/controller.render-swig.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/controller/controller.render-v1.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/controller/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/busboy-1.6.0/LICENSE +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/busboy-1.6.0/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/busboy-1.6.0/lib/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/busboy-1.6.0/lib/types/multipart.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/busboy-1.6.0/lib/types/urlencoded.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/busboy-1.6.0/lib/utils.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/busboy-1.6.0/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/optimist-0.6.1/LICENSE +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/optimist-0.6.1/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/optimist-0.6.1/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/optimist-0.6.1/readme.markdown +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/streamsearch-1.1.0/LICENSE +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/streamsearch-1.1.0/lib/sbmh.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/deps/streamsearch-1.1.0/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/dev/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/gna.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/locales/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/locales/currency.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/locales/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/mime.types +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/model/entity.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/model/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/model/template/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/file/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/file/build.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/file/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/intl/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/intl/build.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/intl/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/intl/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/storage/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/validator/src/form-validator.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/plugins/lib/validator/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/router.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/server.express.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/server.isaac.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/server.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/status.codes +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/_gitignore +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/config/connectors.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/config/watchers.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_public/css/home.css +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/conf/env.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/conf/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/conf/settings.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/console.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/context.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/data/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/data/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/data/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/json/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/json/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/json/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/path.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/prototypes.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/task.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/helpers/text.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/archiver/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/archiver/build.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/archiver/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/async/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/async/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cache/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cache/build.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cache/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cache/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/aliases.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/arguments.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/build.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/help.txt +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/list.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/oas.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/openapi.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/restart.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/start.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/status.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/cache/stats.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/add.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/get.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/help.txt +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/init.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/link.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/restart.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/start.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/status.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/stop.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/tail.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/helper.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/inspector/help.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/inspector/help.txt +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/inspector/open.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/port/help.txt +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/port/set.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/add.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/build.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/rename.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/status.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/collection/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/collection/build.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/collection/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/collection/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/config.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cron/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cron/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/domain/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/domain/dist/2025-03-14_13-41-20_UTC.dat +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/domain/dist/public_suffix_list.dat +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/domain/dist/public_suffix_list.dat.br +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/domain/dist/public_suffix_list.dat.gz +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/domain/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/domain/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/generator/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/inherits/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/inherits/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/src/containers/mq/listener.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/logger/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/math/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/merge/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/merge/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/merge/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/model.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/proc.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/routing/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/routing/build.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/routing/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/routing/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/routing/src/radix.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/session-store.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/shell.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/state.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/swig-filters/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/url/README.md +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/url/index.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/url/routing.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/uuid/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/uuid/src/main.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/validator.js +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/watcher/package.json +0 -0
- /package/framework/{v0.3.5-alpha.1 → v0.3.5}/lib/watcher/src/main.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
|
|
|
6
6
|
and is generated by [Changie](https://github.com/miniscruff/changie).
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
## 0.3.5 - 2026-04-13
|
|
10
|
+
### Security
|
|
11
|
+
* Bumped @rhinostone/swig to 1.5.0 — extends CVE-2023-25345 path-traversal guards to bracket notation, set bracket assignment, for loop variables, macro names, and import aliases.
|
|
12
|
+
* Updated vendored client-side swig (core/deps/swig-client/) to the v1.5.0 browser build. Extends CVE-2023-25345 path-traversal guards to bracket-notation access, for-loop variables, macro names, and import aliases — completing the __proto__/constructor/prototype blocklist. Browser-side templating now matches the server-side @rhinostone/swig 1.5.0 protections.
|
|
13
|
+
|
|
9
14
|
## 0.3.4 - 2026-04-12
|
|
10
15
|
### Fixed
|
|
11
16
|
* bumpVersion and prepare_version now update gna.js framework paths on version changes — fixes CI test failures where gna.js referenced a stale framework directory
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.3.5
|
|
@@ -24,8 +24,6 @@
|
|
|
24
24
|
*
|
|
25
25
|
* **Tabs:** Data, View, Forms, Query, Logs
|
|
26
26
|
*
|
|
27
|
-
* @see .claude/plugins/inspector/index.md — full architecture documentation
|
|
28
|
-
*
|
|
29
27
|
* @typedef {Object} LogEntry
|
|
30
28
|
* @property {number} t - Timestamp (ms since epoch)
|
|
31
29
|
* @property {string} l - Level string (error|warn|info|log|debug for client;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*! Swig v1.5.0 | https://github.com/gina-io/swig | @license https://github.com/gina-io/swig/blob/master/LICENSE */
|
|
2
|
+
/*! DateZ (c) 2011 Tomo Universalis | @license https://github.com/TomoUniversalis/DateZ/blob/master/LISENCE */
|
|
3
|
+
!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return o(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){var r=e("../lib/swig");"function"==typeof window.define&&"object"==typeof window.define.amd?window.define("swig",[],function(){return r}):window.swig=r},{"../lib/swig":9}],2:[function(e,t,n){var r=e("./utils"),o={full:["January","February","March","April","May","June","July","August","September","October","November","December"],abbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},i={full:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],alt:{"-1":"Yesterday",0:"Today",1:"Tomorrow"}};n.tzOffset=0,n.DateZ=function(){var e=["getUTCDate","getUTCDay","getUTCFullYear","getUTCHours","getUTCMilliseconds","getUTCMinutes","getUTCMonth","getUTCSeconds","toISOString","toGMTString","toUTCString","valueOf","getTime"],t=["getDate","getDay","getFullYear","getHours","getMilliseconds","getMinutes","getMonth","getSeconds","getYear","toDateString","toLocaleDateString","toLocaleTimeString"],o=this;o.date=o.dateZ=arguments.length>1?new Date(Date.UTC.apply(Date,arguments)+6e4*(new Date).getTimezoneOffset()):1===arguments.length?new Date(new Date(arguments[0])):new Date,o.timezoneOffset=o.dateZ.getTimezoneOffset(),r.each(t,function(e){o[e]=function(){return o.dateZ[e]()}}),r.each(e,function(e){o[e]=function(){return o.date[e]()}}),this.setTimezoneOffset(n.tzOffset)},n.DateZ.prototype={getTimezoneOffset:function(){return this.timezoneOffset},setTimezoneOffset:function(e){return this.timezoneOffset=e,this.dateZ=new Date(this.date.getTime()+6e4*this.date.getTimezoneOffset()-6e4*this.timezoneOffset),this}},n.d=function(e){return(e.getDate()<10?"0":"")+e.getDate()},n.D=function(e){return i.abbr[e.getDay()]},n.j=function(e){return e.getDate()},n.l=function(e){return i.full[e.getDay()]},n.N=function(e){var t=e.getDay();return t>=1?t:7},n.S=function(e){var t=e.getDate();return t%10==1&&11!==t?"st":t%10==2&&12!==t?"nd":t%10==3&&13!==t?"rd":"th"},n.w=function(e){return e.getDay()},n.z=function(e,t,r){var o=e.getFullYear(),i=new n.DateZ(o,e.getMonth(),e.getDate(),12,0,0),a=new n.DateZ(o,0,1,12,0,0);return i.setTimezoneOffset(t,r),a.setTimezoneOffset(t,r),Math.round((i-a)/864e5)},n.W=function(e){var t,n=new Date(e.valueOf()),r=(e.getDay()+6)%7;return n.setDate(n.getDate()-r+3),t=n.valueOf(),n.setMonth(0,1),4!==n.getDay()&&n.setMonth(0,1+(4-n.getDay()+7)%7),1+Math.ceil((t-n)/6048e5)},n.F=function(e){return o.full[e.getMonth()]},n.m=function(e){return(e.getMonth()<9?"0":"")+(e.getMonth()+1)},n.M=function(e){return o.abbr[e.getMonth()]},n.n=function(e){return e.getMonth()+1},n.t=function(e){return 32-new Date(e.getFullYear(),e.getMonth(),32).getDate()},n.L=function(e){return 29===new Date(e.getFullYear(),1,29).getDate()},n.o=function(e){var t=new Date(e.valueOf());return t.setDate(t.getDate()-(e.getDay()+6)%7+3),t.getFullYear()},n.Y=function(e){return e.getFullYear()},n.y=function(e){return e.getFullYear().toString().substr(2)},n.a=function(e){return e.getHours()<12?"am":"pm"},n.A=function(e){return e.getHours()<12?"AM":"PM"},n.B=function(e){var t,n=e.getUTCHours();return n=23===n?0:n+1,t=Math.abs((60*(60*n+e.getUTCMinutes())+e.getUTCSeconds())/86.4).toFixed(0),"000".concat(t).slice(t.length)},n.g=function(e){var t=e.getHours();return 0===t?12:t>12?t-12:t},n.G=function(e){return e.getHours()},n.h=function(e){var t=e.getHours();return(t<10||12<t&&22>t?"0":"")+(t<12?t:t-12)},n.H=function(e){var t=e.getHours();return(t<10?"0":"")+t},n.i=function(e){var t=e.getMinutes();return(t<10?"0":"")+t},n.s=function(e){var t=e.getSeconds();return(t<10?"0":"")+t},n.O=function(e){var t=e.getTimezoneOffset();return(t<0?"-":"+")+(t/60<10?"0":"")+Math.abs(t/60)+"00"},n.Z=function(e){return 60*e.getTimezoneOffset()},n.c=function(e){return e.toISOString()},n.r=function(e){return e.toUTCString()},n.U=function(e){return e.getTime()/1e3}},{"./utils":26}],3:[function(e,t,n){var r=e("./utils"),o=e("./dateformatter");function i(e){var t=this,n={};return r.isArray(e)?r.map(e,function(e){return t.apply(null,arguments)}):"object"==typeof e?(r.each(e,function(e,r){n[r]=t.apply(null,arguments)}),n):void 0}n.addslashes=function(e){var t=i.apply(n.addslashes,arguments);return void 0!==t?t:e.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\"/g,'\\"')},n.capitalize=function(e){var t=i.apply(n.capitalize,arguments);return void 0!==t?t:e.toString().charAt(0).toUpperCase()+e.toString().substr(1).toLowerCase()},n.date=function(e,t,n,r){var i,a=t.length,s=new o.DateZ(e),u=0,c="";for(n&&s.setTimezoneOffset(n,r);u<a;u+=1)"\\"===(i=t.charAt(u))?c+=(u+=1)<a?t.charAt(u):i:o.hasOwnProperty(i)?c+=o[i](s,n,r):c+=i;return c},n.default=function(e,t){return void 0===e||!e&&"number"!=typeof e?t:e},n.escape=function(e,t){var r,o=i.apply(n.escape,arguments),a=e,s=0;if(void 0!==o)return o;if("string"!=typeof e)return e;if(o="","js"===t){for(a=a.replace(/\\/g,"\\u005C");s<a.length;s+=1)o+=(r=a.charCodeAt(s))<32?"\\u00"+(r=(r=r.toString(16).toUpperCase()).length<2?"0"+r:r):a[s];return o.replace(/&/g,"\\u0026").replace(/</g,"\\u003C").replace(/>/g,"\\u003E").replace(/\'/g,"\\u0027").replace(/"/g,"\\u0022").replace(/\=/g,"\\u003D").replace(/-/g,"\\u002D").replace(/;/g,"\\u003B")}return a.replace(/&(?!amp;|lt;|gt;|quot;|#39;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},n.e=n.escape,n.first=function(e){return"object"!=typeof e||r.isArray(e)?"string"==typeof e?e.substr(0,1):e[0]:e[r.keys(e)[0]]},n.groupBy=function(e,t){if(!r.isArray(e))return e;var n={};return r.each(e,function(e){if(e.hasOwnProperty(t)){var o=e[t],i=r.extend({},e);delete i[t],n[o]||(n[o]=[]),n[o].push(i)}}),n},n.join=function(e,t){if(r.isArray(e))return e.join(t);if("object"==typeof e){var n=[];return r.each(e,function(e){n.push(e)}),n.join(t)}return e},n.json=function(e,t){return JSON.stringify(e,null,t||0)},n.json_encode=n.json,n.last=function(e){if("object"==typeof e&&!r.isArray(e)){var t=r.keys(e);return e[t[t.length-1]]}return"string"==typeof e?e.charAt(e.length-1):e[e.length-1]},n.length=function(e){return"object"!=typeof e||r.isArray(e)?e.hasOwnProperty("length")?e.length:"":r.keys(e).length},n.lower=function(e){var t=i.apply(n.lower,arguments);return void 0!==t?t:e.toString().toLowerCase()},n.raw=function(e){return n.safe(e)},n.raw.safe=!0,n.replace=function(e,t,n,r){var o=new RegExp(t,r);return e.replace(o,n)},n.reverse=function(e){return n.sort(e,!0)},n.safe=function(e){return e},n.safe.safe=!0,n.sort=function(e,t){var n;if(r.isArray(e))n=r.extend([],e).sort();else switch(typeof e){case"object":n=r.keys(e).sort();break;case"string":return n=e.split(""),t?n.reverse().join(""):n.sort().join("")}return n&&t?n.reverse():n||e},n.striptags=function(e){var t=i.apply(n.striptags,arguments);return void 0!==t?t:e.toString().replace(/(<([^>]+)>)/gi,"")},n.title=function(e){var t=i.apply(n.title,arguments);return void 0!==t?t:e.toString().replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},n.uniq=function(e){var t;return e&&r.isArray(e)?(t=[],r.each(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t):""},n.upper=function(e){var t=i.apply(n.upper,arguments);return void 0!==t?t:e.toString().toUpperCase()},n.url_encode=function(e){var t=i.apply(n.url_encode,arguments);return void 0!==t?t:encodeURIComponent(e)},n.url_decode=function(e){var t=i.apply(n.url_decode,arguments);return void 0!==t?t:decodeURIComponent(e)}},{"./dateformatter":2,"./utils":26}],4:[function(e,t,n){var r=e("./utils"),o={WHITESPACE:0,STRING:1,FILTER:2,FILTEREMPTY:3,FUNCTION:4,FUNCTIONEMPTY:5,PARENOPEN:6,PARENCLOSE:7,COMMA:8,VAR:9,NUMBER:10,OPERATOR:11,BRACKETOPEN:12,BRACKETCLOSE:13,DOTKEY:14,ARRAYOPEN:15,CURLYOPEN:17,CURLYCLOSE:18,COLON:19,COMPARATOR:20,LOGIC:21,NOT:22,BOOL:23,ASSIGNMENT:24,METHODOPEN:25,UNKNOWN:100},i=[{type:o.WHITESPACE,regex:[/^\s+/]},{type:o.STRING,regex:[/^""/,/^".*?[^\\]"/,/^''/,/^'.*?[^\\]'/]},{type:o.FILTER,regex:[/^\|\s*(\w+)\(/],idx:1},{type:o.FILTEREMPTY,regex:[/^\|\s*(\w+)/],idx:1},{type:o.FUNCTIONEMPTY,regex:[/^\s*(\w+)\(\)/],idx:1},{type:o.FUNCTION,regex:[/^\s*(\w+)\(/],idx:1},{type:o.PARENOPEN,regex:[/^\(/]},{type:o.PARENCLOSE,regex:[/^\)/]},{type:o.COMMA,regex:[/^,/]},{type:o.LOGIC,regex:[/^(&&|\|\|)\s*/,/^(and|or)\s+/],idx:1,replace:{and:"&&",or:"||"}},{type:o.COMPARATOR,regex:[/^(===|==|\!==|\!=|<=|<|>=|>|in\s|gte\s|gt\s|lte\s|lt\s)\s*/],idx:1,replace:{gte:">=",gt:">",lte:"<=",lt:"<"}},{type:o.ASSIGNMENT,regex:[/^(=|\+=|-=|\*=|\/=)/]},{type:o.NOT,regex:[/^\!\s*/,/^not\s+/],replace:{not:"!"}},{type:o.BOOL,regex:[/^(true|false)\s+/,/^(true|false)$/],idx:1},{type:o.VAR,regex:[/^[a-zA-Z_$]\w*((\.\$?\w*)+)?/,/^[a-zA-Z_$]\w*/]},{type:o.BRACKETOPEN,regex:[/^\[/]},{type:o.BRACKETCLOSE,regex:[/^\]/]},{type:o.CURLYOPEN,regex:[/^\{/]},{type:o.COLON,regex:[/^\:/]},{type:o.CURLYCLOSE,regex:[/^\}/]},{type:o.DOTKEY,regex:[/^\.(\w+)/],idx:1},{type:o.NUMBER,regex:[/^[+\-]?\d+(\.\d+)?/]},{type:o.OPERATOR,regex:[/^(\+|\-|\/|\*|%)/]}];function a(e){var t;return r.some(i,function(n){return r.some(n.regex,function(r){var o,i=e.match(r);if(i)return o=i[n.idx||0].replace(/\s*$/,""),o=n.hasOwnProperty("replace")&&n.replace.hasOwnProperty(o)?n.replace[o]:o,t={match:o,type:n.type,length:i[0].length},!0})}),t||(t={match:e,type:o.UNKNOWN,length:e.length}),t}n.types=o,n.read=function(e){for(var t,n=0,r=[];n<e.length;)n+=(t=a(e.substring(n))).length,r.push(t);return r}},{"./utils":26}],5:[function(e,t,n){var r=e("__browserify_process"),o=e("fs"),i=e("path");t.exports=function(e,t){var n={};return t=t||"utf8",e=e?i.normalize(e):null,n.resolve=function(t,n){return n=e||(n?i.dirname(n):r.cwd()),i.resolve(n,t)},n.load=function(e,r){if(!o||r&&!o.readFile||!o.readFileSync)throw new Error("Unable to find file "+e+" because there is no filesystem to read from.");if(e=n.resolve(e),!r)return o.readFileSync(e,t);o.readFile(e,t,r)},n}},{__browserify_process:31,fs:28,path:29}],6:[function(e,t,n){n.fs=e("./filesystem"),n.memory=e("./memory")},{"./filesystem":5,"./memory":7}],7:[function(e,t,n){var r=e("path"),o=e("../utils");t.exports=function(e,t){var n={};return t=t?r.normalize(t):null,n.resolve=function(e,n){return n=t||(n?r.dirname(n):"/"),r.resolve(n,e)},n.load=function(t,n){var r,i;if(i=[t,t.replace(/^(\/|\\)/,"")],(r=e[i[0]]||e[i[1]])||o.throwError('Unable to find template "'+t+'".'),!n)return r;n(null,r)},n}},{"../utils":26,path:29}],8:[function(e,t,n){var r=e("./utils"),o=e("./lexer"),i=o.types,a=["break","case","catch","continue","debugger","default","delete","do","else","finally","for","function","if","in","instanceof","new","return","switch","this","throw","try","typeof","var","void","while","with"],s=["__proto__","constructor","prototype"];
|
|
4
|
+
/*!
|
|
5
|
+
* Makes a string safe for a regular expression.
|
|
6
|
+
* @param {string} str
|
|
7
|
+
* @return {string}
|
|
8
|
+
* @private
|
|
9
|
+
*/
|
|
10
|
+
function u(e){return e.replace(/[\-\/\\\^$*+?.()|\[\]{}]/g,"\\$&")}function c(e,t,n,o,a){this.out=[],this.state=[],this.filterApplyIdx=[],this._parsers={},this.line=o,this.filename=a,this.filters=t,this.escape=n,this.parse=function(){var t=this;return t._parsers.start&&t._parsers.start.call(t),r.each(e,function(n,r){var o=e[r-1];if(t.isLast=r===e.length-1,o)for(;o.type===i.WHITESPACE;)o=e[(r-=1)-1];t.prevToken=o,t.parseToken(n)}),t._parsers.end&&t._parsers.end.call(t),t.escape&&(t.filterApplyIdx=[0],"string"==typeof t.escape?(t.parseToken({type:i.FILTER,match:"e"}),t.parseToken({type:i.COMMA,match:","}),t.parseToken({type:i.STRING,match:String(n)}),t.parseToken({type:i.PARENCLOSE,match:")"})):t.parseToken({type:i.FILTEREMPTY,match:"e"})),t.out}}c.prototype={on:function(e,t){this._parsers[e]=t},parseToken:function(e){var t,n=this,o=n._parsers[e.type]||n._parsers["*"],a=e.match,u=n.prevToken,c=u?u.type:null,l=n.state.length?n.state[n.state.length-1]:null;if(!o||"function"!=typeof o||o.call(this,e))switch(l&&u&&l===i.FILTER&&c===i.FILTER&&e.type!==i.PARENCLOSE&&e.type!==i.COMMA&&e.type!==i.OPERATOR&&e.type!==i.FILTER&&e.type!==i.FILTEREMPTY&&n.out.push(", "),l&&l===i.METHODOPEN&&(n.state.pop(),e.type!==i.PARENCLOSE&&n.out.push(", ")),e.type){case i.WHITESPACE:break;case i.STRING:if(l===i.BRACKETOPEN){var f=a.replace(/^['"]|['"]$/g,"");-1!==s.indexOf(f)&&r.throwError('Unsafe access to "'+f+'" via bracket notation is not allowed in templates (CVE-2023-25345)',n.line,n.filename)}n.filterApplyIdx.push(n.out.length),n.out.push(a.replace(/\\/g,"\\\\"));break;case i.NUMBER:case i.BOOL:n.filterApplyIdx.push(n.out.length),n.out.push(a);break;case i.FILTER:n.filters.hasOwnProperty(a)&&"function"==typeof n.filters[a]||r.throwError('Invalid filter "'+a+'"',n.line,n.filename),n.escape=!n.filters[a].safe&&n.escape,n.out.splice(n.filterApplyIdx[n.filterApplyIdx.length-1],0,'_filters["'+a+'"]('),n.state.push(e.type);break;case i.FILTEREMPTY:n.filters.hasOwnProperty(a)&&"function"==typeof n.filters[a]||r.throwError('Invalid filter "'+a+'"',n.line,n.filename),n.escape=!n.filters[a].safe&&n.escape,n.out.splice(n.filterApplyIdx[n.filterApplyIdx.length-1],0,'_filters["'+a+'"]('),n.out.push(")");break;case i.FUNCTION:case i.FUNCTIONEMPTY:n.out.push("((typeof _ctx."+a+' !== "undefined") ? _ctx.'+a+" : ((typeof "+a+' !== "undefined") ? '+a+" : _fn))("),n.escape=!1,e.type===i.FUNCTIONEMPTY?n.out[n.out.length-1]=n.out[n.out.length-1]+")":n.state.push(e.type),n.filterApplyIdx.push(n.out.length-1);break;case i.PARENOPEN:n.state.push(e.type),n.filterApplyIdx.length?(n.out.splice(n.filterApplyIdx[n.filterApplyIdx.length-1],0,"("),u&&c===i.VAR?(t=u.match.split(".").slice(0,-1),n.out.push(" || _fn).call("+n.checkMatch(t)),n.state.push(i.METHODOPEN),n.escape=!1):n.out.push(" || _fn)("),n.filterApplyIdx.push(n.out.length-3)):(n.out.push("("),n.filterApplyIdx.push(n.out.length-1));break;case i.PARENCLOSE:(t=n.state.pop())!==i.PARENOPEN&&t!==i.FUNCTION&&t!==i.FILTER&&r.throwError("Mismatched nesting state",n.line,n.filename),n.out.push(")"),n.filterApplyIdx.pop(),t!==i.FILTER&&n.filterApplyIdx.pop();break;case i.COMMA:l!==i.FUNCTION&&l!==i.FILTER&&l!==i.ARRAYOPEN&&l!==i.CURLYOPEN&&l!==i.PARENOPEN&&l!==i.COLON&&r.throwError("Unexpected comma",n.line,n.filename),l===i.COLON&&n.state.pop(),n.out.push(", "),n.filterApplyIdx.pop();break;case i.LOGIC:case i.COMPARATOR:u&&c!==i.COMMA&&c!==e.type&&c!==i.BRACKETOPEN&&c!==i.CURLYOPEN&&c!==i.PARENOPEN&&c!==i.FUNCTION||r.throwError("Unexpected logic",n.line,n.filename),n.out.push(e.match);break;case i.NOT:n.out.push(e.match);break;case i.VAR:n.parseVar(e,a,l);break;case i.BRACKETOPEN:!u||c!==i.VAR&&c!==i.BRACKETCLOSE&&c!==i.PARENCLOSE?(n.state.push(i.ARRAYOPEN),n.filterApplyIdx.push(n.out.length)):n.state.push(e.type),n.out.push("[");break;case i.BRACKETCLOSE:(t=n.state.pop())!==i.BRACKETOPEN&&t!==i.ARRAYOPEN&&r.throwError("Unexpected closing square bracket",n.line,n.filename),n.out.push("]"),n.filterApplyIdx.pop();break;case i.CURLYOPEN:n.state.push(e.type),n.out.push("{"),n.filterApplyIdx.push(n.out.length-1);break;case i.COLON:l!==i.CURLYOPEN&&r.throwError("Unexpected colon",n.line,n.filename),n.state.push(e.type),n.out.push(":"),n.filterApplyIdx.pop();break;case i.CURLYCLOSE:l===i.COLON&&n.state.pop(),n.state.pop()!==i.CURLYOPEN&&r.throwError("Unexpected closing curly brace",n.line,n.filename),n.out.push("}"),n.filterApplyIdx.pop();break;case i.DOTKEY:(!u||c!==i.VAR&&c!==i.BRACKETCLOSE&&c!==i.DOTKEY&&c!==i.PARENCLOSE&&c!==i.FUNCTIONEMPTY&&c!==i.FILTEREMPTY&&c!==i.CURLYCLOSE)&&r.throwError('Unexpected key "'+a+'"',n.line,n.filename),-1!==s.indexOf(a)&&r.throwError('Unsafe access to "'+a+'" is not allowed in templates (CVE-2023-25345)',n.line,n.filename),n.out.push("."+a);break;case i.OPERATOR:n.out.push(" "+a+" "),n.filterApplyIdx.pop()}},parseVar:function(e,t,n){var o=this;if(t=t.split("."),-1!==a.indexOf(t[0])&&r.throwError('Reserved keyword "'+t[0]+'" attempted to be used as a variable',o.line,o.filename),r.each(t,function(e){-1!==s.indexOf(e)&&r.throwError('Unsafe access to "'+e+'" is not allowed in templates (CVE-2023-25345)',o.line,o.filename)}),o.filterApplyIdx.push(o.out.length),n===i.CURLYOPEN)return t.length>1&&r.throwError("Unexpected dot",o.line,o.filename),void o.out.push(t[0]);o.out.push(o.checkMatch(t))},checkMatch:function(e){var t,n=e[0];function o(t){var o=t+n,i=e,a="";return a="(typeof "+o+' !== "undefined" && '+o+" !== null",r.each(i,function(e,t){0!==t&&(a+=" && "+o+"."+e+" !== undefined && "+o+"."+e+" !== null",o+="."+e)}),a+=")"}function i(t){return"("+o(t)+" ? "+t+e.join(".")+' : "")'}return"("+(t="("+o("_ctx.")+" ? "+i("_ctx.")+" : "+i("")+")")+" !== null ? "+t+' : "" )'}},n.parse=function(e,t,a,s,l){t=t.replace(/\r\n/g,"\n");var f,p=a.autoescape,h=a.tagControls[0],g=a.tagControls[1],d=a.varControls[0],y=a.varControls[1],m=u(h),w=u(g),v=u(d),O=u(y),E=new RegExp("^"+m+"-?\\s*-?|-?\\s*-?"+w+"$","g"),x=new RegExp("^"+m+"-"),b=new RegExp("-"+w+"$"),A=new RegExp("^"+v+"-?\\s*-?|-?\\s*-?"+O+"$","g"),T=new RegExp("^"+v+"-"),_=new RegExp("-"+O+"$"),C=a.cmtControls[0],N=a.cmtControls[1],R="[\\s\\S]*?",P=new RegExp("("+m+R+w+"|"+v+R+O+"|"+u(C)+R+u(N)+")"),k=1,S=[],U=null,I=[],j={},M=!1;function F(e,t){var n,i;return n=new c(o.read(r.strip(e)),l,p,t,a.filename),i=n.parse().join(""),n.state.length&&r.throwError('Unable to parse "'+e+'"',t,a.filename),{compile:function(){return"_output += "+i+";\n"}}}function L(e){return"string"==typeof e&&(e=e.replace(/\s*$/,"")),e}
|
|
11
|
+
/*!
|
|
12
|
+
* Loop over the source, split via the tag/var/comment regular expression splitter.
|
|
13
|
+
* Send each chunk to the appropriate parser.
|
|
14
|
+
*/return n.parseVariable=F,r.each(t.split(P),function(t){var n,u,m,w,v;if(t){if(!M&&r.startsWith(t,d)&&r.endsWith(t,y))m=T.test(t),f=_.test(t),n=F(t.replace(A,""),k);else if(r.startsWith(t,h)&&r.endsWith(t,g))m=x.test(t),f=b.test(t),n=function(t,n){var u,f,h,g,d,y;if(r.startsWith(t,"end")){if((y=S[S.length-1])&&y.name===t.split(/\s+/)[0].replace(/^end/,"")&&y.ends){switch(y.name){case"autoescape":p=a.autoescape;break;case"raw":M=!1}return void S.pop()}M||r.throwError('Unexpected end of tag "'+t.replace(/^end/,"")+'"',n,a.filename)}if(!M){switch(h=(f=t.split(/\s+(.+)?/)).shift(),s.hasOwnProperty(h)||r.throwError('Unexpected tag "'+t+'"',n,a.filename),u=new c(o.read(r.strip(f.join(" "))),l,!1,n,a.filename),(g=s[h]).parse(f[1],n,u,i,S,a,e)||r.throwError('Unexpected tag "'+h+'"',n,a.filename),u.parse(),d=u.out,h){case"autoescape":p="false"!==d[0]&&d[0];break;case"raw":M=!0}return{block:!!s[h].block,compile:g.compile,args:d,content:[],ends:g.ends,name:h}}}(t.replace(E,""),k),n&&("extends"===n.name?U=n.args.join("").replace(/^\'|\'$/g,"").replace(/^\"|\"$/g,""):n.block&&!S.length&&(j[n.args.join("")]=n)),M&&!n&&(n=t);else if(M||!r.startsWith(t,C)&&!r.endsWith(t,N))n=f?t.replace(/^\s*/,""):t,f=!1;else if(r.startsWith(t,C)&&r.endsWith(t,N))return;m&&I.length&&("string"==typeof(w=I.pop())?w=L(w):w.content&&w.content.length&&(v=L(w.content.pop()),w.content.push(v)),I.push(w)),n&&(S.length?S[S.length-1].content.push(n):I.push(n),n.name&&n.ends&&S.push(n),u=t.match(/\n/g),k+=u?u.length:0)}}),{name:a.filename,parent:U,tokens:I,blocks:j}},n.compile=function(e,t,o,i){var a="",s=r.isArray(e)?e:e.tokens;return r.each(s,function(e){var r;"string"!=typeof e?(r=e.compile(n.compile,e.args?e.args.slice(0):[],e.content?e.content.slice(0):[],t,o,i),a+=r||""):a+='_output += "'+e.replace(/\\/g,"\\\\").replace(/\n|\r/g,"\\n").replace(/"/g,'\\"')+'";\n'}),a}},{"./lexer":4,"./utils":26}],9:[function(e,t,n){var r=e("./utils"),o=e("./tags"),i=e("./filters"),a=e("./parser"),s=e("./dateformatter"),u=e("./loaders");n.version="1.5.0";var c,l={autoescape:!0,varControls:["{{","}}"],tagControls:["{%","%}"],cmtControls:["{#","#}"],locals:{},cache:"memory",loader:u.fs()};function f(){return""}function p(e){if(e){if(r.each(["varControls","tagControls","cmtControls"],function(t){if(e.hasOwnProperty(t)){if(!r.isArray(e[t])||2!==e[t].length)throw new Error('Option "'+t+'" must be an array containing 2 different control strings.');if(e[t][0]===e[t][1])throw new Error('Option "'+t+'" open and close controls must not be the same.');r.each(e[t],function(e,n){if(e.length<2)throw new Error('Option "'+t+'" '+(n?"open ":"close ")+'control must be at least 2 characters. Saw "'+e+'" instead.')})}}),e.hasOwnProperty("cache")&&e.cache&&"memory"!==e.cache&&(!e.cache.get||!e.cache.set))throw new Error("Invalid cache option "+JSON.stringify(e.cache)+' found. Expected "memory" or { get: function (key) { ... }, set: function (key, value) { ... } }.');if(e.hasOwnProperty("loader")&&e.loader&&(!e.loader.load||!e.loader.resolve))throw new Error("Invalid loader option "+JSON.stringify(e.loader)+" found. Expected { load: function (pathname, cb) { ... }, resolve: function (to, from) { ... } }.")}}n.setDefaults=function(e){p(e),c.options=r.extend(c.options,e)},n.setDefaultTZOffset=function(e){s.tzOffset=e},n.Swig=function(e){p(e),this.options=r.extend({},l,e||{}),this.cache={},this.extensions={};var t=this,n=o,s=i;function u(e){return e&&e.locals?r.extend({},t.options.locals,e.locals):t.options.locals}function c(e){return(e=e||{}).hasOwnProperty("cache")&&!e.cache||!t.options.cache}function h(e,n){if(!c(n))return"memory"===t.options.cache?t.cache[e]:t.options.cache.get(e)}function g(e,n,r){c(n)||("memory"!==t.options.cache?t.options.cache.set(e,r):t.cache[e]=r)}function d(e,t){return r.map(t,function(t){var n=t.args?t.args.join(""):"";return"block"===t.name&&e[n]&&(t=e[n]),t.content&&t.content.length&&(t.content=d(e,t.content)),t})}function y(e,t){var n=[];r.each(e,function(e){n.push(e)}),r.each(n.reverse(),function(e){"block"!==e.name&&t.unshift(e)})}this.invalidateCache=function(){"memory"===t.options.cache&&(t.cache={})},this.setFilter=function(e,t){if("function"!=typeof t)throw new Error('Filter "'+e+'" is not a valid function.');s[e]=t},this.setTag=function(e,t,r,o,i){if("function"!=typeof t)throw new Error('Tag "'+e+'" parse method is not a valid function.');if("function"!=typeof r)throw new Error('Tag "'+e+'" compile method is not a valid function.');n[e]={parse:t,compile:r,ends:o||!1,block:!!i}},this.setExtension=function(e,n){t.extensions[e]=n},this.parse=function(e,o){p(o);var i,c=u(o),l={};for(i in o)o.hasOwnProperty(i)&&"locals"!==i&&(l[i]=o[i]);return(o=r.extend({},t.options,l)).locals=c,a.parse(this,e,o,n,s)},this.parseFile=function(e,n){var o;return n||(n={}),e=t.options.loader.resolve(e,n.resolveFrom),o=t.options.loader.load(e),n.filename||(n=r.extend({filename:e},n)),t.parse(o,n)},this.precompile=function(e,n){var o,i=t.parse(e,n),s=function(e,n){for(var o,i,a,s=e.parent,u=[],c=[];s;){if(!n||!n.filename)throw new Error('Cannot extend "'+s+'" because current template has no filename.');if(o=o||n.filename,s=(i=h(o=t.options.loader.resolve(s,o),n)||t.parseFile(o,r.extend({},n,{filename:o}))).parent,-1!==u.indexOf(o))throw new Error('Illegal circular extends of "'+o+'".');u.push(o),c.push(i)}for(a=c.length,a=c.length-2;a>=0;a-=1)c[a].tokens=d(c[a].blocks,c[a+1].tokens),y(c[a].blocks,c[a].tokens);return c}(i,n);s.length&&(i.tokens=d(i.blocks,s[0].tokens),y(i.blocks,i.tokens));try{o=new Function("_swig","_ctx","_filters","_utils","_fn",' var _ext = _swig.extensions,\n _output = "";\n'+a.compile(i,s,n)+"\n return _output;\n")}catch(e){r.throwError(e,null,n.filename)}return{tpl:o,tokens:i}},this.render=function(e,n){return t.compile(e,n)()},this.renderFile=function(e,n,r){if(!r)return t.compileFile(e)(n);t.compileFile(e,{},function(e,t){var o;if(e)r(e);else{try{o=t(n)}catch(e){return void r(e)}r(null,o)}})},this.compile=function(e,n){var o,i,a,c=n?n.filename:null,l=c?h(c,n):null;if(l)return l;function p(e){var n;return n=e&&i?r.extend({},o,e):e&&!i?e:!e&&i?o:{},a.tpl(t,n,s,r,f)}return o=u(n),i=r.keys(o).length,a=this.precompile(e,n),r.extend(p,a.tokens),c&&g(c,n,p),p},this.compileFile=function(e,n,o){var i,a;return n||(n={}),e=t.options.loader.resolve(e,n.resolveFrom),n.filename||(n=r.extend({filename:e},n)),(a=h(e,n))?o?void o(null,a):a:o?void t.options.loader.load(e,function(e,r){if(e)o(e);else{var i;try{i=t.compile(r,n)}catch(e){return void o(e)}o(e,i)}}):(i=t.options.loader.load(e),t.compile(i,n))},this.run=function(e,n,o){var i=u({locals:n});return o&&g(o,{},e),e(t,i,s,r,f)}},
|
|
15
|
+
/*!
|
|
16
|
+
* Export methods publicly
|
|
17
|
+
*/
|
|
18
|
+
c=new n.Swig,n.setFilter=c.setFilter,n.setTag=c.setTag,n.setExtension=c.setExtension,n.parseFile=c.parseFile,n.precompile=c.precompile,n.compile=c.compile,n.compileFile=c.compileFile,n.render=c.render,n.renderFile=c.renderFile,n.run=c.run,n.invalidateCache=c.invalidateCache,n.loaders=u},{"./dateformatter":2,"./filters":3,"./loaders":6,"./parser":8,"./tags":20,"./utils":26}],10:[function(e,t,n){var r=e("../utils"),o=["html","js"];n.compile=function(e,t,n,r,o,i){return e(n,r,o,i)},n.parse=function(e,t,n,i,a,s){var u;return n.on("*",function(e){if(!u&&(e.type===i.BOOL||e.type===i.STRING&&-1===o.indexOf(e.match)))return this.out.push(e.match),void(u=!0);r.throwError('Unexpected token "'+e.match+'" in autoescape tag',t,s.filename)}),!0},n.ends=!0},{"../utils":26}],11:[function(e,t,n){n.compile=function(e,t,n,r,o){return e(n,r,o,t.join(""))},n.parse=function(e,t,n){return n.on("*",function(e){this.out.push(e.match)}),!0},n.ends=!0,n.block=!0},{}],12:[function(e,t,n){n.compile=function(){return"} else {\n"},n.parse=function(e,t,n,r,o){return n.on("*",function(e){throw new Error('"else" tag does not accept any tokens. Found "'+e.match+'" on line '+t+".")}),o.length&&"if"===o[o.length-1].name}},{}],13:[function(e,t,n){var r=e("./if").parse;n.compile=function(e,t){return"} else if ("+t.join(" ")+") {\n"},n.parse=function(e,t,n,o,i){return r(e,t,n,o,i)&&i.length&&"if"===i[i.length-1].name}},{"./if":17}],14:[function(e,t,n){n.compile=function(){},n.parse=function(){return!0},n.ends=!1},{}],15:[function(e,t,n){var r=e("../filters");n.compile=function(e,t,n,r,o,i){var a=t.shift().replace(/\($/,""),s='(function () {\n var _output = "";\n'+e(n,r,o,i)+" return _output;\n})()";return")"===t[t.length-1]&&t.pop(),'_output += _filters["'+a+'"]('+s+(t=t.length?", "+t.join(""):"")+");\n"},n.parse=function(e,t,n,o){var i;function a(e){if(!r.hasOwnProperty(e))throw new Error('Filter "'+e+'" does not exist on line '+t+".")}return n.on(o.FUNCTION,function(e){return!!i||(a(i=e.match.replace(/\($/,"")),this.out.push(e.match),void this.state.push(e.type))}),n.on(o.VAR,function(e){return!!i||(a(i=e.match),void this.out.push(i))}),!0},n.ends=!0},{"../filters":3}],16:[function(e,t,n){var r="_ctx.",o=r+"loop",i=["__proto__","constructor","prototype"];n.compile=function(e,t,n,i,a,s){var u=t.shift(),c="__k",l=(r+"__loopcache"+Math.random()).replace(/\./g,"");return t[0]&&","===t[0]&&(t.shift(),c=u,u=t.shift()),["(function () {\n"," var __l = "+t.join("")+', __len = (_utils.isArray(__l) || typeof __l === "string") ? __l.length : _utils.keys(__l).length;\n'," if (!__l) { return; }\n"," var "+l+" = { loop: "+o+", "+u+": "+r+u+", "+c+": "+r+c+" };\n"," "+o+" = { first: false, index: 1, index0: 0, revindex: __len, revindex0: __len - 1, length: __len, last: false };\n"," _utils.each(__l, function ("+u+", "+c+") {\n"," "+r+u+" = "+u+";\n"," "+r+c+" = "+c+";\n"," "+o+".key = "+c+";\n"," "+o+".first = ("+o+".index0 === 0);\n"," "+o+".last = ("+o+".revindex0 === 0);\n"," "+e(n,i,a,s)," "+o+".index += 1; "+o+".index0 += 1; "+o+".revindex -= 1; "+o+".revindex0 -= 1;\n"," });\n"," "+o+" = "+l+".loop;\n"," "+r+u+" = "+l+"."+u+";\n"," "+r+c+" = "+l+"."+c+";\n"," "+l+" = undefined;\n","})();\n"].join("")},n.parse=function(e,t,n,r){var o,a;return n.on(r.NUMBER,function(e){var n=this.state.length?this.state[this.state.length-1]:null;if(!a||n!==r.ARRAYOPEN&&n!==r.CURLYOPEN&&n!==r.CURLYCLOSE&&n!==r.FUNCTION&&n!==r.FILTER)throw new Error('Unexpected number "'+e.match+'" on line '+t+".");return!0}),n.on(r.VAR,function(e){if(a&&o)return!0;if(-1!==i.indexOf(e.match))throw new Error('Unsafe loop variable "'+e.match+'" is not allowed (CVE-2023-25345) on line '+t+".");this.out.length||(o=!0),this.out.push(e.match)}),n.on(r.COMMA,function(e){if(!o||this.prevToken.type!==r.VAR)return!0;this.out.push(e.match)}),n.on(r.COMPARATOR,function(e){if("in"!==e.match||!o)throw new Error('Unexpected token "'+e.match+'" on line '+t+".");a=!0,this.filterApplyIdx.push(this.out.length)}),!0},n.ends=!0},{}],17:[function(e,t,n){n.compile=function(e,t,n,r,o,i){return"if ("+t.join(" ")+") { \n"+e(n,r,o,i)+"\n}"},n.parse=function(e,t,n,r){if(void 0===e)throw new Error("No conditional statement provided on line "+t+".");return n.on(r.COMPARATOR,function(e){if(this.isLast)throw new Error('Unexpected logic "'+e.match+'" on line '+t+".");if(this.prevToken.type===r.NOT)throw new Error('Attempted logic "not '+e.match+'" on line '+t+". Use !(foo "+e.match+") instead.");this.out.push(e.match),this.filterApplyIdx.push(this.out.length)}),n.on(r.NOT,function(e){if(this.isLast)throw new Error('Unexpected logic "'+e.match+'" on line '+t+".");this.out.push(e.match)}),n.on(r.BOOL,function(e){this.out.push(e.match)}),n.on(r.LOGIC,function(e){if(!this.out.length||this.isLast)throw new Error('Unexpected logic "'+e.match+'" on line '+t+".");this.out.push(e.match),this.filterApplyIdx.pop()}),!0},n.ends=!0},{}],18:[function(e,t,n){var r=e("../utils"),o=["__proto__","constructor","prototype"];n.compile=function(e,t){var n=t.pop(),o=r.map(t,function(e){return e.name}).join("|"),i="_ctx."+n+' = {};\n var _output = "";\n',a=r.map(t,function(e){return{ex:new RegExp("_ctx."+e.name+"(\\W)(?!"+o+")","g"),re:"_ctx."+n+"."+e.name+"$1"}});return r.each(t,function(e){var t=e.compiled;r.each(a,function(e){t=t.replace(e.ex,e.re)}),i+=t}),i},n.parse=function(t,n,i,a,s,u,c){var l,f,p=e("../parser").compile,h={resolveFrom:u.filename},g=r.extend({},u,h);return i.on(a.STRING,function(e){var t=this;if(!l)return l=c.parseFile(e.match.replace(/^("|')|("|')$/g,""),h).tokens,void r.each(l,function(e){var n,r="";e&&"macro"===e.name&&e.compile&&(n=e.args[0],r+=e.compile(p,e.args,e.content,[],g)+"\n",t.out.push({compiled:r,name:n}))});throw new Error("Unexpected string "+e.match+" on line "+n+".")}),i.on(a.VAR,function(e){if(!l||f)throw new Error('Unexpected variable "'+e.match+'" on line '+n+".");if("as"!==e.match){if(-1!==o.indexOf(e.match))throw new Error('Unsafe import alias "'+e.match+'" is not allowed (CVE-2023-25345) on line '+n+".");return f=e.match,this.out.push(f),!1}}),!0},n.block=!0},{"../parser":8,"../utils":26}],19:[function(e,t,n){var r="ignore",o="missing",i="only";n.compile=function(e,t){var n=t.shift(),r=t.indexOf(i),a=-1!==r&&t.splice(r,1),s=(t.pop()||"").replace(/\\/g,"\\\\"),u=t[t.length-1]===o&&t.pop(),c=t.join("");return(u?" try {\n":"")+"_output += _swig.compileFile("+n+', {resolveFrom: "'+s+'"})('+(a&&c?c:c?"_utils.extend({}, _ctx, "+c+")":"_ctx")+");\n"+(u?"} catch (e) {}\n":"")},n.parse=function(e,t,n,a,s,u){var c,l;return n.on(a.STRING,function(e){return!!c||(c=e.match,void this.out.push(c))}),n.on(a.VAR,function(e){if(!c)return c=e.match,!0;if(l||"with"!==e.match){if(!l||e.match!==i||"with"===this.prevToken.match){if(e.match===r)return!1;if(e.match===o){if(this.prevToken.match!==r)throw new Error('Unexpected token "'+o+'" on line '+t+".");return this.out.push(e.match),!1}if(this.prevToken.match===r)throw new Error('Expected "'+o+'" on line '+t+' but found "'+e.match+'".');return!0}this.out.push(e.match)}else l=!0}),n.on("end",function(){this.out.push(u.filename||null)}),!0}},{}],20:[function(e,t,n){n.autoescape=e("./autoescape"),n.block=e("./block"),n.else=e("./else"),n.elseif=e("./elseif"),n.elif=n.elseif,n.extends=e("./extends"),n.filter=e("./filter"),n.for=e("./for"),n.if=e("./if"),n.import=e("./import"),n.include=e("./include"),n.macro=e("./macro"),n.parent=e("./parent"),n.raw=e("./raw"),n.set=e("./set"),n.spaceless=e("./spaceless")},{"./autoescape":10,"./block":11,"./else":12,"./elseif":13,"./extends":14,"./filter":15,"./for":16,"./if":17,"./import":18,"./include":19,"./macro":21,"./parent":22,"./raw":23,"./set":24,"./spaceless":25}],21:[function(e,t,n){n.compile=function(e,t,n,r,o,i){var a=t.shift();return"_ctx."+a+" = function ("+t.join("")+') {\n var _output = "",\n __ctx = _utils.extend({}, _ctx);\n _utils.each(_ctx, function (v, k) {\n if (["'+t.join('","')+'"].indexOf(k) !== -1) { delete _ctx[k]; }\n });\n'+e(n,r,o,i)+"\n _ctx = _utils.extend(_ctx, __ctx);\n return _output;\n};\n_ctx."+a+".safe = true;\n"};var r=["__proto__","constructor","prototype"];n.parse=function(e,t,n,o){var i;return n.on(o.VAR,function(e){if(-1!==e.match.indexOf("."))throw new Error('Unexpected dot in macro argument "'+e.match+'" on line '+t+".");this.out.push(e.match)}),n.on(o.FUNCTION,function(e){if(!i){if(-1!==r.indexOf(e.match))throw new Error('Unsafe macro name "'+e.match+'" is not allowed (CVE-2023-25345) on line '+t+".");i=e.match,this.out.push(i),this.state.push(o.FUNCTION)}}),n.on(o.FUNCTIONEMPTY,function(e){if(!i){if(-1!==r.indexOf(e.match))throw new Error('Unsafe macro name "'+e.match+'" is not allowed (CVE-2023-25345) on line '+t+".");i=e.match,this.out.push(i)}}),n.on(o.PARENCLOSE,function(){if(!this.isLast)throw new Error("Unexpected parenthesis close on line "+t+".")}),n.on(o.COMMA,function(){return!0}),n.on("*",function(){}),!0},n.ends=!0,n.block=!0},{}],22:[function(e,t,n){n.compile=function(e,t,n,r,o,i){if(!r||!r.length)return"";for(var a,s,u=t[0],c=r.length,l=0;l<c;l+=1)if((a=r[l]).blocks&&a.blocks.hasOwnProperty(i)&&u!==a.name)return(s=a.blocks[i]).compile(e,[i],s.content,r.slice(l+1),o)+"\n"},n.parse=function(e,t,n,r,o,i){return n.on("*",function(e){throw new Error('Unexpected argument "'+e.match+'" on line '+t+".")}),n.on("end",function(){this.out.push(i.filename)}),!0}},{}],23:[function(e,t,n){n.compile=function(e,t,n,r,o,i){return e(n,r,o,i)},n.parse=function(e,t,n){return n.on("*",function(e){throw new Error('Unexpected token "'+e.match+'" in raw tag on line '+t+".")}),!0},n.ends=!0},{}],24:[function(e,t,n){n.compile=function(e,t){return t.join(" ")+";\n"};var r=["__proto__","constructor","prototype"];n.parse=function(e,t,n,o){var i,a="";return n.on(o.VAR,function(e){if(i)i+="_ctx."+e.match;else{if(n.out.length)return!0;for(var o=e.match.split("."),s=0;s<o.length;s++)if(-1!==r.indexOf(o[s]))throw new Error('Unsafe assignment to "'+o[s]+'" is not allowed (CVE-2023-25345) on line '+t+".");a+=e.match}}),n.on(o.BRACKETOPEN,function(e){if(i||this.out.length)return!0;i=e.match}),n.on(o.STRING,function(e){if(!i||this.out.length)return!0;var n=e.match.replace(/^['"]|['"]$/g,"");if(-1!==r.indexOf(n))throw new Error('Unsafe assignment to "'+n+'" via bracket notation is not allowed (CVE-2023-25345) on line '+t+".");i+=e.match}),n.on(o.BRACKETCLOSE,function(e){return!(i&&!this.out.length)||(a+=i+e.match,void(i=void 0))}),n.on(o.DOTKEY,function(e){if(!i&&!a)return!0;if(-1!==r.indexOf(e.match))throw new Error('Unsafe assignment to "'+e.match+'" is not allowed (CVE-2023-25345) on line '+t+".");a+="."+e.match}),n.on(o.ASSIGNMENT,function(e){if(this.out.length||!a)throw new Error('Unexpected assignment "'+e.match+'" on line '+t+".");this.out.push("_ctx."+a),this.out.push(e.match),this.filterApplyIdx.push(this.out.length)}),!0},n.block=!0},{}],25:[function(e,t,n){e("../utils");n.compile=function(e,t,n,r,o,i){var a=e(n,r,o,i);return a+='_output = _output.replace(/^\\s+/, "")\n .replace(/>\\s+</g, "><")\n .replace(/\\s+$/, "");\n'},n.parse=function(e,t,n){return n.on("*",function(e){throw new Error('Unexpected token "'+e.match+'" on line '+t+".")}),!0},n.ends=!0},{"../utils":26}],26:[function(e,t,n){var r;n.strip=function(e){return e.replace(/^\s+|\s+$/g,"")},n.startsWith=function(e,t){return 0===e.indexOf(t)},n.endsWith=function(e,t){return-1!==e.indexOf(t,e.length-t.length)},n.each=function(e,t){var n,o;if(r(e))for(n=0,o=e.length;n<o&&!1!==t(e[n],n,e);n+=1);else for(n in e)if(e.hasOwnProperty(n)&&!1===t(e[n],n,e))break;return e},n.isArray=r=Array.hasOwnProperty("isArray")?Array.isArray:function(e){return!!e&&("object"==typeof e&&-1!==Object.prototype.toString.call(e).indexOf())},n.some=function(e,t){var o,i,a=0;if(r(e))for(i=e.length;a<i&&!(o=t(e[a],a,e));a+=1);else n.each(e,function(n,r){return!(o=t(n,r,e))});return!!o},n.map=function(e,t){var n,o=0,i=[];if(r(e))for(n=e.length;o<n;o+=1)i[o]=t(e[o],o);else for(o in e)e.hasOwnProperty(o)&&(i[o]=t(e[o],o));return i},n.extend=function(){for(var e,t,n=arguments,r=n[0],o=n.length>1?Array.prototype.slice.call(n,1):[],i=0,a=o.length;i<a;i+=1)for(e in t=o[i]||{})t.hasOwnProperty(e)&&(r[e]=t[e]);return r},n.keys=function(e){return e?Object.keys?Object.keys(e):n.map(e,function(e,t){return t}):[]},n.throwError=function(e,t,n){throw t&&(e+=" on line "+t),n&&(e+=" in file "+n),new Error(e+".")}},{}],27:[function(e,t,n){var r=Object.prototype.toString,o=Object.prototype.hasOwnProperty;function i(e){return"object"!=typeof e&&"function"!=typeof e||null===e}function a(e){if(i(e))throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)o.call(e,n)&&t.push(n);return t}n.isArray="function"==typeof Array.isArray?Array.isArray:function(e){return"[object Array]"===r.call(e)},n.indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;n++)if(t===e[n])return n;return-1},n.filter=function(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n},n.forEach=function(e,t,n){if(e.forEach)return e.forEach(t,n);for(var r=0;r<e.length;r++)t.call(n,e[r],r,e)},n.map=function(e,t){if(e.map)return e.map(t);for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=t(e[r],r,e);return n},n.reduce=function(e,t,n){if(e.reduce)return e.reduce(t,n);var r,o=!1;2<arguments.length&&(r=n,o=!0);for(var i=0,a=e.length;a>i;++i)e.hasOwnProperty(i)&&(o?r=t(r,e[i],i,e):(r=e[i],o=!0));return r},"b"!=="ab".substr(-1)?n.substr=function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}:n.substr=function(e,t,n){return e.substr(t,n)},n.trim=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},n.bind=function(){var e=Array.prototype.slice.call(arguments),t=e.shift();if(t.bind)return t.bind.apply(t,e);var n=e.shift();return function(){t.apply(n,e.concat([Array.prototype.slice.call(arguments)]))}},n.create="function"==typeof Object.create?Object.create:function(e,t){var n;if(null===e)n={__proto__:null};else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var r=function(){};r.prototype=e,(n=new r).__proto__=e}return void 0!==t&&Object.defineProperties&&Object.defineProperties(n,t),n};var s="function"==typeof Object.keys?Object.keys:a,u="function"==typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:function(e){if(i(e))throw new TypeError("Object.getOwnPropertyNames called on a non-object");var t=a(e);return n.isArray(e)&&-1===n.indexOf(e,"length")&&t.push("length"),t};if((new Error).hasOwnProperty("description")){var c=function(e,t){return"[object Error]"===r.call(e)&&(t=n.filter(t,function(e){return"description"!==e&&"number"!==e&&"message"!==e})),t};n.keys=function(e){return c(e,s(e))},n.getOwnPropertyNames=function(e){return c(e,u(e))}}else n.keys=s,n.getOwnPropertyNames=u;function l(e,t){return{value:e[t]}}if("function"==typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1},"a"),n.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(e){n.getOwnPropertyDescriptor=function(e,t){try{return Object.getOwnPropertyDescriptor(e,t)}catch(n){return l(e,t)}}}else n.getOwnPropertyDescriptor=l},{}],28:[function(e,t,n){},{}],29:[function(e,t,n){var r=e("__browserify_process"),o=e("util"),i=e("_shims");function a(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u=function(e){return s.exec(e).slice(1)};n.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var s=n>=0?arguments[n]:r.cwd();if(!o.isString(s))throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,t="/"===s.charAt(0))}return(t?"/":"")+(e=a(i.filter(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},n.normalize=function(e){var t=n.isAbsolute(e),r="/"===i.substr(e,-1);return(e=a(i.filter(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(i.filter(e,function(e,t){if(!o.isString(e))throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u<a;u++)if(o[u]!==i[u]){s=u;break}var c=[];for(u=s;u<o.length;u++)c.push("..");return(c=c.concat(i.slice(s))).join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=u(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=u(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return u(e)[3]}},{__browserify_process:31,_shims:27,util:30}],30:[function(e,t,n){var r=e("_shims"),o=/%[sdj%]/g;function i(e,t){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(t)?r.showHidden=t:t&&n._extend(r,t),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),u(r,e,r.depth)}function a(e,t){var n=i.styles[t];return n?"["+i.colors[n][0]+"m"+e+"["+i.colors[n][1]+"m":e}function s(e,t){return e}function u(e,t,o){if(e.customInspect&&t&&E(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(o);return d(i)||(i=u(e,i,o)),i}var a=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(d(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(p(t))return e.stylize(""+t,"boolean");if(h(t))return e.stylize("null","null")}(e,t);if(a)return a;var s=r.keys(t),w=function(e){var t={};return r.forEach(e,function(e,n){t[e]=!0}),t}(s);if(e.showHidden&&(s=r.getOwnPropertyNames(t)),0===s.length){if(E(t)){var x=t.name?": "+t.name:"";return e.stylize("[Function"+x+"]","special")}if(m(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(v(t))return e.stylize(Date.prototype.toString.call(t),"date");if(O(t))return c(t)}var b,A="",_=!1,C=["{","}"];(f(t)&&(_=!0,C=["[","]"]),E(t))&&(A=" [Function"+(t.name?": "+t.name:"")+"]");return m(t)&&(A=" "+RegExp.prototype.toString.call(t)),v(t)&&(A=" "+Date.prototype.toUTCString.call(t)),O(t)&&(A=" "+c(t)),0!==s.length||_&&0!=t.length?o<0?m(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),b=_?function(e,t,n,o,i){for(var a=[],s=0,u=t.length;s<u;++s)T(t,String(s))?a.push(l(e,t,n,o,String(s),!0)):a.push("");return r.forEach(i,function(r){r.match(/^\d+$/)||a.push(l(e,t,n,o,r,!0))}),a}(e,t,o,w,s):s.map(function(n){return l(e,t,o,w,n,_)}),e.seen.pop(),function(e,t,n){var o=r.reduce(e,function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(o>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(b,A,C)):C[0]+A+C[1]}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,n,o,i,a){var s,c,l;if((l=r.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?c=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),T(o,i)||(s="["+i+"]"),c||(r.indexOf(e.seen,l.value)<0?(c=h(n)?u(e,l.value,null):u(e,l.value,n-1)).indexOf("\n")>-1&&(c=a?c.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+c.split("\n").map(function(e){return" "+e}).join("\n")):c=e.stylize("[Circular]","special")),y(s)){if(a&&i.match(/^\d+$/))return c;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+c}function f(e){return r.isArray(e)}function p(e){return"boolean"==typeof e}function h(e){return null===e}function g(e){return"number"==typeof e}function d(e){return"string"==typeof e}function y(e){return void 0===e}function m(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&e}function v(e){return w(e)&&"[object Date]"===x(e)}function O(e){return w(e)&&"[object Error]"===x(e)}function E(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function b(e){return e<10?"0"+e.toString(10):e.toString(10)}n.format=function(e){if(!d(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(i(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,s=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n<a;u=r[++n])h(u)||!w(u)?s+=" "+u:s+=" "+i(u);return s},n.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=f,n.isBoolean=p,n.isNull=h,n.isNullOrUndefined=function(e){return null==e},n.isNumber=g,n.isString=d,n.isSymbol=function(e){return"symbol"==typeof e},n.isUndefined=y,n.isRegExp=m,n.isObject=w,n.isDate=v,n.isError=O,n.isFunction=E,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},n.isBuffer=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.binarySlice};var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[b(e.getHours()),b(e.getMinutes()),b(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],t].join(" ")),n.format.apply(n,arguments))},n.inherits=function(e,t){e.super_=t,e.prototype=r.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},n._extend=function(e,t){if(!t||!w(t))return e;for(var n=r.keys(t),o=n.length;o--;)e[n[o]]=t[n[o]];return e}},{_shims:27}],31:[function(e,t,n){var r=t.exports={};r.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),n.length>0&&n.shift()())},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")}},{}]},{},[1]);
|
|
19
|
+
//# sourceMappingURL=swig.js.map
|