text: !function(){var t,l,c,e,r,h,d,f,p,y,m,g,x,v,w,Q,k,S,E,L,b,P,T,O,I,i,n,z=function(e){var t=new z.Builder;return t.pipeline.add(z.trimmer,z.stopWordFilter,z.stemmer),t.searchPipeline.add(z.stemmer),e.call(t,t),t.build()};function s(e){var t,r,i,n,s,o,a;if(e.length<3)return e;if("y"==(i=e.substr(0,1))&&(e=i.toUpperCase()+e.substr(1)),s=m,(n=y).test(e)?e=e.replace(n,"$1$2"):s.test(e)&&(e=e.replace(s,"$1$2")),s=x,(n=g).test(e)){var u=n.exec(e);(n=h).test(u[1])&&(n=v,e=e.replace(n,""))}else if(s.test(e)){t=(u=s.exec(e))[1],(s=p).test(t)&&(o=Q,a=k,(s=w).test(e=t)?e+="e":o.test(e)?(n=v,e=e.replace(n,"")):a.test(e)&&(e+="e"))}if((n=S).test(e)&&(e=(t=(u=n.exec(e))[1])+"i"),(n=E).test(e)&&(t=(u=n.exec(e))[1],r=u[2],(n=h).test(t)&&(e=t+l[r])),(n=L).test(e)&&(t=(u=n.exec(e))[1],r=u[2],(n=h).test(t)&&(e=t+c[r])),s=P,(n=b).test(e))t=(u=n.exec(e))[1],(n=d).test(t)&&(e=t);else if(s.test(e)){t=(u=s.exec(e))[1]+u[2],(s=d).test(t)&&(e=t)}return(n=T).test(e)&&(t=(u=n.exec(e))[1],s=f,o=I,((n=d).test(t)||s.test(t)&&!o.test(t))&&(e=t)),s=d,(n=O).test(e)&&s.test(e)&&(n=v,e=e.replace(n,"")),"y"==i&&(e=i.toLowerCase()+e.substr(1)),e}z.version="2.3.8",z.utils={},z.utils.warn=(t=this,function(e){t.console&&console.warn&&console.warn(e)}),z.utils.asString=function(e){return null==e?"":e.toString()},z.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i<r.length;i++){var n=r[i],s=e[n];if(Array.isArray(s))t[n]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");t[n]=s}}return t},z.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},z.FieldRef.joiner="/",z.FieldRef.fromString=function(e){var t=e.indexOf(z.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),i=e.slice(t+1);return new z.FieldRef(i,r,e)},z.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+z.FieldRef.joiner+this.docRef),this._stringValue},z.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},z.Set.complete={intersect:function(e){return e},union:function(e){return e},contains:function(){return!0}},z.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},z.Set.prototype.contains=function(e){return!!this.elements[e]},z.Set.prototype.intersect=function(e){var t,r,i,n=[];if(e===z.Set.complete)return this;if(e===z.Set.empty)return e;r=this.length<e.length?(t=this,e):(t=e,this),i=Object.keys(t.elements);for(var s=0;s<i.length;s++){var o=i[s];o in r.elements&&n.push(o)}return new z.Set(n)},z.Set.prototype.union=function(e){return e===z.Set.complete?z.Set.complete:e===z.Set.empty?this:new z.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},z.idf=function(e,t){var r=0;for(var i in e)"_index"!=i&&(r+=Object.keys(e[i]).length);var n=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(n))},z.Token=function(e,t){this.str=e||"",this.metadata=t||{}},z.Token.prototype.toString=function(){return this.str},z.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},z.Token.prototype.clone=function(e){return e=e||function(e){return e},new z.Token(e(this.str,this.metadata),this.metadata)},z.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return new z.Token(z.utils.asString(e).toLowerCase(),z.utils.clone(t))});for(var r=e.toString().toLowerCase(),i=r.length,n=[],s=0,o=0;s<=i;s++){var a=s-o;if(r.charAt(s).match(z.tokenizer.separator)||s==i){if(0<a){var u=z.utils.clone(t)||{};u.position=[o,a],u.index=n.length,n.push(new z.Token(r.slice(o,s),u))}o=s+1}}return n},z.tokenizer.separator=/[\s\-]+/,z.Pipeline=function(){this._stack=[]},z.Pipeline.registeredFunctions=Object.create(null),z.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&z.utils.warn("Overwriting existing registered function: "+t),e.label=t,z.Pipeline.registeredFunctions[e.label]=e},z.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||z.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",e)},z.Pipeline.load=function(e){var r=new z.Pipeline;return e.forEach(function(e){var t=z.Pipeline.registeredFunctions[e];if(!t)throw new Error("Cannot load unregistered function: "+e);r.add(t)}),r},z.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach(function(e){z.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)},this)},z.Pipeline.prototype.after=function(e,t){z.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},z.Pipeline.prototype.before=function(e,t){z.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},z.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},z.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var i=this._stack[r],n=[],s=0;s<e.length;s++){var o=i(e[s],s,e);if(null!=o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)n.push(o[a]);else n.push(o)}e=n}return e},z.Pipeline.prototype.runString=function(e,t){var r=new z.Token(e,t);return this.run([r]).map(function(e){return e.toString()})},z.Pipeline.prototype.reset=function(){this._stack=[]},z.Pipeline.prototype.toJSON=function(){return this._stack.map(function(e){return z.Pipeline.warnIfFunctionNotRegistered(e),e.label})},z.Vector=function(e){this._magnitude=0,this.elements=e||[]},z.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,i=r-t,n=Math.floor(i/2),s=this.elements[2*n];1<i&&(s<e&&(t=n),e<s&&(r=n),s!=e);)i=r-t,n=t+Math.floor(i/2),s=this.elements[2*n];return s==e?2*n:e<s?2*n:s<e?2*(n+1):void 0},z.Vector.prototype.insert=function(e,t){this.upsert(e,t,function(){throw"duplicate index"})},z.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=r(this.elements[i+1],t):this.elements.splice(i,0,e,t)},z.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var i=this.elements[r];e+=i*i}return this._magnitude=Math.sqrt(e)},z.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,i=e.elements,n=r.length,s=i.length,o=0,a=0,u=0,l=0;u<n&&l<s;)(o=r[u])<(a=i[l])?u+=2:a<o?l+=2:o==a&&(t+=r[u+1]*i[l+1],u+=2,l+=2);return t},z.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},z.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},z.Vector.prototype.toJSON=function(){return this.elements},z.stemmer=(l={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},c={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},e="[aeiouy]",r="[^aeiou][^aeiouy]*",h=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),d=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),p=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),y=/^(.+?)(ss|i)es$/,m=/^(.+?)([^s])s$/,g=/^(.+?)eed$/,x=/^(.+?)(ed|ing)$/,v=/.$/,w=/(at|bl|iz)$/,Q=new RegExp("([^aeiouylsz])\\1$"),k=new RegExp("^"+r+e+"[^aeiouwxy]$"),S=/^(.+?[^aeiou])y$/,E=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,L=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,b=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,P=/^(.+?)(s|t)(ion)$/,T=/^(.+?)e$/,O=/ll$/,I=new RegExp("^"+r+e+"[^aeiouwxy]$"),function(e){return e.update(s)}),z.Pipeline.registerFunction(z.stemmer,"stemmer"),z.generateStopWordFilter=function(e){var t=e.reduce(function(e,t){return e[t]=t,e},{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},z.stopWordFilter=z.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),z.Pipeline.registerFunction(z.stopWordFilter,"stopWordFilter"),z.trimmer=function(e){return e.update(function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")})},z.Pipeline.registerFunction(z.trimmer,"trimmer"),z.TokenSet=function(){this.final=!1,this.edges={},this.id=z.TokenSet._nextId,z.TokenSet._nextId+=1},z.TokenSet._nextId=1,z.TokenSet.fromArray=function(e){for(var t=new z.TokenSet.Builder,r=0,i=e.length;r<i;r++)t.insert(e[r]);return t.finish(),t.root},z.TokenSet.fromClause=function(e){return"editDistance"in e?z.TokenSet.fromFuzzyString(e.term,e.editDistance):z.TokenSet.fromString(e.term)},z.TokenSet.fromFuzzyString=function(e,t){for(var r=new z.TokenSet,i=[{node:r,editsRemaining:t,str:e}];i.length;){var n=i.pop();if(0<n.str.length){var s,o=n.str.charAt(0);o in n.node.edges?s=n.node.edges[o]:(s=new z.TokenSet,n.node.edges[o]=s),1==n.str.length&&(s.final=!0),i.push({node:s,editsRemaining:n.editsRemaining,str:n.str.slice(1)})}if(0!=n.editsRemaining){if("*"in n.node.edges)var a=n.node.edges["*"];else{a=new z.TokenSet;n.node.edges["*"]=a}if(0==n.str.length&&(a.final=!0),i.push({node:a,editsRemaining:n.editsRemaining-1,str:n.str}),1<n.str.length&&i.push({node:n.node,editsRemaining:n.editsRemaining-1,str:n.str.slice(1)}),1==n.str.length&&(n.node.final=!0),1<=n.str.length){if("*"in n.node.edges)var u=n.node.edges["*"];else{u=new z.TokenSet;n.node.edges["*"]=u}1==n.str.length&&(u.final=!0),i.push({node:u,editsRemaining:n.editsRemaining-1,str:n.str.slice(1)})}if(1<n.str.length){var l,c=n.str.charAt(0),h=n.str.charAt(1);h in n.node.edges?l=n.node.edges[h]:(l=new z.TokenSet,n.node.edges[h]=l),1==n.str.length&&(l.final=!0),i.push({node:l,editsRemaining:n.editsRemaining-1,str:c+n.str.slice(2)})}}}return r},z.TokenSet.fromString=function(e){for(var t=new z.TokenSet,r=t,i=0,n=e.length;i<n;i++){var s=e[i],o=i==n-1;if("*"==s)(t.edges[s]=t).final=o;else{var a=new z.TokenSet;a.final=o,t.edges[s]=a,t=a}}return r},z.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),i=Object.keys(r.node.edges),n=i.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var s=0;s<n;s++){var o=i[s];t.push({prefix:r.prefix.concat(o),node:r.node.edges[o]})}}return e},z.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,i=0;i<r;i++){var n=t[i];e=e+n+this.edges[n].id}return e},z.TokenSet.prototype.intersect=function(e){for(var t=new z.TokenSet,r=void 0,i=[{qNode:e,output:t,node:this}];i.length;){r=i.pop();for(var n=Object.keys(r.qNode.edges),s=n.length,o=Object.keys(r.node.edges),a=o.length,u=0;u<s;u++)for(var l=n[u],c=0;c<a;c++){var h=o[c];if(h==l||"*"==l){var d=r.node.edges[h],f=r.qNode.edges[l],p=d.final&&f.final,y=void 0;h in r.output.edges?(y=r.output.edges[h]).final=y.final||p:((y=new z.TokenSet).final=p,r.output.edges[h]=y),i.push({qNode:f,output:y,node:d})}}}return t},z.TokenSet.Builder=function(){this.previousWord="",this.root=new z.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},z.TokenSet.Builder.prototype.insert=function(e){var t,r=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<e.length&&i<this.previousWord.length&&e[i]==this.previousWord[i];i++)r++;this.minimize(r),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(i=r;i<e.length;i++){var n=new z.TokenSet,s=e[i];t.edges[s]=n,this.uncheckedNodes.push({parent:t,char:s,child:n}),t=n}t.final=!0,this.previousWord=e},z.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},z.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;e<=t;t--){var r=this.uncheckedNodes[t],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}},z.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},z.Index.prototype.search=function(t){return this.query(function(e){new z.QueryParser(t,e).parse()})},z.Index.prototype.query=function(e){for(var t=new z.Query(this.fields),r=Object.create(null),i=Object.create(null),n=Object.create(null),s=Object.create(null),o=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new z.Vector;e.call(t,t);for(a=0;a<t.clauses.length;a++){var u=t.clauses[a],l=null,c=z.Set.complete;l=u.usePipeline?this.pipeline.runString(u.term,{fields:u.fields}):[u.term];for(var h=0;h<l.length;h++){var d=l[h];u.term=d;var f=z.TokenSet.fromClause(u),p=this.tokenSet.intersect(f).toArray();if(0===p.length&&u.presence===z.Query.presence.REQUIRED){for(var y=0;y<u.fields.length;y++){s[R=u.fields[y]]=z.Set.empty}break}for(var m=0;m<p.length;m++){var g=p[m],x=this.invertedIndex[g],v=x._index;for(y=0;y<u.fields.length;y++){var w=x[R=u.fields[y]],Q=Object.keys(w),k=g+"/"+R,S=new z.Set(Q);if(u.presence==z.Query.presence.REQUIRED&&(c=c.union(S),void 0===s[R]&&(s[R]=z.Set.complete)),u.presence!=z.Query.presence.PROHIBITED){if(i[R].upsert(v,u.boost,function(e,t){return e+t}),!n[k]){for(var E=0;E<Q.length;E++){var L,b=Q[E],P=new z.FieldRef(b,R),T=w[b];void 0===(L=r[P])?r[P]=new z.MatchData(g,R,T):L.add(g,R,T)}n[k]=!0}}else void 0===o[R]&&(o[R]=z.Set.empty),o[R]=o[R].union(S)}}}if(u.presence===z.Query.presence.REQUIRED)for(y=0;y<u.fields.length;y++){s[R=u.fields[y]]=s[R].intersect(c)}}var O=z.Set.complete,I=z.Set.empty;for(a=0;a<this.fields.length;a++){var R;s[R=this.fields[a]]&&(O=O.intersect(s[R])),o[R]&&(I=I.union(o[R]))}var F=Object.keys(r),C=[],N=Object.create(null);if(t.isNegated()){F=Object.keys(this.fieldVectors);for(a=0;a<F.length;a++){P=F[a];var j=z.FieldRef.fromString(P);r[P]=new z.MatchData}}for(a=0;a<F.length;a++){var _=(j=z.FieldRef.fromString(F[a])).docRef;if(O.contains(_)&&!I.contains(_)){var D,A=this.fieldVectors[j],B=i[j.fieldName].similarity(A);if(void 0!==(D=N[_]))D.score+=B,D.matchData.combine(r[j]);else{var V={ref:_,score:B,matchData:r[j]};N[_]=V,C.push(V)}}}return C.sort(function(e,t){return t.score-e.score})},z.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map(function(e){return[e,this.invertedIndex[e]]},this),t=Object.keys(this.fieldVectors).map(function(e){return[e,this.fieldVectors[e].toJSON()]},this);return{version:z.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},z.Index.load=function(e){var t={},r={},i=e.fieldVectors,n=Object.create(null),s=e.invertedIndex,o=new z.TokenSet.Builder,a=z.Pipeline.load(e.pipeline);e.version!=z.version&&z.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+z.version+"' does not match serialized index '"+e.version+"'");for(var u=0;u<i.length;u++){var l=(h=i[u])[0],c=h[1];r[l]=new z.Vector(c)}for(u=0;u<s.length;u++){var h,d=(h=s[u])[0],f=h[1];o.insert(d),n[d]=f}return o.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=n,t.tokenSet=o.root,t.pipeline=a,new z.Index(t)},z.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=z.tokenizer,this.pipeline=new z.Pipeline,this.searchPipeline=new z.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},z.Builder.prototype.ref=function(e){this._ref=e},z.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},z.Builder.prototype.b=function(e){this._b=e<0?0:1<e?1:e},z.Builder.prototype.k1=function(e){this._k1=e},z.Builder.prototype.add=function(e,t){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var n=0;n<i.length;n++){var s=i[n],o=this._fields[s].extractor,a=o?o(e):e[s],u=this.tokenizer(a,{fields:[s]}),l=this.pipeline.run(u),c=new z.FieldRef(r,s),h=Object.create(null);this.fieldTermFrequencies[c]=h,this.fieldLengths[c]=0,this.fieldLengths[c]+=l.length;for(var d=0;d<l.length;d++){var f=l[d];if(null==h[f]&&(h[f]=0),h[f]+=1,null==this.invertedIndex[f]){var p=Object.create(null);p._index=this.termIndex,this.termIndex+=1;for(var y=0;y<i.length;y++)p[i[y]]=Object.create(null);this.invertedIndex[f]=p}null==this.invertedIndex[f][s][r]&&(this.invertedIndex[f][s][r]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var g=this.metadataWhitelist[m],x=f.metadata[g];null==this.invertedIndex[f][s][r][g]&&(this.invertedIndex[f][s][r][g]=[]),this.invertedIndex[f][s][r][g].push(x)}}}},z.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},i={},n=0;n<t;n++){var s=z.FieldRef.fromString(e[n]),o=s.fieldName;i[o]||(i[o]=0),i[o]+=1,r[o]||(r[o]=0),r[o]+=this.fieldLengths[s]}var a=Object.keys(this._fields);for(n=0;n<a.length;n++){var u=a[n];r[u]=r[u]/i[u]}this.averageFieldLength=r},z.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,i=Object.create(null),n=0;n<r;n++){for(var s=z.FieldRef.fromString(t[n]),o=s.fieldName,a=this.fieldLengths[s],u=new z.Vector,l=this.fieldTermFrequencies[s],c=Object.keys(l),h=c.length,d=this._fields[o].boost||1,f=this._documents[s.docRef].boost||1,p=0;p<h;p++){var y,m,g,x=c[p],v=l[x],w=this.invertedIndex[x]._index;void 0===i[x]?(y=z.idf(this.invertedIndex[x],this.documentCount),i[x]=y):y=i[x],m=y*((this._k1+1)*v)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[o]))+v),m*=d,m*=f,g=Math.round(1e3*m)/1e3,u.insert(w,g)}e[s]=u}this.fieldVectors=e},z.Builder.prototype.createTokenSet=function(){this.tokenSet=z.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},z.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new z.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},z.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},z.MatchData=function(e,t,r){for(var i=Object.create(null),n=Object.keys(r||{}),s=0;s<n.length;s++){var o=n[s];i[o]=r[o].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=i)},z.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var i=t[r],n=Object.keys(e.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var s=0;s<n.length;s++){var o=n[s],a=Object.keys(e.metadata[i][o]);null==this.metadata[i][o]&&(this.metadata[i][o]=Object.create(null));for(var u=0;u<a.length;u++){var l=a[u];null==this.metadata[i][o][l]?this.metadata[i][o][l]=e.metadata[i][o][l]:this.metadata[i][o][l]=this.metadata[i][o][l].concat(e.metadata[i][o][l])}}}},z.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var i=Object.keys(r),n=0;n<i.length;n++){var s=i[n];s in this.metadata[e][t]?this.metadata[e][t][s]=this.metadata[e][t][s].concat(r[s]):this.metadata[e][t][s]=r[s]}else this.metadata[e][t]=r},z.Query=function(e){this.clauses=[],this.allFields=e},z.Query.wildcard=new String("*"),z.Query.wildcard.NONE=0,z.Query.wildcard.LEADING=1,z.Query.wildcard.TRAILING=2,z.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},z.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=z.Query.wildcard.NONE),e.wildcard&z.Query.wildcard.LEADING&&e.term.charAt(0)!=z.Query.wildcard&&(e.term="*"+e.term),e.wildcard&z.Query.wildcard.TRAILING&&e.term.slice(-1)!=z.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=z.Query.presence.OPTIONAL),this.clauses.push(e),this},z.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=z.Query.presence.PROHIBITED)return!1;return!0},z.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach(function(e){this.term(e,z.utils.clone(t))},this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},z.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},z.QueryParseError.prototype=new Error,z.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},z.QueryLexer.prototype.run=function(){for(var e=z.QueryLexer.lexText;e;)e=e(this)},z.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,i=0;i<this.escapeCharPositions.length;i++)r=this.escapeCharPositions[i],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},z.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},z.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},z.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return z.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},z.QueryLexer.prototype.width=function(){return this.pos-this.start},z.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},z.QueryLexer.prototype.backup=function(){--this.pos},z.QueryLexer.prototype.acceptDigitRun=function(){for(var e,t;47<(t=(e=this.next()).charCodeAt(0))&&t<58;);e!=z.QueryLexer.EOS&&this.backup()},z.QueryLexer.prototype.more=function(){return this.pos<this.length},z.QueryLexer.EOS="EOS",z.QueryLexer.FIELD="FIELD",z.QueryLexer.TERM="TERM",z.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",z.QueryLexer.BOOST="BOOST",z.QueryLexer.PRESENCE="PRESENCE",z.QueryLexer.lexField=function(e){return e.backup(),e.emit(z.QueryLexer.FIELD),e.ignore(),z.QueryLexer.lexText},z.QueryLexer.lexTerm=function(e){if(1<e.width()&&(e.backup(),e.emit(z.QueryLexer.TERM)),e.ignore(),e.more())return z.QueryLexer.lexText},z.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(z.QueryLexer.EDIT_DISTANCE),z.QueryLexer.lexText},z.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(z.QueryLexer.BOOST),z.QueryLexer.lexText},z.QueryLexer.lexEOS=function(e){0<e.width()&&e.emit(z.QueryLexer.TERM)},z.QueryLexer.termSeparator=z.tokenizer.separator,z.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==z.QueryLexer.EOS)return z.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return z.QueryLexer.lexField;if("~"==t)return e.backup(),0<e.width()&&e.emit(z.QueryLexer.TERM),z.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),0<e.width()&&e.emit(z.QueryLexer.TERM),z.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(z.QueryLexer.PRESENCE),z.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(z.QueryLexer.PRESENCE),z.QueryLexer.lexText;if(t.match(z.QueryLexer.termSeparator))return z.QueryLexer.lexTerm}else e.escapeCharacter()}},z.QueryParser=function(e,t){this.lexer=new z.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},z.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=z.QueryParser.parseClause;e;)e=e(this);return this.query},z.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},z.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},z.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},z.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case z.QueryLexer.PRESENCE:return z.QueryParser.parsePresence;case z.QueryLexer.FIELD:return z.QueryParser.parseField;case z.QueryLexer.TERM:return z.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw 1<=t.str.length&&(r+=" with value '"+t.str+"'"),new z.QueryParseError(r,t.start,t.end)}},z.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=z.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=z.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+t.str+"'";throw new z.QueryParseError(r,t.start,t.end)}var i=e.peekLexeme();if(null==i){r="expecting term or field, found nothing";throw new z.QueryParseError(r,t.start,t.end)}switch(i.type){case z.QueryLexer.FIELD:return z.QueryParser.parseField;case z.QueryLexer.TERM:return z.QueryParser.parseTerm;default:r="expecting term or field, found '"+i.type+"'";throw new z.QueryParseError(r,i.start,i.end)}}},z.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map(function(e){return"'"+e+"'"}).join(", "),i="unrecognised field '"+t.str+"', possible fields: "+r;throw new z.QueryParseError(i,t.start,t.end)}e.currentClause.fields=[t.str];var n=e.peekLexeme();if(null==n){i="expecting term, found nothing";throw new z.QueryParseError(i,t.start,t.end)}switch(n.type){case z.QueryLexer.TERM:return z.QueryParser.parseTerm;default:i="expecting term, found '"+n.type+"'";throw new z.QueryParseError(i,n.start,n.end)}}},z.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case z.QueryLexer.TERM:return e.nextClause(),z.QueryParser.parseTerm;case z.QueryLexer.FIELD:return e.nextClause(),z.QueryParser.parseField;case z.QueryLexer.EDIT_DISTANCE:return z.QueryParser.parseEditDistance;case z.QueryLexer.BOOST:return z.QueryParser.parseBoost;case z.QueryLexer.PRESENCE:return e.nextClause(),z.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new z.QueryParseError(i,r.start,r.end)}else e.nextClause()}},z.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new z.QueryParseError(i,t.start,t.end)}e.currentClause.editDistance=r;var n=e.peekLexeme();if(null!=n)switch(n.type){case z.QueryLexer.TERM:return e.nextClause(),z.QueryParser.parseTerm;case z.QueryLexer.FIELD:return e.nextClause(),z.QueryParser.parseField;case z.QueryLexer.EDIT_DISTANCE:return z.QueryParser.parseEditDistance;case z.QueryLexer.BOOST:return z.QueryParser.parseBoost;case z.QueryLexer.PRESENCE:return e.nextClause(),z.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+n.type+"'";throw new z.QueryParseError(i,n.start,n.end)}else e.nextClause()}},z.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var i="boost must be numeric";throw new z.QueryParseError(i,t.start,t.end)}e.currentClause.boost=r;var n=e.peekLexeme();if(null!=n)switch(n.type){case z.QueryLexer.TERM:return e.nextClause(),z.QueryParser.parseTerm;case z.QueryLexer.FIELD:return e.nextClause(),z.QueryParser.parseField;case z.QueryLexer.EDIT_DISTANCE:return z.QueryParser.parseEditDistance;case z.QueryLexer.BOOST:return z.QueryParser.parseBoost;case z.QueryLexer.PRESENCE:return e.nextClause(),z.QueryParser.parsePresence;default:i="Unexpected lexeme type '"+n.type+"'";throw new z.QueryParseError(i,n.start,n.end)}else e.nextClause()}},i=this,n=function(){return z},"function"==typeof define&&define.amd?define(n):"object"==typeof exports?module.exports=n():i.lunr=n()}();;const idx=lunr(function(){this.field('id')
  this.field('link')
  this.field('title')
  this.field('body')
  this.add({"id":"0","link":"https://taiwangoldcard.com/goldcard-holders-faq/","title":"Gold Card Holders FAQ","body":"[Congratulations on getting the precious Gold Card! Now join the Gold Card Network by applying via this form In this section, you&rsquo;ll find some useful resources for once you get the Gold Card. This information is complied by our community, who have real experience living in Taiwan.]",});this.add({"id":"1","link":"https://taiwangoldcard.com/application-faq/qualifications/","title":"Qualifications","body":"[Do I qualify? In order to qualify for an Employment Gold Card your skills must be related to one of eight areas: Science and Technology, Economics, Education, Culture and Art, Sport, Finance, Law and Architecture. You must select which single ministry is most relevant, and in most cases also select a specific entry in the list of that qualifications in that particular area for your application. See How to apply for Taiwan&rsquo;s Employment Gold Card Is there an age restriction? Not really. However it is expected that gold card holders will have at least five years of work experience. Do I need to have a high salary to apply for a Gold Card? No. Some industries have a category where applicants with a salary greater than NT$160,000 qualify. However, this is only one category. To date, none of the categories other than the dedicated salary category have financial requirements. If you have skills, please consider applying regardless of salary! I currently live in Taiwan, can I apply for the Gold Card? Yes. You can apply from anywhere, even within Taiwan. I have an ARC, can I apply for the Gold Card? Yes. I have a tourist visa in Taiwan, can I apply for the Gold Card? Yes. I&rsquo;m a digital nomad / remote worker, is this card suitable for me? Can I be self-employed? Yes, this card is perfect for you, since it contains an open work permit that allows you to work for any employer. However, if you don&rsquo;t have a Taiwanese employer please see the answer to: I&rsquo;m a freelancer/I don&rsquo;t have an employer, how do I register with the NHI?. Is there a &ldquo;general&rdquo; application category or must I select a specific industry? There is no &ldquo;general&rdquo; application category. You must select a ministry to assess your skills. See How to apply for Taiwan&rsquo;s Employment Gold Card Does my professional services/sole proprietor/dividend income count towards the salary requirement for Gold Card application? Generally not, but it depends. The document requirements to prove an Article 1 (&ldquo;salary&rdquo;) application all talk about &ldquo;&hellip;verifying salary or income tax payment related to employment&hellip;&quot;. The most commonly accepted documents appear to be withholding tax statements from employers and income tax returns from a tax authority. Bank statements are generally not sufficient. If you don&rsquo;t have salary-based compensation for your employment, we recommend calling ahead.]",});this.add({"id":"2","link":"https://taiwangoldcard.com/application-faq/","title":"The Gold Card Application FAQ","body":"[The Taiwan Employment Gold Card is a combined open work permit, residence permit and visa for skilled professionals. Please choose a menu entry to find out more about how you can qualify or the steps to apply. Disclaimers: This compilation of information is provided on a best-effort basis by Gold Card holders. It could be outdated or incorrect. Seek qualified advice directly from government authorities, licensed migration agents, lawyers and accountants. We are neither lawyers, migration agents nor have any relationship with the government. If you are in Taiwan, you can head over the National Immigration Agency if you&rsquo;d like to talk face to face to an agent. There is also a list of helpful contact information // const driver = new Driver(); // driver.highlight('#docs-the-gold-card-application-faq');]",});this.add({"id":"3","link":"https://taiwangoldcard.com/goldcard-holders-faq/at-work/","title":"At Work","body":"[What do I need to tell my employer about the Gold Card? Your Gold Card is a four-in-one document that contains your work permit, residence visa, reentry permit and Alien Residence Certificate. You have open work rights and they do not need to apply for a work permit or visa for you. What happens if I lose my job? You may simply find a new job. Your Gold Card is not sponsored by your employer and will not be affected by a change of job. Can I start a business with a Gold Card? Yes. Does the Gold Card provide an open work permit? Yes. You may work for any organisation (or many organisations at the same time) in any industry, in any job, provided it doesn&rsquo;t have licensing requirements that you don&rsquo;t meet. Can I be self-employed? Yes. Is there a minimum salary requirement for Gold Card holders? Yes. It is one of: NT$23,800 a month, or NT$158 per hour for &ldquo;workers&rdquo; (Labor Standards Act Article 21) NT$47,971 a month for those performing &ldquo;specialised or technical work&rdquo; Despite many applicants qualifying for a gold card on the basis of previous employment with salary of greater than NT$160,000, this is not a minimum salary requirement. However, those applying under this category will have their financial data reviewed by the Ministry of Labor. The regulations allow the Ministry of Labor to revoke a work permit if they are not satisfied with the results of this review. Can I work for multiple companies at the same time? Yes. What is salary withholding tax? At what rate should my salary be withheld? In May each year you pay income tax on your earnings from the previous year. To smooth out your payments (and when the government receives money) a little, the Taiwanese tax system is designed so that your employer effectively pre-pays a little bit of your tax. To do that, they &ldquo;withhold&rdquo; a percentage of your salary payment each time you get paid and remit it to the government a few times a year. The tax you pay in May will be reduced by this amount. There are two common amounts you will see for salary withholding tax: 18% and 5%. For tax residents of Taiwan, employers should withhold 5% and non-tax-residents 18%. However, some companies work on the assumption that all foreign residents have a danger of leaving Taiwan each year before they achieve tax residency (i.e. less than 183 days). These types of companies typically withold 18% from January to June, and 5% for the rest of the year, which protects the company from owing additional tax to the government if the employee leaves. Which withholding rate you are charged is not a large issue, as it directly contributes to your income tax payment. If you&rsquo;ve been charged too much, you will receive a refund from the government once you file your income tax. However, it is always worth talking with your employer to explain your circumstances and that you plan to reside in Taiwan long-term.]",});this.add({"id":"4","link":"https://taiwangoldcard.com/application-faq/application/","title":"The Gold Card Application","body":"[Who can I talk to about this? You&rsquo;re in for some serious luck here! The Gold Card comes with some direct contacts who are high level and exceptionally helpful. However, first it is critical to understand that this program is a collaboration of disparate Government departments who aren&rsquo;t necessarily in constant communication with each other. You will need to choose a department to contact depending on the stage of your application. The master list of contacts is found here. If you&rsquo;d like to discuss: whether you should apply eg benefits of the program, vague/early questions Read the Foreign Talent Act website Ask Contact Taiwan, particularly look out for their events with invited speakers from NIA. They are a Government-funded organisation whose mission is to help you find a job. They&rsquo;ll direct you to the right place the online application portal, eg errors, ambiguous fields: Contact NIA, under the Ministry of Interior for Employment Gold Card Permits for Foreign Special Professionals on the master list skill qualification, eg required documents, why your initial set of documents was rejected: Contact the appropriate ministry under Qualification of Foreign Special Professionals on the master list status of your application eg where it is now, why it&rsquo;s taking so long: See &ldquo;How do I find out the status of my application?&rdquo; visas for your spouse/family: Contact NIA, under the Ministry of Interior for Employment Gold Card Permits for Foreign Special Professionals on the master list income tax reduction eg whether you qualify, how it works: the NIA can sometimes provide some basic information about this, otherwise contact the Ministry of Finance under Reduction or Exemption of Income Tax of Foreign Special Professionals on the master list A particular agency&rsquo;s implementation of the program eg make an appeal or complaint, talk to &ldquo;whoever&rsquo;s in charge&rdquo;: Contact the National Development Council. How to apply? Once you have determined how you are qualified, gather the required documents: digital copy of your passport digital copy of your passport photo locate your previous Taiwanese visa and residence permit (if any) dates of any times you worked in Taiwan digital copies of all documents needed to support your application Note: all digital copies need to be &lt;1MB in size in image or PDF format. You may need to use an image resizing tool. Second, go to the portal: https://coa.immigration.gov.tw/coa-frontend/four-in-one/entry/golden-card and click &ldquo;I want to apply&rdquo;. Select &ldquo;self application&rdquo;, click consent and create an account. To make a new application, click Application&ndash;&gt;Application for Employment Gold Card &ndash;&gt; New Application. Step through each of the sections, making sure you fill out each section before the ~5 minute timeout logs you out. Click save on each page to see if there are any errors detected. Note: the length of time you select for the card (eg 3 years) will determine its cost. Eventually, view the preview and then hit submit! Note: you will receive an email at this point telling you to pay. If you didn&rsquo;t get it, check your email address was correct. You must then go through the payment steps in order for your application to be considered. Note: you will receive an email at this point telling you to get your receipt. Follow the steps to download it, and print it out - you will need it to collect your card. How long does the application take? A perfect application takes 30 days, if your supporting documents are accepted the first time around. If you are asked for tweaks to your supporting documents, expect 50-60 days. Do I need to list an address in Taiwan on the application? It’s entirely normal and accepted to apply with no local address. Once you get a place to stay, you can (must) update the details on your card, free of charge. Do I apply for the Gold Card personally, or should I ask my employer to do that? Generally you should apply personally. Employers can help with the process, but you do not need their sponsorship or support to apply for the card. Additionally, the card once issued contains an open work permit that allows you to work for any company. If someone is asking you for large sums of money to help with your gold card application, it could be a scam. How do I decide the duration to apply for (1-3 years)? You select this during the application process. You could opto for a shorter duration if you have concrete plans. Otherwise, it’s probably better to select the longest duration. There is no justification needed on how long you&rsquo;d like to stay. This costs more, but delays the hassle of finding the next visa (or going through the gold card application process again). Do you need to undergo a health check to apply for the Gold Card? We haven&rsquo;t heard of anyone to date who required a health check, so it&rsquo;s not a normal part of the process at least. What fees are involved in a Gold Card application? There is only one fee, which is paid through the Gold Card application portal. There are no separate visa or work permit fees. The fees varies if you apply from Taiwan or overseas, the duration of the visa, and your nationality. You can check the &ldquo;Fees for Employment Gold Card&rdquo; section of the application portal. I&rsquo;m worried that my application will be rejected because I didn&rsquo;t attach enough documents. Don&rsquo;t stress. The authorities will ask for more documents if the ones you provided were not sufficient. It’ll just extend the processing time by a couple of weeks to a month. Do I need anything certified by the administration of my own country? In general, no. However, there have been a very small number of cases (eg credentials from China) where some action was required by a government other than Taiwan. How is the application process different if I apply from overseas? Applying from overseas or from within Taiwan is the same process. It differs only in which unit verifies your passport (TECO or BOCA), and overseas applicants have the option of picking up their card from TECO. If you live far from your local Taiwanese diplomatic post, it is recommended to call before going to give them a heads up. It’s highly likely that you’re the first person ever to go through this process in a particular office and giving them a day or two head start to let them call back to Taiwan and work out what to do when you arrive could be useful.]",});this.add({"id":"5","link":"https://taiwangoldcard.com/application-faq/after-submitting-application/","title":"After submitting your application","body":"[What happens after you submit your application? Your qualifications will be assessed. First, the Ministry of Labor will attempt to sign off on the work permit. If it can do this itself (eg you apply based on the salary criteria and provide the right documents), your application will be swift (one case took just two days). If the Ministry of Labor can&rsquo;t vet your skills, it will call in the appropriate Ministry (eg &ldquo;Science and Technology) to assist. That Ministry will then create a custom panel of judges who are skilled in your area of application. This takes some time, and if you are skilled in a niche area expect the application to take longer than 30 days at this stage. Your identity will be verified If you are overseas, you will visit the nearest Taiwanese diplomatic post If you are in Taiwan, you will visit the Bureau of Consular Affairs A final review is conducted by the Ministry of Interior Your Gold Card will be issued. Claim it in Taiwan at the National Immigration Agency Claim it at your nearest diplomatic post How long does the application take? A perfect application takes 30 days, if your supporting documents are accepted the first time around. If you are asked for tweaks to your supporting documents, expect 50-60 days. During the pandemic, we have seen &lsquo;normal&rsquo; applications take as long as 80 days. Applicants who elected to pick their card up overseas are severely affected by the pandemic&rsquo;s impact on the postal network. How do I find out the status of my application? Predominantly, you will find the status of your application by either logging in to the Gold Card Application Portal, or receiving email updates from the portal. However, if the status hasn&rsquo;t updated in a long time here&rsquo;s what you need to know: Who to contact changes depending on the status of your application. The mostly lengthy status you will see is &ldquo;Professional Review by Workforce Development Agency&rdquo;. In this case, first, try the WDA, under the Ministry of Labor for Employment Gold Card Permits for Foreign Special Professionals on the master contact list. They will probably tell you that the application is with the relevant ministry for your skill set and provide contact details. If not, try to contact the appropriate ministry under Qualification of Foreign Special Professionals on the master list If your application is stuck on &ldquo;Under inspection&rdquo; after you already collected your passport, contact the NIA - your card may already be printed. How do you get your physical card? Either at the National Immigration Agency service centres (in Taiwan) or at your local Taiwanese diplomatic post overseas. You selected where during your application. What do I do if I&rsquo;m asked to provide additional documents? After a few weeks of tense wait, you may receive an email from niasys@immigration.gov.tw that says &ldquo;After the examination by the department and the enterprise competent authority, the relevant information shall be made up.&quot;. Log in to the portal at: https://coa.immigration.gov.tw/coa-frontend/four-in-one/entry/golden-card Your application will be listed under &ldquo;Application cases of which data to be supplemented&rdquo;, click View. Up the top of the application will be a block of red text in Chinese and English. It will attempt to explain what additional documents are required. If it doesn&rsquo;t make sense, call the appropriate ministry contact under Qualification of Foreign Special Professionals on the master list. They&rsquo;ll be able to look up your application and provide more colour. Once you know which documents to upload, prepare to upload them as with your previous application. Additionally, prepare a short statement addressing how you have rectified the &ldquo;Opinion on the Application&rdquo;. Select the documents for upload and paste the response in the &ldquo;Reply Comments&rdquo; box at the bottom of the final page. Important: Sometimes using English in the &ldquo;Reply Comments&rdquo; box will cause your application to fail to be submitted with a cryptic error. I applied under a salary provision, but am being asked for additional documents unrelated to this. Why? Don’t stress. This is normal. You’re applying under a financial requirement, but the relevant ministry still wants to vet your skills. Under some interpretations of the regulations, they are not supposed to do this, but here we are. Gather up some documents that demonstrate you work in the industry and you’re good at it. Maybe a letter from your boss talking about that time you created that innovative thing, a supporting statement from a professor about how they’re proud of you, a piece of easily digestible work product that has your name on it. It’ll depend on what you’ve got or can create - but get into the mindset of the reviewer and aim to make it as easy as possible to understand why you are a talent. If you feel the need, write a cover letter for your application explaining your skills. If I apply in Taiwan, where do I go to prove my identity? You must go to your local Bureau of Consular Affairs (BOCA). If you’re getting your passport vetted at Taipei’s BOCA/MOFA office, here’s a quick how-to. (Don’t worry, the ‘pinball’ method - shuffling between volunteers - works well too). BOCA is open between 08:30 to 17:00 here (a few blocks from Shandao Temple Station, Exit 2) Enter the big pink building and go directly up the escalators to level 3 On 3F, ignore the ticket machine immediately in front of you and turn right and right again to be at the “Authentication” area In the middle of the area, around counter 30, grab a ticket (if there is a problem, ask for help at the end counter - counter 28) Go to the designated counter when your number is up, surrender your passport and online application document, provide any details on upcoming travel, and receive your receipt. What is a &ldquo;Resident Authorization Letter&rdquo;? If you applied for your Gold Card from outside Taiwan but elected to collect your card on arrival, you may use the &ldquo;Resident Authorization Letter&rdquo; to enter Taiwan. After arriving, you may visit the National Immigration Agency to collect your card. Do you need to fly to Taiwan immediately after approval? No. Some people took several months to prepare for their arrival. However, see the answer for When does the gold card&rsquo;s validity begin? to determine whether that affects you.]",});this.add({"id":"6","link":"https://taiwangoldcard.com/goldcard-holders-faq/health-insurance/","title":"Health Insurance","body":"[What health insurance is available in Taiwan? All who are eligible for National Health Insurance must enrol in the program (your employer will do this for you), which provides comprehensive and inexpensive coverage. There are also a range of private health insurance options. I&rsquo;m a freelancer/I don&rsquo;t have an employer, how do I register with the NHI? At present, you must reside in Taiwan for a consecutive six-month period (or leave only once for less than 30 days) and apply directly with the NHI. This period starts from when you enter Taiwan. There is currently a legislative push to improve this, lead by the National Development Council. If I&rsquo;m employed by a local company, do I still need to wait for the six-month period for a health insurance card? You do not. Once the company registers your employment, you will be issued a health insurance card. Are my children and family eligible for a health insurance card? Yes. Once your spouse and/or any minor children receive their residence cards, they can register for their health insurance card as dependents of you. Where can I see a list of NHI clinics close to me? The NHI mobile app has a map-based search of all NHI facilities. You can download it from the Google Play store and the Apple App Store]",});this.add({"id":"7","link":"https://taiwangoldcard.com/goldcard-holders-faq/life-in-taiwan/","title":"Life in Taiwan","body":"[Can I purchase real-estate? In general, yes, if your country allows Taiwanese nationals to purchase real estate in your country. There are some restrictions, such as not being able to purchase farmland, or land related to a waterway or national defense. Does my card look any different from other types of ARC? Yes, the entire card is gold in colour. It also has slightly different information such as a different title (R.O.C. (Taiwan) Employment Gold Card), purpose of residence (Foreign Special Professional) and a label for your professional field. How do I register to use the e-Gate? Visit your local NIA service center or the immigration counter at an international airport and the officials there will guide you through the steps. What unofficial benefits does holding a Gold Card bestow? As the Taiwan government sees holders as &ldquo;worthy professionals&rdquo;, this could increase your standing in the eyes of certain people. Additionally, Sometimes the National Development Council or other government agencies invite us to parties or ask our opinions on certain matters. What happens if I change my address? You must log in to the Gold Card Application portal and update your details there within 14 days of moving. How do I change my address? You must change your address online. Go to the Gold Card Portal. Click &ldquo;I want to apply&rdquo; and login using the username and password you used when applying for your gold card. select &ldquo;Application&rdquo; then &ldquo;Information change of Employment Gold Card&rdquo;. Follow the steps including uploading proof of your address such as a copy of your lease. You will be charged 500NT, however for changes of address you may apply for a full refund of this amount. The refund may require several steps and take more than a month. Under the current process, you will receive a phone call and be asked for the details of your bank account to return the funds. Your new Gold Card with the latest address will be available for collection within approximately two weeks. How many days per year do I have to stay in Taiwan? There are no requirements. However, you must stay for more than 183 days per year in order to be eligible for many benefits such as: tax resident treatment and a pathway to permanent residence. What shall I do if I renew my passport? No problem. If your passport number changes you must update it online. Go to the Gold Card Portal. Click &ldquo;I want to apply&rdquo; and login using the username and password you used when applying for your gold card. select &ldquo;Application&rdquo; then &ldquo;Information change of Employment Gold Card&rdquo;. Follow the steps including uploading a copy of your new passport. Within two weeks, you will be able to pick up a new Gold Card from the National Immigration Agency that has your latest information. How do I convert my overseas driving license? Taiwan has international agreements with many countries that allow you to convert your driver&rsquo;s license from your home country into a Taiwanese license without taking a driving test. This is done on the basis of &lsquo;reciprocity&rsquo; - basically if it is possible for a Taiwanese national to convert their license in your country you should be able to do the same in Taiwan. The Taipei City Motor Vehicles Office maintains a list of eligible countries (and states within countries), and instructions on their website. If you are not from an eligible state or country and need to drive long-term, you will need to sit the local license test. For the short term, you may use an International Driving Permit from your home country, but after 30 days in Taiwan this must be extended by the local Motor Vehicles Office to remain valid. I am being asked to see an entry stamp in my passport, but I always use the eGate. What do I do? These days, most foreign residents of Taiwan use the eGate exclusively to enter and exit the country. It&rsquo;s fast and convenient, but it has the side effect that your passport is no longer stamped to mark your entry or exit. You may be met with confusion when explaining this to a bureaucrat in some situations. To solve this, you can visit your local National Immigration Agency service center and ask for a Certificate of Entry/Exit. It costs 100NT and takes only a few minutes to produce. You can also apply for one online if you have a digital citizen certificate.]",});this.add({"id":"8","link":"https://taiwangoldcard.com/goldcard-holders-faq/migration-pathways/","title":"Migration Pathways","body":"[Should I switch from an APRC to a Gold Card? According to NIA officials, no. They stress that this card is nonrenewable and you must go through the application process again toward the end of the gold card. One way of looking at that is that the Foreign Special Professional program could change to the point where one no longer qualifies. APRC is therefore “safer” in the long term. Consider also if the program doesn’t change. For instance, if you fall ill during the term and can’t demonstrate your gold card &lsquo;worthiness&rsquo; due to this, you’ll lose your visa when it runs out. Not so with APRC. It is also worth noting here that you don’t get the tax benefits if you’re an existing resident. Does holding a Gold Card make it easier to apply for Taiwanese Citizenship? There is no formal legislative relationship between the Gold Card and an improved chance at Naturalisation. Under Taiwan law, there are three types of Foreign Professionals: Foreign Professional Foreign Special Professional - Gold Card holders are classified as these Foreign Senior Professional - Plum Blossom Card holders are classified as this category. The law allows for those classified under this category to have an easier route to citizenship. However, it can&rsquo;t hurt your chances! Will switching from an employment ARC to a Gold Card affect my ability to get an APRC? The NIA has previously provided on-record assurances that there’s no issue here. You must ensure consecutive residence of five years to be eligible - no time gap between your employment ARC and your Gold Card. What is this job-seeking visa I heard about? Is it related to the Gold Card? It’s a separate visa to the gold card, that was introduced around the same time. You can get it if: You have a job where over the last 6 months, your average salary was over NT$47,971 Or, you don’t have a job, but you graduated from one of the top 500 universities in the world Or, you successfully apply to a government department to be deemed eligible in some other way and you have proof of: NT$100,000 in your bank account health insurance to cover your trip good conduct (eg a police report) There’s a brief news article here.]",});this.add({"id":"9","link":"https://taiwangoldcard.com/goldcard-holders-faq/tax/","title":"Tax","body":"[Note: Everyone has a different situation. Please consult an accountant before relying on content from this section. How do I apply for the tax relief for Foreign Special Professionals? As a Gold Card holder working in Taiwan for the first time, for the portion of your salary over NT $3 million, half of it can be excluded from your effective income for your first three years of residence. eg if your salary was NT $6 million, you only pay tax on NT $4.5 million. There is a special form accessible from both the Alien e-Filing system and the paper-based tax return application. If I have worked in Taiwan before, can I apply for the tax break? Generally no, with some exceptions. The relevant regulations are here. You can see in Article 3 that you need 3 ticks to be eligible: First time coming to work It’s special professional work No household registration (only applicable to ROC nationals) and not a tax resident for the prior 5 years With the exception that: “If a foreign special professional has been previously approved to reside in the R.O.C. before his/her employment engaged in the professional work in the R.O.C., and such approval is not given on the ground of his/her engagement in the professional work, he/she shall not be subject to the first-time approval requirement…” Which is unclear. In 2019, an interpretation was issued on this matter. An attempt to explain it is below, but this has not been validated by official sources. If you came to Taiwan in 2015/2016/2017 and had a single 3/2/1 year work contract that ended in 2018 and you became a Gold Card holder in 2018 and got a new contract … for financial year 2018 (and 2019 and 2020) you can claim the Gold Card tax break. You are not eligible under this interpretation if: you worked in Taiwan before 2015 your contract didn’t extend into 2018 you had multiple contracts between 2015 and 2018. you became a gold card holder in 2019 When do I file tax in Taiwan? The financial year is January 1st to December 31st. Tax is filed each year from May 1st to the end of the month. 2020 benefits from an extended deadline due to the COVID-19. You are allowed to fill tax until the 30rd June 2020. How do I calculate my tax? A useful tax calculator is available here, if you need a rough estimate and can&rsquo;t work the official website. Where can I go for help with my taxes? The National Taxation Bureau provides free professional taxation consultation sessions in English and Japanese. During &ldquo;tax season&rdquo; there are dedicated English language counters for tax filing at National Taxation Bureau offices in major cities.]",});this.add({"id":"10","link":"https://taiwangoldcard.com/goldcard-holders-faq/family/","title":"Family","body":"[What happens if I get married to a Taiwanese citizen while on a Gold Card? Congratulations on your marriage. Though you may become eligible for other visas due to this, you may continue to use your Gold Card. If I switch from a Gold Card to permanent residence, can my family switch too? When you have been approved for permanent residence, your children (under 20) and your spouse may also apply for permanent residency if they have lived in Taiwan for more than 183 days per year for the past five years. Additionally, as a Gold Card holder your family members aren&rsquo;t required to show proof of financial ability like some other applicants for permanent residence. (Article 16) My child just turned 20, can they get their own work permit? Yes, provided they have lived in Taiwan from the time before they were 16 years old, for more than 270 days per year. (Article 17) Can my parents or grandparents come to visit? Yes, as a Gold Card holder, your parents and grandparents are eligible to apply for a 1 year multi-entry visa for a maximum stay of six months at a time. This visa can be extended in Taiwan to allow for a maximum stay of one year at a time. Contact your nearest Taiwan diplomatic post or the Bureau of Consular Affairs to apply.]",});this.add({"id":"11","link":"https://taiwangoldcard.com/goldcard-holders-faq/validity/","title":"Renewal & Validity","body":"[How long is a gold card valid? By default, between one and three years. If you are concerned your card (or underlying visa/work permit) may have become invalid or expired, you can check with the National Immigration Agency. Can I renew my gold card? No. There is no renewal capability for a Gold Card. You must complete the same application process you went through for your first card for all subsequent cards. Keep this in mind when planning your time in Taiwan - you must still meet the qualification criteria in order to receive another card. When does the gold card&rsquo;s validity begin? When the application is officially approved. You will receive an email from the application portal. Importantly: your cards&rsquo; validity can start before you enter Taiwan or pick up your card. Keep this in mind when planning your move to Taiwan.]",});this.add({"id":"12","link":"https://taiwangoldcard.com/about/","title":"About this site","body":"[Since February 2018, when the Gold Card was launched, card holders have been helping people apply and integrate into life in Taiwan. We think that Taiwan is an amazing place to live and work, and encourage you to apply for the Gold Card if you&rsquo;re eligible. An open work permit, tax benefits, ability to bring your family - all applied for online and approved based on your existing skills, no need to already have a job or a company to sponsor you. This website is a compilation of answers to actual questions asked by Gold Card holders as they went through the process. We welcome your questions and contributions! This site was designed by Gold card holders for Gold card holders, inspired by and brainstormed with the unofficial Gold Card holder LINE group. The original site design and technical implementation was created by Eric Khun and the original content was written by Tom Fifield. Credit is also due to Forumosa. Without the community there, many people would never have discovered the Gold Card or made it through their applications.]",});this.add({"id":"13","link":"https://taiwangoldcard.com/","title":"Taiwan Gold Card - Everything about Taiwan Gold Card Visa","body":"[by GoldCard holders for GoldCard holders Applying for the Gold Card? - All the answers about the Gold Card - How long does the process take? - What documents do I need to provide? - Do I qualify for the Gold card? Access to the FAQ Already a Gold Card Holder? - Access to our chat group where we help each other - Jobs opportunities that require our expertise - Visibility if you are looking for new opportunities - Receive a regular newsletter with the latest GoldCard News Access to the Gold Card Network Resources for GoldCard holders News of the Gold Card Network [2020-06-05] Goldcard Holder: Tomáš Řízek illustration exhibition [2020-05-27] GoldCard Holder: Starting an Eye Yoga Career [2020-04-30] More than 700 Gold Cards Issued! [2020-04-13] Tax payment has been extended to June 30th 2020]",});});const simpleIndex=[{id:0,link:"https://taiwangoldcard.com/goldcard-holders-faq/",title:"Gold Card Holders FAQ",},{id:1,link:"https://taiwangoldcard.com/application-faq/qualifications/",title:"Qualifications",},{id:2,link:"https://taiwangoldcard.com/application-faq/",title:"The Gold Card Application FAQ",},{id:3,link:"https://taiwangoldcard.com/goldcard-holders-faq/at-work/",title:"At Work",},{id:4,link:"https://taiwangoldcard.com/application-faq/application/",title:"The Gold Card Application",},{id:5,link:"https://taiwangoldcard.com/application-faq/after-submitting-application/",title:"After submitting your application",},{id:6,link:"https://taiwangoldcard.com/goldcard-holders-faq/health-insurance/",title:"Health Insurance",},{id:7,link:"https://taiwangoldcard.com/goldcard-holders-faq/life-in-taiwan/",title:"Life in Taiwan",},{id:8,link:"https://taiwangoldcard.com/goldcard-holders-faq/migration-pathways/",title:"Migration Pathways",},{id:9,link:"https://taiwangoldcard.com/goldcard-holders-faq/tax/",title:"Tax",},{id:10,link:"https://taiwangoldcard.com/goldcard-holders-faq/family/",title:"Family",},{id:11,link:"https://taiwangoldcard.com/goldcard-holders-faq/validity/",title:"Renewal & Validity",},{id:12,link:"https://taiwangoldcard.com/about/",title:"About this site",},{id:13,link:"https://taiwangoldcard.com/",title:"Taiwan Gold Card - Everything about Taiwan Gold Card Visa",},];;function isObj(obj){return(obj&&typeof obj==='object'&&obj!==null)?true:false;}
  function createEl(element='div'){return document.createElement(element);}
  function emptyEl(el){while(el.firstChild)
  el.removeChild(el.firstChild);}
  function elem(selector,parent=document){let elem=isObj(parent)?parent.querySelector(selector):false;return elem?elem:false;}
  function elems(selector,parent=document){let elems=isObj(parent)?parent.querySelectorAll(selector):[];return elems.length?elems:false;}
  function pushClass(el,targetClass){if(isObj(el)&&targetClass){let elClass=el.classList;elClass.contains(targetClass)?false:elClass.add(targetClass);}}
  function deleteClass(el,targetClass){if(isObj(el)&&targetClass){let elClass=el.classList;elClass.contains(targetClass)?elClass.remove(targetClass):false;}}
  function modifyClass(el,targetClass){if(isObj(el)&&targetClass){const elClass=el.classList;elClass.contains(targetClass)?elClass.remove(targetClass):elClass.add(targetClass);}}
  function containsClass(el,targetClass){if(isObj(el)&&targetClass&&el!==document){return el.classList.contains(targetClass)?true:false;}}
  function isChild(node,parentClass){let objectsAreValid=isObj(node)&&parentClass&&typeof parentClass=='string';return(objectsAreValid&&node.closest(parentClass))?true:false;}
  function elemAttribute(elem,attr,value=null){if(value){elem.setAttribute(attr,value);}else{value=elem.getAttribute(attr);return value?value:false;}}
  function deleteChars(str,subs){let newStr=str;if(Array.isArray(subs)){for(let i=0;i<subs.length;i++){newStr=newStr.replace(subs[i],'');}}else{newStr=newStr.replace(subs,'');}
  return newStr;}
  function isBlank(str){return(!str||str.trim().length===0);}
  function isMatch(element,selectors){if(isObj(element)){if(selectors.isArray){let matching=selectors.map(function(selector){return element.matches(selector)})
  return matching.includes(true);}
  return element.matches(selectors)}}
  function closestInt(goal,collection){const closest=collection.reduce(function(prev,curr){return(Math.abs(curr-goal)<Math.abs(prev-goal)?curr:prev);});return closest;}
  function hasClasses(el){if(isObj(el)){const classes=el.classList;return classes.length}}
  (function calcNavHeight(){const nav=elem('.nav_header');const navHeight=nav.offsetHeight;const docContent=elem('main');docContent.style.paddingTop=`${navHeight+20}px`;return navHeight+20;})();(function markInlineCodeTags(){const codeBlocks=elems('code');if(codeBlocks){codeBlocks.forEach(function(codeBlock){if(!hasClasses(codeBlock)){codeBlock.children.length?false:pushClass(codeBlock,'noClass');}});}})();function activeHeading(position,listLinks){let active='active';let linksToModify=Object.create(null);linksToModify.active=listLinks.filter(function(link){return containsClass(link,active);})[0];linksToModify.new=listLinks.filter(function(link){return parseInt(link.dataset.position)===position})[0];if(linksToModify.active!=linksToModify.new){linksToModify.active?deleteClass(linksToModify.active,active):false;pushClass(linksToModify.new,active);}};function loadActions(){const parentURL='https://taiwangoldcard.com/';const doc=document.documentElement;(function updateDate(){const date=new Date();const year=date.getFullYear();const yearEl=elem('.year');yearEl?year.innerHTML=year:false;})();(function customizeSidebar(){const tocActive='toc_active';const aside=elem('aside');const tocs=elems('nav',aside);if(tocs){tocs.forEach(function(toc){toc.id="";pushClass(toc,'toc');if(toc.children.length>=1){const tocItems=Array.from(toc.children[0].children);const previousHeading=toc.previousElementSibling;previousHeading.matches('.active')?pushClass(toc,tocActive):false;tocItems.forEach(function(item){pushClass(item,'toc_item');pushClass(item.firstElementChild,'toc_link');})}});const currentToc=elem(`.${tocActive}`);if(currentToc){const pageInternalLinks=Array.from(elems('a',currentToc));const pageIds=pageInternalLinks.map(function(link){return link.hash;});const linkPositions=pageIds.map(function(id){const heading=elem(id);const position=heading.offsetTop;return position;});pageInternalLinks.forEach(function(link,index){link.dataset.position=linkPositions[index]});window.addEventListener('scroll',function(e){let position=window.scrollY;let active=closestInt(position,linkPositions);activeHeading(active,pageInternalLinks);});}}})();function searchResults(results=[],order=[]){let resultsFragment=new DocumentFragment();let showResults=elem('.search_results');emptyEl(showResults);let index=0
  results.forEach(function(result){let item=createEl('a');item.href=result.link;item.className='search_result';item.textContent=result.title;item.style.order=order[index];resultsFragment.appendChild(item);index+=1});showResults.appendChild(resultsFragment);}
  (function search(){const searchField=elem('.search_field');if(searchField){searchField.addEventListener('input',function(){let rawResults=idx.search(`${ this.value }`).slice(0,6);let refs=rawResults.map(function(ref){return `${ref.ref}:${ref.score}`;});let ids=refs.map(function(id){let positionOfSeparator=id.indexOf(":");id=id.substring(0,positionOfSeparator)
  return Number(id);});let scores=refs.map(function(score){let positionOfSeparator=score.indexOf(":");score=score.substring((positionOfSeparator+1),(score.length-1));return(parseFloat(score)*50).toFixed(0);});let matchedDocuments=simpleIndex.filter(function(doc){return ids.includes(doc.id);});matchedDocuments.length>=1?searchResults(matchedDocuments,scores):false;});}})();(function makeExternalLinks(){let links=elems('a');if(links){Array.from(links).forEach(function(link){let target,rel,blank,noopener,attr1,attr2,url,isExternal;url=elemAttribute(link,'href');isExternal=(url&&typeof url=='string'&&url.startsWith('http'))&&!url.startsWith(parentURL)?true:false;if(isExternal){target='target';rel='rel';blank='_blank';noopener='noopener';attr1=elemAttribute(link,target);attr2=elemAttribute(link,noopener);attr1?false:elemAttribute(link,target,blank);attr2?false:elemAttribute(link,rel,noopener);}});}})();let headingNodes=[],results,link,icon,current,id,tags=['h2','h3','h4','h5','h6'];current=document.URL;tags.forEach(function(tag){results=document.getElementsByTagName(tag);Array.prototype.push.apply(headingNodes,results);});function sanitizeURL(url){const hash='#';const positionOfHash=url.indexOf(hash);if(positionOfHash>-1){const id=url.substr(positionOfHash,url.length-1);url=url.replace(id,'');}
  return url}
  headingNodes.forEach(function(node){link=createEl('a');icon=createEl('img');icon.src='https://taiwangoldcard.com/icons/link.svg';link.className='link icon';link.appendChild(icon);id=node.getAttribute('id');if(id){link.href=`${sanitizeURL(current)}#${id}`;node.appendChild(link);pushClass(node,'link_owner');}});const copyToClipboard=str=>{let copy,selection,selected;copy=createEl('textarea');copy.value=str;copy.setAttribute('readonly','');copy.style.position='absolute';copy.style.left='-9999px';selection=document.getSelection();doc.appendChild(copy);selected=selection.rangeCount>0?selection.getRangeAt(0):false;copy.select();document.execCommand('copy');doc.removeChild(copy);if(selected){selection.removeAllRanges();selection.addRange(selected);}}
  function copyFeedback(parent){const copyText=document.createElement('div');const yanked='link_yanked';copyText.classList.add(yanked);copyText.innerText='Link Copied';if(!elem(`.${yanked}`,parent)){parent.appendChild(copyText);setTimeout(function(){},3000);}}
  (function copyHeadingLink(){let deeplink,deeplinks,newLink,parent,target;deeplink='link';deeplinks=elems(`.${deeplink}`);if(deeplinks){document.addEventListener('click',function(event)
  {target=event.target;parent=target.parentNode;if(target&&containsClass(target,deeplink)||containsClass(parent,deeplink)){event.preventDefault();newLink=target.href!=undefined?target.href:target.parentNode.href;copyToClipboard(newLink);target.href!=undefined?copyFeedback(target):copyFeedback(target.parentNode);}});}})();}
  $(function(){var hasClicked=false;$(".toc_item a").on('click',function(event){hasClicked=true;if($(window).scrollTop()!==0){$('.nav_header').removeClass('nav-down').addClass('nav-up');}});var didScroll;var lastScrollTop=0;var delta=100;var navbarHeight=$('.nav_header').outerHeight();$(window).scroll(function(event){didScroll=true;});setInterval(function(){if(didScroll){hasScrolled();didScroll=false;hasClicked=false;}},500);function hasScrolled(){var st=$(this).scrollTop();if(Math.abs(lastScrollTop-st)<=delta)
  return;if(st>lastScrollTop&&st>navbarHeight){$('.nav_header').removeClass('nav-down').addClass('nav-up');}else{if(st+$(window).height()<$(document).height()){if(hasClicked!=true){$('.nav_header').removeClass('nav-up').addClass('nav-down');}}}
  lastScrollTop=st;}});window.addEventListener('load',loadActions());