├── .gitignore
├── LICENSE
├── README.md
├── demo
├── app
│ ├── App_Resources
│ │ ├── Android
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── app.gradle
│ │ │ ├── drawable-hdpi
│ │ │ │ └── icon.png
│ │ │ ├── drawable-ldpi
│ │ │ │ └── icon.png
│ │ │ ├── drawable-mdpi
│ │ │ │ └── icon.png
│ │ │ └── drawable-nodpi
│ │ │ │ └── splashscreen.9.png
│ │ └── iOS
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── icon-29.png
│ │ │ │ ├── icon-29@2x.png
│ │ │ │ ├── icon-29@3x.png
│ │ │ │ ├── icon-40.png
│ │ │ │ ├── icon-40@2x.png
│ │ │ │ ├── icon-40@3x.png
│ │ │ │ ├── icon-50.png
│ │ │ │ ├── icon-50@2x.png
│ │ │ │ ├── icon-57.png
│ │ │ │ ├── icon-57@2x.png
│ │ │ │ ├── icon-60@2x.png
│ │ │ │ ├── icon-60@3x.png
│ │ │ │ ├── icon-72.png
│ │ │ │ ├── icon-72@2x.png
│ │ │ │ ├── icon-76.png
│ │ │ │ ├── icon-76@2x.png
│ │ │ │ └── icon-83.5@2x.png
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.launchimage
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Default-568h@2x.png
│ │ │ │ ├── Default-667h@2x.png
│ │ │ │ ├── Default-736h@3x.png
│ │ │ │ ├── Default-Landscape.png
│ │ │ │ ├── Default-Landscape@2x.png
│ │ │ │ ├── Default-Landscape@3x.png
│ │ │ │ ├── Default-Portrait.png
│ │ │ │ ├── Default-Portrait@2x.png
│ │ │ │ ├── Default.png
│ │ │ │ └── Default@2x.png
│ │ │ ├── LaunchScreen.AspectFill.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-AspectFill.png
│ │ │ │ └── LaunchScreen-AspectFill@2x.png
│ │ │ └── LaunchScreen.Center.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchScreen-Center.png
│ │ │ │ └── LaunchScreen-Center@2x.png
│ │ │ ├── Info.plist
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── build.xcconfig
│ ├── app.css
│ ├── app.ts
│ ├── main-page.ts
│ ├── main-page.xml
│ ├── main-view-model.ts
│ ├── package.json
│ └── references.d.ts
├── clean_android.cmd
├── hooks
│ ├── before-prepare
│ │ └── nativescript-dev-typescript.js
│ └── before-watch
│ │ └── nativescript-dev-typescript.js
├── livesync.cmd
├── package.json
├── readd.cmd
├── rebuild.cmd
├── rebuild_and_deploy.cmd
├── references.d.ts
└── tsconfig.json
└── plugin
├── .npmignore
├── Device.android.js
├── Device.ios.js
├── README.md
├── apiclient
├── index.d.ts
├── index.js
└── index.ts
├── batch
├── index.d.ts
├── index.js
└── index.ts
├── bitmap-factory
├── BitmapFactory.android.js
├── BitmapFactory.commons.js
├── BitmapFactory.ios.js
├── index.d.ts
├── index.js
└── index.ts
├── crypto-js
├── LICENSE
├── README.md
├── aes.js
├── cipher-core.js
├── core.js
├── crypto-js.js
├── enc-base64.js
├── enc-hex.js
├── enc-latin1.js
├── enc-utf16.js
├── enc-utf8.js
├── evpkdf.js
├── format-hex.js
├── format-openssl.js
├── hmac-md5.js
├── hmac-ripemd160.js
├── hmac-sha1.js
├── hmac-sha224.js
├── hmac-sha256.js
├── hmac-sha3.js
├── hmac-sha384.js
├── hmac-sha512.js
├── hmac.js
├── index.js
├── lib-typedarrays.js
├── md5.js
├── mode-cfb.js
├── mode-ctr-gladman.js
├── mode-ctr.js
├── mode-ecb.js
├── mode-ofb.js
├── pad-ansix923.js
├── pad-iso10126.js
├── pad-iso97971.js
├── pad-nopadding.js
├── pad-pkcs7.js
├── pad-zeropadding.js
├── pbkdf2.js
├── rabbit-legacy.js
├── rabbit.js
├── rc4.js
├── ripemd160.js
├── sha1.js
├── sha224.js
├── sha256.js
├── sha3.js
├── sha384.js
├── sha512.js
├── tripledes.js
└── x64-core.js
├── email
├── LICENSE
├── README.md
├── index.android.js
├── index.d.ts
└── index.ios.js
├── enumerable
├── index.d.ts
├── index.js
└── index.ts
├── index.d.ts
├── index.js
├── index.ts
├── js-yaml
├── LICENSE
├── README.md
├── index.js
└── js-yaml
│ ├── common.js
│ ├── dumper.js
│ ├── exception.js
│ ├── loader.js
│ ├── mark.js
│ ├── schema.js
│ ├── schema
│ ├── core.js
│ ├── default_full.js
│ ├── default_safe.js
│ ├── failsafe.js
│ └── json.js
│ ├── type.js
│ └── type
│ ├── binary.js
│ ├── bool.js
│ ├── float.js
│ ├── int.js
│ ├── js
│ ├── function.js
│ ├── regexp.js
│ └── undefined.js
│ ├── map.js
│ ├── merge.js
│ ├── null.js
│ ├── omap.js
│ ├── pairs.js
│ ├── seq.js
│ ├── set.js
│ ├── str.js
│ └── timestamp.js
├── lazy
├── index.d.ts
├── index.js
└── index.ts
├── markdown
├── index.js
└── markdown.js
├── moment
├── CHANGELOG.md
├── LICENSE
├── README.md
├── ender.js
├── index.d.ts
├── index.js
└── locale
│ ├── af.js
│ ├── ar-ma.js
│ ├── ar-sa.js
│ ├── ar-tn.js
│ ├── ar.js
│ ├── az.js
│ ├── be.js
│ ├── bg.js
│ ├── bn.js
│ ├── bo.js
│ ├── br.js
│ ├── bs.js
│ ├── ca.js
│ ├── cs.js
│ ├── cv.js
│ ├── cy.js
│ ├── da.js
│ ├── de-at.js
│ ├── de.js
│ ├── dv.js
│ ├── el.js
│ ├── en-au.js
│ ├── en-ca.js
│ ├── en-gb.js
│ ├── en-ie.js
│ ├── en-nz.js
│ ├── eo.js
│ ├── es.js
│ ├── et.js
│ ├── eu.js
│ ├── fa.js
│ ├── fi.js
│ ├── fo.js
│ ├── fr-ca.js
│ ├── fr-ch.js
│ ├── fr.js
│ ├── fy.js
│ ├── gd.js
│ ├── gl.js
│ ├── he.js
│ ├── hi.js
│ ├── hr.js
│ ├── hu.js
│ ├── hy-am.js
│ ├── id.js
│ ├── is.js
│ ├── it.js
│ ├── ja.js
│ ├── jv.js
│ ├── ka.js
│ ├── kk.js
│ ├── km.js
│ ├── ko.js
│ ├── ky.js
│ ├── lb.js
│ ├── lo.js
│ ├── lt.js
│ ├── lv.js
│ ├── me.js
│ ├── mk.js
│ ├── ml.js
│ ├── mr.js
│ ├── ms-my.js
│ ├── ms.js
│ ├── my.js
│ ├── nb.js
│ ├── ne.js
│ ├── nl.js
│ ├── nn.js
│ ├── pa-in.js
│ ├── pl.js
│ ├── pt-br.js
│ ├── pt.js
│ ├── ro.js
│ ├── ru.js
│ ├── se.js
│ ├── si.js
│ ├── sk.js
│ ├── sl.js
│ ├── sq.js
│ ├── sr-cyrl.js
│ ├── sr.js
│ ├── ss.js
│ ├── sv.js
│ ├── sw.js
│ ├── ta.js
│ ├── te.js
│ ├── th.js
│ ├── tl-ph.js
│ ├── tlh.js
│ ├── tr.js
│ ├── tzl.js
│ ├── tzm-latn.js
│ ├── tzm.js
│ ├── uk.js
│ ├── uz.js
│ ├── vi.js
│ ├── x-pseudo.js
│ ├── zh-cn.js
│ └── zh-tw.js
├── package.json
├── platforms
└── ios
│ ├── Info.plist
│ ├── build.xcconfig
│ └── module.modulemap
├── references.d.ts
├── routed-values
├── index.d.ts
├── index.js
└── index.ts
├── sqlite
├── LICENSE
├── README.md
├── index.android.js
└── index.ios.js
├── stringformat
├── index.d.ts
├── index.js
└── index.ts
├── tsconfig.json
└── xmlobjects
├── index.d.ts
├── index.js
└── index.ts
/.gitignore:
--------------------------------------------------------------------------------
1 | /demo/node_modules
2 | /demo/platforms
3 | /demo/app/*.js
4 | /plugin/node_modules
5 | /plugin/*.map
6 | /plugin/enumerable/*.map
7 | /pushall.sh
8 | /plugin/stringformat/*.map
9 | /plugin/apiclient/*.map
10 | /plugin/batch/*.map
11 | /plugin/bitmap-factory/*.map
12 | /plugin/routed-values/*.map
13 | /demo/app/*.map
14 | /plugin/xmlobjects/*.map
15 | /demo/.vscode
16 | /plugin/lazy/*.map
17 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 Marcel Kloubert
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
12 |
13 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
28 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/app.gradle:
--------------------------------------------------------------------------------
1 | // Add your native dependencies here:
2 |
3 | // Uncomment to add recyclerview-v7 dependency
4 | //dependencies {
5 | // compile 'com.android.support:recyclerview-v7:+'
6 | //}
7 |
8 | android {
9 | defaultConfig {
10 | generatedDensities = []
11 | applicationId = "org.nativescript.NativeScriptToolboxDemo"
12 | }
13 | aaptOptions {
14 | additionalParameters "--no-version-vectors"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/Android/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/Android/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/Android/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/Android/drawable-nodpi/splashscreen.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/Android/drawable-nodpi/splashscreen.9.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-50@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-57@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-72@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-AspectFill.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-AspectFill@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchScreen-Center.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchScreen-Center@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "scale" : "3x"
16 | }
17 | ],
18 | "info" : {
19 | "version" : 1,
20 | "author" : "xcode"
21 | }
22 | }
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mkloubert/nativescript-toolbox/c1eba3ad6a446907f7a1d15136e8d4177276c161/demo/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | ${PRODUCT_NAME}
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIRequiresFullScreen
28 |
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/demo/app/App_Resources/iOS/build.xcconfig:
--------------------------------------------------------------------------------
1 | // You can add custom settings here
2 | // for example you can uncomment the following line to force distribution code signing
3 | // CODE_SIGN_IDENTITY = iPhone Distribution
4 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
5 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
6 |
--------------------------------------------------------------------------------
/demo/app/app.css:
--------------------------------------------------------------------------------
1 | .title {
2 | font-size: 30;
3 | horizontal-align: center;
4 | margin: 20;
5 | }
6 |
7 | button {
8 | font-size: 42;
9 | horizontal-align: center;
10 | }
11 |
12 | .message {
13 | font-size: 20;
14 | color: #284848;
15 | horizontal-align: center;
16 | margin: 0 20;
17 | text-align: center;
18 | }
19 |
--------------------------------------------------------------------------------
/demo/app/app.ts:
--------------------------------------------------------------------------------
1 | import Application = require("application");
2 | import Toolbox = require('nativescript-toolbox');
3 |
4 | var text = "Vessel | Captain\n-----------|-------------\nNCC-1701 | James T Kirk\nNCC-1701 A | James T Kirk\nNCC-1701 D | Picard";
5 |
6 | // var tree = Toolbox.markdownToJson(text, Toolbox.MarkdownDialect.Maruku);
7 | // console.log(JSON.stringify(tree, null, 2));
8 |
9 | var html1 = Toolbox.markdownToHtml(text, 'Maruku');
10 | var json1 = Toolbox.markdownToJson(text, Toolbox.MarkdownDialect.Maruku);
11 | var html2 = Toolbox.markdownToHtml(text, 'Gruber');
12 | var json2 = Toolbox.markdownToJson(text, Toolbox.MarkdownDialect.Gruber);
13 |
14 | console.log(html1);
15 | console.log(html2);
16 | console.log(json1);
17 | console.log(json2);
18 |
19 | // console.log("vibrate: " + Toolbox.vibrate(1000));
20 |
21 | Application.start({ moduleName: "main-page" });
22 |
--------------------------------------------------------------------------------
/demo/app/main-page.ts:
--------------------------------------------------------------------------------
1 | var createViewModel = require("./main-view-model").createViewModel;
2 |
3 | function onNavigatingTo(args) {
4 | var page = args.object;
5 | page.bindingContext = createViewModel();
6 | }
7 |
8 | exports.onNavigatingTo = onNavigatingTo;
--------------------------------------------------------------------------------
/demo/app/main-page.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/demo/app/main-view-model.ts:
--------------------------------------------------------------------------------
1 | import { Observable } from "data/observable";
2 | import * as Toolbox from 'nativescript-toolbox';
3 | import * as Moment from 'nativescript-toolbox/moment';
4 |
5 |
6 | function getMessage(counter) {
7 | if (counter <= 0) {
8 | return "Hoorraaay! You unlocked the NativeScript clicker achievement!";
9 | } else {
10 | return counter + " taps left";
11 | }
12 | }
13 |
14 | function createViewModel() {
15 | var viewModel: any = new Observable();
16 | viewModel.counter = 42;
17 | viewModel.message = getMessage(viewModel.counter);
18 |
19 | viewModel.onTap = function () {
20 | this.counter--;
21 | this.set("message", getMessage(this.counter));
22 |
23 | // isDebug seems to be broken, commenting it out
24 | // console.log('isDebug(): ' + Toolbox.isDebug());
25 | }
26 |
27 | viewModel.onOpenWifiTap = function () {
28 | console.log('openWifiSettings: ' + Toolbox.openWifiSettings());
29 | }
30 |
31 | return viewModel;
32 | }
33 |
34 | exports.createViewModel = createViewModel;
--------------------------------------------------------------------------------
/demo/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "tns-template-hello-world",
3 | "main": "app.js",
4 | "version": "2.1.0",
5 | "author": "Telerik ",
6 | "description": "Nativescript hello-world project template",
7 | "license": "Apache-2.0",
8 | "keywords": [
9 | "telerik",
10 | "mobile",
11 | "nativescript",
12 | "{N}",
13 | "tns",
14 | "appbuilder",
15 | "template"
16 | ],
17 | "repository": {
18 | "type": "git",
19 | "url": "git://github.com/NativeScript/template-hello-world.git"
20 | },
21 | "bugs": {
22 | "url": "https://github.com/NativeScript/template-hello-world/issues"
23 | },
24 | "homepage": "https://github.com/NativeScript/template-hello-world",
25 | "android": {
26 | "v8Flags": "--expose_gc"
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/demo/app/references.d.ts:
--------------------------------------------------------------------------------
1 | /// Enable smart suggestions and completions in Visual Studio Code JavaScript projects.
2 |
--------------------------------------------------------------------------------
/demo/clean_android.cmd:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | CLS
3 |
4 | ECHO Cleanup android ...
5 | CD platforms\android
6 | CALL gradlew.bat clean
7 |
8 | ECHO Remove android ...
9 | CD ..\..
10 | CALL tns platform remove android
11 |
12 | ECHO Re-Add android ...
13 | CALL tns platform add android
14 |
15 | ECHO Cleanup android ...
16 | CD platforms\android
17 | CALL gradlew.bat clean
18 |
19 | CD ..\..
20 |
--------------------------------------------------------------------------------
/demo/hooks/before-prepare/nativescript-dev-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-typescript/lib/before-prepare.js");
2 |
--------------------------------------------------------------------------------
/demo/hooks/before-watch/nativescript-dev-typescript.js:
--------------------------------------------------------------------------------
1 | module.exports = require("nativescript-dev-typescript/lib/watch.js");
2 |
--------------------------------------------------------------------------------
/demo/livesync.cmd:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | CLS
3 |
4 | ECHO Readd plugin...
5 | CALL readd.cmd
6 |
7 | tns livesync --watch
8 |
--------------------------------------------------------------------------------
/demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "NativeScript Application",
3 | "license": "SEE LICENSE IN ",
4 | "readme": "NativeScript Application",
5 | "repository": "",
6 | "nativescript": {
7 | "id": "org.nativescript.NativeScriptToolboxDemo",
8 | "tns-android": {
9 | "version": "3.0.0"
10 | },
11 | "tns-ios": {
12 | "version": "3.0.0"
13 | }
14 | },
15 | "dependencies": {
16 | "nativescript-toolbox": "file:..\\plugin",
17 | "tns-core-modules": "^3.0.0 || ^3.0.0-rc.1"
18 | },
19 | "devDependencies": {
20 | "babel-traverse": "6.10.4",
21 | "babel-types": "6.11.1",
22 | "babylon": "6.8.3",
23 | "lazy": "1.0.11",
24 | "nativescript-dev-typescript": "^0.3.2",
25 | "typescript": "^2.2.2"
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/demo/readd.cmd:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | CLS
3 |
4 | ECHO Remove old plugin...
5 | CALL tns plugin remove nativescript-toolbox
6 |
7 | CD ..
8 | CD plugin
9 | ECHO Rebuild plugin...
10 | CALL tsc --declaration
11 | ECHO Done
12 |
13 | CD ..
14 | CD demo
15 |
16 | ECHO Readd plugin...
17 | CALL tns plugin add ..\plugin
18 |
--------------------------------------------------------------------------------
/demo/rebuild.cmd:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | CLS
3 |
4 | CALL clean_android.cmd
5 | CALL readd.cmd
6 |
7 | ECHO Rebuilding app...
8 | CALL tns prepare android
9 | CALL tns build android
10 |
--------------------------------------------------------------------------------
/demo/rebuild_and_deploy.cmd:
--------------------------------------------------------------------------------
1 | @ECHO OFF
2 | CLS
3 |
4 | CALL rebuild.cmd
5 |
6 | ECHO Deploying app...
7 | CALL tns deploy android
8 |
--------------------------------------------------------------------------------
/demo/references.d.ts:
--------------------------------------------------------------------------------
1 | /// Needed for autocompletion and compilation.
--------------------------------------------------------------------------------
/demo/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es5",
5 | "sourceMap": true,
6 | "experimentalDecorators": true,
7 | "emitDecoratorMetadata": true,
8 | "noEmitHelpers": true,
9 | "noEmitOnError": true,
10 | "lib": [
11 | "es6",
12 | "dom"
13 | ],
14 | "baseUrl": ".",
15 | "paths": {
16 | "*": [
17 | "./node_modules/tns-core-modules/*",
18 | "./node_modules/*"
19 | ]
20 | }
21 | },
22 | "exclude": [
23 | "node_modules",
24 | "platforms"
25 | ]
26 | }
--------------------------------------------------------------------------------
/plugin/.npmignore:
--------------------------------------------------------------------------------
1 | apiclient/*.map
2 | apiclient/index.ts
3 | batch/*.map
4 | batch/index.ts
5 | bitmap-factory/*.map
6 | bitmap-factory/index.ts
7 | enumerable/*.map
8 | enumerable/index.ts
9 | lazy/*.map
10 | lazy/index.ts
11 | routed-values/*.map
12 | routed-values/index.ts
13 | stringformat/*.map
14 | stringformat/index.ts
15 | xmlobjects/*.map
16 | xmlobjects/index.ts
17 | *.map
18 | index.ts
19 | references.d.ts
20 | tsconfig.json
--------------------------------------------------------------------------------
/plugin/crypto-js/LICENSE:
--------------------------------------------------------------------------------
1 | # License
2 |
3 | [The MIT License (MIT)](http://opensource.org/licenses/MIT)
4 |
5 | Copyright (c) 2009-2013 Jeff Mott
6 | Copyright (c) 2013-2016 Evan Vosberg
7 |
8 | Permission is hereby granted, free of charge, to any person obtaining a copy
9 | of this software and associated documentation files (the "Software"), to deal
10 | in the Software without restriction, including without limitation the rights
11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 | copies of the Software, and to permit persons to whom the Software is
13 | furnished to do so, subject to the following conditions:
14 |
15 | The above copyright notice and this permission notice shall be included in
16 | all copies or substantial portions of the Software.
17 |
18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 | THE SOFTWARE.
25 |
--------------------------------------------------------------------------------
/plugin/crypto-js/enc-hex.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.enc.Hex;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/enc-latin1.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.enc.Latin1;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/enc-utf8.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.enc.Utf8;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/format-hex.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | (function (undefined) {
17 | // Shortcuts
18 | var C = CryptoJS;
19 | var C_lib = C.lib;
20 | var CipherParams = C_lib.CipherParams;
21 | var C_enc = C.enc;
22 | var Hex = C_enc.Hex;
23 | var C_format = C.format;
24 |
25 | var HexFormatter = C_format.Hex = {
26 | /**
27 | * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
28 | *
29 | * @param {CipherParams} cipherParams The cipher params object.
30 | *
31 | * @return {string} The hexadecimally encoded string.
32 | *
33 | * @static
34 | *
35 | * @example
36 | *
37 | * var hexString = CryptoJS.format.Hex.stringify(cipherParams);
38 | */
39 | stringify: function (cipherParams) {
40 | return cipherParams.ciphertext.toString(Hex);
41 | },
42 |
43 | /**
44 | * Converts a hexadecimally encoded ciphertext string to a cipher params object.
45 | *
46 | * @param {string} input The hexadecimally encoded string.
47 | *
48 | * @return {CipherParams} The cipher params object.
49 | *
50 | * @static
51 | *
52 | * @example
53 | *
54 | * var cipherParams = CryptoJS.format.Hex.parse(hexString);
55 | */
56 | parse: function (input) {
57 | var ciphertext = Hex.parse(input);
58 | return CipherParams.create({ ciphertext: ciphertext });
59 | }
60 | };
61 | }());
62 |
63 |
64 | return CryptoJS.format.Hex;
65 |
66 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/format-openssl.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.format.OpenSSL;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/hmac-md5.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./md5"), require("./hmac"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./md5", "./hmac"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.HmacMD5;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/hmac-ripemd160.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./ripemd160"), require("./hmac"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./ripemd160", "./hmac"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.HmacRIPEMD160;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/hmac-sha1.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./sha1"), require("./hmac"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./sha1", "./hmac"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.HmacSHA1;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/hmac-sha224.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./sha256"), require("./sha224"), require("./hmac"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./sha256", "./sha224", "./hmac"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.HmacSHA224;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/hmac-sha256.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./sha256"), require("./hmac"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./sha256", "./hmac"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.HmacSHA256;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/hmac-sha3.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./x64-core"), require("./sha3"), require("./hmac"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./x64-core", "./sha3", "./hmac"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.HmacSHA3;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/hmac-sha384.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./x64-core"), require("./sha512"), require("./sha384"), require("./hmac"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./x64-core", "./sha512", "./sha384", "./hmac"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.HmacSHA384;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/hmac-sha512.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./x64-core"), require("./sha512"), require("./hmac"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./x64-core", "./sha512", "./hmac"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.HmacSHA512;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/index.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./x64-core"), require("./lib-typedarrays"), require("./enc-utf16"), require("./enc-base64"), require("./md5"), require("./sha1"), require("./sha256"), require("./sha224"), require("./sha512"), require("./sha384"), require("./sha3"), require("./ripemd160"), require("./hmac"), require("./pbkdf2"), require("./evpkdf"), require("./cipher-core"), require("./mode-cfb"), require("./mode-ctr"), require("./mode-ctr-gladman"), require("./mode-ofb"), require("./mode-ecb"), require("./pad-ansix923"), require("./pad-iso10126"), require("./pad-iso97971"), require("./pad-zeropadding"), require("./pad-nopadding"), require("./format-hex"), require("./aes"), require("./tripledes"), require("./rc4"), require("./rabbit"), require("./rabbit-legacy"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./x64-core", "./lib-typedarrays", "./enc-utf16", "./enc-base64", "./md5", "./sha1", "./sha256", "./sha224", "./sha512", "./sha384", "./sha3", "./ripemd160", "./hmac", "./pbkdf2", "./evpkdf", "./cipher-core", "./mode-cfb", "./mode-ctr", "./mode-ctr-gladman", "./mode-ofb", "./mode-ecb", "./pad-ansix923", "./pad-iso10126", "./pad-iso97971", "./pad-zeropadding", "./pad-nopadding", "./format-hex", "./aes", "./tripledes", "./rc4", "./rabbit", "./rabbit-legacy"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | root.CryptoJS = factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/lib-typedarrays.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | (function () {
17 | // Check if typed arrays are supported
18 | if (typeof ArrayBuffer != 'function') {
19 | return;
20 | }
21 |
22 | // Shortcuts
23 | var C = CryptoJS;
24 | var C_lib = C.lib;
25 | var WordArray = C_lib.WordArray;
26 |
27 | // Reference original init
28 | var superInit = WordArray.init;
29 |
30 | // Augment WordArray.init to handle typed arrays
31 | var subInit = WordArray.init = function (typedArray) {
32 | // Convert buffers to uint8
33 | if (typedArray instanceof ArrayBuffer) {
34 | typedArray = new Uint8Array(typedArray);
35 | }
36 |
37 | // Convert other array views to uint8
38 | if (
39 | typedArray instanceof Int8Array ||
40 | (typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray) ||
41 | typedArray instanceof Int16Array ||
42 | typedArray instanceof Uint16Array ||
43 | typedArray instanceof Int32Array ||
44 | typedArray instanceof Uint32Array ||
45 | typedArray instanceof Float32Array ||
46 | typedArray instanceof Float64Array
47 | ) {
48 | typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
49 | }
50 |
51 | // Handle Uint8Array
52 | if (typedArray instanceof Uint8Array) {
53 | // Shortcut
54 | var typedArrayByteLength = typedArray.byteLength;
55 |
56 | // Extract bytes
57 | var words = [];
58 | for (var i = 0; i < typedArrayByteLength; i++) {
59 | words[i >>> 2] |= typedArray[i] << (24 - (i % 4) * 8);
60 | }
61 |
62 | // Initialize this word array
63 | superInit.call(this, words, typedArrayByteLength);
64 | } else {
65 | // Else call normal init
66 | superInit.apply(this, arguments);
67 | }
68 | };
69 |
70 | subInit.prototype = WordArray;
71 | }());
72 |
73 |
74 | return CryptoJS.lib.WordArray;
75 |
76 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/mode-cfb.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | /**
17 | * Cipher Feedback block mode.
18 | */
19 | CryptoJS.mode.CFB = (function () {
20 | var CFB = CryptoJS.lib.BlockCipherMode.extend();
21 |
22 | CFB.Encryptor = CFB.extend({
23 | processBlock: function (words, offset) {
24 | // Shortcuts
25 | var cipher = this._cipher;
26 | var blockSize = cipher.blockSize;
27 |
28 | generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);
29 |
30 | // Remember this block to use with next block
31 | this._prevBlock = words.slice(offset, offset + blockSize);
32 | }
33 | });
34 |
35 | CFB.Decryptor = CFB.extend({
36 | processBlock: function (words, offset) {
37 | // Shortcuts
38 | var cipher = this._cipher;
39 | var blockSize = cipher.blockSize;
40 |
41 | // Remember this block to use with next block
42 | var thisBlock = words.slice(offset, offset + blockSize);
43 |
44 | generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);
45 |
46 | // This block becomes the previous block
47 | this._prevBlock = thisBlock;
48 | }
49 | });
50 |
51 | function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) {
52 | // Shortcut
53 | var iv = this._iv;
54 |
55 | // Generate keystream
56 | if (iv) {
57 | var keystream = iv.slice(0);
58 |
59 | // Remove IV for subsequent blocks
60 | this._iv = undefined;
61 | } else {
62 | var keystream = this._prevBlock;
63 | }
64 | cipher.encryptBlock(keystream, 0);
65 |
66 | // Encrypt
67 | for (var i = 0; i < blockSize; i++) {
68 | words[offset + i] ^= keystream[i];
69 | }
70 | }
71 |
72 | return CFB;
73 | }());
74 |
75 |
76 | return CryptoJS.mode.CFB;
77 |
78 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/mode-ctr-gladman.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | /** @preserve
17 | * Counter block mode compatible with Dr Brian Gladman fileenc.c
18 | * derived from CryptoJS.mode.CTR
19 | * Jan Hruby jhruby.web@gmail.com
20 | */
21 | CryptoJS.mode.CTRGladman = (function () {
22 | var CTRGladman = CryptoJS.lib.BlockCipherMode.extend();
23 |
24 | function incWord(word)
25 | {
26 | if (((word >> 24) & 0xff) === 0xff) { //overflow
27 | var b1 = (word >> 16)&0xff;
28 | var b2 = (word >> 8)&0xff;
29 | var b3 = word & 0xff;
30 |
31 | if (b1 === 0xff) // overflow b1
32 | {
33 | b1 = 0;
34 | if (b2 === 0xff)
35 | {
36 | b2 = 0;
37 | if (b3 === 0xff)
38 | {
39 | b3 = 0;
40 | }
41 | else
42 | {
43 | ++b3;
44 | }
45 | }
46 | else
47 | {
48 | ++b2;
49 | }
50 | }
51 | else
52 | {
53 | ++b1;
54 | }
55 |
56 | word = 0;
57 | word += (b1 << 16);
58 | word += (b2 << 8);
59 | word += b3;
60 | }
61 | else
62 | {
63 | word += (0x01 << 24);
64 | }
65 | return word;
66 | }
67 |
68 | function incCounter(counter)
69 | {
70 | if ((counter[0] = incWord(counter[0])) === 0)
71 | {
72 | // encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8
73 | counter[1] = incWord(counter[1]);
74 | }
75 | return counter;
76 | }
77 |
78 | var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({
79 | processBlock: function (words, offset) {
80 | // Shortcuts
81 | var cipher = this._cipher
82 | var blockSize = cipher.blockSize;
83 | var iv = this._iv;
84 | var counter = this._counter;
85 |
86 | // Generate keystream
87 | if (iv) {
88 | counter = this._counter = iv.slice(0);
89 |
90 | // Remove IV for subsequent blocks
91 | this._iv = undefined;
92 | }
93 |
94 | incCounter(counter);
95 |
96 | var keystream = counter.slice(0);
97 | cipher.encryptBlock(keystream, 0);
98 |
99 | // Encrypt
100 | for (var i = 0; i < blockSize; i++) {
101 | words[offset + i] ^= keystream[i];
102 | }
103 | }
104 | });
105 |
106 | CTRGladman.Decryptor = Encryptor;
107 |
108 | return CTRGladman;
109 | }());
110 |
111 |
112 |
113 |
114 | return CryptoJS.mode.CTRGladman;
115 |
116 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/mode-ctr.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | /**
17 | * Counter block mode.
18 | */
19 | CryptoJS.mode.CTR = (function () {
20 | var CTR = CryptoJS.lib.BlockCipherMode.extend();
21 |
22 | var Encryptor = CTR.Encryptor = CTR.extend({
23 | processBlock: function (words, offset) {
24 | // Shortcuts
25 | var cipher = this._cipher
26 | var blockSize = cipher.blockSize;
27 | var iv = this._iv;
28 | var counter = this._counter;
29 |
30 | // Generate keystream
31 | if (iv) {
32 | counter = this._counter = iv.slice(0);
33 |
34 | // Remove IV for subsequent blocks
35 | this._iv = undefined;
36 | }
37 | var keystream = counter.slice(0);
38 | cipher.encryptBlock(keystream, 0);
39 |
40 | // Increment counter
41 | counter[blockSize - 1] = (counter[blockSize - 1] + 1) | 0
42 |
43 | // Encrypt
44 | for (var i = 0; i < blockSize; i++) {
45 | words[offset + i] ^= keystream[i];
46 | }
47 | }
48 | });
49 |
50 | CTR.Decryptor = Encryptor;
51 |
52 | return CTR;
53 | }());
54 |
55 |
56 | return CryptoJS.mode.CTR;
57 |
58 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/mode-ecb.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | /**
17 | * Electronic Codebook block mode.
18 | */
19 | CryptoJS.mode.ECB = (function () {
20 | var ECB = CryptoJS.lib.BlockCipherMode.extend();
21 |
22 | ECB.Encryptor = ECB.extend({
23 | processBlock: function (words, offset) {
24 | this._cipher.encryptBlock(words, offset);
25 | }
26 | });
27 |
28 | ECB.Decryptor = ECB.extend({
29 | processBlock: function (words, offset) {
30 | this._cipher.decryptBlock(words, offset);
31 | }
32 | });
33 |
34 | return ECB;
35 | }());
36 |
37 |
38 | return CryptoJS.mode.ECB;
39 |
40 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/mode-ofb.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | /**
17 | * Output Feedback block mode.
18 | */
19 | CryptoJS.mode.OFB = (function () {
20 | var OFB = CryptoJS.lib.BlockCipherMode.extend();
21 |
22 | var Encryptor = OFB.Encryptor = OFB.extend({
23 | processBlock: function (words, offset) {
24 | // Shortcuts
25 | var cipher = this._cipher
26 | var blockSize = cipher.blockSize;
27 | var iv = this._iv;
28 | var keystream = this._keystream;
29 |
30 | // Generate keystream
31 | if (iv) {
32 | keystream = this._keystream = iv.slice(0);
33 |
34 | // Remove IV for subsequent blocks
35 | this._iv = undefined;
36 | }
37 | cipher.encryptBlock(keystream, 0);
38 |
39 | // Encrypt
40 | for (var i = 0; i < blockSize; i++) {
41 | words[offset + i] ^= keystream[i];
42 | }
43 | }
44 | });
45 |
46 | OFB.Decryptor = Encryptor;
47 |
48 | return OFB;
49 | }());
50 |
51 |
52 | return CryptoJS.mode.OFB;
53 |
54 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/pad-ansix923.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | /**
17 | * ANSI X.923 padding strategy.
18 | */
19 | CryptoJS.pad.AnsiX923 = {
20 | pad: function (data, blockSize) {
21 | // Shortcuts
22 | var dataSigBytes = data.sigBytes;
23 | var blockSizeBytes = blockSize * 4;
24 |
25 | // Count padding bytes
26 | var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes;
27 |
28 | // Compute last byte position
29 | var lastBytePos = dataSigBytes + nPaddingBytes - 1;
30 |
31 | // Pad
32 | data.clamp();
33 | data.words[lastBytePos >>> 2] |= nPaddingBytes << (24 - (lastBytePos % 4) * 8);
34 | data.sigBytes += nPaddingBytes;
35 | },
36 |
37 | unpad: function (data) {
38 | // Get number of padding bytes from last byte
39 | var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
40 |
41 | // Remove padding
42 | data.sigBytes -= nPaddingBytes;
43 | }
44 | };
45 |
46 |
47 | return CryptoJS.pad.Ansix923;
48 |
49 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/pad-iso10126.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | /**
17 | * ISO 10126 padding strategy.
18 | */
19 | CryptoJS.pad.Iso10126 = {
20 | pad: function (data, blockSize) {
21 | // Shortcut
22 | var blockSizeBytes = blockSize * 4;
23 |
24 | // Count padding bytes
25 | var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
26 |
27 | // Pad
28 | data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).
29 | concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));
30 | },
31 |
32 | unpad: function (data) {
33 | // Get number of padding bytes from last byte
34 | var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
35 |
36 | // Remove padding
37 | data.sigBytes -= nPaddingBytes;
38 | }
39 | };
40 |
41 |
42 | return CryptoJS.pad.Iso10126;
43 |
44 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/pad-iso97971.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | /**
17 | * ISO/IEC 9797-1 Padding Method 2.
18 | */
19 | CryptoJS.pad.Iso97971 = {
20 | pad: function (data, blockSize) {
21 | // Add 0x80 byte
22 | data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1));
23 |
24 | // Zero pad the rest
25 | CryptoJS.pad.ZeroPadding.pad(data, blockSize);
26 | },
27 |
28 | unpad: function (data) {
29 | // Remove zero padding
30 | CryptoJS.pad.ZeroPadding.unpad(data);
31 |
32 | // Remove one more byte -- the 0x80 byte
33 | data.sigBytes--;
34 | }
35 | };
36 |
37 |
38 | return CryptoJS.pad.Iso97971;
39 |
40 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/pad-nopadding.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | /**
17 | * A noop padding strategy.
18 | */
19 | CryptoJS.pad.NoPadding = {
20 | pad: function () {
21 | },
22 |
23 | unpad: function () {
24 | }
25 | };
26 |
27 |
28 | return CryptoJS.pad.NoPadding;
29 |
30 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/pad-pkcs7.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | return CryptoJS.pad.Pkcs7;
17 |
18 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/pad-zeropadding.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./cipher-core"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./cipher-core"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | /**
17 | * Zero padding strategy.
18 | */
19 | CryptoJS.pad.ZeroPadding = {
20 | pad: function (data, blockSize) {
21 | // Shortcut
22 | var blockSizeBytes = blockSize * 4;
23 |
24 | // Pad
25 | data.clamp();
26 | data.sigBytes += blockSizeBytes - ((data.sigBytes % blockSizeBytes) || blockSizeBytes);
27 | },
28 |
29 | unpad: function (data) {
30 | // Shortcut
31 | var dataWords = data.words;
32 |
33 | // Unpad
34 | var i = data.sigBytes - 1;
35 | while (!((dataWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff)) {
36 | i--;
37 | }
38 | data.sigBytes = i + 1;
39 | }
40 | };
41 |
42 |
43 | return CryptoJS.pad.ZeroPadding;
44 |
45 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/sha224.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./sha256"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./sha256"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | (function () {
17 | // Shortcuts
18 | var C = CryptoJS;
19 | var C_lib = C.lib;
20 | var WordArray = C_lib.WordArray;
21 | var C_algo = C.algo;
22 | var SHA256 = C_algo.SHA256;
23 |
24 | /**
25 | * SHA-224 hash algorithm.
26 | */
27 | var SHA224 = C_algo.SHA224 = SHA256.extend({
28 | _doReset: function () {
29 | this._hash = new WordArray.init([
30 | 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
31 | 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4
32 | ]);
33 | },
34 |
35 | _doFinalize: function () {
36 | var hash = SHA256._doFinalize.call(this);
37 |
38 | hash.sigBytes -= 4;
39 |
40 | return hash;
41 | }
42 | });
43 |
44 | /**
45 | * Shortcut function to the hasher's object interface.
46 | *
47 | * @param {WordArray|string} message The message to hash.
48 | *
49 | * @return {WordArray} The hash.
50 | *
51 | * @static
52 | *
53 | * @example
54 | *
55 | * var hash = CryptoJS.SHA224('message');
56 | * var hash = CryptoJS.SHA224(wordArray);
57 | */
58 | C.SHA224 = SHA256._createHelper(SHA224);
59 |
60 | /**
61 | * Shortcut function to the HMAC's object interface.
62 | *
63 | * @param {WordArray|string} message The message to hash.
64 | * @param {WordArray|string} key The secret key.
65 | *
66 | * @return {WordArray} The HMAC.
67 | *
68 | * @static
69 | *
70 | * @example
71 | *
72 | * var hmac = CryptoJS.HmacSHA224(message, key);
73 | */
74 | C.HmacSHA224 = SHA256._createHmacHelper(SHA224);
75 | }());
76 |
77 |
78 | return CryptoJS.SHA224;
79 |
80 | }));
--------------------------------------------------------------------------------
/plugin/crypto-js/sha384.js:
--------------------------------------------------------------------------------
1 | ;(function (root, factory, undef) {
2 | if (typeof exports === "object") {
3 | // CommonJS
4 | module.exports = exports = factory(require("./core"), require("./x64-core"), require("./sha512"));
5 | }
6 | else if (typeof define === "function" && define.amd) {
7 | // AMD
8 | define(["./core", "./x64-core", "./sha512"], factory);
9 | }
10 | else {
11 | // Global (browser)
12 | factory(root.CryptoJS);
13 | }
14 | }(this, function (CryptoJS) {
15 |
16 | (function () {
17 | // Shortcuts
18 | var C = CryptoJS;
19 | var C_x64 = C.x64;
20 | var X64Word = C_x64.Word;
21 | var X64WordArray = C_x64.WordArray;
22 | var C_algo = C.algo;
23 | var SHA512 = C_algo.SHA512;
24 |
25 | /**
26 | * SHA-384 hash algorithm.
27 | */
28 | var SHA384 = C_algo.SHA384 = SHA512.extend({
29 | _doReset: function () {
30 | this._hash = new X64WordArray.init([
31 | new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507),
32 | new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939),
33 | new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511),
34 | new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4)
35 | ]);
36 | },
37 |
38 | _doFinalize: function () {
39 | var hash = SHA512._doFinalize.call(this);
40 |
41 | hash.sigBytes -= 16;
42 |
43 | return hash;
44 | }
45 | });
46 |
47 | /**
48 | * Shortcut function to the hasher's object interface.
49 | *
50 | * @param {WordArray|string} message The message to hash.
51 | *
52 | * @return {WordArray} The hash.
53 | *
54 | * @static
55 | *
56 | * @example
57 | *
58 | * var hash = CryptoJS.SHA384('message');
59 | * var hash = CryptoJS.SHA384(wordArray);
60 | */
61 | C.SHA384 = SHA512._createHelper(SHA384);
62 |
63 | /**
64 | * Shortcut function to the HMAC's object interface.
65 | *
66 | * @param {WordArray|string} message The message to hash.
67 | * @param {WordArray|string} key The secret key.
68 | *
69 | * @return {WordArray} The HMAC.
70 | *
71 | * @static
72 | *
73 | * @example
74 | *
75 | * var hmac = CryptoJS.HmacSHA384(message, key);
76 | */
77 | C.HmacSHA384 = SHA512._createHmacHelper(SHA384);
78 | }());
79 |
80 |
81 | return CryptoJS.SHA384;
82 |
83 | }));
--------------------------------------------------------------------------------
/plugin/email/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
--------------------------------------------------------------------------------
/plugin/email/README.md:
--------------------------------------------------------------------------------
1 | # NativeScript Email
2 |
3 | An Email plugin for use in your NativeScript app.
4 | You can use it to compose emails, edit the draft manually, and send it.
5 |
6 | ## Installation
7 | Run the following command from the root of your project:
8 |
9 | ```
10 | tns plugin add nativescript-email
11 | ```
12 |
13 | ## Usage
14 |
15 | To use this plugin you must first require() it:
16 |
17 | ```js
18 | var email = require("nativescript-email");
19 | ```
20 |
21 | ### available
22 |
23 | ```js
24 | email.available().then(function(avail) {
25 | console.log("Email available? " + avail);
26 | })
27 | ```
28 |
29 | ### compose
30 | ```js
31 |
32 | // let's first create a File object using the tns file module
33 | var fs = require("file-system");
34 | var appPath = fs.knownFolders.currentApp().path;
35 | var logoPath = appPath + "/res/telerik-logo.png";
36 |
37 | email.compose({
38 | subject: "Yo",
39 | body: "Hello dude :)",
40 | to: ['eddyverbruggen@gmail.com', 'to@person2.com'],
41 | cc: ['ccperson@somewhere.com'],
42 | bcc: ['eddy@combidesk.com', 'eddy@x-services.nl'],
43 | attachments: [
44 | {
45 | fileName: 'arrow1.png',
46 | path: 'base64://iVBORw0KGgoAAAANSUhEUgAAABYAAAAoCAYAAAD6xArmAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAHGlET1QAAAACAAAAAAAAABQAAAAoAAAAFAAAABQAAAB5EsHiAAAAAEVJREFUSA1iYKAimDhxYjwIU9FIBgaQgZMmTfoPwlOmTJGniuHIhlLNxaOGwiNqNEypkwlGk9RokoIUfaM5ijo5Clh9AAAAAP//ksWFvgAAAEFJREFUY5g4cWL8pEmT/oMwiM1ATTBqONbQHA2W0WDBGgJYBUdTy2iwYA0BrILDI7VMmTJFHqv3yBUEBQsIg/QDAJNpcv6v+k1ZAAAAAElFTkSuQmCC',
47 | mimeType: 'image/png'
48 | },
49 | {
50 | fileName: 'telerik-logo.png',
51 | path: logoPath,
52 | mimeType: 'image/png'
53 | }],
54 | appPickerTitle: 'Compose with..' // for Android, default: 'Open with..'
55 | }).then(function() {
56 | console.log("Email composer closed");
57 | });
58 | ```
59 |
60 | Full attachment support has been added to 1.3.0 per the example above.
61 |
62 | ## Known issues
63 | On iOS you can't use the simulator to test the plugin because of an iOS limitation.
64 | To prevent a crash this plugin returns `false` when `available` is invoked on the iOS sim.
--------------------------------------------------------------------------------
/plugin/email/index.d.ts:
--------------------------------------------------------------------------------
1 | declare module "nativescript-email" {
2 |
3 | interface Attachment {
4 | /**
5 | * The name used for the attachment.
6 | * Example:
7 | *
8 | * fileName: 'Cute-Kitten.png'
9 | */
10 | fileName: string;
11 |
12 | /**
13 | * There are various ways to use the path param:
14 | *
15 | * - base64 encoded: 'base64://iVBORw..XYZ'
16 | * - local app folder 'file://..
17 | * - anywhere on the device: 'file:///..'
18 | * - or '/some/path/to/file.png'
19 | */
20 | path: string;
21 |
22 | /**
23 | * Used to help the iOS figure out how to send the file (not used on Android).
24 | * Example:
25 | *
26 | * mimeType: 'image/png'
27 | */
28 | mimeType: string;
29 | }
30 |
31 | /**
32 | * The options object passed into the compose function.
33 | */
34 | export interface ComposeOptions {
35 | /**
36 | * The subject of your email.
37 | */
38 | subject?: string;
39 |
40 | /**
41 | * The plugin will automatically handle plain and html email content.
42 | */
43 | body?: string;
44 |
45 | /**
46 | * A string array of email addresses.
47 | * Known issue: on Android only the first item in the array is added.
48 | */
49 | to?: string[];
50 |
51 | /**
52 | * A string array of email addresses.
53 | * Known issue: on Android only the first item in the array is added.
54 | */
55 | cc?: string[];
56 |
57 | /**
58 | * A string array of email addresses.
59 | * Known issue: on Android only the first item in the array is added.
60 | */
61 | bcc?: string[];
62 |
63 | /**
64 | * An optional Array of attachments.
65 | */
66 | attachments?: Array;
67 |
68 | /**
69 | * On Android the user may have more than one app able to send email with.
70 | * That will trigger a picker which has a title. You can change the default title here.
71 | */
72 | appPickerTitle?: string;
73 | }
74 |
75 | /**
76 | * No email client may be available, so test first.
77 | */
78 | export function available(): Promise;
79 | /**
80 | * On iOS the returned boolean indicates whether or not the email was sent by the user.
81 | * On Android it's always true, unfortunately.
82 | */
83 | export function compose(options: ComposeOptions): Promise;
84 | }
--------------------------------------------------------------------------------
/plugin/js-yaml/LICENSE:
--------------------------------------------------------------------------------
1 | (The MIT License)
2 |
3 | Copyright (C) 2011-2015 by Vitaly Puzrin
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/plugin/js-yaml/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 |
4 | var loader = require('./js-yaml/loader');
5 | var dumper = require('./js-yaml/dumper');
6 |
7 |
8 | function deprecated(name) {
9 | return function () {
10 | throw new Error('Function ' + name + ' is deprecated and cannot be used.');
11 | };
12 | }
13 |
14 |
15 | module.exports.Type = require('./js-yaml/type');
16 | module.exports.Schema = require('./js-yaml/schema');
17 | module.exports.FAILSAFE_SCHEMA = require('./js-yaml/schema/failsafe');
18 | module.exports.JSON_SCHEMA = require('./js-yaml/schema/json');
19 | module.exports.CORE_SCHEMA = require('./js-yaml/schema/core');
20 | module.exports.DEFAULT_SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
21 | module.exports.DEFAULT_FULL_SCHEMA = require('./js-yaml/schema/default_full');
22 | module.exports.load = loader.load;
23 | module.exports.loadAll = loader.loadAll;
24 | module.exports.safeLoad = loader.safeLoad;
25 | module.exports.safeLoadAll = loader.safeLoadAll;
26 | module.exports.dump = dumper.dump;
27 | module.exports.safeDump = dumper.safeDump;
28 | module.exports.YAMLException = require('./js-yaml/exception');
29 |
30 | // Deprecated schema names from JS-YAML 2.0.x
31 | module.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/failsafe');
32 | module.exports.SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
33 | module.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default_full');
34 |
35 | // Deprecated functions from JS-YAML 1.x.x
36 | module.exports.scan = deprecated('scan');
37 | module.exports.parse = deprecated('parse');
38 | module.exports.compose = deprecated('compose');
39 | module.exports.addConstructor = deprecated('addConstructor');
40 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/common.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 |
4 | function isNothing(subject) {
5 | return (typeof subject === 'undefined') || (subject === null);
6 | }
7 |
8 |
9 | function isObject(subject) {
10 | return (typeof subject === 'object') && (subject !== null);
11 | }
12 |
13 |
14 | function toArray(sequence) {
15 | if (Array.isArray(sequence)) return sequence;
16 | else if (isNothing(sequence)) return [];
17 |
18 | return [ sequence ];
19 | }
20 |
21 |
22 | function extend(target, source) {
23 | var index, length, key, sourceKeys;
24 |
25 | if (source) {
26 | sourceKeys = Object.keys(source);
27 |
28 | for (index = 0, length = sourceKeys.length; index < length; index += 1) {
29 | key = sourceKeys[index];
30 | target[key] = source[key];
31 | }
32 | }
33 |
34 | return target;
35 | }
36 |
37 |
38 | function repeat(string, count) {
39 | var result = '', cycle;
40 |
41 | for (cycle = 0; cycle < count; cycle += 1) {
42 | result += string;
43 | }
44 |
45 | return result;
46 | }
47 |
48 |
49 | function isNegativeZero(number) {
50 | return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);
51 | }
52 |
53 |
54 | module.exports.isNothing = isNothing;
55 | module.exports.isObject = isObject;
56 | module.exports.toArray = toArray;
57 | module.exports.repeat = repeat;
58 | module.exports.isNegativeZero = isNegativeZero;
59 | module.exports.extend = extend;
60 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/exception.js:
--------------------------------------------------------------------------------
1 | // YAML error class. http://stackoverflow.com/questions/8458984
2 | //
3 | 'use strict';
4 |
5 | function YAMLException(reason, mark) {
6 | // Super constructor
7 | Error.call(this);
8 |
9 | // Include stack trace in error object
10 | if (Error.captureStackTrace) {
11 | // Chrome and NodeJS
12 | Error.captureStackTrace(this, this.constructor);
13 | } else {
14 | // FF, IE 10+ and Safari 6+. Fallback for others
15 | this.stack = (new Error()).stack || '';
16 | }
17 |
18 | this.name = 'YAMLException';
19 | this.reason = reason;
20 | this.mark = mark;
21 | this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : '');
22 | }
23 |
24 |
25 | // Inherit from Error
26 | YAMLException.prototype = Object.create(Error.prototype);
27 | YAMLException.prototype.constructor = YAMLException;
28 |
29 |
30 | YAMLException.prototype.toString = function toString(compact) {
31 | var result = this.name + ': ';
32 |
33 | result += this.reason || '(unknown reason)';
34 |
35 | if (!compact && this.mark) {
36 | result += ' ' + this.mark.toString();
37 | }
38 |
39 | return result;
40 | };
41 |
42 |
43 | module.exports = YAMLException;
44 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/mark.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 |
4 | var common = require('./common');
5 |
6 |
7 | function Mark(name, buffer, position, line, column) {
8 | this.name = name;
9 | this.buffer = buffer;
10 | this.position = position;
11 | this.line = line;
12 | this.column = column;
13 | }
14 |
15 |
16 | Mark.prototype.getSnippet = function getSnippet(indent, maxLength) {
17 | var head, start, tail, end, snippet;
18 |
19 | if (!this.buffer) return null;
20 |
21 | indent = indent || 4;
22 | maxLength = maxLength || 75;
23 |
24 | head = '';
25 | start = this.position;
26 |
27 | while (start > 0 && '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(start - 1)) === -1) {
28 | start -= 1;
29 | if (this.position - start > (maxLength / 2 - 1)) {
30 | head = ' ... ';
31 | start += 5;
32 | break;
33 | }
34 | }
35 |
36 | tail = '';
37 | end = this.position;
38 |
39 | while (end < this.buffer.length && '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(end)) === -1) {
40 | end += 1;
41 | if (end - this.position > (maxLength / 2 - 1)) {
42 | tail = ' ... ';
43 | end -= 5;
44 | break;
45 | }
46 | }
47 |
48 | snippet = this.buffer.slice(start, end);
49 |
50 | return common.repeat(' ', indent) + head + snippet + tail + '\n' +
51 | common.repeat(' ', indent + this.position - start + head.length) + '^';
52 | };
53 |
54 |
55 | Mark.prototype.toString = function toString(compact) {
56 | var snippet, where = '';
57 |
58 | if (this.name) {
59 | where += 'in "' + this.name + '" ';
60 | }
61 |
62 | where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);
63 |
64 | if (!compact) {
65 | snippet = this.getSnippet();
66 |
67 | if (snippet) {
68 | where += ':\n' + snippet;
69 | }
70 | }
71 |
72 | return where;
73 | };
74 |
75 |
76 | module.exports = Mark;
77 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/schema/core.js:
--------------------------------------------------------------------------------
1 | // Standard YAML's Core schema.
2 | // http://www.yaml.org/spec/1.2/spec.html#id2804923
3 | //
4 | // NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
5 | // So, Core schema has no distinctions from JSON schema is JS-YAML.
6 |
7 |
8 | 'use strict';
9 |
10 |
11 | var Schema = require('../schema');
12 |
13 |
14 | module.exports = new Schema({
15 | include: [
16 | require('./json')
17 | ]
18 | });
19 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/schema/default_full.js:
--------------------------------------------------------------------------------
1 | // JS-YAML's default schema for `load` function.
2 | // It is not described in the YAML specification.
3 | //
4 | // This schema is based on JS-YAML's default safe schema and includes
5 | // JavaScript-specific types: !!js/undefined, !!js/regexp and !!js/function.
6 | //
7 | // Also this schema is used as default base schema at `Schema.create` function.
8 |
9 |
10 | 'use strict';
11 |
12 |
13 | var Schema = require('../schema');
14 |
15 |
16 | module.exports = Schema.DEFAULT = new Schema({
17 | include: [
18 | require('./default_safe')
19 | ],
20 | explicit: [
21 | require('../type/js/undefined'),
22 | require('../type/js/regexp'),
23 | require('../type/js/function')
24 | ]
25 | });
26 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/schema/default_safe.js:
--------------------------------------------------------------------------------
1 | // JS-YAML's default schema for `safeLoad` function.
2 | // It is not described in the YAML specification.
3 | //
4 | // This schema is based on standard YAML's Core schema and includes most of
5 | // extra types described at YAML tag repository. (http://yaml.org/type/)
6 |
7 |
8 | 'use strict';
9 |
10 |
11 | var Schema = require('../schema');
12 |
13 |
14 | module.exports = new Schema({
15 | include: [
16 | require('./core')
17 | ],
18 | implicit: [
19 | require('../type/timestamp'),
20 | require('../type/merge')
21 | ],
22 | explicit: [
23 | require('../type/binary'),
24 | require('../type/omap'),
25 | require('../type/pairs'),
26 | require('../type/set')
27 | ]
28 | });
29 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/schema/failsafe.js:
--------------------------------------------------------------------------------
1 | // Standard YAML's Failsafe schema.
2 | // http://www.yaml.org/spec/1.2/spec.html#id2802346
3 |
4 |
5 | 'use strict';
6 |
7 |
8 | var Schema = require('../schema');
9 |
10 |
11 | module.exports = new Schema({
12 | explicit: [
13 | require('../type/str'),
14 | require('../type/seq'),
15 | require('../type/map')
16 | ]
17 | });
18 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/schema/json.js:
--------------------------------------------------------------------------------
1 | // Standard YAML's JSON schema.
2 | // http://www.yaml.org/spec/1.2/spec.html#id2803231
3 | //
4 | // NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
5 | // So, this schema is not such strict as defined in the YAML specification.
6 | // It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.
7 |
8 |
9 | 'use strict';
10 |
11 |
12 | var Schema = require('../schema');
13 |
14 |
15 | module.exports = new Schema({
16 | include: [
17 | require('./failsafe')
18 | ],
19 | implicit: [
20 | require('../type/null'),
21 | require('../type/bool'),
22 | require('../type/int'),
23 | require('../type/float')
24 | ]
25 | });
26 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var YAMLException = require('./exception');
4 |
5 | var TYPE_CONSTRUCTOR_OPTIONS = [
6 | 'kind',
7 | 'resolve',
8 | 'construct',
9 | 'instanceOf',
10 | 'predicate',
11 | 'represent',
12 | 'defaultStyle',
13 | 'styleAliases'
14 | ];
15 |
16 | var YAML_NODE_KINDS = [
17 | 'scalar',
18 | 'sequence',
19 | 'mapping'
20 | ];
21 |
22 | function compileStyleAliases(map) {
23 | var result = {};
24 |
25 | if (map !== null) {
26 | Object.keys(map).forEach(function (style) {
27 | map[style].forEach(function (alias) {
28 | result[String(alias)] = style;
29 | });
30 | });
31 | }
32 |
33 | return result;
34 | }
35 |
36 | function Type(tag, options) {
37 | options = options || {};
38 |
39 | Object.keys(options).forEach(function (name) {
40 | if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
41 | throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
42 | }
43 | });
44 |
45 | // TODO: Add tag format check.
46 | this.tag = tag;
47 | this.kind = options['kind'] || null;
48 | this.resolve = options['resolve'] || function () { return true; };
49 | this.construct = options['construct'] || function (data) { return data; };
50 | this.instanceOf = options['instanceOf'] || null;
51 | this.predicate = options['predicate'] || null;
52 | this.represent = options['represent'] || null;
53 | this.defaultStyle = options['defaultStyle'] || null;
54 | this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
55 |
56 | if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
57 | throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
58 | }
59 | }
60 |
61 | module.exports = Type;
62 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/bool.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../type');
4 |
5 | function resolveYamlBoolean(data) {
6 | if (data === null) return false;
7 |
8 | var max = data.length;
9 |
10 | return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
11 | (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
12 | }
13 |
14 | function constructYamlBoolean(data) {
15 | return data === 'true' ||
16 | data === 'True' ||
17 | data === 'TRUE';
18 | }
19 |
20 | function isBoolean(object) {
21 | return Object.prototype.toString.call(object) === '[object Boolean]';
22 | }
23 |
24 | module.exports = new Type('tag:yaml.org,2002:bool', {
25 | kind: 'scalar',
26 | resolve: resolveYamlBoolean,
27 | construct: constructYamlBoolean,
28 | predicate: isBoolean,
29 | represent: {
30 | lowercase: function (object) { return object ? 'true' : 'false'; },
31 | uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
32 | camelcase: function (object) { return object ? 'True' : 'False'; }
33 | },
34 | defaultStyle: 'lowercase'
35 | });
36 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/js/function.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var esprima;
4 |
5 | // Browserified version does not have esprima
6 | //
7 | // 1. For node.js just require module as deps
8 | // 2. For browser try to require mudule via external AMD system.
9 | // If not found - try to fallback to window.esprima. If not
10 | // found too - then fail to parse.
11 | //
12 | try {
13 | // workaround to exclude package from browserify list.
14 | var _require = require;
15 | esprima = _require('esprima');
16 | } catch (_) {
17 | /*global window */
18 | if (typeof window !== 'undefined') esprima = window.esprima;
19 | }
20 |
21 | var Type = require('../../type');
22 |
23 | function resolveJavascriptFunction(data) {
24 | if (data === null) return false;
25 |
26 | try {
27 | var source = '(' + data + ')',
28 | ast = esprima.parse(source, { range: true });
29 |
30 | if (ast.type !== 'Program' ||
31 | ast.body.length !== 1 ||
32 | ast.body[0].type !== 'ExpressionStatement' ||
33 | ast.body[0].expression.type !== 'FunctionExpression') {
34 | return false;
35 | }
36 |
37 | return true;
38 | } catch (err) {
39 | return false;
40 | }
41 | }
42 |
43 | function constructJavascriptFunction(data) {
44 | /*jslint evil:true*/
45 |
46 | var source = '(' + data + ')',
47 | ast = esprima.parse(source, { range: true }),
48 | params = [],
49 | body;
50 |
51 | if (ast.type !== 'Program' ||
52 | ast.body.length !== 1 ||
53 | ast.body[0].type !== 'ExpressionStatement' ||
54 | ast.body[0].expression.type !== 'FunctionExpression') {
55 | throw new Error('Failed to resolve function');
56 | }
57 |
58 | ast.body[0].expression.params.forEach(function (param) {
59 | params.push(param.name);
60 | });
61 |
62 | body = ast.body[0].expression.body.range;
63 |
64 | // Esprima's ranges include the first '{' and the last '}' characters on
65 | // function expressions. So cut them out.
66 | /*eslint-disable no-new-func*/
67 | return new Function(params, source.slice(body[0] + 1, body[1] - 1));
68 | }
69 |
70 | function representJavascriptFunction(object /*, style*/) {
71 | return object.toString();
72 | }
73 |
74 | function isFunction(object) {
75 | return Object.prototype.toString.call(object) === '[object Function]';
76 | }
77 |
78 | module.exports = new Type('tag:yaml.org,2002:js/function', {
79 | kind: 'scalar',
80 | resolve: resolveJavascriptFunction,
81 | construct: constructJavascriptFunction,
82 | predicate: isFunction,
83 | represent: representJavascriptFunction
84 | });
85 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/js/regexp.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../../type');
4 |
5 | function resolveJavascriptRegExp(data) {
6 | if (data === null) return false;
7 | if (data.length === 0) return false;
8 |
9 | var regexp = data,
10 | tail = /\/([gim]*)$/.exec(data),
11 | modifiers = '';
12 |
13 | // if regexp starts with '/' it can have modifiers and must be properly closed
14 | // `/foo/gim` - modifiers tail can be maximum 3 chars
15 | if (regexp[0] === '/') {
16 | if (tail) modifiers = tail[1];
17 |
18 | if (modifiers.length > 3) return false;
19 | // if expression starts with /, is should be properly terminated
20 | if (regexp[regexp.length - modifiers.length - 1] !== '/') return false;
21 | }
22 |
23 | return true;
24 | }
25 |
26 | function constructJavascriptRegExp(data) {
27 | var regexp = data,
28 | tail = /\/([gim]*)$/.exec(data),
29 | modifiers = '';
30 |
31 | // `/foo/gim` - tail can be maximum 4 chars
32 | if (regexp[0] === '/') {
33 | if (tail) modifiers = tail[1];
34 | regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
35 | }
36 |
37 | return new RegExp(regexp, modifiers);
38 | }
39 |
40 | function representJavascriptRegExp(object /*, style*/) {
41 | var result = '/' + object.source + '/';
42 |
43 | if (object.global) result += 'g';
44 | if (object.multiline) result += 'm';
45 | if (object.ignoreCase) result += 'i';
46 |
47 | return result;
48 | }
49 |
50 | function isRegExp(object) {
51 | return Object.prototype.toString.call(object) === '[object RegExp]';
52 | }
53 |
54 | module.exports = new Type('tag:yaml.org,2002:js/regexp', {
55 | kind: 'scalar',
56 | resolve: resolveJavascriptRegExp,
57 | construct: constructJavascriptRegExp,
58 | predicate: isRegExp,
59 | represent: representJavascriptRegExp
60 | });
61 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/js/undefined.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../../type');
4 |
5 | function resolveJavascriptUndefined() {
6 | return true;
7 | }
8 |
9 | function constructJavascriptUndefined() {
10 | /*eslint-disable no-undefined*/
11 | return undefined;
12 | }
13 |
14 | function representJavascriptUndefined() {
15 | return '';
16 | }
17 |
18 | function isUndefined(object) {
19 | return typeof object === 'undefined';
20 | }
21 |
22 | module.exports = new Type('tag:yaml.org,2002:js/undefined', {
23 | kind: 'scalar',
24 | resolve: resolveJavascriptUndefined,
25 | construct: constructJavascriptUndefined,
26 | predicate: isUndefined,
27 | represent: representJavascriptUndefined
28 | });
29 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/map.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../type');
4 |
5 | module.exports = new Type('tag:yaml.org,2002:map', {
6 | kind: 'mapping',
7 | construct: function (data) { return data !== null ? data : {}; }
8 | });
9 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/merge.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../type');
4 |
5 | function resolveYamlMerge(data) {
6 | return data === '<<' || data === null;
7 | }
8 |
9 | module.exports = new Type('tag:yaml.org,2002:merge', {
10 | kind: 'scalar',
11 | resolve: resolveYamlMerge
12 | });
13 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/null.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../type');
4 |
5 | function resolveYamlNull(data) {
6 | if (data === null) return true;
7 |
8 | var max = data.length;
9 |
10 | return (max === 1 && data === '~') ||
11 | (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
12 | }
13 |
14 | function constructYamlNull() {
15 | return null;
16 | }
17 |
18 | function isNull(object) {
19 | return object === null;
20 | }
21 |
22 | module.exports = new Type('tag:yaml.org,2002:null', {
23 | kind: 'scalar',
24 | resolve: resolveYamlNull,
25 | construct: constructYamlNull,
26 | predicate: isNull,
27 | represent: {
28 | canonical: function () { return '~'; },
29 | lowercase: function () { return 'null'; },
30 | uppercase: function () { return 'NULL'; },
31 | camelcase: function () { return 'Null'; }
32 | },
33 | defaultStyle: 'lowercase'
34 | });
35 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/omap.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../type');
4 |
5 | var _hasOwnProperty = Object.prototype.hasOwnProperty;
6 | var _toString = Object.prototype.toString;
7 |
8 | function resolveYamlOmap(data) {
9 | if (data === null) return true;
10 |
11 | var objectKeys = [], index, length, pair, pairKey, pairHasKey,
12 | object = data;
13 |
14 | for (index = 0, length = object.length; index < length; index += 1) {
15 | pair = object[index];
16 | pairHasKey = false;
17 |
18 | if (_toString.call(pair) !== '[object Object]') return false;
19 |
20 | for (pairKey in pair) {
21 | if (_hasOwnProperty.call(pair, pairKey)) {
22 | if (!pairHasKey) pairHasKey = true;
23 | else return false;
24 | }
25 | }
26 |
27 | if (!pairHasKey) return false;
28 |
29 | if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
30 | else return false;
31 | }
32 |
33 | return true;
34 | }
35 |
36 | function constructYamlOmap(data) {
37 | return data !== null ? data : [];
38 | }
39 |
40 | module.exports = new Type('tag:yaml.org,2002:omap', {
41 | kind: 'sequence',
42 | resolve: resolveYamlOmap,
43 | construct: constructYamlOmap
44 | });
45 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/pairs.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../type');
4 |
5 | var _toString = Object.prototype.toString;
6 |
7 | function resolveYamlPairs(data) {
8 | if (data === null) return true;
9 |
10 | var index, length, pair, keys, result,
11 | object = data;
12 |
13 | result = new Array(object.length);
14 |
15 | for (index = 0, length = object.length; index < length; index += 1) {
16 | pair = object[index];
17 |
18 | if (_toString.call(pair) !== '[object Object]') return false;
19 |
20 | keys = Object.keys(pair);
21 |
22 | if (keys.length !== 1) return false;
23 |
24 | result[index] = [ keys[0], pair[keys[0]] ];
25 | }
26 |
27 | return true;
28 | }
29 |
30 | function constructYamlPairs(data) {
31 | if (data === null) return [];
32 |
33 | var index, length, pair, keys, result,
34 | object = data;
35 |
36 | result = new Array(object.length);
37 |
38 | for (index = 0, length = object.length; index < length; index += 1) {
39 | pair = object[index];
40 |
41 | keys = Object.keys(pair);
42 |
43 | result[index] = [ keys[0], pair[keys[0]] ];
44 | }
45 |
46 | return result;
47 | }
48 |
49 | module.exports = new Type('tag:yaml.org,2002:pairs', {
50 | kind: 'sequence',
51 | resolve: resolveYamlPairs,
52 | construct: constructYamlPairs
53 | });
54 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/seq.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../type');
4 |
5 | module.exports = new Type('tag:yaml.org,2002:seq', {
6 | kind: 'sequence',
7 | construct: function (data) { return data !== null ? data : []; }
8 | });
9 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/set.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../type');
4 |
5 | var _hasOwnProperty = Object.prototype.hasOwnProperty;
6 |
7 | function resolveYamlSet(data) {
8 | if (data === null) return true;
9 |
10 | var key, object = data;
11 |
12 | for (key in object) {
13 | if (_hasOwnProperty.call(object, key)) {
14 | if (object[key] !== null) return false;
15 | }
16 | }
17 |
18 | return true;
19 | }
20 |
21 | function constructYamlSet(data) {
22 | return data !== null ? data : {};
23 | }
24 |
25 | module.exports = new Type('tag:yaml.org,2002:set', {
26 | kind: 'mapping',
27 | resolve: resolveYamlSet,
28 | construct: constructYamlSet
29 | });
30 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/str.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../type');
4 |
5 | module.exports = new Type('tag:yaml.org,2002:str', {
6 | kind: 'scalar',
7 | construct: function (data) { return data !== null ? data : ''; }
8 | });
9 |
--------------------------------------------------------------------------------
/plugin/js-yaml/js-yaml/type/timestamp.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | var Type = require('../type');
4 |
5 | var YAML_DATE_REGEXP = new RegExp(
6 | '^([0-9][0-9][0-9][0-9])' + // [1] year
7 | '-([0-9][0-9])' + // [2] month
8 | '-([0-9][0-9])$'); // [3] day
9 |
10 | var YAML_TIMESTAMP_REGEXP = new RegExp(
11 | '^([0-9][0-9][0-9][0-9])' + // [1] year
12 | '-([0-9][0-9]?)' + // [2] month
13 | '-([0-9][0-9]?)' + // [3] day
14 | '(?:[Tt]|[ \\t]+)' + // ...
15 | '([0-9][0-9]?)' + // [4] hour
16 | ':([0-9][0-9])' + // [5] minute
17 | ':([0-9][0-9])' + // [6] second
18 | '(?:\\.([0-9]*))?' + // [7] fraction
19 | '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
20 | '(?::([0-9][0-9]))?))?$'); // [11] tz_minute
21 |
22 | function resolveYamlTimestamp(data) {
23 | if (data === null) return false;
24 | if (YAML_DATE_REGEXP.exec(data) !== null) return true;
25 | if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
26 | return false;
27 | }
28 |
29 | function constructYamlTimestamp(data) {
30 | var match, year, month, day, hour, minute, second, fraction = 0,
31 | delta = null, tz_hour, tz_minute, date;
32 |
33 | match = YAML_DATE_REGEXP.exec(data);
34 | if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
35 |
36 | if (match === null) throw new Error('Date resolve error');
37 |
38 | // match: [1] year [2] month [3] day
39 |
40 | year = +(match[1]);
41 | month = +(match[2]) - 1; // JS month starts with 0
42 | day = +(match[3]);
43 |
44 | if (!match[4]) { // no hour
45 | return new Date(Date.UTC(year, month, day));
46 | }
47 |
48 | // match: [4] hour [5] minute [6] second [7] fraction
49 |
50 | hour = +(match[4]);
51 | minute = +(match[5]);
52 | second = +(match[6]);
53 |
54 | if (match[7]) {
55 | fraction = match[7].slice(0, 3);
56 | while (fraction.length < 3) { // milli-seconds
57 | fraction += '0';
58 | }
59 | fraction = +fraction;
60 | }
61 |
62 | // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
63 |
64 | if (match[9]) {
65 | tz_hour = +(match[10]);
66 | tz_minute = +(match[11] || 0);
67 | delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
68 | if (match[9] === '-') delta = -delta;
69 | }
70 |
71 | date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
72 |
73 | if (delta) date.setTime(date.getTime() - delta);
74 |
75 | return date;
76 | }
77 |
78 | function representYamlTimestamp(object /*, style*/) {
79 | return object.toISOString();
80 | }
81 |
82 | module.exports = new Type('tag:yaml.org,2002:timestamp', {
83 | kind: 'scalar',
84 | resolve: resolveYamlTimestamp,
85 | construct: constructYamlTimestamp,
86 | instanceOf: Date,
87 | represent: representYamlTimestamp
88 | });
89 |
--------------------------------------------------------------------------------
/plugin/lazy/index.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * A class that creates a value onces and when it is needed.
3 | */
4 | export declare class Lazy {
5 | protected _isValueCreated: boolean;
6 | protected _value: T;
7 | protected _valueFactory: () => T;
8 | /**
9 | * Initializes a new instance of that class.
10 | *
11 | * @param {Function} valueFactory The function that creates the value.
12 | */
13 | constructor(valueFactory: () => T);
14 | /**
15 | * Gets if the value has been created or not.
16 | */
17 | isValueCreated: boolean;
18 | /**
19 | * Resets the state of that class.
20 | */
21 | reset(): void;
22 | /**
23 | * Gets the (lazy) value.
24 | */
25 | value: T;
26 | }
27 |
--------------------------------------------------------------------------------
/plugin/lazy/index.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 | // The MIT License (MIT)
3 | //
4 | // Copyright (c) Marcel Joachim Kloubert
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy
7 | // of this software and associated documentation files (the "Software"), to
8 | // deal in the Software without restriction, including without limitation the
9 | // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 | // sell copies of the Software, and to permit persons to whom the Software is
11 | // furnished to do so, subject to the following conditions:
12 | //
13 | // The above copyright notice and this permission notice shall be included in
14 | // all copies or substantial portions of the Software.
15 | //
16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 | // DEALINGS IN THE SOFTWARE.
23 | Object.defineProperty(exports, "__esModule", { value: true });
24 | /**
25 | * A class that creates a value onces and when it is needed.
26 | */
27 | var Lazy = (function () {
28 | /**
29 | * Initializes a new instance of that class.
30 | *
31 | * @param {Function} valueFactory The function that creates the value.
32 | */
33 | function Lazy(valueFactory) {
34 | this._valueFactory = valueFactory;
35 | this.reset();
36 | }
37 | Object.defineProperty(Lazy.prototype, "isValueCreated", {
38 | /**
39 | * Gets if the value has been created or not.
40 | */
41 | get: function () {
42 | return this._isValueCreated;
43 | },
44 | enumerable: true,
45 | configurable: true
46 | });
47 | /**
48 | * Resets the state of that class.
49 | */
50 | Lazy.prototype.reset = function () {
51 | this._isValueCreated = false;
52 | };
53 | Object.defineProperty(Lazy.prototype, "value", {
54 | /**
55 | * Gets the (lazy) value.
56 | */
57 | get: function () {
58 | if (!this._isValueCreated) {
59 | this._value = this._valueFactory();
60 | this._isValueCreated = true;
61 | }
62 | return this._value;
63 | },
64 | enumerable: true,
65 | configurable: true
66 | });
67 | return Lazy;
68 | }());
69 | exports.Lazy = Lazy;
70 | //# sourceMappingURL=index.js.map
--------------------------------------------------------------------------------
/plugin/lazy/index.ts:
--------------------------------------------------------------------------------
1 | // The MIT License (MIT)
2 | //
3 | // Copyright (c) Marcel Joachim Kloubert
4 | //
5 | // Permission is hereby granted, free of charge, to any person obtaining a copy
6 | // of this software and associated documentation files (the "Software"), to
7 | // deal in the Software without restriction, including without limitation the
8 | // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 | // sell copies of the Software, and to permit persons to whom the Software is
10 | // furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in
13 | // all copies or substantial portions of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 | // DEALINGS IN THE SOFTWARE.
22 |
23 | /**
24 | * A class that creates a value onces and when it is needed.
25 | */
26 | export class Lazy {
27 | protected _isValueCreated: boolean;
28 | protected _value: T;
29 | protected _valueFactory: () => T;
30 |
31 | /**
32 | * Initializes a new instance of that class.
33 | *
34 | * @param {Function} valueFactory The function that creates the value.
35 | */
36 | public constructor(valueFactory: () => T) {
37 | this._valueFactory = valueFactory;
38 |
39 | this.reset();
40 | }
41 |
42 | /**
43 | * Gets if the value has been created or not.
44 | */
45 | public get isValueCreated(): boolean {
46 | return this._isValueCreated;
47 | }
48 |
49 | /**
50 | * Resets the state of that class.
51 | */
52 | public reset() {
53 | this._isValueCreated = false;
54 | }
55 |
56 | /**
57 | * Gets the (lazy) value.
58 | */
59 | public get value(): T {
60 | if (!this._isValueCreated) {
61 | this._value = this._valueFactory();
62 | this._isValueCreated = true;
63 | }
64 |
65 | return this._value;
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/plugin/markdown/index.js:
--------------------------------------------------------------------------------
1 | // super simple module for the most common nodejs use case.
2 | exports.markdown = require("./markdown");
3 | exports.parse = exports.markdown.toHTML;
4 |
--------------------------------------------------------------------------------
/plugin/moment/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2011-2016 Tim Wood, Iskren Chernev, Moment.js contributors
2 |
3 | Permission is hereby granted, free of charge, to any person
4 | obtaining a copy of this software and associated documentation
5 | files (the "Software"), to deal in the Software without
6 | restriction, including without limitation the rights to use,
7 | copy, modify, merge, publish, distribute, sublicense, and/or sell
8 | copies of the Software, and to permit persons to whom the
9 | Software is furnished to do so, subject to the following
10 | conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 | OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/plugin/moment/ender.js:
--------------------------------------------------------------------------------
1 | $.ender({ moment: require('moment') })
2 |
--------------------------------------------------------------------------------
/plugin/moment/locale/af.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : afrikaans (af)
3 | //! author : Werner Mollentze : https://github.com/wernerm
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var af = moment.defineLocale('af', {
14 | months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
15 | monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
16 | weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
17 | weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
18 | weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
19 | meridiemParse: /vm|nm/i,
20 | isPM : function (input) {
21 | return /^nm$/i.test(input);
22 | },
23 | meridiem : function (hours, minutes, isLower) {
24 | if (hours < 12) {
25 | return isLower ? 'vm' : 'VM';
26 | } else {
27 | return isLower ? 'nm' : 'NM';
28 | }
29 | },
30 | longDateFormat : {
31 | LT : 'HH:mm',
32 | LTS : 'HH:mm:ss',
33 | L : 'DD/MM/YYYY',
34 | LL : 'D MMMM YYYY',
35 | LLL : 'D MMMM YYYY HH:mm',
36 | LLLL : 'dddd, D MMMM YYYY HH:mm'
37 | },
38 | calendar : {
39 | sameDay : '[Vandag om] LT',
40 | nextDay : '[Môre om] LT',
41 | nextWeek : 'dddd [om] LT',
42 | lastDay : '[Gister om] LT',
43 | lastWeek : '[Laas] dddd [om] LT',
44 | sameElse : 'L'
45 | },
46 | relativeTime : {
47 | future : 'oor %s',
48 | past : '%s gelede',
49 | s : '\'n paar sekondes',
50 | m : '\'n minuut',
51 | mm : '%d minute',
52 | h : '\'n uur',
53 | hh : '%d ure',
54 | d : '\'n dag',
55 | dd : '%d dae',
56 | M : '\'n maand',
57 | MM : '%d maande',
58 | y : '\'n jaar',
59 | yy : '%d jaar'
60 | },
61 | ordinalParse: /\d{1,2}(ste|de)/,
62 | ordinal : function (number) {
63 | return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
64 | },
65 | week : {
66 | dow : 1, // Maandag is die eerste dag van die week.
67 | doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
68 | }
69 | });
70 |
71 | return af;
72 |
73 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/ar-ma.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Moroccan Arabic (ar-ma)
3 | //! author : ElFadili Yassine : https://github.com/ElFadiliY
4 | //! author : Abdel Said : https://github.com/abdelsaid
5 |
6 | ;(function (global, factory) {
7 | typeof exports === 'object' && typeof module !== 'undefined'
8 | && typeof require === 'function' ? factory(require('../moment')) :
9 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
10 | factory(global.moment)
11 | }(this, function (moment) { 'use strict';
12 |
13 |
14 | var ar_ma = moment.defineLocale('ar-ma', {
15 | months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
16 | monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
17 | weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
18 | weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
19 | weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
20 | weekdaysParseExact : true,
21 | longDateFormat : {
22 | LT : 'HH:mm',
23 | LTS : 'HH:mm:ss',
24 | L : 'DD/MM/YYYY',
25 | LL : 'D MMMM YYYY',
26 | LLL : 'D MMMM YYYY HH:mm',
27 | LLLL : 'dddd D MMMM YYYY HH:mm'
28 | },
29 | calendar : {
30 | sameDay: '[اليوم على الساعة] LT',
31 | nextDay: '[غدا على الساعة] LT',
32 | nextWeek: 'dddd [على الساعة] LT',
33 | lastDay: '[أمس على الساعة] LT',
34 | lastWeek: 'dddd [على الساعة] LT',
35 | sameElse: 'L'
36 | },
37 | relativeTime : {
38 | future : 'في %s',
39 | past : 'منذ %s',
40 | s : 'ثوان',
41 | m : 'دقيقة',
42 | mm : '%d دقائق',
43 | h : 'ساعة',
44 | hh : '%d ساعات',
45 | d : 'يوم',
46 | dd : '%d أيام',
47 | M : 'شهر',
48 | MM : '%d أشهر',
49 | y : 'سنة',
50 | yy : '%d سنوات'
51 | },
52 | week : {
53 | dow : 6, // Saturday is the first day of the week.
54 | doy : 12 // The week that contains Jan 1st is the first week of the year.
55 | }
56 | });
57 |
58 | return ar_ma;
59 |
60 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/ar-tn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Tunisian Arabic (ar-tn)
3 |
4 | ;(function (global, factory) {
5 | typeof exports === 'object' && typeof module !== 'undefined'
6 | && typeof require === 'function' ? factory(require('../moment')) :
7 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
8 | factory(global.moment)
9 | }(this, function (moment) { 'use strict';
10 |
11 |
12 | var ar_tn = moment.defineLocale('ar-tn', {
13 | months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
14 | monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
15 | weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
16 | weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
17 | weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
18 | weekdaysParseExact : true,
19 | longDateFormat: {
20 | LT: 'HH:mm',
21 | LTS: 'HH:mm:ss',
22 | L: 'DD/MM/YYYY',
23 | LL: 'D MMMM YYYY',
24 | LLL: 'D MMMM YYYY HH:mm',
25 | LLLL: 'dddd D MMMM YYYY HH:mm'
26 | },
27 | calendar: {
28 | sameDay: '[اليوم على الساعة] LT',
29 | nextDay: '[غدا على الساعة] LT',
30 | nextWeek: 'dddd [على الساعة] LT',
31 | lastDay: '[أمس على الساعة] LT',
32 | lastWeek: 'dddd [على الساعة] LT',
33 | sameElse: 'L'
34 | },
35 | relativeTime: {
36 | future: 'في %s',
37 | past: 'منذ %s',
38 | s: 'ثوان',
39 | m: 'دقيقة',
40 | mm: '%d دقائق',
41 | h: 'ساعة',
42 | hh: '%d ساعات',
43 | d: 'يوم',
44 | dd: '%d أيام',
45 | M: 'شهر',
46 | MM: '%d أشهر',
47 | y: 'سنة',
48 | yy: '%d سنوات'
49 | },
50 | week: {
51 | dow: 1, // Monday is the first day of the week.
52 | doy: 4 // The week that contains Jan 4th is the first week of the year.
53 | }
54 | });
55 |
56 | return ar_tn;
57 |
58 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/cv.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : chuvash (cv)
3 | //! author : Anatoly Mironov : https://github.com/mirontoli
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var cv = moment.defineLocale('cv', {
14 | months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
15 | monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
16 | weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
17 | weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
18 | weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L : 'DD-MM-YYYY',
23 | LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
24 | LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
25 | LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
26 | },
27 | calendar : {
28 | sameDay: '[Паян] LT [сехетре]',
29 | nextDay: '[Ыран] LT [сехетре]',
30 | lastDay: '[Ӗнер] LT [сехетре]',
31 | nextWeek: '[Ҫитес] dddd LT [сехетре]',
32 | lastWeek: '[Иртнӗ] dddd LT [сехетре]',
33 | sameElse: 'L'
34 | },
35 | relativeTime : {
36 | future : function (output) {
37 | var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
38 | return output + affix;
39 | },
40 | past : '%s каялла',
41 | s : 'пӗр-ик ҫеккунт',
42 | m : 'пӗр минут',
43 | mm : '%d минут',
44 | h : 'пӗр сехет',
45 | hh : '%d сехет',
46 | d : 'пӗр кун',
47 | dd : '%d кун',
48 | M : 'пӗр уйӑх',
49 | MM : '%d уйӑх',
50 | y : 'пӗр ҫул',
51 | yy : '%d ҫул'
52 | },
53 | ordinalParse: /\d{1,2}-мӗш/,
54 | ordinal : '%d-мӗш',
55 | week : {
56 | dow : 1, // Monday is the first day of the week.
57 | doy : 7 // The week that contains Jan 1st is the first week of the year.
58 | }
59 | });
60 |
61 | return cv;
62 |
63 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/da.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : danish (da)
3 | //! author : Ulrik Nielsen : https://github.com/mrbase
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var da = moment.defineLocale('da', {
14 | months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
15 | monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
16 | weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
17 | weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
18 | weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L : 'DD/MM/YYYY',
23 | LL : 'D. MMMM YYYY',
24 | LLL : 'D. MMMM YYYY HH:mm',
25 | LLLL : 'dddd [d.] D. MMMM YYYY HH:mm'
26 | },
27 | calendar : {
28 | sameDay : '[I dag kl.] LT',
29 | nextDay : '[I morgen kl.] LT',
30 | nextWeek : 'dddd [kl.] LT',
31 | lastDay : '[I går kl.] LT',
32 | lastWeek : '[sidste] dddd [kl] LT',
33 | sameElse : 'L'
34 | },
35 | relativeTime : {
36 | future : 'om %s',
37 | past : '%s siden',
38 | s : 'få sekunder',
39 | m : 'et minut',
40 | mm : '%d minutter',
41 | h : 'en time',
42 | hh : '%d timer',
43 | d : 'en dag',
44 | dd : '%d dage',
45 | M : 'en måned',
46 | MM : '%d måneder',
47 | y : 'et år',
48 | yy : '%d år'
49 | },
50 | ordinalParse: /\d{1,2}\./,
51 | ordinal : '%d.',
52 | week : {
53 | dow : 1, // Monday is the first day of the week.
54 | doy : 4 // The week that contains Jan 4th is the first week of the year.
55 | }
56 | });
57 |
58 | return da;
59 |
60 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/en-au.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : australian english (en-au)
3 |
4 | ;(function (global, factory) {
5 | typeof exports === 'object' && typeof module !== 'undefined'
6 | && typeof require === 'function' ? factory(require('../moment')) :
7 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
8 | factory(global.moment)
9 | }(this, function (moment) { 'use strict';
10 |
11 |
12 | var en_au = moment.defineLocale('en-au', {
13 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
14 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
15 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
16 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
17 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
18 | longDateFormat : {
19 | LT : 'h:mm A',
20 | LTS : 'h:mm:ss A',
21 | L : 'DD/MM/YYYY',
22 | LL : 'D MMMM YYYY',
23 | LLL : 'D MMMM YYYY h:mm A',
24 | LLLL : 'dddd, D MMMM YYYY h:mm A'
25 | },
26 | calendar : {
27 | sameDay : '[Today at] LT',
28 | nextDay : '[Tomorrow at] LT',
29 | nextWeek : 'dddd [at] LT',
30 | lastDay : '[Yesterday at] LT',
31 | lastWeek : '[Last] dddd [at] LT',
32 | sameElse : 'L'
33 | },
34 | relativeTime : {
35 | future : 'in %s',
36 | past : '%s ago',
37 | s : 'a few seconds',
38 | m : 'a minute',
39 | mm : '%d minutes',
40 | h : 'an hour',
41 | hh : '%d hours',
42 | d : 'a day',
43 | dd : '%d days',
44 | M : 'a month',
45 | MM : '%d months',
46 | y : 'a year',
47 | yy : '%d years'
48 | },
49 | ordinalParse: /\d{1,2}(st|nd|rd|th)/,
50 | ordinal : function (number) {
51 | var b = number % 10,
52 | output = (~~(number % 100 / 10) === 1) ? 'th' :
53 | (b === 1) ? 'st' :
54 | (b === 2) ? 'nd' :
55 | (b === 3) ? 'rd' : 'th';
56 | return number + output;
57 | },
58 | week : {
59 | dow : 1, // Monday is the first day of the week.
60 | doy : 4 // The week that contains Jan 4th is the first week of the year.
61 | }
62 | });
63 |
64 | return en_au;
65 |
66 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/en-ca.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : canadian english (en-ca)
3 | //! author : Jonathan Abourbih : https://github.com/jonbca
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var en_ca = moment.defineLocale('en-ca', {
14 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
15 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
16 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
17 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
18 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
19 | longDateFormat : {
20 | LT : 'h:mm A',
21 | LTS : 'h:mm:ss A',
22 | L : 'YYYY-MM-DD',
23 | LL : 'MMMM D, YYYY',
24 | LLL : 'MMMM D, YYYY h:mm A',
25 | LLLL : 'dddd, MMMM D, YYYY h:mm A'
26 | },
27 | calendar : {
28 | sameDay : '[Today at] LT',
29 | nextDay : '[Tomorrow at] LT',
30 | nextWeek : 'dddd [at] LT',
31 | lastDay : '[Yesterday at] LT',
32 | lastWeek : '[Last] dddd [at] LT',
33 | sameElse : 'L'
34 | },
35 | relativeTime : {
36 | future : 'in %s',
37 | past : '%s ago',
38 | s : 'a few seconds',
39 | m : 'a minute',
40 | mm : '%d minutes',
41 | h : 'an hour',
42 | hh : '%d hours',
43 | d : 'a day',
44 | dd : '%d days',
45 | M : 'a month',
46 | MM : '%d months',
47 | y : 'a year',
48 | yy : '%d years'
49 | },
50 | ordinalParse: /\d{1,2}(st|nd|rd|th)/,
51 | ordinal : function (number) {
52 | var b = number % 10,
53 | output = (~~(number % 100 / 10) === 1) ? 'th' :
54 | (b === 1) ? 'st' :
55 | (b === 2) ? 'nd' :
56 | (b === 3) ? 'rd' : 'th';
57 | return number + output;
58 | }
59 | });
60 |
61 | return en_ca;
62 |
63 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/en-gb.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : great britain english (en-gb)
3 | //! author : Chris Gedrim : https://github.com/chrisgedrim
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var en_gb = moment.defineLocale('en-gb', {
14 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
15 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
16 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
17 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
18 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L : 'DD/MM/YYYY',
23 | LL : 'D MMMM YYYY',
24 | LLL : 'D MMMM YYYY HH:mm',
25 | LLLL : 'dddd, D MMMM YYYY HH:mm'
26 | },
27 | calendar : {
28 | sameDay : '[Today at] LT',
29 | nextDay : '[Tomorrow at] LT',
30 | nextWeek : 'dddd [at] LT',
31 | lastDay : '[Yesterday at] LT',
32 | lastWeek : '[Last] dddd [at] LT',
33 | sameElse : 'L'
34 | },
35 | relativeTime : {
36 | future : 'in %s',
37 | past : '%s ago',
38 | s : 'a few seconds',
39 | m : 'a minute',
40 | mm : '%d minutes',
41 | h : 'an hour',
42 | hh : '%d hours',
43 | d : 'a day',
44 | dd : '%d days',
45 | M : 'a month',
46 | MM : '%d months',
47 | y : 'a year',
48 | yy : '%d years'
49 | },
50 | ordinalParse: /\d{1,2}(st|nd|rd|th)/,
51 | ordinal : function (number) {
52 | var b = number % 10,
53 | output = (~~(number % 100 / 10) === 1) ? 'th' :
54 | (b === 1) ? 'st' :
55 | (b === 2) ? 'nd' :
56 | (b === 3) ? 'rd' : 'th';
57 | return number + output;
58 | },
59 | week : {
60 | dow : 1, // Monday is the first day of the week.
61 | doy : 4 // The week that contains Jan 4th is the first week of the year.
62 | }
63 | });
64 |
65 | return en_gb;
66 |
67 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/en-ie.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Irish english (en-ie)
3 | //! author : Chris Cartlidge : https://github.com/chriscartlidge
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var en_ie = moment.defineLocale('en-ie', {
14 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
15 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
16 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
17 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
18 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L : 'DD-MM-YYYY',
23 | LL : 'D MMMM YYYY',
24 | LLL : 'D MMMM YYYY HH:mm',
25 | LLLL : 'dddd D MMMM YYYY HH:mm'
26 | },
27 | calendar : {
28 | sameDay : '[Today at] LT',
29 | nextDay : '[Tomorrow at] LT',
30 | nextWeek : 'dddd [at] LT',
31 | lastDay : '[Yesterday at] LT',
32 | lastWeek : '[Last] dddd [at] LT',
33 | sameElse : 'L'
34 | },
35 | relativeTime : {
36 | future : 'in %s',
37 | past : '%s ago',
38 | s : 'a few seconds',
39 | m : 'a minute',
40 | mm : '%d minutes',
41 | h : 'an hour',
42 | hh : '%d hours',
43 | d : 'a day',
44 | dd : '%d days',
45 | M : 'a month',
46 | MM : '%d months',
47 | y : 'a year',
48 | yy : '%d years'
49 | },
50 | ordinalParse: /\d{1,2}(st|nd|rd|th)/,
51 | ordinal : function (number) {
52 | var b = number % 10,
53 | output = (~~(number % 100 / 10) === 1) ? 'th' :
54 | (b === 1) ? 'st' :
55 | (b === 2) ? 'nd' :
56 | (b === 3) ? 'rd' : 'th';
57 | return number + output;
58 | },
59 | week : {
60 | dow : 1, // Monday is the first day of the week.
61 | doy : 4 // The week that contains Jan 4th is the first week of the year.
62 | }
63 | });
64 |
65 | return en_ie;
66 |
67 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/en-nz.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : New Zealand english (en-nz)
3 |
4 | ;(function (global, factory) {
5 | typeof exports === 'object' && typeof module !== 'undefined'
6 | && typeof require === 'function' ? factory(require('../moment')) :
7 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
8 | factory(global.moment)
9 | }(this, function (moment) { 'use strict';
10 |
11 |
12 | var en_nz = moment.defineLocale('en-nz', {
13 | months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
14 | monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
15 | weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
16 | weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
17 | weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
18 | longDateFormat : {
19 | LT : 'h:mm A',
20 | LTS : 'h:mm:ss A',
21 | L : 'DD/MM/YYYY',
22 | LL : 'D MMMM YYYY',
23 | LLL : 'D MMMM YYYY h:mm A',
24 | LLLL : 'dddd, D MMMM YYYY h:mm A'
25 | },
26 | calendar : {
27 | sameDay : '[Today at] LT',
28 | nextDay : '[Tomorrow at] LT',
29 | nextWeek : 'dddd [at] LT',
30 | lastDay : '[Yesterday at] LT',
31 | lastWeek : '[Last] dddd [at] LT',
32 | sameElse : 'L'
33 | },
34 | relativeTime : {
35 | future : 'in %s',
36 | past : '%s ago',
37 | s : 'a few seconds',
38 | m : 'a minute',
39 | mm : '%d minutes',
40 | h : 'an hour',
41 | hh : '%d hours',
42 | d : 'a day',
43 | dd : '%d days',
44 | M : 'a month',
45 | MM : '%d months',
46 | y : 'a year',
47 | yy : '%d years'
48 | },
49 | ordinalParse: /\d{1,2}(st|nd|rd|th)/,
50 | ordinal : function (number) {
51 | var b = number % 10,
52 | output = (~~(number % 100 / 10) === 1) ? 'th' :
53 | (b === 1) ? 'st' :
54 | (b === 2) ? 'nd' :
55 | (b === 3) ? 'rd' : 'th';
56 | return number + output;
57 | },
58 | week : {
59 | dow : 1, // Monday is the first day of the week.
60 | doy : 4 // The week that contains Jan 4th is the first week of the year.
61 | }
62 | });
63 |
64 | return en_nz;
65 |
66 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/eo.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : esperanto (eo)
3 | //! author : Colin Dean : https://github.com/colindean
4 | //! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.
5 | //! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!
6 |
7 | ;(function (global, factory) {
8 | typeof exports === 'object' && typeof module !== 'undefined'
9 | && typeof require === 'function' ? factory(require('../moment')) :
10 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
11 | factory(global.moment)
12 | }(this, function (moment) { 'use strict';
13 |
14 |
15 | var eo = moment.defineLocale('eo', {
16 | months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
17 | monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
18 | weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
19 | weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
20 | weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
21 | longDateFormat : {
22 | LT : 'HH:mm',
23 | LTS : 'HH:mm:ss',
24 | L : 'YYYY-MM-DD',
25 | LL : 'D[-an de] MMMM, YYYY',
26 | LLL : 'D[-an de] MMMM, YYYY HH:mm',
27 | LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'
28 | },
29 | meridiemParse: /[ap]\.t\.m/i,
30 | isPM: function (input) {
31 | return input.charAt(0).toLowerCase() === 'p';
32 | },
33 | meridiem : function (hours, minutes, isLower) {
34 | if (hours > 11) {
35 | return isLower ? 'p.t.m.' : 'P.T.M.';
36 | } else {
37 | return isLower ? 'a.t.m.' : 'A.T.M.';
38 | }
39 | },
40 | calendar : {
41 | sameDay : '[Hodiaŭ je] LT',
42 | nextDay : '[Morgaŭ je] LT',
43 | nextWeek : 'dddd [je] LT',
44 | lastDay : '[Hieraŭ je] LT',
45 | lastWeek : '[pasinta] dddd [je] LT',
46 | sameElse : 'L'
47 | },
48 | relativeTime : {
49 | future : 'je %s',
50 | past : 'antaŭ %s',
51 | s : 'sekundoj',
52 | m : 'minuto',
53 | mm : '%d minutoj',
54 | h : 'horo',
55 | hh : '%d horoj',
56 | d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
57 | dd : '%d tagoj',
58 | M : 'monato',
59 | MM : '%d monatoj',
60 | y : 'jaro',
61 | yy : '%d jaroj'
62 | },
63 | ordinalParse: /\d{1,2}a/,
64 | ordinal : '%da',
65 | week : {
66 | dow : 1, // Monday is the first day of the week.
67 | doy : 7 // The week that contains Jan 1st is the first week of the year.
68 | }
69 | });
70 |
71 | return eo;
72 |
73 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/eu.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : euskara (eu)
3 | //! author : Eneko Illarramendi : https://github.com/eillarra
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var eu = moment.defineLocale('eu', {
14 | months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
15 | monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
16 | monthsParseExact : true,
17 | weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
18 | weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
19 | weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
20 | weekdaysParseExact : true,
21 | longDateFormat : {
22 | LT : 'HH:mm',
23 | LTS : 'HH:mm:ss',
24 | L : 'YYYY-MM-DD',
25 | LL : 'YYYY[ko] MMMM[ren] D[a]',
26 | LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
27 | LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
28 | l : 'YYYY-M-D',
29 | ll : 'YYYY[ko] MMM D[a]',
30 | lll : 'YYYY[ko] MMM D[a] HH:mm',
31 | llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
32 | },
33 | calendar : {
34 | sameDay : '[gaur] LT[etan]',
35 | nextDay : '[bihar] LT[etan]',
36 | nextWeek : 'dddd LT[etan]',
37 | lastDay : '[atzo] LT[etan]',
38 | lastWeek : '[aurreko] dddd LT[etan]',
39 | sameElse : 'L'
40 | },
41 | relativeTime : {
42 | future : '%s barru',
43 | past : 'duela %s',
44 | s : 'segundo batzuk',
45 | m : 'minutu bat',
46 | mm : '%d minutu',
47 | h : 'ordu bat',
48 | hh : '%d ordu',
49 | d : 'egun bat',
50 | dd : '%d egun',
51 | M : 'hilabete bat',
52 | MM : '%d hilabete',
53 | y : 'urte bat',
54 | yy : '%d urte'
55 | },
56 | ordinalParse: /\d{1,2}\./,
57 | ordinal : '%d.',
58 | week : {
59 | dow : 1, // Monday is the first day of the week.
60 | doy : 7 // The week that contains Jan 1st is the first week of the year.
61 | }
62 | });
63 |
64 | return eu;
65 |
66 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/fo.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : faroese (fo)
3 | //! author : Ragnar Johannesen : https://github.com/ragnar123
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var fo = moment.defineLocale('fo', {
14 | months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
15 | monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
16 | weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
17 | weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
18 | weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L : 'DD/MM/YYYY',
23 | LL : 'D MMMM YYYY',
24 | LLL : 'D MMMM YYYY HH:mm',
25 | LLLL : 'dddd D. MMMM, YYYY HH:mm'
26 | },
27 | calendar : {
28 | sameDay : '[Í dag kl.] LT',
29 | nextDay : '[Í morgin kl.] LT',
30 | nextWeek : 'dddd [kl.] LT',
31 | lastDay : '[Í gjár kl.] LT',
32 | lastWeek : '[síðstu] dddd [kl] LT',
33 | sameElse : 'L'
34 | },
35 | relativeTime : {
36 | future : 'um %s',
37 | past : '%s síðani',
38 | s : 'fá sekund',
39 | m : 'ein minutt',
40 | mm : '%d minuttir',
41 | h : 'ein tími',
42 | hh : '%d tímar',
43 | d : 'ein dagur',
44 | dd : '%d dagar',
45 | M : 'ein mánaði',
46 | MM : '%d mánaðir',
47 | y : 'eitt ár',
48 | yy : '%d ár'
49 | },
50 | ordinalParse: /\d{1,2}\./,
51 | ordinal : '%d.',
52 | week : {
53 | dow : 1, // Monday is the first day of the week.
54 | doy : 4 // The week that contains Jan 4th is the first week of the year.
55 | }
56 | });
57 |
58 | return fo;
59 |
60 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/fr-ca.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : canadian french (fr-ca)
3 | //! author : Jonathan Abourbih : https://github.com/jonbca
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var fr_ca = moment.defineLocale('fr-ca', {
14 | months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
15 | monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
16 | monthsParseExact : true,
17 | weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
18 | weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
19 | weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
20 | weekdaysParseExact : true,
21 | longDateFormat : {
22 | LT : 'HH:mm',
23 | LTS : 'HH:mm:ss',
24 | L : 'YYYY-MM-DD',
25 | LL : 'D MMMM YYYY',
26 | LLL : 'D MMMM YYYY HH:mm',
27 | LLLL : 'dddd D MMMM YYYY HH:mm'
28 | },
29 | calendar : {
30 | sameDay: '[Aujourd\'hui à] LT',
31 | nextDay: '[Demain à] LT',
32 | nextWeek: 'dddd [à] LT',
33 | lastDay: '[Hier à] LT',
34 | lastWeek: 'dddd [dernier à] LT',
35 | sameElse: 'L'
36 | },
37 | relativeTime : {
38 | future : 'dans %s',
39 | past : 'il y a %s',
40 | s : 'quelques secondes',
41 | m : 'une minute',
42 | mm : '%d minutes',
43 | h : 'une heure',
44 | hh : '%d heures',
45 | d : 'un jour',
46 | dd : '%d jours',
47 | M : 'un mois',
48 | MM : '%d mois',
49 | y : 'un an',
50 | yy : '%d ans'
51 | },
52 | ordinalParse: /\d{1,2}(er|e)/,
53 | ordinal : function (number) {
54 | return number + (number === 1 ? 'er' : 'e');
55 | }
56 | });
57 |
58 | return fr_ca;
59 |
60 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/fr-ch.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : swiss french (fr)
3 | //! author : Gaspard Bucher : https://github.com/gaspard
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var fr_ch = moment.defineLocale('fr-ch', {
14 | months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
15 | monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
16 | monthsParseExact : true,
17 | weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
18 | weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
19 | weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
20 | weekdaysParseExact : true,
21 | longDateFormat : {
22 | LT : 'HH:mm',
23 | LTS : 'HH:mm:ss',
24 | L : 'DD.MM.YYYY',
25 | LL : 'D MMMM YYYY',
26 | LLL : 'D MMMM YYYY HH:mm',
27 | LLLL : 'dddd D MMMM YYYY HH:mm'
28 | },
29 | calendar : {
30 | sameDay: '[Aujourd\'hui à] LT',
31 | nextDay: '[Demain à] LT',
32 | nextWeek: 'dddd [à] LT',
33 | lastDay: '[Hier à] LT',
34 | lastWeek: 'dddd [dernier à] LT',
35 | sameElse: 'L'
36 | },
37 | relativeTime : {
38 | future : 'dans %s',
39 | past : 'il y a %s',
40 | s : 'quelques secondes',
41 | m : 'une minute',
42 | mm : '%d minutes',
43 | h : 'une heure',
44 | hh : '%d heures',
45 | d : 'un jour',
46 | dd : '%d jours',
47 | M : 'un mois',
48 | MM : '%d mois',
49 | y : 'un an',
50 | yy : '%d ans'
51 | },
52 | ordinalParse: /\d{1,2}(er|e)/,
53 | ordinal : function (number) {
54 | return number + (number === 1 ? 'er' : 'e');
55 | },
56 | week : {
57 | dow : 1, // Monday is the first day of the week.
58 | doy : 4 // The week that contains Jan 4th is the first week of the year.
59 | }
60 | });
61 |
62 | return fr_ch;
63 |
64 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/fr.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : french (fr)
3 | //! author : John Fischer : https://github.com/jfroffice
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var fr = moment.defineLocale('fr', {
14 | months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
15 | monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
16 | monthsParseExact : true,
17 | weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
18 | weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
19 | weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
20 | weekdaysParseExact : true,
21 | longDateFormat : {
22 | LT : 'HH:mm',
23 | LTS : 'HH:mm:ss',
24 | L : 'DD/MM/YYYY',
25 | LL : 'D MMMM YYYY',
26 | LLL : 'D MMMM YYYY HH:mm',
27 | LLLL : 'dddd D MMMM YYYY HH:mm'
28 | },
29 | calendar : {
30 | sameDay: '[Aujourd\'hui à] LT',
31 | nextDay: '[Demain à] LT',
32 | nextWeek: 'dddd [à] LT',
33 | lastDay: '[Hier à] LT',
34 | lastWeek: 'dddd [dernier à] LT',
35 | sameElse: 'L'
36 | },
37 | relativeTime : {
38 | future : 'dans %s',
39 | past : 'il y a %s',
40 | s : 'quelques secondes',
41 | m : 'une minute',
42 | mm : '%d minutes',
43 | h : 'une heure',
44 | hh : '%d heures',
45 | d : 'un jour',
46 | dd : '%d jours',
47 | M : 'un mois',
48 | MM : '%d mois',
49 | y : 'un an',
50 | yy : '%d ans'
51 | },
52 | ordinalParse: /\d{1,2}(er|)/,
53 | ordinal : function (number) {
54 | return number + (number === 1 ? 'er' : '');
55 | },
56 | week : {
57 | dow : 1, // Monday is the first day of the week.
58 | doy : 4 // The week that contains Jan 4th is the first week of the year.
59 | }
60 | });
61 |
62 | return fr;
63 |
64 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/fy.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : frisian (fy)
3 | //! author : Robin van der Vliet : https://github.com/robin0van0der0v
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
14 | monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
15 |
16 | var fy = moment.defineLocale('fy', {
17 | months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
18 | monthsShort : function (m, format) {
19 | if (/-MMM-/.test(format)) {
20 | return monthsShortWithoutDots[m.month()];
21 | } else {
22 | return monthsShortWithDots[m.month()];
23 | }
24 | },
25 | monthsParseExact : true,
26 | weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
27 | weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
28 | weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
29 | weekdaysParseExact : true,
30 | longDateFormat : {
31 | LT : 'HH:mm',
32 | LTS : 'HH:mm:ss',
33 | L : 'DD-MM-YYYY',
34 | LL : 'D MMMM YYYY',
35 | LLL : 'D MMMM YYYY HH:mm',
36 | LLLL : 'dddd D MMMM YYYY HH:mm'
37 | },
38 | calendar : {
39 | sameDay: '[hjoed om] LT',
40 | nextDay: '[moarn om] LT',
41 | nextWeek: 'dddd [om] LT',
42 | lastDay: '[juster om] LT',
43 | lastWeek: '[ôfrûne] dddd [om] LT',
44 | sameElse: 'L'
45 | },
46 | relativeTime : {
47 | future : 'oer %s',
48 | past : '%s lyn',
49 | s : 'in pear sekonden',
50 | m : 'ien minút',
51 | mm : '%d minuten',
52 | h : 'ien oere',
53 | hh : '%d oeren',
54 | d : 'ien dei',
55 | dd : '%d dagen',
56 | M : 'ien moanne',
57 | MM : '%d moannen',
58 | y : 'ien jier',
59 | yy : '%d jierren'
60 | },
61 | ordinalParse: /\d{1,2}(ste|de)/,
62 | ordinal : function (number) {
63 | return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
64 | },
65 | week : {
66 | dow : 1, // Monday is the first day of the week.
67 | doy : 4 // The week that contains Jan 4th is the first week of the year.
68 | }
69 | });
70 |
71 | return fy;
72 |
73 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/gd.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : great britain scottish gealic (gd)
3 | //! author : Jon Ashdown : https://github.com/jonashdown
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var months = [
14 | 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
15 | ];
16 |
17 | var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
18 |
19 | var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
20 |
21 | var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
22 |
23 | var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
24 |
25 | var gd = moment.defineLocale('gd', {
26 | months : months,
27 | monthsShort : monthsShort,
28 | monthsParseExact : true,
29 | weekdays : weekdays,
30 | weekdaysShort : weekdaysShort,
31 | weekdaysMin : weekdaysMin,
32 | longDateFormat : {
33 | LT : 'HH:mm',
34 | LTS : 'HH:mm:ss',
35 | L : 'DD/MM/YYYY',
36 | LL : 'D MMMM YYYY',
37 | LLL : 'D MMMM YYYY HH:mm',
38 | LLLL : 'dddd, D MMMM YYYY HH:mm'
39 | },
40 | calendar : {
41 | sameDay : '[An-diugh aig] LT',
42 | nextDay : '[A-màireach aig] LT',
43 | nextWeek : 'dddd [aig] LT',
44 | lastDay : '[An-dè aig] LT',
45 | lastWeek : 'dddd [seo chaidh] [aig] LT',
46 | sameElse : 'L'
47 | },
48 | relativeTime : {
49 | future : 'ann an %s',
50 | past : 'bho chionn %s',
51 | s : 'beagan diogan',
52 | m : 'mionaid',
53 | mm : '%d mionaidean',
54 | h : 'uair',
55 | hh : '%d uairean',
56 | d : 'latha',
57 | dd : '%d latha',
58 | M : 'mìos',
59 | MM : '%d mìosan',
60 | y : 'bliadhna',
61 | yy : '%d bliadhna'
62 | },
63 | ordinalParse : /\d{1,2}(d|na|mh)/,
64 | ordinal : function (number) {
65 | var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
66 | return number + output;
67 | },
68 | week : {
69 | dow : 1, // Monday is the first day of the week.
70 | doy : 4 // The week that contains Jan 4th is the first week of the year.
71 | }
72 | });
73 |
74 | return gd;
75 |
76 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/it.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : italian (it)
3 | //! author : Lorenzo : https://github.com/aliem
4 | //! author: Mattia Larentis: https://github.com/nostalgiaz
5 |
6 | ;(function (global, factory) {
7 | typeof exports === 'object' && typeof module !== 'undefined'
8 | && typeof require === 'function' ? factory(require('../moment')) :
9 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
10 | factory(global.moment)
11 | }(this, function (moment) { 'use strict';
12 |
13 |
14 | var it = moment.defineLocale('it', {
15 | months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
16 | monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
17 | weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
18 | weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
19 | weekdaysMin : 'Do_Lu_Ma_Me_Gi_Ve_Sa'.split('_'),
20 | longDateFormat : {
21 | LT : 'HH:mm',
22 | LTS : 'HH:mm:ss',
23 | L : 'DD/MM/YYYY',
24 | LL : 'D MMMM YYYY',
25 | LLL : 'D MMMM YYYY HH:mm',
26 | LLLL : 'dddd, D MMMM YYYY HH:mm'
27 | },
28 | calendar : {
29 | sameDay: '[Oggi alle] LT',
30 | nextDay: '[Domani alle] LT',
31 | nextWeek: 'dddd [alle] LT',
32 | lastDay: '[Ieri alle] LT',
33 | lastWeek: function () {
34 | switch (this.day()) {
35 | case 0:
36 | return '[la scorsa] dddd [alle] LT';
37 | default:
38 | return '[lo scorso] dddd [alle] LT';
39 | }
40 | },
41 | sameElse: 'L'
42 | },
43 | relativeTime : {
44 | future : function (s) {
45 | return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
46 | },
47 | past : '%s fa',
48 | s : 'alcuni secondi',
49 | m : 'un minuto',
50 | mm : '%d minuti',
51 | h : 'un\'ora',
52 | hh : '%d ore',
53 | d : 'un giorno',
54 | dd : '%d giorni',
55 | M : 'un mese',
56 | MM : '%d mesi',
57 | y : 'un anno',
58 | yy : '%d anni'
59 | },
60 | ordinalParse : /\d{1,2}º/,
61 | ordinal: '%dº',
62 | week : {
63 | dow : 1, // Monday is the first day of the week.
64 | doy : 4 // The week that contains Jan 4th is the first week of the year.
65 | }
66 | });
67 |
68 | return it;
69 |
70 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/ja.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : japanese (ja)
3 | //! author : LI Long : https://github.com/baryon
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var ja = moment.defineLocale('ja', {
14 | months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
15 | monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
16 | weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
17 | weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
18 | weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
19 | longDateFormat : {
20 | LT : 'Ah時m分',
21 | LTS : 'Ah時m分s秒',
22 | L : 'YYYY/MM/DD',
23 | LL : 'YYYY年M月D日',
24 | LLL : 'YYYY年M月D日Ah時m分',
25 | LLLL : 'YYYY年M月D日Ah時m分 dddd'
26 | },
27 | meridiemParse: /午前|午後/i,
28 | isPM : function (input) {
29 | return input === '午後';
30 | },
31 | meridiem : function (hour, minute, isLower) {
32 | if (hour < 12) {
33 | return '午前';
34 | } else {
35 | return '午後';
36 | }
37 | },
38 | calendar : {
39 | sameDay : '[今日] LT',
40 | nextDay : '[明日] LT',
41 | nextWeek : '[来週]dddd LT',
42 | lastDay : '[昨日] LT',
43 | lastWeek : '[前週]dddd LT',
44 | sameElse : 'L'
45 | },
46 | ordinalParse : /\d{1,2}日/,
47 | ordinal : function (number, period) {
48 | switch (period) {
49 | case 'd':
50 | case 'D':
51 | case 'DDD':
52 | return number + '日';
53 | default:
54 | return number;
55 | }
56 | },
57 | relativeTime : {
58 | future : '%s後',
59 | past : '%s前',
60 | s : '数秒',
61 | m : '1分',
62 | mm : '%d分',
63 | h : '1時間',
64 | hh : '%d時間',
65 | d : '1日',
66 | dd : '%d日',
67 | M : '1ヶ月',
68 | MM : '%dヶ月',
69 | y : '1年',
70 | yy : '%d年'
71 | }
72 | });
73 |
74 | return ja;
75 |
76 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/kk.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : kazakh (kk)
3 | //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var suffixes = {
14 | 0: '-ші',
15 | 1: '-ші',
16 | 2: '-ші',
17 | 3: '-ші',
18 | 4: '-ші',
19 | 5: '-ші',
20 | 6: '-шы',
21 | 7: '-ші',
22 | 8: '-ші',
23 | 9: '-шы',
24 | 10: '-шы',
25 | 20: '-шы',
26 | 30: '-шы',
27 | 40: '-шы',
28 | 50: '-ші',
29 | 60: '-шы',
30 | 70: '-ші',
31 | 80: '-ші',
32 | 90: '-шы',
33 | 100: '-ші'
34 | };
35 |
36 | var kk = moment.defineLocale('kk', {
37 | months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
38 | monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
39 | weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
40 | weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
41 | weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
42 | longDateFormat : {
43 | LT : 'HH:mm',
44 | LTS : 'HH:mm:ss',
45 | L : 'DD.MM.YYYY',
46 | LL : 'D MMMM YYYY',
47 | LLL : 'D MMMM YYYY HH:mm',
48 | LLLL : 'dddd, D MMMM YYYY HH:mm'
49 | },
50 | calendar : {
51 | sameDay : '[Бүгін сағат] LT',
52 | nextDay : '[Ертең сағат] LT',
53 | nextWeek : 'dddd [сағат] LT',
54 | lastDay : '[Кеше сағат] LT',
55 | lastWeek : '[Өткен аптаның] dddd [сағат] LT',
56 | sameElse : 'L'
57 | },
58 | relativeTime : {
59 | future : '%s ішінде',
60 | past : '%s бұрын',
61 | s : 'бірнеше секунд',
62 | m : 'бір минут',
63 | mm : '%d минут',
64 | h : 'бір сағат',
65 | hh : '%d сағат',
66 | d : 'бір күн',
67 | dd : '%d күн',
68 | M : 'бір ай',
69 | MM : '%d ай',
70 | y : 'бір жыл',
71 | yy : '%d жыл'
72 | },
73 | ordinalParse: /\d{1,2}-(ші|шы)/,
74 | ordinal : function (number) {
75 | var a = number % 10,
76 | b = number >= 100 ? 100 : null;
77 | return number + (suffixes[number] || suffixes[a] || suffixes[b]);
78 | },
79 | week : {
80 | dow : 1, // Monday is the first day of the week.
81 | doy : 7 // The week that contains Jan 1st is the first week of the year.
82 | }
83 | });
84 |
85 | return kk;
86 |
87 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/km.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : khmer (km)
3 | //! author : Kruy Vanna : https://github.com/kruyvanna
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var km = moment.defineLocale('km', {
14 | months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
15 | monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
16 | weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
17 | weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
18 | weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
19 | longDateFormat: {
20 | LT: 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L: 'DD/MM/YYYY',
23 | LL: 'D MMMM YYYY',
24 | LLL: 'D MMMM YYYY HH:mm',
25 | LLLL: 'dddd, D MMMM YYYY HH:mm'
26 | },
27 | calendar: {
28 | sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
29 | nextDay: '[ស្អែក ម៉ោង] LT',
30 | nextWeek: 'dddd [ម៉ោង] LT',
31 | lastDay: '[ម្សិលមិញ ម៉ោង] LT',
32 | lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
33 | sameElse: 'L'
34 | },
35 | relativeTime: {
36 | future: '%sទៀត',
37 | past: '%sមុន',
38 | s: 'ប៉ុន្មានវិនាទី',
39 | m: 'មួយនាទី',
40 | mm: '%d នាទី',
41 | h: 'មួយម៉ោង',
42 | hh: '%d ម៉ោង',
43 | d: 'មួយថ្ងៃ',
44 | dd: '%d ថ្ងៃ',
45 | M: 'មួយខែ',
46 | MM: '%d ខែ',
47 | y: 'មួយឆ្នាំ',
48 | yy: '%d ឆ្នាំ'
49 | },
50 | week: {
51 | dow: 1, // Monday is the first day of the week.
52 | doy: 4 // The week that contains Jan 4th is the first week of the year.
53 | }
54 | });
55 |
56 | return km;
57 |
58 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/ko.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : korean (ko)
3 | //!
4 | //! authors
5 | //!
6 | //! - Kyungwook, Park : https://github.com/kyungw00k
7 | //! - Jeeeyul Lee
8 |
9 | ;(function (global, factory) {
10 | typeof exports === 'object' && typeof module !== 'undefined'
11 | && typeof require === 'function' ? factory(require('../moment')) :
12 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
13 | factory(global.moment)
14 | }(this, function (moment) { 'use strict';
15 |
16 |
17 | var ko = moment.defineLocale('ko', {
18 | months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
19 | monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
20 | weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
21 | weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
22 | weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
23 | longDateFormat : {
24 | LT : 'A h시 m분',
25 | LTS : 'A h시 m분 s초',
26 | L : 'YYYY.MM.DD',
27 | LL : 'YYYY년 MMMM D일',
28 | LLL : 'YYYY년 MMMM D일 A h시 m분',
29 | LLLL : 'YYYY년 MMMM D일 dddd A h시 m분'
30 | },
31 | calendar : {
32 | sameDay : '오늘 LT',
33 | nextDay : '내일 LT',
34 | nextWeek : 'dddd LT',
35 | lastDay : '어제 LT',
36 | lastWeek : '지난주 dddd LT',
37 | sameElse : 'L'
38 | },
39 | relativeTime : {
40 | future : '%s 후',
41 | past : '%s 전',
42 | s : '몇 초',
43 | ss : '%d초',
44 | m : '일분',
45 | mm : '%d분',
46 | h : '한 시간',
47 | hh : '%d시간',
48 | d : '하루',
49 | dd : '%d일',
50 | M : '한 달',
51 | MM : '%d달',
52 | y : '일 년',
53 | yy : '%d년'
54 | },
55 | ordinalParse : /\d{1,2}일/,
56 | ordinal : '%d일',
57 | meridiemParse : /오전|오후/,
58 | isPM : function (token) {
59 | return token === '오후';
60 | },
61 | meridiem : function (hour, minute, isUpper) {
62 | return hour < 12 ? '오전' : '오후';
63 | }
64 | });
65 |
66 | return ko;
67 |
68 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/lo.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : lao (lo)
3 | //! author : Ryan Hart : https://github.com/ryanhart2
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var lo = moment.defineLocale('lo', {
14 | months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
15 | monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
16 | weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
17 | weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
18 | weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
19 | weekdaysParseExact : true,
20 | longDateFormat : {
21 | LT : 'HH:mm',
22 | LTS : 'HH:mm:ss',
23 | L : 'DD/MM/YYYY',
24 | LL : 'D MMMM YYYY',
25 | LLL : 'D MMMM YYYY HH:mm',
26 | LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
27 | },
28 | meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
29 | isPM: function (input) {
30 | return input === 'ຕອນແລງ';
31 | },
32 | meridiem : function (hour, minute, isLower) {
33 | if (hour < 12) {
34 | return 'ຕອນເຊົ້າ';
35 | } else {
36 | return 'ຕອນແລງ';
37 | }
38 | },
39 | calendar : {
40 | sameDay : '[ມື້ນີ້ເວລາ] LT',
41 | nextDay : '[ມື້ອື່ນເວລາ] LT',
42 | nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
43 | lastDay : '[ມື້ວານນີ້ເວລາ] LT',
44 | lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
45 | sameElse : 'L'
46 | },
47 | relativeTime : {
48 | future : 'ອີກ %s',
49 | past : '%sຜ່ານມາ',
50 | s : 'ບໍ່ເທົ່າໃດວິນາທີ',
51 | m : '1 ນາທີ',
52 | mm : '%d ນາທີ',
53 | h : '1 ຊົ່ວໂມງ',
54 | hh : '%d ຊົ່ວໂມງ',
55 | d : '1 ມື້',
56 | dd : '%d ມື້',
57 | M : '1 ເດືອນ',
58 | MM : '%d ເດືອນ',
59 | y : '1 ປີ',
60 | yy : '%d ປີ'
61 | },
62 | ordinalParse: /(ທີ່)\d{1,2}/,
63 | ordinal : function (number) {
64 | return 'ທີ່' + number;
65 | }
66 | });
67 |
68 | return lo;
69 |
70 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/nb.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : norwegian bokmål (nb)
3 | //! authors : Espen Hovlandsdal : https://github.com/rexxars
4 | //! Sigurd Gartmann : https://github.com/sigurdga
5 |
6 | ;(function (global, factory) {
7 | typeof exports === 'object' && typeof module !== 'undefined'
8 | && typeof require === 'function' ? factory(require('../moment')) :
9 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
10 | factory(global.moment)
11 | }(this, function (moment) { 'use strict';
12 |
13 |
14 | var nb = moment.defineLocale('nb', {
15 | months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
16 | monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
17 | monthsParseExact : true,
18 | weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
19 | weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
20 | weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
21 | weekdaysParseExact : true,
22 | longDateFormat : {
23 | LT : 'HH:mm',
24 | LTS : 'HH:mm:ss',
25 | L : 'DD.MM.YYYY',
26 | LL : 'D. MMMM YYYY',
27 | LLL : 'D. MMMM YYYY [kl.] HH:mm',
28 | LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
29 | },
30 | calendar : {
31 | sameDay: '[i dag kl.] LT',
32 | nextDay: '[i morgen kl.] LT',
33 | nextWeek: 'dddd [kl.] LT',
34 | lastDay: '[i går kl.] LT',
35 | lastWeek: '[forrige] dddd [kl.] LT',
36 | sameElse: 'L'
37 | },
38 | relativeTime : {
39 | future : 'om %s',
40 | past : '%s siden',
41 | s : 'noen sekunder',
42 | m : 'ett minutt',
43 | mm : '%d minutter',
44 | h : 'en time',
45 | hh : '%d timer',
46 | d : 'en dag',
47 | dd : '%d dager',
48 | M : 'en måned',
49 | MM : '%d måneder',
50 | y : 'ett år',
51 | yy : '%d år'
52 | },
53 | ordinalParse: /\d{1,2}\./,
54 | ordinal : '%d.',
55 | week : {
56 | dow : 1, // Monday is the first day of the week.
57 | doy : 4 // The week that contains Jan 4th is the first week of the year.
58 | }
59 | });
60 |
61 | return nb;
62 |
63 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/nl.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : dutch (nl)
3 | //! author : Joris Röling : https://github.com/jjupiter
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
14 | monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
15 |
16 | var nl = moment.defineLocale('nl', {
17 | months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
18 | monthsShort : function (m, format) {
19 | if (/-MMM-/.test(format)) {
20 | return monthsShortWithoutDots[m.month()];
21 | } else {
22 | return monthsShortWithDots[m.month()];
23 | }
24 | },
25 | monthsParseExact : true,
26 | weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
27 | weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
28 | weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
29 | weekdaysParseExact : true,
30 | longDateFormat : {
31 | LT : 'HH:mm',
32 | LTS : 'HH:mm:ss',
33 | L : 'DD-MM-YYYY',
34 | LL : 'D MMMM YYYY',
35 | LLL : 'D MMMM YYYY HH:mm',
36 | LLLL : 'dddd D MMMM YYYY HH:mm'
37 | },
38 | calendar : {
39 | sameDay: '[vandaag om] LT',
40 | nextDay: '[morgen om] LT',
41 | nextWeek: 'dddd [om] LT',
42 | lastDay: '[gisteren om] LT',
43 | lastWeek: '[afgelopen] dddd [om] LT',
44 | sameElse: 'L'
45 | },
46 | relativeTime : {
47 | future : 'over %s',
48 | past : '%s geleden',
49 | s : 'een paar seconden',
50 | m : 'één minuut',
51 | mm : '%d minuten',
52 | h : 'één uur',
53 | hh : '%d uur',
54 | d : 'één dag',
55 | dd : '%d dagen',
56 | M : 'één maand',
57 | MM : '%d maanden',
58 | y : 'één jaar',
59 | yy : '%d jaar'
60 | },
61 | ordinalParse: /\d{1,2}(ste|de)/,
62 | ordinal : function (number) {
63 | return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
64 | },
65 | week : {
66 | dow : 1, // Monday is the first day of the week.
67 | doy : 4 // The week that contains Jan 4th is the first week of the year.
68 | }
69 | });
70 |
71 | return nl;
72 |
73 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/nn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : norwegian nynorsk (nn)
3 | //! author : https://github.com/mechuwind
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var nn = moment.defineLocale('nn', {
14 | months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
15 | monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
16 | weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
17 | weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
18 | weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L : 'DD.MM.YYYY',
23 | LL : 'D. MMMM YYYY',
24 | LLL : 'D. MMMM YYYY [kl.] H:mm',
25 | LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
26 | },
27 | calendar : {
28 | sameDay: '[I dag klokka] LT',
29 | nextDay: '[I morgon klokka] LT',
30 | nextWeek: 'dddd [klokka] LT',
31 | lastDay: '[I går klokka] LT',
32 | lastWeek: '[Føregåande] dddd [klokka] LT',
33 | sameElse: 'L'
34 | },
35 | relativeTime : {
36 | future : 'om %s',
37 | past : '%s sidan',
38 | s : 'nokre sekund',
39 | m : 'eit minutt',
40 | mm : '%d minutt',
41 | h : 'ein time',
42 | hh : '%d timar',
43 | d : 'ein dag',
44 | dd : '%d dagar',
45 | M : 'ein månad',
46 | MM : '%d månader',
47 | y : 'eit år',
48 | yy : '%d år'
49 | },
50 | ordinalParse: /\d{1,2}\./,
51 | ordinal : '%d.',
52 | week : {
53 | dow : 1, // Monday is the first day of the week.
54 | doy : 4 // The week that contains Jan 4th is the first week of the year.
55 | }
56 | });
57 |
58 | return nn;
59 |
60 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/pt-br.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : brazilian portuguese (pt-br)
3 | //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var pt_br = moment.defineLocale('pt-br', {
14 | months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
15 | monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
16 | weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
17 | weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
18 | weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
19 | weekdaysParseExact : true,
20 | longDateFormat : {
21 | LT : 'HH:mm',
22 | LTS : 'HH:mm:ss',
23 | L : 'DD/MM/YYYY',
24 | LL : 'D [de] MMMM [de] YYYY',
25 | LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
26 | LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
27 | },
28 | calendar : {
29 | sameDay: '[Hoje às] LT',
30 | nextDay: '[Amanhã às] LT',
31 | nextWeek: 'dddd [às] LT',
32 | lastDay: '[Ontem às] LT',
33 | lastWeek: function () {
34 | return (this.day() === 0 || this.day() === 6) ?
35 | '[Último] dddd [às] LT' : // Saturday + Sunday
36 | '[Última] dddd [às] LT'; // Monday - Friday
37 | },
38 | sameElse: 'L'
39 | },
40 | relativeTime : {
41 | future : 'em %s',
42 | past : '%s atrás',
43 | s : 'poucos segundos',
44 | m : 'um minuto',
45 | mm : '%d minutos',
46 | h : 'uma hora',
47 | hh : '%d horas',
48 | d : 'um dia',
49 | dd : '%d dias',
50 | M : 'um mês',
51 | MM : '%d meses',
52 | y : 'um ano',
53 | yy : '%d anos'
54 | },
55 | ordinalParse: /\d{1,2}º/,
56 | ordinal : '%dº'
57 | });
58 |
59 | return pt_br;
60 |
61 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/pt.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : portuguese (pt)
3 | //! author : Jefferson : https://github.com/jalex79
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var pt = moment.defineLocale('pt', {
14 | months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
15 | monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
16 | weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
17 | weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
18 | weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
19 | weekdaysParseExact : true,
20 | longDateFormat : {
21 | LT : 'HH:mm',
22 | LTS : 'HH:mm:ss',
23 | L : 'DD/MM/YYYY',
24 | LL : 'D [de] MMMM [de] YYYY',
25 | LLL : 'D [de] MMMM [de] YYYY HH:mm',
26 | LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
27 | },
28 | calendar : {
29 | sameDay: '[Hoje às] LT',
30 | nextDay: '[Amanhã às] LT',
31 | nextWeek: 'dddd [às] LT',
32 | lastDay: '[Ontem às] LT',
33 | lastWeek: function () {
34 | return (this.day() === 0 || this.day() === 6) ?
35 | '[Último] dddd [às] LT' : // Saturday + Sunday
36 | '[Última] dddd [às] LT'; // Monday - Friday
37 | },
38 | sameElse: 'L'
39 | },
40 | relativeTime : {
41 | future : 'em %s',
42 | past : 'há %s',
43 | s : 'segundos',
44 | m : 'um minuto',
45 | mm : '%d minutos',
46 | h : 'uma hora',
47 | hh : '%d horas',
48 | d : 'um dia',
49 | dd : '%d dias',
50 | M : 'um mês',
51 | MM : '%d meses',
52 | y : 'um ano',
53 | yy : '%d anos'
54 | },
55 | ordinalParse: /\d{1,2}º/,
56 | ordinal : '%dº',
57 | week : {
58 | dow : 1, // Monday is the first day of the week.
59 | doy : 4 // The week that contains Jan 4th is the first week of the year.
60 | }
61 | });
62 |
63 | return pt;
64 |
65 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/ro.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : romanian (ro)
3 | //! author : Vlad Gurdiga : https://github.com/gurdiga
4 | //! author : Valentin Agachi : https://github.com/avaly
5 |
6 | ;(function (global, factory) {
7 | typeof exports === 'object' && typeof module !== 'undefined'
8 | && typeof require === 'function' ? factory(require('../moment')) :
9 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
10 | factory(global.moment)
11 | }(this, function (moment) { 'use strict';
12 |
13 |
14 | function relativeTimeWithPlural(number, withoutSuffix, key) {
15 | var format = {
16 | 'mm': 'minute',
17 | 'hh': 'ore',
18 | 'dd': 'zile',
19 | 'MM': 'luni',
20 | 'yy': 'ani'
21 | },
22 | separator = ' ';
23 | if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
24 | separator = ' de ';
25 | }
26 | return number + separator + format[key];
27 | }
28 |
29 | var ro = moment.defineLocale('ro', {
30 | months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
31 | monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
32 | monthsParseExact: true,
33 | weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
34 | weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
35 | weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
36 | longDateFormat : {
37 | LT : 'H:mm',
38 | LTS : 'H:mm:ss',
39 | L : 'DD.MM.YYYY',
40 | LL : 'D MMMM YYYY',
41 | LLL : 'D MMMM YYYY H:mm',
42 | LLLL : 'dddd, D MMMM YYYY H:mm'
43 | },
44 | calendar : {
45 | sameDay: '[azi la] LT',
46 | nextDay: '[mâine la] LT',
47 | nextWeek: 'dddd [la] LT',
48 | lastDay: '[ieri la] LT',
49 | lastWeek: '[fosta] dddd [la] LT',
50 | sameElse: 'L'
51 | },
52 | relativeTime : {
53 | future : 'peste %s',
54 | past : '%s în urmă',
55 | s : 'câteva secunde',
56 | m : 'un minut',
57 | mm : relativeTimeWithPlural,
58 | h : 'o oră',
59 | hh : relativeTimeWithPlural,
60 | d : 'o zi',
61 | dd : relativeTimeWithPlural,
62 | M : 'o lună',
63 | MM : relativeTimeWithPlural,
64 | y : 'un an',
65 | yy : relativeTimeWithPlural
66 | },
67 | week : {
68 | dow : 1, // Monday is the first day of the week.
69 | doy : 7 // The week that contains Jan 1st is the first week of the year.
70 | }
71 | });
72 |
73 | return ro;
74 |
75 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/se.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Northern Sami (se)
3 | //! authors : Bård Rolstad Henriksen : https://github.com/karamell
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 |
14 | var se = moment.defineLocale('se', {
15 | months : 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split('_'),
16 | monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
17 | weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
18 | weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
19 | weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
20 | longDateFormat : {
21 | LT : 'HH:mm',
22 | LTS : 'HH:mm:ss',
23 | L : 'DD.MM.YYYY',
24 | LL : 'MMMM D. [b.] YYYY',
25 | LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
26 | LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
27 | },
28 | calendar : {
29 | sameDay: '[otne ti] LT',
30 | nextDay: '[ihttin ti] LT',
31 | nextWeek: 'dddd [ti] LT',
32 | lastDay: '[ikte ti] LT',
33 | lastWeek: '[ovddit] dddd [ti] LT',
34 | sameElse: 'L'
35 | },
36 | relativeTime : {
37 | future : '%s geažes',
38 | past : 'maŋit %s',
39 | s : 'moadde sekunddat',
40 | m : 'okta minuhta',
41 | mm : '%d minuhtat',
42 | h : 'okta diimmu',
43 | hh : '%d diimmut',
44 | d : 'okta beaivi',
45 | dd : '%d beaivvit',
46 | M : 'okta mánnu',
47 | MM : '%d mánut',
48 | y : 'okta jahki',
49 | yy : '%d jagit'
50 | },
51 | ordinalParse: /\d{1,2}\./,
52 | ordinal : '%d.',
53 | week : {
54 | dow : 1, // Monday is the first day of the week.
55 | doy : 4 // The week that contains Jan 4th is the first week of the year.
56 | }
57 | });
58 |
59 | return se;
60 |
61 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/si.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Sinhalese (si)
3 | //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | /*jshint -W100*/
14 | var si = moment.defineLocale('si', {
15 | months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
16 | monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
17 | weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
18 | weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'),
19 | weekdaysMin : 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'),
20 | weekdaysParseExact : true,
21 | longDateFormat : {
22 | LT : 'a h:mm',
23 | LTS : 'a h:mm:ss',
24 | L : 'YYYY/MM/DD',
25 | LL : 'YYYY MMMM D',
26 | LLL : 'YYYY MMMM D, a h:mm',
27 | LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
28 | },
29 | calendar : {
30 | sameDay : '[අද] LT[ට]',
31 | nextDay : '[හෙට] LT[ට]',
32 | nextWeek : 'dddd LT[ට]',
33 | lastDay : '[ඊයේ] LT[ට]',
34 | lastWeek : '[පසුගිය] dddd LT[ට]',
35 | sameElse : 'L'
36 | },
37 | relativeTime : {
38 | future : '%sකින්',
39 | past : '%sකට පෙර',
40 | s : 'තත්පර කිහිපය',
41 | m : 'මිනිත්තුව',
42 | mm : 'මිනිත්තු %d',
43 | h : 'පැය',
44 | hh : 'පැය %d',
45 | d : 'දිනය',
46 | dd : 'දින %d',
47 | M : 'මාසය',
48 | MM : 'මාස %d',
49 | y : 'වසර',
50 | yy : 'වසර %d'
51 | },
52 | ordinalParse: /\d{1,2} වැනි/,
53 | ordinal : function (number) {
54 | return number + ' වැනි';
55 | },
56 | meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
57 | isPM : function (input) {
58 | return input === 'ප.ව.' || input === 'පස් වරු';
59 | },
60 | meridiem : function (hours, minutes, isLower) {
61 | if (hours > 11) {
62 | return isLower ? 'ප.ව.' : 'පස් වරු';
63 | } else {
64 | return isLower ? 'පෙ.ව.' : 'පෙර වරු';
65 | }
66 | }
67 | });
68 |
69 | return si;
70 |
71 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/sq.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Albanian (sq)
3 | //! author : Flakërim Ismani : https://github.com/flakerimi
4 | //! author: Menelion Elensúle: https://github.com/Oire (tests)
5 | //! author : Oerd Cukalla : https://github.com/oerd (fixes)
6 |
7 | ;(function (global, factory) {
8 | typeof exports === 'object' && typeof module !== 'undefined'
9 | && typeof require === 'function' ? factory(require('../moment')) :
10 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
11 | factory(global.moment)
12 | }(this, function (moment) { 'use strict';
13 |
14 |
15 | var sq = moment.defineLocale('sq', {
16 | months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
17 | monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
18 | weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
19 | weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
20 | weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
21 | weekdaysParseExact : true,
22 | meridiemParse: /PD|MD/,
23 | isPM: function (input) {
24 | return input.charAt(0) === 'M';
25 | },
26 | meridiem : function (hours, minutes, isLower) {
27 | return hours < 12 ? 'PD' : 'MD';
28 | },
29 | longDateFormat : {
30 | LT : 'HH:mm',
31 | LTS : 'HH:mm:ss',
32 | L : 'DD/MM/YYYY',
33 | LL : 'D MMMM YYYY',
34 | LLL : 'D MMMM YYYY HH:mm',
35 | LLLL : 'dddd, D MMMM YYYY HH:mm'
36 | },
37 | calendar : {
38 | sameDay : '[Sot në] LT',
39 | nextDay : '[Nesër në] LT',
40 | nextWeek : 'dddd [në] LT',
41 | lastDay : '[Dje në] LT',
42 | lastWeek : 'dddd [e kaluar në] LT',
43 | sameElse : 'L'
44 | },
45 | relativeTime : {
46 | future : 'në %s',
47 | past : '%s më parë',
48 | s : 'disa sekonda',
49 | m : 'një minutë',
50 | mm : '%d minuta',
51 | h : 'një orë',
52 | hh : '%d orë',
53 | d : 'një ditë',
54 | dd : '%d ditë',
55 | M : 'një muaj',
56 | MM : '%d muaj',
57 | y : 'një vit',
58 | yy : '%d vite'
59 | },
60 | ordinalParse: /\d{1,2}\./,
61 | ordinal : '%d.',
62 | week : {
63 | dow : 1, // Monday is the first day of the week.
64 | doy : 4 // The week that contains Jan 4th is the first week of the year.
65 | }
66 | });
67 |
68 | return sq;
69 |
70 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/sv.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : swedish (sv)
3 | //! author : Jens Alm : https://github.com/ulmus
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var sv = moment.defineLocale('sv', {
14 | months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
15 | monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
16 | weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
17 | weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
18 | weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L : 'YYYY-MM-DD',
23 | LL : 'D MMMM YYYY',
24 | LLL : 'D MMMM YYYY [kl.] HH:mm',
25 | LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
26 | lll : 'D MMM YYYY HH:mm',
27 | llll : 'ddd D MMM YYYY HH:mm'
28 | },
29 | calendar : {
30 | sameDay: '[Idag] LT',
31 | nextDay: '[Imorgon] LT',
32 | lastDay: '[Igår] LT',
33 | nextWeek: '[På] dddd LT',
34 | lastWeek: '[I] dddd[s] LT',
35 | sameElse: 'L'
36 | },
37 | relativeTime : {
38 | future : 'om %s',
39 | past : 'för %s sedan',
40 | s : 'några sekunder',
41 | m : 'en minut',
42 | mm : '%d minuter',
43 | h : 'en timme',
44 | hh : '%d timmar',
45 | d : 'en dag',
46 | dd : '%d dagar',
47 | M : 'en månad',
48 | MM : '%d månader',
49 | y : 'ett år',
50 | yy : '%d år'
51 | },
52 | ordinalParse: /\d{1,2}(e|a)/,
53 | ordinal : function (number) {
54 | var b = number % 10,
55 | output = (~~(number % 100 / 10) === 1) ? 'e' :
56 | (b === 1) ? 'a' :
57 | (b === 2) ? 'a' :
58 | (b === 3) ? 'e' : 'e';
59 | return number + output;
60 | },
61 | week : {
62 | dow : 1, // Monday is the first day of the week.
63 | doy : 4 // The week that contains Jan 4th is the first week of the year.
64 | }
65 | });
66 |
67 | return sv;
68 |
69 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/sw.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : swahili (sw)
3 | //! author : Fahad Kassim : https://github.com/fadsel
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var sw = moment.defineLocale('sw', {
14 | months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
15 | monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
16 | weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
17 | weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
18 | weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
19 | weekdaysParseExact : true,
20 | longDateFormat : {
21 | LT : 'HH:mm',
22 | LTS : 'HH:mm:ss',
23 | L : 'DD.MM.YYYY',
24 | LL : 'D MMMM YYYY',
25 | LLL : 'D MMMM YYYY HH:mm',
26 | LLLL : 'dddd, D MMMM YYYY HH:mm'
27 | },
28 | calendar : {
29 | sameDay : '[leo saa] LT',
30 | nextDay : '[kesho saa] LT',
31 | nextWeek : '[wiki ijayo] dddd [saat] LT',
32 | lastDay : '[jana] LT',
33 | lastWeek : '[wiki iliyopita] dddd [saat] LT',
34 | sameElse : 'L'
35 | },
36 | relativeTime : {
37 | future : '%s baadaye',
38 | past : 'tokea %s',
39 | s : 'hivi punde',
40 | m : 'dakika moja',
41 | mm : 'dakika %d',
42 | h : 'saa limoja',
43 | hh : 'masaa %d',
44 | d : 'siku moja',
45 | dd : 'masiku %d',
46 | M : 'mwezi mmoja',
47 | MM : 'miezi %d',
48 | y : 'mwaka mmoja',
49 | yy : 'miaka %d'
50 | },
51 | week : {
52 | dow : 1, // Monday is the first day of the week.
53 | doy : 7 // The week that contains Jan 1st is the first week of the year.
54 | }
55 | });
56 |
57 | return sw;
58 |
59 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/th.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : thai (th)
3 | //! author : Kridsada Thanabulpong : https://github.com/sirn
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var th = moment.defineLocale('th', {
14 | months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
15 | monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'),
16 | monthsParseExact: true,
17 | weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
18 | weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
19 | weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
20 | weekdaysParseExact : true,
21 | longDateFormat : {
22 | LT : 'H นาฬิกา m นาที',
23 | LTS : 'H นาฬิกา m นาที s วินาที',
24 | L : 'YYYY/MM/DD',
25 | LL : 'D MMMM YYYY',
26 | LLL : 'D MMMM YYYY เวลา H นาฬิกา m นาที',
27 | LLLL : 'วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที'
28 | },
29 | meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
30 | isPM: function (input) {
31 | return input === 'หลังเที่ยง';
32 | },
33 | meridiem : function (hour, minute, isLower) {
34 | if (hour < 12) {
35 | return 'ก่อนเที่ยง';
36 | } else {
37 | return 'หลังเที่ยง';
38 | }
39 | },
40 | calendar : {
41 | sameDay : '[วันนี้ เวลา] LT',
42 | nextDay : '[พรุ่งนี้ เวลา] LT',
43 | nextWeek : 'dddd[หน้า เวลา] LT',
44 | lastDay : '[เมื่อวานนี้ เวลา] LT',
45 | lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
46 | sameElse : 'L'
47 | },
48 | relativeTime : {
49 | future : 'อีก %s',
50 | past : '%sที่แล้ว',
51 | s : 'ไม่กี่วินาที',
52 | m : '1 นาที',
53 | mm : '%d นาที',
54 | h : '1 ชั่วโมง',
55 | hh : '%d ชั่วโมง',
56 | d : '1 วัน',
57 | dd : '%d วัน',
58 | M : '1 เดือน',
59 | MM : '%d เดือน',
60 | y : '1 ปี',
61 | yy : '%d ปี'
62 | }
63 | });
64 |
65 | return th;
66 |
67 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/tl-ph.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Tagalog/Filipino (tl-ph)
3 | //! author : Dan Hagman
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var tl_ph = moment.defineLocale('tl-ph', {
14 | months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
15 | monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
16 | weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
17 | weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
18 | weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L : 'MM/D/YYYY',
23 | LL : 'MMMM D, YYYY',
24 | LLL : 'MMMM D, YYYY HH:mm',
25 | LLLL : 'dddd, MMMM DD, YYYY HH:mm'
26 | },
27 | calendar : {
28 | sameDay: '[Ngayon sa] LT',
29 | nextDay: '[Bukas sa] LT',
30 | nextWeek: 'dddd [sa] LT',
31 | lastDay: '[Kahapon sa] LT',
32 | lastWeek: 'dddd [huling linggo] LT',
33 | sameElse: 'L'
34 | },
35 | relativeTime : {
36 | future : 'sa loob ng %s',
37 | past : '%s ang nakalipas',
38 | s : 'ilang segundo',
39 | m : 'isang minuto',
40 | mm : '%d minuto',
41 | h : 'isang oras',
42 | hh : '%d oras',
43 | d : 'isang araw',
44 | dd : '%d araw',
45 | M : 'isang buwan',
46 | MM : '%d buwan',
47 | y : 'isang taon',
48 | yy : '%d taon'
49 | },
50 | ordinalParse: /\d{1,2}/,
51 | ordinal : function (number) {
52 | return number;
53 | },
54 | week : {
55 | dow : 1, // Monday is the first day of the week.
56 | doy : 4 // The week that contains Jan 4th is the first week of the year.
57 | }
58 | });
59 |
60 | return tl_ph;
61 |
62 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/tzm-latn.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Morocco Central Atlas Tamaziɣt in Latin (tzm-latn)
3 | //! author : Abdel Said : https://github.com/abdelsaid
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var tzm_latn = moment.defineLocale('tzm-latn', {
14 | months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
15 | monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
16 | weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
17 | weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
18 | weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L : 'DD/MM/YYYY',
23 | LL : 'D MMMM YYYY',
24 | LLL : 'D MMMM YYYY HH:mm',
25 | LLLL : 'dddd D MMMM YYYY HH:mm'
26 | },
27 | calendar : {
28 | sameDay: '[asdkh g] LT',
29 | nextDay: '[aska g] LT',
30 | nextWeek: 'dddd [g] LT',
31 | lastDay: '[assant g] LT',
32 | lastWeek: 'dddd [g] LT',
33 | sameElse: 'L'
34 | },
35 | relativeTime : {
36 | future : 'dadkh s yan %s',
37 | past : 'yan %s',
38 | s : 'imik',
39 | m : 'minuḍ',
40 | mm : '%d minuḍ',
41 | h : 'saɛa',
42 | hh : '%d tassaɛin',
43 | d : 'ass',
44 | dd : '%d ossan',
45 | M : 'ayowr',
46 | MM : '%d iyyirn',
47 | y : 'asgas',
48 | yy : '%d isgasn'
49 | },
50 | week : {
51 | dow : 6, // Saturday is the first day of the week.
52 | doy : 12 // The week that contains Jan 1st is the first week of the year.
53 | }
54 | });
55 |
56 | return tzm_latn;
57 |
58 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/tzm.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : Morocco Central Atlas Tamaziɣt (tzm)
3 | //! author : Abdel Said : https://github.com/abdelsaid
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var tzm = moment.defineLocale('tzm', {
14 | months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
15 | monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
16 | weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
17 | weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
18 | weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS: 'HH:mm:ss',
22 | L : 'DD/MM/YYYY',
23 | LL : 'D MMMM YYYY',
24 | LLL : 'D MMMM YYYY HH:mm',
25 | LLLL : 'dddd D MMMM YYYY HH:mm'
26 | },
27 | calendar : {
28 | sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
29 | nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
30 | nextWeek: 'dddd [ⴴ] LT',
31 | lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
32 | lastWeek: 'dddd [ⴴ] LT',
33 | sameElse: 'L'
34 | },
35 | relativeTime : {
36 | future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
37 | past : 'ⵢⴰⵏ %s',
38 | s : 'ⵉⵎⵉⴽ',
39 | m : 'ⵎⵉⵏⵓⴺ',
40 | mm : '%d ⵎⵉⵏⵓⴺ',
41 | h : 'ⵙⴰⵄⴰ',
42 | hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
43 | d : 'ⴰⵙⵙ',
44 | dd : '%d oⵙⵙⴰⵏ',
45 | M : 'ⴰⵢoⵓⵔ',
46 | MM : '%d ⵉⵢⵢⵉⵔⵏ',
47 | y : 'ⴰⵙⴳⴰⵙ',
48 | yy : '%d ⵉⵙⴳⴰⵙⵏ'
49 | },
50 | week : {
51 | dow : 6, // Saturday is the first day of the week.
52 | doy : 12 // The week that contains Jan 1st is the first week of the year.
53 | }
54 | });
55 |
56 | return tzm;
57 |
58 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/uz.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : uzbek (uz)
3 | //! author : Sardor Muminov : https://github.com/muminoff
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var uz = moment.defineLocale('uz', {
14 | months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
15 | monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
16 | weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
17 | weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
18 | weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
19 | longDateFormat : {
20 | LT : 'HH:mm',
21 | LTS : 'HH:mm:ss',
22 | L : 'DD/MM/YYYY',
23 | LL : 'D MMMM YYYY',
24 | LLL : 'D MMMM YYYY HH:mm',
25 | LLLL : 'D MMMM YYYY, dddd HH:mm'
26 | },
27 | calendar : {
28 | sameDay : '[Бугун соат] LT [да]',
29 | nextDay : '[Эртага] LT [да]',
30 | nextWeek : 'dddd [куни соат] LT [да]',
31 | lastDay : '[Кеча соат] LT [да]',
32 | lastWeek : '[Утган] dddd [куни соат] LT [да]',
33 | sameElse : 'L'
34 | },
35 | relativeTime : {
36 | future : 'Якин %s ичида',
37 | past : 'Бир неча %s олдин',
38 | s : 'фурсат',
39 | m : 'бир дакика',
40 | mm : '%d дакика',
41 | h : 'бир соат',
42 | hh : '%d соат',
43 | d : 'бир кун',
44 | dd : '%d кун',
45 | M : 'бир ой',
46 | MM : '%d ой',
47 | y : 'бир йил',
48 | yy : '%d йил'
49 | },
50 | week : {
51 | dow : 1, // Monday is the first day of the week.
52 | doy : 7 // The week that contains Jan 4th is the first week of the year.
53 | }
54 | });
55 |
56 | return uz;
57 |
58 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/vi.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : vietnamese (vi)
3 | //! author : Bang Nguyen : https://github.com/bangnk
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var vi = moment.defineLocale('vi', {
14 | months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
15 | monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
16 | monthsParseExact : true,
17 | weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
18 | weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
19 | weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20 | weekdaysParseExact : true,
21 | meridiemParse: /sa|ch/i,
22 | isPM : function (input) {
23 | return /^ch$/i.test(input);
24 | },
25 | meridiem : function (hours, minutes, isLower) {
26 | if (hours < 12) {
27 | return isLower ? 'sa' : 'SA';
28 | } else {
29 | return isLower ? 'ch' : 'CH';
30 | }
31 | },
32 | longDateFormat : {
33 | LT : 'HH:mm',
34 | LTS : 'HH:mm:ss',
35 | L : 'DD/MM/YYYY',
36 | LL : 'D MMMM [năm] YYYY',
37 | LLL : 'D MMMM [năm] YYYY HH:mm',
38 | LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
39 | l : 'DD/M/YYYY',
40 | ll : 'D MMM YYYY',
41 | lll : 'D MMM YYYY HH:mm',
42 | llll : 'ddd, D MMM YYYY HH:mm'
43 | },
44 | calendar : {
45 | sameDay: '[Hôm nay lúc] LT',
46 | nextDay: '[Ngày mai lúc] LT',
47 | nextWeek: 'dddd [tuần tới lúc] LT',
48 | lastDay: '[Hôm qua lúc] LT',
49 | lastWeek: 'dddd [tuần rồi lúc] LT',
50 | sameElse: 'L'
51 | },
52 | relativeTime : {
53 | future : '%s tới',
54 | past : '%s trước',
55 | s : 'vài giây',
56 | m : 'một phút',
57 | mm : '%d phút',
58 | h : 'một giờ',
59 | hh : '%d giờ',
60 | d : 'một ngày',
61 | dd : '%d ngày',
62 | M : 'một tháng',
63 | MM : '%d tháng',
64 | y : 'một năm',
65 | yy : '%d năm'
66 | },
67 | ordinalParse: /\d{1,2}/,
68 | ordinal : function (number) {
69 | return number;
70 | },
71 | week : {
72 | dow : 1, // Monday is the first day of the week.
73 | doy : 4 // The week that contains Jan 4th is the first week of the year.
74 | }
75 | });
76 |
77 | return vi;
78 |
79 | }));
--------------------------------------------------------------------------------
/plugin/moment/locale/x-pseudo.js:
--------------------------------------------------------------------------------
1 | //! moment.js locale configuration
2 | //! locale : pseudo (x-pseudo)
3 | //! author : Andrew Hood : https://github.com/andrewhood125
4 |
5 | ;(function (global, factory) {
6 | typeof exports === 'object' && typeof module !== 'undefined'
7 | && typeof require === 'function' ? factory(require('../moment')) :
8 | typeof define === 'function' && define.amd ? define(['moment'], factory) :
9 | factory(global.moment)
10 | }(this, function (moment) { 'use strict';
11 |
12 |
13 | var x_pseudo = moment.defineLocale('x-pseudo', {
14 | months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
15 | monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
16 | monthsParseExact : true,
17 | weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
18 | weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
19 | weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
20 | weekdaysParseExact : true,
21 | longDateFormat : {
22 | LT : 'HH:mm',
23 | L : 'DD/MM/YYYY',
24 | LL : 'D MMMM YYYY',
25 | LLL : 'D MMMM YYYY HH:mm',
26 | LLLL : 'dddd, D MMMM YYYY HH:mm'
27 | },
28 | calendar : {
29 | sameDay : '[T~ódá~ý át] LT',
30 | nextDay : '[T~ómó~rró~w át] LT',
31 | nextWeek : 'dddd [át] LT',
32 | lastDay : '[Ý~ést~érdá~ý át] LT',
33 | lastWeek : '[L~ást] dddd [át] LT',
34 | sameElse : 'L'
35 | },
36 | relativeTime : {
37 | future : 'í~ñ %s',
38 | past : '%s á~gó',
39 | s : 'á ~féw ~sécó~ñds',
40 | m : 'á ~míñ~úté',
41 | mm : '%d m~íñú~tés',
42 | h : 'á~ñ hó~úr',
43 | hh : '%d h~óúrs',
44 | d : 'á ~dáý',
45 | dd : '%d d~áýs',
46 | M : 'á ~móñ~th',
47 | MM : '%d m~óñt~hs',
48 | y : 'á ~ýéár',
49 | yy : '%d ý~éárs'
50 | },
51 | ordinalParse: /\d{1,2}(th|st|nd|rd)/,
52 | ordinal : function (number) {
53 | var b = number % 10,
54 | output = (~~(number % 100 / 10) === 1) ? 'th' :
55 | (b === 1) ? 'st' :
56 | (b === 2) ? 'nd' :
57 | (b === 3) ? 'rd' : 'th';
58 | return number + output;
59 | },
60 | week : {
61 | dow : 1, // Monday is the first day of the week.
62 | doy : 4 // The week that contains Jan 4th is the first week of the year.
63 | }
64 | });
65 |
66 | return x_pseudo;
67 |
68 | }));
--------------------------------------------------------------------------------
/plugin/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nativescript-toolbox",
3 | "description": "A NativeScript module that is a composition of useful classes, tools and helpers.",
4 | "version": "3.0.1",
5 | "nativescript": {
6 | "platforms": {
7 | "ios": "3.0.0",
8 | "android": "3.0.0"
9 | }
10 | },
11 | "repository": {
12 | "type": "git",
13 | "url": "https://github.com/mkloubert/nativescript-toolbox"
14 | },
15 | "keywords": [
16 | "NativeScript",
17 | "Tools",
18 | "Toolbox",
19 | "Helpers",
20 | "Classes",
21 | "Android",
22 | "SQLite",
23 | "iOS",
24 | "Strings",
25 | "Formatting",
26 | "Router",
27 | "Routes",
28 | "States",
29 | "Values",
30 | "Enumerables",
31 | "Arrays",
32 | "Lists",
33 | "Collections",
34 | "Sequences",
35 | "LINQ",
36 | "Bitmaps",
37 | "Images",
38 | "Functions",
39 | "Batches",
40 | "Executions",
41 | "API",
42 | "HTTP",
43 | "REST",
44 | "JSON",
45 | "XML",
46 | "Objects",
47 | "StatusBar",
48 | "GUID",
49 | "UUID",
50 | "Orientation",
51 | "Device",
52 | "Settings",
53 | "Clipboard",
54 | "Sleep",
55 | "Awake",
56 | "Modes",
57 | "Email",
58 | "Wifi",
59 | "Connectivity",
60 | "Markdown",
61 | "Vibration",
62 | "Vibrate",
63 | "HTML",
64 | "Maruku",
65 | "Gruber",
66 | "Parser",
67 | "Lazy"
68 | ],
69 | "author": {
70 | "name": "Marcel Joachim Kloubert",
71 | "email": "marcel.kloubert@gmx.net"
72 | },
73 | "license": {
74 | "type": "MIT",
75 | "url": "https://github.com/mkloubert/nativescript-toolbox/blob/master/LICENSE"
76 | },
77 | "bugs": {
78 | "url": "https://github.com/mkloubert/nativescript-toolbox/issues"
79 | },
80 | "homepage": "https://github.com/mkloubert/nativescript-toolbox",
81 | "readmeFilename": "README.md",
82 | "dependencies": {},
83 | "devDependencies": {
84 | "tns-core-modules": "^3.0.0 || ^3.0.0-rc.1",
85 | "tns-platform-declarations": "^3.0.0 || ^3.0.0-rc.1",
86 | "typescript": "^2.2.2"
87 | },
88 | "peerDependencies": {
89 | "tns-core-modules": "^3.0.0 || ^3.0.0-rc.1"
90 | },
91 | "scripts": {
92 | "postinstall": "tsc"
93 | }
94 | }
--------------------------------------------------------------------------------
/plugin/platforms/ios/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 | UIViewControllerBasedStatusBarAppearance
4 |
5 |
6 |
--------------------------------------------------------------------------------
/plugin/platforms/ios/build.xcconfig:
--------------------------------------------------------------------------------
1 | HEADER_SEARCH_PATHS = $(inherited) ${PROJECT_DIR}/../../node_modules/nativescript-toolbox/sqlite/platforms/ios
2 |
--------------------------------------------------------------------------------
/plugin/platforms/ios/module.modulemap:
--------------------------------------------------------------------------------
1 | module sqlite3 [system] {
2 | header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h"
3 | link "sqlite3"
4 | link "libsqlite3"
5 | export *
6 | }
7 |
8 |
--------------------------------------------------------------------------------
/plugin/references.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | ///
4 |
--------------------------------------------------------------------------------
/plugin/sqlite/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015, 2016 Nathanael Anderson
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/plugin/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es5",
5 | "sourceMap": true,
6 | "experimentalDecorators": true,
7 | "emitDecoratorMetadata": true,
8 | "noEmitHelpers": true,
9 | "noEmitOnError": true,
10 | "lib": ["es6", "dom"],
11 | "baseUrl": ".",
12 | "paths": {
13 | "*": [
14 | "./node_modules/tns-core-modules/*",
15 | "./node_modules/*"
16 | ]
17 | }
18 | }
19 | }
--------------------------------------------------------------------------------