pinyin-web.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = function (d, b) {
  4. extendStatics = Object.setPrototypeOf ||
  5. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  6. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  7. return extendStatics(d, b);
  8. };
  9. return function (d, b) {
  10. if (typeof b !== "function" && b !== null)
  11. throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
  12. extendStatics(d, b);
  13. function __() { this.constructor = d; }
  14. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  15. };
  16. })();
  17. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  18. if (k2 === undefined) k2 = k;
  19. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  20. }) : (function(o, m, k, k2) {
  21. if (k2 === undefined) k2 = k;
  22. o[k2] = m[k];
  23. }));
  24. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  25. Object.defineProperty(o, "default", { enumerable: true, value: v });
  26. }) : function(o, v) {
  27. o["default"] = v;
  28. });
  29. var __importStar = (this && this.__importStar) || function (mod) {
  30. if (mod && mod.__esModule) return mod;
  31. var result = {};
  32. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  33. __setModuleDefault(result, mod);
  34. return result;
  35. };
  36. Object.defineProperty(exports, "__esModule", { value: true });
  37. exports.compact = exports.compare = exports.pinyin = exports.Pinyin = void 0;
  38. var PinyinBase_1 = __importStar(require("./PinyinBase"));
  39. var Pinyin = (function (_super) {
  40. __extends(Pinyin, _super);
  41. function Pinyin() {
  42. return _super !== null && _super.apply(this, arguments) || this;
  43. }
  44. return Pinyin;
  45. }(PinyinBase_1.default));
  46. exports.Pinyin = Pinyin;
  47. exports.pinyin = (0, PinyinBase_1.getPinyinInstance)(new Pinyin());
  48. exports.default = exports.pinyin;
  49. exports.compare = exports.pinyin.compare;
  50. var util_1 = require("./util");
  51. Object.defineProperty(exports, "compact", { enumerable: true, get: function () { return util_1.compact; } });
  52. //# sourceMappingURL=pinyin-web.js.map