1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2227,8743],{42227:(r,N,e)=>{var n=function(){return(n=Object.assign||function(r){for(var N,e=1,n=arguments.length;e<n;e++)for(var t in N=arguments[e])Object.prototype.hasOwnProperty.call(N,t)&&(r[t]=N[t]);return r}).apply(this,arguments)},t=function(r,N){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var n,t,E=e.call(r),o=[];try{for(;(void 0===N||N-- >0)&&!(n=E.next()).done;)o.push(n.value)}catch(r){t={error:r}}finally{try{n&&!n.done&&(e=E.return)&&e.call(E)}finally{if(t)throw t.error}}return o},E=function(r,N,e){if(e||2==arguments.length)for(var n,t=0,E=N.length;t<E;t++)!n&&t in N||(n||(n=Array.prototype.slice.call(N,0,t)),n[t]=N[t]);return r.concat(n||Array.prototype.slice.call(N))};Object.defineProperty(N,"__esModule",{value:!0}),N.compact=N.compact2array=N.combo=N.combo2array=N.convertUserOptions=N.convertPinyinMode=N.convertPinyinStyle=N.hasKey=void 0;var o=e(98743);N.hasKey=function(r,N){return Object.prototype.hasOwnProperty.call(r,N)};var I=new Map([["tone",o.ENUM_PINYIN_STYLE.TONE],["TONE",o.ENUM_PINYIN_STYLE.TONE],["1",o.ENUM_PINYIN_STYLE.TONE],["tone2",o.ENUM_PINYIN_STYLE.TONE2],["TONE2",o.ENUM_PINYIN_STYLE.TONE2],["2",o.ENUM_PINYIN_STYLE.TONE2],["to3ne",o.ENUM_PINYIN_STYLE.TO3NE],["TO3NE",o.ENUM_PINYIN_STYLE.TO3NE],["5",o.ENUM_PINYIN_STYLE.TO3NE],["first_letter",o.ENUM_PINYIN_STYLE.FIRST_LETTER],["FIRST_LETTER",o.ENUM_PINYIN_STYLE.FIRST_LETTER],["4",o.ENUM_PINYIN_STYLE.FIRST_LETTER],["initials",o.ENUM_PINYIN_STYLE.INITIALS],["INITIALS",o.ENUM_PINYIN_STYLE.INITIALS],["3",o.ENUM_PINYIN_STYLE.INITIALS],["normal",o.ENUM_PINYIN_STYLE.NORMAL],["NORMAL",o.ENUM_PINYIN_STYLE.NORMAL],["0",o.ENUM_PINYIN_STYLE.NORMAL],["passport",o.ENUM_PINYIN_STYLE.PASSPORT],["PASSPORT",o.ENUM_PINYIN_STYLE.PASSPORT],["6",o.ENUM_PINYIN_STYLE.PASSPORT]]);function a(r){var N=String(r);return I.has(N)?I.get(N):o.ENUM_PINYIN_STYLE.TONE}N.convertPinyinStyle=a;var _=new Map([["normal",o.ENUM_PINYIN_MODE.NORMAL],["NORMAL",o.ENUM_PINYIN_MODE.NORMAL],["surname",o.ENUM_PINYIN_MODE.SURNAME],["SURNAME",o.ENUM_PINYIN_MODE.SURNAME]]);function T(r){var N=String(r);return _.has(N)?_.get(N):o.ENUM_PINYIN_MODE.NORMAL}function i(r,N){var e=[];if(!r.length)return N;if(!N.length)return r;for(var n=0,t=r.length;n<t;n++)for(var E=0,o=N.length;E<o;E++)e.push(r[n]+N[E]);return e}function l(r,N){if(!Array.isArray(r)||!Array.isArray(N))throw Error("compact2array expect two array as parameters");r.length||(r=[""]),N.length||(N=[""]);for(var e=[],n=0,o=r.length;n<o;n++)for(var I=0,a=N.length;I<a;I++)Array.isArray(r[n])?e.push(E(E([],t(r[n]),!1),[N[I]],!1)):e.push([r[n],N[I]]);return e}N.convertPinyinMode=T,N.convertUserOptions=function(r){var N=void 0;return(null==r?void 0:r.segment)&&(N=(null==r?void 0:r.segment)===!0?"Intl.Segmenter":r.segment),n(n({},o.DEFAULT_OPTIONS),{style:a(null==r?void 0:r.style),mode:T(null==r?void 0:r.mode),segment:N,heteronym:(null==r?void 0:r.heteronym)||!1,group:(null==r?void 0:r.group)||!1})},N.combo2array=i,N.combo=function(r){if(0===r.length)return[];if(1===r.length)return r[0];for(var N=i(r[0],r[1]),e=2,n=r.length;e<n;e++)N=i(N,r[e]);return N},N.compact2array=l,N.compact=function(r){if(0===r.length)return[];if(1===r.length)return[r[0]];for(var N=l(r[0],r[1]),e=2,n=r.length;e<n;++e)N=l(N,r[e]);return N}},98743:(r,N)=>{var e,n;Object.defineProperty(N,"__esModule",{value:!0}),N.FINALS=N.INITIALS=N.PHONETIC_SYMBOL=N.DEFAULT_OPTIONS=N.ENUM_PINYIN_MODE=N.ENUM_PINYIN_STYLE=void 0,function(r){r[r.NORMAL=0]="NORMAL",r[r.TONE=1]="TONE",r[r.TONE2=2]="TONE2",r[r.TO3NE=5]="TO3NE",r[r.INITIALS=3]="INITIALS",r[r.FIRST_LETTER=4]="FIRST_LETTER",r[r.PASSPORT=6]="PASSPORT"}(e=N.ENUM_PINYIN_STYLE||(N.ENUM_PINYIN_STYLE={})),function(r){r[r.NORMAL=0]="NORMAL",r[r.SURNAME=1]="SURNAME"}(n=N.ENUM_PINYIN_MODE||(N.ENUM_PINYIN_MODE={})),N.DEFAULT_OPTIONS={style:e.TONE,mode:n.NORMAL,heteronym:!1,group:!1,compact:!1},N.PHONETIC_SYMBOL={Ä:"a1",á:"a2",Ç:"a3",à :"a4",Ä:"e1",é:"e2",Ä:"e3",è:"e4",Å:"o1",ó:"o2",Ç:"o3",ò:"o4",Ä«:"i1",Ã:"i2",Ç:"i3",ì:"i4",Å«:"u1",ú:"u2",Ç:"u3",ù:"u4",ü:"v0",Ç:"v2",Ç:"v3",Ç:"v4",Å:"n2",Å:"n3","î":"m2"},N.INITIALS="b,p,m,f,d,t,n,l,g,k,h,j,q,x,r,zh,ch,sh,z,c,s".split(","),N.FINALS="ang,eng,ing,ong,an,en,in,un,er,ai,ei,ui,ao,ou,iu,ie,ve,a,o,e,i,u,v".split(",")}}]); 2//# sourceMappingURL=2227.bbd7cde758a9985c.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.