which uses a dynamically fetched padding-top property
+ // based on the video's w/h dimensions
+ var wrap = document.createElement('div');
+ wrap.className = 'fluid-vids';
+ wrap.style.position = 'relative';
+ wrap.style.marginBottom = '20px';
+ wrap.style.width = '100%';
+ wrap.style.paddingTop = videoRatio + '%';
+ // Fix for appear inside tabs tag.
+ (wrap.style.paddingTop === '') && (wrap.style.paddingTop = '50%');
+
+ // Add the iframe inside our newly created
+ var iframeParent = iframe.parentNode;
+ iframeParent.insertBefore(wrap, iframe);
+ wrap.appendChild(iframe);
+
+ // Additional adjustments for 163 Music
+ if (this.src.search('music.163.com') > 0) {
+ newDimension = getDimension($iframe);
+ var shouldRecalculateAspect = newDimension.width > oldDimension.width ||
+ newDimension.height < oldDimension.height;
+
+ // 163 Music Player has a fixed height, so we need to reset the aspect radio
+ if (shouldRecalculateAspect) {
+ wrap.style.paddingTop = getAspectRadio(newDimension.width, oldDimension.height) + '%';
+ }
+ }
+ }
+ });
+
+ function getDimension($element) {
+ return {
+ width: $element.width(),
+ height: $element.height()
+ };
+ }
+
+ function getAspectRadio(width, height) {
+ return height / width * 100;
+ }
+ },
+
+ /**
+ * Add `menu-item-active` class name to menu item
+ * via comparing location.path with menu item's href.
+ */
+ addActiveClassToMenuItem: function () {
+ var path = window.location.pathname;
+ path = path === '/' ? path : path.substring(0, path.length - 1);
+ $('.menu-item a[href^="' + path + '"]:first').parent().addClass('menu-item-active');
+ },
+
+ hasMobileUA: function () {
+ var nav = window.navigator;
+ var ua = nav.userAgent;
+ var pa = /iPad|iPhone|Android|Opera Mini|BlackBerry|webOS|UCWEB|Blazer|PSP|IEMobile|Symbian/g;
+
+ return pa.test(ua);
+ },
+
+ isTablet: function () {
+ return window.screen.width < 992 && window.screen.width > 767 && this.hasMobileUA();
+ },
+
+ isMobile: function () {
+ return window.screen.width < 767 && this.hasMobileUA();
+ },
+
+ isDesktop: function () {
+ return !this.isTablet() && !this.isMobile();
+ },
+
+ /**
+ * Escape meta symbols in jQuery selectors.
+ *
+ * @param selector
+ * @returns {string|void|XML|*}
+ */
+ escapeSelector: function (selector) {
+ return selector.replace(/[!"$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, '\\$&');
+ },
+
+ displaySidebar: function () {
+ if (!this.isDesktop() || this.isPisces() || this.isGemini()) {
+ return;
+ }
+ $('.sidebar-toggle').trigger('click');
+ },
+
+ isMist: function () {
+ return CONFIG.scheme === 'Mist';
+ },
+
+ isPisces: function () {
+ return CONFIG.scheme === 'Pisces';
+ },
+
+ isGemini: function () {
+ return CONFIG.scheme === 'Gemini';
+ },
+
+ getScrollbarWidth: function () {
+ var $div = $('
').addClass('scrollbar-measure').prependTo('body');
+ var div = $div[0];
+ var scrollbarWidth = div.offsetWidth - div.clientWidth;
+
+ $div.remove();
+
+ return scrollbarWidth;
+ },
+
+ /**
+ * Affix behaviour for Sidebar.
+ *
+ * @returns {Boolean}
+ */
+ needAffix: function () {
+ return this.isPisces() || this.isGemini();
+ }
+};
diff --git a/lib/Han/dist/font/han-space.otf b/lib/Han/dist/font/han-space.otf
new file mode 100644
index 0000000..845b1bc
Binary files /dev/null and b/lib/Han/dist/font/han-space.otf differ
diff --git a/lib/Han/dist/font/han-space.woff b/lib/Han/dist/font/han-space.woff
new file mode 100644
index 0000000..6ccc84f
Binary files /dev/null and b/lib/Han/dist/font/han-space.woff differ
diff --git a/lib/Han/dist/font/han.otf b/lib/Han/dist/font/han.otf
new file mode 100644
index 0000000..2ce2f46
Binary files /dev/null and b/lib/Han/dist/font/han.otf differ
diff --git a/lib/Han/dist/font/han.woff b/lib/Han/dist/font/han.woff
new file mode 100644
index 0000000..011e06c
Binary files /dev/null and b/lib/Han/dist/font/han.woff differ
diff --git a/lib/Han/dist/han.css b/lib/Han/dist/han.css
new file mode 100644
index 0000000..9bafab6
--- /dev/null
+++ b/lib/Han/dist/han.css
@@ -0,0 +1,1168 @@
+@charset "UTF-8";
+
+/*! 漢字標準格式 v3.3.0 | MIT License | css.hanzi.co */
+/*! Han.css: the CSS typography framework optimised for Hanzi */
+
+/* normalize.css v4.0.0 | MIT License | github.com/necolas/normalize.css */
+html {
+ font-family: sans-serif; /* 1 */
+ -ms-text-size-adjust: 100%; /* 2 */
+ -webkit-text-size-adjust: 100%; /* 2 */
+}
+body {
+ margin: 0;
+}
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+main,
+menu,
+nav,
+section,
+summary {
+ /* 1 */
+ display: block;
+}
+audio,
+canvas,
+progress,
+video {
+ display: inline-block;
+}
+audio:not([controls]) {
+ display: none;
+ height: 0;
+}
+progress {
+ vertical-align: baseline;
+}
+template,
+[hidden] {
+ display: none;
+}
+a {
+ background-color: transparent;
+}
+a:active,
+a:hover {
+ outline-width: 0;
+}
+abbr[title] {
+ border-bottom: none; /* 1 */
+ text-decoration: underline; /* 2 */
+ text-decoration: underline dotted; /* 2 */
+}
+b,
+strong {
+ font-weight: inherit;
+}
+b,
+strong {
+ font-weight: bolder;
+}
+dfn {
+ font-style: italic;
+}
+h1 {
+ font-size: 2em;
+ margin: .67em 0;
+}
+mark {
+ background-color: #ff0;
+ color: #000;
+}
+small {
+ font-size: 80%;
+}
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+sub {
+ bottom: -.25em;
+}
+sup {
+ top: -.5em;
+}
+img {
+ border-style: none;
+}
+svg:not(:root) {
+ overflow: hidden;
+}
+code,
+kbd,
+pre,
+samp {
+ font-family: monospace, monospace; /* 1 */
+ font-size: 1em; /* 2 */
+}
+figure {
+ margin: 1em 40px;
+}
+hr {
+ box-sizing: content-box; /* 1 */
+ height: 0; /* 1 */
+ overflow: visible; /* 2 */
+}
+button,
+input,
+select,
+textarea {
+ font: inherit;
+}
+optgroup {
+ font-weight: bold;
+}
+button,
+input,
+select {
+ /* 2 */
+ overflow: visible;
+}
+button,
+input,
+select,
+textarea {
+ /* 1 */
+ margin: 0;
+}
+button,
+select {
+ /* 1 */
+ text-transform: none;
+}
+button,
+[type="button"],
+[type="reset"],
+[type="submit"] {
+ cursor: pointer;
+}
+[disabled] {
+ cursor: default;
+}
+button,
+html [type="button"],
+[type="reset"],
+[type="submit"] {
+ -webkit-appearance: button; /* 2 */
+}
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+ border: 0;
+ padding: 0;
+}
+button:-moz-focusring,
+input:-moz-focusring {
+ outline: 1px dotted ButtonText;
+}
+fieldset {
+ border: 1px solid #c0c0c0;
+ margin: 0 2px;
+ padding: .35em .625em .75em;
+}
+legend {
+ box-sizing: border-box; /* 1 */
+ color: inherit; /* 2 */
+ display: table; /* 1 */
+ max-width: 100%; /* 1 */
+ padding: 0; /* 3 */
+ white-space: normal; /* 1 */
+}
+textarea {
+ overflow: auto;
+}
+[type="checkbox"],
+[type="radio"] {
+ box-sizing: border-box; /* 1 */
+ padding: 0; /* 2 */
+}
+[type="number"]::-webkit-inner-spin-button,
+[type="number"]::-webkit-outer-spin-button {
+ height: auto;
+}
+[type="search"] {
+ -webkit-appearance: textfield;
+}
+[type="search"]::-webkit-search-cancel-button,
+[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+@font-face {
+ font-family: "Han Heiti";
+ src: local("Hiragino Sans GB"), local("Lantinghei TC Extralight"), local("Lantinghei SC Extralight"), local(FZLTXHB--B51-0), local(FZLTZHK--GBK1-0), local("Pingfang SC Light"), local("Pingfang TC Light"), local("Pingfang-SC-Light"), local("Pingfang-TC-Light"), local("Pingfang SC"), local("Pingfang TC"), local("Heiti SC Light"), local(STHeitiSC-Light), local("Heiti SC"), local("Heiti TC Light"), local(STHeitiTC-Light), local("Heiti TC"), local("Microsoft Yahei"), local("Microsoft Jhenghei"), local("Noto Sans CJK KR"), local("Noto Sans CJK JP"), local("Noto Sans CJK SC"), local("Noto Sans CJK TC"), local("Source Han Sans K"), local("Source Han Sans KR"), local("Source Han Sans JP"), local("Source Han Sans CN"), local("Source Han Sans HK"), local("Source Han Sans TW"), local("Source Han Sans TWHK"), local("Droid Sans Fallback");
+}
+@font-face {
+ unicode-range: U+4E00-9FFF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27-FA29, U+3040-309F, U+30A0-30FF, U+3099-309E, U+FF66-FF9F, U+3007, U+31C0-31E3, U+2F00-2FD5, U+2E80-2EF3;
+ font-family: "Han Heiti";
+ src: local(YuGothic), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro");
+}
+@font-face {
+ font-family: "Han Heiti CNS";
+ src: local("Pingfang TC Light"), local("Pingfang-TC-Light"), local("Pingfang TC"), local("Heiti TC Light"), local(STHeitiTC-Light), local("Heiti TC"), local("Lantinghei TC Extralight"), local(FZLTXHB--B51-0), local("Lantinghei TC"), local("Microsoft Jhenghei"), local("Microsoft Yahei"), local("Noto Sans CJK TC"), local("Source Han Sans TC"), local("Source Han Sans TW"), local("Source Han Sans TWHK"), local("Source Han Sans HK"), local("Droid Sans Fallback");
+}
+@font-face {
+ font-family: "Han Heiti GB";
+ src: local("Hiragino Sans GB"), local("Pingfang SC Light"), local("Pingfang-SC-Light"), local("Pingfang SC"), local("Lantinghei SC Extralight"), local(FZLTXHK--GBK1-0), local("Lantinghei SC"), local("Heiti SC Light"), local(STHeitiSC-Light), local("Heiti SC"), local("Microsoft Yahei"), local("Noto Sans CJK SC"), local("Source Han Sans SC"), local("Source Han Sans CN"), local("Droid Sans Fallback");
+}
+@font-face {
+ font-family: "Han Heiti";
+ font-weight: 600;
+ src: local("Hiragino Sans GB W6"), local(HiraginoSansGB-W6), local("Lantinghei TC Demibold"), local("Lantinghei SC Demibold"), local(FZLTZHB--B51-0), local(FZLTZHK--GBK1-0), local("Pingfang-SC-Semibold"), local("Pingfang-TC-Semibold"), local("Heiti SC Medium"), local("STHeitiSC-Medium"), local("Heiti SC"), local("Heiti TC Medium"), local("STHeitiTC-Medium"), local("Heiti TC"), local("Microsoft Yahei Bold"), local("Microsoft Jhenghei Bold"), local(MicrosoftYahei-Bold), local(MicrosoftJhengHeiBold), local("Microsoft Yahei"), local("Microsoft Jhenghei"), local("Noto Sans CJK KR Bold"), local("Noto Sans CJK JP Bold"), local("Noto Sans CJK SC Bold"), local("Noto Sans CJK TC Bold"), local(NotoSansCJKkr-Bold), local(NotoSansCJKjp-Bold), local(NotoSansCJKsc-Bold), local(NotoSansCJKtc-Bold), local("Source Han Sans K Bold"), local(SourceHanSansK-Bold), local("Source Han Sans K"), local("Source Han Sans KR Bold"), local("Source Han Sans JP Bold"), local("Source Han Sans CN Bold"), local("Source Han Sans HK Bold"), local("Source Han Sans TW Bold"), local("Source Han Sans TWHK Bold"), local("SourceHanSansKR-Bold"), local("SourceHanSansJP-Bold"), local("SourceHanSansCN-Bold"), local("SourceHanSansHK-Bold"), local("SourceHanSansTW-Bold"), local("SourceHanSansTWHK-Bold"), local("Source Han Sans KR"), local("Source Han Sans CN"), local("Source Han Sans HK"), local("Source Han Sans TW"), local("Source Han Sans TWHK");
+}
+@font-face {
+ unicode-range: U+4E00-9FFF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27-FA29, U+3040-309F, U+30A0-30FF, U+3099-309E, U+FF66-FF9F, U+3007, U+31C0-31E3, U+2F00-2FD5, U+2E80-2EF3;
+ font-family: "Han Heiti";
+ font-weight: 600;
+ src: local("YuGothic Bold"), local("Hiragino Kaku Gothic ProN W6"), local("Hiragino Kaku Gothic Pro W6"), local(YuGo-Bold), local(HiraKakuProN-W6), local(HiraKakuPro-W6);
+}
+@font-face {
+ font-family: "Han Heiti CNS";
+ font-weight: 600;
+ src: local("Pingfang TC Semibold"), local("Pingfang-TC-Semibold"), local("Heiti TC Medium"), local("STHeitiTC-Medium"), local("Heiti TC"), local("Lantinghei TC Demibold"), local(FZLTXHB--B51-0), local("Microsoft Jhenghei Bold"), local(MicrosoftJhengHeiBold), local("Microsoft Jhenghei"), local("Microsoft Yahei Bold"), local(MicrosoftYahei-Bold), local("Noto Sans CJK TC Bold"), local(NotoSansCJKtc-Bold), local("Noto Sans CJK TC"), local("Source Han Sans TC Bold"), local("SourceHanSansTC-Bold"), local("Source Han Sans TC"), local("Source Han Sans TW Bold"), local("SourceHanSans-TW"), local("Source Han Sans TW"), local("Source Han Sans TWHK Bold"), local("SourceHanSans-TWHK"), local("Source Han Sans TWHK"), local("Source Han Sans HK"), local("SourceHanSans-HK"), local("Source Han Sans HK");
+}
+@font-face {
+ font-family: "Han Heiti GB";
+ font-weight: 600;
+ src: local("Hiragino Sans GB W6"), local(HiraginoSansGB-W6), local("Pingfang SC Semibold"), local("Pingfang-SC-Semibold"), local("Lantinghei SC Demibold"), local(FZLTZHK--GBK1-0), local("Heiti SC Medium"), local("STHeitiSC-Medium"), local("Heiti SC"), local("Microsoft Yahei Bold"), local(MicrosoftYahei-Bold), local("Microsoft Yahei"), local("Noto Sans CJK SC Bold"), local(NotoSansCJKsc-Bold), local("Noto Sans CJK SC"), local("Source Han Sans SC Bold"), local("SourceHanSansSC-Bold"), local("Source Han Sans CN Bold"), local("SourceHanSansCN-Bold"), local("Source Han Sans SC"), local("Source Han Sans CN");
+}
+@font-face {
+ font-family: "Han Songti";
+ src: local("Songti SC Regular"), local(STSongti-SC-Regular), local("Songti SC"), local("Songti TC Regular"), local(STSongti-TC-Regular), local("Songti TC"), local(STSong), local("Lisong Pro"), local(SimSun), local(PMingLiU);
+}
+@font-face {
+ unicode-range: U+4E00-9FFF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27-FA29, U+3040-309F, U+30A0-30FF, U+3099-309E, U+FF66-FF9F, U+3007, U+31C0-31E3, U+2F00-2FD5, U+2E80-2EF3;
+ font-family: "Han Songti";
+ src: local(YuMincho), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("MS Mincho");
+}
+@font-face {
+ font-family: "Han Songti CNS";
+ src: local("Songti TC Regular"), local(STSongti-TC-Regular), local("Songti TC"), local("Lisong Pro"), local("Songti SC Regular"), local(STSongti-SC-Regular), local("Songti SC"), local(STSong), local(PMingLiU), local(SimSun);
+}
+@font-face {
+ font-family: "Han Songti GB";
+ src: local("Songti SC Regular"), local(STSongti-SC-Regular), local("Songti SC"), local(STSong), local(SimSun), local(PMingLiU);
+}
+@font-face {
+ font-family: "Han Songti";
+ font-weight: 600;
+ src: local("STSongti SC Bold"), local("STSongti TC Bold"), local(STSongti-SC-Bold), local(STSongti-TC-Bold), local("STSongti SC"), local("STSongti TC");
+}
+@font-face {
+ unicode-range: U+4E00-9FFF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27-FA29, U+3040-309F, U+30A0-30FF, U+3099-309E, U+FF66-FF9F, U+3007, U+31C0-31E3, U+2F00-2FD5, U+2E80-2EF3;
+ font-family: "Han Songti";
+ font-weight: 600;
+ src: local("YuMincho Demibold"), local("Hiragino Mincho ProN W6"), local("Hiragino Mincho Pro W6"), local(YuMin-Demibold), local(HiraMinProN-W6), local(HiraMinPro-W6), local(YuMincho), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro");
+}
+@font-face {
+ font-family: "Han Songti CNS";
+ font-weight: 600;
+ src: local("STSongti TC Bold"), local("STSongti SC Bold"), local(STSongti-TC-Bold), local(STSongti-SC-Bold), local("STSongti TC"), local("STSongti SC");
+}
+@font-face {
+ font-family: "Han Songti GB";
+ font-weight: 600;
+ src: local("STSongti SC Bold"), local(STSongti-SC-Bold), local("STSongti SC");
+}
+@font-face {
+ font-family: cursive;
+ src: local("Kaiti TC Regular"), local(STKaiTi-TC-Regular), local("Kaiti TC"), local("Kaiti SC"), local(STKaiti), local(BiauKai), local("標楷體"), local(DFKaiShu-SB-Estd-BF), local(Kaiti), local(DFKai-SB);
+}
+@font-face {
+ unicode-range: U+4E00-9FFF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27-FA29, U+3040-309F, U+30A0-30FF, U+3099-309E, U+FF66-FF9F, U+3007, U+31C0-31E3, U+2F00-2FD5, U+2E80-2EF3;
+ font-family: "Han Kaiti";
+ src: local("Kaiti TC Regular"), local(STKaiTi-TC-Regular), local("Kaiti TC"), local("Kaiti SC"), local(STKaiti), local(BiauKai), local("標楷體"), local(DFKaiShu-SB-Estd-BF), local(Kaiti), local(DFKai-SB);
+}
+@font-face {
+ unicode-range: U+4E00-9FFF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27-FA29, U+3040-309F, U+30A0-30FF, U+3099-309E, U+FF66-FF9F, U+3007, U+31C0-31E3, U+2F00-2FD5, U+2E80-2EF3;
+ font-family: "Han Kaiti CNS";
+ src: local(BiauKai), local("標楷體"), local(DFKaiShu-SB-Estd-BF), local("Kaiti TC Regular"), local(STKaiTi-TC-Regular), local("Kaiti TC");
+}
+@font-face {
+ unicode-range: U+4E00-9FFF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27-FA29, U+3040-309F, U+30A0-30FF, U+3099-309E, U+FF66-FF9F, U+3007, U+31C0-31E3, U+2F00-2FD5, U+2E80-2EF3;
+ font-family: "Han Kaiti GB";
+ src: local("Kaiti SC Regular"), local(STKaiTi-SC-Regular), local("Kaiti SC"), local(STKaiti), local(Kai), local(Kaiti), local(DFKai-SB);
+}
+@font-face {
+ font-family: cursive;
+ font-weight: 600;
+ src: local("Kaiti TC Bold"), local(STKaiTi-TC-Bold), local("Kaiti SC Bold"), local(STKaiti-SC-Bold), local("Kaiti TC"), local("Kaiti SC");
+}
+@font-face {
+ font-family: "Han Kaiti";
+ font-weight: 600;
+ src: local("Kaiti TC Bold"), local(STKaiTi-TC-Bold), local("Kaiti SC Bold"), local(STKaiti-SC-Bold), local("Kaiti TC"), local("Kaiti SC");
+}
+@font-face {
+ font-family: "Han Kaiti CNS";
+ font-weight: 600;
+ src: local("Kaiti TC Bold"), local(STKaiTi-TC-Bold), local("Kaiti TC");
+}
+@font-face {
+ font-family: "Han Kaiti GB";
+ font-weight: 600;
+ src: local("Kaiti SC Bold"), local(STKaiti-SC-Bold);
+}
+@font-face {
+ unicode-range: U+4E00-9FFF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27-FA29, U+3040-309F, U+30A0-30FF, U+3099-309E, U+FF66-FF9F, U+3007, U+31C0-31E3, U+2F00-2FD5, U+2E80-2EF3;
+ font-family: "Han Fangsong";
+ src: local(STFangsong), local(FangSong);
+}
+@font-face {
+ unicode-range: U+4E00-9FFF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27-FA29, U+3040-309F, U+30A0-30FF, U+3099-309E, U+FF66-FF9F, U+3007, U+31C0-31E3, U+2F00-2FD5, U+2E80-2EF3;
+ font-family: "Han Fangsong CNS";
+ src: local(STFangsong), local(FangSong);
+}
+@font-face {
+ unicode-range: U+4E00-9FFF, U+3400-4DB5, U+20000-2A6D6, U+2A700-2B734, U+2B740-2B81D, U+FA0E-FA0F, U+FA11, U+FA13-FA14, U+FA1F, U+FA21, U+FA23, U+FA24, U+FA27-FA29, U+3040-309F, U+30A0-30FF, U+3099-309E, U+FF66-FF9F, U+3007, U+31C0-31E3, U+2F00-2FD5, U+2E80-2EF3;
+ font-family: "Han Fangsong GB";
+ src: local(STFangsong), local(FangSong);
+}
+@font-face {
+ font-family: "Biaodian Sans";
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local("MS Gothic"), local(SimSun);
+ unicode-range: U+FF0E;
+}
+@font-face {
+ font-family: "Biaodian Serif";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local(SimSun);
+ unicode-range: U+FF0E;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans";
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local("MS Gothic"), local(SimSun);
+ unicode-range: U+FF0E;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local(SimSun);
+ unicode-range: U+FF0E;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans CNS";
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local("MS Gothic"), local(SimSun);
+ unicode-range: U+FF0E;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif CNS";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local(SimSun);
+ unicode-range: U+FF0E;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans GB";
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local("MS Gothic"), local(SimSun);
+ unicode-range: U+FF0E;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local(SimSun);
+ unicode-range: U+FF0E;
+}
+@font-face {
+ font-family: "Biaodian Sans";
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local(SimSun);
+ unicode-range: U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Serif";
+ src: local("Songti SC"), local(STSong), local("Heiti SC"), local(SimSun);
+ unicode-range: U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans";
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local(SimSun);
+ unicode-range: U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif";
+ src: local("Songti SC"), local(STSong), local("Heiti SC"), local(SimSun);
+ unicode-range: U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans CNS";
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local(SimSun);
+ unicode-range: U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif CNS";
+ src: local("Songti SC"), local(STSong), local("Heiti SC"), local(SimSun);
+ unicode-range: U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans GB";
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local(SimSun);
+ unicode-range: U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ src: local("Songti SC"), local(STSong), local("Heiti SC"), local(SimSun);
+ unicode-range: U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Sans";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Microsoft Yahei"), local(SimSun);
+ unicode-range: U+2014;
+}
+@font-face {
+ font-family: "Biaodian Serif";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
+ unicode-range: U+2014;
+}
+@font-face {
+ font-family: "Yakumono Sans";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Arial Unicode MS"), local("MS Gothic");
+ unicode-range: U+2014;
+}
+@font-face {
+ font-family: "Yakumono Serif";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("MS Mincho"), local("Microsoft Yahei");
+ unicode-range: U+2014;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Microsoft Yahei"), local(SimSun);
+ unicode-range: U+2014;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
+ unicode-range: U+2014;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans CNS";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Microsoft Yahei"), local(SimSun);
+ unicode-range: U+2014;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif CNS";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
+ unicode-range: U+2014;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans GB";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Microsoft Yahei"), local(SimSun);
+ unicode-range: U+2014;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSong), local("Microsoft Yahei"), local(SimSun);
+ unicode-range: U+2014;
+}
+@font-face {
+ font-family: "Biaodian Sans";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(Meiryo), local("MS Gothic"), local(SimSun), local(PMingLiU);
+ unicode-range: U+2026;
+}
+@font-face {
+ font-family: "Biaodian Serif";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local("MS Mincho"), local(SimSun), local(PMingLiU);
+ unicode-range: U+2026;
+}
+@font-face {
+ font-family: "Yakumono Sans";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(Meiryo), local("MS Gothic");
+ unicode-range: U+2026;
+}
+@font-face {
+ font-family: "Yakumono Serif";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("MS Mincho");
+ unicode-range: U+2026;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(SimSun), local(PMingLiU);
+ unicode-range: U+2026;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(SimSun), local(PMingLiU);
+ unicode-range: U+2026;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans CNS";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(SimSun), local(PMingLiU);
+ unicode-range: U+2026;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif CNS";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSongti), local(SimSun), local(PMingLiU);
+ unicode-range: U+2026;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans GB";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Sans GB"), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(SimSun), local(PMingLiU);
+ unicode-range: U+2026;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype"), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Songti SC"), local(STSongti), local(SimSun), local(PMingLiU);
+ unicode-range: U+2026;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans GB";
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local(SimSun), local(PMingLiU);
+ unicode-range: U+201C-201D, U+2018-2019;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans GB";
+ font-weight: bold;
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local(SimSun), local(PMingLiU);
+ unicode-range: U+201C-201D, U+2018-2019;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ src: local("Lisong Pro"), local("Heiti SC"), local(STHeiti), local(SimSun), local(PMingLiU);
+ unicode-range: U+201C-201D, U+2018-2019;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ font-weight: bold;
+ src: local("Lisong Pro"), local("Heiti SC"), local(STHeiti), local(SimSun), local(PMingLiU);
+ unicode-range: U+201C-201D, U+2018-2019;
+}
+@font-face {
+ font-family: "Biaodian Sans";
+ src: local(Georgia), local("Times New Roman"), local(Arial), local("Droid Sans Fallback");
+ unicode-range: U+25CF;
+}
+@font-face {
+ font-family: "Biaodian Serif";
+ src: local(Georgia), local("Times New Roman"), local(Arial), local("Droid Sans Fallback");
+ unicode-range: U+25CF;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans";
+ src: local(Georgia), local("Times New Roman"), local(Arial), local("Droid Sans Fallback");
+ unicode-range: U+25CF;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif";
+ src: local(Georgia), local("Times New Roman"), local(Arial), local("Droid Sans Fallback");
+ unicode-range: U+25CF;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans CNS";
+ src: local(Georgia), local("Times New Roman"), local(Arial), local("Droid Sans Fallback");
+ unicode-range: U+25CF;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif CNS";
+ src: local(Georgia), local("Times New Roman"), local(Arial), local("Droid Sans Fallback");
+ unicode-range: U+25CF;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans GB";
+ src: local(Georgia), local("Times New Roman"), local(Arial), local("Droid Sans Fallback");
+ unicode-range: U+25CF;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ src: local(Georgia), local("Times New Roman"), local(Arial), local("Droid Sans Fallback");
+ unicode-range: U+25CF;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans";
+ src: local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("MS Gothic");
+ unicode-range: U+3002, U+FF0C, U+3001, U+FF1B, U+FF1A, U+FF1F, U+FF01, U+FF0D, U+FF0F, U+FF3C;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("MS Mincho");
+ unicode-range: U+3002, U+FF0C, U+3001, U+FF1B, U+FF1A, U+FF1F, U+FF01, U+FF0D, U+FF0F, U+FF3C;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans CNS";
+ src: local("Heiti TC"), local("Lihei Pro"), local("Microsoft Jhenghei"), local(PMingLiU);
+ unicode-range: U+3002, U+FF0C, U+3001;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans CNS";
+ src: local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Heiti TC"), local("Lihei Pro"), local("Microsoft Jhenghei"), local(PMingLiU), local("MS Gothic");
+ unicode-range: U+FF1B, U+FF1A, U+FF1F, U+FF01;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans CNS";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("MS Mincho");
+ unicode-range: U+FF0D, U+FF0F, U+FF3C;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif CNS";
+ src: local(STSongti-TC-Regular), local("Lisong Pro"), local("Heiti TC"), local(PMingLiU);
+ unicode-range: U+3002, U+FF0C, U+3001;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif CNS";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local(PMingLiU), local("MS Mincho");
+ unicode-range: U+FF1B, U+FF1A, U+FF1F, U+FF01, U+FF0D, U+FF0F, U+FF3C;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans GB";
+ src: local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local(SimSun), local("MS Gothic");
+ unicode-range: U+3002, U+FF0C, U+3001, U+FF1B, U+FF1A, U+FF1F, U+FF01, U+FF0D, U+FF0F, U+FF3C;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ src: local("Songti SC"), local(STSongti), local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Hiragino Sans GB"), local("Heiti SC"), local(STHeiti), local(SimSun), local("MS Mincho");
+ unicode-range: U+3002, U+FF0C, U+3001, U+FF1B, U+FF1A, U+FF1F, U+FF01;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local(PMingLiU), local("MS Mincho");
+ unicode-range: U+FF0D, U+FF0F, U+FF3C;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans";
+ src: local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Yu Gothic"), local(YuGothic), local(SimSun), local(PMingLiU);
+ unicode-range: U+300C-300F, U+300A-300B, U+3008-3009, U+FF08-FF09, U+3014-3015;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Yu Mincho"), local(YuMincho), local(SimSun), local(PMingLiU);
+ unicode-range: U+300C-300F, U+300A-300B, U+3008-3009, U+FF08-FF09, U+3014-3015;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans CNS";
+ src: local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Yu Gothic"), local(YuGothic), local(SimSun), local(PMingLiU);
+ unicode-range: U+300C-300F, U+300A-300B, U+3008-3009, U+FF08-FF09, U+3014-3015;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif CNS";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Yu Mincho"), local(YuMincho), local(SimSun), local(PMingLiU);
+ unicode-range: U+300C-300F, U+300A-300B, U+3008-3009, U+FF08-FF09, U+3014-3015;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans GB";
+ src: local("Hiragino Kaku Gothic ProN"), local("Hiragino Kaku Gothic Pro"), local("Yu Gothic"), local(YuGothic), local(SimSun), local(PMingLiU);
+ unicode-range: U+300C-300F, U+300A-300B, U+3008-3009, U+FF08-FF09, U+3014-3015;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ src: local("Hiragino Mincho ProN"), local("Hiragino Mincho Pro"), local("Yu Mincho"), local(YuMincho), local(SimSun), local(PMingLiU);
+ unicode-range: U+300C-300F, U+300A-300B, U+3008-3009, U+FF08-FF09, U+3014-3015;
+}
+@font-face {
+ font-family: "Biaodian Basic";
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+2014, U+2026, U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Basic";
+ font-weight: bold;
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+2014, U+2026, U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Sans";
+ font-weight: bold;
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+2014, U+2026, U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans";
+ font-weight: bold;
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+2014, U+2026, U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans";
+ font-weight: bold;
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+2014, U+2026, U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans CNS";
+ font-weight: bold;
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+2014, U+2026, U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Sans GB";
+ font-weight: bold;
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+2014, U+2026, U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif";
+ font-weight: bold;
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+2014, U+2026, U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif CNS";
+ font-weight: bold;
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+2014, U+2026, U+00B7;
+}
+@font-face {
+ font-family: "Biaodian Pro Serif GB";
+ font-weight: bold;
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+2014, U+2026, U+00B7;
+}
+@font-face {
+ font-family: "Latin Italic Serif";
+ src: local("Georgia Italic"), local("Times New Roman Italic"), local(Georgia-Italic), local(TimesNewRomanPS-ItalicMT), local(Times-Italic);
+}
+@font-face {
+ font-family: "Latin Italic Serif";
+ font-weight: 700;
+ src: local("Georgia Bold Italic"), local("Times New Roman Bold Italic"), local(Georgia-BoldItalic), local(TimesNewRomanPS-BoldItalicMT), local(Times-Italic);
+}
+@font-face {
+ font-family: "Latin Italic Sans";
+ src: local("Helvetica Neue Italic"), local("Helvetica Oblique"), local("Arial Italic"), local(HelveticaNeue-Italic), local(Helvetica-LightOblique), local(Arial-ItalicMT);
+}
+@font-face {
+ font-family: "Latin Italic Sans";
+ font-weight: 700;
+ src: local("Helvetica Neue Bold Italic"), local("Helvetica Bold Oblique"), local("Arial Bold Italic"), local(HelveticaNeue-BoldItalic), local(Helvetica-BoldOblique), local(Arial-BoldItalicMT);
+}
+@font-face {
+ unicode-range: U+0030-0039;
+ font-family: "Numeral TF Sans";
+ src: local(Skia), local("Neutraface 2 Text"), local(Candara), local(Corbel);
+}
+@font-face {
+ unicode-range: U+0030-0039;
+ font-family: "Numeral TF Serif";
+ src: local(Georgia), local("Hoefler Text"), local("Big Caslon");
+}
+@font-face {
+ unicode-range: U+0030-0039;
+ font-family: "Numeral TF Italic Serif";
+ src: local("Georgia Italic"), local("Hoefler Text Italic"), local(Georgia-Italic), local(HoeflerText-Italic);
+}
+@font-face {
+ unicode-range: U+0030-0039;
+ font-family: "Numeral LF Sans";
+ src: local("Helvetica Neue"), local(Helvetica), local(Arial);
+}
+@font-face {
+ unicode-range: U+0030-0039;
+ font-family: "Numeral LF Italic Sans";
+ src: local("Helvetica Neue Italic"), local("Helvetica Oblique"), local("Arial Italic"), local(HelveticaNeue-Italic), local(Helvetica-LightOblique), local(Arial-ItalicMT);
+}
+@font-face {
+ unicode-range: U+0030-0039;
+ font-family: "Numeral LF Italic Sans";
+ font-weight: bold;
+ src: local("Helvetica Neue Bold Italic"), local("Helvetica Bold Oblique"), local("Arial Bold Italic"), local(HelveticaNeue-BoldItalic), local(Helvetica-BoldOblique), local(Arial-BoldItalicMT);
+}
+@font-face {
+ unicode-range: U+0030-0039;
+ font-family: "Numeral LF Serif";
+ src: local(Palatino), local("Palatino Linotype"), local("Times New Roman");
+}
+@font-face {
+ unicode-range: U+0030-0039;
+ font-family: "Numeral LF Italic Serif";
+ src: local("Palatino Italic"), local("Palatino Italic Linotype"), local("Times New Roman Italic"), local(Palatino-Italic), local(Palatino-Italic-Linotype), local(TimesNewRomanPS-ItalicMT);
+}
+@font-face {
+ unicode-range: U+0030-0039;
+ font-family: "Numeral LF Italic Serif";
+ font-weight: bold;
+ src: local("Palatino Bold Italic"), local("Palatino Bold Italic Linotype"), local("Times New Roman Bold Italic"), local(Palatino-BoldItalic), local(Palatino-BoldItalic-Linotype), local(TimesNewRomanPS-BoldItalicMT);
+}
+@font-face {
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+3105-312D, U+31A0-31BA, U+02D9, U+02CA, U+02C5, U+02C7, U+02CB, U+02EA-02EB, U+0307, U+030D, U+0358, U+F31B4-F31B7, U+F0061, U+F0065, U+F0069, U+F006F, U+F0075;
+ font-family: "Zhuyin Kaiti";
+}
+@font-face {
+ unicode-range: U+3105-312D, U+31A0-31BA, U+02D9, U+02CA, U+02C5, U+02C7, U+02CB, U+02EA-02EB, U+0307, U+030D, U+0358, U+F31B4-F31B7, U+F0061, U+F0065, U+F0069, U+F006F, U+F0075;
+ font-family: "Zhuyin Heiti";
+ src: local("Hiragino Sans GB"), local("Heiti TC"), local("Microsoft Jhenghei"), url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+}
+@font-face {
+ font-family: "Zhuyin Heiti";
+ src: local("Heiti TC"), local("Microsoft Jhenghei"), url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ unicode-range: U+3127;
+}
+@font-face {
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ font-family: "Zhuyin Heiti";
+ unicode-range: U+02D9, U+02CA, U+02C5, U+02C7, U+02CB, U+02EA-02EB, U+31B4, U+31B5, U+31B6, U+31B7, U+0307, U+030D, U+0358, U+F31B4-F31B7, U+F0061, U+F0065, U+F0069, U+F006F, U+F0075;
+}
+@font-face {
+ src: url("./font/han.woff2?v3.3.0") format("woff2"), url("./font/han.woff?v3.3.0") format("woff"), url("./font/han.otf?v3.3.0") format("opentype");
+ font-family: "Romanization Sans";
+ unicode-range: U+0307, U+030D, U+0358, U+F31B4-F31B7, U+F0061, U+F0065, U+F0069, U+F006F, U+F0075;
+}
+html:lang(zh-Latn),
+html:lang(ja-Latn),
+html:not(:lang(zh)):not(:lang(ja)),
+html *:lang(zh-Latn),
+html *:lang(ja-Latn),
+html *:not(:lang(zh)):not(:lang(ja)),
+article strong:lang(zh-Latn),
+article strong:lang(ja-Latn),
+article strong:not(:lang(zh)):not(:lang(ja)),
+article strong *:lang(zh-Latn),
+article strong *:lang(ja-Latn),
+article strong *:not(:lang(zh)):not(:lang(ja)) {
+ font-family: "Helvetica Neue", Helvetica, Arial, "Han Heiti", sans-serif;
+}
+html:lang(zh),
+html:lang(zh-Hant),
+[lang^="zh"],
+[lang*="Hant"],
+[lang="zh-TW"],
+[lang="zh-HK"],
+article strong:lang(zh),
+article strong:lang(zh-Hant) {
+ font-family: "Biaodian Pro Sans CNS", "Helvetica Neue", Helvetica, Arial, "Zhuyin Heiti", "Han Heiti", sans-serif;
+}
+html:lang(zh).no-unicoderange,
+html:lang(zh-Hant).no-unicoderange,
+.no-unicoderange [lang^="zh"],
+.no-unicoderange [lang*="Hant"],
+.no-unicoderange [lang="zh-TW"],
+.no-unicoderange [lang="zh-HK"],
+.no-unicoderange article strong:lang(zh),
+.no-unicoderange article strong:lang(zh-Hant) {
+ font-family: "Helvetica Neue", Helvetica, Arial, "Han Heiti", sans-serif;
+}
+html:lang(zh-Hans),
+html:lang(zh-CN),
+[lang*="Hans"],
+[lang="zh-CN"],
+article strong:lang(zh-Hans),
+article strong:lang(zh-CN) {
+ font-family: "Biaodian Pro Sans GB", "Helvetica Neue", Helvetica, Arial, "Han Heiti GB", sans-serif;
+}
+html:lang(zh-Hans).no-unicoderange,
+html:lang(zh-CN).no-unicoderange,
+.no-unicoderange [lang*="Hans"],
+.no-unicoderange [lang="zh-CN"],
+.no-unicoderange article strong:lang(zh-Hans),
+.no-unicoderange article strong:lang(zh-CN) {
+ font-family: "Helvetica Neue", Helvetica, Arial, "Han Heiti GB", sans-serif;
+}
+html:lang(ja),
+[lang^="ja"],
+article strong:lang(ja) {
+ font-family: "Yakumono Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
+html:lang(ja).no-unicoderange,
+.no-unicoderange [lang^="ja"],
+.no-unicoderange article strong:lang(ja) {
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
+article blockquote i:lang(zh-Latn),
+article blockquote var:lang(zh-Latn),
+article blockquote i:lang(ja-Latn),
+article blockquote var:lang(ja-Latn),
+article blockquote i:not(:lang(zh)):not(:lang(ja)),
+article blockquote var:not(:lang(zh)):not(:lang(ja)),
+article blockquote i *:lang(zh-Latn),
+article blockquote var *:lang(zh-Latn),
+article blockquote i *:lang(ja-Latn),
+article blockquote var *:lang(ja-Latn),
+article blockquote i *:not(:lang(zh)):not(:lang(ja)),
+article blockquote var *:not(:lang(zh)):not(:lang(ja)) {
+ font-family: "Latin Italic Sans", "Helvetica Neue", Helvetica, Arial, "Han Heiti", sans-serif;
+}
+article blockquote i:lang(zh),
+article blockquote var:lang(zh),
+article blockquote i:lang(zh-Hant),
+article blockquote var:lang(zh-Hant) {
+ font-family: "Biaodian Pro Sans CNS", "Latin Italic Sans", "Helvetica Neue", Helvetica, Arial, "Zhuyin Heiti", "Han Heiti", sans-serif;
+}
+.no-unicoderange article blockquote i:lang(zh),
+.no-unicoderange article blockquote var:lang(zh),
+.no-unicoderange article blockquote i:lang(zh-Hant),
+.no-unicoderange article blockquote var:lang(zh-Hant) {
+ font-family: "Latin Italic Sans", "Helvetica Neue", Helvetica, Arial, "Han Heiti", sans-serif;
+}
+.no-unicoderange article blockquote i:lang(zh),
+.no-unicoderange article blockquote var:lang(zh),
+.no-unicoderange article blockquote i:lang(zh-Hant),
+.no-unicoderange article blockquote var:lang(zh-Hant) {
+ font-family: "Latin Italic Sans", "Helvetica Neue", Helvetica, Arial, "Han Heiti", sans-serif;
+}
+article blockquote i:lang(zh-Hans),
+article blockquote var:lang(zh-Hans),
+article blockquote i:lang(zh-CN),
+article blockquote var:lang(zh-CN) {
+ font-family: "Biaodian Pro Sans GB", "Latin Italic Sans", "Helvetica Neue", Helvetica, Arial, "Han Heiti GB", sans-serif;
+}
+.no-unicoderange article blockquote i:lang(zh-Hans),
+.no-unicoderange article blockquote var:lang(zh-Hans),
+.no-unicoderange article blockquote i:lang(zh-CN),
+.no-unicoderange article blockquote var:lang(zh-CN) {
+ font-family: "Latin Italic Sans", "Helvetica Neue", Helvetica, Arial, "Han Heiti GB", sans-serif;
+}
+article blockquote i:lang(ja),
+article blockquote var:lang(ja) {
+ font-family: "Yakumono Sans", "Latin Italic Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
+.no-unicoderange article blockquote i:lang(ja),
+.no-unicoderange article blockquote var:lang(ja) {
+ font-family: "Latin Italic Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
+article figure blockquote:lang(zh-Latn),
+article figure blockquote:lang(ja-Latn),
+article figure blockquote:not(:lang(zh)):not(:lang(ja)),
+article figure blockquote *:lang(zh-Latn),
+article figure blockquote *:lang(ja-Latn),
+article figure blockquote *:not(:lang(zh)):not(:lang(ja)) {
+ font-family: Georgia, "Times New Roman", "Han Songti", cursive, serif;
+}
+article figure blockquote:lang(zh),
+article figure blockquote:lang(zh-Hant) {
+ font-family: "Biaodian Pro Serif CNS", "Numeral LF Serif", Georgia, "Times New Roman", "Zhuyin Kaiti", "Han Songti", serif;
+}
+.no-unicoderange article figure blockquote:lang(zh),
+.no-unicoderange article figure blockquote:lang(zh-Hant) {
+ font-family: "Numeral LF Serif", Georgia, "Times New Roman", "Han Songti", serif;
+}
+article figure blockquote:lang(zh-Hans),
+article figure blockquote:lang(zh-CN) {
+ font-family: "Biaodian Pro Serif GB", "Numeral LF Serif", Georgia, "Times New Roman", "Han Songti GB", serif;
+}
+.no-unicoderange article figure blockquote:lang(zh-Hans),
+.no-unicoderange article figure blockquote:lang(zh-CN) {
+ font-family: "Numeral LF Serif", Georgia, "Times New Roman", "Han Songti GB", serif;
+}
+article figure blockquote:lang(ja) {
+ font-family: "Yakumono Serif", "Numeral LF Serif", Georgia, "Times New Roman", serif;
+}
+.no-unicoderange article figure blockquote:lang(ja) {
+ font-family: "Numeral LF Serif", Georgia, "Times New Roman", serif;
+}
+article blockquote:lang(zh-Latn),
+article blockquote:lang(ja-Latn),
+article blockquote:not(:lang(zh)):not(:lang(ja)),
+article blockquote *:lang(zh-Latn),
+article blockquote *:lang(ja-Latn),
+article blockquote *:not(:lang(zh)):not(:lang(ja)) {
+ font-family: Georgia, "Times New Roman", "Han Kaiti", cursive, serif;
+}
+article blockquote:lang(zh),
+article blockquote:lang(zh-Hant) {
+ font-family: "Biaodian Pro Serif CNS", "Numeral LF Serif", Georgia, "Times New Roman", "Zhuyin Kaiti", "Han Kaiti", cursive, serif;
+}
+.no-unicoderange article blockquote:lang(zh),
+.no-unicoderange article blockquote:lang(zh-Hant) {
+ font-family: "Numeral LF Serif", Georgia, "Times New Roman", "Han Kaiti", cursive, serif;
+}
+article blockquote:lang(zh-Hans),
+article blockquote:lang(zh-CN) {
+ font-family: "Biaodian Pro Serif GB", "Numeral LF Serif", Georgia, "Times New Roman", "Han Kaiti GB", cursive, serif;
+}
+.no-unicoderange article blockquote:lang(zh-Hans),
+.no-unicoderange article blockquote:lang(zh-CN) {
+ font-family: "Numeral LF Serif", Georgia, "Times New Roman", "Han Kaiti GB", cursive, serif;
+}
+article blockquote:lang(ja) {
+ font-family: "Yakumono Serif", "Numeral LF Serif", Georgia, "Times New Roman", cursive, serif;
+}
+.no-unicoderange article blockquote:lang(ja) {
+ font-family: "Numeral LF Serif", Georgia, "Times New Roman", cursive, serif;
+}
+i:lang(zh-Latn),
+var:lang(zh-Latn),
+i:lang(ja-Latn),
+var:lang(ja-Latn),
+i:not(:lang(zh)):not(:lang(ja)),
+var:not(:lang(zh)):not(:lang(ja)),
+i *:lang(zh-Latn),
+var *:lang(zh-Latn),
+i *:lang(ja-Latn),
+var *:lang(ja-Latn),
+i *:not(:lang(zh)):not(:lang(ja)),
+var *:not(:lang(zh)):not(:lang(ja)) {
+ font-family: "Latin Italic Serif", Georgia, "Times New Roman", "Han Kaiti", cursive, serif;
+}
+i:lang(zh),
+var:lang(zh),
+i:lang(zh-Hant),
+var:lang(zh-Hant) {
+ font-family: "Biaodian Pro Serif CNS", "Numeral LF Italic Serif", "Latin Italic Serif", Georgia, "Times New Roman", "Zhuyin Kaiti", "Han Kaiti", cursive, serif;
+}
+.no-unicoderange i:lang(zh),
+.no-unicoderange var:lang(zh),
+.no-unicoderange i:lang(zh-Hant),
+.no-unicoderange var:lang(zh-Hant) {
+ font-family: "Numeral LF Italic Serif", "Latin Italic Serif", Georgia, "Times New Roman", "Han Kaiti", cursive, serif;
+}
+i:lang(zh-Hans),
+var:lang(zh-Hans),
+i:lang(zh-CN),
+var:lang(zh-CN) {
+ font-family: "Biaodian Pro Serif GB", "Numeral LF Italic Serif", "Latin Italic Serif", Georgia, "Times New Roman", "Han Kaiti GB", cursive, serif;
+}
+.no-unicoderange i:lang(zh-Hans),
+.no-unicoderange var:lang(zh-Hans),
+.no-unicoderange i:lang(zh-CN),
+.no-unicoderange var:lang(zh-CN) {
+ font-family: "Numeral LF Italic Serif", "Latin Italic Serif", Georgia, "Times New Roman", "Han Kaiti GB", cursive, serif;
+}
+i:lang(ja),
+var:lang(ja) {
+ font-family: "Yakumono Serif", "Numeral LF Italic Serif", "Latin Italic Serif", Georgia, "Times New Roman", cursive, serif;
+}
+.no-unicoderange i:lang(ja),
+.no-unicoderange var:lang(ja) {
+ font-family: "Numeral LF Italic Serif", "Latin Italic Serif", Georgia, "Times New Roman", cursive, serif;
+}
+code:lang(zh-Latn),
+kbd:lang(zh-Latn),
+samp:lang(zh-Latn),
+pre:lang(zh-Latn),
+code:lang(ja-Latn),
+kbd:lang(ja-Latn),
+samp:lang(ja-Latn),
+pre:lang(ja-Latn),
+code:not(:lang(zh)):not(:lang(ja)),
+kbd:not(:lang(zh)):not(:lang(ja)),
+samp:not(:lang(zh)):not(:lang(ja)),
+pre:not(:lang(zh)):not(:lang(ja)),
+code *:lang(zh-Latn),
+kbd *:lang(zh-Latn),
+samp *:lang(zh-Latn),
+pre *:lang(zh-Latn),
+code *:lang(ja-Latn),
+kbd *:lang(ja-Latn),
+samp *:lang(ja-Latn),
+pre *:lang(ja-Latn),
+code *:not(:lang(zh)):not(:lang(ja)),
+kbd *:not(:lang(zh)):not(:lang(ja)),
+samp *:not(:lang(zh)):not(:lang(ja)),
+pre *:not(:lang(zh)):not(:lang(ja)) {
+ font-family: Menlo, Consolas, Courier, "Han Heiti", monospace, monospace, sans-serif;
+}
+code:lang(zh),
+kbd:lang(zh),
+samp:lang(zh),
+pre:lang(zh),
+code:lang(zh-Hant),
+kbd:lang(zh-Hant),
+samp:lang(zh-Hant),
+pre:lang(zh-Hant) {
+ font-family: "Biaodian Pro Sans CNS", Menlo, Consolas, Courier, "Zhuyin Heiti", "Han Heiti", monospace, monospace, sans-serif;
+}
+.no-unicoderange code:lang(zh),
+.no-unicoderange kbd:lang(zh),
+.no-unicoderange samp:lang(zh),
+.no-unicoderange pre:lang(zh),
+.no-unicoderange code:lang(zh-Hant),
+.no-unicoderange kbd:lang(zh-Hant),
+.no-unicoderange samp:lang(zh-Hant),
+.no-unicoderange pre:lang(zh-Hant) {
+ font-family: Menlo, Consolas, Courier, "Han Heiti", monospace, monospace, sans-serif;
+}
+code:lang(zh-Hans),
+kbd:lang(zh-Hans),
+samp:lang(zh-Hans),
+pre:lang(zh-Hans),
+code:lang(zh-CN),
+kbd:lang(zh-CN),
+samp:lang(zh-CN),
+pre:lang(zh-CN) {
+ font-family: "Biaodian Pro Sans GB", Menlo, Consolas, Courier, "Han Heiti GB", monospace, monospace, sans-serif;
+}
+.no-unicoderange code:lang(zh-Hans),
+.no-unicoderange kbd:lang(zh-Hans),
+.no-unicoderange samp:lang(zh-Hans),
+.no-unicoderange pre:lang(zh-Hans),
+.no-unicoderange code:lang(zh-CN),
+.no-unicoderange kbd:lang(zh-CN),
+.no-unicoderange samp:lang(zh-CN),
+.no-unicoderange pre:lang(zh-CN) {
+ font-family: Menlo, Consolas, Courier, "Han Heiti GB", monospace, monospace, sans-serif;
+}
+code:lang(ja),
+kbd:lang(ja),
+samp:lang(ja),
+pre:lang(ja) {
+ font-family: "Yakumono Sans", Menlo, Consolas, Courier, monospace, monospace, sans-serif;
+}
+.no-unicoderange code:lang(ja),
+.no-unicoderange kbd:lang(ja),
+.no-unicoderange samp:lang(ja),
+.no-unicoderange pre:lang(ja) {
+ font-family: Menlo, Consolas, Courier, monospace, monospace, sans-serif;
+}
+html,
+.no-unicoderange h-char.bd-liga,
+.no-unicoderange h-char[unicode="b7"],
+ruby h-zhuyin,
+h-ruby h-zhuyin,
+ruby h-zhuyin h-diao,
+h-ruby h-zhuyin h-diao,
+ruby.romanization rt,
+h-ruby.romanization rt,
+ruby [annotation] rt,
+h-ruby [annotation] rt {
+ -moz-font-feature-settings: "liga";
+ -ms-font-feature-settings: "liga";
+ -webkit-font-feature-settings: "liga";
+ font-feature-settings: "liga";
+}
+html,
+[lang^="zh"],
+[lang*="Hant"],
+[lang="zh-TW"],
+[lang="zh-HK"],
+[lang*="Hans"],
+[lang="zh-CN"],
+article strong,
+code,
+kbd,
+samp,
+pre,
+article blockquote i,
+article blockquote var {
+ -moz-font-feature-settings: "liga=1, locl=0";
+ -ms-font-feature-settings: "liga", "locl" 0;
+ -webkit-font-feature-settings: "liga", "locl" 0;
+ font-feature-settings: "liga", "locl" 0;
+}
+.no-unicoderange h-char.bd-cop:lang(zh-Hant),
+.no-unicoderange h-char.bd-cop:lang(zh-TW),
+.no-unicoderange h-char.bd-cop:lang(zh-HK) {
+ font-family: -apple-system, "Han Heiti CNS";
+}
+.no-unicoderange h-char.bd-liga,
+.no-unicoderange h-char[unicode="b7"] {
+ font-family: "Biaodian Basic", "Han Heiti";
+}
+.no-unicoderange h-char[unicode="2018"]:lang(zh-Hans),
+.no-unicoderange h-char[unicode="2019"]:lang(zh-Hans),
+.no-unicoderange h-char[unicode="201c"]:lang(zh-Hans),
+.no-unicoderange h-char[unicode="201d"]:lang(zh-Hans),
+.no-unicoderange h-char[unicode="2018"]:lang(zh-CN),
+.no-unicoderange h-char[unicode="2019"]:lang(zh-CN),
+.no-unicoderange h-char[unicode="201c"]:lang(zh-CN),
+.no-unicoderange h-char[unicode="201d"]:lang(zh-CN) {
+ font-family: "Han Heiti GB";
+}
+i,
+var {
+ font-style: inherit;
+}
+.no-unicoderange ruby h-zhuyin,
+.no-unicoderange h-ruby h-zhuyin,
+.no-unicoderange ruby h-zhuyin h-diao,
+.no-unicoderange h-ruby h-zhuyin h-diao {
+ font-family: "Zhuyin Kaiti", cursive, serif;
+}
+ruby h-diao,
+h-ruby h-diao {
+ font-family: "Zhuyin Kaiti", cursive, serif;
+}
+ruby.romanization rt,
+h-ruby.romanization rt,
+ruby [annotation] rt,
+h-ruby [annotation] rt {
+ font-family: "Romanization Sans", "Helvetica Neue", Helvetica, Arial, "Han Heiti", sans-serif;
+}
diff --git a/lib/Han/dist/han.js b/lib/Han/dist/han.js
new file mode 100644
index 0000000..75976c6
--- /dev/null
+++ b/lib/Han/dist/han.js
@@ -0,0 +1,3005 @@
+/*!
+ * 漢字標準格式 v3.3.0 | MIT License | css.hanzi.co
+ * Han.css: the CSS typography framework optimised for Hanzi
+ */
+
+void function( global, factory ) {
+
+ // CommonJS
+ if ( typeof module === 'object' && typeof module.exports === 'object' ) {
+ module.exports = factory( global, true )
+ // AMD
+ } else if ( typeof define === 'function' && define.amd ) {
+ define(function() { return factory( global, true ) })
+ // Global namespace
+ } else {
+ factory( global )
+ }
+
+}( typeof window !== 'undefined' ? window : this, function( window, noGlobalNS ) {
+
+'use strict'
+
+var document = window.document
+
+var root = document.documentElement
+
+var body = document.body
+
+var VERSION = '3.3.0'
+
+var ROUTINE = [
+ // Initialise the condition with feature-detecting
+ // classes (Modernizr-alike), binding onto the root
+ // element, possibly ``.
+ 'initCond',
+
+ // Address element normalisation
+ 'renderElem',
+
+ // Handle Biaodian
+ /* 'jinzify', */
+ 'renderJiya',
+ 'renderHanging',
+
+ // Address Biaodian correction
+ 'correctBiaodian',
+
+ // Address Hanzi and Western script mixed spacing
+ 'renderHWS',
+
+ // Address presentational correction to combining ligatures
+ 'substCombLigaWithPUA'
+
+ // Address semantic correction to inaccurate characters
+ // **Note:** inactivated by default
+ /* 'substInaccurateChar', */
+]
+
+// Define Han
+var Han = function( context, condition ) {
+ return new Han.fn.init( context, condition )
+}
+
+var init = function() {
+ if ( arguments[ 0 ] ) {
+ this.context = arguments[ 0 ]
+ }
+ if ( arguments[ 1 ] ) {
+ this.condition = arguments[ 1 ]
+ }
+ return this
+}
+
+Han.version = VERSION
+
+Han.fn = Han.prototype = {
+ version: VERSION,
+
+ constructor: Han,
+
+ // Body as the default target context
+ context: body,
+
+ // Root element as the default condition
+ condition: root,
+
+ // Default rendering routine
+ routine: ROUTINE,
+
+ init: init,
+
+ setRoutine: function( routine ) {
+ if ( Array.isArray( routine )) {
+ this.routine = routine
+ }
+ return this
+ },
+
+ // Note that the routine set up here will execute
+ // only once. The method won't alter the routine in
+ // the instance or in the prototype chain.
+ render: function( routine ) {
+ var it = this
+ var routine = Array.isArray( routine )
+ ? routine
+ : this.routine
+
+ routine
+ .forEach(function( method ) {
+ if (
+ typeof method === 'string' &&
+ typeof it[ method ] === 'function'
+ ) {
+ it[ method ]()
+ } else if (
+ Array.isArray( method ) &&
+ typeof it[ method[0] ] === 'function'
+ ) {
+ it[ method.shift() ].apply( it, method )
+ }
+ })
+ return this
+ }
+}
+
+Han.fn.init.prototype = Han.fn
+
+/**
+ * Shortcut for `render()` under the default
+ * situation.
+ *
+ * Once initialised, replace `Han.init` with the
+ * instance for future usage.
+ */
+Han.init = function() {
+ return Han.init = Han().render()
+}
+
+var UNICODE = {
+ /**
+ * Western punctuation (西文標點符號)
+ */
+ punct: {
+ base: '[\u2026,.;:!?\u203D_]',
+ sing: '[\u2010-\u2014\u2026]',
+ middle: '[\\\/~\\-&\u2010-\u2014_]',
+ open: '[\'"‘“\\(\\[\u00A1\u00BF\u2E18\u00AB\u2039\u201A\u201C\u201E]',
+ close: '[\'"”’\\)\\]\u00BB\u203A\u201B\u201D\u201F]',
+ end: '[\'"”’\\)\\]\u00BB\u203A\u201B\u201D\u201F\u203C\u203D\u2047-\u2049,.;:!?]',
+ },
+
+ /**
+ * CJK biaodian (CJK標點符號)
+ */
+ biaodian: {
+ base: '[︰.、,。:;?!ー]',
+ liga: '[—…⋯]',
+ middle: '[·\/-゠\uFF06\u30FB\uFF3F]',
+ open: '[「『《〈(〔[{【〖]',
+ close: '[」』》〉)〕]}】〗]',
+ end: '[」』》〉)〕]}】〗︰.、,。:;?!ー]'
+ },
+
+ /**
+ * CJK-related blocks (CJK相關字符區段)
+ *
+ * 1. 中日韓統一意音文字:[\u4E00-\u9FFF]
+ Basic CJK unified ideographs
+ * 2. 擴展-A區:[\u3400-\u4DB5]
+ Extended-A
+ * 3. 擴展-B區:[\u20000-\u2A6D6]([\uD840-\uD869][\uDC00-\uDED6])
+ Extended-B
+ * 4. 擴展-C區:[\u2A700-\u2B734](\uD86D[\uDC00-\uDF3F]|[\uD86A-\uD86C][\uDC00-\uDFFF]|\uD869[\uDF00-\uDFFF])
+ Extended-C
+ * 5. 擴展-D區:[\u2B740-\u2B81D](急用漢字,\uD86D[\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1F])
+ Extended-D
+ * 6. 擴展-E區:[\u2B820-\u2F7FF](暫未支援)
+ Extended-E (not supported yet)
+ * 7. 擴展-F區(暫未支援)
+ Extended-F (not supported yet)
+ * 8. 筆畫區:[\u31C0-\u31E3]
+ Strokes
+ * 9. 意音數字「〇」:[\u3007]
+ Ideographic number zero
+ * 10. 相容意音文字及補充:[\uF900-\uFAFF][\u2F800-\u2FA1D](不使用)
+ Compatibility ideograph and supplement (not supported)
+
+ 12 exceptions:
+ [\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]
+
+ https://zh.wikipedia.org/wiki/中日韓統一表意文字#cite_note-1
+
+ * 11. 康熙字典及簡化字部首:[\u2F00-\u2FD5\u2E80-\u2EF3]
+ Kangxi and supplement radicals
+ * 12. 意音文字描述字元:[\u2FF0-\u2FFA]
+ Ideographic description characters
+ */
+ hanzi: {
+ base: '[\u4E00-\u9FFF\u3400-\u4DB5\u31C0-\u31E3\u3007\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA23\uFA24\uFA27-\uFA29]|[\uD800-\uDBFF][\uDC00-\uDFFF]',
+ desc: '[\u2FF0-\u2FFA]',
+ radical: '[\u2F00-\u2FD5\u2E80-\u2EF3]'
+ },
+
+ /**
+ * Latin script blocks (拉丁字母區段)
+ *
+ * 1. 基本拉丁字母:A-Za-z
+ Basic Latin
+ * 2. 阿拉伯數字:0-9
+ Digits
+ * 3. 補充-1:[\u00C0-\u00FF]
+ Latin-1 supplement
+ * 4. 擴展-A區:[\u0100-\u017F]
+ Extended-A
+ * 5. 擴展-B區:[\u0180-\u024F]
+ Extended-B
+ * 5. 擴展-C區:[\u2C60-\u2C7F]
+ Extended-C
+ * 5. 擴展-D區:[\uA720-\uA7FF]
+ Extended-D
+ * 6. 附加區:[\u1E00-\u1EFF]
+ Extended additional
+ * 7. 變音組字符:[\u0300-\u0341\u1DC0-\u1DFF]
+ Combining diacritical marks
+ */
+ latin: {
+ base: '[A-Za-z0-9\u00C0-\u00FF\u0100-\u017F\u0180-\u024F\u2C60-\u2C7F\uA720-\uA7FF\u1E00-\u1EFF]',
+ combine: '[\u0300-\u0341\u1DC0-\u1DFF]'
+ },
+
+ /**
+ * Elli̱niká (Greek) script blocks (希臘字母區段)
+ *
+ * 1. 希臘字母及擴展:[\u0370–\u03FF\u1F00-\u1FFF]
+ Basic Greek & Greek Extended
+ * 2. 阿拉伯數字:0-9
+ Digits
+ * 3. 希臘字母變音組字符:[\u0300-\u0345\u1DC0-\u1DFF]
+ Combining diacritical marks
+ */
+ ellinika: {
+ base: '[0-9\u0370-\u03FF\u1F00-\u1FFF]',
+ combine: '[\u0300-\u0345\u1DC0-\u1DFF]'
+ },
+
+ /**
+ * Kirillica (Cyrillic) script blocks (西里爾字母區段)
+ *
+ * 1. 西里爾字母及補充:[\u0400-\u0482\u048A-\u04FF\u0500-\u052F]
+ Basic Cyrillic and supplement
+ * 2. 擴展B區:[\uA640-\uA66E\uA67E-\uA697]
+ Extended-B
+ * 3. 阿拉伯數字:0-9
+ Digits
+ * 4. 西里爾字母組字符:[\u0483-\u0489\u2DE0-\u2DFF\uA66F-\uA67D\uA69F](位擴展A、B區)
+ Cyrillic combining diacritical marks (in extended-A, B)
+ */
+ kirillica: {
+ base: '[0-9\u0400-\u0482\u048A-\u04FF\u0500-\u052F\uA640-\uA66E\uA67E-\uA697]',
+ combine: '[\u0483-\u0489\u2DE0-\u2DFF\uA66F-\uA67D\uA69F]'
+ },
+
+ /**
+ * Kana (假名)
+ *
+ * 1. 日文假名:[\u30A2\u30A4\u30A6\u30A8\u30AA-\u30FA\u3042\u3044\u3046\u3048\u304A-\u3094\u309F\u30FF]
+ Japanese Kana
+ * 2. 假名補充[\u1B000\u1B001](\uD82C[\uDC00-\uDC01])
+ Kana supplement
+ * 3. 日文假名小寫:[\u3041\u3043\u3045\u3047\u3049\u30A1\u30A3\u30A5\u30A7\u30A9\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u31F0-\u31FF]
+ Japanese small Kana
+ * 4. 假名組字符:[\u3099-\u309C]
+ Kana combining characters
+ * 5. 半形假名:[\uFF66-\uFF9F]
+ Halfwidth Kana
+ * 6. 符號:[\u309D\u309E\u30FB-\u30FE]
+ Marks
+ */
+ kana: {
+ base: '[\u30A2\u30A4\u30A6\u30A8\u30AA-\u30FA\u3042\u3044\u3046\u3048\u304A-\u3094\u309F\u30FF]|\uD82C[\uDC00-\uDC01]',
+ small: '[\u3041\u3043\u3045\u3047\u3049\u30A1\u30A3\u30A5\u30A7\u30A9\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u31F0-\u31FF]',
+ combine: '[\u3099-\u309C]',
+ half: '[\uFF66-\uFF9F]',
+ mark: '[\u30A0\u309D\u309E\u30FB-\u30FE]'
+ },
+
+ /**
+ * Eonmun (Hangul, 諺文)
+ *
+ * 1. 諺文音節:[\uAC00-\uD7A3]
+ Eonmun (Hangul) syllables
+ * 2. 諺文字母:[\u1100-\u11FF\u314F-\u3163\u3131-\u318E\uA960-\uA97C\uD7B0-\uD7FB]
+ Eonmun (Hangul) letters
+ * 3. 半形諺文字母:[\uFFA1-\uFFDC]
+ Halfwidth Eonmun (Hangul) letters
+ */
+ eonmun: {
+ base: '[\uAC00-\uD7A3]',
+ letter: '[\u1100-\u11FF\u314F-\u3163\u3131-\u318E\uA960-\uA97C\uD7B0-\uD7FB]',
+ half: '[\uFFA1-\uFFDC]'
+ },
+
+ /**
+ * Zhuyin (注音符號, Mandarin & Dialect Phonetic Symbols)
+ *
+ * 1. 國語注音、方言音符號:[\u3105-\u312D][\u31A0-\u31BA]
+ Bopomofo phonetic symbols
+ * 2. 平上去聲調號:[\u02D9\u02CA\u02C5\u02C7\u02EA\u02EB\u02CB] (**註:**國語三聲包含乙個不合規範的符號)
+ Level, rising, departing tones
+ * 3. 入聲調號:[\u31B4-\u31B7][\u0358\u030d]?
+ Checked (entering) tones
+ */
+ zhuyin: {
+ base: '[\u3105-\u312D\u31A0-\u31BA]',
+ initial: '[\u3105-\u3119\u312A-\u312C\u31A0-\u31A3]',
+ medial: '[\u3127-\u3129]',
+ final: '[\u311A-\u3129\u312D\u31A4-\u31B3\u31B8-\u31BA]',
+ tone: '[\u02D9\u02CA\u02C5\u02C7\u02CB\u02EA\u02EB]',
+ checked: '[\u31B4-\u31B7][\u0358\u030d]?'
+ }
+}
+
+var TYPESET = (function() {
+ var rWhite = '[\\x20\\t\\r\\n\\f]'
+ // Whitespace characters
+ // http://www.w3.org/TR/css3-selectors/#whitespace
+
+ var rPtOpen = UNICODE.punct.open
+ var rPtClose = UNICODE.punct.close
+ var rPtEnd = UNICODE.punct.end
+ var rPtMid = UNICODE.punct.middle
+ var rPtSing = UNICODE.punct.sing
+ var rPt = rPtOpen + '|' + rPtEnd + '|' + rPtMid
+
+ var rBDOpen = UNICODE.biaodian.open
+ var rBDClose = UNICODE.biaodian.close
+ var rBDEnd = UNICODE.biaodian.end
+ var rBDMid = UNICODE.biaodian.middle
+ var rBDLiga = UNICODE.biaodian.liga + '{2}'
+ var rBD = rBDOpen + '|' + rBDEnd + '|' + rBDMid
+
+ var rKana = UNICODE.kana.base + UNICODE.kana.combine + '?'
+ var rKanaS = UNICODE.kana.small + UNICODE.kana.combine + '?'
+ var rKanaH = UNICODE.kana.half
+ var rEon = UNICODE.eonmun.base + '|' + UNICODE.eonmun.letter
+ var rEonH = UNICODE.eonmun.half
+
+ var rHan = UNICODE.hanzi.base + '|' + UNICODE.hanzi.desc + '|' + UNICODE.hanzi.radical + '|' + rKana
+
+ var rCbn = UNICODE.ellinika.combine
+ var rLatn = UNICODE.latin.base + rCbn + '*'
+ var rGk = UNICODE.ellinika.base + rCbn + '*'
+
+ var rCyCbn = UNICODE.kirillica.combine
+ var rCy = UNICODE.kirillica.base + rCyCbn + '*'
+
+ var rAlph = rLatn + '|' + rGk + '|' + rCy
+
+ // For words like `it's`, `Jones’s` or `'99`
+ var rApo = '[\u0027\u2019]'
+ var rChar = rHan + '|(?:' + rAlph + '|' + rApo + ')+'
+
+ var rZyS = UNICODE.zhuyin.initial
+ var rZyJ = UNICODE.zhuyin.medial
+ var rZyY = UNICODE.zhuyin.final
+ var rZyD = UNICODE.zhuyin.tone + '|' + UNICODE.zhuyin.checked
+
+ return {
+ /* Character-level selector (字級選擇器)
+ */
+ char: {
+ punct: {
+ all: new RegExp( '(' + rPt + ')', 'g' ),
+ open: new RegExp( '(' + rPtOpen + ')', 'g' ),
+ end: new RegExp( '(' + rPtEnd + ')', 'g' ),
+ sing: new RegExp( '(' + rPtSing + ')', 'g' )
+ },
+
+ biaodian: {
+ all: new RegExp( '(' + rBD + ')', 'g' ),
+ open: new RegExp( '(' + rBDOpen + ')', 'g' ),
+ close: new RegExp( '(' + rBDClose + ')', 'g' ),
+ end: new RegExp( '(' + rBDEnd + ')', 'g' ),
+ liga: new RegExp( '(' + rBDLiga + ')', 'g' )
+ },
+
+ hanzi: new RegExp( '(' + rHan + ')', 'g' ),
+
+ latin: new RegExp( '(' + rLatn + ')', 'ig' ),
+ ellinika: new RegExp( '(' + rGk + ')', 'ig' ),
+ kirillica: new RegExp( '(' + rCy + ')', 'ig' ),
+
+ kana: new RegExp( '(' + rKana + '|' + rKanaS + '|' + rKanaH + ')', 'g' ),
+ eonmun: new RegExp( '(' + rEon + '|' + rEonH + ')', 'g' )
+ },
+
+ /* Word-level selectors (詞級選擇器)
+ */
+ group: {
+ biaodian: [
+ new RegExp( '((' + rBD + '){2,})', 'g' ),
+ new RegExp( '(' + rBDLiga + rBDOpen + ')', 'g' )
+ ],
+ punct: null,
+ hanzi: new RegExp( '(' + rHan + ')+', 'g' ),
+ western: new RegExp( '(' + rLatn + '|' + rGk + '|' + rCy + '|' + rPt + ')+', 'ig' ),
+ kana: new RegExp( '(' + rKana + '|' + rKanaS + '|' + rKanaH + ')+', 'g' ),
+ eonmun: new RegExp( '(' + rEon + '|' + rEonH + '|' + rPt + ')+', 'g' )
+ },
+
+ /* Punctuation Rules (禁則)
+ */
+ jinze: {
+ hanging: new RegExp( rWhite + '*([、,。.])(?!' + rBDEnd + ')', 'ig' ),
+ touwei: new RegExp( '(' + rBDOpen + '+)(' + rChar + ')(' + rBDEnd + '+)', 'ig' ),
+ tou: new RegExp( '(' + rBDOpen + '+)(' + rChar + ')', 'ig' ),
+ wei: new RegExp( '(' + rChar + ')(' + rBDEnd + '+)', 'ig' ),
+ middle: new RegExp( '(' + rChar + ')(' + rBDMid + ')(' + rChar + ')', 'ig' )
+ },
+
+ zhuyin: {
+ form: new RegExp( '^\u02D9?(' + rZyS + ')?(' + rZyJ + ')?(' + rZyY + ')?(' + rZyD + ')?$' ),
+ diao: new RegExp( '(' + rZyD + ')', 'g' )
+ },
+
+ /* Hanzi and Western mixed spacing (漢字西文混排間隙)
+ * - Basic mode
+ * - Strict mode
+ */
+ hws: {
+ base: [
+ new RegExp( '('+ rHan + ')(' + rAlph + '|' + rPtOpen + ')', 'ig' ),
+ new RegExp( '('+ rAlph + '|' + rPtEnd + ')(' + rHan + ')', 'ig' )
+ ],
+
+ strict: [
+ new RegExp( '('+ rHan + ')' + rWhite + '?(' + rAlph + '|' + rPtOpen + ')', 'ig' ),
+ new RegExp( '('+ rAlph + '|' + rPtEnd + ')' + rWhite + '?(' + rHan + ')', 'ig' )
+ ]
+ },
+
+ // The feature displays the following characters
+ // in its variant form for font consistency and
+ // presentational reason. Meanwhile, this won't
+ // alter the original character in the DOM.
+ 'display-as': {
+ 'ja-font-for-hant': [
+ // '夠 够',
+ '查 査',
+ '啟 啓',
+ '鄉 鄕',
+ '值 値',
+ '污 汚'
+ ],
+
+ 'comb-liga-pua': [
+ [ '\u0061[\u030d\u0358]', '\uDB80\uDC61' ],
+ [ '\u0065[\u030d\u0358]', '\uDB80\uDC65' ],
+ [ '\u0069[\u030d\u0358]', '\uDB80\uDC69' ],
+ [ '\u006F[\u030d\u0358]', '\uDB80\uDC6F' ],
+ [ '\u0075[\u030d\u0358]', '\uDB80\uDC75' ],
+
+ [ '\u31B4[\u030d\u0358]', '\uDB8C\uDDB4' ],
+ [ '\u31B5[\u030d\u0358]', '\uDB8C\uDDB5' ],
+ [ '\u31B6[\u030d\u0358]', '\uDB8C\uDDB6' ],
+ [ '\u31B7[\u030d\u0358]', '\uDB8C\uDDB7' ]
+ ],
+
+ 'comb-liga-vowel': [
+ [ '\u0061[\u030d\u0358]', '\uDB80\uDC61' ],
+ [ '\u0065[\u030d\u0358]', '\uDB80\uDC65' ],
+ [ '\u0069[\u030d\u0358]', '\uDB80\uDC69' ],
+ [ '\u006F[\u030d\u0358]', '\uDB80\uDC6F' ],
+ [ '\u0075[\u030d\u0358]', '\uDB80\uDC75' ]
+ ],
+
+ 'comb-liga-zhuyin': [
+ [ '\u31B4[\u030d\u0358]', '\uDB8C\uDDB4' ],
+ [ '\u31B5[\u030d\u0358]', '\uDB8C\uDDB5' ],
+ [ '\u31B6[\u030d\u0358]', '\uDB8C\uDDB6' ],
+ [ '\u31B7[\u030d\u0358]', '\uDB8C\uDDB7' ]
+ ]
+ },
+
+ // The feature actually *converts* the character
+ // in the DOM for semantic reason.
+ //
+ // Note that this could be aggressive.
+ 'inaccurate-char': [
+ [ '[\u2022\u2027]', '\u00B7' ],
+ [ '\u22EF\u22EF', '\u2026\u2026' ],
+ [ '\u2500\u2500', '\u2014\u2014' ],
+ [ '\u2035', '\u2018' ],
+ [ '\u2032', '\u2019' ],
+ [ '\u2036', '\u201C' ],
+ [ '\u2033', '\u201D' ]
+ ]
+ }
+})()
+
+Han.UNICODE = UNICODE
+Han.TYPESET = TYPESET
+
+// Aliases
+Han.UNICODE.cjk = Han.UNICODE.hanzi
+Han.UNICODE.greek = Han.UNICODE.ellinika
+Han.UNICODE.cyrillic = Han.UNICODE.kirillica
+Han.UNICODE.hangul = Han.UNICODE.eonmun
+Han.UNICODE.zhuyin.ruyun = Han.UNICODE.zhuyin.checked
+
+Han.TYPESET.char.cjk = Han.TYPESET.char.hanzi
+Han.TYPESET.char.greek = Han.TYPESET.char.ellinika
+Han.TYPESET.char.cyrillic = Han.TYPESET.char.kirillica
+Han.TYPESET.char.hangul = Han.TYPESET.char.eonmun
+
+Han.TYPESET.group.hangul = Han.TYPESET.group.eonmun
+Han.TYPESET.group.cjk = Han.TYPESET.group.hanzi
+
+var $ = {
+ /**
+ * Query selectors which return arrays of the resulted
+ * node lists.
+ */
+ id: function( selector, $context ) {
+ return ( $context || document ).getElementById( selector )
+ },
+
+ tag: function( selector, $context ) {
+ return this.makeArray(
+ ( $context || document ).getElementsByTagName( selector )
+ )
+ },
+
+ qs: function( selector, $context ) {
+ return ( $context || document ).querySelector( selector )
+ },
+
+ qsa: function( selector, $context ) {
+ return this.makeArray(
+ ( $context || document ).querySelectorAll( selector )
+ )
+ },
+
+ parent: function( $node, selector ) {
+ return selector
+ ? (function() {
+ if ( typeof $.matches !== 'function' ) return
+
+ while (!$.matches( $node, selector )) {
+ if (
+ !$node ||
+ $node === document.documentElement
+ ) {
+ $node = undefined
+ break
+ }
+ $node = $node.parentNode
+ }
+ return $node
+ })()
+ : $node
+ ? $node.parentNode : undefined
+ },
+
+ /**
+ * Create a document fragment, a text node with text
+ * or an element with/without classes.
+ */
+ create: function( name, clazz ) {
+ var $elmt = '!' === name
+ ? document.createDocumentFragment()
+ : '' === name
+ ? document.createTextNode( clazz || '' )
+ : document.createElement( name )
+
+ try {
+ if ( clazz ) {
+ $elmt.className = clazz
+ }
+ } catch (e) {}
+
+ return $elmt
+ },
+
+ /**
+ * Clone a DOM node (text, element or fragment) deeply
+ * or childlessly.
+ */
+ clone: function( $node, deep ) {
+ return $node.cloneNode(
+ typeof deep === 'boolean'
+ ? deep
+ : true
+ )
+ },
+
+ /**
+ * Remove a node (text, element or fragment).
+ */
+ remove: function( $node ) {
+ return $node.parentNode.removeChild( $node )
+ },
+
+ /**
+ * Set attributes all in once with an object.
+ */
+ setAttr: function( target, attr ) {
+ if ( typeof attr !== 'object' ) return
+ var len = attr.length
+
+ // Native `NamedNodeMap``:
+ if (
+ typeof attr[0] === 'object' &&
+ 'name' in attr[0]
+ ) {
+ for ( var i = 0; i < len; i++ ) {
+ if ( attr[ i ].value !== undefined ) {
+ target.setAttribute( attr[ i ].name, attr[ i ].value )
+ }
+ }
+
+ // Plain object:
+ } else {
+ for ( var name in attr ) {
+ if (
+ attr.hasOwnProperty( name ) &&
+ attr[ name ] !== undefined
+ ) {
+ target.setAttribute( name, attr[ name ] )
+ }
+ }
+ }
+ return target
+ },
+
+ /**
+ * Indicate whether or not the given node is an
+ * element.
+ */
+ isElmt: function( $node ) {
+ return $node && $node.nodeType === Node.ELEMENT_NODE
+ },
+
+ /**
+ * Indicate whether or not the given node should
+ * be ignored (`
` or comments).
+ */
+ isIgnorable: function( $node ) {
+ if ( !$node ) return false
+
+ return (
+ $node.nodeName === 'WBR' ||
+ $node.nodeType === Node.COMMENT_NODE
+ )
+ },
+
+ /**
+ * Convert array-like objects into real arrays.
+ */
+ makeArray: function( object ) {
+ return Array.prototype.slice.call( object )
+ },
+
+ /**
+ * Extend target with an object.
+ */
+ extend: function( target, object ) {
+ if ((
+ typeof target === 'object' ||
+ typeof target === 'function' ) &&
+ typeof object === 'object'
+ ) {
+ for ( var name in object ) {
+ if (object.hasOwnProperty( name )) {
+ target[ name ] = object[ name ]
+ }
+ }
+ }
+ return target
+ }
+}
+
+var Fibre =
+/*!
+ * Fibre.js v0.2.1 | MIT License | github.com/ethantw/fibre.js
+ * Based on findAndReplaceDOMText
+ */
+
+function( Finder ) {
+
+'use strict'
+
+var VERSION = '0.2.1'
+var NON_INLINE_PROSE = Finder.NON_INLINE_PROSE
+var AVOID_NON_PROSE = Finder.PRESETS.prose.filterElements
+
+var global = window || {}
+var document = global.document || undefined
+
+function matches( node, selector, bypassNodeType39 ) {
+ var Efn = Element.prototype
+ var matches = Efn.matches || Efn.mozMatchesSelector || Efn.msMatchesSelector || Efn.webkitMatchesSelector
+
+ if ( node instanceof Element ) {
+ return matches.call( node, selector )
+ } else if ( bypassNodeType39 ) {
+ if ( /^[39]$/.test( node.nodeType )) return true
+ }
+ return false
+}
+
+if ( typeof document === 'undefined' ) throw new Error( 'Fibre requires a DOM-supported environment.' )
+
+var Fibre = function( context, preset ) {
+ return new Fibre.fn.init( context, preset )
+}
+
+Fibre.version = VERSION
+Fibre.matches = matches
+
+Fibre.fn = Fibre.prototype = {
+ constructor: Fibre,
+
+ version: VERSION,
+
+ finder: [],
+
+ context: undefined,
+
+ portionMode: 'retain',
+
+ selector: {},
+
+ preset: 'prose',
+
+ init: function( context, noPreset ) {
+ if ( !!noPreset ) this.preset = null
+
+ this.selector = {
+ context: null,
+ filter: [],
+ avoid: [],
+ boundary: []
+ }
+
+ if ( !context ) {
+ throw new Error( 'A context is required for Fibre to initialise.' )
+ } else if ( context instanceof Node ) {
+ if ( context instanceof Document ) this.context = context.body || context
+ else this.context = context
+ } else if ( typeof context === 'string' ) {
+ this.context = document.querySelector( context )
+ this.selector.context = context
+ }
+ return this
+ },
+
+ filterFn: function( node ) {
+ var filter = this.selector.filter.join( ', ' ) || '*'
+ var avoid = this.selector.avoid.join( ', ' ) || null
+ var result = matches( node, filter, true ) && !matches( node, avoid )
+ return ( this.preset === 'prose' ) ? AVOID_NON_PROSE( node ) && result : result
+ },
+
+ boundaryFn: function( node ) {
+ var boundary = this.selector.boundary.join( ', ' ) || null
+ var result = matches( node, boundary )
+ return ( this.preset === 'prose' ) ? NON_INLINE_PROSE( node ) || result : result
+ },
+
+ filter: function( selector ) {
+ if ( typeof selector === 'string' ) {
+ this.selector.filter.push( selector )
+ }
+ return this
+ },
+
+ endFilter: function( all ) {
+ if ( all ) {
+ this.selector.filter = []
+ } else {
+ this.selector.filter.pop()
+ }
+ return this
+ },
+
+ avoid: function( selector ) {
+ if ( typeof selector === 'string' ) {
+ this.selector.avoid.push( selector )
+ }
+ return this
+ },
+
+ endAvoid: function( all ) {
+ if ( all ) {
+ this.selector.avoid = []
+ } else {
+ this.selector.avoid.pop()
+ }
+ return this
+ },
+
+ addBoundary: function( selector ) {
+ if ( typeof selector === 'string' ) {
+ this.selector.boundary.push( selector )
+ }
+ return this
+ },
+
+ removeBoundary: function() {
+ this.selector.boundary = []
+ return this
+ },
+
+ setMode: function( portionMode ) {
+ this.portionMode = portionMode === 'first' ? 'first' : 'retain'
+ return this
+ },
+
+ replace: function( regexp, newSubStr ) {
+ var it = this
+ it.finder.push(Finder( it.context, {
+ find: regexp,
+ replace: newSubStr,
+ filterElements: function( currentNode ) {
+ return it.filterFn( currentNode )
+ },
+ forceContext: function( currentNode ) {
+ return it.boundaryFn( currentNode )
+ },
+ portionMode: it.portionMode
+ }))
+ return it
+ },
+
+ wrap: function( regexp, strElemName ) {
+ var it = this
+ it.finder.push(Finder( it.context, {
+ find: regexp,
+ wrap: strElemName,
+ filterElements: function( currentNode ) {
+ return it.filterFn( currentNode )
+ },
+ forceContext: function( currentNode ) {
+ return it.boundaryFn( currentNode )
+ },
+ portionMode: it.portionMode
+ }))
+ return it
+ },
+
+ revert: function( level ) {
+ var max = this.finder.length
+ var level = Number( level ) || ( level === 0 ? Number(0) :
+ ( level === 'all' ? max : 1 ))
+
+ if ( typeof max === 'undefined' || max === 0 ) return this
+ else if ( level > max ) level = max
+
+ for ( var i = level; i > 0; i-- ) {
+ this.finder.pop().revert()
+ }
+ return this
+ }
+}
+
+// Deprecated API(s)
+Fibre.fn.filterOut = Fibre.fn.avoid
+
+// Make sure init() inherit from Fibre()
+Fibre.fn.init.prototype = Fibre.fn
+
+return Fibre
+
+}(
+
+/**
+ * findAndReplaceDOMText v 0.4.3
+ * @author James Padolsey http://james.padolsey.com
+ * @license http://unlicense.org/UNLICENSE
+ *
+ * Matches the text of a DOM node against a regular expression
+ * and replaces each match (or node-separated portions of the match)
+ * in the specified element.
+ */
+ (function() {
+
+ var PORTION_MODE_RETAIN = 'retain'
+ var PORTION_MODE_FIRST = 'first'
+ var doc = document
+ var toString = {}.toString
+ var hasOwn = {}.hasOwnProperty
+ function isArray(a) {
+ return toString.call(a) == '[object Array]'
+ }
+
+ function escapeRegExp(s) {
+ return String(s).replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1')
+ }
+
+ function exposed() {
+ // Try deprecated arg signature first:
+ return deprecated.apply(null, arguments) || findAndReplaceDOMText.apply(null, arguments)
+ }
+
+ function deprecated(regex, node, replacement, captureGroup, elFilter) {
+ if ((node && !node.nodeType) && arguments.length <= 2) {
+ return false
+ }
+ var isReplacementFunction = typeof replacement == 'function'
+ if (isReplacementFunction) {
+ replacement = (function(original) {
+ return function(portion, match) {
+ return original(portion.text, match.startIndex)
+ }
+ }(replacement))
+ }
+
+ // Awkward support for deprecated argument signature (<0.4.0)
+ var instance = findAndReplaceDOMText(node, {
+
+ find: regex,
+
+ wrap: isReplacementFunction ? null : replacement,
+ replace: isReplacementFunction ? replacement : '$' + (captureGroup || '&'),
+
+ prepMatch: function(m, mi) {
+
+ // Support captureGroup (a deprecated feature)
+
+ if (!m[0]) throw 'findAndReplaceDOMText cannot handle zero-length matches'
+ if (captureGroup > 0) {
+ var cg = m[captureGroup]
+ m.index += m[0].indexOf(cg)
+ m[0] = cg
+ }
+
+ m.endIndex = m.index + m[0].length
+ m.startIndex = m.index
+ m.index = mi
+ return m
+ },
+ filterElements: elFilter
+ })
+ exposed.revert = function() {
+ return instance.revert()
+ }
+ return true
+ }
+
+ /**
+ * findAndReplaceDOMText
+ *
+ * Locates matches and replaces with replacementNode
+ *
+ * @param {Node} node Element or Text node to search within
+ * @param {RegExp} options.find The regular expression to match
+ * @param {String|Element} [options.wrap] A NodeName, or a Node to clone
+ * @param {String|Function} [options.replace='$&'] What to replace each match with
+ * @param {Function} [options.filterElements] A Function to be called to check whether to
+ * process an element. (returning true = process element,
+ * returning false = avoid element)
+ */
+ function findAndReplaceDOMText(node, options) {
+ return new Finder(node, options)
+ }
+
+ exposed.NON_PROSE_ELEMENTS = {
+ br:1, hr:1,
+ // Media / Source elements:
+ script:1, style:1, img:1, video:1, audio:1, canvas:1, svg:1, map:1, object:1,
+ // Input elements
+ input:1, textarea:1, select:1, option:1, optgroup: 1, button:1
+ }
+ exposed.NON_CONTIGUOUS_PROSE_ELEMENTS = {
+
+ // Elements that will not contain prose or block elements where we don't
+ // want prose to be matches across element borders:
+
+ // Block Elements
+ address:1, article:1, aside:1, blockquote:1, dd:1, div:1,
+ dl:1, fieldset:1, figcaption:1, figure:1, footer:1, form:1, h1:1, h2:1, h3:1,
+ h4:1, h5:1, h6:1, header:1, hgroup:1, hr:1, main:1, nav:1, noscript:1, ol:1,
+ output:1, p:1, pre:1, section:1, ul:1,
+ // Other misc. elements that are not part of continuous inline prose:
+ br:1, li: 1, summary: 1, dt:1, details:1, rp:1, rt:1, rtc:1,
+ // Media / Source elements:
+ script:1, style:1, img:1, video:1, audio:1, canvas:1, svg:1, map:1, object:1,
+ // Input elements
+ input:1, textarea:1, select:1, option:1, optgroup: 1, button:1,
+ // Table related elements:
+ table:1, tbody:1, thead:1, th:1, tr:1, td:1, caption:1, col:1, tfoot:1, colgroup:1
+
+ }
+ exposed.NON_INLINE_PROSE = function(el) {
+ return hasOwn.call(exposed.NON_CONTIGUOUS_PROSE_ELEMENTS, el.nodeName.toLowerCase())
+ }
+ // Presets accessed via `options.preset` when calling findAndReplaceDOMText():
+ exposed.PRESETS = {
+ prose: {
+ forceContext: exposed.NON_INLINE_PROSE,
+ filterElements: function(el) {
+ return !hasOwn.call(exposed.NON_PROSE_ELEMENTS, el.nodeName.toLowerCase())
+ }
+ }
+ }
+ exposed.Finder = Finder
+ /**
+ * Finder -- encapsulates logic to find and replace.
+ */
+ function Finder(node, options) {
+
+ var preset = options.preset && exposed.PRESETS[options.preset]
+ options.portionMode = options.portionMode || PORTION_MODE_RETAIN
+ if (preset) {
+ for (var i in preset) {
+ if (hasOwn.call(preset, i) && !hasOwn.call(options, i)) {
+ options[i] = preset[i]
+ }
+ }
+ }
+
+ this.node = node
+ this.options = options
+ // ENable match-preparation method to be passed as option:
+ this.prepMatch = options.prepMatch || this.prepMatch
+ this.reverts = []
+ this.matches = this.search()
+ if (this.matches.length) {
+ this.processMatches()
+ }
+
+ }
+
+ Finder.prototype = {
+
+ /**
+ * Searches for all matches that comply with the instance's 'match' option
+ */
+ search: function() {
+
+ var match
+ var matchIndex = 0
+ var offset = 0
+ var regex = this.options.find
+ var textAggregation = this.getAggregateText()
+ var matches = []
+ var self = this
+ regex = typeof regex === 'string' ? RegExp(escapeRegExp(regex), 'g') : regex
+ matchAggregation(textAggregation)
+ function matchAggregation(textAggregation) {
+ for (var i = 0, l = textAggregation.length; i < l; ++i) {
+
+ var text = textAggregation[i]
+ if (typeof text !== 'string') {
+ // Deal with nested contexts: (recursive)
+ matchAggregation(text)
+ continue
+ }
+
+ if (regex.global) {
+ while (match = regex.exec(text)) {
+ matches.push(self.prepMatch(match, matchIndex++, offset))
+ }
+ } else {
+ if (match = text.match(regex)) {
+ matches.push(self.prepMatch(match, 0, offset))
+ }
+ }
+
+ offset += text.length
+ }
+ }
+
+ return matches
+ },
+
+ /**
+ * Prepares a single match with useful meta info:
+ */
+ prepMatch: function(match, matchIndex, characterOffset) {
+
+ if (!match[0]) {
+ throw new Error('findAndReplaceDOMText cannot handle zero-length matches')
+ }
+
+ match.endIndex = characterOffset + match.index + match[0].length
+ match.startIndex = characterOffset + match.index
+ match.index = matchIndex
+ return match
+ },
+
+ /**
+ * Gets aggregate text within subject node
+ */
+ getAggregateText: function() {
+
+ var elementFilter = this.options.filterElements
+ var forceContext = this.options.forceContext
+ return getText(this.node)
+ /**
+ * Gets aggregate text of a node without resorting
+ * to broken innerText/textContent
+ */
+ function getText(node, txt) {
+
+ if (node.nodeType === 3) {
+ return [node.data]
+ }
+
+ if (elementFilter && !elementFilter(node)) {
+ return []
+ }
+
+ var txt = ['']
+ var i = 0
+ if (node = node.firstChild) do {
+
+ if (node.nodeType === 3) {
+ txt[i] += node.data
+ continue
+ }
+
+ var innerText = getText(node)
+ if (
+ forceContext &&
+ node.nodeType === 1 &&
+ (forceContext === true || forceContext(node))
+ ) {
+ txt[++i] = innerText
+ txt[++i] = ''
+ } else {
+ if (typeof innerText[0] === 'string') {
+ // Bridge nested text-node data so that they're
+ // not considered their own contexts:
+ // I.e. ['some', ['thing']] -> ['something']
+ txt[i] += innerText.shift()
+ }
+ if (innerText.length) {
+ txt[++i] = innerText
+ txt[++i] = ''
+ }
+ }
+ } while (node = node.nextSibling)
+ return txt
+ }
+
+ },
+
+ /**
+ * Steps through the target node, looking for matches, and
+ * calling replaceFn when a match is found.
+ */
+ processMatches: function() {
+
+ var matches = this.matches
+ var node = this.node
+ var elementFilter = this.options.filterElements
+ var startPortion,
+ endPortion,
+ innerPortions = [],
+ curNode = node,
+ match = matches.shift(),
+ atIndex = 0, // i.e. nodeAtIndex
+ matchIndex = 0,
+ portionIndex = 0,
+ doAvoidNode,
+ nodeStack = [node]
+ out: while (true) {
+
+ if (curNode.nodeType === 3) {
+
+ if (!endPortion && curNode.length + atIndex >= match.endIndex) {
+
+ // We've found the ending
+ endPortion = {
+ node: curNode,
+ index: portionIndex++,
+ text: curNode.data.substring(match.startIndex - atIndex, match.endIndex - atIndex),
+ indexInMatch: atIndex - match.startIndex,
+ indexInNode: match.startIndex - atIndex, // always zero for end-portions
+ endIndexInNode: match.endIndex - atIndex,
+ isEnd: true
+ }
+ } else if (startPortion) {
+ // Intersecting node
+ innerPortions.push({
+ node: curNode,
+ index: portionIndex++,
+ text: curNode.data,
+ indexInMatch: atIndex - match.startIndex,
+ indexInNode: 0 // always zero for inner-portions
+ })
+ }
+
+ if (!startPortion && curNode.length + atIndex > match.startIndex) {
+ // We've found the match start
+ startPortion = {
+ node: curNode,
+ index: portionIndex++,
+ indexInMatch: 0,
+ indexInNode: match.startIndex - atIndex,
+ endIndexInNode: match.endIndex - atIndex,
+ text: curNode.data.substring(match.startIndex - atIndex, match.endIndex - atIndex)
+ }
+ }
+
+ atIndex += curNode.data.length
+ }
+
+ doAvoidNode = curNode.nodeType === 1 && elementFilter && !elementFilter(curNode)
+ if (startPortion && endPortion) {
+
+ curNode = this.replaceMatch(match, startPortion, innerPortions, endPortion)
+ // processMatches has to return the node that replaced the endNode
+ // and then we step back so we can continue from the end of the
+ // match:
+
+ atIndex -= (endPortion.node.data.length - endPortion.endIndexInNode)
+ startPortion = null
+ endPortion = null
+ innerPortions = []
+ match = matches.shift()
+ portionIndex = 0
+ matchIndex++
+ if (!match) {
+ break; // no more matches
+ }
+
+ } else if (
+ !doAvoidNode &&
+ (curNode.firstChild || curNode.nextSibling)
+ ) {
+ // Move down or forward:
+ if (curNode.firstChild) {
+ nodeStack.push(curNode)
+ curNode = curNode.firstChild
+ } else {
+ curNode = curNode.nextSibling
+ }
+ continue
+ }
+
+ // Move forward or up:
+ while (true) {
+ if (curNode.nextSibling) {
+ curNode = curNode.nextSibling
+ break
+ }
+ curNode = nodeStack.pop()
+ if (curNode === node) {
+ break out
+ }
+ }
+
+ }
+
+ },
+
+ /**
+ * Reverts ... TODO
+ */
+ revert: function() {
+ // Reversion occurs backwards so as to avoid nodes subsequently
+ // replaced during the matching phase (a forward process):
+ for (var l = this.reverts.length; l--;) {
+ this.reverts[l]()
+ }
+ this.reverts = []
+ },
+
+ prepareReplacementString: function(string, portion, match, matchIndex) {
+ var portionMode = this.options.portionMode
+ if (
+ portionMode === PORTION_MODE_FIRST &&
+ portion.indexInMatch > 0
+ ) {
+ return ''
+ }
+ string = string.replace(/\$(\d+|&|`|')/g, function($0, t) {
+ var replacement
+ switch(t) {
+ case '&':
+ replacement = match[0]
+ break
+ case '`':
+ replacement = match.input.substring(0, match.startIndex)
+ break
+ case '\'':
+ replacement = match.input.substring(match.endIndex)
+ break
+ default:
+ replacement = match[+t]
+ }
+ return replacement
+ })
+ if (portionMode === PORTION_MODE_FIRST) {
+ return string
+ }
+
+ if (portion.isEnd) {
+ return string.substring(portion.indexInMatch)
+ }
+
+ return string.substring(portion.indexInMatch, portion.indexInMatch + portion.text.length)
+ },
+
+ getPortionReplacementNode: function(portion, match, matchIndex) {
+
+ var replacement = this.options.replace || '$&'
+ var wrapper = this.options.wrap
+ if (wrapper && wrapper.nodeType) {
+ // Wrapper has been provided as a stencil-node for us to clone:
+ var clone = doc.createElement('div')
+ clone.innerHTML = wrapper.outerHTML || new XMLSerializer().serializeToString(wrapper)
+ wrapper = clone.firstChild
+ }
+
+ if (typeof replacement == 'function') {
+ replacement = replacement(portion, match, matchIndex)
+ if (replacement && replacement.nodeType) {
+ return replacement
+ }
+ return doc.createTextNode(String(replacement))
+ }
+
+ var el = typeof wrapper == 'string' ? doc.createElement(wrapper) : wrapper
+ replacement = doc.createTextNode(
+ this.prepareReplacementString(
+ replacement, portion, match, matchIndex
+ )
+ )
+ if (!replacement.data) {
+ return replacement
+ }
+
+ if (!el) {
+ return replacement
+ }
+
+ el.appendChild(replacement)
+ return el
+ },
+
+ replaceMatch: function(match, startPortion, innerPortions, endPortion) {
+
+ var matchStartNode = startPortion.node
+ var matchEndNode = endPortion.node
+ var preceedingTextNode
+ var followingTextNode
+ if (matchStartNode === matchEndNode) {
+
+ var node = matchStartNode
+ if (startPortion.indexInNode > 0) {
+ // Add `before` text node (before the match)
+ preceedingTextNode = doc.createTextNode(node.data.substring(0, startPortion.indexInNode))
+ node.parentNode.insertBefore(preceedingTextNode, node)
+ }
+
+ // Create the replacement node:
+ var newNode = this.getPortionReplacementNode(
+ endPortion,
+ match
+ )
+ node.parentNode.insertBefore(newNode, node)
+ if (endPortion.endIndexInNode < node.length) { // ?????
+ // Add `after` text node (after the match)
+ followingTextNode = doc.createTextNode(node.data.substring(endPortion.endIndexInNode))
+ node.parentNode.insertBefore(followingTextNode, node)
+ }
+
+ node.parentNode.removeChild(node)
+ this.reverts.push(function() {
+ if (preceedingTextNode === newNode.previousSibling) {
+ preceedingTextNode.parentNode.removeChild(preceedingTextNode)
+ }
+ if (followingTextNode === newNode.nextSibling) {
+ followingTextNode.parentNode.removeChild(followingTextNode)
+ }
+ newNode.parentNode.replaceChild(node, newNode)
+ })
+ return newNode
+ } else {
+ // Replace matchStartNode -> [innerMatchNodes...] -> matchEndNode (in that order)
+
+ preceedingTextNode = doc.createTextNode(
+ matchStartNode.data.substring(0, startPortion.indexInNode)
+ )
+ followingTextNode = doc.createTextNode(
+ matchEndNode.data.substring(endPortion.endIndexInNode)
+ )
+ var firstNode = this.getPortionReplacementNode(
+ startPortion,
+ match
+ )
+ var innerNodes = []
+ for (var i = 0, l = innerPortions.length; i < l; ++i) {
+ var portion = innerPortions[i]
+ var innerNode = this.getPortionReplacementNode(
+ portion,
+ match
+ )
+ portion.node.parentNode.replaceChild(innerNode, portion.node)
+ this.reverts.push((function(portion, innerNode) {
+ return function() {
+ innerNode.parentNode.replaceChild(portion.node, innerNode)
+ }
+ }(portion, innerNode)))
+ innerNodes.push(innerNode)
+ }
+
+ var lastNode = this.getPortionReplacementNode(
+ endPortion,
+ match
+ )
+ matchStartNode.parentNode.insertBefore(preceedingTextNode, matchStartNode)
+ matchStartNode.parentNode.insertBefore(firstNode, matchStartNode)
+ matchStartNode.parentNode.removeChild(matchStartNode)
+ matchEndNode.parentNode.insertBefore(lastNode, matchEndNode)
+ matchEndNode.parentNode.insertBefore(followingTextNode, matchEndNode)
+ matchEndNode.parentNode.removeChild(matchEndNode)
+ this.reverts.push(function() {
+ preceedingTextNode.parentNode.removeChild(preceedingTextNode)
+ firstNode.parentNode.replaceChild(matchStartNode, firstNode)
+ followingTextNode.parentNode.removeChild(followingTextNode)
+ lastNode.parentNode.replaceChild(matchEndNode, lastNode)
+ })
+ return lastNode
+ }
+ }
+
+ }
+ return exposed
+}())
+
+);
+
+var isNodeNormalizeNormal = (function() {
+ //// Disabled `Node.normalize()` for temp due to
+ //// issue below in IE11.
+ //// See: http://stackoverflow.com/questions/22337498/why-does-ie11-handle-node-normalize-incorrectly-for-the-minus-symbol
+ var div = $.create( 'div' )
+
+ div.appendChild($.create( '', '0-' ))
+ div.appendChild($.create( '', '2' ))
+ div.normalize()
+
+ return div.firstChild.length !== 2
+})()
+
+function getFuncOrElmt( obj ) {
+ return (
+ typeof obj === 'function' ||
+ obj instanceof Element
+ )
+ ? obj
+ : undefined
+}
+
+function createBDGroup( portion ) {
+ var clazz = portion.index === 0 && portion.isEnd
+ ? 'biaodian cjk'
+ : 'biaodian cjk portion ' + (
+ portion.index === 0
+ ? 'is-first'
+ : portion.isEnd
+ ? 'is-end'
+ : 'is-inner'
+ )
+
+ var $elmt = $.create( 'h-char-group', clazz )
+ $elmt.innerHTML = portion.text
+ return $elmt
+}
+
+function createBDChar( char ) {
+ var div = $.create( 'div' )
+ var unicode = char.charCodeAt( 0 ).toString( 16 )
+
+ div.innerHTML = (
+ '' + char + ''
+ )
+ return div.firstChild
+}
+
+function getBDType( char ) {
+ return char.match( TYPESET.char.biaodian.open )
+ ? 'bd-open'
+ : char.match( TYPESET.char.biaodian.close )
+ ? 'bd-close bd-end'
+ : char.match( TYPESET.char.biaodian.end )
+ ? (
+ /(?:\u3001|\u3002|\uff0c)/i.test( char )
+ ? 'bd-end bd-cop'
+ : 'bd-end'
+ )
+ : char.match(new RegExp( UNICODE.biaodian.liga ))
+ ? 'bd-liga'
+ : char.match(new RegExp( UNICODE.biaodian.middle ))
+ ? 'bd-middle'
+ : ''
+}
+
+$.extend( Fibre.fn, {
+ normalize: function() {
+ if ( isNodeNormalizeNormal ) {
+ this.context.normalize()
+ }
+ return this
+ },
+
+ // Force punctuation & biaodian typesetting rules to be applied.
+ jinzify: function( selector ) {
+ return (
+ this
+ .filter( selector || null )
+ .avoid( 'h-jinze' )
+ .replace(
+ TYPESET.jinze.touwei,
+ function( portion, match ) {
+ var elem = $.create( 'h-jinze', 'touwei' )
+ elem.innerHTML = match[0]
+ return (( portion.index === 0 && portion.isEnd ) || portion.index === 1 ) ? elem : ''
+ }
+ )
+ .replace(
+ TYPESET.jinze.wei,
+ function( portion, match ) {
+ var elem = $.create( 'h-jinze', 'wei' )
+ elem.innerHTML = match[0]
+ return portion.index === 0 ? elem : ''
+ }
+ )
+ .replace(
+ TYPESET.jinze.tou,
+ function( portion, match ) {
+ var elem = $.create( 'h-jinze', 'tou' )
+ elem.innerHTML = match[0]
+ return (( portion.index === 0 && portion.isEnd ) || portion.index === 1 )
+ ? elem : ''
+ }
+ )
+ .replace(
+ TYPESET.jinze.middle,
+ function( portion, match ) {
+ var elem = $.create( 'h-jinze', 'middle' )
+ elem.innerHTML = match[0]
+ return (( portion.index === 0 && portion.isEnd ) || portion.index === 1 )
+ ? elem : ''
+ }
+ )
+ .endAvoid()
+ .endFilter()
+ )
+ },
+
+ groupify: function( option ) {
+ var option = $.extend({
+ biaodian: false,
+ //punct: false,
+ hanzi: false, // Includes Kana
+ kana: false,
+ eonmun: false,
+ western: false // Includes Latin, Greek and Cyrillic
+ }, option || {})
+
+ this.avoid( 'h-word, h-char-group' )
+
+ if ( option.biaodian ) {
+ this.replace(
+ TYPESET.group.biaodian[0], createBDGroup
+ ).replace(
+ TYPESET.group.biaodian[1], createBDGroup
+ )
+ }
+
+ if ( option.hanzi || option.cjk ) {
+ this.wrap(
+ TYPESET.group.hanzi, $.clone($.create( 'h-char-group', 'hanzi cjk' ))
+ )
+ }
+ if ( option.western ) {
+ this.wrap(
+ TYPESET.group.western, $.clone($.create( 'h-word', 'western' ))
+ )
+ }
+ if ( option.kana ) {
+ this.wrap(
+ TYPESET.group.kana, $.clone($.create( 'h-char-group', 'kana' ))
+ )
+ }
+ if ( option.eonmun || option.hangul ) {
+ this.wrap(
+ TYPESET.group.eonmun, $.clone($.create( 'h-word', 'eonmun hangul' ))
+ )
+ }
+
+ this.endAvoid()
+ return this
+ },
+
+ charify: function( option ) {
+ var option = $.extend({
+ avoid: true,
+ biaodian: false,
+ punct: false,
+ hanzi: false, // Includes Kana
+ latin: false,
+ ellinika: false,
+ kirillica: false,
+ kana: false,
+ eonmun: false
+ }, option || {})
+
+ if ( option.avoid ) {
+ this.avoid( 'h-char' )
+ }
+
+ if ( option.biaodian ) {
+ this.replace(
+ TYPESET.char.biaodian.all,
+ getFuncOrElmt( option.biaodian )
+ ||
+ function( portion ) { return createBDChar( portion.text ) }
+ ).replace(
+ TYPESET.char.biaodian.liga,
+ getFuncOrElmt( option.biaodian )
+ ||
+ function( portion ) { return createBDChar( portion.text ) }
+ )
+ }
+ if ( option.hanzi || option.cjk ) {
+ this.wrap(
+ TYPESET.char.hanzi,
+ getFuncOrElmt( option.hanzi || option.cjk )
+ ||
+ $.clone($.create( 'h-char', 'hanzi cjk' ))
+ )
+ }
+ if ( option.punct ) {
+ this.wrap(
+ TYPESET.char.punct.all,
+ getFuncOrElmt( option.punct )
+ ||
+ $.clone($.create( 'h-char', 'punct' ))
+ )
+ }
+ if ( option.latin ) {
+ this.wrap(
+ TYPESET.char.latin,
+ getFuncOrElmt( option.latin )
+ ||
+ $.clone($.create( 'h-char', 'alphabet latin' ))
+ )
+ }
+ if ( option.ellinika || option.greek ) {
+ this.wrap(
+ TYPESET.char.ellinika,
+ getFuncOrElmt( option.ellinika || option.greek )
+ ||
+ $.clone($.create( 'h-char', 'alphabet ellinika greek' ))
+ )
+ }
+ if ( option.kirillica || option.cyrillic ) {
+ this.wrap(
+ TYPESET.char.kirillica,
+ getFuncOrElmt( option.kirillica || option.cyrillic )
+ ||
+ $.clone($.create( 'h-char', 'alphabet kirillica cyrillic' ))
+ )
+ }
+ if ( option.kana ) {
+ this.wrap(
+ TYPESET.char.kana,
+ getFuncOrElmt( option.kana )
+ ||
+ $.clone($.create( 'h-char', 'kana' ))
+ )
+ }
+ if ( option.eonmun || option.hangul ) {
+ this.wrap(
+ TYPESET.char.eonmun,
+ getFuncOrElmt( option.eonmun || option.hangul )
+ ||
+ $.clone($.create( 'h-char', 'eonmun hangul' ))
+ )
+ }
+
+ this.endAvoid()
+ return this
+ }
+})
+
+$.extend( Han, {
+ isNodeNormalizeNormal: isNodeNormalizeNormal,
+ find: Fibre,
+ createBDGroup: createBDGroup,
+ createBDChar: createBDChar
+})
+
+$.matches = Han.find.matches
+
+void [
+ 'setMode',
+ 'wrap', 'replace', 'revert',
+ 'addBoundary', 'removeBoundary',
+ 'avoid', 'endAvoid',
+ 'filter', 'endFilter',
+ 'jinzify', 'groupify', 'charify'
+].forEach(function( method ) {
+ Han.fn[ method ] = function() {
+ if ( !this.finder ) {
+ // Share the same selector
+ this.finder = Han.find( this.context )
+ }
+
+ this.finder[ method ]( arguments[ 0 ], arguments[ 1 ] )
+ return this
+ }
+})
+
+var Locale = {}
+
+function writeOnCanvas( text, font ) {
+ var canvas = $.create( 'canvas' )
+ var context
+
+ canvas.width = '50'
+ canvas.height = '20'
+ canvas.style.display = 'none'
+
+ body.appendChild( canvas )
+
+ context = canvas.getContext( '2d' )
+ context.textBaseline = 'top'
+ context.font = '15px ' + font + ', sans-serif'
+ context.fillStyle = 'black'
+ context.strokeStyle = 'black'
+ context.fillText( text, 0, 0 )
+
+ return {
+ node: canvas,
+ context: context,
+ remove: function() {
+ $.remove( canvas, body )
+ }
+ }
+}
+
+function compareCanvases( treat, control ) {
+ var ret
+ var a = treat.context
+ var b = control.context
+
+ try {
+ for ( var j = 1; j <= 20; j++ ) {
+ for ( var i = 1; i <= 50; i++ ) {
+ if (
+ typeof ret === 'undefined' &&
+ a.getImageData(i, j, 1, 1).data[3] !== b.getImageData(i, j, 1, 1).data[3]
+ ) {
+ ret = false
+ break
+ } else if ( typeof ret === 'boolean' ) {
+ break
+ }
+
+ if ( i === 50 && j === 20 && typeof ret === 'undefined' ) {
+ ret = true
+ }
+ }
+ }
+
+ // Remove and clean from memory
+ treat.remove()
+ control.remove()
+ treat = null
+ control = null
+
+ return ret
+ } catch (e) {}
+ return false
+}
+
+function detectFont( treat, control, text ) {
+ var treat = treat
+ var control = control || 'sans-serif'
+ var text = text || '辭Q'
+ var ret
+
+ control = writeOnCanvas( text, control )
+ treat = writeOnCanvas( text, treat )
+
+ return !compareCanvases( treat, control )
+}
+
+Locale.writeOnCanvas = writeOnCanvas
+Locale.compareCanvases = compareCanvases
+Locale.detectFont = detectFont
+
+Locale.support = (function() {
+
+ var PREFIX = 'Webkit Moz ms'.split(' ')
+
+ // Create an element for feature detecting
+ // (in `testCSSProp`)
+ var elem = $.create( 'h-test' )
+
+ function testCSSProp( prop ) {
+ var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1)
+ var allProp = ( prop + ' ' + PREFIX.join( ucProp + ' ' ) + ucProp ).split(' ')
+ var ret
+
+ allProp.forEach(function( prop ) {
+ if ( typeof elem.style[ prop ] === 'string' ) {
+ ret = true
+ }
+ })
+ return ret || false
+ }
+
+ function injectElementWithStyle( rule, callback ) {
+ var fakeBody = body || $.create( 'body' )
+ var div = $.create( 'div' )
+ var container = body ? div : fakeBody
+ var callback = typeof callback === 'function' ? callback : function() {}
+ var style, ret, docOverflow
+
+ style = [ '' ].join('')
+
+ container.innerHTML += style
+ fakeBody.appendChild( div )
+
+ if ( !body ) {
+ fakeBody.style.background = ''
+ fakeBody.style.overflow = 'hidden'
+ docOverflow = root.style.overflow
+
+ root.style.overflow = 'hidden'
+ root.appendChild( fakeBody )
+ }
+
+ // Callback
+ ret = callback( container, rule )
+
+ // Remove the injected scope
+ $.remove( container )
+ if ( !body ) {
+ root.style.overflow = docOverflow
+ }
+ return !!ret
+ }
+
+ function getStyle( elem, prop ) {
+ var ret
+
+ if ( window.getComputedStyle ) {
+ ret = document.defaultView.getComputedStyle( elem, null ).getPropertyValue( prop )
+ } else if ( elem.currentStyle ) {
+ // for IE
+ ret = elem.currentStyle[ prop ]
+ }
+ return ret
+ }
+
+ return {
+ columnwidth: testCSSProp( 'columnWidth' ),
+
+ fontface: (function() {
+ var ret
+
+ injectElementWithStyle(
+ '@font-face { font-family: font; src: url("//"); }',
+ function( node, rule ) {
+ var style = $.qsa( 'style', node )[0]
+ var sheet = style.sheet || style.styleSheet
+ var cssText = sheet ?
+ ( sheet.cssRules && sheet.cssRules[0] ?
+ sheet.cssRules[0].cssText : sheet.cssText || ''
+ ) : ''
+
+ ret = /src/i.test( cssText ) &&
+ cssText.indexOf( rule.split(' ')[0] ) === 0
+ }
+ )
+
+ return ret
+ })(),
+
+ ruby: (function() {
+ var ruby = $.create( 'ruby' )
+ var rt = $.create( 'rt' )
+ var rp = $.create( 'rp' )
+ var ret
+
+ ruby.appendChild( rp )
+ ruby.appendChild( rt )
+ root.appendChild( ruby )
+
+ // Browsers that support ruby hide the `