openaire-assets/citation-0.4.0-9.min.js

2 lines
705 KiB
JavaScript

require=function n(o,a,l){function u(e,t){if(!a[e]){if(!o[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(c)return c(e,!0);var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}var s=a[e]={exports:{}};o[e][0].call(s.exports,function(t){return u(o[e][1][t]||t)},s,s.exports,n,o,a,l)}return a[e].exports}for(var c="function"==typeof require&&require,t=0;t<l.length;t++)u(l[t]);return u}({1:[function(e,t,r){(function(t){"use strict";e("core-js/shim"),e("regenerator-runtime/runtime"),t._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),t._babelPolyfill=!0}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/shim":322,"regenerator-runtime/runtime":331}],2:[function(t,e,r){"use strict";e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],3:[function(t,e,r){"use strict";var i=t("./_cof");e.exports=function(t,e){if("number"!=typeof t&&"Number"!=i(t))throw TypeError(e);return+t}},{"./_cof":17}],4:[function(t,e,r){"use strict";var i=t("./_wks")("unscopables"),s=Array.prototype;s[i]==undefined&&t("./_hide")(s,i,{}),e.exports=function(t){s[i][t]=!0}},{"./_hide":41,"./_wks":124}],5:[function(t,e,r){"use strict";e.exports=function(t,e,r,i){if(!(t instanceof e)||i!==undefined&&i in t)throw TypeError(r+": incorrect invocation!");return t}},{}],6:[function(t,e,r){"use strict";var i=t("./_is-object");e.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":50}],7:[function(t,e,r){"use strict";var u=t("./_to-object"),c=t("./_to-absolute-index"),p=t("./_to-length");e.exports=[].copyWithin||function(t,e){var r=u(this),i=p(r.length),s=c(t,i),n=c(e,i),o=2<arguments.length?arguments[2]:undefined,a=Math.min((o===undefined?i:c(o,i))-n,i-s),l=1;for(n<s&&s<n+a&&(l=-1,n+=a-1,s+=a-1);0<a--;)n in r?r[s]=r[n]:delete r[s],s+=l,n+=l;return r}},{"./_to-absolute-index":109,"./_to-length":113,"./_to-object":114}],8:[function(t,e,r){"use strict";var a=t("./_to-object"),l=t("./_to-absolute-index"),u=t("./_to-length");e.exports=function(t){for(var e=a(this),r=u(e.length),i=arguments.length,s=l(1<i?arguments[1]:undefined,r),n=2<i?arguments[2]:undefined,o=n===undefined?r:l(n,r);s<o;)e[s++]=t;return e}},{"./_to-absolute-index":109,"./_to-length":113,"./_to-object":114}],9:[function(t,e,r){"use strict";var i=t("./_for-of");e.exports=function(t,e){var r=[];return i(t,!1,r.push,r,e),r}},{"./_for-of":38}],10:[function(t,e,r){"use strict";var l=t("./_to-iobject"),u=t("./_to-length"),c=t("./_to-absolute-index");e.exports=function(a){return function(t,e,r){var i,s=l(t),n=u(s.length),o=c(r,n);if(a&&e!=e){for(;o<n;)if((i=s[o++])!=i)return!0}else for(;o<n;o++)if((a||o in s)&&s[o]===e)return a||o||0;return!a&&-1}}},{"./_to-absolute-index":109,"./_to-iobject":112,"./_to-length":113}],11:[function(t,e,r){"use strict";var y=t("./_ctx"),v=t("./_iobject"),x=t("./_to-object"),w=t("./_to-length"),i=t("./_array-species-create");e.exports=function(p,t){var m=1==p,f=2==p,h=3==p,d=4==p,g=6==p,b=5==p||g,_=t||i;return function(t,e,r){for(var i,s,n=x(t),o=v(n),a=y(e,r,3),l=w(o.length),u=0,c=m?_(t,l):f?_(t,0):undefined;u<l;u++)if((b||u in o)&&(s=a(i=o[u],u,n),p))if(m)c[u]=s;else if(s)switch(p){case 3:return!0;case 5:return i;case 6:return u;case 2:c.push(i)}else if(d)return!1;return g?-1:h||d?d:c}}},{"./_array-species-create":14,"./_ctx":24,"./_iobject":46,"./_to-length":113,"./_to-object":114}],12:[function(t,e,r){"use strict";var c=t("./_a-function"),p=t("./_to-object"),m=t("./_iobject"),f=t("./_to-length");e.exports=function(t,e,r,i,s){c(e);var n=p(t),o=m(n),a=f(n.length),l=s?a-1:0,u=s?-1:1;if(r<2)for(;;){if(l in o){i=o[l],l+=u;break}if(l+=u,s?l<0:a<=l)throw TypeError("Reduce of empty array with no initial value")}for(;s?0<=l:l<a;l+=u)l in o&&(i=e(i,o[l],l,n));return i}},{"./_a-function":2,"./_iobject":46,"./_to-length":113,"./_to-object":114}],13:[function(t,e,r){"use strict";var i=t("./_is-object"),s=t("./_is-array"),n=t("./_wks")("species");e.exports=function(t){var e;return s(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!s(e.prototype)||(e=undefined),i(e)&&null===(e=e[n])&&(e=undefined)),e===undefined?Array:e}},{"./_is-array":48,"./_is-object":50,"./_wks":124}],14:[function(t,e,r){"use strict";var i=t("./_array-species-constructor");e.exports=function(t,e){return new(i(t))(e)}},{"./_array-species-constructor":13}],15:[function(t,e,r){"use strict";var n=t("./_a-function"),o=t("./_is-object"),a=t("./_invoke"),l=[].slice,u={};e.exports=Function.bind||function(r){var i=n(this),s=l.call(arguments,1),e=function t(){var e=s.concat(l.call(arguments));return this instanceof t?function(t,e,r){if(!(e in u)){for(var i=[],s=0;s<e;s++)i[s]="a["+s+"]";u[e]=Function("F,a","return new F("+i.join(",")+")")}return u[e](t,r)}(i,e.length,e):a(i,e,r)};return o(i.prototype)&&(e.prototype=i.prototype),e}},{"./_a-function":2,"./_invoke":45,"./_is-object":50}],16:[function(t,e,r){"use strict";var s=t("./_cof"),n=t("./_wks")("toStringTag"),o="Arguments"==s(function(){return arguments}());e.exports=function(t){var e,r,i;return t===undefined?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=Object(t),n))?r:o?s(e):"Object"==(i=s(e))&&"function"==typeof e.callee?"Arguments":i}},{"./_cof":17,"./_wks":124}],17:[function(t,e,r){"use strict";var i={}.toString;e.exports=function(t){return i.call(t).slice(8,-1)}},{}],18:[function(t,e,r){"use strict";var o=t("./_object-dp").f,a=t("./_object-create"),l=t("./_redefine-all"),u=t("./_ctx"),c=t("./_an-instance"),p=t("./_for-of"),i=t("./_iter-define"),s=t("./_iter-step"),n=t("./_set-species"),m=t("./_descriptors"),f=t("./_meta").fastKey,h=t("./_validate-collection"),d=m?"_s":"size",g=function(t,e){var r,i=f(e);if("F"!==i)return t._i[i];for(r=t._f;r;r=r.n)if(r.k==e)return r};e.exports={getConstructor:function(t,n,r,i){var s=t(function(t,e){c(t,s,n,"_i"),t._t=n,t._i=a(null),t._f=undefined,t._l=undefined,t[d]=0,e!=undefined&&p(e,r,t[i],t)});return l(s.prototype,{clear:function(){for(var t=h(this,n),e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=undefined),delete e[r.i];t._f=t._l=undefined,t[d]=0},"delete":function(t){var e=h(this,n),r=g(e,t);if(r){var i=r.n,s=r.p;delete e._i[r.i],r.r=!0,s&&(s.n=i),i&&(i.p=s),e._f==r&&(e._f=i),e._l==r&&(e._l=s),e[d]--}return!!r},forEach:function(t){h(this,n);for(var e,r=u(t,1<arguments.length?arguments[1]:undefined,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!g(h(this,n),t)}}),m&&o(s.prototype,"size",{get:function(){return h(this,n)[d]}}),s},def:function(t,e,r){var i,s,n=g(t,e);return n?n.v=r:(t._l=n={i:s=f(e,!0),k:e,v:r,p:i=t._l,n:undefined,r:!1},t._f||(t._f=n),i&&(i.n=n),t[d]++,"F"!==s&&(t._i[s]=n)),t},getEntry:g,setStrong:function(t,r,e){i(t,r,function(t,e){this._t=h(t,r),this._k=e,this._l=undefined},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?s(0,"keys"==e?r.k:"values"==e?r.v:[r.k,r.v]):(t._t=undefined,s(1))},e?"entries":"values",!e,!0),n(r)}}},{"./_an-instance":5,"./_ctx":24,"./_descriptors":28,"./_for-of":38,"./_iter-define":54,"./_iter-step":56,"./_meta":64,"./_object-create":69,"./_object-dp":70,"./_redefine-all":89,"./_set-species":95,"./_validate-collection":121}],19:[function(t,e,r){"use strict";var i=t("./_classof"),s=t("./_array-from-iterable");e.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return s(this)}}},{"./_array-from-iterable":9,"./_classof":16}],20:[function(t,e,r){"use strict";var o=t("./_redefine-all"),a=t("./_meta").getWeak,s=t("./_an-object"),l=t("./_is-object"),u=t("./_an-instance"),c=t("./_for-of"),i=t("./_array-methods"),p=t("./_has"),m=t("./_validate-collection"),n=i(5),f=i(6),h=0,d=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},b=function(t,e){return n(t.a,function(t){return t[0]===e})};g.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var r=b(this,t);r?r[1]=e:this.a.push([t,e])},"delete":function(e){var t=f(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(t,r,i,s){var n=t(function(t,e){u(t,n,r,"_i"),t._t=r,t._i=h++,t._l=undefined,e!=undefined&&c(e,i,t[s],t)});return o(n.prototype,{"delete":function(t){if(!l(t))return!1;var e=a(t);return!0===e?d(m(this,r))["delete"](t):e&&p(e,this._i)&&delete e[this._i]},has:function(t){if(!l(t))return!1;var e=a(t);return!0===e?d(m(this,r)).has(t):e&&p(e,this._i)}}),n},def:function(t,e,r){var i=a(s(e),!0);return!0===i?d(t).set(e,r):i[t._i]=r,t},ufstore:d}},{"./_an-instance":5,"./_an-object":6,"./_array-methods":11,"./_for-of":38,"./_has":40,"./_is-object":50,"./_meta":64,"./_redefine-all":89,"./_validate-collection":121}],21:[function(t,e,r){"use strict";var b=t("./_global"),_=t("./_export"),y=t("./_redefine"),v=t("./_redefine-all"),x=t("./_meta"),w=t("./_for-of"),A=t("./_an-instance"),E=t("./_is-object"),j=t("./_fails"),O=t("./_iter-detect"),S=t("./_set-to-string-tag"),k=t("./_inherit-if-required");e.exports=function(i,t,e,r,s,n){var o=b[i],a=o,l=s?"set":"add",u=a&&a.prototype,c={},p=function(t){var r=u[t];y(u,t,"delete"==t?function(t){return!(n&&!E(t))&&r.call(this,0===t?0:t)}:"has"==t?function(t){return!(n&&!E(t))&&r.call(this,0===t?0:t)}:"get"==t?function(t){return n&&!E(t)?undefined:r.call(this,0===t?0:t)}:"add"==t?function(t){return r.call(this,0===t?0:t),this}:function(t,e){return r.call(this,0===t?0:t,e),this})};if("function"==typeof a&&(n||u.forEach&&!j(function(){(new a).entries().next()}))){var m=new a,f=m[l](n?{}:-0,1)!=m,h=j(function(){m.has(1)}),d=O(function(t){new a(t)}),g=!n&&j(function(){for(var t=new a,e=5;e--;)t[l](e,e);return!t.has(-0)});d||(((a=t(function(t,e){A(t,a,i);var r=k(new o,t,a);return e!=undefined&&w(e,s,r[l],r),r})).prototype=u).constructor=a),(h||g)&&(p("delete"),p("has"),s&&p("get")),(g||f)&&p(l),n&&u.clear&&delete u.clear}else a=r.getConstructor(t,i,s,l),v(a.prototype,e),x.NEED=!0;return S(a,i),c[i]=a,_(_.G+_.W+_.F*(a!=o),c),n||r.setStrong(a,i,s),a}},{"./_an-instance":5,"./_export":32,"./_fails":34,"./_for-of":38,"./_global":39,"./_inherit-if-required":44,"./_is-object":50,"./_iter-detect":55,"./_meta":64,"./_redefine":90,"./_redefine-all":89,"./_set-to-string-tag":96}],22:[function(t,e,r){"use strict";var i=e.exports={version:"2.5.6"};"number"==typeof __e&&(__e=i)},{}],23:[function(t,e,r){"use strict";var i=t("./_object-dp"),s=t("./_property-desc");e.exports=function(t,e,r){e in t?i.f(t,e,s(0,r)):t[e]=r}},{"./_object-dp":70,"./_property-desc":88}],24:[function(t,e,r){"use strict";var n=t("./_a-function");e.exports=function(i,s,t){if(n(i),s===undefined)return i;switch(t){case 1:return function(t){return i.call(s,t)};case 2:return function(t,e){return i.call(s,t,e)};case 3:return function(t,e,r){return i.call(s,t,e,r)}}return function(){return i.apply(s,arguments)}}},{"./_a-function":2}],25:[function(t,e,r){"use strict";var i=t("./_fails"),s=Date.prototype.getTime,n=Date.prototype.toISOString,o=function(t){return 9<t?t:"0"+t};e.exports=i(function(){return"0385-07-25T07:06:39.999Z"!=n.call(new Date(-5e13-1))})||!i(function(){n.call(new Date(NaN))})?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),r=t.getUTCMilliseconds(),i=e<0?"-":9999<e?"+":"";return i+("00000"+Math.abs(e)).slice(i?-6:-4)+"-"+o(t.getUTCMonth()+1)+"-"+o(t.getUTCDate())+"T"+o(t.getUTCHours())+":"+o(t.getUTCMinutes())+":"+o(t.getUTCSeconds())+"."+(99<r?r:"0"+o(r))+"Z"}:n},{"./_fails":34}],26:[function(t,e,r){"use strict";var i=t("./_an-object"),s=t("./_to-primitive");e.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return s(i(this),"number"!=t)}},{"./_an-object":6,"./_to-primitive":115}],27:[function(t,e,r){"use strict";e.exports=function(t){if(t==undefined)throw TypeError("Can't call method on "+t);return t}},{}],28:[function(t,e,r){"use strict";e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":34}],29:[function(t,e,r){"use strict";var i=t("./_is-object"),s=t("./_global").document,n=i(s)&&i(s.createElement);e.exports=function(t){return n?s.createElement(t):{}}},{"./_global":39,"./_is-object":50}],30:[function(t,e,r){"use strict";e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],31:[function(t,e,r){"use strict";var a=t("./_object-keys"),l=t("./_object-gops"),u=t("./_object-pie");e.exports=function(t){var e=a(t),r=l.f;if(r)for(var i,s=r(t),n=u.f,o=0;s.length>o;)n.call(t,i=s[o++])&&e.push(i);return e}},{"./_object-gops":76,"./_object-keys":79,"./_object-pie":80}],32:[function(e,r,i){"use strict";var d=e("./_global"),g=e("./_core"),b=e("./_hide"),_=e("./_redefine"),y=e("./_ctx"),v="prototype",s=function t(e,r,i){var s,n,o,a,l=e&t.F,u=e&t.G,c=e&t.P,p=e&t.B,m=u?d:e&t.S?d[r]||(d[r]={}):(d[r]||{})[v],f=u?g:g[r]||(g[r]={}),h=f[v]||(f[v]={});for(s in u&&(i=r),i)o=((n=!l&&m&&m[s]!==undefined)?m:i)[s],a=p&&n?y(o,d):c&&"function"==typeof o?y(Function.call,o):o,m&&_(m,s,o,e&t.U),f[s]!=o&&b(f,s,a),c&&h[s]!=o&&(h[s]=o)};d.core=g,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,r.exports=s},{"./_core":22,"./_ctx":24,"./_global":39,"./_hide":41,"./_redefine":90}],33:[function(t,e,r){"use strict";var s=t("./_wks")("match");e.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[s]=!1,!"/./"[t](e)}catch(i){}}return!0}},{"./_wks":124}],34:[function(t,e,r){"use strict";e.exports=function(t){try{return!!t()}catch(e){return!0}}},{}],35:[function(t,e,r){"use strict";var a=t("./_hide"),l=t("./_redefine"),u=t("./_fails"),c=t("./_defined"),p=t("./_wks");e.exports=function(e,t,r){var i=p(e),s=r(c,i,""[e]),n=s[0],o=s[1];u(function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})&&(l(String.prototype,e,n),a(RegExp.prototype,i,2==t?function(t,e){return o.call(t,this,e)}:function(t){return o.call(t,this)}))}},{"./_defined":27,"./_fails":34,"./_hide":41,"./_redefine":90,"./_wks":124}],36:[function(t,e,r){"use strict";var i=t("./_an-object");e.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"./_an-object":6}],37:[function(e,r,i){"use strict";var h=e("./_is-array"),d=e("./_is-object"),g=e("./_to-length"),b=e("./_ctx"),_=e("./_wks")("isConcatSpreadable");r.exports=function t(e,r,i,s,n,o,a,l){for(var u,c,p=n,m=0,f=!!a&&b(a,l,3);m<s;){if(m in i){if(u=f?f(i[m],m,r):i[m],c=!1,d(u)&&(c=(c=u[_])!==undefined?!!c:h(u)),c&&0<o)p=t(e,r,u,g(u.length),p,o-1)-1;else{if(9007199254740991<=p)throw TypeError();e[p]=u}p++}m++}return p}},{"./_ctx":24,"./_is-array":48,"./_is-object":50,"./_to-length":113,"./_wks":124}],38:[function(t,e,r){"use strict";var m=t("./_ctx"),f=t("./_iter-call"),h=t("./_is-array-iter"),d=t("./_an-object"),g=t("./_to-length"),b=t("./core.get-iterator-method"),_={},y={},i=e.exports=function(t,e,r,i,s){var n,o,a,l,u=s?function(){return t}:b(t),c=m(r,i,e?2:1),p=0;if("function"!=typeof u)throw TypeError(t+" is not iterable!");if(h(u)){for(n=g(t.length);p<n;p++)if((l=e?c(d(o=t[p])[0],o[1]):c(t[p]))===_||l===y)return l}else for(a=u.call(t);!(o=a.next()).done;)if((l=f(a,c,o.value,e))===_||l===y)return l};i.BREAK=_,i.RETURN=y},{"./_an-object":6,"./_ctx":24,"./_is-array-iter":47,"./_iter-call":52,"./_to-length":113,"./core.get-iterator-method":125}],39:[function(t,e,r){"use strict";var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},{}],40:[function(t,e,r){"use strict";var i={}.hasOwnProperty;e.exports=function(t,e){return i.call(t,e)}},{}],41:[function(t,e,r){"use strict";var i=t("./_object-dp"),s=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return i.f(t,e,s(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":28,"./_object-dp":70,"./_property-desc":88}],42:[function(t,e,r){"use strict";var i=t("./_global").document;e.exports=i&&i.documentElement},{"./_global":39}],43:[function(t,e,r){"use strict";e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":28,"./_dom-create":29,"./_fails":34}],44:[function(t,e,r){"use strict";var n=t("./_is-object"),o=t("./_set-proto").set;e.exports=function(t,e,r){var i,s=e.constructor;return s!==r&&"function"==typeof s&&(i=s.prototype)!==r.prototype&&n(i)&&o&&o(t,i),t}},{"./_is-object":50,"./_set-proto":94}],45:[function(t,e,r){"use strict";e.exports=function(t,e,r){var i=r===undefined;switch(e.length){case 0:return i?t():t.call(r);case 1:return i?t(e[0]):t.call(r,e[0]);case 2:return i?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],46:[function(t,e,r){"use strict";var i=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},{"./_cof":17}],47:[function(t,e,r){"use strict";var i=t("./_iterators"),s=t("./_wks")("iterator"),n=Array.prototype;e.exports=function(t){return t!==undefined&&(i.Array===t||n[s]===t)}},{"./_iterators":57,"./_wks":124}],48:[function(t,e,r){"use strict";var i=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==i(t)}},{"./_cof":17}],49:[function(t,e,r){"use strict";var i=t("./_is-object"),s=Math.floor;e.exports=function(t){return!i(t)&&isFinite(t)&&s(t)===t}},{"./_is-object":50}],50:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports=function(t){return"object"===i(t)?null!==t:"function"==typeof t}},{}],51:[function(t,e,r){"use strict";var i=t("./_is-object"),s=t("./_cof"),n=t("./_wks")("match");e.exports=function(t){var e;return i(t)&&((e=t[n])!==undefined?!!e:"RegExp"==s(t))}},{"./_cof":17,"./_is-object":50,"./_wks":124}],52:[function(t,e,r){"use strict";var o=t("./_an-object");e.exports=function(t,e,r,i){try{return i?e(o(r)[0],r[1]):e(r)}catch(n){var s=t["return"];throw s!==undefined&&o(s.call(t)),n}}},{"./_an-object":6}],53:[function(t,e,r){"use strict";var i=t("./_object-create"),s=t("./_property-desc"),n=t("./_set-to-string-tag"),o={};t("./_hide")(o,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,r){t.prototype=i(o,{next:s(1,r)}),n(t,e+" Iterator")}},{"./_hide":41,"./_object-create":69,"./_property-desc":88,"./_set-to-string-tag":96,"./_wks":124}],54:[function(t,e,r){"use strict";var y=t("./_library"),v=t("./_export"),x=t("./_redefine"),w=t("./_hide"),A=t("./_iterators"),E=t("./_iter-create"),j=t("./_set-to-string-tag"),O=t("./_object-gpo"),S=t("./_wks")("iterator"),k=!([].keys&&"next"in[].keys()),I="values",T=function(){return this};e.exports=function(t,e,r,i,s,n,o){E(r,e,i);var a,l,u,c=function(t){if(!k&&t in h)return h[t];switch(t){case"keys":case I:return function(){return new r(this,t)}}return function(){return new r(this,t)}},p=e+" Iterator",m=s==I,f=!1,h=t.prototype,d=h[S]||h["@@iterator"]||s&&h[s],g=d||c(s),b=s?m?c("entries"):g:undefined,_="Array"==e&&h.entries||d;if(_&&(u=O(_.call(new t)))!==Object.prototype&&u.next&&(j(u,p,!0),y||"function"==typeof u[S]||w(u,S,T)),m&&d&&d.name!==I&&(f=!0,g=function(){return d.call(this)}),y&&!o||!k&&!f&&h[S]||w(h,S,g),A[e]=g,A[p]=T,s)if(a={values:m?g:c(I),keys:n?g:c("keys"),entries:b},o)for(l in a)l in h||x(h,l,a[l]);else v(v.P+v.F*(k||f),e,a);return a}},{"./_export":32,"./_hide":41,"./_iter-create":53,"./_iterators":57,"./_library":58,"./_object-gpo":77,"./_redefine":90,"./_set-to-string-tag":96,"./_wks":124}],55:[function(t,e,r){"use strict";var n=t("./_wks")("iterator"),o=!1;try{var i=[7][n]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}e.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],s=i[n]();s.next=function(){return{done:r=!0}},i[n]=function(){return s},t(i)}catch(a){}return r}},{"./_wks":124}],56:[function(t,e,r){"use strict";e.exports=function(t,e){return{value:e,done:!!t}}},{}],57:[function(t,e,r){"use strict";e.exports={}},{}],58:[function(t,e,r){"use strict";e.exports=!1},{}],59:[function(t,e,r){"use strict";var i=Math.expm1;e.exports=!i||22025.465794806718<i(10)||i(10)<22025.465794806718||-2e-17!=i(-2e-17)?function(t){return 0==(t=+t)?t:-1e-6<t&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},{}],60:[function(t,e,r){"use strict";var n=t("./_math-sign"),i=Math.pow,o=i(2,-52),a=i(2,-23),l=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(t){var e,r,i=Math.abs(t),s=n(t);return i<u?s*(i/u/a+1/o-1/o)*u*a:l<(r=(e=(1+a/o)*i)-(e-i))||r!=r?s*Infinity:s*r}},{"./_math-sign":63}],61:[function(t,e,r){"use strict";e.exports=Math.log1p||function(t){return-1e-8<(t=+t)&&t<1e-8?t-t*t/2:Math.log(1+t)}},{}],62:[function(t,e,r){"use strict";e.exports=Math.scale||function(t,e,r,i,s){return 0===arguments.length||t!=t||e!=e||r!=r||i!=i||s!=s?NaN:t===Infinity||t===-Infinity?t:(t-e)*(s-i)/(r-e)+i}},{}],63:[function(t,e,r){"use strict";e.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},{}],64:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=t("./_uid")("meta"),n=t("./_is-object"),o=t("./_has"),a=t("./_object-dp").f,l=0,u=Object.isExtensible||function(){return!0},c=!t("./_fails")(function(){return u(Object.preventExtensions({}))}),p=function(t){a(t,s,{value:{i:"O"+ ++l,w:{}}})},m=e.exports={KEY:s,NEED:!1,fastKey:function(t,e){if(!n(t))return"symbol"==i(t)?t:("string"==typeof t?"S":"P")+t;if(!o(t,s)){if(!u(t))return"F";if(!e)return"E";p(t)}return t[s].i},getWeak:function(t,e){if(!o(t,s)){if(!u(t))return!0;if(!e)return!1;p(t)}return t[s].w},onFreeze:function(t){return c&&m.NEED&&u(t)&&!o(t,s)&&p(t),t}}},{"./_fails":34,"./_has":40,"./_is-object":50,"./_object-dp":70,"./_uid":119}],65:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=t("./es6.map"),s=t("./_export"),o=t("./_shared")("metadata"),a=o.store||(o.store=new(t("./es6.weak-map"))),l=function(t,e,r){var i=a.get(t);if(!i){if(!r)return undefined;a.set(t,i=new n)}var s=i.get(e);if(!s){if(!r)return undefined;i.set(e,s=new n)}return s};e.exports={store:a,map:l,has:function(t,e,r){var i=l(e,r,!1);return i!==undefined&&i.has(t)},get:function(t,e,r){var i=l(e,r,!1);return i===undefined?undefined:i.get(t)},set:function(t,e,r,i){l(r,i,!0).set(t,e)},keys:function(t,e){var r=l(t,e,!1),i=[];return r&&r.forEach(function(t,e){i.push(e)}),i},key:function(t){return t===undefined||"symbol"==i(t)?t:String(t)},exp:function(t){s(s.S,"Reflect",t)}}},{"./_export":32,"./_shared":98,"./es6.map":155,"./es6.weak-map":261}],66:[function(t,e,r){"use strict";var a=t("./_global"),l=t("./_task").set,u=a.MutationObserver||a.WebKitMutationObserver,c=a.process,p=a.Promise,m="process"==t("./_cof")(c);e.exports=function(){var i,s,n,t=function(){var t,e;for(m&&(t=c.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(r){throw i?n():s=undefined,r}}s=undefined,t&&t.enter()};if(m)n=function(){c.nextTick(t)};else if(!u||a.navigator&&a.navigator.standalone)if(p&&p.resolve){var e=p.resolve(undefined);n=function(){e.then(t)}}else n=function(){l.call(a,t)};else{var r=!0,o=document.createTextNode("");new u(t).observe(o,{characterData:!0}),n=function(){o.data=r=!r}}return function(t){var e={fn:t,next:undefined};s&&(s.next=e),i||(i=e,n()),s=e}}},{"./_cof":17,"./_global":39,"./_task":108}],67:[function(t,e,r){"use strict";var s=t("./_a-function");function i(t){var r,i;this.promise=new t(function(t,e){if(r!==undefined||i!==undefined)throw TypeError("Bad Promise constructor");r=t,i=e}),this.resolve=s(r),this.reject=s(i)}e.exports.f=function(t){return new i(t)}},{"./_a-function":2}],68:[function(t,e,r){"use strict";var m=t("./_object-keys"),f=t("./_object-gops"),h=t("./_object-pie"),d=t("./_to-object"),g=t("./_iobject"),s=Object.assign;e.exports=!s||t("./_fails")(function(){var t={},e={},r=Symbol(),i="abcdefghijklmnopqrst";return t[r]=7,i.split("").forEach(function(t){e[t]=t}),7!=s({},t)[r]||Object.keys(s({},e)).join("")!=i})?function(t,e){for(var r=d(t),i=arguments.length,s=1,n=f.f,o=h.f;s<i;)for(var a,l=g(arguments[s++]),u=n?m(l).concat(n(l)):m(l),c=u.length,p=0;p<c;)o.call(l,a=u[p++])&&(r[a]=l[a]);return r}:s},{"./_fails":34,"./_iobject":46,"./_object-gops":76,"./_object-keys":79,"./_object-pie":80,"./_to-object":114}],69:[function(i,t,e){"use strict";var s=i("./_an-object"),n=i("./_object-dps"),o=i("./_enum-bug-keys"),a=i("./_shared-key")("IE_PROTO"),l=function(){},u="prototype",c=function(){var t,e=i("./_dom-create")("iframe"),r=o.length;for(e.style.display="none",i("./_html").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(l[u]=s(t),r=new l,l[u]=null,r[a]=t):r=c(),e===undefined?r:n(r,e)}},{"./_an-object":6,"./_dom-create":29,"./_enum-bug-keys":30,"./_html":42,"./_object-dps":71,"./_shared-key":97}],70:[function(t,e,r){"use strict";var s=t("./_an-object"),n=t("./_ie8-dom-define"),o=t("./_to-primitive"),a=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(s(t),e=o(e,!0),s(r),n)try{return a(t,e,r)}catch(i){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":6,"./_descriptors":28,"./_ie8-dom-define":43,"./_to-primitive":115}],71:[function(t,e,r){"use strict";var o=t("./_object-dp"),a=t("./_an-object"),l=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){a(t);for(var r,i=l(e),s=i.length,n=0;n<s;)o.f(t,r=i[n++],e[r]);return t}},{"./_an-object":6,"./_descriptors":28,"./_object-dp":70,"./_object-keys":79}],72:[function(e,t,r){"use strict";t.exports=e("./_library")||!e("./_fails")(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete e("./_global")[t]})},{"./_fails":34,"./_global":39,"./_library":58}],73:[function(t,e,r){"use strict";var i=t("./_object-pie"),s=t("./_property-desc"),n=t("./_to-iobject"),o=t("./_to-primitive"),a=t("./_has"),l=t("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?u:function(t,e){if(t=n(t),e=o(e,!0),l)try{return u(t,e)}catch(r){}if(a(t,e))return s(!i.f.call(t,e),t[e])}},{"./_descriptors":28,"./_has":40,"./_ie8-dom-define":43,"./_object-pie":80,"./_property-desc":88,"./_to-iobject":112,"./_to-primitive":115}],74:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=t("./_to-iobject"),n=t("./_object-gopn").f,o={}.toString,a="object"==("undefined"==typeof window?"undefined":i(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return n(t)}catch(e){return a.slice()}}(t):n(s(t))}},{"./_object-gopn":75,"./_to-iobject":112}],75:[function(t,e,r){"use strict";var i=t("./_object-keys-internal"),s=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return i(t,s)}},{"./_enum-bug-keys":30,"./_object-keys-internal":78}],76:[function(t,e,r){"use strict";r.f=Object.getOwnPropertySymbols},{}],77:[function(t,e,r){"use strict";var i=t("./_has"),s=t("./_to-object"),n=t("./_shared-key")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=s(t),i(t,n)?t[n]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},{"./_has":40,"./_shared-key":97,"./_to-object":114}],78:[function(t,e,r){"use strict";var o=t("./_has"),a=t("./_to-iobject"),l=t("./_array-includes")(!1),u=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var r,i=a(t),s=0,n=[];for(r in i)r!=u&&o(i,r)&&n.push(r);for(;e.length>s;)o(i,r=e[s++])&&(~l(n,r)||n.push(r));return n}},{"./_array-includes":10,"./_has":40,"./_shared-key":97,"./_to-iobject":112}],79:[function(t,e,r){"use strict";var i=t("./_object-keys-internal"),s=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return i(t,s)}},{"./_enum-bug-keys":30,"./_object-keys-internal":78}],80:[function(t,e,r){"use strict";r.f={}.propertyIsEnumerable},{}],81:[function(t,e,r){"use strict";var s=t("./_export"),n=t("./_core"),o=t("./_fails");e.exports=function(t,e){var r=(n.Object||{})[t]||Object[t],i={};i[t]=e(r),s(s.S+s.F*o(function(){r(1)}),"Object",i)}},{"./_core":22,"./_export":32,"./_fails":34}],82:[function(t,e,r){"use strict";var l=t("./_object-keys"),u=t("./_to-iobject"),c=t("./_object-pie").f;e.exports=function(a){return function(t){for(var e,r=u(t),i=l(r),s=i.length,n=0,o=[];n<s;)c.call(r,e=i[n++])&&o.push(a?[e,r[e]]:r[e]);return o}}},{"./_object-keys":79,"./_object-pie":80,"./_to-iobject":112}],83:[function(t,e,r){"use strict";var i=t("./_object-gopn"),s=t("./_object-gops"),n=t("./_an-object"),o=t("./_global").Reflect;e.exports=o&&o.ownKeys||function(t){var e=i.f(n(t)),r=s.f;return r?e.concat(r(t)):e}},{"./_an-object":6,"./_global":39,"./_object-gopn":75,"./_object-gops":76}],84:[function(t,e,r){"use strict";var i=t("./_global").parseFloat,s=t("./_string-trim").trim;e.exports=1/i(t("./_string-ws")+"-0")!=-Infinity?function(t){var e=s(String(t),3),r=i(e);return 0===r&&"-"==e.charAt(0)?-0:r}:i},{"./_global":39,"./_string-trim":106,"./_string-ws":107}],85:[function(t,e,r){"use strict";var i=t("./_global").parseInt,s=t("./_string-trim").trim,n=t("./_string-ws"),o=/^[-+]?0[xX]/;e.exports=8!==i(n+"08")||22!==i(n+"0x16")?function(t,e){var r=s(String(t),3);return i(r,e>>>0||(o.test(r)?16:10))}:i},{"./_global":39,"./_string-trim":106,"./_string-ws":107}],86:[function(t,e,r){"use strict";e.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},{}],87:[function(t,e,r){"use strict";var i=t("./_an-object"),s=t("./_is-object"),n=t("./_new-promise-capability");e.exports=function(t,e){if(i(t),s(e)&&e.constructor===t)return e;var r=n.f(t);return(0,r.resolve)(e),r.promise}},{"./_an-object":6,"./_is-object":50,"./_new-promise-capability":67}],88:[function(t,e,r){"use strict";e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],89:[function(t,e,r){"use strict";var s=t("./_redefine");e.exports=function(t,e,r){for(var i in e)s(t,i,e[i],r);return t}},{"./_redefine":90}],90:[function(t,e,r){"use strict";var n=t("./_global"),o=t("./_hide"),a=t("./_has"),l=t("./_uid")("src"),i="toString",s=Function[i],u=(""+s).split(i);t("./_core").inspectSource=function(t){return s.call(t)},(e.exports=function(t,e,r,i){var s="function"==typeof r;s&&(a(r,"name")||o(r,"name",e)),t[e]!==r&&(s&&(a(r,l)||o(r,l,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=r:i?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r)))})(Function.prototype,i,function(){return"function"==typeof this&&this[l]||s.call(this)})},{"./_core":22,"./_global":39,"./_has":40,"./_hide":41,"./_uid":119}],91:[function(t,e,r){"use strict";e.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},{}],92:[function(t,e,r){"use strict";var i=t("./_export"),o=t("./_a-function"),a=t("./_ctx"),l=t("./_for-of");e.exports=function(t){i(i.S,t,{from:function(t){var e,r,i,s,n=arguments[1];return o(this),(e=n!==undefined)&&o(n),t==undefined?new this:(r=[],e?(i=0,s=a(n,arguments[2],2),l(t,!1,function(t){r.push(s(t,i++))})):l(t,!1,r.push,r),new this(r))}})}},{"./_a-function":2,"./_ctx":24,"./_export":32,"./_for-of":38}],93:[function(t,e,r){"use strict";var i=t("./_export");e.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},{"./_export":32}],94:[function(s,t,e){"use strict";var r=s("./_is-object"),i=s("./_an-object"),n=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,i){try{(i=s("./_ctx")(Function.call,s("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),r=!(t instanceof Array)}catch(e){r=!0}return function(t,e){return n(t,e),r?t.__proto__=e:i(t,e),t}}({},!1):undefined),check:n}},{"./_an-object":6,"./_ctx":24,"./_is-object":50,"./_object-gopd":73}],95:[function(t,e,r){"use strict";var i=t("./_global"),s=t("./_object-dp"),n=t("./_descriptors"),o=t("./_wks")("species");e.exports=function(t){var e=i[t];n&&e&&!e[o]&&s.f(e,o,{configurable:!0,get:function(){return this}})}},{"./_descriptors":28,"./_global":39,"./_object-dp":70,"./_wks":124}],96:[function(t,e,r){"use strict";var i=t("./_object-dp").f,s=t("./_has"),n=t("./_wks")("toStringTag");e.exports=function(t,e,r){t&&!s(t=r?t:t.prototype,n)&&i(t,n,{configurable:!0,value:e})}},{"./_has":40,"./_object-dp":70,"./_wks":124}],97:[function(t,e,r){"use strict";var i=t("./_shared")("keys"),s=t("./_uid");e.exports=function(t){return i[t]||(i[t]=s(t))}},{"./_shared":98,"./_uid":119}],98:[function(t,e,r){"use strict";var i=t("./_core"),s=t("./_global"),n="__core-js_shared__",o=s[n]||(s[n]={});(e.exports=function(t,e){return o[t]||(o[t]=e!==undefined?e:{})})("versions",[]).push({version:i.version,mode:t("./_library")?"pure":"global",copyright:"\xa9 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":22,"./_global":39,"./_library":58}],99:[function(t,e,r){"use strict";var s=t("./_an-object"),n=t("./_a-function"),o=t("./_wks")("species");e.exports=function(t,e){var r,i=s(t).constructor;return i===undefined||(r=s(i)[o])==undefined?e:n(r)}},{"./_a-function":2,"./_an-object":6,"./_wks":124}],100:[function(t,e,r){"use strict";var i=t("./_fails");e.exports=function(t,e){return!!t&&i(function(){e?t.call(null,function(){},1):t.call(null)})}},{"./_fails":34}],101:[function(t,e,r){"use strict";var l=t("./_to-integer"),u=t("./_defined");e.exports=function(a){return function(t,e){var r,i,s=String(u(t)),n=l(e),o=s.length;return n<0||o<=n?a?"":undefined:(r=s.charCodeAt(n))<55296||56319<r||n+1===o||(i=s.charCodeAt(n+1))<56320||57343<i?a?s.charAt(n):r:a?s.slice(n,n+2):i-56320+(r-55296<<10)+65536}}},{"./_defined":27,"./_to-integer":111}],102:[function(t,e,r){"use strict";var i=t("./_is-regexp"),s=t("./_defined");e.exports=function(t,e,r){if(i(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(s(t))}},{"./_defined":27,"./_is-regexp":51}],103:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_fails"),o=t("./_defined"),a=/"/g,n=function(t,e,r,i){var s=String(o(t)),n="<"+e;return""!==r&&(n+=" "+r+'="'+String(i).replace(a,"&quot;")+'"'),n+">"+s+"</"+e+">"};e.exports=function(e,t){var r={};r[e]=t(n),i(i.P+i.F*s(function(){var t=""[e]('"');return t!==t.toLowerCase()||3<t.split('"').length}),"String",r)}},{"./_defined":27,"./_export":32,"./_fails":34}],104:[function(t,e,r){"use strict";var c=t("./_to-length"),p=t("./_string-repeat"),m=t("./_defined");e.exports=function(t,e,r,i){var s=String(m(t)),n=s.length,o=r===undefined?" ":String(r),a=c(e);if(a<=n||""==o)return s;var l=a-n,u=p.call(o,Math.ceil(l/o.length));return u.length>l&&(u=u.slice(0,l)),i?u+s:s+u}},{"./_defined":27,"./_string-repeat":105,"./_to-length":113}],105:[function(t,e,r){"use strict";var s=t("./_to-integer"),n=t("./_defined");e.exports=function(t){var e=String(n(this)),r="",i=s(t);if(i<0||i==Infinity)throw RangeError("Count can't be negative");for(;0<i;(i>>>=1)&&(e+=e))1&i&&(r+=e);return r}},{"./_defined":27,"./_to-integer":111}],106:[function(t,e,r){"use strict";var o=t("./_export"),i=t("./_defined"),a=t("./_fails"),l=t("./_string-ws"),s="["+l+"]",n=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),c=function(t,e,r){var i={},s=a(function(){return!!l[t]()||"\u200b\x85"!="\u200b\x85"[t]()}),n=i[t]=s?e(p):l[t];r&&(i[r]=n),o(o.P+o.F*s,"String",i)},p=c.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(n,"")),2&e&&(t=t.replace(u,"")),t};e.exports=c},{"./_defined":27,"./_export":32,"./_fails":34,"./_string-ws":107}],107:[function(t,e,r){"use strict";e.exports="\t\n\x0B\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},{}],108:[function(t,e,r){"use strict";var i,s,n,o=t("./_ctx"),a=t("./_invoke"),l=t("./_html"),u=t("./_dom-create"),c=t("./_global"),p=c.process,m=c.setImmediate,f=c.clearImmediate,h=c.MessageChannel,d=c.Dispatch,g=0,b={},_="onreadystatechange",y=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},v=function(t){y.call(t.data)};m&&f||(m=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return b[++g]=function(){a("function"==typeof t?t:Function(t),e)},i(g),g},f=function(t){delete b[t]},"process"==t("./_cof")(p)?i=function(t){p.nextTick(o(y,t,1))}:d&&d.now?i=function(t){d.now(o(y,t,1))}:h?(n=(s=new h).port2,s.port1.onmessage=v,i=o(n.postMessage,n,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",v,!1)):i=_ in u("script")?function(t){l.appendChild(u("script"))[_]=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(o(y,t,1),0)}),e.exports={set:m,clear:f}},{"./_cof":17,"./_ctx":24,"./_dom-create":29,"./_global":39,"./_html":42,"./_invoke":45}],109:[function(t,e,r){"use strict";var i=t("./_to-integer"),s=Math.max,n=Math.min;e.exports=function(t,e){return(t=i(t))<0?s(t+e,0):n(t,e)}},{"./_to-integer":111}],110:[function(t,e,r){"use strict";var i=t("./_to-integer"),s=t("./_to-length");e.exports=function(t){if(t===undefined)return 0;var e=i(t),r=s(e);if(e!==r)throw RangeError("Wrong length!");return r}},{"./_to-integer":111,"./_to-length":113}],111:[function(t,e,r){"use strict";var i=Math.ceil,s=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(0<t?s:i)(t)}},{}],112:[function(t,e,r){"use strict";var i=t("./_iobject"),s=t("./_defined");e.exports=function(t){return i(s(t))}},{"./_defined":27,"./_iobject":46}],113:[function(t,e,r){"use strict";var i=t("./_to-integer"),s=Math.min;e.exports=function(t){return 0<t?s(i(t),9007199254740991):0}},{"./_to-integer":111}],114:[function(t,e,r){"use strict";var i=t("./_defined");e.exports=function(t){return Object(i(t))}},{"./_defined":27}],115:[function(t,e,r){"use strict";var s=t("./_is-object");e.exports=function(t,e){if(!s(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!s(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!s(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!s(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":50}],116:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}if(t("./_descriptors")){var b=t("./_library"),_=t("./_global"),y=t("./_fails"),v=t("./_export"),x=t("./_typed"),s=t("./_typed-buffer"),m=t("./_ctx"),w=t("./_an-instance"),n=t("./_property-desc"),A=t("./_hide"),o=t("./_redefine-all"),a=t("./_to-integer"),E=t("./_to-length"),j=t("./_to-index"),l=t("./_to-absolute-index"),u=t("./_to-primitive"),c=t("./_has"),O=t("./_classof"),S=t("./_is-object"),f=t("./_to-object"),h=t("./_is-array-iter"),k=t("./_object-create"),I=t("./_object-gpo"),T=t("./_object-gopn").f,d=t("./core.get-iterator-method"),p=t("./_uid"),g=t("./_wks"),N=t("./_array-methods"),C=t("./_array-includes"),D=t("./_species-constructor"),P=t("./es6.array.iterator"),R=t("./_iterators"),F=t("./_iter-detect"),L=t("./_set-species"),M=t("./_array-fill"),B=t("./_array-copy-within"),U=t("./_object-dp"),z=t("./_object-gopd"),q=U.f,$=z.f,V=_.RangeError,G=_.TypeError,X=_.Uint8Array,W="ArrayBuffer",H="Shared"+W,Q="BYTES_PER_ELEMENT",J="prototype",K=Array[J],Y=s.ArrayBuffer,Z=s.DataView,tt=N(0),et=N(2),rt=N(3),it=N(4),st=N(5),nt=N(6),ot=C(!0),at=C(!1),lt=P.values,ut=P.keys,ct=P.entries,pt=K.lastIndexOf,mt=K.reduce,ft=K.reduceRight,ht=K.join,dt=K.sort,gt=K.slice,bt=K.toString,_t=K.toLocaleString,yt=g("iterator"),vt=g("toStringTag"),xt=p("typed_constructor"),wt=p("def_constructor"),At=x.CONSTR,Et=x.TYPED,jt=x.VIEW,Ot="Wrong length!",St=N(1,function(t,e){return Ct(D(t,t[wt]),e)}),kt=y(function(){return 1===new X(new Uint16Array([1]).buffer)[0]}),It=!!X&&!!X[J].set&&y(function(){new X(1).set({})}),Tt=function(t,e){var r=a(t);if(r<0||r%e)throw V("Wrong offset!");return r},Nt=function(t){if(S(t)&&Et in t)return t;throw G(t+" is not a typed array!")},Ct=function(t,e){if(!(S(t)&&xt in t))throw G("It is not a typed array constructor!");return new t(e)},Dt=function(t,e){return Pt(D(t,t[wt]),e)},Pt=function(t,e){for(var r=0,i=e.length,s=Ct(t,i);r<i;)s[r]=e[r++];return s},Rt=function(t,e,r){q(t,e,{get:function(){return this._d[r]}})},Ft=function(t){var e,r,i,s,n,o,a=f(t),l=arguments.length,u=1<l?arguments[1]:undefined,c=u!==undefined,p=d(a);if(p!=undefined&&!h(p)){for(o=p.call(a),i=[],e=0;!(n=o.next()).done;e++)i.push(n.value);a=i}for(c&&2<l&&(u=m(u,arguments[2],2)),e=0,r=E(a.length),s=Ct(this,r);e<r;e++)s[e]=c?u(a[e],e):a[e];return s},Lt=function(){for(var t=0,e=arguments.length,r=Ct(this,e);t<e;)r[t]=arguments[t++];return r},Mt=!!X&&y(function(){_t.call(new X(1))}),Bt=function(){return _t.apply(Mt?gt.call(Nt(this)):Nt(this),arguments)},Ut={copyWithin:function(t,e){return B.call(Nt(this),t,e,2<arguments.length?arguments[2]:undefined)},every:function(t){return it(Nt(this),t,1<arguments.length?arguments[1]:undefined)},fill:function(t){return M.apply(Nt(this),arguments)},filter:function(t){return Dt(this,et(Nt(this),t,1<arguments.length?arguments[1]:undefined))},find:function(t){return st(Nt(this),t,1<arguments.length?arguments[1]:undefined)},findIndex:function(t){return nt(Nt(this),t,1<arguments.length?arguments[1]:undefined)},forEach:function(t){tt(Nt(this),t,1<arguments.length?arguments[1]:undefined)},indexOf:function(t){return at(Nt(this),t,1<arguments.length?arguments[1]:undefined)},includes:function(t){return ot(Nt(this),t,1<arguments.length?arguments[1]:undefined)},join:function(t){return ht.apply(Nt(this),arguments)},lastIndexOf:function(t){return pt.apply(Nt(this),arguments)},map:function(t){return St(Nt(this),t,1<arguments.length?arguments[1]:undefined)},reduce:function(t){return mt.apply(Nt(this),arguments)},reduceRight:function(t){return ft.apply(Nt(this),arguments)},reverse:function(){for(var t,e=this,r=Nt(e).length,i=Math.floor(r/2),s=0;s<i;)t=e[s],e[s++]=e[--r],e[r]=t;return e},some:function(t){return rt(Nt(this),t,1<arguments.length?arguments[1]:undefined)},sort:function(t){return dt.call(Nt(this),t)},subarray:function(t,e){var r=Nt(this),i=r.length,s=l(t,i);return new(D(r,r[wt]))(r.buffer,r.byteOffset+s*r.BYTES_PER_ELEMENT,E((e===undefined?i:l(e,i))-s))}},zt=function(t,e){return Dt(this,gt.call(Nt(this),t,e))},qt=function(t){Nt(this);var e=Tt(arguments[1],1),r=this.length,i=f(t),s=E(i.length),n=0;if(r<s+e)throw V(Ot);for(;n<s;)this[e+n]=i[n++]},$t={entries:function(){return ct.call(Nt(this))},keys:function(){return ut.call(Nt(this))},values:function(){return lt.call(Nt(this))}},Vt=function(t,e){return S(t)&&t[Et]&&"symbol"!=i(e)&&e in t&&String(+e)==String(e)},Gt=function(t,e){return Vt(t,e=u(e,!0))?n(2,t[e]):$(t,e)},Xt=function(t,e,r){return!(Vt(t,e=u(e,!0))&&S(r)&&c(r,"value"))||c(r,"get")||c(r,"set")||r.configurable||c(r,"writable")&&!r.writable||c(r,"enumerable")&&!r.enumerable?q(t,e,r):(t[e]=r.value,t)};At||(z.f=Gt,U.f=Xt),v(v.S+v.F*!At,"Object",{getOwnPropertyDescriptor:Gt,defineProperty:Xt}),y(function(){bt.call({})})&&(bt=_t=function(){return ht.call(this)});var Wt=o({},Ut);o(Wt,$t),A(Wt,yt,$t.values),o(Wt,{slice:zt,set:qt,constructor:function(){},toString:bt,toLocaleString:Bt}),Rt(Wt,"buffer","b"),Rt(Wt,"byteOffset","o"),Rt(Wt,"byteLength","l"),Rt(Wt,"length","e"),q(Wt,vt,{get:function(){return this[Et]}}),e.exports=function(t,p,e,n){var m=t+((n=!!n)?"Clamped":"")+"Array",r="get"+t,o="set"+t,f=_[m],a=f||{},i=f&&I(f),s=!f||!x.ABV,l={},u=f&&f[J],h=function(t,s){q(t,s,{get:function(){return t=s,(e=this._d).v[r](t*p+e.o,kt);var t,e},set:function(t){return e=s,r=t,i=this._d,n&&(r=(r=Math.round(r))<0?0:255<r?255:255&r),void i.v[o](e*p+i.o,r,kt);var e,r,i},enumerable:!0})};s?(f=e(function(t,e,r,i){w(t,f,m,"_d");var s,n,o,a,l=0,u=0;if(S(e)){if(!(e instanceof Y||(a=O(e))==W||a==H))return Et in e?Pt(f,e):Ft.call(f,e);s=e,u=Tt(r,p);var c=e.byteLength;if(i===undefined){if(c%p)throw V(Ot);if((n=c-u)<0)throw V(Ot)}else if(c<(n=E(i)*p)+u)throw V(Ot);o=n/p}else o=j(e),s=new Y(n=o*p);for(A(t,"_d",{b:s,o:u,l:n,e:o,v:new Z(s)});l<o;)h(t,l++)}),u=f[J]=k(Wt),A(u,"constructor",f)):y(function(){f(1)})&&y(function(){new f(-1)})&&F(function(t){new f,new f(null),new f(1.5),new f(t)},!0)||(f=e(function(t,e,r,i){var s;return w(t,f,m),S(e)?e instanceof Y||(s=O(e))==W||s==H?i!==undefined?new a(e,Tt(r,p),i):r!==undefined?new a(e,Tt(r,p)):new a(e):Et in e?Pt(f,e):Ft.call(f,e):new a(j(e))}),tt(i!==Function.prototype?T(a).concat(T(i)):T(a),function(t){t in f||A(f,t,a[t])}),f[J]=u,b||(u.constructor=f));var c=u[yt],d=!!c&&("values"==c.name||c.name==undefined),g=$t.values;A(f,xt,!0),A(u,Et,m),A(u,jt,!0),A(u,wt,f),(n?new f(1)[vt]==m:vt in u)||q(u,vt,{get:function(){return m}}),l[m]=f,v(v.G+v.W+v.F*(f!=a),l),v(v.S,m,{BYTES_PER_ELEMENT:p}),v(v.S+v.F*y(function(){a.of.call(f,1)}),m,{from:Ft,of:Lt}),Q in u||A(u,Q,p),v(v.P,m,Ut),L(m),v(v.P+v.F*It,m,{set:qt}),v(v.P+v.F*!d,m,$t),b||u.toString==bt||(u.toString=bt),v(v.P+v.F*y(function(){new f(1).slice()}),m,{slice:zt}),v(v.P+v.F*(y(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!y(function(){u.toLocaleString.call([1,2])})),m,{toLocaleString:Bt}),R[m]=d?c:g,b||d||A(u,yt,g)}}else e.exports=function(){}},{"./_an-instance":5,"./_array-copy-within":7,"./_array-fill":8,"./_array-includes":10,"./_array-methods":11,"./_classof":16,"./_ctx":24,"./_descriptors":28,"./_export":32,"./_fails":34,"./_global":39,"./_has":40,"./_hide":41,"./_is-array-iter":47,"./_is-object":50,"./_iter-detect":55,"./_iterators":57,"./_library":58,"./_object-create":69,"./_object-dp":70,"./_object-gopd":73,"./_object-gopn":75,"./_object-gpo":77,"./_property-desc":88,"./_redefine-all":89,"./_set-species":95,"./_species-constructor":99,"./_to-absolute-index":109,"./_to-index":110,"./_to-integer":111,"./_to-length":113,"./_to-object":114,"./_to-primitive":115,"./_typed":118,"./_typed-buffer":117,"./_uid":119,"./_wks":124,"./core.get-iterator-method":125,"./es6.array.iterator":136}],117:[function(t,e,r){"use strict";var i=t("./_global"),s=t("./_descriptors"),n=t("./_library"),o=t("./_typed"),a=t("./_hide"),l=t("./_redefine-all"),u=t("./_fails"),c=t("./_an-instance"),p=t("./_to-integer"),m=t("./_to-length"),f=t("./_to-index"),h=t("./_object-gopn").f,d=t("./_object-dp").f,g=t("./_array-fill"),b=t("./_set-to-string-tag"),_="ArrayBuffer",y="DataView",v="prototype",x="Wrong index!",w=i[_],A=i[y],E=i.Math,j=i.RangeError,O=i.Infinity,S=w,k=E.abs,I=E.pow,T=E.floor,N=E.log,C=E.LN2,D="byteLength",P="byteOffset",R=s?"_b":"buffer",F=s?"_l":D,L=s?"_o":P;function M(t,e,r){var i,s,n,o=new Array(r),a=8*r-e-1,l=(1<<a)-1,u=l>>1,c=23===e?I(2,-24)-I(2,-77):0,p=0,m=t<0||0===t&&1/t<0?1:0;for((t=k(t))!=t||t===O?(s=t!=t?1:0,i=l):(i=T(N(t)/C),t*(n=I(2,-i))<1&&(i--,n*=2),2<=(t+=1<=i+u?c/n:c*I(2,1-u))*n&&(i++,n/=2),l<=i+u?(s=0,i=l):1<=i+u?(s=(t*n-1)*I(2,e),i+=u):(s=t*I(2,u-1)*I(2,e),i=0));8<=e;o[p++]=255&s,s/=256,e-=8);for(i=i<<e|s,a+=e;0<a;o[p++]=255&i,i/=256,a-=8);return o[--p]|=128*m,o}function B(t,e,r){var i,s=8*r-e-1,n=(1<<s)-1,o=n>>1,a=s-7,l=r-1,u=t[l--],c=127&u;for(u>>=7;0<a;c=256*c+t[l],l--,a-=8);for(i=c&(1<<-a)-1,c>>=-a,a+=e;0<a;i=256*i+t[l],l--,a-=8);if(0===c)c=1-o;else{if(c===n)return i?NaN:u?-O:O;i+=I(2,e),c-=o}return(u?-1:1)*i*I(2,c-e)}function U(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function z(t){return[255&t]}function q(t){return[255&t,t>>8&255]}function $(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function V(t){return M(t,52,8)}function G(t){return M(t,23,4)}function X(t,e,r){d(t[v],e,{get:function(){return this[r]}})}function W(t,e,r,i){var s=f(+r);if(s+e>t[F])throw j(x);var n=t[R]._b,o=s+t[L],a=n.slice(o,o+e);return i?a:a.reverse()}function H(t,e,r,i,s,n){var o=f(+r);if(o+e>t[F])throw j(x);for(var a=t[R]._b,l=o+t[L],u=i(+s),c=0;c<e;c++)a[l+c]=u[n?c:e-c-1]}if(o.ABV){if(!u(function(){w(1)})||!u(function(){new w(-1)})||u(function(){return new w,new w(1.5),new w(NaN),w.name!=_})){for(var Q,J=(w=function(t){return c(this,w),new S(f(t))})[v]=S[v],K=h(S),Y=0;K.length>Y;)(Q=K[Y++])in w||a(w,Q,S[Q]);n||(J.constructor=w)}var Z=new A(new w(2)),tt=A[v].setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||l(A[v],{setInt8:function(t,e){tt.call(this,t,e<<24>>24)},setUint8:function(t,e){tt.call(this,t,e<<24>>24)}},!0)}else w=function(t){c(this,w,_);var e=f(t);this._b=g.call(new Array(e),0),this[F]=e},A=function(t,e,r){c(this,A,y),c(t,w,y);var i=t[F],s=p(e);if(s<0||i<s)throw j("Wrong offset!");if(i<s+(r=r===undefined?i-s:m(r)))throw j("Wrong length!");this[R]=t,this[L]=s,this[F]=r},s&&(X(w,D,"_l"),X(A,"buffer","_b"),X(A,D,"_l"),X(A,P,"_o")),l(A[v],{getInt8:function(t){return W(this,1,t)[0]<<24>>24},getUint8:function(t){return W(this,1,t)[0]},getInt16:function(t){var e=W(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=W(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return U(W(this,4,t,arguments[1]))},getUint32:function(t){return U(W(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return B(W(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return B(W(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){H(this,1,t,z,e)},setUint8:function(t,e){H(this,1,t,z,e)},setInt16:function(t,e){H(this,2,t,q,e,arguments[2])},setUint16:function(t,e){H(this,2,t,q,e,arguments[2])},setInt32:function(t,e){H(this,4,t,$,e,arguments[2])},setUint32:function(t,e){H(this,4,t,$,e,arguments[2])},setFloat32:function(t,e){H(this,4,t,G,e,arguments[2])},setFloat64:function(t,e){H(this,8,t,V,e,arguments[2])}});b(w,_),b(A,y),a(A[v],o.VIEW,!0),r[_]=w,r[y]=A},{"./_an-instance":5,"./_array-fill":8,"./_descriptors":28,"./_fails":34,"./_global":39,"./_hide":41,"./_library":58,"./_object-dp":70,"./_object-gopn":75,"./_redefine-all":89,"./_set-to-string-tag":96,"./_to-index":110,"./_to-integer":111,"./_to-length":113,"./_typed":118}],118:[function(t,e,r){"use strict";for(var i,s=t("./_global"),n=t("./_hide"),o=t("./_uid"),a=o("typed_array"),l=o("view"),u=!(!s.ArrayBuffer||!s.DataView),c=u,p=0,m="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");p<9;)(i=s[m[p++]])?(n(i.prototype,a,!0),n(i.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:a,VIEW:l}},{"./_global":39,"./_hide":41,"./_uid":119}],119:[function(t,e,r){"use strict";var i=0,s=Math.random();e.exports=function(t){return"Symbol(".concat(t===undefined?"":t,")_",(++i+s).toString(36))}},{}],120:[function(t,e,r){"use strict";var i=t("./_global").navigator;e.exports=i&&i.userAgent||""},{"./_global":39}],121:[function(t,e,r){"use strict";var i=t("./_is-object");e.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},{"./_is-object":50}],122:[function(t,e,r){"use strict";var i=t("./_global"),s=t("./_core"),n=t("./_library"),o=t("./_wks-ext"),a=t("./_object-dp").f;e.exports=function(t){var e=s.Symbol||(s.Symbol=n?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:o.f(t)})}},{"./_core":22,"./_global":39,"./_library":58,"./_object-dp":70,"./_wks-ext":123}],123:[function(t,e,r){"use strict";r.f=t("./_wks")},{"./_wks":124}],124:[function(t,e,r){"use strict";var i=t("./_shared")("wks"),s=t("./_uid"),n=t("./_global").Symbol,o="function"==typeof n;(e.exports=function(t){return i[t]||(i[t]=o&&n[t]||(o?n:s)("Symbol."+t))}).store=i},{"./_global":39,"./_shared":98,"./_uid":119}],125:[function(t,e,r){"use strict";var i=t("./_classof"),s=t("./_wks")("iterator"),n=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){if(t!=undefined)return t[s]||t["@@iterator"]||n[i(t)]}},{"./_classof":16,"./_core":22,"./_iterators":57,"./_wks":124}],126:[function(t,e,r){"use strict";var i=t("./_export");i(i.P,"Array",{copyWithin:t("./_array-copy-within")}),t("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":4,"./_array-copy-within":7,"./_export":32}],127:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-methods")(4);i(i.P+i.F*!t("./_strict-method")([].every,!0),"Array",{every:function(t){return s(this,t,arguments[1])}})},{"./_array-methods":11,"./_export":32,"./_strict-method":100}],128:[function(t,e,r){"use strict";var i=t("./_export");i(i.P,"Array",{fill:t("./_array-fill")}),t("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":4,"./_array-fill":8,"./_export":32}],129:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-methods")(2);i(i.P+i.F*!t("./_strict-method")([].filter,!0),"Array",{filter:function(t){return s(this,t,arguments[1])}})},{"./_array-methods":11,"./_export":32,"./_strict-method":100}],130:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-methods")(6),n="findIndex",o=!0;n in[]&&Array(1)[n](function(){o=!1}),i(i.P+i.F*o,"Array",{findIndex:function(t){return s(this,t,1<arguments.length?arguments[1]:undefined)}}),t("./_add-to-unscopables")(n)},{"./_add-to-unscopables":4,"./_array-methods":11,"./_export":32}],131:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-methods")(5),n="find",o=!0;n in[]&&Array(1)[n](function(){o=!1}),i(i.P+i.F*o,"Array",{find:function(t){return s(this,t,1<arguments.length?arguments[1]:undefined)}}),t("./_add-to-unscopables")(n)},{"./_add-to-unscopables":4,"./_array-methods":11,"./_export":32}],132:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-methods")(0),n=t("./_strict-method")([].forEach,!0);i(i.P+i.F*!n,"Array",{forEach:function(t){return s(this,t,arguments[1])}})},{"./_array-methods":11,"./_export":32,"./_strict-method":100}],133:[function(t,e,r){"use strict";var m=t("./_ctx"),i=t("./_export"),f=t("./_to-object"),h=t("./_iter-call"),d=t("./_is-array-iter"),g=t("./_to-length"),b=t("./_create-property"),_=t("./core.get-iterator-method");i(i.S+i.F*!t("./_iter-detect")(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,i,s,n=f(t),o="function"==typeof this?this:Array,a=arguments.length,l=1<a?arguments[1]:undefined,u=l!==undefined,c=0,p=_(n);if(u&&(l=m(l,2<a?arguments[2]:undefined,2)),p==undefined||o==Array&&d(p))for(r=new o(e=g(n.length));c<e;c++)b(r,c,u?l(n[c],c):n[c]);else for(s=p.call(n),r=new o;!(i=s.next()).done;c++)b(r,c,u?h(s,l,[i.value,c],!0):i.value);return r.length=c,r}})},{"./_create-property":23,"./_ctx":24,"./_export":32,"./_is-array-iter":47,"./_iter-call":52,"./_iter-detect":55,"./_to-length":113,"./_to-object":114,"./core.get-iterator-method":125}],134:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-includes")(!1),n=[].indexOf,o=!!n&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(o||!t("./_strict-method")(n)),"Array",{indexOf:function(t){return o?n.apply(this,arguments)||0:s(this,t,arguments[1])}})},{"./_array-includes":10,"./_export":32,"./_strict-method":100}],135:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Array",{isArray:t("./_is-array")})},{"./_export":32,"./_is-array":48}],136:[function(t,e,r){"use strict";var i=t("./_add-to-unscopables"),s=t("./_iter-step"),n=t("./_iterators"),o=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=undefined,s(1)):s(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),n.Arguments=n.Array,i("keys"),i("values"),i("entries")},{"./_add-to-unscopables":4,"./_iter-define":54,"./_iter-step":56,"./_iterators":57,"./_to-iobject":112}],137:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_to-iobject"),n=[].join;i(i.P+i.F*(t("./_iobject")!=Object||!t("./_strict-method")(n)),"Array",{join:function(t){return n.call(s(this),t===undefined?",":t)}})},{"./_export":32,"./_iobject":46,"./_strict-method":100,"./_to-iobject":112}],138:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_to-iobject"),n=t("./_to-integer"),o=t("./_to-length"),a=[].lastIndexOf,l=!!a&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(l||!t("./_strict-method")(a)),"Array",{lastIndexOf:function(t){if(l)return a.apply(this,arguments)||0;var e=s(this),r=o(e.length),i=r-1;for(1<arguments.length&&(i=Math.min(i,n(arguments[1]))),i<0&&(i=r+i);0<=i;i--)if(i in e&&e[i]===t)return i||0;return-1}})},{"./_export":32,"./_strict-method":100,"./_to-integer":111,"./_to-iobject":112,"./_to-length":113}],139:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-methods")(1);i(i.P+i.F*!t("./_strict-method")([].map,!0),"Array",{map:function(t){return s(this,t,arguments[1])}})},{"./_array-methods":11,"./_export":32,"./_strict-method":100}],140:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_create-property");i(i.S+i.F*t("./_fails")(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);t<e;)s(r,t,arguments[t++]);return r.length=e,r}})},{"./_create-property":23,"./_export":32,"./_fails":34}],141:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-reduce");i(i.P+i.F*!t("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(t){return s(this,t,arguments.length,arguments[1],!0)}})},{"./_array-reduce":12,"./_export":32,"./_strict-method":100}],142:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-reduce");i(i.P+i.F*!t("./_strict-method")([].reduce,!0),"Array",{reduce:function(t){return s(this,t,arguments.length,arguments[1],!1)}})},{"./_array-reduce":12,"./_export":32,"./_strict-method":100}],143:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_html"),u=t("./_cof"),c=t("./_to-absolute-index"),p=t("./_to-length"),m=[].slice;i(i.P+i.F*t("./_fails")(function(){s&&m.call(s)}),"Array",{slice:function(t,e){var r=p(this.length),i=u(this);if(e=e===undefined?r:e,"Array"==i)return m.call(this,t,e);for(var s=c(t,r),n=c(e,r),o=p(n-s),a=new Array(o),l=0;l<o;l++)a[l]="String"==i?this.charAt(s+l):this[s+l];return a}})},{"./_cof":17,"./_export":32,"./_fails":34,"./_html":42,"./_to-absolute-index":109,"./_to-length":113}],144:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-methods")(3);i(i.P+i.F*!t("./_strict-method")([].some,!0),"Array",{some:function(t){return s(this,t,arguments[1])}})},{"./_array-methods":11,"./_export":32,"./_strict-method":100}],145:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_a-function"),n=t("./_to-object"),o=t("./_fails"),a=[].sort,l=[1,2,3];i(i.P+i.F*(o(function(){l.sort(undefined)})||!o(function(){l.sort(null)})||!t("./_strict-method")(a)),"Array",{sort:function(t){return t===undefined?a.call(n(this)):a.call(n(this),s(t))}})},{"./_a-function":2,"./_export":32,"./_fails":34,"./_strict-method":100,"./_to-object":114}],146:[function(t,e,r){"use strict";t("./_set-species")("Array")},{"./_set-species":95}],147:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Date",{now:function(){return(new Date).getTime()}})},{"./_export":32}],148:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_date-to-iso-string");i(i.P+i.F*(Date.prototype.toISOString!==s),"Date",{toISOString:s})},{"./_date-to-iso-string":25,"./_export":32}],149:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_to-object"),n=t("./_to-primitive");i(i.P+i.F*t("./_fails")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=s(this),r=n(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},{"./_export":32,"./_fails":34,"./_to-object":114,"./_to-primitive":115}],150:[function(t,e,r){"use strict";var i=t("./_wks")("toPrimitive"),s=Date.prototype;i in s||t("./_hide")(s,i,t("./_date-to-primitive"))},{"./_date-to-primitive":26,"./_hide":41,"./_wks":124}],151:[function(t,e,r){"use strict";var i=Date.prototype,s="Invalid Date",n="toString",o=i[n],a=i.getTime;new Date(NaN)+""!=s&&t("./_redefine")(i,n,function(){var t=a.call(this);return t==t?o.call(this):s})},{"./_redefine":90}],152:[function(t,e,r){"use strict";var i=t("./_export");i(i.P,"Function",{bind:t("./_bind")})},{"./_bind":15,"./_export":32}],153:[function(t,e,r){"use strict";var i=t("./_is-object"),s=t("./_object-gpo"),n=t("./_wks")("hasInstance"),o=Function.prototype;n in o||t("./_object-dp").f(o,n,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=s(t);)if(this.prototype===t)return!0;return!1}})},{"./_is-object":50,"./_object-dp":70,"./_object-gpo":77,"./_wks":124}],154:[function(t,e,r){"use strict";var i=t("./_object-dp").f,s=Function.prototype,n=/^\s*function ([^ (]*)/;"name"in s||t("./_descriptors")&&i(s,"name",{configurable:!0,get:function(){try{return(""+this).match(n)[1]}catch(t){return""}}})},{"./_descriptors":28,"./_object-dp":70}],155:[function(t,e,r){"use strict";var i=t("./_collection-strong"),s=t("./_validate-collection");e.exports=t("./_collection")("Map",function(t){return function(){return t(this,0<arguments.length?arguments[0]:undefined)}},{get:function(t){var e=i.getEntry(s(this,"Map"),t);return e&&e.v},set:function(t,e){return i.def(s(this,"Map"),0===t?0:t,e)}},i,!0)},{"./_collection":21,"./_collection-strong":18,"./_validate-collection":121}],156:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_math-log1p"),n=Math.sqrt,o=Math.acosh;i(i.S+i.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(Infinity)==Infinity),"Math",{acosh:function(t){return(t=+t)<1?NaN:94906265.62425156<t?Math.log(t)+Math.LN2:s(t-1+n(t-1)*n(t+1))}})},{"./_export":32,"./_math-log1p":61}],157:[function(e,r,i){"use strict";var s=e("./_export"),n=Math.asinh;s(s.S+s.F*!(n&&0<1/n(0)),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},{"./_export":32}],158:[function(t,e,r){"use strict";var i=t("./_export"),s=Math.atanh;i(i.S+i.F*!(s&&1/s(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},{"./_export":32}],159:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_math-sign");i(i.S,"Math",{cbrt:function(t){return s(t=+t)*Math.pow(Math.abs(t),1/3)}})},{"./_export":32,"./_math-sign":63}],160:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{"./_export":32}],161:[function(t,e,r){"use strict";var i=t("./_export"),s=Math.exp;i(i.S,"Math",{cosh:function(t){return(s(t=+t)+s(-t))/2}})},{"./_export":32}],162:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_math-expm1");i(i.S+i.F*(s!=Math.expm1),"Math",{expm1:s})},{"./_export":32,"./_math-expm1":59}],163:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{fround:t("./_math-fround")})},{"./_export":32,"./_math-fround":60}],164:[function(t,e,r){"use strict";var i=t("./_export"),l=Math.abs;i(i.S,"Math",{hypot:function(t,e){for(var r,i,s=0,n=0,o=arguments.length,a=0;n<o;)a<(r=l(arguments[n++]))?(s=s*(i=a/r)*i+1,a=r):s+=0<r?(i=r/a)*i:r;return a===Infinity?Infinity:a*Math.sqrt(s)}})},{"./_export":32}],165:[function(t,e,r){"use strict";var i=t("./_export"),s=Math.imul;i(i.S+i.F*t("./_fails")(function(){return-5!=s(4294967295,5)||2!=s.length}),"Math",{imul:function(t,e){var r=65535,i=+t,s=+e,n=r&i,o=r&s;return 0|n*o+((r&i>>>16)*o+n*(r&s>>>16)<<16>>>0)}})},{"./_export":32,"./_fails":34}],166:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{"./_export":32}],167:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{log1p:t("./_math-log1p")})},{"./_export":32,"./_math-log1p":61}],168:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},{"./_export":32}],169:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{sign:t("./_math-sign")})},{"./_export":32,"./_math-sign":63}],170:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_math-expm1"),n=Math.exp;i(i.S+i.F*t("./_fails")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(s(t)-s(-t))/2:(n(t-1)-n(-t-1))*(Math.E/2)}})},{"./_export":32,"./_fails":34,"./_math-expm1":59}],171:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_math-expm1"),n=Math.exp;i(i.S,"Math",{tanh:function(t){var e=s(t=+t),r=s(-t);return e==Infinity?1:r==Infinity?-1:(e-r)/(n(t)+n(-t))}})},{"./_export":32,"./_math-expm1":59}],172:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{trunc:function(t){return(0<t?Math.floor:Math.ceil)(t)}})},{"./_export":32}],173:[function(t,e,r){"use strict";var i=t("./_global"),s=t("./_has"),n=t("./_cof"),o=t("./_inherit-if-required"),c=t("./_to-primitive"),a=t("./_fails"),l=t("./_object-gopn").f,u=t("./_object-gopd").f,p=t("./_object-dp").f,m=t("./_string-trim").trim,f="Number",h=i[f],d=h,g=h.prototype,b=n(t("./_object-create")(g))==f,_="trim"in String.prototype,y=function(t){var e=c(t,!1);if("string"==typeof e&&2<e.length){var r,i,s,n=(e=_?e.trim():m(e,3)).charCodeAt(0);if(43===n||45===n){if(88===(r=e.charCodeAt(2))||120===r)return NaN}else if(48===n){switch(e.charCodeAt(1)){case 66:case 98:i=2,s=49;break;case 79:case 111:i=8,s=55;break;default:return+e}for(var o,a=e.slice(2),l=0,u=a.length;l<u;l++)if((o=a.charCodeAt(l))<48||s<o)return NaN;return parseInt(a,i)}}return+e};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof h&&(b?a(function(){g.valueOf.call(r)}):n(r)!=f)?o(new d(y(e)),r,h):y(e)};for(var v,x=t("./_descriptors")?l(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;x.length>w;w++)s(d,v=x[w])&&!s(h,v)&&p(h,v,u(d,v));(h.prototype=g).constructor=h,t("./_redefine")(i,f,h)}},{"./_cof":17,"./_descriptors":28,"./_fails":34,"./_global":39,"./_has":40,"./_inherit-if-required":44,"./_object-create":69,"./_object-dp":70,"./_object-gopd":73,"./_object-gopn":75,"./_redefine":90,"./_string-trim":106,"./_to-primitive":115}],174:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":32}],175:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_global").isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&s(t)}})},{"./_export":32,"./_global":39}],176:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Number",{isInteger:t("./_is-integer")})},{"./_export":32,"./_is-integer":49}],177:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Number",{isNaN:function(t){return t!=t}})},{"./_export":32}],178:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_is-integer"),n=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return s(t)&&n(t)<=9007199254740991}})},{"./_export":32,"./_is-integer":49}],179:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":32}],180:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":32}],181:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_parse-float");i(i.S+i.F*(Number.parseFloat!=s),"Number",{parseFloat:s})},{"./_export":32,"./_parse-float":84}],182:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_parse-int");i(i.S+i.F*(Number.parseInt!=s),"Number",{parseInt:s})},{"./_export":32,"./_parse-int":85}],183:[function(e,r,i){"use strict";var s=e("./_export"),u=e("./_to-integer"),c=e("./_a-number-value"),p=e("./_string-repeat"),n=1..toFixed,o=Math.floor,a=[0,0,0,0,0,0],m="Number.toFixed: incorrect invocation!",f=function(t,e){for(var r=-1,i=e;++r<6;)i+=t*a[r],a[r]=i%1e7,i=o(i/1e7)},h=function(t){for(var e=6,r=0;0<=--e;)r+=a[e],a[e]=o(r/t),r=r%t*1e7},d=function(){for(var t=6,e="";0<=--t;)if(""!==e||0===t||0!==a[t]){var r=String(a[t]);e=""===e?r:e+p.call("0",7-r.length)+r}return e},g=function t(e,r,i){return 0===r?i:r%2==1?t(e,r-1,i*e):t(e*e,r/2,i)};s(s.P+s.F*(!!n&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e("./_fails")(function(){n.call({})})),"Number",{toFixed:function(t){var e,r,i,s,n=c(this,m),o=u(t),a="",l="0";if(o<0||20<o)throw RangeError(m);if(n!=n)return"NaN";if(n<=-1e21||1e21<=n)return String(n);if(n<0&&(a="-",n=-n),1e-21<n)if(r=(e=function(t){for(var e=0,r=t;4096<=r;)e+=12,r/=4096;for(;2<=r;)e+=1,r/=2;return e}(n*g(2,69,1))-69)<0?n*g(2,-e,1):n/g(2,e,1),r*=4503599627370496,0<(e=52-e)){for(f(0,r),i=o;7<=i;)f(1e7,0),i-=7;for(f(g(10,i,1),0),i=e-1;23<=i;)h(1<<23),i-=23;h(1<<i),f(1,1),h(2),l=d()}else f(0,r),f(1<<-e,0),l=d()+p.call("0",o);return l=0<o?a+((s=l.length)<=o?"0."+p.call("0",o-s)+l:l.slice(0,s-o)+"."+l.slice(s-o)):a+l}})},{"./_a-number-value":3,"./_export":32,"./_fails":34,"./_string-repeat":105,"./_to-integer":111}],184:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_fails"),n=t("./_a-number-value"),o=1..toPrecision;i(i.P+i.F*(s(function(){return"1"!==o.call(1,undefined)})||!s(function(){o.call({})})),"Number",{toPrecision:function(t){var e=n(this,"Number#toPrecision: incorrect invocation!");return t===undefined?o.call(e):o.call(e,t)}})},{"./_a-number-value":3,"./_export":32,"./_fails":34}],185:[function(t,e,r){"use strict";var i=t("./_export");i(i.S+i.F,"Object",{assign:t("./_object-assign")})},{"./_export":32,"./_object-assign":68}],186:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Object",{create:t("./_object-create")})},{"./_export":32,"./_object-create":69}],187:[function(t,e,r){"use strict";var i=t("./_export");i(i.S+i.F*!t("./_descriptors"),"Object",{defineProperties:t("./_object-dps")})},{"./_descriptors":28,"./_export":32,"./_object-dps":71}],188:[function(t,e,r){"use strict";var i=t("./_export");i(i.S+i.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":28,"./_export":32,"./_object-dp":70}],189:[function(t,e,r){"use strict";var i=t("./_is-object"),s=t("./_meta").onFreeze;t("./_object-sap")("freeze",function(e){return function(t){return e&&i(t)?e(s(t)):t}})},{"./_is-object":50,"./_meta":64,"./_object-sap":81}],190:[function(t,e,r){"use strict";var i=t("./_to-iobject"),s=t("./_object-gopd").f;t("./_object-sap")("getOwnPropertyDescriptor",function(){return function(t,e){return s(i(t),e)}})},{"./_object-gopd":73,"./_object-sap":81,"./_to-iobject":112}],191:[function(t,e,r){"use strict";t("./_object-sap")("getOwnPropertyNames",function(){return t("./_object-gopn-ext").f})},{"./_object-gopn-ext":74,"./_object-sap":81}],192:[function(t,e,r){"use strict";var i=t("./_to-object"),s=t("./_object-gpo");t("./_object-sap")("getPrototypeOf",function(){return function(t){return s(i(t))}})},{"./_object-gpo":77,"./_object-sap":81,"./_to-object":114}],193:[function(t,e,r){"use strict";var i=t("./_is-object");t("./_object-sap")("isExtensible",function(e){return function(t){return!!i(t)&&(!e||e(t))}})},{"./_is-object":50,"./_object-sap":81}],194:[function(t,e,r){"use strict";var i=t("./_is-object");t("./_object-sap")("isFrozen",function(e){return function(t){return!i(t)||!!e&&e(t)}})},{"./_is-object":50,"./_object-sap":81}],195:[function(t,e,r){"use strict";var i=t("./_is-object");t("./_object-sap")("isSealed",function(e){return function(t){return!i(t)||!!e&&e(t)}})},{"./_is-object":50,"./_object-sap":81}],196:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Object",{is:t("./_same-value")})},{"./_export":32,"./_same-value":91}],197:[function(t,e,r){"use strict";var i=t("./_to-object"),s=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return s(i(t))}})},{"./_object-keys":79,"./_object-sap":81,"./_to-object":114}],198:[function(t,e,r){"use strict";var i=t("./_is-object"),s=t("./_meta").onFreeze;t("./_object-sap")("preventExtensions",function(e){return function(t){return e&&i(t)?e(s(t)):t}})},{"./_is-object":50,"./_meta":64,"./_object-sap":81}],199:[function(t,e,r){"use strict";var i=t("./_is-object"),s=t("./_meta").onFreeze;t("./_object-sap")("seal",function(e){return function(t){return e&&i(t)?e(s(t)):t}})},{"./_is-object":50,"./_meta":64,"./_object-sap":81}],200:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Object",{setPrototypeOf:t("./_set-proto").set})},{"./_export":32,"./_set-proto":94}],201:[function(t,e,r){"use strict";var i=t("./_classof"),s={};s[t("./_wks")("toStringTag")]="z",s+""!="[object z]"&&t("./_redefine")(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},{"./_classof":16,"./_redefine":90,"./_wks":124}],202:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_parse-float");i(i.G+i.F*(parseFloat!=s),{parseFloat:s})},{"./_export":32,"./_parse-float":84}],203:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_parse-int");i(i.G+i.F*(parseInt!=s),{parseInt:s})},{"./_export":32,"./_parse-int":85}],204:[function(i,t,e){"use strict";var s,n,o,a,l=i("./_library"),u=i("./_global"),c=i("./_ctx"),p=i("./_classof"),m=i("./_export"),f=i("./_is-object"),h=i("./_a-function"),d=i("./_an-instance"),g=i("./_for-of"),b=i("./_species-constructor"),_=i("./_task").set,y=i("./_microtask")(),v=i("./_new-promise-capability"),x=i("./_perform"),w=i("./_user-agent"),A=i("./_promise-resolve"),E="Promise",j=u.TypeError,O=u.process,S=O&&O.versions,k=S&&S.v8||"",I=u[E],T="process"==p(O),N=function(){},C=n=v.f,D=!!function(){try{var t=I.resolve(1),e=(t.constructor={})[i("./_wks")("species")]=function(t){t(N,N)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(N)instanceof e&&0!==k.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(r){}}(),P=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},R=function(p,r){if(!p._n){p._n=!0;var i=p._c;y(function(){for(var u=p._v,c=1==p._s,t=0,e=function(t){var e,r,i,s=c?t.ok:t.fail,n=t.resolve,o=t.reject,a=t.domain;try{s?(c||(2==p._h&&M(p),p._h=1),!0===s?e=u:(a&&a.enter(),e=s(u),a&&(a.exit(),i=!0)),e===t.promise?o(j("Promise-chain cycle")):(r=P(e))?r.call(e,n,o):n(e)):o(u)}catch(l){a&&!i&&a.exit(),o(l)}};i.length>t;)e(i[t++]);p._c=[],p._n=!1,r&&!p._h&&F(p)})}},F=function(n){_.call(u,function(){var t,e,r,i=n._v,s=L(n);if(s&&(t=x(function(){T?O.emit("unhandledRejection",i,n):(e=u.onunhandledrejection)?e({promise:n,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),n._h=T||L(n)?2:1),n._a=undefined,s&&t.e)throw t.v})},L=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(e){_.call(u,function(){var t;T?O.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},B=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},U=function r(i){var s,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===i)throw j("Promise can't be resolved itself");(s=P(i))?y(function(){var t={_w:n,_d:!1};try{s.call(i,c(r,t,1),c(B,t,1))}catch(e){B.call(t,e)}}):(n._v=i,n._s=1,R(n,!1))}catch(t){B.call({_w:n,_d:!1},t)}}};D||(I=function(t){d(this,I,E,"_h"),h(t),s.call(this);try{t(c(U,this,1),c(B,this,1))}catch(e){B.call(this,e)}},(s=function(t){this._c=[],this._a=undefined,this._s=0,this._d=!1,this._v=undefined,this._h=0,this._n=!1}).prototype=i("./_redefine-all")(I.prototype,{then:function(t,e){var r=C(b(this,I));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=T?O.domain:undefined,this._c.push(r),this._a&&this._a.push(r),this._s&&R(this,!1),r.promise},"catch":function(t){return this.then(undefined,t)}}),o=function(){var t=new s;this.promise=t,this.resolve=c(U,t,1),this.reject=c(B,t,1)},v.f=C=function(t){return t===I||t===a?new o(t):n(t)}),m(m.G+m.W+m.F*!D,{Promise:I}),i("./_set-to-string-tag")(I,E),i("./_set-species")(E),a=i("./_core")[E],m(m.S+m.F*!D,E,{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),m(m.S+m.F*(l||!D),E,{resolve:function(t){return A(l&&this===a?I:this,t)}}),m(m.S+m.F*!(D&&i("./_iter-detect")(function(t){I.all(t)["catch"](N)})),E,{all:function(t){var o=this,e=C(o),a=e.resolve,l=e.reject,r=x(function(){var i=[],s=0,n=1;g(t,!1,function(t){var e=s++,r=!1;i.push(undefined),n++,o.resolve(t).then(function(t){r||(r=!0,i[e]=t,--n||a(i))},l)}),--n||a(i)});return r.e&&l(r.v),e.promise},race:function(t){var e=this,r=C(e),i=r.reject,s=x(function(){g(t,!1,function(t){e.resolve(t).then(r.resolve,i)})});return s.e&&i(s.v),r.promise}})},{"./_a-function":2,"./_an-instance":5,"./_classof":16,"./_core":22,"./_ctx":24,"./_export":32,"./_for-of":38,"./_global":39,"./_is-object":50,"./_iter-detect":55,"./_library":58,"./_microtask":66,"./_new-promise-capability":67,"./_perform":86,"./_promise-resolve":87,"./_redefine-all":89,"./_set-species":95,"./_set-to-string-tag":96,"./_species-constructor":99,"./_task":108,"./_user-agent":120,"./_wks":124}],205:[function(t,e,r){"use strict";var i=t("./_export"),n=t("./_a-function"),o=t("./_an-object"),a=(t("./_global").Reflect||{}).apply,l=Function.apply;i(i.S+i.F*!t("./_fails")(function(){a(function(){})}),"Reflect",{apply:function(t,e,r){var i=n(t),s=o(r);return a?a(i,e,s):l.call(i,e,s)}})},{"./_a-function":2,"./_an-object":6,"./_export":32,"./_fails":34,"./_global":39}],206:[function(t,e,r){"use strict";var i=t("./_export"),a=t("./_object-create"),l=t("./_a-function"),u=t("./_an-object"),c=t("./_is-object"),s=t("./_fails"),p=t("./_bind"),m=(t("./_global").Reflect||{}).construct,f=s(function(){function t(){}return!(m(function(){},[],t)instanceof t)}),h=!s(function(){m(function(){})});i(i.S+i.F*(f||h),"Reflect",{construct:function(t,e){l(t),u(e);var r=arguments.length<3?t:l(arguments[2]);if(h&&!f)return m(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(p.apply(t,i))}var s=r.prototype,n=a(c(s)?s:Object.prototype),o=Function.apply.call(t,n,e);return c(o)?o:n}})},{"./_a-function":2,"./_an-object":6,"./_bind":15,"./_export":32,"./_fails":34,"./_global":39,"./_is-object":50,"./_object-create":69}],207:[function(t,e,r){"use strict";var s=t("./_object-dp"),i=t("./_export"),n=t("./_an-object"),o=t("./_to-primitive");i(i.S+i.F*t("./_fails")(function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,r){n(t),e=o(e,!0),n(r);try{return s.f(t,e,r),!0}catch(i){return!1}}})},{"./_an-object":6,"./_export":32,"./_fails":34,"./_object-dp":70,"./_to-primitive":115}],208:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_object-gopd").f,n=t("./_an-object");i(i.S,"Reflect",{deleteProperty:function(t,e){var r=s(n(t),e);return!(r&&!r.configurable)&&delete t[e]}})},{"./_an-object":6,"./_export":32,"./_object-gopd":73}],209:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_an-object"),n=function(t){this._t=s(t),this._i=0;var e,r=this._k=[];for(e in t)r.push(e)};t("./_iter-create")(n,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:undefined,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),i(i.S,"Reflect",{enumerate:function(t){return new n(t)}})},{"./_an-object":6,"./_export":32,"./_iter-create":53}],210:[function(t,e,r){"use strict";var i=t("./_object-gopd"),s=t("./_export"),n=t("./_an-object");s(s.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(n(t),e)}})},{"./_an-object":6,"./_export":32,"./_object-gopd":73}],211:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_object-gpo"),n=t("./_an-object");i(i.S,"Reflect",{getPrototypeOf:function(t){return s(n(t))}})},{"./_an-object":6,"./_export":32,"./_object-gpo":77}],212:[function(e,r,i){"use strict";var o=e("./_object-gopd"),a=e("./_object-gpo"),l=e("./_has"),s=e("./_export"),u=e("./_is-object"),c=e("./_an-object");s(s.S,"Reflect",{get:function t(e,r){var i,s,n=arguments.length<3?e:arguments[2];return c(e)===n?e[r]:(i=o.f(e,r))?l(i,"value")?i.value:i.get!==undefined?i.get.call(n):undefined:u(s=a(e))?t(s,r,n):void 0}})},{"./_an-object":6,"./_export":32,"./_has":40,"./_is-object":50,"./_object-gopd":73,"./_object-gpo":77}],213:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Reflect",{has:function(t,e){return e in t}})},{"./_export":32}],214:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_an-object"),n=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return s(t),!n||n(t)}})},{"./_an-object":6,"./_export":32}],215:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Reflect",{ownKeys:t("./_own-keys")})},{"./_export":32,"./_own-keys":83}],216:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_an-object"),n=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){s(t);try{return n&&n(t),!0}catch(e){return!1}}})},{"./_an-object":6,"./_export":32}],217:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_set-proto");s&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){s.check(t,e);try{return s.set(t,e),!0}catch(r){return!1}}})},{"./_export":32,"./_set-proto":94}],218:[function(e,r,i){"use strict";var l=e("./_object-dp"),u=e("./_object-gopd"),c=e("./_object-gpo"),p=e("./_has"),s=e("./_export"),m=e("./_property-desc"),f=e("./_an-object"),h=e("./_is-object");s(s.S,"Reflect",{set:function t(e,r,i){var s,n,o=arguments.length<4?e:arguments[3],a=u.f(f(e),r);if(!a){if(h(n=c(e)))return t(n,r,i,o);a=m(0)}if(p(a,"value")){if(!1===a.writable||!h(o))return!1;if(s=u.f(o,r)){if(s.get||s.set||!1===s.writable)return!1;s.value=i,l.f(o,r,s)}else l.f(o,r,m(0,i));return!0}return a.set!==undefined&&(a.set.call(o,i),!0)}})},{"./_an-object":6,"./_export":32,"./_has":40,"./_is-object":50,"./_object-dp":70,"./_object-gopd":73,"./_object-gpo":77,"./_property-desc":88}],219:[function(t,e,r){"use strict";var i=t("./_global"),n=t("./_inherit-if-required"),s=t("./_object-dp").f,o=t("./_object-gopn").f,a=t("./_is-regexp"),l=t("./_flags"),u=i.RegExp,c=u,p=u.prototype,m=/a/g,f=/a/g,h=new u(m)!==m;if(t("./_descriptors")&&(!h||t("./_fails")(function(){return f[t("./_wks")("match")]=!1,u(m)!=m||u(f)==f||"/a/i"!=u(m,"i")}))){u=function(t,e){var r=this instanceof u,i=a(t),s=e===undefined;return!r&&i&&t.constructor===u&&s?t:n(h?new c(i&&!s?t.source:t,e):c((i=t instanceof u)?t.source:t,i&&s?l.call(t):e),r?this:p,u)};for(var d=function(e){e in u||s(u,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})},g=o(c),b=0;g.length>b;)d(g[b++]);(p.constructor=u).prototype=p,t("./_redefine")(i,"RegExp",u)}t("./_set-species")("RegExp")},{"./_descriptors":28,"./_fails":34,"./_flags":36,"./_global":39,"./_inherit-if-required":44,"./_is-regexp":51,"./_object-dp":70,"./_object-gopn":75,"./_redefine":90,"./_set-species":95,"./_wks":124}],220:[function(t,e,r){"use strict";t("./_descriptors")&&"g"!=/./g.flags&&t("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:t("./_flags")})},{"./_descriptors":28,"./_flags":36,"./_object-dp":70}],221:[function(t,e,r){"use strict";t("./_fix-re-wks")("match",1,function(i,s,t){return[function(t){var e=i(this),r=t==undefined?undefined:t[s];return r!==undefined?r.call(t,e):new RegExp(t)[s](String(e))},t]})},{"./_fix-re-wks":35}],222:[function(t,e,r){"use strict";t("./_fix-re-wks")("replace",2,function(s,n,o){return[function(t,e){var r=s(this),i=t==undefined?undefined:t[n];return i!==undefined?i.call(t,r,e):o.call(String(r),t,e)},o]})},{"./_fix-re-wks":35}],223:[function(t,e,r){"use strict";t("./_fix-re-wks")("search",1,function(i,s,t){return[function(t){var e=i(this),r=t==undefined?undefined:t[s];return r!==undefined?r.call(t,e):new RegExp(t)[s](String(e))},t]})},{"./_fix-re-wks":35}],224:[function(e,t,r){"use strict";e("./_fix-re-wks")("split",2,function(s,n,o){var f=e("./_is-regexp"),h=o,d=[].push,t="split",g="length",b="lastIndex";if("c"=="abbc"[t](/(b)*/)[1]||4!="test"[t](/(?:)/,-1)[g]||2!="ab"[t](/(?:ab)*/)[g]||4!="."[t](/(.?)(.?)/)[g]||1<"."[t](/()()/)[g]||""[t](/.?/)[g]){var _=/()??/.exec("")[1]===undefined;o=function(t,e){var r=String(this);if(t===undefined&&0===e)return[];if(!f(t))return h.call(r,t,e);var i,s,n,o,a,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),c=0,p=e===undefined?4294967295:e>>>0,m=new RegExp(t.source,u+"g");for(_||(i=new RegExp("^"+m.source+"$(?!\\s)",u));(s=m.exec(r))&&!(c<(n=s.index+s[0][g])&&(l.push(r.slice(c,s.index)),!_&&1<s[g]&&s[0].replace(i,function(){for(a=1;a<arguments[g]-2;a++)arguments[a]===undefined&&(s[a]=undefined)}),1<s[g]&&s.index<r[g]&&d.apply(l,s.slice(1)),o=s[0][g],c=n,l[g]>=p));)m[b]===s.index&&m[b]++;return c===r[g]?!o&&m.test("")||l.push(""):l.push(r.slice(c)),l[g]>p?l.slice(0,p):l}}else"0"[t](undefined,0)[g]&&(o=function(t,e){return t===undefined&&0===e?[]:h.call(this,t,e)});return[function(t,e){var r=s(this),i=t==undefined?undefined:t[n];return i!==undefined?i.call(t,r,e):o.call(String(r),t,e)},o]})},{"./_fix-re-wks":35,"./_is-regexp":51}],225:[function(e,t,r){"use strict";e("./es6.regexp.flags");var i=e("./_an-object"),s=e("./_flags"),n=e("./_descriptors"),o="toString",a=/./[o],l=function(t){e("./_redefine")(RegExp.prototype,o,t,!0)};e("./_fails")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?l(function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!n&&t instanceof RegExp?s.call(t):undefined)}):a.name!=o&&l(function(){return a.call(this)})},{"./_an-object":6,"./_descriptors":28,"./_fails":34,"./_flags":36,"./_redefine":90,"./es6.regexp.flags":220}],226:[function(t,e,r){"use strict";var i=t("./_collection-strong"),s=t("./_validate-collection");e.exports=t("./_collection")("Set",function(t){return function(){return t(this,0<arguments.length?arguments[0]:undefined)}},{add:function(t){return i.def(s(this,"Set"),t=0===t?0:t,t)}},i)},{"./_collection":21,"./_collection-strong":18,"./_validate-collection":121}],227:[function(t,e,r){"use strict";t("./_string-html")("anchor",function(e){return function(t){return e(this,"a","name",t)}})},{"./_string-html":103}],228:[function(t,e,r){"use strict";t("./_string-html")("big",function(t){return function(){return t(this,"big","","")}})},{"./_string-html":103}],229:[function(t,e,r){"use strict";t("./_string-html")("blink",function(t){return function(){return t(this,"blink","","")}})},{"./_string-html":103}],230:[function(t,e,r){"use strict";t("./_string-html")("bold",function(t){return function(){return t(this,"b","","")}})},{"./_string-html":103}],231:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_string-at")(!1);i(i.P,"String",{codePointAt:function(t){return s(this,t)}})},{"./_export":32,"./_string-at":101}],232:[function(t,e,r){"use strict";var i=t("./_export"),o=t("./_to-length"),a=t("./_string-context"),l="endsWith",u=""[l];i(i.P+i.F*t("./_fails-is-regexp")(l),"String",{endsWith:function(t){var e=a(this,t,l),r=1<arguments.length?arguments[1]:undefined,i=o(e.length),s=r===undefined?i:Math.min(o(r),i),n=String(t);return u?u.call(e,n,s):e.slice(s-n.length,s)===n}})},{"./_export":32,"./_fails-is-regexp":33,"./_string-context":102,"./_to-length":113}],233:[function(t,e,r){"use strict";t("./_string-html")("fixed",function(t){return function(){return t(this,"tt","","")}})},{"./_string-html":103}],234:[function(t,e,r){"use strict";t("./_string-html")("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},{"./_string-html":103}],235:[function(t,e,r){"use strict";t("./_string-html")("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},{"./_string-html":103}],236:[function(t,e,r){"use strict";var i=t("./_export"),n=t("./_to-absolute-index"),o=String.fromCharCode,s=String.fromCodePoint;i(i.S+i.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,r=[],i=arguments.length,s=0;s<i;){if(e=+arguments[s++],n(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},{"./_export":32,"./_to-absolute-index":109}],237:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_string-context"),n="includes";i(i.P+i.F*t("./_fails-is-regexp")(n),"String",{includes:function(t){return!!~s(this,t,n).indexOf(t,1<arguments.length?arguments[1]:undefined)}})},{"./_export":32,"./_fails-is-regexp":33,"./_string-context":102}],238:[function(t,e,r){"use strict";t("./_string-html")("italics",function(t){return function(){return t(this,"i","","")}})},{"./_string-html":103}],239:[function(t,e,r){"use strict";var i=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:undefined,done:!0}:(t=i(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":54,"./_string-at":101}],240:[function(t,e,r){"use strict";t("./_string-html")("link",function(e){return function(t){return e(this,"a","href",t)}})},{"./_string-html":103}],241:[function(t,e,r){"use strict";var i=t("./_export"),o=t("./_to-iobject"),a=t("./_to-length");i(i.S,"String",{raw:function(t){for(var e=o(t.raw),r=a(e.length),i=arguments.length,s=[],n=0;n<r;)s.push(String(e[n++])),n<i&&s.push(String(arguments[n]));return s.join("")}})},{"./_export":32,"./_to-iobject":112,"./_to-length":113}],242:[function(t,e,r){"use strict";var i=t("./_export");i(i.P,"String",{repeat:t("./_string-repeat")})},{"./_export":32,"./_string-repeat":105}],243:[function(t,e,r){"use strict";t("./_string-html")("small",function(t){return function(){return t(this,"small","","")}})},{"./_string-html":103}],244:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_to-length"),n=t("./_string-context"),o="startsWith",a=""[o];i(i.P+i.F*t("./_fails-is-regexp")(o),"String",{startsWith:function(t){var e=n(this,t,o),r=s(Math.min(1<arguments.length?arguments[1]:undefined,e.length)),i=String(t);return a?a.call(e,i,r):e.slice(r,r+i.length)===i}})},{"./_export":32,"./_fails-is-regexp":33,"./_string-context":102,"./_to-length":113}],245:[function(t,e,r){"use strict";t("./_string-html")("strike",function(t){return function(){return t(this,"strike","","")}})},{"./_string-html":103}],246:[function(t,e,r){"use strict";t("./_string-html")("sub",function(t){return function(){return t(this,"sub","","")}})},{"./_string-html":103}],247:[function(t,e,r){"use strict";t("./_string-html")("sup",function(t){return function(){return t(this,"sup","","")}})},{"./_string-html":103}],248:[function(t,e,r){"use strict";t("./_string-trim")("trim",function(t){return function(){return t(this,3)}})},{"./_string-trim":106}],249:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=t("./_global"),o=t("./_has"),n=t("./_descriptors"),a=t("./_export"),l=t("./_redefine"),u=t("./_meta").KEY,c=t("./_fails"),p=t("./_shared"),m=t("./_set-to-string-tag"),f=t("./_uid"),h=t("./_wks"),d=t("./_wks-ext"),g=t("./_wks-define"),b=t("./_enum-keys"),_=t("./_is-array"),y=t("./_an-object"),v=t("./_is-object"),x=t("./_to-iobject"),w=t("./_to-primitive"),A=t("./_property-desc"),E=t("./_object-create"),j=t("./_object-gopn-ext"),O=t("./_object-gopd"),S=t("./_object-dp"),k=t("./_object-keys"),I=O.f,T=S.f,N=j.f,C=s.Symbol,D=s.JSON,P=D&&D.stringify,R="prototype",F=h("_hidden"),L=h("toPrimitive"),M={}.propertyIsEnumerable,B=p("symbol-registry"),U=p("symbols"),z=p("op-symbols"),q=Object[R],$="function"==typeof C,V=s.QObject,G=!V||!V[R]||!V[R].findChild,X=n&&c(function(){return 7!=E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,r){var i=I(q,e);i&&delete q[e],T(t,e,r),i&&t!==q&&T(q,e,i)}:T,W=function(t){var e=U[t]=E(C[R]);return e._k=t,e},H=$&&"symbol"==i(C.iterator)?function(t){return"symbol"==i(t)}:function(t){return t instanceof C},Q=function(t,e,r){return t===q&&Q(z,e,r),y(t),e=w(e,!0),y(r),o(U,e)?(r.enumerable?(o(t,F)&&t[F][e]&&(t[F][e]=!1),r=E(r,{enumerable:A(0,!1)})):(o(t,F)||T(t,F,A(1,{})),t[F][e]=!0),X(t,e,r)):T(t,e,r)},J=function(t,e){y(t);for(var r,i=b(e=x(e)),s=0,n=i.length;s<n;)Q(t,r=i[s++],e[r]);return t},K=function(t){var e=M.call(this,t=w(t,!0));return!(this===q&&o(U,t)&&!o(z,t))&&(!(e||!o(this,t)||!o(U,t)||o(this,F)&&this[F][t])||e)},Y=function(t,e){if(t=x(t),e=w(e,!0),t!==q||!o(U,e)||o(z,e)){var r=I(t,e);return!r||!o(U,e)||o(t,F)&&t[F][e]||(r.enumerable=!0),r}},Z=function(t){for(var e,r=N(x(t)),i=[],s=0;r.length>s;)o(U,e=r[s++])||e==F||e==u||i.push(e);return i},tt=function(t){for(var e,r=t===q,i=N(r?z:x(t)),s=[],n=0;i.length>n;)!o(U,e=i[n++])||r&&!o(q,e)||s.push(U[e]);return s};$||(l((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var r=f(0<arguments.length?arguments[0]:undefined);return n&&G&&X(q,r,{configurable:!0,set:function t(e){this===q&&t.call(z,e),o(this,F)&&o(this[F],r)&&(this[F][r]=!1),X(this,r,A(1,e))}}),W(r)})[R],"toString",function(){return this._k}),O.f=Y,S.f=Q,t("./_object-gopn").f=j.f=Z,t("./_object-pie").f=K,t("./_object-gops").f=tt,n&&!t("./_library")&&l(q,"propertyIsEnumerable",K,!0),d.f=function(t){return W(h(t))}),a(a.G+a.W+a.F*!$,{Symbol:C});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)h(et[rt++]);for(var it=k(h.store),st=0;it.length>st;)g(it[st++]);a(a.S+a.F*!$,"Symbol",{"for":function(t){return o(B,t+="")?B[t]:B[t]=C(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in B)if(B[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!$,"Object",{create:function(t,e){return e===undefined?E(t):J(E(t),e)},defineProperty:Q,defineProperties:J,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),D&&a(a.S+a.F*(!$||c(function(){var t=C();return"[null]"!=P([t])||"{}"!=P({a:t})||"{}"!=P(Object(t))})),"JSON",{stringify:function(t){for(var e,r,i=[t],s=1;arguments.length>s;)i.push(arguments[s++]);if(r=e=i[1],(v(e)||t!==undefined)&&!H(t))return _(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!H(e))return e}),i[1]=e,P.apply(D,i)}}),C[R][L]||t("./_hide")(C[R],L,C[R].valueOf),m(C,"Symbol"),m(Math,"Math",!0),m(s.JSON,"JSON",!0)},{"./_an-object":6,"./_descriptors":28,"./_enum-keys":31,"./_export":32,"./_fails":34,"./_global":39,"./_has":40,"./_hide":41,"./_is-array":48,"./_is-object":50,"./_library":58,"./_meta":64,"./_object-create":69,"./_object-dp":70,"./_object-gopd":73,"./_object-gopn":75,"./_object-gopn-ext":74,"./_object-gops":76,"./_object-keys":79,"./_object-pie":80,"./_property-desc":88,"./_redefine":90,"./_set-to-string-tag":96,"./_shared":98,"./_to-iobject":112,"./_to-primitive":115,"./_uid":119,"./_wks":124,"./_wks-define":122,"./_wks-ext":123}],250:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_typed"),n=t("./_typed-buffer"),u=t("./_an-object"),c=t("./_to-absolute-index"),p=t("./_to-length"),o=t("./_is-object"),a=t("./_global").ArrayBuffer,m=t("./_species-constructor"),f=n.ArrayBuffer,h=n.DataView,l=s.ABV&&a.isView,d=f.prototype.slice,g=s.VIEW,b="ArrayBuffer";i(i.G+i.W+i.F*(a!==f),{ArrayBuffer:f}),i(i.S+i.F*!s.CONSTR,b,{isView:function(t){return l&&l(t)||o(t)&&g in t}}),i(i.P+i.U+i.F*t("./_fails")(function(){return!new f(2).slice(1,undefined).byteLength}),b,{slice:function(t,e){if(d!==undefined&&e===undefined)return d.call(u(this),t);for(var r=u(this).byteLength,i=c(t,r),s=c(e===undefined?r:e,r),n=new(m(this,f))(p(s-i)),o=new h(this),a=new h(n),l=0;i<s;)a.setUint8(l++,o.getUint8(i++));return n}}),t("./_set-species")(b)},{"./_an-object":6,"./_export":32,"./_fails":34,"./_global":39,"./_is-object":50,"./_set-species":95,"./_species-constructor":99,"./_to-absolute-index":109,"./_to-length":113,"./_typed":118,"./_typed-buffer":117}],251:[function(t,e,r){"use strict";var i=t("./_export");i(i.G+i.W+i.F*!t("./_typed").ABV,{DataView:t("./_typed-buffer").DataView})},{"./_export":32,"./_typed":118,"./_typed-buffer":117}],252:[function(t,e,r){"use strict";t("./_typed-array")("Float32",4,function(i){return function(t,e,r){return i(this,t,e,r)}})},{"./_typed-array":116}],253:[function(t,e,r){"use strict";t("./_typed-array")("Float64",8,function(i){return function(t,e,r){return i(this,t,e,r)}})},{"./_typed-array":116}],254:[function(t,e,r){"use strict";t("./_typed-array")("Int16",2,function(i){return function(t,e,r){return i(this,t,e,r)}})},{"./_typed-array":116}],255:[function(t,e,r){"use strict";t("./_typed-array")("Int32",4,function(i){return function(t,e,r){return i(this,t,e,r)}})},{"./_typed-array":116}],256:[function(t,e,r){"use strict";t("./_typed-array")("Int8",1,function(i){return function(t,e,r){return i(this,t,e,r)}})},{"./_typed-array":116}],257:[function(t,e,r){"use strict";t("./_typed-array")("Uint16",2,function(i){return function(t,e,r){return i(this,t,e,r)}})},{"./_typed-array":116}],258:[function(t,e,r){"use strict";t("./_typed-array")("Uint32",4,function(i){return function(t,e,r){return i(this,t,e,r)}})},{"./_typed-array":116}],259:[function(t,e,r){"use strict";t("./_typed-array")("Uint8",1,function(i){return function(t,e,r){return i(this,t,e,r)}})},{"./_typed-array":116}],260:[function(t,e,r){"use strict";t("./_typed-array")("Uint8",1,function(i){return function(t,e,r){return i(this,t,e,r)}},!0)},{"./_typed-array":116}],261:[function(t,e,r){"use strict";var n,i=t("./_array-methods")(0),o=t("./_redefine"),s=t("./_meta"),a=t("./_object-assign"),l=t("./_collection-weak"),u=t("./_is-object"),c=t("./_fails"),p=t("./_validate-collection"),m="WeakMap",f=s.getWeak,h=Object.isExtensible,d=l.ufstore,g={},b=function(t){return function(){return t(this,0<arguments.length?arguments[0]:undefined)}},_={get:function(t){if(u(t)){var e=f(t);return!0===e?d(p(this,m)).get(t):e?e[this._i]:undefined}},set:function(t,e){return l.def(p(this,m),t,e)}},y=e.exports=t("./_collection")(m,b,_,l,!0,!0);c(function(){return 7!=(new y).set((Object.freeze||Object)(g),7).get(g)})&&(a((n=l.getConstructor(b,m)).prototype,_),s.NEED=!0,i(["delete","has","get","set"],function(i){var t=y.prototype,s=t[i];o(t,i,function(t,e){if(u(t)&&!h(t)){this._f||(this._f=new n);var r=this._f[i](t,e);return"set"==i?this:r}return s.call(this,t,e)})}))},{"./_array-methods":11,"./_collection":21,"./_collection-weak":20,"./_fails":34,"./_is-object":50,"./_meta":64,"./_object-assign":68,"./_redefine":90,"./_validate-collection":121}],262:[function(t,e,r){"use strict";var i=t("./_collection-weak"),s=t("./_validate-collection"),n="WeakSet";t("./_collection")(n,function(t){return function(){return t(this,0<arguments.length?arguments[0]:undefined)}},{add:function(t){return i.def(s(this,n),t,!0)}},i,!1,!0)},{"./_collection":21,"./_collection-weak":20,"./_validate-collection":121}],263:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_flatten-into-array"),n=t("./_to-object"),o=t("./_to-length"),a=t("./_a-function"),l=t("./_array-species-create");i(i.P,"Array",{flatMap:function(t){var e,r,i=n(this);return a(t),e=o(i.length),r=l(i,0),s(r,i,i,e,0,1,t,arguments[1]),r}}),t("./_add-to-unscopables")("flatMap")},{"./_a-function":2,"./_add-to-unscopables":4,"./_array-species-create":14,"./_export":32,"./_flatten-into-array":37,"./_to-length":113,"./_to-object":114}],264:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_flatten-into-array"),n=t("./_to-object"),o=t("./_to-length"),a=t("./_to-integer"),l=t("./_array-species-create");i(i.P,"Array",{flatten:function(){var t=arguments[0],e=n(this),r=o(e.length),i=l(e,0);return s(i,e,e,r,0,t===undefined?1:a(t)),i}}),t("./_add-to-unscopables")("flatten")},{"./_add-to-unscopables":4,"./_array-species-create":14,"./_export":32,"./_flatten-into-array":37,"./_to-integer":111,"./_to-length":113,"./_to-object":114}],265:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_array-includes")(!0);i(i.P,"Array",{includes:function(t){return s(this,t,1<arguments.length?arguments[1]:undefined)}}),t("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":4,"./_array-includes":10,"./_export":32}],266:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_microtask")(),n=t("./_global").process,o="process"==t("./_cof")(n);i(i.G,{asap:function(t){var e=o&&n.domain;s(e?e.bind(t):t)}})},{"./_cof":17,"./_export":32,"./_global":39,"./_microtask":66}],267:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_cof");i(i.S,"Error",{isError:function(t){return"Error"===s(t)}})},{"./_cof":17,"./_export":32}],268:[function(t,e,r){"use strict";var i=t("./_export");i(i.G,{global:t("./_global")})},{"./_export":32,"./_global":39}],269:[function(t,e,r){"use strict";t("./_set-collection-from")("Map")},{"./_set-collection-from":92}],270:[function(t,e,r){"use strict";t("./_set-collection-of")("Map")},{"./_set-collection-of":93}],271:[function(t,e,r){"use strict";var i=t("./_export");i(i.P+i.R,"Map",{toJSON:t("./_collection-to-json")("Map")})},{"./_collection-to-json":19,"./_export":32}],272:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{clamp:function(t,e,r){return Math.min(r,Math.max(e,t))}})},{"./_export":32}],273:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{DEG_PER_RAD:Math.PI/180})},{"./_export":32}],274:[function(t,e,r){"use strict";var i=t("./_export"),s=180/Math.PI;i(i.S,"Math",{degrees:function(t){return t*s}})},{"./_export":32}],275:[function(t,e,r){"use strict";var i=t("./_export"),n=t("./_math-scale"),o=t("./_math-fround");i(i.S,"Math",{fscale:function(t,e,r,i,s){return o(n(t,e,r,i,s))}})},{"./_export":32,"./_math-fround":60,"./_math-scale":62}],276:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{iaddh:function(t,e,r,i){var s=t>>>0,n=r>>>0;return(e>>>0)+(i>>>0)+((s&n|(s|n)&~(s+n>>>0))>>>31)|0}})},{"./_export":32}],277:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{imulh:function(t,e){var r=+t,i=+e,s=65535&r,n=65535&i,o=r>>16,a=i>>16,l=(o*n>>>0)+(s*n>>>16);return o*a+(l>>16)+((s*a>>>0)+(65535&l)>>16)}})},{"./_export":32}],278:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{isubh:function(t,e,r,i){var s=t>>>0,n=r>>>0;return(e>>>0)-(i>>>0)-((~s&n|~(s^n)&s-n>>>0)>>>31)|0}})},{"./_export":32}],279:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{RAD_PER_DEG:180/Math.PI})},{"./_export":32}],280:[function(t,e,r){"use strict";var i=t("./_export"),s=Math.PI/180;i(i.S,"Math",{radians:function(t){return t*s}})},{"./_export":32}],281:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{scale:t("./_math-scale")})},{"./_export":32,"./_math-scale":62}],282:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==Infinity:0<t}})},{"./_export":32}],283:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"Math",{umulh:function(t,e){var r=+t,i=+e,s=65535&r,n=65535&i,o=r>>>16,a=i>>>16,l=(o*n>>>0)+(s*n>>>16);return o*a+(l>>>16)+((s*a>>>0)+(65535&l)>>>16)}})},{"./_export":32}],284:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_to-object"),n=t("./_a-function"),o=t("./_object-dp");t("./_descriptors")&&i(i.P+t("./_object-forced-pam"),"Object",{__defineGetter__:function(t,e){o.f(s(this),t,{get:n(e),enumerable:!0,configurable:!0})}})},{"./_a-function":2,"./_descriptors":28,"./_export":32,"./_object-dp":70,"./_object-forced-pam":72,"./_to-object":114}],285:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_to-object"),n=t("./_a-function"),o=t("./_object-dp");t("./_descriptors")&&i(i.P+t("./_object-forced-pam"),"Object",{__defineSetter__:function(t,e){o.f(s(this),t,{set:n(e),enumerable:!0,configurable:!0})}})},{"./_a-function":2,"./_descriptors":28,"./_export":32,"./_object-dp":70,"./_object-forced-pam":72,"./_to-object":114}],286:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_object-to-array")(!0);i(i.S,"Object",{entries:function(t){return s(t)}})},{"./_export":32,"./_object-to-array":82}],287:[function(t,e,r){"use strict";var i=t("./_export"),l=t("./_own-keys"),u=t("./_to-iobject"),c=t("./_object-gopd"),p=t("./_create-property");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,r,i=u(t),s=c.f,n=l(i),o={},a=0;n.length>a;)(r=s(i,e=n[a++]))!==undefined&&p(o,e,r);return o}})},{"./_create-property":23,"./_export":32,"./_object-gopd":73,"./_own-keys":83,"./_to-iobject":112}],288:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_to-object"),n=t("./_to-primitive"),o=t("./_object-gpo"),a=t("./_object-gopd").f;t("./_descriptors")&&i(i.P+t("./_object-forced-pam"),"Object",{__lookupGetter__:function(t){var e,r=s(this),i=n(t,!0);do{if(e=a(r,i))return e.get}while(r=o(r))}})},{"./_descriptors":28,"./_export":32,"./_object-forced-pam":72,"./_object-gopd":73,"./_object-gpo":77,"./_to-object":114,"./_to-primitive":115}],289:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_to-object"),n=t("./_to-primitive"),o=t("./_object-gpo"),a=t("./_object-gopd").f;t("./_descriptors")&&i(i.P+t("./_object-forced-pam"),"Object",{__lookupSetter__:function(t){var e,r=s(this),i=n(t,!0);do{if(e=a(r,i))return e.set}while(r=o(r))}})},{"./_descriptors":28,"./_export":32,"./_object-forced-pam":72,"./_object-gopd":73,"./_object-gpo":77,"./_to-object":114,"./_to-primitive":115}],290:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_object-to-array")(!1);i(i.S,"Object",{values:function(t){return s(t)}})},{"./_export":32,"./_object-to-array":82}],291:[function(t,e,r){"use strict";var i=t("./_export"),n=t("./_global"),o=t("./_core"),s=t("./_microtask")(),a=t("./_wks")("observable"),l=t("./_a-function"),u=t("./_an-object"),c=t("./_an-instance"),p=t("./_redefine-all"),m=t("./_hide"),f=t("./_for-of"),h=f.RETURN,d=function(t){return null==t?undefined:l(t)},g=function(t){var e=t._c;e&&(t._c=undefined,e())},b=function(t){return t._o===undefined},_=function(t){b(t)||(t._o=undefined,g(t))},y=function(t,e){u(t),this._c=undefined,this._o=t,t=new v(this);try{var r=e(t),i=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){i.unsubscribe()}:l(r),this._c=r)}catch(s){return void t.error(s)}b(this)&&g(this)};y.prototype=p({},{unsubscribe:function(){_(this)}});var v=function(t){this._s=t};v.prototype=p({},{next:function(t){var e=this._s;if(!b(e)){var r=e._o;try{var i=d(r.next);if(i)return i.call(r,t)}catch(s){try{_(e)}finally{throw s}}}},error:function(t){var e=this._s;if(b(e))throw t;var r=e._o;e._o=undefined;try{var i=d(r.error);if(!i)throw t;t=i.call(r,t)}catch(s){try{g(e)}finally{throw s}}return g(e),t},complete:function(t){var e=this._s;if(!b(e)){var r=e._o;e._o=undefined;try{var i=d(r.complete);t=i?i.call(r,t):undefined}catch(s){try{g(e)}finally{throw s}}return g(e),t}}});var x=function(t){c(this,x,"Observable","_f")._f=l(t)};p(x.prototype,{subscribe:function(t){return new y(t,this._f)},forEach:function(s){var e=this;return new(o.Promise||n.Promise)(function(t,r){l(s);var i=e.subscribe({next:function(t){try{return s(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t})})}}),p(x,{from:function(i){var t="function"==typeof this?this:x,e=d(u(i)[a]);if(e){var r=u(e.call(i));return r.constructor===t?r:new t(function(t){return r.subscribe(t)})}return new t(function(e){var r=!1;return s(function(){if(!r){try{if(f(i,!1,function(t){if(e.next(t),r)return h})===h)return}catch(t){if(r)throw t;return void e.error(t)}e.complete()}}),function(){r=!0}})},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t<e;)i[t]=arguments[t++];return new("function"==typeof this?this:x)(function(e){var r=!1;return s(function(){if(!r){for(var t=0;t<i.length;++t)if(e.next(i[t]),r)return;e.complete()}}),function(){r=!0}})}}),m(x.prototype,a,function(){return this}),i(i.G,{Observable:x}),t("./_set-species")("Observable")},{"./_a-function":2,"./_an-instance":5,"./_an-object":6,"./_core":22,"./_export":32,"./_for-of":38,"./_global":39,"./_hide":41,"./_microtask":66,"./_redefine-all":89,"./_set-species":95,"./_wks":124}],292:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_core"),n=t("./_global"),o=t("./_species-constructor"),a=t("./_promise-resolve");i(i.P+i.R,"Promise",{"finally":function(e){var r=o(this,s.Promise||n.Promise),t="function"==typeof e;return this.then(t?function(t){return a(r,e()).then(function(){return t})}:e,t?function(t){return a(r,e()).then(function(){throw t})}:e)}})},{"./_core":22,"./_export":32,"./_global":39,"./_promise-resolve":87,"./_species-constructor":99}],293:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_new-promise-capability"),n=t("./_perform");i(i.S,"Promise",{"try":function(t){var e=s.f(this),r=n(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},{"./_export":32,"./_new-promise-capability":67,"./_perform":86}],294:[function(t,e,r){"use strict";var i=t("./_metadata"),s=t("./_an-object"),n=i.key,o=i.set;i.exp({defineMetadata:function(t,e,r,i){o(t,e,s(r),n(i))}})},{"./_an-object":6,"./_metadata":65}],295:[function(t,e,r){"use strict";var i=t("./_metadata"),n=t("./_an-object"),o=i.key,a=i.map,l=i.store;i.exp({deleteMetadata:function(t,e){var r=arguments.length<3?undefined:o(arguments[2]),i=a(n(e),r,!1);if(i===undefined||!i["delete"](t))return!1;if(i.size)return!0;var s=l.get(e);return s["delete"](r),!!s.size||l["delete"](e)}})},{"./_an-object":6,"./_metadata":65}],296:[function(t,e,r){"use strict";var o=t("./es6.set"),a=t("./_array-from-iterable"),i=t("./_metadata"),s=t("./_an-object"),l=t("./_object-gpo"),u=i.keys,n=i.key;i.exp({getMetadataKeys:function(e){return function t(e,r){var i=u(e,r),s=l(e);if(null===s)return i;var n=t(s,r);return n.length?i.length?a(new o(i.concat(n))):n:i}(s(e),arguments.length<2?undefined:n(arguments[1]))}})},{"./_an-object":6,"./_array-from-iterable":9,"./_metadata":65,"./_object-gpo":77,"./es6.set":226}],297:[function(t,e,r){"use strict";var i=t("./_metadata"),s=t("./_an-object"),n=t("./_object-gpo"),o=i.has,a=i.get,l=i.key;i.exp({getMetadata:function(e,r){return function t(e,r,i){if(o(e,r,i))return a(e,r,i);var s=n(r);return null!==s?t(e,s,i):undefined}(e,s(r),arguments.length<3?undefined:l(arguments[2]))}})},{"./_an-object":6,"./_metadata":65,"./_object-gpo":77}],298:[function(t,e,r){"use strict";var i=t("./_metadata"),s=t("./_an-object"),n=i.keys,o=i.key;i.exp({getOwnMetadataKeys:function(t){return n(s(t),arguments.length<2?undefined:o(arguments[1]))}})},{"./_an-object":6,"./_metadata":65}],299:[function(t,e,r){"use strict";var i=t("./_metadata"),s=t("./_an-object"),n=i.get,o=i.key;i.exp({getOwnMetadata:function(t,e){return n(t,s(e),arguments.length<3?undefined:o(arguments[2]))}})},{"./_an-object":6,"./_metadata":65}],300:[function(t,e,r){"use strict";var i=t("./_metadata"),s=t("./_an-object"),n=t("./_object-gpo"),o=i.has,a=i.key;i.exp({hasMetadata:function(e,r){return function t(e,r,i){if(o(e,r,i))return!0;var s=n(r);return null!==s&&t(e,s,i)}(e,s(r),arguments.length<3?undefined:a(arguments[2]))}})},{"./_an-object":6,"./_metadata":65,"./_object-gpo":77}],301:[function(t,e,r){"use strict";var i=t("./_metadata"),s=t("./_an-object"),n=i.has,o=i.key;i.exp({hasOwnMetadata:function(t,e){return n(t,s(e),arguments.length<3?undefined:o(arguments[2]))}})},{"./_an-object":6,"./_metadata":65}],302:[function(t,e,r){"use strict";var i=t("./_metadata"),s=t("./_an-object"),n=t("./_a-function"),o=i.key,a=i.set;i.exp({metadata:function(r,i){return function(t,e){a(r,i,(e!==undefined?s:n)(t),o(e))}}})},{"./_a-function":2,"./_an-object":6,"./_metadata":65}],303:[function(t,e,r){"use strict";t("./_set-collection-from")("Set")},{"./_set-collection-from":92}],304:[function(t,e,r){"use strict";t("./_set-collection-of")("Set")},{"./_set-collection-of":93}],305:[function(t,e,r){"use strict";var i=t("./_export");i(i.P+i.R,"Set",{toJSON:t("./_collection-to-json")("Set")})},{"./_collection-to-json":19,"./_export":32}],306:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_string-at")(!0);i(i.P,"String",{at:function(t){return s(this,t)}})},{"./_export":32,"./_string-at":101}],307:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_defined"),n=t("./_to-length"),o=t("./_is-regexp"),a=t("./_flags"),l=RegExp.prototype,u=function(t,e){this._r=t,this._s=e};t("./_iter-create")(u,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),i(i.P,"String",{matchAll:function(t){if(s(this),!o(t))throw TypeError(t+" is not a regexp!");var e=String(this),r="flags"in l?String(t.flags):a.call(t),i=new RegExp(t.source,~r.indexOf("g")?r:"g"+r);return i.lastIndex=n(t.lastIndex),new u(i,e)}})},{"./_defined":27,"./_export":32,"./_flags":36,"./_is-regexp":51,"./_iter-create":53,"./_to-length":113}],308:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_string-pad"),n=t("./_user-agent");i(i.P+i.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(n),"String",{padEnd:function(t){return s(this,t,1<arguments.length?arguments[1]:undefined,!1)}})},{"./_export":32,"./_string-pad":104,"./_user-agent":120}],309:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_string-pad"),n=t("./_user-agent");i(i.P+i.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(n),"String",{padStart:function(t){return s(this,t,1<arguments.length?arguments[1]:undefined,!0)}})},{"./_export":32,"./_string-pad":104,"./_user-agent":120}],310:[function(t,e,r){"use strict";t("./_string-trim")("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},{"./_string-trim":106}],311:[function(t,e,r){"use strict";t("./_string-trim")("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},{"./_string-trim":106}],312:[function(t,e,r){"use strict";t("./_wks-define")("asyncIterator")},{"./_wks-define":122}],313:[function(t,e,r){"use strict";t("./_wks-define")("observable")},{"./_wks-define":122}],314:[function(t,e,r){"use strict";var i=t("./_export");i(i.S,"System",{global:t("./_global")})},{"./_export":32,"./_global":39}],315:[function(t,e,r){"use strict";t("./_set-collection-from")("WeakMap")},{"./_set-collection-from":92}],316:[function(t,e,r){"use strict";t("./_set-collection-of")("WeakMap")},{"./_set-collection-of":93}],317:[function(t,e,r){"use strict";t("./_set-collection-from")("WeakSet")},{"./_set-collection-from":92}],318:[function(t,e,r){"use strict";t("./_set-collection-of")("WeakSet")},{"./_set-collection-of":93}],319:[function(t,e,r){"use strict";for(var i=t("./es6.array.iterator"),s=t("./_object-keys"),n=t("./_redefine"),o=t("./_global"),a=t("./_hide"),l=t("./_iterators"),u=t("./_wks"),c=u("iterator"),p=u("toStringTag"),m=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=s(f),d=0;d<h.length;d++){var g,b=h[d],_=f[b],y=o[b],v=y&&y.prototype;if(v&&(v[c]||a(v,c,m),v[p]||a(v,p,b),l[b]=m,_))for(g in i)v[g]||n(v,g,i[g],!0)}},{"./_global":39,"./_hide":41,"./_iterators":57,"./_object-keys":79,"./_redefine":90,"./_wks":124,"./es6.array.iterator":136}],320:[function(t,e,r){"use strict";var i=t("./_export"),s=t("./_task");i(i.G+i.B,{setImmediate:s.set,clearImmediate:s.clear})},{"./_export":32,"./_task":108}],321:[function(t,e,r){"use strict";var i=t("./_global"),s=t("./_export"),n=t("./_user-agent"),o=[].slice,a=/MSIE .\./.test(n),l=function(s){return function(t,e){var r=2<arguments.length,i=!!r&&o.call(arguments,2);return s(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,e)}};s(s.G+s.B+s.F*a,{setTimeout:l(i.setTimeout),setInterval:l(i.setInterval)})},{"./_export":32,"./_global":39,"./_user-agent":120}],322:[function(t,e,r){"use strict";t("./modules/es6.symbol"),t("./modules/es6.object.create"),t("./modules/es6.object.define-property"),t("./modules/es6.object.define-properties"),t("./modules/es6.object.get-own-property-descriptor"),t("./modules/es6.object.get-prototype-of"),t("./modules/es6.object.keys"),t("./modules/es6.object.get-own-property-names"),t("./modules/es6.object.freeze"),t("./modules/es6.object.seal"),t("./modules/es6.object.prevent-extensions"),t("./modules/es6.object.is-frozen"),t("./modules/es6.object.is-sealed"),t("./modules/es6.object.is-extensible"),t("./modules/es6.object.assign"),t("./modules/es6.object.is"),t("./modules/es6.object.set-prototype-of"),t("./modules/es6.object.to-string"),t("./modules/es6.function.bind"),t("./modules/es6.function.name"),t("./modules/es6.function.has-instance"),t("./modules/es6.parse-int"),t("./modules/es6.parse-float"),t("./modules/es6.number.constructor"),t("./modules/es6.number.to-fixed"),t("./modules/es6.number.to-precision"),t("./modules/es6.number.epsilon"),t("./modules/es6.number.is-finite"),t("./modules/es6.number.is-integer"),t("./modules/es6.number.is-nan"),t("./modules/es6.number.is-safe-integer"),t("./modules/es6.number.max-safe-integer"),t("./modules/es6.number.min-safe-integer"),t("./modules/es6.number.parse-float"),t("./modules/es6.number.parse-int"),t("./modules/es6.math.acosh"),t("./modules/es6.math.asinh"),t("./modules/es6.math.atanh"),t("./modules/es6.math.cbrt"),t("./modules/es6.math.clz32"),t("./modules/es6.math.cosh"),t("./modules/es6.math.expm1"),t("./modules/es6.math.fround"),t("./modules/es6.math.hypot"),t("./modules/es6.math.imul"),t("./modules/es6.math.log10"),t("./modules/es6.math.log1p"),t("./modules/es6.math.log2"),t("./modules/es6.math.sign"),t("./modules/es6.math.sinh"),t("./modules/es6.math.tanh"),t("./modules/es6.math.trunc"),t("./modules/es6.string.from-code-point"),t("./modules/es6.string.raw"),t("./modules/es6.string.trim"),t("./modules/es6.string.iterator"),t("./modules/es6.string.code-point-at"),t("./modules/es6.string.ends-with"),t("./modules/es6.string.includes"),t("./modules/es6.string.repeat"),t("./modules/es6.string.starts-with"),t("./modules/es6.string.anchor"),t("./modules/es6.string.big"),t("./modules/es6.string.blink"),t("./modules/es6.string.bold"),t("./modules/es6.string.fixed"),t("./modules/es6.string.fontcolor"),t("./modules/es6.string.fontsize"),t("./modules/es6.string.italics"),t("./modules/es6.string.link"),t("./modules/es6.string.small"),t("./modules/es6.string.strike"),t("./modules/es6.string.sub"),t("./modules/es6.string.sup"),t("./modules/es6.date.now"),t("./modules/es6.date.to-json"),t("./modules/es6.date.to-iso-string"),t("./modules/es6.date.to-string"),t("./modules/es6.date.to-primitive"),t("./modules/es6.array.is-array"),t("./modules/es6.array.from"),t("./modules/es6.array.of"),t("./modules/es6.array.join"),t("./modules/es6.array.slice"),t("./modules/es6.array.sort"),t("./modules/es6.array.for-each"),t("./modules/es6.array.map"),t("./modules/es6.array.filter"),t("./modules/es6.array.some"),t("./modules/es6.array.every"),t("./modules/es6.array.reduce"),t("./modules/es6.array.reduce-right"),t("./modules/es6.array.index-of"),t("./modules/es6.array.last-index-of"),t("./modules/es6.array.copy-within"),t("./modules/es6.array.fill"),t("./modules/es6.array.find"),t("./modules/es6.array.find-index"),t("./modules/es6.array.species"),t("./modules/es6.array.iterator"),t("./modules/es6.regexp.constructor"),t("./modules/es6.regexp.to-string"),t("./modules/es6.regexp.flags"),t("./modules/es6.regexp.match"),t("./modules/es6.regexp.replace"),t("./modules/es6.regexp.search"),t("./modules/es6.regexp.split"),t("./modules/es6.promise"),t("./modules/es6.map"),t("./modules/es6.set"),t("./modules/es6.weak-map"),t("./modules/es6.weak-set"),t("./modules/es6.typed.array-buffer"),t("./modules/es6.typed.data-view"),t("./modules/es6.typed.int8-array"),t("./modules/es6.typed.uint8-array"),t("./modules/es6.typed.uint8-clamped-array"),t("./modules/es6.typed.int16-array"),t("./modules/es6.typed.uint16-array"),t("./modules/es6.typed.int32-array"),t("./modules/es6.typed.uint32-array"),t("./modules/es6.typed.float32-array"),t("./modules/es6.typed.float64-array"),t("./modules/es6.reflect.apply"),t("./modules/es6.reflect.construct"),t("./modules/es6.reflect.define-property"),t("./modules/es6.reflect.delete-property"),t("./modules/es6.reflect.enumerate"),t("./modules/es6.reflect.get"),t("./modules/es6.reflect.get-own-property-descriptor"),t("./modules/es6.reflect.get-prototype-of"),t("./modules/es6.reflect.has"),t("./modules/es6.reflect.is-extensible"),t("./modules/es6.reflect.own-keys"),t("./modules/es6.reflect.prevent-extensions"),t("./modules/es6.reflect.set"),t("./modules/es6.reflect.set-prototype-of"),t("./modules/es7.array.includes"),t("./modules/es7.array.flat-map"),t("./modules/es7.array.flatten"),t("./modules/es7.string.at"),t("./modules/es7.string.pad-start"),t("./modules/es7.string.pad-end"),t("./modules/es7.string.trim-left"),t("./modules/es7.string.trim-right"),t("./modules/es7.string.match-all"),t("./modules/es7.symbol.async-iterator"),t("./modules/es7.symbol.observable"),t("./modules/es7.object.get-own-property-descriptors"),t("./modules/es7.object.values"),t("./modules/es7.object.entries"),t("./modules/es7.object.define-getter"),t("./modules/es7.object.define-setter"),t("./modules/es7.object.lookup-getter"),t("./modules/es7.object.lookup-setter"),t("./modules/es7.map.to-json"),t("./modules/es7.set.to-json"),t("./modules/es7.map.of"),t("./modules/es7.set.of"),t("./modules/es7.weak-map.of"),t("./modules/es7.weak-set.of"),t("./modules/es7.map.from"),t("./modules/es7.set.from"),t("./modules/es7.weak-map.from"),t("./modules/es7.weak-set.from"),t("./modules/es7.global"),t("./modules/es7.system.global"),t("./modules/es7.error.is-error"),t("./modules/es7.math.clamp"),t("./modules/es7.math.deg-per-rad"),t("./modules/es7.math.degrees"),t("./modules/es7.math.fscale"),t("./modules/es7.math.iaddh"),t("./modules/es7.math.isubh"),t("./modules/es7.math.imulh"),t("./modules/es7.math.rad-per-deg"),t("./modules/es7.math.radians"),t("./modules/es7.math.scale"),t("./modules/es7.math.umulh"),t("./modules/es7.math.signbit"),t("./modules/es7.promise.finally"),t("./modules/es7.promise.try"),t("./modules/es7.reflect.define-metadata"),t("./modules/es7.reflect.delete-metadata"),t("./modules/es7.reflect.get-metadata"),t("./modules/es7.reflect.get-metadata-keys"),t("./modules/es7.reflect.get-own-metadata"),t("./modules/es7.reflect.get-own-metadata-keys"),t("./modules/es7.reflect.has-metadata"),t("./modules/es7.reflect.has-own-metadata"),t("./modules/es7.reflect.metadata"),t("./modules/es7.asap"),t("./modules/es7.observable"),t("./modules/web.timers"),t("./modules/web.immediate"),t("./modules/web.dom.iterable"),e.exports=t("./modules/_core")},{"./modules/_core":22,"./modules/es6.array.copy-within":126,"./modules/es6.array.every":127,"./modules/es6.array.fill":128,"./modules/es6.array.filter":129,"./modules/es6.array.find":131,"./modules/es6.array.find-index":130,"./modules/es6.array.for-each":132,"./modules/es6.array.from":133,"./modules/es6.array.index-of":134,"./modules/es6.array.is-array":135,"./modules/es6.array.iterator":136,"./modules/es6.array.join":137,"./modules/es6.array.last-index-of":138,"./modules/es6.array.map":139,"./modules/es6.array.of":140,"./modules/es6.array.reduce":142,"./modules/es6.array.reduce-right":141,"./modules/es6.array.slice":143,"./modules/es6.array.some":144,"./modules/es6.array.sort":145,"./modules/es6.array.species":146,"./modules/es6.date.now":147,"./modules/es6.date.to-iso-string":148,"./modules/es6.date.to-json":149,"./modules/es6.date.to-primitive":150,"./modules/es6.date.to-string":151,"./modules/es6.function.bind":152,"./modules/es6.function.has-instance":153,"./modules/es6.function.name":154,"./modules/es6.map":155,"./modules/es6.math.acosh":156,"./modules/es6.math.asinh":157,"./modules/es6.math.atanh":158,"./modules/es6.math.cbrt":159,"./modules/es6.math.clz32":160,"./modules/es6.math.cosh":161,"./modules/es6.math.expm1":162,"./modules/es6.math.fround":163,"./modules/es6.math.hypot":164,"./modules/es6.math.imul":165,"./modules/es6.math.log10":166,"./modules/es6.math.log1p":167,"./modules/es6.math.log2":168,"./modules/es6.math.sign":169,"./modules/es6.math.sinh":170,"./modules/es6.math.tanh":171,"./modules/es6.math.trunc":172,"./modules/es6.number.constructor":173,"./modules/es6.number.epsilon":174,"./modules/es6.number.is-finite":175,"./modules/es6.number.is-integer":176,"./modules/es6.number.is-nan":177,"./modules/es6.number.is-safe-integer":178,"./modules/es6.number.max-safe-integer":179,"./modules/es6.number.min-safe-integer":180,"./modules/es6.number.parse-float":181,"./modules/es6.number.parse-int":182,"./modules/es6.number.to-fixed":183,"./modules/es6.number.to-precision":184,"./modules/es6.object.assign":185,"./modules/es6.object.create":186,"./modules/es6.object.define-properties":187,"./modules/es6.object.define-property":188,"./modules/es6.object.freeze":189,"./modules/es6.object.get-own-property-descriptor":190,"./modules/es6.object.get-own-property-names":191,"./modules/es6.object.get-prototype-of":192,"./modules/es6.object.is":196,"./modules/es6.object.is-extensible":193,"./modules/es6.object.is-frozen":194,"./modules/es6.object.is-sealed":195,"./modules/es6.object.keys":197,"./modules/es6.object.prevent-extensions":198,"./modules/es6.object.seal":199,"./modules/es6.object.set-prototype-of":200,"./modules/es6.object.to-string":201,"./modules/es6.parse-float":202,"./modules/es6.parse-int":203,"./modules/es6.promise":204,"./modules/es6.reflect.apply":205,"./modules/es6.reflect.construct":206,"./modules/es6.reflect.define-property":207,"./modules/es6.reflect.delete-property":208,"./modules/es6.reflect.enumerate":209,"./modules/es6.reflect.get":212,"./modules/es6.reflect.get-own-property-descriptor":210,"./modules/es6.reflect.get-prototype-of":211,"./modules/es6.reflect.has":213,"./modules/es6.reflect.is-extensible":214,"./modules/es6.reflect.own-keys":215,"./modules/es6.reflect.prevent-extensions":216,"./modules/es6.reflect.set":218,"./modules/es6.reflect.set-prototype-of":217,"./modules/es6.regexp.constructor":219,"./modules/es6.regexp.flags":220,"./modules/es6.regexp.match":221,"./modules/es6.regexp.replace":222,"./modules/es6.regexp.search":223,"./modules/es6.regexp.split":224,"./modules/es6.regexp.to-string":225,"./modules/es6.set":226,"./modules/es6.string.anchor":227,"./modules/es6.string.big":228,"./modules/es6.string.blink":229,"./modules/es6.string.bold":230,"./modules/es6.string.code-point-at":231,"./modules/es6.string.ends-with":232,"./modules/es6.string.fixed":233,"./modules/es6.string.fontcolor":234,"./modules/es6.string.fontsize":235,"./modules/es6.string.from-code-point":236,"./modules/es6.string.includes":237,"./modules/es6.string.italics":238,"./modules/es6.string.iterator":239,"./modules/es6.string.link":240,"./modules/es6.string.raw":241,"./modules/es6.string.repeat":242,"./modules/es6.string.small":243,"./modules/es6.string.starts-with":244,"./modules/es6.string.strike":245,"./modules/es6.string.sub":246,"./modules/es6.string.sup":247,"./modules/es6.string.trim":248,"./modules/es6.symbol":249,"./modules/es6.typed.array-buffer":250,"./modules/es6.typed.data-view":251,"./modules/es6.typed.float32-array":252,"./modules/es6.typed.float64-array":253,"./modules/es6.typed.int16-array":254,"./modules/es6.typed.int32-array":255,"./modules/es6.typed.int8-array":256,"./modules/es6.typed.uint16-array":257,"./modules/es6.typed.uint32-array":258,"./modules/es6.typed.uint8-array":259,"./modules/es6.typed.uint8-clamped-array":260,"./modules/es6.weak-map":261,"./modules/es6.weak-set":262,"./modules/es7.array.flat-map":263,"./modules/es7.array.flatten":264,"./modules/es7.array.includes":265,"./modules/es7.asap":266,"./modules/es7.error.is-error":267,"./modules/es7.global":268,"./modules/es7.map.from":269,"./modules/es7.map.of":270,"./modules/es7.map.to-json":271,"./modules/es7.math.clamp":272,"./modules/es7.math.deg-per-rad":273,"./modules/es7.math.degrees":274,"./modules/es7.math.fscale":275,"./modules/es7.math.iaddh":276,"./modules/es7.math.imulh":277,"./modules/es7.math.isubh":278,"./modules/es7.math.rad-per-deg":279,"./modules/es7.math.radians":280,"./modules/es7.math.scale":281,"./modules/es7.math.signbit":282,"./modules/es7.math.umulh":283,"./modules/es7.object.define-getter":284,"./modules/es7.object.define-setter":285,"./modules/es7.object.entries":286,"./modules/es7.object.get-own-property-descriptors":287,"./modules/es7.object.lookup-getter":288,"./modules/es7.object.lookup-setter":289,"./modules/es7.object.values":290,"./modules/es7.observable":291,"./modules/es7.promise.finally":292,"./modules/es7.promise.try":293,"./modules/es7.reflect.define-metadata":294,"./modules/es7.reflect.delete-metadata":295,"./modules/es7.reflect.get-metadata":297,"./modules/es7.reflect.get-metadata-keys":296,"./modules/es7.reflect.get-own-metadata":299,"./modules/es7.reflect.get-own-metadata-keys":298,"./modules/es7.reflect.has-metadata":300,"./modules/es7.reflect.has-own-metadata":301,"./modules/es7.reflect.metadata":302,"./modules/es7.set.from":303,"./modules/es7.set.of":304,"./modules/es7.set.to-json":305,"./modules/es7.string.at":306,"./modules/es7.string.match-all":307,"./modules/es7.string.pad-end":308,"./modules/es7.string.pad-start":309,"./modules/es7.string.trim-left":310,"./modules/es7.string.trim-right":311,"./modules/es7.symbol.async-iterator":312,"./modules/es7.symbol.observable":313,"./modules/es7.system.global":314,"./modules/es7.weak-map.from":315,"./modules/es7.weak-map.of":316,"./modules/es7.weak-set.from":317,"./modules/es7.weak-set.of":318,"./modules/web.dom.iterable":319,"./modules/web.immediate":320,"./modules/web.timers":321}],323:[function(t,e,r){"use strict";function W(t){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i,s,n,o,a,l,u,c,p,wt={PROCESSOR_VERSION:"1.1.206",CONDITION_LEVEL_TOP:1,CONDITION_LEVEL_BOTTOM:2,PLAIN_HYPHEN_REGEX:/(?:[^\\]-|\u2013)/,LOCATOR_LABELS_REGEXP:new RegExp("^((art|ch|subch|col|fig|l|n|no|op|p|pp|para|subpara|pt|r|sec|subsec|sv|sch|tit|vrs|vol)\\.)\\s+(.*)"),STATUTE_SUBDIV_GROUPED_REGEX:/((?:^| )(?:art|bk|ch|subch|col|fig|fol|l|n|no|op|p|pp|para|subpara|pt|r|sec|subsec|sv|sch|tit|vrs|vol)\. *)/g,STATUTE_SUBDIV_PLAIN_REGEX:/(?:(?:^| )(?:art|bk|ch|subch|col|fig|fol|l|n|no|op|p|pp|para|subpara|pt|r|sec|subsec|sv|sch|tit|vrs|vol)\. *)/,STATUTE_SUBDIV_PLAIN_REGEX_FRONT:/(?:^\s*[.,;]*\s*(?:art|bk|ch|subch|col|fig|fol|l|n|no|op|p|pp|para|subpara|pt|r|sec|subsec|sv|sch|tit|vrs|vol)\. *)/,STATUTE_SUBDIV_STRINGS:{"art.":"article","bk.":"book","ch.":"chapter","subch.":"subchapter","p.":"page","pp.":"page","para.":"paragraph","subpara.":"subparagraph","pt.":"part","r.":"rule","sec.":"section","subsec.":"subsection","sch.":"schedule","tit.":"title","col.":"column","fig.":"figure","fol.":"folio","l.":"line","n.":"note","no.":"issue","op.":"opus","sv.":"sub-verbo","vrs.":"verse","vol.":"volume"},STATUTE_SUBDIV_STRINGS_REVERSE:{article:"art.",book:"bk.",chapter:"ch.",subchapter:"subch.",page:"p.",paragraph:"para.",subparagraph:"subpara.",part:"pt.",rule:"r.",section:"sec.",subsection:"subsec.",schedule:"sch.",title:"tit.",column:"col.",figure:"fig.",folio:"fol.",line:"l.",note:"n.",issue:"no.",opus:"op.","sub-verbo":"sv.","sub verbo":"sv.",verse:"vrs.",volume:"vol."},LOCATOR_LABELS_MAP:{art:"article",bk:"book",ch:"chapter",subch:"subchapter",col:"column",fig:"figure",fol:"folio",l:"line",n:"note",no:"issue",op:"opus",p:"page",pp:"page",para:"paragraph",subpara:"subparagraph",pt:"part",r:"rule",sec:"section",subsec:"subsection",sv:"sub-verbo",sch:"schedule",tit:"title",vrs:"verse",vol:"volume"},MODULE_MACROS:{"juris-pretitle":!0,"juris-title":!0,"juris-pretitle-short":!0,"juris-title-short":!0,"juris-main":!0,"juris-main-short":!0,"juris-tail":!0,"juris-tail-short":!0,"juris-locator":!0},MODULE_TYPES:{legal_case:!0,legislation:!0,bill:!0,hearing:!0,gazette:!0,report:!0,regulation:!0,standard:!0},NestedBraces:[["(","["],[")","]"]],checkNestedBrace:function(t){"note"===t.opt.xclass?(this.depth=0,this.update=function(t){for(var e=(t=t||"").split(/([\(\)])/),r=1,i=e.length;r<i;r+=2)"("===e[r]?(1==this.depth%2&&(e[r]="["),this.depth+=1):")"===e[r]&&(0==this.depth%2&&(e[r]="]"),this.depth-=1);return e.join("")}):this.update=function(t){return t}},MULTI_FIELDS:["event","publisher","publisher-place","event-place","title","container-title","collection-title","authority","genre","title-short","medium","country","jurisdiction","archive","archive-place"],LangPrefsMap:{title:"titles","title-short":"titles",event:"titles",genre:"titles",medium:"titles","container-title":"journals","collection-title":"journals",archive:"journals",publisher:"publishers",authority:"publishers","publisher-place":"places","event-place":"places","archive-place":"places",jurisdiction:"places",number:"number",edition:"number",issue:"number",volume:"number"},AbbreviationSegments:function(){this["container-title"]={},this["collection-title"]={},this["institution-entire"]={},this["institution-part"]={},this.nickname={},this.number={},this.title={},this.place={},this.hereinafter={},this.classic={},this["container-phrase"]={},this["title-phrase"]={}},FIELD_CATEGORY_REMAP:{title:"title","container-title":"container-title","collection-title":"collection-title",country:"place",number:"number",place:"place",archive:"collection-title","title-short":"title",genre:"title",event:"title",medium:"title","archive-place":"place","publisher-place":"place","event-place":"place",jurisdiction:"place","language-name":"place","language-name-original":"place","call-number":"number","chapter-number":"number","collection-number":"number",edition:"number",page:"number",issue:"number",locator:"number","number-of-pages":"number","number-of-volumes":"number",volume:"number","citation-number":"number",publisher:"institution-part"},parseLocator:function(t){if(this.opt.development_extensions.locator_date_and_revision&&t.locator){t.locator=""+t.locator;var e=t.locator.indexOf("|");if(-1<e){var r=t.locator;t.locator=r.slice(0,e);var i=(r=r.slice(e+1)).match(/^([0-9]{4}-[0-9]{2}-[0-9]{2}).*/);i&&(t["locator-date"]=this.fun.dateparser.parseDateToObject(i[1]),r=r.slice(i[1].length)),t["locator-extra"]=r.replace(/^\s+/,"").replace(/\s+$/,"")}}return t.locator&&(t.locator=(""+t.locator).replace(/\s+$/,"")),t},normalizeLocaleStr:function(t){if(t){var e=t.split("-");return e[0]=e[0].toLowerCase(),e[1]&&(e[1]=e[1].toUpperCase()),e.join("-")}},isDatePart:function(t,e,r){return!!(t.length>e&&t.length<r&&parseInt(t))},isDateString:function(t){if(!t)return!1;var e=t.split("-");return!(0<e.length&&!isDatePart(e[0],3,5))&&(!(1<e.length&&!isDatePart(e[1],0,3))&&(!(2<e.length&&!isDatePart(e[2],0,3))&&!(3<e.length)))},parseNoteFieldHacks:function(t,e,r){if("string"==typeof t.note){for(var i=[],s=t.note.split("\n"),n=0,o=s.length;n<o;n++){i=[];var a=(f=s[n]).match(wt.NOTE_FIELDS_REGEXP);if(a){for(var l=f.split(wt.NOTE_FIELDS_REGEXP),u=0,c=l.length-1;u<c;u++)i.push(l[u]),i.push(a[u]);i.push(l[l.length-1]);for(u=1,c=i.length;u<c&&(!i[u-1].trim()||!(0<n||1<u)||i[u-1].match(wt.NOTE_FIELD_REGEXP));u+=2)i[u]="\n"+i[u].slice(2,-1).trim()+"\n";s[n]=i.join("")}}var p=0,m={};for(n=0,o=(s=s.join("\n").split("\n")).length;n<o;n++){var f,h=(f=s[n]).match(wt.NOTE_FIELD_REGEXP);if(f.trim()){if(!h){if(0===n)continue;p=n;break}var d=h[1],g=h[2].replace(/^\s+/,"").replace(/\s+$/,"");if("type"===d)t.type=g,s[n]="";else if(-1<wt.DATE_VARIABLES.indexOf(d))r&&(t[d]={raw:g},(!e||e[d]&&isDateString(g))&&(s[n]=""));else if(!t[d]){if(-1<wt.NAME_VARIABLES.indexOf(d)){m[d]||(m[d]=[]);var b=g.split(/\s*\|\|\s*/);if(1===b.length)m[d].push({literal:b[0]});else if(2===b.length){var _={family:b[0],given:b[1]};wt.parseParticles(_),m[d].push(_)}}else t[d]=g;e&&!e[d]||(s[n]="")}}}for(var d in m)t[d]=m[d];if(e){s[p].trim()&&(s[p]="\n"+s[p]);for(n=p-1;-1<n;n--)s[n].trim()||(s=s.slice(0,n).concat(s.slice(n+1)))}t.note=s.join("\n").trim()}},GENDERS:["masculine","feminine"],ERROR_NO_RENDERED_FORM:1,PREVIEW:"Just for laughs.",ASSUME_ALL_ITEMS_REGISTERED:2,START:0,END:1,SINGLETON:2,SEEN:6,SUCCESSOR:3,SUCCESSOR_OF_SUCCESSOR:4,SUPPRESS:5,SINGULAR:0,PLURAL:1,LITERAL:!0,BEFORE:1,AFTER:2,DESCENDING:1,ASCENDING:2,ONLY_FIRST:1,ALWAYS:2,ONLY_LAST:3,FINISH:1,POSITION_FIRST:0,POSITION_SUBSEQUENT:1,POSITION_IBID:2,POSITION_IBID_WITH_LOCATOR:3,MARK_TRAILING_NAMES:!0,POSITION_TEST_VARS:["position","first-reference-note-number","near-note"],AREAS:["citation","citation_sort","bibliography","bibliography_sort"],CITE_FIELDS:["first-reference-note-number","locator","locator-extra"],MINIMAL_NAME_FIELDS:["literal","family"],SWAPPING_PUNCTUATION:[".","!","?",":",","],TERMINAL_PUNCTUATION:[":",".",";","!","?"," "],NONE:0,NUMERIC:1,POSITION:2,COLLAPSE_VALUES:["citation-number","year","year-suffix"],DATE_PARTS:["year","month","day"],DATE_PARTS_ALL:["year","month","day","season"],DATE_PARTS_INTERNAL:["year","month","day","year_end","month_end","day_end"],NAME_PARTS:["non-dropping-particle","family","given","dropping-particle","suffix","literal"],DECORABLE_NAME_PARTS:["given","family","suffix"],DISAMBIGUATE_OPTIONS:["disambiguate-add-names","disambiguate-add-givenname","disambiguate-add-year-suffix"],GIVENNAME_DISAMBIGUATION_RULES:["all-names","all-names-with-initials","primary-name","primary-name-with-initials","by-cite"],NAME_ATTRIBUTES:["and","delimiter-precedes-last","delimiter-precedes-et-al","initialize-with","initialize","name-as-sort-order","sort-separator","et-al-min","et-al-use-first","et-al-subsequent-min","et-al-subsequent-use-first","form","prefix","suffix","delimiter"],PARALLEL_MATCH_VARS:["container-title"],PARALLEL_TYPES:["bill","gazette","regulation","legislation","legal_case","treaty","article-magazine","article-journal"],PARALLEL_COLLAPSING_MID_VARSET:["volume","issue","container-title","section","collection-number"],LOOSE:0,STRICT:1,TOLERANT:2,PREFIX_PUNCTUATION:/[.;:]\s*$/,SUFFIX_PUNCTUATION:/^\s*[.;:,\(\)]/,NUMBER_REGEXP:/(?:^\d+|\d+$)/,NAME_INITIAL_REGEXP:/^([A-Z\u00c0-\u017f\u0400-\u042f\u0590-\u05d4\u05d6-\u05ff\u0600-\u06ff\u0370\u0372\u0376\u0386\u0388-\u03ab\u03e2\u03e4\u03e6\u03e8\u03ea\u03ec\u03ee\u03f4\u03f7\u03fd-\u03ff])([a-zA-Z\u00c0-\u017f\u0400-\u052f\u0600-\u06ff\u0370-\u03ff\u1f00-\u1fff]*|)/,ROMANESQUE_REGEXP:/[-0-9a-zA-Z\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/,ROMANESQUE_NOT_REGEXP:/[^a-zA-Z\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/g,STARTSWITH_ROMANESQUE_REGEXP:/^[&a-zA-Z\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]/,ENDSWITH_ROMANESQUE_REGEXP:/[.;:&a-zA-Z\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]$/,ALL_ROMANESQUE_REGEXP:/^[a-zA-Z\u00c0-\u017f\u0370-\u03ff\u0400-\u052f\u0590-\u05d4\u05d6-\u05ff\u1f00-\u1fff\u0600-\u06ff\u200c\u200d\u200e\u0218\u0219\u021a\u021b\u202a-\u202e]+$/,VIETNAMESE_SPECIALS:/[\u00c0-\u00c3\u00c8-\u00ca\u00cc\u00cd\u00d2-\u00d5\u00d9\u00da\u00dd\u00e0-\u00e3\u00e8-\u00ea\u00ec\u00ed\u00f2-\u00f5\u00f9\u00fa\u00fd\u0101\u0103\u0110\u0111\u0128\u0129\u0168\u0169\u01a0\u01a1\u01af\u01b0\u1ea0-\u1ef9]/,VIETNAMESE_NAMES:/^(?:(?:[.AaBbCcDdEeGgHhIiKkLlMmNnOoPpQqRrSsTtUuVvXxYy \u00c0-\u00c3\u00c8-\u00ca\u00cc\u00cd\u00d2-\u00d5\u00d9\u00da\u00dd\u00e0-\u00e3\u00e8-\u00ea\u00ec\u00ed\u00f2-\u00f5\u00f9\u00fa\u00fd\u0101\u0103\u0110\u0111\u0128\u0129\u0168\u0169\u01a0\u01a1\u01af\u01b0\u1ea0-\u1ef9]{2,6})(\s+|$))+$/,NOTE_FIELDS_REGEXP:/\{:(?:[\-_a-z]+|[A-Z]+):[^\}]+\}/g,NOTE_FIELD_REGEXP:/^([\-_a-z]+|[A-Z]+):\s*([^\}]+)$/,PARTICLE_GIVEN_REGEXP:/^([^ ]+(?:\u02bb |\u2019 | |\' ) *)(.+)$/,PARTICLE_FAMILY_REGEXP:/^([^ ]+(?:\-|\u02bb|\u2019| |\') *)(.+)$/,DISPLAY_CLASSES:["block","left-margin","right-inline","indent"],NAME_VARIABLES:["author","editor","translator","contributor","collection-editor","composer","container-author","director","editorial-director","interviewer","original-author","recipient"],NUMERIC_VARIABLES:["call-number","chapter-number","collection-number","edition","page","issue","locator","number","number-of-pages","number-of-volumes","volume","citation-number"],DATE_VARIABLES:["locator-date","issued","event-date","accessed","container","original-date","publication-date","original-date","available-date","submitted"],TITLE_FIELD_SPLITS:function(t){for(var e=["title","short","main","sub"],r={},i=0,s=e.length;i<s;i++)r[e[i]]=t+"title"+("title"===e[i]?"":"-"+e[i]);return r},TAG_USEALL:function(t){var e,r,i,s;for(e=[""],r=t.indexOf("<"),i=t.indexOf(">");-1<r&&-1<i;)s=i<r?r+1:i+1,r<i&&-1===t.slice(r+1,i).indexOf("<")?(e[e.length-1]+=t.slice(0,r),e.push(t.slice(r,i+1)),e.push("")):e[e.length-1]+=t.slice(0,i+1),r=(t=t.slice(s)).indexOf("<"),i=t.indexOf(">");return e[e.length-1]+=t,e},demoteNoiseWords:function(t,e,r){var i=t.locale[t.opt.lang].opts["leading-noise-words"];if(e&&r){(e=e.split(/\s+/)).reverse();for(var s=[],n=e.length-1;-1<n&&-1<i.indexOf(e[n].toLowerCase());n+=-1)s.push(e.pop());e.reverse();var o=e.join(" "),a=s.join(" ");"drop"!==r&&a?"demote"===r&&(e=[o,a].join(", ")):e=o}return e},extractTitleAndSubtitle:function(t){for(var e=["","container-"],r=0,i=e.length;r<i;r++){var s=e[r],n=wt.TITLE_FIELD_SPLITS(s),o=[!1];if(t.multi)for(var a in t.multi._keys[n["short"]])o.push(a);var l=0;for(o.length;l<i;l++){var u={};if((a=o[l])?(t.multi._keys[n.title]&&(u[n.title]=t.multi._keys[n.title][a]),t.multi._keys[n["short"]]&&(u[n["short"]]=t.multi._keys[n["short"]][a])):(u[n.title]=t[n.title],u[n["short"]]=t[n["short"]]),u[n.main]=u[n.title],u[n.sub]=!1,u[n.title]&&u[n["short"]]){var c=u[n["short"]],p=c.length;u[n.title].slice(0,p)===c&&u[n.title].slice(p).match(/^\s*:/)&&(u[n.main]=u[n.title].slice(0,p).replace(/\s+$/,""),u[n.sub]=u[n.title].slice(p).replace(/^\s*:\s*/,""))}if(a)for(var m in u)t.multi._keys[m]||(t.multi._keys[m]={}),t.multi._keys[m][a]=u[m];else for(var m in u)t[m]=u[m]}}},titlecaseSentenceOrNormal:function(t,e,r,i,s){var n=wt.TITLE_FIELD_SPLITS(r),o={};if(i&&e.multi?(e.multi._keys[n.title]&&(o[n.title]=e.multi._keys[n.title][i]),e.multi._keys[n.main]&&(o[n.main]=e.multi._keys[n.main][i]),e.multi._keys[n.sub]&&(o[n.sub]=e.multi._keys[n.sub][i])):(o[n.title]=e[n.title],o[n.main]=e[n.main],o[n.sub]=e[n.sub]),o[n.main]&&o[n.sub]){var a=o[n.main],l=o[n.sub];return s?(a=wt.Output.Formatters.sentence(t,a),l=wt.Output.Formatters.sentence(t,l)):l=wt.Output.Formatters["capitalize-first"](t,l),[a,l].join(o[n.title].slice(a.length,-1*l.length))}return s?wt.Output.Formatters.sentence(t,o[n.title]):o[n.title]},getSafeEscape:function(i){if(-1<["bibliography","citation"].indexOf(i.tmp.area)){var s=[];return i.opt.development_extensions.thin_non_breaking_space_html_hack&&"html"===i.opt.mode&&s.push(function(t){return t.replace(/\u202f/g,'<span style="white-space:nowrap">&thinsp;</span>')}),s.length?function(t){for(var e=0,r=s.length;e<r;e+=1)t=s[e](t);return wt.Output.Formats[i.opt.mode].text_escape(t)}:wt.Output.Formats[i.opt.mode].text_escape}return function(t){return t}},SKIP_WORDS:["about","above","across","afore","after","against","along","alongside","amid","amidst","among","amongst","anenst","apropos","apud","around","as","aside","astride","at","athwart","atop","barring","before","behind","below","beneath","beside","besides","between","beyond","but","by","circa","despite","down","during","except","for","forenenst","from","given","in","inside","into","lest","like","modulo","near","next","notwithstanding","of","off","on","onto","out","over","per","plus","pro","qua","sans","since","than","through"," thru","throughout","thruout","till","to","toward","towards","under","underneath","until","unto","up","upon","versus","vs.","v.","vs","v","via","vis-\xe0-vis","with","within","without","according to","ahead of","apart from","as for","as of","as per","as regards","aside from","back to","because of","close to","due to","except for","far from","inside of","instead of","near to","next to","on to","out from","out of","outside of","prior to","pursuant to","rather than","regardless of","such as","that of","up to","where as","or","yet","so","for","and","nor","a","an","the","de","d'","von","van","c","et","ca"],FORMAT_KEY_SEQUENCE:["@strip-periods","@font-style","@font-variant","@font-weight","@text-decoration","@vertical-align","@quotes"],INSTITUTION_KEYS:["font-style","font-variant","font-weight","text-decoration","text-case"],SUFFIX_CHARS:"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z",ROMAN_NUMERALS:[["","i","ii","iii","iv","v","vi","vii","viii","ix"],["","x","xx","xxx","xl","l","lx","lxx","lxxx","xc"],["","c","cc","ccc","cd","d","dc","dcc","dccc","cm"],["","m","mm","mmm","mmmm","mmmmm"]],CREATORS:["author","editor","contributor","translator","recipient","interviewer","composer","original-author","container-author","collection-editor"],LANGS:{"af-ZA":"Afrikaans",ar:"Arabic","bg-BG":"Bulgarian","ca-AD":"Catalan","cs-CZ":"Czech","da-DK":"Danish","de-AT":"Austrian","de-CH":"German (CH)","de-DE":"German (DE)","el-GR":"Greek","en-GB":"English (GB)","en-US":"English (US)","es-ES":"Spanish","et-EE":"Estonian",eu:"European","fa-IR":"Persian","fi-FI":"Finnish","fr-CA":"French (CA)","fr-FR":"French (FR)","he-IL":"Hebrew","hr-HR":"Croatian","hu-HU":"Hungarian","is-IS":"Icelandic","it-IT":"Italian","ja-JP":"Japanese","km-KH":"Khmer","ko-KR":"Korean","lt-LT":"Lithuanian","lv-LV":"Latvian","mn-MN":"Mongolian","nb-NO":"Norwegian (Bokm\xe5l)","nl-NL":"Dutch","nn-NO":"Norwegian (Nynorsk)","pl-PL":"Polish","pt-BR":"Portuguese (BR)","pt-PT":"Portuguese (PT)","ro-RO":"Romanian","ru-RU":"Russian","sk-SK":"Slovak","sl-SI":"Slovenian","sr-RS":"Serbian","sv-SE":"Swedish","th-TH":"Thai","tr-TR":"Turkish","uk-UA":"Ukranian","vi-VN":"Vietnamese","zh-CN":"Chinese (CN)","zh-TW":"Chinese (TW)"},LANG_BASES:{af:"af_ZA",ar:"ar",bg:"bg_BG",ca:"ca_AD",cs:"cs_CZ",da:"da_DK",de:"de_DE",el:"el_GR",en:"en_US",es:"es_ES",et:"et_EE",eu:"eu",fa:"fa_IR",fi:"fi_FI",fr:"fr_FR",he:"he_IL",hr:"hr-HR",hu:"hu_HU",is:"is_IS",it:"it_IT",ja:"ja_JP",km:"km_KH",ko:"ko_KR",lt:"lt_LT",lv:"lv-LV",mn:"mn_MN",nb:"nb_NO",nl:"nl_NL",nn:"nn-NO",pl:"pl_PL",pt:"pt_PT",ro:"ro_RO",ru:"ru_RU",sk:"sk_SK",sl:"sl_SI",sr:"sr_RS",sv:"sv_SE",th:"th_TH",tr:"tr_TR",uk:"uk_UA",vi:"vi_VN",zh:"zh_CN"},SUPERSCRIPTS:{"\xaa":"a","\xb2":"2","\xb3":"3","\xb9":"1","\xba":"o","\u02b0":"h","\u02b1":"\u0266","\u02b2":"j","\u02b3":"r","\u02b4":"\u0279","\u02b5":"\u027b","\u02b6":"\u0281","\u02b7":"w","\u02b8":"y","\u02e0":"\u0263","\u02e1":"l","\u02e2":"s","\u02e3":"x","\u02e4":"\u0295","\u1d2c":"A","\u1d2d":"\xc6","\u1d2e":"B","\u1d30":"D","\u1d31":"E","\u1d32":"\u018e","\u1d33":"G","\u1d34":"H","\u1d35":"I","\u1d36":"J","\u1d37":"K","\u1d38":"L","\u1d39":"M","\u1d3a":"N","\u1d3c":"O","\u1d3d":"\u0222","\u1d3e":"P","\u1d3f":"R","\u1d40":"T","\u1d41":"U","\u1d42":"W","\u1d43":"a","\u1d44":"\u0250","\u1d45":"\u0251","\u1d46":"\u1d02","\u1d47":"b","\u1d48":"d","\u1d49":"e","\u1d4a":"\u0259","\u1d4b":"\u025b","\u1d4c":"\u025c","\u1d4d":"g","\u1d4f":"k","\u1d50":"m","\u1d51":"\u014b","\u1d52":"o","\u1d53":"\u0254","\u1d54":"\u1d16","\u1d55":"\u1d17","\u1d56":"p","\u1d57":"t","\u1d58":"u","\u1d59":"\u1d1d","\u1d5a":"\u026f","\u1d5b":"v","\u1d5c":"\u1d25","\u1d5d":"\u03b2","\u1d5e":"\u03b3","\u1d5f":"\u03b4","\u1d60":"\u03c6","\u1d61":"\u03c7","\u2070":"0","\u2071":"i","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u207a":"+","\u207b":"\u2212","\u207c":"=","\u207d":"(","\u207e":")","\u207f":"n","\u2120":"SM","\u2122":"TM","\u3192":"\u4e00","\u3193":"\u4e8c","\u3194":"\u4e09","\u3195":"\u56db","\u3196":"\u4e0a","\u3197":"\u4e2d","\u3198":"\u4e0b","\u3199":"\u7532","\u319a":"\u4e59","\u319b":"\u4e19","\u319c":"\u4e01","\u319d":"\u5929","\u319e":"\u5730","\u319f":"\u4eba","\u02c0":"\u0294","\u02c1":"\u0295","\u06e5":"\u0648","\u06e6":"\u064a"},SUPERSCRIPTS_REGEXP:new RegExp("[\xaa\xb2\xb3\xb9\xba\u02b0\u02b1\u02b2\u02b3\u02b4\u02b5\u02b6\u02b7\u02b8\u02e0\u02e1\u02e2\u02e3\u02e4\u1d2c\u1d2d\u1d2e\u1d30\u1d31\u1d32\u1d33\u1d34\u1d35\u1d36\u1d37\u1d38\u1d39\u1d3a\u1d3c\u1d3d\u1d3e\u1d3f\u1d40\u1d41\u1d42\u1d43\u1d44\u1d45\u1d46\u1d47\u1d48\u1d49\u1d4a\u1d4b\u1d4c\u1d4d\u1d4f\u1d50\u1d51\u1d52\u1d53\u1d54\u1d55\u1d56\u1d57\u1d58\u1d59\u1d5a\u1d5b\u1d5c\u1d5d\u1d5e\u1d5f\u1d60\u1d61\u2070\u2071\u2074\u2075\u2076\u2077\u2078\u2079\u207a\u207b\u207c\u207d\u207e\u207f\u2120\u2122\u3192\u3193\u3194\u3195\u3196\u3197\u3198\u3199\u319a\u319b\u319c\u319d\u319e\u319f\u02c0\u02c1\u06e5\u06e6]","g"),UPDATE_GROUP_CONTEXT_CONDITION:function(t,e,r){if(t.tmp.group_context.tip.condition){if(t.tmp.group_context.tip.condition.test){var i;if("empty-label"===t.tmp.group_context.tip.condition.test)i=!e;else if("empty-label-no-decor"===t.tmp.group_context.tip.condition.test)i=!e||-1<e.indexOf("%s");else if("comma-safe"===t.tmp.group_context.tip.condition.test){var s=!e,n=e.slice(0,1).match(wt.ALL_ROMANESQUE_REGEXP);t.tmp.just_did_number;i=!!s||!(!n||r)}t.tmp.group_context.tip.force_suppress=!i,t.tmp.group_context.tip.condition.not&&(t.tmp.group_context.tip.force_suppress=!t.tmp.group_context.tip.force_suppress)}}else e.slice(-1).match(/[0-9]/)?t.tmp.just_did_number=!0:t.tmp.just_did_number=!1},locale:{},locale_opts:{},locale_dates:{}};if(void 0!==t&&void 0!==e&&"exports"in e){r.CSL=wt}wt.TERMINAL_PUNCTUATION_REGEXP=new RegExp("^(["+wt.TERMINAL_PUNCTUATION.slice(0,-1).join("")+"])(.*)"),wt.CLOSURES=new RegExp(".*[\\]\\)]"),e.exports=wt,"undefined"==typeof console?(wt.debug=function(t){dump("CSL: "+t+"\n")},wt.error=function(t){dump("CSL error: "+t+"\n")}):(wt.debug=function(t){console.log("CSL: "+t)},wt.error=function(t){console.log("CSL error: "+t)}),(e.exports=wt).XmlJSON=function(t){this.dataObj=t,this.institution={name:"institution",attrs:{"institution-parts":"long",delimiter:", ","substitute-use-first":"1","use-last":"1"},children:[{name:"institution-part",attrs:{name:"long"},children:[]}]}},wt.XmlJSON.prototype.clean=function(t){return t},wt.XmlJSON.prototype.getStyleId=function(t,e){var r="id";e&&(r="title");for(var i="",s=t.children,n=0,o=s.length;n<o;n++)if("info"===s[n].name)for(var a=s[n].children,l=0,u=a.length;l<u;l++)a[l].name===r&&(i=a[l].children[0]);return i},wt.XmlJSON.prototype.children=function(t){return!(!t||!t.children.length)&&t.children.slice()},wt.XmlJSON.prototype.nodename=function(t){return t?t.name:null},wt.XmlJSON.prototype.attributes=function(t){var e={};for(var r in t.attrs)e["@"+r]=t.attrs[r];return e},wt.XmlJSON.prototype.content=function(t){var e="";if(!t||!t.children)return e;for(var r=0,i=t.children.length;r<i;r+=1)"string"==typeof t.children[r]&&(e+=t.children[r]);return e},wt.XmlJSON.prototype.namespace={},wt.XmlJSON.prototype.numberofnodes=function(t){return t&&"number"==typeof t.length?t.length:0},wt.XmlJSON.prototype.getAttributeValue=function(t,e,r){var i="";return r&&(e=r+":"+e),t&&t.attrs&&(i=t.attrs[e]?t.attrs[e]:""),i},wt.XmlJSON.prototype.getNodeValue=function(t,e){var r="";if(e)for(var i=0,s=t.children.length;i<s;i+=1)t.children[i].name===e&&(r=t.children[i].children.length?t.children[i]:"");else t&&(r=t);return r&&r.children&&1==r.children.length&&"string"==typeof r.children[0]&&(r=r.children[0]),r},wt.XmlJSON.prototype.setAttributeOnNodeIdentifiedByNameAttribute=function(t,e,r,i,s){"@"===i.slice(0,1)&&(i=i.slice(1));for(var n=0,o=t.children.length;n<o;n+=1)t.children[n].name===e&&t.children[n].attrs.name===r&&(t.children[n].attrs[i]=s)},wt.XmlJSON.prototype.deleteNodeByNameAttribute=function(t,e){var r,i;for(r=0,i=t.children.length;r<i;r+=1)t.children[r]&&"string"!=typeof t.children[r]&&t.children[r].attrs.name==e&&(t.children=t.children.slice(0,r).concat(t.children.slice(r+1)))},wt.XmlJSON.prototype.deleteAttribute=function(t,e){"undefined"!=typeof t.attrs[e]&&t.attrs.pop(e)},wt.XmlJSON.prototype.setAttribute=function(t,e,r){return t.attrs[e]=r,!1},wt.XmlJSON.prototype.nodeCopy=function(t,e){if(!e)e={};if("object"===W(e)&&"undefined"==typeof e.length)for(var r in t)"string"==typeof t[r]?e[r]=t[r]:"object"===W(t[r])&&("undefined"==typeof t[r].length?e[r]=this.nodeCopy(t[r],{}):e[r]=this.nodeCopy(t[r],[]));else for(var i=0,s=t.length;i<s;i+=1)"string"==typeof t[i]?e[i]=t[i]:e[i]=this.nodeCopy(t[i],{});return e},wt.XmlJSON.prototype.getNodesByName=function(t,e,r,i){if(!i)i=[];if(!t||!t.children)return i;e===t.name&&(r?r===t.attrs.name&&i.push(t):i.push(t));for(var s=0,n=t.children.length;s<n;s+=1)"object"===W(t.children[s])&&this.getNodesByName(t.children[s],e,r,i);return i},wt.XmlJSON.prototype.nodeNameIs=function(t,e){return void 0!==t&&e==t.name},wt.XmlJSON.prototype.makeXml=function(t){return"string"==typeof t&&(t="<"===t.slice(0,1)?this.jsonStringWalker.walkToObject(t):JSON.parse(t)),t},wt.XmlJSON.prototype.insertChildNodeAfter=function(t,e,r,i){for(var s=0,n=t.children.length;s<n;s+=1)if(e===t.children[s]){t.children=t.children.slice(0,s).concat([i]).concat(t.children.slice(s+1));break}return t},wt.XmlJSON.prototype.insertPublisherAndPlace=function(t){if("group"===t.name){for(var e=!0,r=["publisher","publisher-place"],i=0,s=t.children.length;i<s;i+=1){var n=r.indexOf(t.children[i].attrs.variable);if(!("text"===t.children[i].name&&-1<n)||t.children[i].attrs.prefix||t.children[i].attrs.suffix){e=!1;break}r=r.slice(0,n).concat(r.slice(n+1))}e&&!r.length&&(t.attrs["has-publisher-and-publisher-place"]=!0)}for(i=0,s=t.children.length;i<s;i+=1)"object"===W(t.children[i])&&this.insertPublisherAndPlace(t.children[i])},wt.XmlJSON.prototype.isChildOfSubstitute=function(t){if(0<t.length){var e=t.slice();return"substitute"===e.pop()||this.isChildOfSubstitute(e)}return!1},wt.XmlJSON.prototype.addMissingNameNodes=function(t,e){if(e||(e=[]),"names"===t.name&&!this.isChildOfSubstitute(e)){for(var r=!0,i=0,s=t.children.length;i<s;i++)if("name"===t.children[i].name){r=!1;break}r&&(t.children=[{name:"name",attrs:{},children:[]}].concat(t.children))}e.push(t.name);for(i=0,s=t.children.length;i<s;i+=1)"object"===W(t.children[i])&&this.addMissingNameNodes(t.children[i],e);e.pop()},wt.XmlJSON.prototype.addInstitutionNodes=function(t){if("names"===t.name){for(var e={},r=-1,i=0,s=t.children.length;i<s;i+=1){if("name"==t.children[i].name){for(var n in t.children[i].attrs)e[n]=t.children[i].attrs[n];e.delimiter=t.children[i].attrs.delimiter,e.and=t.children[i].attrs.and,r=i;for(var o=0,a=t.children[i].children.length;o<a;o+=1)if("family"===t.children[i].children[o].attrs.name)for(var n in t.children[i].children[o].attrs)e[n]=t.children[i].children[o].attrs[n]}if("institution"==t.children[i].name){r=-1;break}}if(-1<r){var l=this.nodeCopy(this.institution);for(i=0,s=wt.INSTITUTION_KEYS.length;i<s;i+=1){var u=wt.INSTITUTION_KEYS[i];"undefined"!=typeof e[u]&&(l.children[0].attrs[u]=e[u]),e.delimiter&&(l.attrs.delimiter=e.delimiter),e.and&&(l.attrs.and="text")}t.children=t.children.slice(0,r+1).concat([l]).concat(t.children.slice(r+1))}}for(i=0,s=t.children.length;i<s;i+=1)"string"!=typeof t.children[i]&&this.addInstitutionNodes(t.children[i])},wt.XmlJSON.prototype.flagDateMacros=function(t){for(var e=0,r=t.children.length;e<r;e+=1)"macro"===t.children[e].name&&this.inspectDateMacros(t.children[e])&&(t.children[e].attrs["macro-has-date"]="true")},wt.XmlJSON.prototype.inspectDateMacros=function(t){if(!t||!t.children)return!1;if("date"===t.name)return!0;for(var e=0,r=t.children.length;e<r;e+=1)if(this.inspectDateMacros(t.children[e]))return!0;return!1},wt.stripXmlProcessingInstruction=function(t){return t?t=(t=(t=(t=t.replace(/^<\?[^?]+\?>/,"")).replace(/<!--[^>]+-->/g,"")).replace(/^\s+/g,"")).replace(/\s+$/g,""):t},wt.parseXml=function(t){var e={children:[]},s=[e.children];function c(t){return t.split("&amp;").join("&").split("&quot;").join('"').split("&gt;").join(">").split("&lt;").join("<").replace(/&#([0-9]{1,6});/gi,function(t,e){var r=parseInt(e,10);return String.fromCharCode(r)}).replace(/&#x([a-f0-9]{1,6});/gi,function(t,e){var r=parseInt(e,16);return String.fromCharCode(r)})}function p(t){var e=RegExp("^<([^\t />]+)"),r=t.match(e);return r?r[1]:null}function n(t){var e={};e.name=p(t),e.attrs={};var r,i,s,n,o=function(t){var e=t.match(/([^\'\"=\x09 ]+)=(?:\"[^\"]*\"|\'[^\']*\')/g);if(e)for(var r=0,i=e.length;r<i;r++)e[r]=e[r].replace(/=.*/,"");return e}(t);if(o)for(var a=0,l=o.length;a<l;a++){var u={name:o[a],value:(r=t,i=o[a],void 0,n=void 0,s=RegExp("^.*[\t ]+"+i+"=(\"(?:[^\"]*)\"|'(?:[^']*)').*$"),n=r.match(s),n?n[1].slice(1,-1):null)};e.attrs[u.name]=c(u.value)}return e.children=[],e}function o(t){s.slice(-1)[0].push(t)}function r(t){var e,r,i;-1<t.slice(1).indexOf("<")?((e=n(t.slice(0,t.indexOf(">")+1))).children=[(i=t,c(i.match(/^.*>([^<]*)<.*$/)[1]))],o(e)):"/>"===t.slice(-2)?(e=n(t),"term"===p(t)&&e.children.push(""),o(e)):"</"===t.slice(0,2)?s.pop():(o(e=n(t)),r=e,s.push(r.children))}for(var i=function(t){for(var e=(t=t.split(/(?:\r\n|\n|\r)/).join(" ").replace(/>[\x09 ]+</g,"><").replace(/<\!--.*?-->/g,"")).split("><"),r=null,i=0,s=e.length;i<s;i++)0<i&&(e[i]="<"+e[i]),i<e.length-1&&(e[i]=e[i]+">"),"number"!=typeof r&&("<style "!==e[i].slice(0,7)&&"<locale "!=e[i].slice(0,8)||(r=i));for(i=(e=e.slice(r)).length-2;-1<i;i--)if(-1===e[i].slice(1).indexOf("<")){var n=e[i].slice(0,5);"/>"!==e[i].slice(-2)&&("<term"===n?"</term"===e[i+1].slice(0,6)&&(e[i]=e[i]+e[i+1],e=e.slice(0,i+1).concat(e.slice(i+2))):-1<["<sing","<mult"].indexOf(n)&&"/>"!==e[i].slice(-2)&&"<"===e[i+1].slice(0,1)&&(e[i]=e[i]+e[i+1],e=e.slice(0,i+1).concat(e.slice(i+2))))}return e}(t),a=0,l=i.length;a<l;a++){r(i[a])}return e.children[0]},(e.exports=wt).XmlDOM=function(t){this.dataObj=t,"undefined"==typeof DOMParser?(DOMParser=function(){},DOMParser.prototype.parseFromString=function(t,e){var r;return"undefined"!=typeof ActiveXObject?((r=new ActiveXObject("MSXML.DomDocument")).async=!1,r.loadXML(t),r):"undefined"!=typeof XMLHttpRequest?(e||(e="text/xml"),(r=new XMLHttpRequest).open("GET","data:"+e+";charset=utf-8,"+encodeURIComponent(t),!1),r.overrideMimeType&&r.overrideMimeType(e),r.send(null),r.responseXML):"undefined"!=typeof marknote?(new marknote.Parser).parse(t):void 0},this.hasAttributes=function(t){return!(!t.attributes||!t.attributes.length)}):this.hasAttributes=function(t){return!(!t.attributes||!t.attributes.length)},this.importNode=function(t,e){if("undefined"==typeof t.importNode)var r=this._importNode(t,e,!0);else r=t.importNode(e,!0);return r},this._importNode=function(t,e,r){switch(e.nodeType){case 1:var i=t.createElement(e.nodeName);if(e.attributes&&0<e.attributes.length)for(var s=0,n=e.attributes.length;s<n;)i.setAttribute(e.attributes[s].nodeName,e.getAttribute(e.attributes[s++].nodeName));if(r&&e.childNodes&&0<e.childNodes.length)for(s=0,n=e.childNodes.length;s<n;)i.appendChild(this._importNode(t,e.childNodes[s++],r));return i}},this.parser=new DOMParser;var e=this.parser.parseFromString('<docco><institution institution-parts="long" delimiter=", " substitute-use-first="1" use-last="1"><institution-part name="long"/></institution></docco>',"text/xml"),r=e.getElementsByTagName("institution");this.institution=r.item(0);var i=e.getElementsByTagName("institution-part");this.institutionpart=i.item(0),this.ns="http://purl.org/net/xbiblio/csl"},wt.XmlDOM.prototype.clean=function(t){return t=(t=(t=(t=(t=t.replace(/<\?[^?]+\?>/g,"")).replace(/<![^>]+>/g,"")).replace(/^\s+/,"")).replace(/\s+$/,"")).replace(/^\n*/,"")},wt.XmlDOM.prototype.getStyleId=function(t,e){var r="",i="id";e&&(i="title");var s=t.getElementsByTagName(i);return s&&s.length&&(s=s.item(0)),s&&(r=s.textContent),r||(r=s.innerText),r||(r=s.innerHTML),r},wt.XmlDOM.prototype.children=function(t){var e,r,i,s;if(t){for(s=[],r=0,i=(e=t.childNodes).length;r<i;r+=1)"#text"!=e[r].nodeName&&s.push(e[r]);return s}return[]},wt.XmlDOM.prototype.nodename=function(t){return t.nodeName},wt.XmlDOM.prototype.attributes=function(t){var e,r,i,s,n;if(e=new Object,t&&this.hasAttributes(t))for(s=0,n=(r=t.attributes).length;s<n;s+=1)e["@"+(i=r[s]).name]=i.value;return e},wt.XmlDOM.prototype.content=function(t){return"undefined"!=typeof t.textContent?t.textContent:"undefined"!=typeof t.innerText?t.innerText:t.txt},wt.XmlDOM.prototype.namespace={xml:"http://www.w3.org/XML/1998/namespace"},wt.XmlDOM.prototype.numberofnodes=function(t){return t?t.length:0},wt.XmlDOM.prototype.getAttributeName=function(t){return t.name},wt.XmlDOM.prototype.getAttributeValue=function(t,e,r){var i="";return r&&(e=r+":"+e),t&&this.hasAttributes(t)&&t.getAttribute(e)&&(i=t.getAttribute(e)),i},wt.XmlDOM.prototype.getNodeValue=function(t,e){var r=null;if(e){var i=t.getElementsByTagName(e);0<i.length&&(r="undefined"!=typeof i[0].textContent?i[0].textContent:"undefined"!=typeof i[0].innerText?i[0].innerText:i[0].text)}return null===r&&t&&t.childNodes&&(0==t.childNodes.length||1==t.childNodes.length&&"#text"==t.firstChild.nodeName)&&(r="undefined"!=typeof t.textContent?t.textContent:"undefined"!=typeof t.innerText?t.innerText:t.text),null===r&&(r=t),r},wt.XmlDOM.prototype.setAttributeOnNodeIdentifiedByNameAttribute=function(t,e,r,i,s){var n,o,a,l;for("@"===i.slice(0,1)&&(i=i.slice(1)),n=0,o=(a=t.getElementsByTagName(e)).length;n<o;n+=1)(l=a[n]).getAttribute("name")==r&&l.setAttribute(i,s)},wt.XmlDOM.prototype.deleteNodeByNameAttribute=function(t,e){var r,i,s,n;for(r=0,i=(n=t.childNodes).length;r<i;r+=1)(s=n[r])&&s.nodeType!=s.TEXT_NODE&&this.hasAttributes(s)&&s.getAttribute("name")==e&&t.removeChild(n[r])},wt.XmlDOM.prototype.deleteAttribute=function(t,e){t.removeAttribute(e)},wt.XmlDOM.prototype.setAttribute=function(t,e,r){return t.ownerDocument||(t=t.firstChild),-1<["function","unknown"].indexOf(W(t.setAttribute))&&t.setAttribute(e,r),!1},wt.XmlDOM.prototype.nodeCopy=function(t){return t.cloneNode(!0)},wt.XmlDOM.prototype.getNodesByName=function(t,e,r){var i,s,n,o,a;for(i=[],o=0,a=(s=t.getElementsByTagName(e)).length;o<a;o+=1)n=s.item(o),(!r||this.hasAttributes(n)&&n.getAttribute("name")==r)&&i.push(n);return i},wt.XmlDOM.prototype.nodeNameIs=function(t,e){return e==t.nodeName},wt.XmlDOM.prototype.makeXml=function(t){return t||(t="<docco><bogus/></docco>"),t=t.replace(/\s*<\?[^>]*\?>\s*\n*/g,""),this.parser.parseFromString(t,"application/xml").firstChild},wt.XmlDOM.prototype.insertChildNodeAfter=function(t,e,r,i){var s;return s=this.importNode(e.ownerDocument,i),t.replaceChild(s,e),t},wt.XmlDOM.prototype.insertPublisherAndPlace=function(t){for(var e=t.getElementsByTagName("group"),r=0,i=e.length;r<i;r+=1){for(var s=e.item(r),n=[],o=0,a=s.childNodes.length;o<a;o+=1)1!==s.childNodes.item(o).nodeType&&n.push(o);if(s.childNodes.length-n.length==2){var l=[];for(o=0,a=2;o<a;o+=1)if(!(-1<n.indexOf(o))){for(var u=s.childNodes.item(o),c=[],p=0,m=u.childNodes.length;p<m;p+=1)1!==u.childNodes.item(p).nodeType&&c.push(p);if(u.childNodes.length-c.length==0&&(l.push(u.getAttribute("variable")),u.getAttribute("suffix")||u.getAttribute("prefix"))){l=[];break}}-1<l.indexOf("publisher")&&-1<l.indexOf("publisher-place")&&s.setAttribute("has-publisher-and-publisher-place",!0)}}},wt.XmlDOM.prototype.isChildOfSubstitute=function(t){return!!t.parentNode&&("substitute"===t.parentNode.tagName.toLowerCase()||this.isChildOfSubstitute(t.parentNode))},wt.XmlDOM.prototype.addMissingNameNodes=function(t){for(var e=t.getElementsByTagName("names"),r=0,i=e.length;r<i;r+=1){var s=e.item(r),n=s.getElementsByTagName("name");if(!(n&&0!==n.length||this.isChildOfSubstitute(s))){var o=s.ownerDocument.createElement("name");s.appendChild(o)}}},wt.XmlDOM.prototype.addInstitutionNodes=function(t){var e,r,i,s,n,o,a;for(o=0,a=(e=t.getElementsByTagName("names")).length;o<a;o+=1)if(0!=(s=(r=e.item(o)).getElementsByTagName("name")).length&&0==r.getElementsByTagName("institution").length){i=this.importNode(t.ownerDocument,this.institution),theinstitutionpart=i.getElementsByTagName("institution-part").item(0),n=s.item(0),r.insertBefore(i,n.nextSibling);for(var l=0,u=wt.INSTITUTION_KEYS.length;l<u;l+=1){var c=wt.INSTITUTION_KEYS[l];(h=n.getAttribute(c))&&theinstitutionpart.setAttribute(c,h)}var p=n.getElementsByTagName("name-part");for(l=0,u=p.length;l<u;l+=1)if("family"===p[l].getAttribute("name"))for(var m=0,f=wt.INSTITUTION_KEYS.length;m<f;m+=1){var h;c=wt.INSTITUTION_KEYS[m];(h=p[l].getAttribute(c))&&theinstitutionpart.setAttribute(c,h)}}},wt.XmlDOM.prototype.flagDateMacros=function(t){var e,r,i;for(nodes=t.getElementsByTagName("macro"),e=0,r=nodes.length;e<r;e+=1)(i=nodes.item(e)).getElementsByTagName("date").length&&i.setAttribute("macro-has-date","true")},e.exports=wt,(e.exports=wt).setupXml=function(t){var e={},r=null;if(void 0!==t?"string"==typeof t?(e="<"===(t=t.replace("^\ufeff","").replace(/^\s+/,"")).slice(0,1)?wt.parseXml(t):JSON.parse(t),r=new wt.XmlJSON(e)):r="undefined"!=typeof t.getAttribute?new wt.XmlDOM(t):"undefined"!=typeof t.toXMLString?new wt.XmlE4X(t):new wt.XmlJSON(t):wt.error("unable to parse XML input"),!r)throw"citeproc-js error: unable to parse CSL style or locale object";return r},(e.exports=wt).getSortCompare=function(r){if(wt.stringCompare)return wt.stringCompare;var i,s={sensitivity:"base",ignorePunctuation:!0,numeric:!0};r||(r="en-US");var n=function(t){return t.replace(/^[\[\]\'\"]*/g,"")},o=!!(i=function(t,e){return t.toLocaleLowerCase().localeCompare(e.toLocaleLowerCase(),r,s)})("[x","x")&&function(t,e){return i(n(t),n(e))};return function(t,e){return o?o(t,e):i(t,e)}},(e.exports=wt).ambigConfigDiff=function(t,e){var r,i,s,n;if(t.names.length!==e.names.length)return 1;for(r=0,i=t.names.length;r<i;r+=1){if(t.names[r]!==e.names[r])return 1;for(s=0,n=t.givens[r];s<n;s+=1)if(t.givens[r][s]!==e.givens[r][s])return 1}return t.disambiguate!=e.disambiguate?1:t.year_suffix!==e.year_suffix?1:0},wt.cloneAmbigConfig=function(t,e,r){var i,s,n,o,a,l={names:[],givens:[],year_suffix:!1,disambiguate:!1};for(i=0,s=t.names.length;i<s;i+=1)a=t.names[i],l.names[i]=a;for(i=0,s=t.givens.length;i<s;i+=1){for(a=[],n=0,o=t.givens[i].length;n<o;n+=1)a.push(t.givens[i][n]);l.givens.push(a)}return e?(l.year_suffix=e.year_suffix,l.disambiguate=e.disambiguate):(l.year_suffix=t.year_suffix,l.disambiguate=t.disambiguate),l},wt.getAmbigConfig=function(){var t;return(t=this.tmp.disambig_request)||(t=this.tmp.disambig_settings),wt.cloneAmbigConfig(t)},wt.getMaxVals=function(){return this.tmp.names_max.mystack.slice()},wt.getMinVal=function(){return this.tmp["et-al-min"]},(e.exports=wt).tokenExec=function(e,t,r){var i,s;i=e.next,s=!1;e.test&&(i=function(t){return t?(this.tmp.jump.replace("succeed"),e.succeed):(this.tmp.jump.replace("fail"),e.fail)}.call(this,e.test(t,r)));for(var n=0,o=e.execs.length;n<o;n++)(s=e.execs[n].call(e,this,t,r))&&(i=s);return i},wt.expandMacro=function(t,e){var r,i,s;r=t.postponed_macro,t=new wt.Token("group",wt.START);var n=!1,o=!1;if((i=this.cslXml.getNodesByName(this.cslXml.dataObj,"macro",r)).length&&(o=this.cslXml.getAttributeValue(i[0],"cslid"),n=this.cslXml.getAttributeValue(i[0],"macro-has-date")),n&&(r=r+"@"+this.build.current_default_locale,u=function(t,e){t.tmp.extension&&(t.tmp["doing-macro-with-date"]=!0)},t.execs.push(u)),-1<this.build.macro_stack.indexOf(r))throw'CSL processor error: call to macro "'+r+'" would cause an infinite loop';if(this.build.macro_stack.push(r),t.cslid=o,wt.MODULE_MACROS[r]&&(t.juris=r,this.opt.update_mode=wt.POSITION),wt.Node.group.build.call(t,this,e,!0),!this.cslXml.getNodeValue(i))throw'CSL style error: undefined macro "'+r+'"';var a,l=wt.getMacroTarget.call(this,r);if(l&&(wt.buildMacro.call(this,l,i),wt.configureMacro.call(this,l)),!this.build.extension){var u=(a=r,function(t,e,r){for(var i=0;i<t.macros[a].length;)i=wt.tokenExec.call(t,t.macros[a][i],e,r)}),c=new wt.Token("text",wt.SINGLETON);c.execs.push(u),e.push(c)}s=new wt.Token("group",wt.END),n&&(u=function(t,e){t.tmp.extension&&(t.tmp["doing-macro-with-date"]=!1)},s.execs.push(u)),t.juris&&(s.juris=r),wt.Node.group.build.call(s,this,e,!0),this.build.macro_stack.pop()},wt.getMacroTarget=function(t){var e=!1;return this.build.extension?e=this[this.build.root+this.build.extension].tokens:this.macros[t]||(e=[],this.macros[t]=e),e},wt.buildMacro=function(t,e){wt.makeBuilder(this,t)("undefined"==typeof e.length?e:e[0])},wt.configureMacro=function(t){this.build.extension||this.configureTokenList(t)},wt.XmlToToken=function(t,e,r,i){var s,n,o,a,l,u;if(s=t.cslXml.nodename(this),!t.build.skip||t.build.skip===s)if(s){if(!wt.Node[t.cslXml.nodename(this)])throw'Undefined node name "'+s+'".';if([],o=t.cslXml.attributes(this),a=wt.setDecorations.call(this,t,o),l=new wt.Token(s,e),e!==wt.END||"if"===s||"else-if"===s||"layout"===s){for(var c in o)if(o.hasOwnProperty(c)){if(e===wt.END&&"@language"!==c&&"@locale"!==c)continue;if(o.hasOwnProperty(c))if(wt.Attributes[c])try{wt.Attributes[c].call(l,t,""+o[c])}catch(p){throw wt.error(p),"CSL processor error, "+c+" attribute: "+p}else wt.debug('warning: undefined attribute "'+c+'" in style')}l.decorations=a,-1<wt.DATE_VARIABLES.indexOf(o["@variable"])&&i.push(l.variables)}else e===wt.END&&o["@variable"]&&(l.hasVariable=!0,-1<wt.DATE_VARIABLES.indexOf(o["@variable"])&&(l.variables=i.pop()));u=r||t[t.build.area].tokens,wt.Node[s].build.call(l,t,u,!0)}else(n=t.cslXml.content(this))&&(t.build.text=n)},(e.exports=wt).DateParser=new function(){for(var t=[["\u660e\u6cbb",1867],["\u5927\u6b63",1911],["\u662d\u548c",1925],["\u5e73\u6210",1988]],e={},r=0,i=t.length;r<i;r++){var s=t[r][0],n=t[r][1];e[s]=n}var o=[];for(r=0,i=t.length;r<i;r++){n=t[r][0];o.push(n)}var a=o.join("|"),D=new RegExp("(?:"+a+")(?:[0-9]+)"),P=new RegExp("(?:"+a+")(?:[0-9]+)","g"),R=/(\u6708|\u5E74)/g,F=/\u65E5/g,L=/\u301c/g,l="([?0-9]{4}(?:%%NUMD%%[?0-9]{1,2}){0,2}(?![0-9])|(?:[?0-9]{1,2}%%NUMD%%){0,2}[?0-9]{4}(?![0-9])|[?0-9]{1,3}|[%%DATED%%]|[?~]|[^-/~?0-9]+)",M=new RegExp(l.replace(/%%NUMD%%/g,"-").replace(/%%DATED%%/g,"-")),B=new RegExp(l.replace(/%%NUMD%%/g,"-").replace(/%%DATED%%/g,"/")),U=new RegExp(l.replace(/%%NUMD%%/g,"/").replace(/%%DATED%%/g,"-"));this.monthStrings="january february march april may june july august september october november december spring summer fall winter spring summer".split(" "),this.setOrderDayMonth=function(){this.monthGuess=1,this.dayGuess=0},this.setOrderMonthDay=function(){this.monthGuess=0,this.dayGuess=1},this.resetDateParserMonths=function(){this.monthSets=[];for(var t=0,e=this.monthStrings.length;t<e;t++)this.monthSets.push([this.monthStrings[t]]);this.monthAbbrevs=[];for(t=0,e=this.monthSets.length;t<e;t++){this.monthAbbrevs.push([]);for(var r=0,i=this.monthSets[t].length;r<i;r++)this.monthAbbrevs[t].push(this.monthSets[t][0].slice(0,3))}this.monthRexes=[];for(t=0,e=this.monthAbbrevs.length;t<e;t++)this.monthRexes.push(new RegExp("(?:"+this.monthAbbrevs[t].join("|")+")"))},this.addDateParserMonths=function(t){if("string"==typeof t&&(t=t.split(/\s+/)),12===t.length||16===t.length){for(var e=0,r=t.length;e<r;e++){for(var i=null,s=!1,n=3,o={},a=0,l=this.monthAbbrevs.length;a<l;a++){if(o[a]={},a===e){for(var u=0,c=this.monthAbbrevs[e].length;u<c;u++)if(this.monthAbbrevs[e][u]===t[e].slice(0,this.monthAbbrevs[e][u].length)){s=!0;break}}else for(u=0,c=this.monthAbbrevs[a].length;u<c;u++)if(i=this.monthAbbrevs[a][u].length,this.monthAbbrevs[a][u]===t[e].slice(0,i)){for(;this.monthSets[a][u].slice(0,i)===t[e].slice(0,i);){if(i>t[e].length||i>this.monthSets[a][u].length){wt.debug("unable to disambiguate month string in date parser: "+t[e]);break}i+=1}n=i,o[a][u]=i}for(var p in o)for(kKey in o[p])i=o[p][kKey],p=parseInt(p,10),kKey=parseInt(kKey,10),this.monthAbbrevs[p][kKey]=this.monthSets[p][kKey].slice(0,i)}s||(this.monthSets[e].push(t[e]),this.monthAbbrevs[e].push(t[e].slice(0,n)))}this.monthRexes=[],this.monthRexStrs=[];for(e=0,r=this.monthAbbrevs.length;e<r;e++)this.monthRexes.push(new RegExp("^(?:"+this.monthAbbrevs[e].join("|")+")")),this.monthRexStrs.push("^(?:"+this.monthAbbrevs[e].join("|")+")");if(18===this.monthAbbrevs.length)for(e=12,r=14;e<r;e++)this.monthRexes[e+4]=new RegExp("^(?:"+this.monthAbbrevs[e].join("|")+")"),this.monthRexStrs[e+4]="^(?:"+this.monthAbbrevs[e].join("|")+")"}else wt.debug("month [+season] list of "+t.length+", expected 12 or 16. Ignoring.")},this.convertDateObjectToArray=function(t){t["date-parts"]=[],t["date-parts"].push([]);for(var e=0,r=0,i=3;r<i;r++){var s=["year","month","day"][r];if(!t[s])break;e+=1,t["date-parts"][0].push(t[s]),delete t[s]}t["date-parts"].push([]);for(r=0,i=e;r<i&&t[s=["year_end","month_end","day_end"][r]];r++)t["date-parts"][1].push(t[s]),delete t[s];return t["date-parts"][0].length!==t["date-parts"][1].length&&t["date-parts"].pop(),t},this.convertDateObjectToString=function(t){for(var e=[],r=0;r<3&&t[DATE_PARTS_ALL[r]];r+=1)e.push(t[DATE_PARTS_ALL[r]]);return e.join("-")},this._parseNumericDate=function(t,e,r,i){r||(r="");for(var s=i.split(e),n=0,o=s.length;n<o;n++)if(4===s[n].length){t["year"+r]=s[n].replace(/^0*/,""),s=n?s.slice(0,n):s.slice(1);break}for(n=0,o=s.length;n<o;n++)s[n]=parseInt(s[n],10);1===s.length||2===s.length&&!s[1]?t["month"+r]=""+s[0]:2===s.length&&(12<s[this.monthGuess]?(t["month"+r]=""+s[this.dayGuess],t["day"+r]=""+s[this.monthGuess]):(t["month"+r]=""+s[this.monthGuess],t["day"+r]=""+s[this.dayGuess]))},this.parseDateToObject=function(t){var e,r=t,i=-1,s=-1,n=!1;if(t){if("-"===t.slice(0,1)&&(n=!0,t=t.slice(1)),t.match(/^[0-9]{1,3}$/))for(;t.length<4;)t="0"+t;if(_=(t=(t=""+t).replace(/\s*[0-9]{2}:[0-9]{2}(?::[0-9]+)/,"")).match(R)){var o=(t=(t=(t=(t=(t=(t=t.replace(/\s+/g,"")).replace(F,"")).replace(R,"-")).replace(L,"/")).replace(/\-\//g,"/")).replace(/-$/g,"")).split(D);e=[];var a=t.match(P);if(a){for(var l=[],u=0,c=a.length;u<c;u++)l=l.concat(a[u].match(/([^0-9]+)([0-9]+)/).slice(1));for(u=0,c=o.length;u<c;u++)if(e.push(o[u]),u!==len-1){var p=2*pos;e.push(l[p]),e.push(l[p+1])}}else e=o;for(u=1,c=e.length;u<c;u+=3)e[u+1]=jiy[e[u]]+parseInt(e[u+1],10),e[u]="";i=(t=(t=(t=(t=e.join("")).replace(/\s*-\s*$/,"").replace(/\s*-\s*\//,"/")).replace(/\.\s*$/,"")).replace(/\.(?! )/,"")).indexOf("/"),s=t.indexOf("-")}}var m,f,h="",d="",g={};if('"'===(t=t.replace(/([A-Za-z])\./g,"$1")).slice(0,1)&&'"'===t.slice(-1))return g.literal=t.slice(1,-1),g;-1<i&&-1<s?3<t.split("/").length?(m="-",f="/",e=(t=t.replace(/\_/g,"-")).split(U)):(m="/",f="-",e=(t=t.replace(/\_/g,"/")).split(B)):(f=m="-",e=(t=(t=t.replace(/\//g,"-")).replace(/\_/g,"-")).split(M));var b=[];for(u=0,c=e.length;u<c;u++){var _;(_=e[u].match(/^\s*([\-\/]|[^\-\/\~\?0-9]+|[\-~?0-9]+)\s*$/))&&b.push(_[1])}var y=b.indexOf(m),v=[],x=!1;-1<y?(v.push([0,y]),v.push([y+1,b.length]),x=!0):v.push([0,b.length]);var w="";for(u=0,c=v.length;u<c;u++){var A=v[u],E=b.slice(A[0],A[1]);t:for(var j=0,O=E.length;j<O;j++){var S=E[j];if(-1<S.indexOf(f))this._parseNumericDate(g,f,w,S);else if(S.match(/[0-9]{4}/))g["year"+w]=S.replace(/^0*/,"");else{for(var k=0,I=this.monthRexes.length;k<I;k++)if(S.toLocaleLowerCase().match(this.monthRexes[k])){g["month"+w]=""+(parseInt(k,10)+1);continue t}S.match(/^[0-9]+$/)&&(h=S),S.toLocaleLowerCase().match(/^bc/)&&h?(g["year"+w]=""+-1*h,h=""):S.toLocaleLowerCase().match(/^ad/)&&h?(g["year"+w]=""+h,h=""):"~"===S||"?"===S||"c"===S||S.match(/^cir/)?g.circa="1":!S.toLocaleLowerCase().match(/(?:mic|tri|hil|eas)/)||g["season"+w]||(d=S)}}h&&(g["day"+w]=h,h=""),d&&!g["season"+w]&&(g["season"+w]=d,d=""),w="_end"}if(x)for(j=0,O=wt.DATE_PARTS_ALL.length;j<O;j++){var T=wt.DATE_PARTS_ALL[j];g[T]&&!g[T+"_end"]?g[T+"_end"]=g[T]:!g[T]&&g[T+"_end"]&&(g[T]=g[T+"_end"])}(!g.year||g.year&&g.day&&!g.month)&&(g={literal:r});var N=["year","month","day","year_end","month_end","day_end"];for(u=0,c=N.length;u<c;u++){var C=N[u];"string"==typeof g[C]&&g[C].match(/^[0-9]+$/)&&(g[C]=parseInt(g[C],10))}return n&&-1<Object.keys(g).indexOf("year")&&(g.year=-1*g.year),g},this.parseDateToArray=function(t){return this.convertDateObjectToArray(this.parseDateToObject(t))},this.parseDateToString=function(t){return this.convertDateObjectToString(this.parseDateToObject(t))},this.parse=function(t){return this.parseDateToObject(t)},this.setOrderMonthDay(),this.resetDateParserMonths()},(e.exports=wt).Engine=function(t,e,r,i){var s,n;this.processor_version=wt.PROCESSOR_VERSION,this.csl_version="1.0",(this.sys=t).variableWrapper&&(wt.VARIABLE_WRAPPER_PREPUNCT_REX=new RegExp("^(["+[" "].concat(wt.SWAPPING_PUNCTUATION).join("")+"]*)(.*)")),wt.retrieveStyleModule&&(this.sys.retrieveStyleModule=wt.retrieveStyleModule),wt.getAbbreviation&&(this.sys.getAbbreviation=wt.getAbbreviation),this.sys.stringCompare&&(wt.stringCompare=this.sys.stringCompare),this.sys.AbbreviationSegments=wt.AbbreviationSegments,this.parallel=new wt.Parallel(this),this.transform=new wt.Transform(this),this.setParseNames=function(t){this.opt["parse-names"]=t},this.opt=new wt.Engine.Opt,this.tmp=new wt.Engine.Tmp,this.build=new wt.Engine.Build,this.fun=new wt.Engine.Fun(this),this.configure=new wt.Engine.Configure,this.citation_sort=new wt.Engine.CitationSort,this.bibliography_sort=new wt.Engine.BibliographySort,this.citation=new wt.Engine.Citation(this),this.bibliography=new wt.Engine.Bibliography,this.output=new wt.Output.Queue(this),this.dateput=new wt.Output.Queue(this),this.cslXml=wt.setupXml(e),(this.opt.development_extensions.csl_reverse_lookup_support||this.sys.csl_reverse_lookup_support)&&(this.build.cslNodeId=0,this.setCslNodeIds=function(t,e){var r=this.cslXml.children(t);this.cslXml.setAttribute(t,"cslid",this.build.cslNodeId),this.opt.nodenames.push(e),this.build.cslNodeId+=1;for(var i=0,s=this.cslXml.numberofnodes(r);i<s;i+=1)(e=this.cslXml.nodename(r[i]))&&this.setCslNodeIds(r[i],e)},this.setCslNodeIds(this.cslXml.dataObj,"style")),this.cslXml.addMissingNameNodes(this.cslXml.dataObj),this.cslXml.addInstitutionNodes(this.cslXml.dataObj),this.cslXml.insertPublisherAndPlace(this.cslXml.dataObj),this.cslXml.flagDateMacros(this.cslXml.dataObj),"undefined"==typeof this.cslXml.attributes(this.cslXml.dataObj)["@sort-separator"]&&this.cslXml.setAttribute(this.cslXml.dataObj,"sort-separator",", "),this.opt["initialize-with-hyphen"]=!0,this.setStyleAttributes(),this.opt.xclass=this.cslXml.getAttributeValue(this.cslXml.dataObj,"class"),this.opt["class"]=this.opt.xclass,this.opt.styleID=this.cslXml.getStyleId(this.cslXml.dataObj),this.opt.styleName=this.cslXml.getStyleId(this.cslXml.dataObj,!0),"1.1m"===this.opt.version.slice(0,4)&&(this.opt.development_extensions.static_statute_locator=!0,this.opt.development_extensions.handle_parallel_articles=!0,this.opt.development_extensions.main_title_from_short_title=!0,this.opt.development_extensions.rtl_support=!0,this.opt.development_extensions.expect_and_symbol_form=!0,this.opt.development_extensions.require_explicit_legal_case_title_short=!0,this.opt.development_extensions.force_jurisdiction=!0),r&&(r=r.replace("_","-"),r=wt.normalizeLocaleStr(r)),this.opt["default-locale"][0]&&(this.opt["default-locale"][0]=this.opt["default-locale"][0].replace("_","-"),this.opt["default-locale"][0]=wt.normalizeLocaleStr(this.opt["default-locale"][0])),r&&i&&(this.opt["default-locale"]=[r]),r&&!i&&this.opt["default-locale"][0]&&(r=this.opt["default-locale"][0]),0===this.opt["default-locale"].length&&(r||(r="en-US"),this.opt["default-locale"].push("en-US")),r||(r=this.opt["default-locale"][0]),s=wt.localeResolve(r),this.opt.lang=s.best,this.opt["default-locale"][0]=s.best,this.locale={},this.opt["default-locale-sort"]||(this.opt["default-locale-sort"]=this.opt["default-locale"][0]),-1<"dale|".localeCompare("daleb",this.opt["default-locale-sort"])?this.opt.sort_sep="@":this.opt.sort_sep="|",this.localeConfigure(s),this.locale[this.opt.lang].opts["skip-words-regexp"]=(n=(n=this.locale[this.opt.lang].opts["skip-words"]).slice(),new RegExp("(?:(?:[?!:]*\\s+|-|^)(?:"+n.join("|")+")(?=[!?:]*\\s+|-|$))","g")),this.output.adjust=new wt.Output.Queue.adjust(this.getOpt("punctuation-in-quote")),this.registry=new wt.Registry(this),this.macros={},this.build.area="citation";var o=this.cslXml.getNodesByName(this.cslXml.dataObj,this.build.area);this.buildTokenLists(o,this[this.build.area].tokens),this.build.area="bibliography";o=this.cslXml.getNodesByName(this.cslXml.dataObj,this.build.area);this.buildTokenLists(o,this[this.build.area].tokens),this.juris={},this.configureTokenLists(),this.disambiguate=new wt.Disambiguation(this),this.splice_delimiter=!1,this.fun.dateparser=wt.DateParser,this.fun.flipflopper=new wt.Util.FlipFlopper(this),this.setCloseQuotesArray(),this.fun.ordinalizer.init(this),this.fun.long_ordinalizer.init(this),this.fun.page_mangler=wt.Util.PageRangeMangler.getFunction(this,"page"),this.fun.year_mangler=wt.Util.PageRangeMangler.getFunction(this,"year"),this.setOutputFormat("html")},wt.Engine.prototype.setCloseQuotesArray=function(){var t;(t=[]).push(this.getTerm("close-quote")),t.push(this.getTerm("close-inner-quote")),t.push('"'),t.push("'"),this.opt.close_quotes_array=t},wt.makeBuilder=function(s,e){var r=[];function n(t){wt.XmlToToken.call(t,s,wt.START,e,r)}function o(t){wt.XmlToToken.call(t,s,wt.END,e,r)}function a(t){wt.XmlToToken.call(t,s,wt.SINGLETON,e,r)}return function t(e){var r;if(s.cslXml.numberofnodes(s.cslXml.children(e))){n(r=e);for(var i=0;i<s.cslXml.numberofnodes(s.cslXml.children(r));i+=1)e=s.cslXml.children(r)[i],null!==s.cslXml.nodename(e)&&("date"===s.cslXml.nodename(e)&&(wt.Util.fixDateNode.call(s,r,i,e),e=s.cslXml.children(r)[i]),t(e));o(r)}else a(e)}},wt.Engine.prototype.buildTokenLists=function(t,e){this.cslXml.getNodeValue(t)&&wt.makeBuilder(this,e)("undefined"==typeof t.length?t:t[0])},wt.Engine.prototype.setStyleAttributes=function(){var t,e,r={};for(e in r.name=this.cslXml.nodename(this.cslXml.dataObj),t=this.cslXml.attributes(this.cslXml.dataObj))t.hasOwnProperty(e)&&wt.Attributes[e].call(r,this,t[e])},wt.Engine.prototype.getTerm=function(t,e,r,i,s,n){var o;t&&t.match(/[A-Z]/)&&t===t.toUpperCase()&&(wt.debug("Warning: term key is in uppercase form: "+t),t=t.toLowerCase()),o=n?this.opt["default-locale"][0]:this.opt.lang;var a=wt.Engine.getField(wt.LOOSE,this.locale[o].terms,t,e,r,i);if(a||"range-delimiter"!==t||(a="\u2013"),void 0===a){if(s===wt.STRICT)throw'Error in getTerm: term "'+t+'" does not exist.';s===wt.TOLERANT&&(a="")}return a&&(this.tmp.cite_renders_content=!0),a},wt.Engine.prototype.getDate=function(t,e){var r;return r=e?this.opt["default-locale"]:this.opt.lang,!!this.locale[r].dates[t]&&this.locale[r].dates[t]},wt.Engine.prototype.getOpt=function(t){return"undefined"!=typeof this.locale[this.opt.lang].opts[t]&&this.locale[this.opt.lang].opts[t]},wt.Engine.prototype.getVariable=function(t,e,r,i){return wt.Engine.getField(wt.LOOSE,t,e,r,i)},wt.Engine.prototype.getDateNum=function(t,e){return void 0===t?0:t[e]},wt.Engine.getField=function(t,e,r,i,s,n){var o,a,l,u,c,p;if(o="","undefined"==typeof e[r]){if(t===wt.STRICT)throw'Error in getField: term "'+r+'" does not exist.';return undefined}for(p=n&&e[r][n]?e[r][n]:e[r],a=[],"symbol"===i?a=["symbol","short"]:"verb-short"===i?a=["verb-short","verb"]:"long"!==i&&(a=[i]),c=(a=a.concat(["long"])).length,u=0;u<c;u+=1)if(l=a[u],"string"==typeof p||"number"==typeof p)o=p;else if("undefined"!=typeof p[l]){o="string"==typeof p[l]||"number"==typeof p[l]?p[l]:"number"==typeof s?p[l][s]:p[l][0];break}return o},wt.Engine.prototype.configureTokenLists=function(){var t,e;for(e=wt.AREAS.length,t=0;t<e;t+=1){var r=this[wt.AREAS[t]].tokens;this.configureTokenList(r)}return this.version=wt.version,this.state},wt.Engine.prototype.configureTokenList=function(t){var e,r,i,s,n,o;for(e=["year","month","day"],s=t.length-1;-1<s;s+=-1){if("date"===(r=t[s]).name&&wt.END===r.tokentype&&(i=[]),"date-part"===r.name&&r.strings.name)for(o=e.length,n=0;n<o;n+=1)e[n]===r.strings.name&&i.push(r.strings.name);"date"===r.name&&wt.START===r.tokentype&&(i.reverse(),r.dateparts=i),r.next=s+1,r.name&&wt.Node[r.name].configure&&wt.Node[r.name].configure.call(r,this,s)}},wt.Engine.prototype.retrieveItems=function(t){var e;e=[];for(var r=0,i=t.length;r<i;r+=1)e.push(this.retrieveItem(""+t[r]));return e},wt.ITERATION=0,wt.Engine.prototype.retrieveItem=function(t){var e,r;if(this.tmp.loadedItemIDs[t])return this.registry.refhash[t];if(this.tmp.loadedItemIDs[t]=!0,this.opt.development_extensions.normalize_lang_keys_to_lowercase&&"boolean"==typeof this.opt.development_extensions.normalize_lang_keys_to_lowercase){for(var i=0,s=this.opt["default-locale"].length;i<s;i+=1)this.opt["default-locale"][i]=this.opt["default-locale"][i].toLowerCase();for(i=0,s=this.opt["locale-translit"].length;i<s;i+=1)this.opt["locale-translit"][i]=this.opt["locale-translit"][i].toLowerCase();for(i=0,s=this.opt["locale-translat"].length;i<s;i+=1)this.opt["locale-translat"][i]=this.opt["locale-translat"][i].toLowerCase();this.opt.development_extensions.normalize_lang_keys_to_lowercase=100}if(wt.ITERATION+=1,e=JSON.parse(JSON.stringify(this.sys.retrieveItem(""+t))),this.opt.development_extensions.normalize_lang_keys_to_lowercase){if(e.multi){if(e.multi._keys)for(var n in e.multi._keys)for(var o in e.multi._keys[n])o!==o.toLowerCase()&&(e.multi._keys[n][o.toLowerCase()]=e.multi._keys[n][o],delete e.multi._keys[n][o]);if(e.multi.main)for(var n in e.multi.main)e.multi.main[n]=e.multi.main[n].toLowerCase()}for(i=0,s=wt.CREATORS.length;s<i;i+=1){var a=wt.CREATORS[i];if(e[a]&&e[a].multi)for(var l=0,u=e[a].length;l<u;l+=1){var c=e[a][l];if(c.multi){if(c.multi._key)for(var o in c.multi._key)o!==o.toLowerCase()&&(c.multi._key[o.toLowerCase()]=c.multi._key[o],delete c.multi._key[o]);c.multi.main&&(c.multi.main=c.multi.main.toLowerCase())}}}}if(e.language){var p=e.language.split("<");0<p.length&&(e["language-name"]=p[0]),2===p.length&&(e["language-name-original"]=p[1])}e.page&&(e["page-first"]=e.page,"\\"!==(r=(""+e.page).split(/\s*(?:&|, |-|\u2013)\s*/))[0].slice(-1)&&(e["page-first"]=r[0]));this.opt.development_extensions.field_hack&&e.note&&wt.parseNoteFieldHacks(e,!1,this.opt.development_extensions.allow_field_hack_date_override);for(i=1,s=wt.DATE_VARIABLES.length;i<s;i+=1){var m=e[wt.DATE_VARIABLES[i]];m&&(this.opt.development_extensions.raw_date_parsing&&m.raw&&(m=this.fun.dateparser.parseDateToObject(m.raw)),e[wt.DATE_VARIABLES[i]]=this.dateParseArray(m))}if(this.opt.development_extensions.static_statute_locator&&e.type&&-1<["bill","gazette","legislation","regulation","treaty"].indexOf(e.type)){var f,h=["type","title","jurisdiction","genre","volume","container-title"],d=[];for(i=0,s=h.length;i<s;i+=1)e[f=h[i]]&&d.push(e[f]);for(i=0,(h=["original-date","issued"]).length;i<s;i+=1)if(e[f=h[i]]&&e[f].year){var g=e[f].year;d.push(g);break}e.legislation_id=d.join("::")}this.opt.development_extensions.force_jurisdiction&&"string"==typeof e.authority&&(e.authority=[{literal:e.authority}]),e["title-short"]||(e["title-short"]=e.shortTitle),this.opt.development_extensions.main_title_from_short_title&&wt.extractTitleAndSubtitle(e);var b=-1<["bill","legal_case","legislation","gazette","regulation"].indexOf(e.type);if(this.opt.development_extensions.force_jurisdiction&&b&&(e.jurisdiction||(e.jurisdiction="us")),!b&&e.title&&this.sys.getAbbreviation){if(e.jurisdiction||!0,this.sys.normalizeAbbrevsKey)var _=this.sys.normalizeAbbrevsKey(e.title);else _=e.title;var y=this.transform.loadAbbreviation(e.jurisdiction,"title",_,e.type);this.transform.abbrevs[y].title&&this.transform.abbrevs[y].title[_]&&(e["title-short"]=this.transform.abbrevs[y].title[_])}if(e["container-title-short"]||(e["container-title-short"]=e.journalAbbreviation),e["container-title"]&&this.sys.getAbbreviation){if(this.sys.normalizeAbbrevsKey)_=this.sys.normalizeAbbrevsKey(e["container-title"]);else _=e["container-title"];y=this.transform.loadAbbreviation(e.jurisdiction,"container-title",_);this.transform.abbrevs[y]["container-title"]&&this.transform.abbrevs[y]["container-title"][_]&&(e["container-title-short"]=this.transform.abbrevs[y]["container-title"][_])}return e.jurisdiction&&(e.country=e.jurisdiction.split(":")[0]),this.registry.refhash[t]=e},wt.Engine.prototype.setOpt=function(t,e,r){"style"===t.name||"cslstyle"===t.name?(this.opt.inheritedAttributes[e]=r,this.citation.opt.inheritedAttributes[e]=r,this.bibliography.opt.inheritedAttributes[e]=r):-1<["citation","bibliography"].indexOf(t.name)?this[t.name].opt.inheritedAttributes[e]=r:t.strings[e]=r},wt.Engine.prototype.inheritOpt=function(t,e,r,i){if("undefined"!=typeof t.strings[e])return t.strings[e];var s=this[this.tmp.root].opt.inheritedAttributes[r||e];return void 0!==s?s:i},(e.exports=wt).Engine.prototype.remapSectionVariable=function(t){for(var e=0,r=t.length;e<r;e+=1){var i=t[e][0],s=t[e][1];if(-1<["bill","gazette","legislation","regulation","treaty"].indexOf(i.type)){if(s.locator)s.locator=s.locator.trim(),(o=s.locator.match(wt.STATUTE_SUBDIV_PLAIN_REGEX_FRONT))||(s.label?s.locator=wt.STATUTE_SUBDIV_STRINGS_REVERSE[s.label]+" "+s.locator:s.locator="p. "+s.locator);var n=null;if(i.section)i.section=i.section.trim(),(o=i.section.match(wt.STATUTE_SUBDIV_PLAIN_REGEX_FRONT))?n=o[0].trim():(i.section="sec. "+i.section,n="sec.");if(i.section)if(s.locator){var o,a=" ";(o=s.locator.match(/^([^ ]*)\s*(.*)/))?("p."===o[1]&&"p."!==n&&(s.locator=o[2]),-1<["[","(",".",",",";",":","?"].indexOf(s.locator.slice(0,1))&&(a="")):a="",s.locator=i.section+a+s.locator}else s.locator=i.section;s.label=""}}},wt.Engine.prototype.setNumberLabels=function(t){if(t.number&&-1<["bill","gazette","legislation","regulation","treaty"].indexOf(t.type)&&this.opt.development_extensions.static_statute_locator&&!this.tmp.shadow_numbers.number){this.tmp.shadow_numbers.number={},this.tmp.shadow_numbers.number.values=[],this.tmp.shadow_numbers.number.plural=0,this.tmp.shadow_numbers.number.numeric=!1,this.tmp.shadow_numbers.number.label=!1;var e=""+t.number,r=(e=e.split("\\").join("")).split(/\s+/)[0],i=wt.STATUTE_SUBDIV_STRINGS[r];if(i){var s=e.match(wt.STATUTE_SUBDIV_GROUPED_REGEX),n=e.split(wt.STATUTE_SUBDIV_PLAIN_REGEX);if(1<n.length){for(var o=[],a=1,l=n.length;a<l;a+=1){s[a-1].replace(/^\s*/,"");o.push(n[a].replace(/\s*$/,"").replace(/^\s*/,""))}e=o.join(" ")}else e=n[0];this.tmp.shadow_numbers.number.label=i,this.tmp.shadow_numbers.number.values.push(["Blob",e,!1]),this.tmp.shadow_numbers.number.numeric=!1}else this.tmp.shadow_numbers.number.values.push(["Blob",e,!1]),this.tmp.shadow_numbers.number.numeric=!0}},(e.exports=wt).substituteOne=function(r){return function(t,e){return e?r.replace("%%STRING%%",e):""}},wt.substituteTwo=function(e){return function(t){var r=e.replace("%%PARAM%%",t);return function(t,e){return e?r.replace("%%STRING%%",e):""}}},wt.Mode=function(t){var e,r,i,s,n,o;for(i in e={},r=wt.Output.Formats[t])if("@"===i.slice(0,1)){if(s=!1,n=r[i],o=i.split("/"),"string"==typeof n&&-1<n.indexOf("%%STRING%%"))s=-1<n.indexOf("%%PARAM%%")?wt.substituteTwo(n):wt.substituteOne(n);else if("boolean"!=typeof n||n){if("function"!=typeof n)throw"CSL.Compiler: Bad "+t+" config entry for "+i+": "+n;s=n}else s=wt.Output.Formatters.passthrough;1===o.length?e[o[0]]=s:2===o.length&&(e[o[0]]||(e[o[0]]={}),e[o[0]][o[1]]=s)}else e[i]=r[i];return e},wt.setDecorations=function(t,e){var r,i;for(i in r=[],wt.FORMAT_KEY_SEQUENCE){var s;e[s=wt.FORMAT_KEY_SEQUENCE[i]]&&(r.push([s,e[s]]),delete e[s])}return r},wt.Doppeler=function(t,n){this.split=function(t){n&&(t=n(t));var e=t.match(o);if(!e)return{tags:[],strings:[t]};for(var r=t.split(a),i=e.length-1;-1<i;i--){var s=e[i];"'"===s&&0<r[i+1].length&&(r[i+1]=e[i]+r[i+1],e[i]="")}return{tags:e,strings:r,origStrings:r.slice()}},this.join=function(t){for(var e=t.strings.slice(-1),r=t.tags.length-1;-1<r;r--)e.push(t.tags[r]),e.push(t.strings[r]);return e.reverse(),e.join("")};var o=new RegExp("("+t+")","g"),a=new RegExp(t,"g")},wt.Engine.prototype.normalDecorIsOrphan=function(t,e){if("normal"===e[1]){for(var r,i=!1,s=(r="citation"===this.tmp.area?[this.citation.opt.layout_decorations].concat(t.alldecor):t.alldecor).length-1;-1<s;s+=-1)for(var n=r[s].length-1;-1<n;n+=-1)r[s][n][0]===e[0]&&"normal"!==r[s][n][1]&&(i=!0);if(!i)return!0}return!1},(e.exports=wt).Engine.prototype.getCitationLabel=function(t){var e="",r=this.getTrigraphParams(),i=r[0],s=this.getTerm("reference","short",0);void 0===s&&(s="reference"),s=(s=s.replace(".","")).slice(0,1).toUpperCase()+s.slice(1);for(var n=0,o=wt.CREATORS.length;n<o;n+=1){var a=wt.CREATORS[n];if(t[a]){var l=t[a];i=l.length>r.length?r[r.length-1]:r[l.length-1];for(var u=0,c=l.length;u<c&&u!==i.authors.length;u+=1){var p=this.nameOutput.getName(l[u],"locale-translit",!0).name;p&&p.family?s=(s=p.family).replace(/^([ \'\u2019a-z]+\s+)/,""):p&&p.literal&&(s=p.literal);var m=s.toLowerCase().match(/^(a\s+|the\s+|an\s+)/);if(m&&(s=s.slice(m[1].length)),!(s=s.replace(wt.ROMANESQUE_NOT_REGEXP,"")))break;1<(s=s.slice(0,i.authors[u])).length?s=s.slice(0,1).toUpperCase()+s.slice(1).toLowerCase():1===s.length&&(s=s.toUpperCase()),e+=s}break}}if(!e&&t.title){var f=this.locale[this.opt.lang].opts["skip-words"],h=t.title.split(/\s+/);for(n=h.length-1;-1<n;n--)-1<f.indexOf(h[n])&&(h=h.slice(0,n).concat(h.slice(n+1)));var d=h.join("");1<(d=d.slice(0,r[0].authors[0])).length?d=d.slice(0,1).toUpperCase()+d.slice(1).toLowerCase():1===d.length&&(d=d.toUpperCase()),e=d}var g="0000";return t.issued&&t.issued.year&&(g=""+t.issued.year),e+=g=g.slice(-1*i.year)},wt.Engine.prototype.getTrigraphParams=function(){var t=[],e=this.opt.trigraph.split(":");if(!this.opt.trigraph||"A"!==this.opt.trigraph.slice(0,1))throw"Bad trigraph definition: "+this.opt.trigraph;for(var r=0,i=e.length;r<i;r+=1){for(var s=e[r],n={authors:[],year:0},o=0,a=s.length;o<a;o+=1)switch(s.slice(o,o+1)){case"A":n.authors.push(1);break;case"a":n.authors[n.authors.length-1]+=1;break;case"0":n.year+=1;break;default:throw"Invalid character in trigraph definition: "+this.opt.trigraph}t.push(n)}return t},(e.exports=wt).Engine.prototype.setOutputFormat=function(t){this.opt.mode=t,this.fun.decorate=wt.Mode(t),this.output[t]||(this.output[t]={},this.output[t].tmp={})},wt.Engine.prototype.getSortFunc=function(){return function(t,e){return t=t.split("-"),e=e.split("-"),t.length<e.length?1:t.length>e.length?-1:(t=t.slice(-1)[0],e=e.slice(-1)[0],t.length<e.length?1:t.length>e.length?-1:0)}},wt.Engine.prototype.setLangTagsForCslSort=function(t){var e,r;if(t)for(this.opt["locale-sort"]=[],e=0,r=t.length;e<r;e+=1)this.opt["locale-sort"].push(t[e]);this.opt["locale-sort"].sort(this.getSortFunc())},wt.Engine.prototype.setLangTagsForCslTransliteration=function(t){var e,r;if(this.opt["locale-translit"]=[],t)for(e=0,r=t.length;e<r;e+=1)this.opt["locale-translit"].push(t[e]);this.opt["locale-translit"].sort(this.getSortFunc())},wt.Engine.prototype.setLangTagsForCslTranslation=function(t){var e,r;if(this.opt["locale-translat"]=[],t)for(e=0,r=t.length;e<r;e+=1)this.opt["locale-translat"].push(t[e]);this.opt["locale-translat"].sort(this.getSortFunc())},wt.Engine.prototype.setLangPrefsForCites=function(t,e){var r=this.opt["cite-lang-prefs"];e||(e=function(t){return t.toLowerCase()});for(var i=["Persons","Institutions","Titles","Journals","Publishers","Places"],s=0,n=i.length;s<n;s+=1){var o=e(i[s]),a=i[s].toLowerCase();if(t[o]){for(var l=[];1<t[o].length;)l.push(t[o].pop());var u={orig:1,translit:2,translat:3};for(2===l.length&&u[l[0]]<u[l[1]]&&l.reverse();l.length;)t[o].push(l.pop());for(var c=r[a];c.length;)c.pop();for(var p=0,m=t[o].length;p<m;p+=1)c.push(t[o][p])}}},wt.Engine.prototype.setLangPrefsForCiteAffixes=function(t){if(t&&48===t.length){for(var e,r=this.opt.citeAffixes,i=0,s=["persons","institutions","titles","journals","publishers","places"],n=["translit","orig","translit","translat"],o=0,a=s.length;o<a;o+=1)for(var l=0,u=n.length;l<u;l+=1)e="",i%8==4&&(r[s[o]]["locale-"+n[l]].prefix||r[s[o]]["locale-"+n[l]].suffix)||(e=t[i]?t[i]:"",r[s[o]]["locale-"+n[l]].prefix=e,e=t[i]?t[i+1]:"",r[s[o]]["locale-"+n[l]].suffix=e),i+=2;this.opt.citeAffixes=r}},wt.Engine.prototype.setAutoVietnameseNamesOption=function(t){this.opt["auto-vietnamese-names"]=!!t},wt.Engine.prototype.setAbbreviations=function(t){this.sys.setAbbreviations&&this.sys.setAbbreviations(t)},wt.Engine.prototype.setSuppressTrailingPunctuation=function(t){this.citation.opt.suppressTrailingPunctuation=!!t},(e.exports=wt).Output={},wt.Output.Queue=function(t){this.levelname=["top"],this.state=t,this.queue=[],this.empty=new wt.Token("empty");var e={};e.empty=this.empty,this.formats=new wt.Stack(e),this.current=new wt.Stack(this.queue)},wt.Output.Queue.prototype.pop=function(){var t=this.current.value();return t.length?t.pop():t.blobs.pop()},wt.Output.Queue.prototype.getToken=function(t){return this.formats.value()[t]},wt.Output.Queue.prototype.mergeTokenStrings=function(t,e){var r,i,s;if(s=r=this.formats.value()[t],i=this.formats.value()[e]){r||((r=new wt.Token(t,wt.SINGLETON)).decorations=[]),s=new wt.Token(t,wt.SINGLETON);var n="";for(var n in r.strings)r.strings.hasOwnProperty(n)&&(s.strings[n]=r.strings[n]);for(var n in i.strings)i.strings.hasOwnProperty(n)&&(s.strings[n]=i.strings[n]);s.decorations=r.decorations.concat(i.decorations)}return s},wt.Output.Queue.prototype.addToken=function(t,e,r){var i,s;if(i=new wt.Token("output"),"string"==typeof r&&(r=this.formats.value()[r]),r&&r.strings){for(s in r.strings)r.strings.hasOwnProperty(s)&&(i.strings[s]=r.strings[s]);i.decorations=r.decorations}"string"==typeof e&&(i.strings.delimiter=e),this.formats.value()[t]=i},wt.Output.Queue.prototype.pushFormats=function(t){t||(t={}),t.empty=this.empty,this.formats.push(t)},wt.Output.Queue.prototype.popFormats=function(t){this.formats.pop()},wt.Output.Queue.prototype.startTag=function(t,e){var r={};this.state.tmp["doing-macro-with-date"]&&this.state.tmp.extension&&(e=this.empty,t="empty"),r[t]=e,this.pushFormats(r),this.openLevel(t)},wt.Output.Queue.prototype.endTag=function(t){this.closeLevel(t),this.popFormats()},wt.Output.Queue.prototype.openLevel=function(t,e){var r,i;if("object"===W(t))r=new wt.Blob(undefined,t);else if(void 0===t)r=new wt.Blob(undefined,this.formats.value().empty,"empty");else{if(!this.formats.value()||!this.formats.value()[t])throw'CSL processor error: call to nonexistent format token "'+t+'"';r=new wt.Blob(undefined,this.formats.value()[t],t)}i=this.current.value(),!this.state.tmp.just_looking&&this.checkNestedBrace&&(r.strings.prefix=this.checkNestedBrace.update(r.strings.prefix)),i.push(r),this.current.push(r)},wt.Output.Queue.prototype.closeLevel=function(t){t&&t!==this.current.value().levelname&&wt.error("Level mismatch error: wanted "+t+" but found "+this.current.value().levelname);var e=this.current.pop();!this.state.tmp.just_looking&&this.checkNestedBrace&&(e.strings.suffix=this.checkNestedBrace.update(e.strings.suffix))},wt.Output.Queue.prototype.append=function(t,e,r,i,s){var n,o,a,l=!0;if(r&&(i=!0),this.state.tmp["doing-macro-with-date"]&&!r){if("macro-with-date"!==e)return!1;"macro-with-date"===e&&(e="empty")}if(void 0===t)return!1;if("number"==typeof t&&(t=""+t),!r&&this.state.tmp.element_trace&&"suppress-me"===this.state.tmp.element_trace.value())return!1;if(o=!1,e?"literal"===e?l=!(n=!0):n="string"==typeof e?this.formats.value()[e]:e:n=this.formats.value().empty,!n)throw"CSL processor error: unknown format token name: "+e;if(n.strings&&"undefined"==typeof n.strings.delimiter&&(n.strings.delimiter=""),"string"==typeof t&&t.length&&(t=t.replace(/ ([:;?!\u00bb])/g,"\u202f$1").replace(/\u00ab /g,"\xab\u202f"),this.last_char_rendered=t.slice(-1),t=t.replace(/\s+'/g," '"),r||(t=t.replace(/^'/g," '")),i?r&&(this.state.tmp.term_predecessor_name=!0):(this.state.tmp.term_predecessor=!0,this.state.tmp.in_cite_predecessor=!0)),o=new wt.Blob(t,n),void 0===(a=this.current.value())&&0===this.current.mystack.length&&(this.current.mystack.push([]),a=this.current.value()),"string"==typeof o.blobs&&(i?r&&(this.state.tmp.term_predecessor_name=!0):(this.state.tmp.term_predecessor=!0,this.state.tmp.in_cite_predecessor=!0)),r||this.state.parallel.AppendBlobPointer(a),"string"==typeof t){if("string"==typeof o.blobs&&" "!==o.blobs.slice(0,1)){for(var u="",c=o.blobs;-1<wt.TERMINAL_PUNCTUATION.indexOf(c.slice(0,1));)u+=c.slice(0,1),c=c.slice(1);c&&u&&(o.strings.prefix=o.strings.prefix+u,o.blobs=c)}o.strings["text-case"]&&(o.blobs=wt.Output.Formatters[o.strings["text-case"]](this.state,t)),this.state.tmp.strip_periods&&!s&&(o.blobs=o.blobs.replace(/\.([^a-z]|$)/g,"$1"));for(var p=o.decorations.length-1;-1<p;p+=-1)"@quotes"===o.decorations[p][0]&&"false"!==o.decorations[p][1]&&(o.punctuation_in_quote=this.state.getOpt("punctuation-in-quote")),o.blobs.match(wt.ROMANESQUE_REGEXP)||"@font-style"===o.decorations[p][0]&&(o.decorations=o.decorations.slice(0,p).concat(o.decorations.slice(p+1)));a.push(o),this.state.fun.flipflopper.processTags(o)}else l?a.push(o):a.push(t);return!0},wt.Output.Queue.prototype.string=function(t,e,r){var i,s=wt.getSafeEscape(this.state),n=e.slice(),o=[];if(0===n.length)return o;var a,l,u,c,p="";r?p=r.strings.delimiter:(t.tmp.count_offset_characters=!1,t.tmp.offset_characters=0),r&&r.new_locale&&(r.old_locale=t.opt.lang,t.opt.lang=r.new_locale);for(var m=0,f=n.length;m<f;m+=1){if((a=n[m]).strings.first_blob&&(t.tmp.count_offset_characters=a.strings.first_blob),"string"==typeof a.blobs){if("number"==typeof a.num)o.push(a);else if(a.blobs){a.particle&&(a.blobs=a.particle+a.blobs,a.particle="");var h=(i=s(a.blobs)).length;if(!t.tmp.suppress_decorations)for(b=0,_=a.decorations.length;b<_;b+=1)"@showid"!==(c=a.decorations[b])[0]&&(t.normalDecorIsOrphan(a,c)||(i=t.fun.decorate[c[0]][c[1]].call(a,t,i,c[2])));if(i&&i.length){if(i=s(a.strings.prefix)+i+s(a.strings.suffix),(t.opt.development_extensions.csl_reverse_lookup_support||t.sys.csl_reverse_lookup_support)&&!t.tmp.suppress_decorations)for(b=0,_=a.decorations.length;b<_;b+=1)"@showid"===(c=a.decorations[b])[0]&&(i=t.fun.decorate[c[0]][c[1]].call(a,t,i,c[2]));o.push(i),t.tmp.count_offset_characters&&(t.tmp.offset_characters+=h+a.strings.suffix.length+a.strings.prefix.length)}}}else if(a.blobs.length){var d=t.output.string(t,a.blobs,a);if(r&&"string"!==d&&1<d.length&&a.strings.delimiter)for(var g=!1,b=0,_=d.length;b<_;b++)"string"!=typeof d[b]?g=!0:g&&(d[b]=a.strings.delimiter+d[b]);o=o.concat(d)}a.strings.first_blob&&t.registry.registry[a.strings.first_blob]&&(t.registry.registry[a.strings.first_blob].offset=t.tmp.offset_characters,t.tmp.count_offset_characters=!1)}for(m=0,f=o.length-1;m<f;m+=1)"number"!=typeof o[m].num||"number"!=typeof o[m+1].num||o[m+1].UGLY_DELIMITER_SUPPRESS_HACK||(o[m].strings.suffix=o[m].strings.suffix+(p||""),o[m+1].successor_prefix="",o[m+1].UGLY_DELIMITER_SUPPRESS_HACK=!0);var y=0;for(m=0,f=o.length;m<f;m+=1)"string"==typeof o[m]&&(y=parseInt(m,10)+1,m<o.length-1&&"object"===W(o[m+1])&&(p&&!o[m+1].UGLY_DELIMITER_SUPPRESS_HACK&&(o[m]+=s(p)),o[m+1].UGLY_DELIMITER_SUPPRESS_HACK=!0));if(r&&(r.decorations.length||r.strings.suffix))y=o.length;else if(r&&r.strings.prefix)for(m=0,f=o.length;m<f;m++)if("undefined"!=typeof o[m].num){0===(y=m)&&(o[m].strings.prefix=r.strings.prefix+o[m].strings.prefix);break}var v=t.output.renderBlobs(o.slice(0,y),p,!1,r);if(v&&r&&(r.decorations.length||r.strings.suffix||r.strings.prefix)){if(!t.tmp.suppress_decorations)for(m=0,f=r.decorations.length;m<f;m+=1)c=r.decorations[m],-1<["@cite","@bibliography","@display","@showid"].indexOf(c[0])||t.normalDecorIsOrphan(a,c)||"string"==typeof v&&(v=t.fun.decorate[c[0]][c[1]].call(r,t,v,c[2]));if(i=v,l=r.strings.suffix,i&&i.length&&(i=s(u=r.strings.prefix)+i+s(l),t.tmp.count_offset_characters&&(t.tmp.offset_characters+=u.length+l.length)),v=i,!t.tmp.suppress_decorations)for(m=0,f=r.decorations.length;m<f;m+=1)c=r.decorations[m],-1!==["@cite","@bibliography","@display","@showid"].indexOf(c[0])&&"string"==typeof v&&(v=t.fun.decorate[c[0]][c[1]].call(r,t,v,c[2]))}var x=o.slice(y,o.length);return!x.length&&v?o=[v]:x.length&&!v?o=x:v&&x.length&&(o=[v].concat(x)),void 0===r?(this.queue=[],this.current.mystack=[],this.current.mystack.push(this.queue),t.tmp.suppress_decorations&&(o=t.output.renderBlobs(o,undefined,!1))):"boolean"==typeof r&&(o=t.output.renderBlobs(o,undefined,!0)),r&&r.new_locale&&(t.opt.lang=r.old_locale),o},wt.Output.Queue.prototype.clearlevel=function(){var t,e,r;for(r=(t=this.current.value()).blobs.length,e=0;e<r;e+=1)t.blobs.pop()},wt.Output.Queue.prototype.renderBlobs=function(t,e,r,i){var s,n,o,a,l,u,c,p,m,f,h;if(h=wt.getSafeEscape(this.state),e||(e=""),s=this.state,[],o=n="",u=t.length,"citation"===this.state.tmp.area&&!this.state.tmp.just_looking&&1===u&&"object"===W(t[0])&&i)return t[0].strings.prefix=i.strings.prefix+t[0].strings.prefix,t[0].strings.suffix=t[0].strings.suffix+i.strings.suffix,t[0].decorations=t[0].decorations.concat(i.decorations),t[0].params=i.params,t[0];var d=!0;for(l=0;l<u;l+=1)t[l].checkNext?(t[l].checkNext(t[l+1],d),d=!1):d=!t[l+1]||!t[l+1].splice_prefix;var g=!0;for(l=t.length-1;0<l;l+=-1)t[l].checkLast?g&&t[l].checkLast(t[l-1])&&(g=!1):g=!0;for(u=t.length,l=0;l<u;l+=1)if(n&&(o=e),"string"==typeof(a=t[l]))n+=h(o),n+=a,s.tmp.count_offset_characters&&(s.tmp.offset_characters+=o.length);else if(r)n=n?[n,a]:[a];else if(a.status!==wt.SUPPRESS){var b=(m=a.particle?a.particle+a.num:a.formatter.format(a.num,a.gender)).replace(/<[^>]*>/g,"").length;this.append(m,"empty",!0);var _=this.pop(),y=s.tmp.count_offset_characters;if(m=this.string(s,[_],!1),s.tmp.count_offset_characters=y,a.strings["text-case"]&&(m=wt.Output.Formatters[a.strings["text-case"]](this.state,m)),m&&this.state.tmp.strip_periods&&(m=m.replace(/\.([^a-z]|$)/g,"$1")),!s.tmp.suppress_decorations)for(p=a.decorations.length,c=0;c<p;c+=1)f=a.decorations[c],s.normalDecorIsOrphan(a,f)||(m=s.fun.decorate[f[0]][f[1]].call(a,s,m,f[2]));m=h(a.strings.prefix)+m+h(a.strings.suffix);var v="";a.status===wt.END?v=h(a.range_prefix):a.status===wt.SUCCESSOR?v=h(a.successor_prefix):a.status===wt.START?v=0<l&&!a.suppress_splice_prefix?h(a.splice_prefix):"":a.status===wt.SEEN&&(v=h(a.splice_prefix)),n+=v,n+=m,s.tmp.count_offset_characters&&(s.tmp.offset_characters+=v.length+a.strings.prefix.length+b+a.strings.suffix.length)}return n},wt.Output.Queue.purgeEmptyBlobs=function(t){if("object"===W(t)&&"object"===W(t.blobs)&&t.blobs.length)for(var e=t.blobs.length-1;-1<e;e--){wt.Output.Queue.purgeEmptyBlobs(t.blobs[e]);var r=t.blobs[e];if(!r||!r.blobs||!r.blobs.length){for(var i=[];t.blobs.length-1>e;)i.push(t.blobs.pop());for(t.blobs.pop();i.length;)t.blobs.push(i.pop())}}},wt.Output.Queue.adjust=function(f){var t={";":!0,":":!0},e={".":!0,"!":!0,"?":!0};this.upward=function(t){{if(t.blobs&&"string"==typeof t.blobs)return void(h[t.strings.suffix.slice(0,1)]&&t.strings.suffix.slice(0,1)===t.blobs.slice(-1)&&(t.strings.suffix=t.strings.suffix.slice(1)));if("object"!==W(t)||"object"!==W(t.blobs)||!t.blobs.length)return}for(var e=v(t,!0),r=t.blobs.length-1;-1<r;r--){t.blobs.length;this.upward(t.blobs[r]);var i=t.strings,s=t.blobs[r].strings;if(0===r){" "===i.prefix.slice(-1)&&" "===s.prefix.slice(0,1)&&(s.prefix=s.prefix.slice(1));var n=s.prefix.slice(0,1);e||!g[n]||i.prefix||(i.prefix+=n,s.prefix=s.prefix.slice(1))}if(r===t.blobs.length-1){var n=s.suffix.slice(-1);!e&&-1<[" "].indexOf(n)&&(i.suffix.slice(0,1)!==n&&(i.suffix=n+i.suffix),s.suffix=s.suffix.slice(0,-1))}i.delimiter&&0<r&&g[i.delimiter.slice(-1)]&&i.delimiter.slice(-1)===s.prefix.slice(0,1)&&(s.prefix=s.prefix.slice(1))}},this.leftward=function(t){if("object"!==W(t)||"object"!==W(t.blobs)||!t.blobs.length)return;for(var e=t.blobs.length-1;-1<e;e--)if(this.leftward(t.blobs[e]),e<t.blobs.length-1&&!t.strings.delimiter){var r=t.blobs[e],i=r.strings.suffix.slice(-1),s=t.blobs[e+1],n=s.strings.prefix.slice(0,1),o=v(r)||v(s),a="number"==typeof i||"number"==typeof n;if(!o&&!a&&h[n]&&!a){var l=n===r.strings.suffix.slice(-1),u=!r.strings.suffix&&"string"==typeof r.blobs&&r.blobs.slice(-1)===n;l||u?s.strings.prefix=s.strings.prefix.slice(1):E(r,"suffix",s,"prefix")}}},this.downward=function(t,e){{if(t.blobs&&"string"==typeof t.blobs)return void(h[t.strings.suffix.slice(0,1)]&&t.strings.suffix.slice(0,1)===t.blobs.slice(-1)&&(t.strings.suffix=t.strings.suffix.slice(1)));if("object"!==W(t)||"object"!==W(t.blobs)||!t.blobs.length)return}for(var r=t.strings,i=0,s=t.blobs.length;i<s;i++)if(_(t.blobs[i])){!0;break}if(r.delimiter&&h[r.delimiter.slice(0,1)]){for(var n=r.delimiter.slice(0,1),i=t.blobs.length-2;-1<i;i--){var o=t.blobs[i].strings;o.suffix.slice(-1)!==n&&(o.suffix+=n)}r.delimiter=r.delimiter.slice(1)}v(t,!0),_(t);for(var i=t.blobs.length-1;-1<i;i--){var a=t.blobs[i],o=t.blobs[i].strings,l=v(a,!0),u=_(a);if(i===t.blobs.length-1){var c=r.suffix.slice(0,1),p=!1;h[c]&&!(p=w(c,a))&&f&&(p=x(a)),p&&h[c]&&(y(a)||("string"==typeof a.blobs?E(a,"blobs",t,"suffix"):E(a,"suffix",t,"suffix"),"."===r.suffix.slice(0,1)&&(o.suffix+=r.suffix.slice(0,1),r.suffix=r.suffix.slice(1)))),"\xa0"===o.suffix.slice(-1)&&" "===r.suffix.slice(0,1)&&(r.suffix=r.suffix.slice(1)),g[o.suffix.slice(0,1)]&&("string"==typeof a.blobs&&a.blobs.slice(-1)===o.suffix.slice(0,1)&&(o.suffix=o.suffix.slice(1)),o.suffix.slice(-1)===r.suffix.slice(0,1)&&(r.suffix=r.suffix.slice(0,-1))),A(t,t.strings.suffix.slice(0,1))&&(t.strings.suffix=t.strings.suffix.slice(1))}else if(r.delimiter)g[r.delimiter.slice(0,1)]&&r.delimiter.slice(0,1)===o.suffix.slice(-1)&&(t.blobs[i].strings.suffix=t.blobs[i].strings.suffix.slice(0,-1));else{var m=t.blobs[i+1].strings;_(a)||l||!g[o.suffix.slice(-1)]||o.suffix.slice(-1)!==m.prefix.slice(0,1)||(m.prefix=m.prefix.slice(1))}u||l||!h[o.suffix.slice(0,1)]||"string"!=typeof a.blobs||E(a,"blobs",a,"suffix"),this.downward(t.blobs[i])}},this.fix=function(t){if("object"!==W(t)||"object"!==W(t.blobs)||!t.blobs.length)return;for(var e,r=0,i=t.blobs.length;r<i;r++){for(var s=t.blobs[r],n=!1,o=0,a=s.decorations.length;o<a;o++){var l=s.decorations[o];"@quotes"===l[0]&&"false"!==l[1]&&(n=!0)}n&&(f?u(s):c(s)),e=this.fix(t.blobs[r]),s.blobs&&"string"==typeof s.blobs&&(e=s.blobs.slice(-1))}return e};var d={"!":{".":"!","?":"!?",":":"!",",":"!,",";":"!;"},"?":{"!":"?!",".":"?",":":"?",",":"?,",";":"?;"},".":{"!":".!","?":".?",":":".:",",":".,",";":".;"},":":{"!":"!","?":"?",".":":",",":":,",";":":;"},",":{"!":",!","?":",?",":":",:",".":",.",";":",;"},";":{"!":"!","?":"?",":":";",",":";,",".":";"}},r={},i={},h={},g={};for(var s in d)h[s]=!0,g[s]=!0,t[s]||(r[s]=!0),e[s]||(i[s]=!0);g[" "]=!0,g["\xa0"]=!0;var b={};for(var s in d)for(var n in d[s])b[n]||(b[n]={}),b[n][s]=d[s][n];function _(t){return"number"==typeof t.num||t.blobs&&1===t.blobs.length&&"number"==typeof t.blobs[0].num}function y(t){return"number"==typeof t.num||!(!t.blobs||"object"!==W(t.blobs))&&(!!y(t.blobs[t.blobs.length-1])||void 0)}function v(t,e){var r=!1,i=["@font-style","@font-variant","@font-weight","@text-decoration","@vertical-align"];if(e&&i.push("@quotes"),t.decorations)for(var s=0,n=t.decorations.length;s<n;s++)if(-1<i.indexOf(t.decorations[s][0])){r=!0;break}return r}function x(t){if(t.decorations)for(var e=0,r=t.decorations.length;e<r;e++)if("@quotes"===t.decorations[e][0]&&"false"!==t.decorations[e][1])return!0;return"object"===W(t.blobs)&&x(t.blobs[t.blobs.length-1])}function w(t,e){var r=e.strings.suffix.slice(-1);r||"string"!=typeof e.blobs||(r=e.blobs.slice(-1));var i=b[t][r];return!(!i||1!==i.length)||"object"===W(e.blobs)&&!!w(t,e.blobs[e.blobs.length-1])}function A(t,e){if(!h[e])return!1;if("string"==typeof t.blobs)return t.blobs.slice(-1)===e;var r=t.blobs[t.blobs.length-1];return!!r&&(r.strings.suffix.slice(-1)?r.strings.suffix.slice(-1)==e:A(r,e))}function E(t,e,r,i,s){var n="blobs"===e?t:t.strings,o="blobs"===i?r:r.strings,a=n[e].slice(-1),l=o[i].slice(0,1);function u(){o[i]=o[i].slice(1)}function c(){n[e]=n[e].slice(0,-1)}function p(t){o[i]=t+o[i]}function m(t){n[e]+=t}var f=s?function(){return d[a]}:function(){return b[l]};var h=s?function(){var t=d[a][l];"string"==typeof t?(c(),u(),p(t)):(p(a),c())}:function(){var t=b[l][a];"string"==typeof t?(c(),u(),m(t)):(m(l),u())};a===l?(s?c:u)():f()&&h()}function u(t){var e=t.strings.suffix.slice(0,1);if("string"==typeof t.blobs)for(;r[e];)E(t,"blobs",t,"suffix"),e=t.strings.suffix.slice(0,1);else for(;r[e];)E(t.blobs[t.blobs.length-1],"suffix",t,"suffix"),e=t.strings.suffix.slice(0,1)}function c(t){if("string"==typeof t.blobs)for(var e=t.blobs.slice(-1);i[e];)E(t,"blobs",t,"suffix",!0),e=t.blobs.slice(-1);else for(e=t.blobs[t.blobs.length-1].strings.suffix.slice(-1);i[e];)E(t.blobs[t.blobs.length-1],"suffix",t,"suffix",!0),e=t.blobs[t.blobs.length-1].strings.suffix.slice(-1)}},(e.exports=wt).Engine.Opt=function(){this.has_disambiguate=!1,this.mode="html",this.dates={},this.jurisdictions_seen={},this.suppressedJurisdictions={},this.inheritedAttributes={},this["locale-sort"]=[],this["locale-translit"]=[],this["locale-translat"]=[],this.citeAffixes={persons:{"locale-orig":{prefix:"",suffix:""},"locale-translit":{prefix:"",suffix:""},"locale-translat":{prefix:"",suffix:""}},institutions:{"locale-orig":{prefix:"",suffix:""},"locale-translit":{prefix:"",suffix:""},"locale-translat":{prefix:"",suffix:""}},titles:{"locale-orig":{prefix:"",suffix:""},"locale-translit":{prefix:"",suffix:""},"locale-translat":{prefix:"",suffix:""}},journals:{"locale-orig":{prefix:"",suffix:""},"locale-translit":{prefix:"",suffix:""},"locale-translat":{prefix:"",suffix:""}},publishers:{"locale-orig":{prefix:"",suffix:""},"locale-translit":{prefix:"",suffix:""},"locale-translat":{prefix:"",suffix:""}},places:{"locale-orig":{prefix:"",suffix:""},"locale-translit":{prefix:"",suffix:""},"locale-translat":{prefix:"",suffix:""}}},this["default-locale"]=[],this.update_mode=wt.NONE,this.bib_mode=wt.NONE,this.sort_citations=!1,this["et-al-min"]=0,this["et-al-use-first"]=1,this["et-al-use-last"]=!1,this["et-al-subsequent-min"]=!1,this["et-al-subsequent-use-first"]=!1,this["demote-non-dropping-particle"]="display-and-sort",this["parse-names"]=!0,this.citation_number_slug=!1,this.trigraph="Aaaa00:AaAa00:AaAA00:AAAA00",this.nodenames=[],this.gender={},this["cite-lang-prefs"]={persons:["orig"],institutions:["orig"],titles:["orig"],journals:["orig"],publishers:["orig"],places:["orig"],number:["orig"]},this.has_layout_locale=!1,this.development_extensions={},this.development_extensions.field_hack=!0,this.development_extensions.allow_field_hack_date_override=!0,this.development_extensions.locator_date_and_revision=!0,this.development_extensions.locator_parsing_for_plurals=!0,this.development_extensions.locator_label_parse=!0,this.development_extensions.raw_date_parsing=!0,this.development_extensions.clean_up_csl_flaws=!0,this.development_extensions.flip_parentheses_to_braces=!0,this.development_extensions.jurisdiction_subfield=!0,this.development_extensions.static_statute_locator=!1,this.development_extensions.csl_reverse_lookup_support=!1,this.development_extensions.clobber_locator_if_no_statute_section=!1,this.development_extensions.wrap_url_and_doi=!1,this.development_extensions.allow_force_lowercase=!1,this.development_extensions.handle_parallel_articles=!1,this.development_extensions.thin_non_breaking_space_html_hack=!1,this.development_extensions.apply_citation_wrapper=!1,this.development_extensions.main_title_from_short_title=!1,this.development_extensions.uppercase_subtitles=!1,this.development_extensions.normalize_lang_keys_to_lowercase=!1,this.development_extensions.strict_text_case_locales=!1,this.development_extensions.rtl_support=!1,this.development_extensions.expect_and_symbol_form=!1,this.development_extensions.require_explicit_legal_case_title_short=!1,this.development_extensions.spoof_institutional_affiliations=!1,this.development_extensions.force_jurisdiction=!1,this.development_extensions.parse_names=!0},wt.Engine.Tmp=function(){this.names_max=new wt.Stack,this.names_base=new wt.Stack,this.givens_base=new wt.Stack,this.value=[],this.namepart_decorations={},this.namepart_type=!1,this.area="citation",this.root="citation",this.extension="",this.can_substitute=new wt.Stack(0,wt.LITERAL),this.element_rendered_ok=!1,this.element_trace=new wt.Stack("style"),this.nameset_counter=0,this.group_context=new wt.Stack({term_intended:!1,variable_attempt:!1,variable_success:!1,output_tip:undefined,label_form:undefined,parallel_conditions:undefined,condition:!1,force_suppress:!1,done_vars:[]}),this.term_predecessor=!1,this.in_cite_predecessor=!1,this.jump=new wt.Stack(0,wt.LITERAL),this.decorations=new wt.Stack,this.tokenstore_stack=new wt.Stack,this.last_suffix_used="",this.last_names_used=[],this.last_years_used=[],this.years_used=[],this.names_used=[],this.taintedItemIDs={},this.taintedCitationIDs={},this.initialize_with=new wt.Stack,this.disambig_request=!1,this["name-as-sort-order"]=!1,this.suppress_decorations=!1,this.disambig_settings=new wt.AmbigConfig,this.bib_sort_keys=[],this.prefix=new wt.Stack("",wt.LITERAL),this.suffix=new wt.Stack("",wt.LITERAL),this.delimiter=new wt.Stack("",wt.LITERAL),this.cite_locales=[],this.cite_affixes={citation:!1,bibliography:!1,citation_sort:!1,bibliography_sort:!1},this.strip_periods=0,this.shadow_numbers={},this.authority_stop_last=0,this.loadedItemIDs={}},wt.Engine.Fun=function(t){this.match=new wt.Util.Match,this.suffixator=new wt.Util.Suffixator(wt.SUFFIX_CHARS),this.romanizer=new wt.Util.Romanizer,this.ordinalizer=new wt.Util.Ordinalizer(t),this.long_ordinalizer=new wt.Util.LongOrdinalizer},wt.Engine.Build=function(){this["alternate-term"]=!1,this.in_bibliography=!1,this.in_style=!1,this.skip=!1,this.postponed_macro=!1,this.layout_flag=!1,this.name=!1,this.form=!1,this.term=!1,this.macro={},this.macro_stack=[],this.text=!1,this.lang=!1,this.area="citation",this.root="citation",this.extension="",this.substitute_level=new wt.Stack(0,wt.LITERAL),this.names_level=0,this.render_nesting_level=0,this.render_seen=!1},wt.Engine.Configure=function(){this.fail=[],this.succeed=[]},wt.Engine.Citation=function(t){this.opt={inheritedAttributes:{}},this.tokens=[],this.srt=new wt.Registry.Comparifier(t,"citation_sort"),this.opt.collapse=[],this.opt["disambiguate-add-names"]=!1,this.opt["disambiguate-add-givenname"]=!1,this.opt["disambiguate-add-year-suffix"]=!1,this.opt["givenname-disambiguation-rule"]="by-cite",this.opt["near-note-distance"]=5,this.opt.topdecor=[],this.opt.layout_decorations=[],this.opt.layout_prefix="",this.opt.layout_suffix="",this.opt.layout_delimiter="",this.opt.sort_locales=[],this.opt.max_number_of_names=0,this.root="citation"},wt.Engine.Bibliography=function(){this.opt={inheritedAttributes:{}},this.tokens=[],this.opt.collapse=[],this.opt.topdecor=[],this.opt.layout_decorations=[],this.opt.layout_prefix="",this.opt.layout_suffix="",this.opt.layout_delimiter="",this.opt["line-spacing"]=1,this.opt["entry-spacing"]=1,this.opt.sort_locales=[],this.opt.max_number_of_names=0,this.root="bibliography"},wt.Engine.BibliographySort=function(){this.tokens=[],this.opt={},this.opt.sort_directions=[],this.keys=[],this.opt.topdecor=[],this.root="bibliography"},wt.Engine.CitationSort=function(){this.tokens=[],this.opt={},this.opt.sort_directions=[],this.keys=[],this.opt.topdecor=[],this.root="citation"},(e.exports=wt).Engine.prototype.previewCitationCluster=function(t,e,r,i){var s=this.opt.mode;this.setOutputFormat(i);var n=this.processCitationCluster(t,e,r,wt.PREVIEW);return this.setOutputFormat(s),n[1]},wt.Engine.prototype.appendCitationCluster=function(t){for(var e=[],r=this.registry.citationreg.citationByIndex.length,i=0;i<r;i+=1){var s=this.registry.citationreg.citationByIndex[i];e.push([""+s.citationID,s.properties.noteIndex])}return this.processCitationCluster(t,e,[])[1]},wt.Engine.prototype.processCitationCluster=function(t,e,r,i){var s,n,o,a,l,u,c,p,m,f,h,d;this.debug=!1,this.tmp.loadedItemIDs={};var g,b,_,y={bibchange:!(this.tmp.citation_errors=[])};if(this.setCitationId(t),i===wt.PREVIEW){g=this.registry.citationreg.citationByIndex.slice(),b=this.registry.reflist.slice();for(var v=e.concat([[""+t.citationID,t.properties.noteIndex]]).concat(r),x={},w=[],A=0,E=v.length;A<E;A+=1)for(n=0,o=(s=this.registry.citationreg.citationById[v[A][0]]).citationItems.length;n<o;n+=1)x[s.citationItems[n].id]=!0,w.push(""+s.citationItems[n].id);_={};for(A=0,E=b.length;A<E;A+=1)if(!x[b[A].id]){var j=this.registry.registry[b[A].id].ambig,O=this.registry.ambigcites[j];if(O)for(n=0,o=O.length;n<o;n+=1)_[O[n]]=wt.cloneAmbigConfig(this.registry.registry[O[n]].disambig)}}this.tmp.taintedCitationIDs={};var S=[],k={};for(A=0,E=t.citationItems.length;A<E;A+=1){for(var I in m={},t.citationItems[A])m[I]=t.citationItems[A][I];var T;if((p=this.retrieveItem(""+m.id)).id&&this.transform.loadAbbreviation("default","hereinafter",p.id),m=wt.parseLocator.call(this,m),this.opt.development_extensions.static_statute_locator&&this.remapSectionVariable([[p,m]]),this.opt.development_extensions.locator_label_parse)if(m.locator&&-1===["bill","gazette","legislation","regulation","treaty"].indexOf(p.type)&&(!m.label||"page"===m.label))if(T=wt.LOCATOR_LABELS_REGEXP.exec(m.locator)){var N=wt.LOCATOR_LABELS_MAP[T[2]];this.getTerm(N)&&(m.label=N,m.locator=T[3])}var C=[p,m];S.push(C),t.citationItems[A].item=p}t.sortedItems=S;var D=[];for(A=0,E=e.length;A<E;A+=1){s=e[A];try{this.registry.citationreg.citationById[s[0]].properties.noteIndex=s[1]}catch(xt){var P="CSL error\n";throw P+=" "+xt+"\n",P+=" citationID="+s[0]+"\n",P+=" noteIndex="+s[1]+"\n",P+=" atarray citationsPre index "+A+", from citation at document position "+e.length}D.push(this.registry.citationreg.citationById[s[0]])}D.push(t);for(A=0,E=r.length;A<E;A+=1){s=r[A];try{this.registry.citationreg.citationById[s[0]].properties.noteIndex=s[1]}catch(xt){P="CSL error\n";throw P+=" "+xt+"\n",P+=" citationID="+s[0]+"\n",P+=" noteIndex="+s[1]+"\n",P+=" at array citationsPost index "+A+", from citation at document position "+e.length}D.push(this.registry.citationreg.citationById[s[0]])}this.registry.citationreg.citationByIndex=D,this.registry.citationreg.citationsByItemId={},this.opt.update_mode===wt.POSITION&&(h=[],f=[],d={});var R,F=[];for(A=0,E=D.length;A<E;A+=1){for(D[A].properties||(D[A].properties={}),D[A].properties.index=A,n=0,o=D[A].sortedItems.length;n<o;n+=1)m=D[A].sortedItems[n],this.registry.citationreg.citationsByItemId[m[1].id]||(this.registry.citationreg.citationsByItemId[m[1].id]=[],F.push(""+m[1].id)),-1===this.registry.citationreg.citationsByItemId[m[1].id].indexOf(D[A])&&this.registry.citationreg.citationsByItemId[m[1].id].push(D[A]);this.opt.update_mode===wt.POSITION&&(D[A].properties.noteIndex?f.push(D[A]):(D[A].properties.noteIndex=0,h.push(D[A])))}if(i!==wt.ASSUME_ALL_ITEMS_REGISTERED&&this.updateItems(F,null,null,!0),!this.opt.citation_number_sort&&S&&1<S.length&&0<this.citation_sort.tokens.length){for(A=0,E=S.length;A<E;A+=1)S[A][1].sortkeys=wt.getSortKeys.call(this,S[A][0],"citation_sort");if(this.opt.grouped_sort&&!t.properties.unsorted){for(A=0,E=S.length;A<E;A+=1){var L=S[A][1].sortkeys;this.tmp.authorstring_request=!0;var M=this.registry.registry[S[A][0].id].disambig;this.tmp.authorstring_request=!0,wt.getAmbiguousCite.call(this,S[A][0],M);var B=this.registry.authorstrings[S[A][0].id];this.tmp.authorstring_request=!1,S[A][1].sortkeys=[B].concat(L)}S.sort(this.citation.srt.compareCompositeKeys);var U=!1,z=!1,q=!1;for(A=0,E=S.length;A<E;A+=1)S[A][1].sortkeys[0]!==U&&(q=S[A][1].sortkeys[0],z=S[A][1].sortkeys[1]),S[A][1].sortkeys[0]=""+z+A,U=q}t.properties.unsorted||S.sort(this.citation.srt.compareCompositeKeys)}if(this.opt.update_mode===wt.POSITION)for(A=0;A<2;A+=1){var $={},V={};for(n=0,o=(R=[h,f][A]).length;n<o;n+=1){var G=R[n];for(R[n].properties.noteIndex||(R[n].properties.noteIndex=0),R[n].properties.noteIndex=parseInt(R[n].properties.noteIndex,10),0<n&&R[n-1].properties.noteIndex>R[n].properties.noteIndex&&(d={},$={},V={}),a=0,l=G.sortedItems.length;a<l;a+=1)this.registry.registry[G.sortedItems[a][1].id].parallel||(d[G.properties.noteIndex]?d[G.properties.noteIndex]+=1:d[G.properties.noteIndex]=1);for(a=0,l=R[n].sortedItems.length;a<l;a+=1){var X,W=(m=R[n].sortedItems[a])[0].id,H=m[1].locator,Q=m[1].label;if(m[0].legislation_id&&(W=m[0].legislation_id),0<a&&(X=G.sortedItems[a-1][0].legislation_id?G.sortedItems[a-1][0].legislation_id:G.sortedItems[a-1][1].id),i!==wt.PREVIEW||G.citationID==t.citationID){var J,K={};if(K.position=m[1].position,K["first-reference-note-number"]=m[1]["first-reference-note-number"],K["near-note"]=m[1]["near-note"],m[1]["first-reference-note-number"]=0,m[1]["near-note"]=!1,this.registry.citationreg.citationsByItemId[W]&&"note"===this.opt.xclass&&this.opt.has_disambiguate){var Y=this.registry.registry[W]["citation-count"],Z=this.registry.citationreg.citationsByItemId[W].length;if(this.registry.registry[W]["citation-count"]=this.registry.citationreg.citationsByItemId[W].length,"number"==typeof Y){if(Y<2!==Z<2)for(var tt=0,et=this.registry.citationreg.citationsByItemId[W].length;tt<et;tt++)k[this.registry.registry[W].ambig]=!0,this.tmp.taintedCitationIDs[this.registry.citationreg.citationsByItemId[W][tt].citationID]=!0}else for(tt=0,et=this.registry.citationreg.citationsByItemId[W].length;tt<et;tt++)k[this.registry.registry[W].ambig]=!0,this.tmp.taintedCitationIDs[this.registry.citationreg.citationsByItemId[W][tt].citationID]=!0}if("undefined"==typeof $[W])$[W]=G.properties.noteIndex,this.registry.registry[W]&&(this.registry.registry[W]["first-reference-note-number"]=G.properties.noteIndex),V[W]=G.properties.noteIndex,m[1].position=wt.POSITION_FIRST;else{var rt,it,st,nt,ot=!1,at=!1;if(0<n){try{J=R[n-1].sortedItems.slice(-1)[0][1].id}catch(xt){P="CSL Error\n";throw P+=" "+xt,P+=" in citation object "+R[n-1].citationID+" at index "+(n-1)}R[n-1].sortedItems[0].slice(-1)[0].legislation_id&&(J=R[n-1].sortedItems[0].slice(-1)[0].legislation_id)}if(0<n&&0===parseInt(a,10)&&R[n-1].properties.noteIndex!==R[n].properties.noteIndex){var lt=R[n-1].sortedItems,ut=!1,ct=R[n-1].sortedItems[0][0].id;for(R[n-1].sortedItems[0][0].legislation_id&&(ct=R[n-1].sortedItems[0][0].legislation_id),(ct==W&&R[n-1].properties.noteIndex>=R[n].properties.noteIndex-1||R[n-1].sortedItems[0][1].id==this.registry.registry[m[1].id].parallel)&&(1!==d[R[n-1].properties.noteIndex]&&0!==R[n-1].properties.noteIndex||(ut=!0)),u=0,c=lt.slice(1).length;u<c;u+=1){var pt=lt.slice(1)[u];this.registry.registry[pt[1].id].parallel&&this.registry.registry[pt[1].id].parallel!=this.registry.registry[pt[1].id]||(ut=!1)}ut?ot=!0:at=!0}else 0<a&&X==W?ot=!0:0===a&&R[n-1].properties.noteIndex==R[n].properties.noteIndex&&R[n-1].sortedItems.length&&J==W?ot=!0:at=!0;if(ot&&((rt=0<a?G.sortedItems[a-1][1]:R[n-1].sortedItems[0][1]).locator?(st=rt.label?rt.label:"",it=""+rt.locator+st):it=rt.locator,nt=H?""+H+(Q||""):H),ot&&it&&!nt&&(at=!(ot=!1)),ot&&(!it&&nt?m[1].position=wt.POSITION_IBID_WITH_LOCATOR:it||nt?it&&nt===it?m[1].position=wt.POSITION_IBID:it&&nt&&nt!==it?m[1].position=wt.POSITION_IBID_WITH_LOCATOR:at=!(ot=!1):m[1].position=wt.POSITION_IBID),at&&(m[1].position=wt.POSITION_SUBSEQUENT),(at||ot)&&$[W]!=G.properties.noteIndex&&(m[1]["first-reference-note-number"]=$[W],this.registry.registry[W])){var mt=this.registry.citationreg.citationsByItemId[W][0].properties.noteIndex,ft=G.properties.noteIndex;this.registry.registry[W]["first-reference-note-number"]=ft<mt?ft:mt}}if(G.properties.noteIndex){var ht=parseInt(G.properties.noteIndex,10)-parseInt(V[W],10);m[1].position!==wt.POSITION_FIRST&&ht<=this.citation.opt["near-note-distance"]&&(m[1]["near-note"]=!0),V[W]=G.properties.noteIndex}if(G.citationID!=t.citationID)for(u=0,c=wt.POSITION_TEST_VARS.length;u<c;u+=1){var dt=wt.POSITION_TEST_VARS[u];m[1][dt]!==K[dt]&&(this.registry.registry[W]&&"first-reference-note-number"===dt&&(k[this.registry.registry[W].ambig]=!0,this.tmp.taintedItemIDs[W]=!0),this.tmp.taintedCitationIDs[G.citationID]=!0)}this.sys.variableWrapper&&(m[1].index=G.properties.index,m[1].noteIndex=G.properties.noteIndex)}else"undefined"==typeof $[m[1].id]&&($[W]=G.properties.noteIndex),V[W]=G.properties.noteIndex}}}if(this.opt.citation_number_sort&&S&&1<S.length&&0<this.citation_sort.tokens.length&&!t.properties.unsorted){for(A=0,E=S.length;A<E;A+=1)S[A][1].sortkeys=wt.getSortKeys.call(this,S[A][0],"citation_sort");S.sort(this.citation.srt.compareCompositeKeys)}for(var I in this.tmp.taintedItemIDs)if(this.tmp.taintedItemIDs.hasOwnProperty(I)&&(R=this.registry.citationreg.citationsByItemId[I]))for(A=0,E=R.length;A<E;A+=1)this.tmp.taintedCitationIDs[R[A].citationID]=!0;var gt=[];if(i===wt.PREVIEW){try{gt=this.process_CitationCluster.call(this,t.sortedItems,t.citationID)}catch(xt){wt.error("Error running CSL processor for preview: "+xt)}this.registry.citationreg.citationByIndex=g,this.registry.citationreg.citationById={};for(A=0,E=g.length;A<E;A+=1)this.registry.citationreg.citationById[g[A].citationID]=g[A];var bt=[];for(A=0,E=b.length;A<E;A+=1)bt.push(""+b[A].id);for(var I in this.updateItems(bt,null,null,!0),_)_.hasOwnProperty(I)&&(this.registry.registry[I].disambig=_[I])}else{for(var _t in k)this.disambiguate.run(_t,t);var yt;for(var I in this.tmp.taintedCitationIDs)if(I!=t.citationID){var vt=this.registry.citationreg.citationById[I];if(!vt.properties.unsorted){for(A=0,E=vt.sortedItems.length;A<E;A+=1)vt.sortedItems[A][1].sortkeys=wt.getSortKeys.call(this,vt.sortedItems[A][0],"citation_sort");vt.sortedItems.sort(this.citation.srt.compareCompositeKeys)}this.tmp.citation_pos=vt.properties.index,this.tmp.citation_note_index=vt.properties.noteIndex,this.tmp.citation_id=""+vt.citationID,(yt=[]).push(vt.properties.index),yt.push(this.process_CitationCluster.call(this,vt.sortedItems,vt.citationID)),yt.push(vt.citationID),gt.push(yt)}this.tmp.taintedItemIDs={},this.tmp.taintedCitationIDs={},this.tmp.citation_pos=t.properties.index,this.tmp.citation_note_index=t.properties.noteIndex,this.tmp.citation_id=""+t.citationID,(yt=[]).push(e.length),yt.push(this.process_CitationCluster.call(this,S,t.citationID)),yt.push(t.citationID),gt.push(yt),gt.sort(function(t,e){return t[0]>e[0]?1:t[0]<e[0]?-1:0})}return y.citation_errors=this.tmp.citation_errors.slice(),[y,gt]},wt.Engine.prototype.process_CitationCluster=function(t,e){return this.parallel.StartCitation(t),wt.getCitationCluster.call(this,t,e)},wt.Engine.prototype.makeCitationCluster=function(t){var e,r,i,s,n,o;for(e=[],s=t.length,i=0;i<s;i+=1){for(var a in n={},t[i])n[a]=t[i][a];if(o=this.retrieveItem(""+n.id),this.opt.development_extensions.locator_label_parse&&n.locator&&-1===["bill","gazette","legislation","regulation","treaty"].indexOf(o.type)&&(!n.label||"page"===n.label)){var l=wt.LOCATOR_LABELS_REGEXP.exec(n.locator);if(l){var u=wt.LOCATOR_LABELS_MAP[l[2]];this.getTerm(u)&&(n.label=u,n.locator=l[3])}}n.locator&&(n.locator=(""+n.locator).replace(/\s+$/,"")),r=[o,n],e.push(r)}if(this.opt.development_extensions.static_statute_locator&&this.remapSectionVariable(e),e&&1<e.length&&0<this.citation_sort.tokens.length){for(s=e.length,i=0;i<s;i+=1)e[i][1].sortkeys=wt.getSortKeys.call(this,e[i][0],"citation_sort");e.sort(this.citation.srt.compareCompositeKeys)}return this.tmp.citation_errors=[],this.parallel.StartCitation(e),wt.getCitationCluster.call(this,e)},wt.getAmbiguousCite=function(t,e,r,i){var s=this.tmp.group_context.tip,n={term_intended:s.term_intended,variable_attempt:s.variable_attempt,variable_success:s.variable_success,output_tip:s.output_tip,label_form:s.label_form,parallel_conditions:s.parallel_conditions,condition:s.condition,force_suppress:s.force_suppress,done_vars:s.done_vars.slice()};this.tmp.disambig_request=e||!1;var o={position:1,"near-note":!0};i&&(o.locator=i.locator,o.label=i.label),this.registry.registry[t.id]&&this.registry.citationreg.citationsByItemId&&this.registry.citationreg.citationsByItemId[t.id]&&this.registry.citationreg.citationsByItemId[t.id].length&&r&&"by-cite"===this.citation.opt["givenname-disambiguation-rule"]&&(o["first-reference-note-number"]=this.registry.registry[t.id]["first-reference-note-number"]),this.tmp.area="citation",this.tmp.root="citation",this.parallel.use_parallels=(!0===this.parallel.use_parallels||null===this.parallel.use_parallels)&&null,this.tmp.suppress_decorations=!0,this.tmp.just_looking=!0,wt.getCite.call(this,t,o,null,!1);for(var a=0,l=this.output.queue.length;a<l;a+=1)wt.Output.Queue.purgeEmptyBlobs(this.output.queue[a]);if(this.opt.development_extensions.clean_up_csl_flaws)for(var u=0,c=this.output.queue.length;u<c;u+=1)this.output.adjust.upward(this.output.queue[u]),this.output.adjust.leftward(this.output.queue[u]),this.output.adjust.downward(this.output.queue[u]),this.output.adjust.fix(this.output.queue[u]);var p=this.output.string(this,this.output.queue);return this.tmp.just_looking=!1,this.tmp.suppress_decorations=!1,this.parallel.use_parallels=null===this.parallel.use_parallels,this.tmp.group_context.replace(n),p},wt.getSpliceDelimiter=function(t,e,r){if(undefined!==this.citation.opt["after-collapse-delimiter"])t?this.tmp.splice_delimiter=this.citation.opt["after-collapse-delimiter"]:e&&!this.tmp.have_collapsed?this.tmp.splice_delimiter=this.citation.opt["after-collapse-delimiter"]:e||this.tmp.have_collapsed||"year-suffix"===this.citation.opt.collapse?this.tmp.splice_delimiter=this.citation.opt.layout_delimiter:this.tmp.splice_delimiter=this.citation.opt["after-collapse-delimiter"];else if(this.tmp.use_cite_group_delimiter)this.tmp.splice_delimiter=this.citation.opt.cite_group_delimiter;else if(this.tmp.have_collapsed&&"in-text"===this.opt.xclass&&this.opt.update_mode!==wt.NUMERIC)this.tmp.splice_delimiter=", ";else if(this.tmp.cite_locales[r-1]){var i=this.tmp.cite_affixes[this.tmp.area][this.tmp.cite_locales[r-1]];i&&i.delimiter&&(this.tmp.splice_delimiter=i.delimiter)}else this.tmp.splice_delimiter||(this.tmp.splice_delimiter="");return this.tmp.splice_delimiter},wt.getCitationCluster=function(t,e){var r,i,s,n,o,a,l,u,c,p,m,f,h,d,g,b,_,y;t=t||[],this.tmp.last_primary_names_string=!1,_=wt.getSafeEscape(this),this.tmp.area="citation",this.tmp.root="citation",r="",i=[],this.tmp.last_suffix_used="",this.tmp.last_names_used=[],this.tmp.last_years_used=[],this.tmp.backref_index=[],this.tmp.cite_locales=[],this.output.checkNestedBrace=new wt.checkNestedBrace(this);var v=this.output.checkNestedBrace.update(this.citation.opt.layout_prefix),x=!1;if("note"===this.opt.xclass&&this.citation.opt.suppressTrailingPunctuation&&(x=!0),e&&this.registry.citationreg.citationById[e].properties["suppress-trailing-punctuation"]&&(x=!0),"note"===this.opt.xclass){for(var w=[],A=!1,E=!1,j=[],O=0,S=t.length;O<S;O+=1){var k=t[O][0].type,I=t[O][0].title,T=t[O][1].position,N=t[O][0].id;I&&"legal_case"===k&&N!==E&&T&&(I===A&&0!==w.length||(j=[],w.push(j)),j.push(t[O][1])),A=I,T,E=N}for(O=0,S=w.length;O<S;O+=1)if(!((j=w[O]).length<2)){var C=j.slice(-1)[0].locator;if(C)for(var D=0,P=j.length-1;D<P;D+=1)j[D].locator&&(C=!1);C&&(j[0].locator=C,delete j.slice(-1)[0].locator,j[0].label=j.slice(-1)[0].label,j.slice(-1)[0].label&&delete j.slice(-1)[0].label)}}for(s=[],n=t.length,o=0;o<n;o+=1){f=t[o][0],a=t[o][1],a=wt.parseLocator.call(this,a),l=this.tmp.have_collapsed;var R=!1;if(0<o&&t[o-1][1]&&(R=!!t[o-1][1].locator),u={},this.tmp.shadow_numbers={},!this.tmp.just_looking&&this.opt.hasPlaceholderTerm){var F=this.output;this.output=new wt.Output.Queue(this),this.output.adjust=new wt.Output.Queue.adjust,wt.getAmbiguousCite.call(this,f,null,!1,a),this.output=F}if(this.tmp.in_cite_predecessor=!1,0<o?wt.getCite.call(this,f,a,""+t[o-1][0].id,!0):(this.tmp.term_predecessor=!1,wt.getCite.call(this,f,a,null,!0)),this.tmp.cite_renders_content||(y={citationID:""+this.tmp.citation_id,index:this.tmp.citation_pos,noteIndex:this.tmp.citation_note_index,itemID:""+f.id,citationItems_pos:o,error_code:wt.ERROR_NO_RENDERED_FORM},this.tmp.citation_errors.push(y)),o===t.length-1&&this.parallel.ComposeSet(),u.splice_delimiter=wt.getSpliceDelimiter.call(this,R,l,o),a&&a["author-only"]&&(this.tmp.suppress_decorations=!0),0<o){var L=(b=t[o-1][1]).suffix&&-1<[".",","].indexOf(b.suffix.slice(-1)),M=!b.suffix&&a.prefix&&-1<[".",","].indexOf(a.prefix.slice(0,1));if(L||M){var B=u.splice_delimiter.indexOf(" ");u.splice_delimiter=-1<B&&!M?u.splice_delimiter.slice(B):""}}u.suppress_decorations=this.tmp.suppress_decorations,u.have_collapsed=this.tmp.have_collapsed,s.push(u)}this.tmp.has_purged_parallel=!1,this.parallel.PruneOutputQueue(this),m=this.output.queue.slice();this.citation.opt.layout_suffix,this.citation.opt.layout_delimiter;var U=this.citation.opt.layout_suffix,z=this.tmp.cite_locales[this.tmp.cite_locales.length-1];z&&this.tmp.cite_affixes[this.tmp.area][z]&&this.tmp.cite_affixes[this.tmp.area][z].suffix&&(U=this.tmp.cite_affixes[this.tmp.area][z].suffix),-1<wt.TERMINAL_PUNCTUATION.slice(0,-1).indexOf(U.slice(0,1))&&(U=U.slice(0,1));var q=this.citation.opt.layout_delimiter;q||(q=""),-1<wt.TERMINAL_PUNCTUATION.slice(0,-1).indexOf(q.slice(0,1))&&(q=q.slice(0,1)),U=this.output.checkNestedBrace.update(U);for(O=0,S=this.output.queue.length;O<S;O+=1)wt.Output.Queue.purgeEmptyBlobs(this.output.queue[O]);if(!this.tmp.suppress_decorations&&this.output.queue.length&&(this.opt.development_extensions.apply_citation_wrapper&&this.sys.wrapCitationEntry&&!this.tmp.just_looking&&"citation"===this.tmp.area||(x||(this.output.queue[this.output.queue.length-1].strings.suffix=U),this.output.queue[0].strings.prefix=v)),this.opt.development_extensions.clean_up_csl_flaws)for(D=0,P=this.output.queue.length;D<P;D+=1)this.output.adjust.upward(this.output.queue[D]),this.output.adjust.leftward(this.output.queue[D]),this.output.adjust.downward(this.output.queue[D]),this.tmp.last_chr=this.output.adjust.fix(this.output.queue[D]);for(o=0,n=m.length;o<n;o+=1){var $=[];if(this.output.queue=[m[o]],this.tmp.suppress_decorations=s[o].suppress_decorations,this.tmp.splice_delimiter=s[o].splice_delimiter,m[o].parallel_delimiter&&(this.tmp.splice_delimiter=m[o].parallel_delimiter),this.tmp.have_collapsed=s[o].have_collapsed,c=this.output.string(this,this.output.queue),this.tmp.suppress_decorations=!1,"string"==typeof c)return this.tmp.suppress_decorations=!1,c;if("object"===W(c)&&0===c.length&&!a["suppress-author"])if(this.tmp.has_purged_parallel)c.push("");else{var V=0===o?_(this.citation.opt.layout_prefix):"",G=o===m.length-1?_(this.citation.opt.layout_suffix):"";c.push(V+"[CSL STYLE ERROR: reference with no printed form.]"+G)}if($.length&&"string"==typeof c[0]){c.reverse();var X=c.pop();X&&","===X.slice(0,1)?$.push(X):"string"==typeof $.slice(-1)[0]&&","===$.slice(-1)[0].slice(-1)?$.push(" "+X):X&&$.push(_(this.tmp.splice_delimiter)+X)}else c.reverse(),void 0!==(p=c.pop())&&($.length&&"string"==typeof $[$.length-1]&&($[$.length-1]+=p.successor_prefix),$.push(p));for(h=c.length,d=0;d<h;d+=1)"string"!=typeof(g=c[d])?void 0!==(p=c.pop())&&$.push(p):$.push(_(this.tmp.splice_delimiter)+g);0!==$.length||t[o][1]["suppress-author"]||1,1<$.length&&"string"!=typeof $[0]&&($=[this.output.renderBlobs($)]),$.length&&("string"==typeof $[0]?0<o&&($[0]=_(this.tmp.splice_delimiter)+$[0]):$[0].splice_prefix=0<o?this.tmp.splice_delimiter:""),i=i.concat($)}if((r+=this.output.renderBlobs(i))&&!this.tmp.suppress_decorations)for(n=this.citation.opt.layout_decorations.length,o=0;o<n;o+=1)"normal"!==(u=this.citation.opt.layout_decorations[o])[1]&&(a&&a["author-only"]||(r=this.fun.decorate[u[0]][u[1]](this,r)));return this.tmp.suppress_decorations=!1,r},wt.getCite=function(t,e,r,i){var s,n;for(this.tmp.cite_renders_content=!1,this.parallel.StartCite(t,e,r),wt.citeStart.call(this,t,e,i),s=0,this.tmp.name_node={},this.nameOutput=new wt.NameOutput(this,t,e);s<this[this.tmp.area].tokens.length;)s=wt.tokenExec.call(this,this[this.tmp.area].tokens[s],t,e);return wt.citeEnd.call(this,t,e),this.parallel.CloseCite(this),this.tmp.cite_renders_content||this.tmp.just_looking||"bibliography"===this.tmp.area&&(n={index:this.tmp.bibliography_pos,itemID:""+t.id,error_code:wt.ERROR_NO_RENDERED_FORM},this.tmp.bibliography_errors.push(n)),""+t.id},wt.citeStart=function(t,e,r){if(r||(this.tmp.shadow_numbers={}),this.tmp.disambiguate_count=0,this.tmp.disambiguate_maxMax=0,this.tmp.same_author_as_previous_cite=!1,this.tmp.suppress_decorations?this.tmp.subsequent_author_substitute_ok=!1:this.tmp.subsequent_author_substitute_ok=!0,this.tmp.lastchr="","citation"===this.tmp.area&&this.citation.opt.collapse&&this.citation.opt.collapse.length?this.tmp.have_collapsed=!0:this.tmp.have_collapsed=!1,this.tmp.render_seen=!1,this.tmp.disambig_request&&!this.tmp.disambig_override?this.tmp.disambig_settings=this.tmp.disambig_request:this.registry.registry[t.id]&&!this.tmp.disambig_override?(this.tmp.disambig_request=this.registry.registry[t.id].disambig,this.tmp.disambig_settings=this.registry.registry[t.id].disambig):this.tmp.disambig_settings=new wt.AmbigConfig,"citation"!==this.tmp.area)if(this.registry.registry[t.id]){if(this.tmp.disambig_restore=wt.cloneAmbigConfig(this.registry.registry[t.id].disambig),"bibliography"===this.tmp.area&&this.tmp.disambig_settings&&this.tmp.disambig_override&&(this.opt["disambiguate-add-names"]&&(this.tmp.disambig_settings.names=this.registry.registry[t.id].disambig.names.slice(),this.tmp.disambig_request&&(this.tmp.disambig_request.names=this.registry.registry[t.id].disambig.names.slice())),this.opt["disambiguate-add-givenname"])){this.tmp.disambig_request=this.tmp.disambig_settings,this.tmp.disambig_settings.givens=this.registry.registry[t.id].disambig.givens.slice(),this.tmp.disambig_request.givens=this.registry.registry[t.id].disambig.givens.slice();for(var i=0,s=this.tmp.disambig_settings.givens.length;i<s;i+=1)this.tmp.disambig_settings.givens[i]=this.registry.registry[t.id].disambig.givens[i].slice();for(i=0,s=this.tmp.disambig_request.givens.length;i<s;i+=1)this.tmp.disambig_request.givens[i]=this.registry.registry[t.id].disambig.givens[i].slice()}}else this.tmp.disambig_restore=new wt.AmbigConfig;this.tmp.names_used=[],this.tmp.nameset_counter=0,this.tmp.years_used=[],this.tmp.names_max.clear(),this.tmp.splice_delimiter=this[this.tmp.area].opt.layout_delimiter,this.bibliography_sort.keys=[],this.citation_sort.keys=[],this.tmp.has_done_year_suffix=!1,this.tmp.last_cite_locale=!1,!this.tmp.just_looking&&e&&!e.position&&this.registry.registry[t.id]&&(this.tmp.disambig_restore=wt.cloneAmbigConfig(this.registry.registry[t.id].disambig)),this.tmp.first_name_string=!1,this.tmp.authority_stop_last=0},wt.citeEnd=function(t,e){if(this.tmp.disambig_restore&&this.registry.registry[t.id]){this.registry.registry[t.id].disambig.names=this.tmp.disambig_restore.names.slice(),this.registry.registry[t.id].disambig.givens=this.tmp.disambig_restore.givens.slice();for(var r=0,i=this.registry.registry[t.id].disambig.givens.length;r<i;r+=1)this.registry.registry[t.id].disambig.givens[r]=this.tmp.disambig_restore.givens[r].slice()}if(this.tmp.disambig_restore=!1,e&&e.suffix?this.tmp.last_suffix_used=e.suffix:this.tmp.last_suffix_used="",this.tmp.last_years_used=this.tmp.years_used.slice(),this.tmp.last_names_used=this.tmp.names_used.slice(),this.tmp.cut_var=!1,this.tmp.disambig_request=!1,this.tmp.cite_locales.push(this.tmp.last_cite_locale),this.tmp.issued_date&&this.tmp.renders_collection_number){var s=[];for(r=this.tmp.issued_date.list.length-1;r>this.tmp.issued_date.pos;r+=-1)s.push(this.tmp.issued_date.list.pop());for(this.tmp.issued_date.list.pop(),r=s.length-1;-1<r;r+=-1)this.tmp.issued_date.list.push(s.pop());this.parallel.use_parallels&&(this.parallel.cite.issued=!1)}this.tmp.issued_date=!1,this.tmp.renders_collection_number=!1},(e.exports=wt).Engine.prototype.makeBibliography=function(t){var e,r,i,s,n,o,a;if(!1,!this.bibliography.tokens.length)return!1;"string"==typeof t&&(this.opt.citation_number_slug=t,t=!1),o=(e=wt.getBibliographyEntries.call(this,t))[0],a=e[1];var l=e[2];for(r={maxoffset:0,entryspacing:this.bibliography.opt["entry-spacing"],linespacing:this.bibliography.opt["line-spacing"],"second-field-align":!1,entry_ids:o,bibliography_errors:this.tmp.bibliography_errors.slice(),done:l},this.bibliography.opt["second-field-align"]&&(r["second-field-align"]=this.bibliography.opt["second-field-align"]),0,s=this.registry.reflist.length,n=0;n<s;n+=1)(i=this.registry.reflist[n]).offset>r.maxoffset&&(r.maxoffset=i.offset);return this.bibliography.opt.hangingindent&&(r.hangingindent=this.bibliography.opt.hangingindent),r.bibstart=this.fun.decorate.bibstart,r.bibend=this.fun.decorate.bibend,this.opt.citation_number_slug=!1,[r,a]},wt.getBibliographyEntries=function(t){var e,r,i,s,n,o,a,l,u,c,p,m,f,h,d,g,b,_;function y(t,e){return t===e}function v(t,e){return!("none"!==t&&t||e)||("string"==typeof e?y(t,e):!!e&&function(t,e){for(u=e.length,c=0;c<u;c+=1)if(y(t,e[c]))return!0;return!1}(t,e))}if(e=[],b=[],this.tmp.area="bibliography",this.tmp.root="bibliography",this.tmp.last_rendered_name=!1,this.tmp.bibliography_errors=[],this.tmp.bibliography_pos=0,r=t&&t.page_start&&t.page_length?this.registry.getSortedIds():this.retrieveItems(this.registry.getSortedIds()),this.tmp.disambig_override=!0,h={},t&&t.page_start&&t.page_length&&!(_=0)!==t.page_start)for(var x=0,w=r.length;x<w&&(h[r[x]]=!0,t.page_start!=r[x]);x+=1);var A=[];for(x=0,w=r.length;x<w;x+=1){if(t&&t.page_start&&t.page_length){if(h[r[x]])continue;if(a=this.retrieveItem(r[x]),_===t.page_length)break}else if(h[(a=r[x]).id])continue;if(t){if(i=!0,t.include){for(i=!1,j=0,O=t.include.length;j<O;j+=1)if(v((l=t.include[j]).value,a[l.field])){i=!0;break}}else if(t.exclude){for(s=!1,j=0,O=t.exclude.length;j<O;j+=1)if(v((l=t.exclude[j]).value,a[l.field])){s=!0;break}s&&(i=!1)}else if(t.select){for(n=!(i=!1),j=0,O=t.select.length;j<O;j+=1)v((l=t.select[j]).value,a[l.field])||(n=!1);n&&(i=!0)}if(t.quash){for(n=!0,j=0,O=t.quash.length;j<O;j+=1)v((l=t.quash[j]).value,a[l.field])||(n=!1);n&&(i=!1)}if(!i)continue}if((o=new wt.Token("group",wt.START)).decorations=[["@bibliography","entry"]].concat(this.bibliography.opt.layout_decorations),this.output.startTag("bib_entry",o),a.system_id&&this.sys.embedBibliographyEntry?this.output.current.value().item_id=a.system_id:this.output.current.value().system_id=a.id,d=[[{id:""+a.id},a]],m=[],!this.registry.registry[a.id].master||t&&t.page_start&&t.page_length)this.registry.registry[a.id].siblings||(this.parallel.StartCitation(d),this.tmp.term_predecessor=!1,m.push(""+wt.getCite.call(this,a)),t&&t.page_start&&t.page_length&&(_+=1));else{for(f=!0,this.parallel.StartCitation(d),this.output.queue[0].strings.delimiter=", ",this.tmp.term_predecessor=!1,m.push(""+wt.getCite.call(this,a)),h[a.id]=!0,j=0,O=this.registry.registry[a.id].siblings.length;j<O;j+=1){var E=this.registry.registry[a.id].siblings[j];g=this.retrieveItem(E),m.push(""+wt.getCite.call(this,g)),h[g.id]=!0}this.parallel.ComposeSet(),this.parallel.PruneOutputQueue()}b.push(""),this.tmp.bibliography_pos+=1,A.push(m),this.output.endTag("bib_entry"),this.output.queue[0].blobs.length&&this.output.queue[0].blobs[0].blobs.length&&(f||!this.output.queue[0].blobs[0].blobs[0].strings?(p=this.output.queue[0].blobs,f=!1):p=this.output.queue[0].blobs[0].blobs,p[0].strings.prefix=this.bibliography.opt.layout_prefix+p[0].strings.prefix);for(var j=0,O=this.output.queue.length;j<O;j+=1)wt.Output.Queue.purgeEmptyBlobs(this.output.queue[j]);for(j=0,O=this.output.queue.length;j<O;j+=1)this.output.adjust.upward(this.output.queue[j]),this.output.adjust.leftward(this.output.queue[j]),this.output.adjust.downward(this.output.queue[j],!0),this.output.adjust.fix(this.output.queue[j]);var S;if(!(S=this.output.string(this,this.output.queue)[0])&&this.opt.update_mode===wt.NUMERIC){var k=e.length+1+". [CSL STYLE ERROR: reference with no printed form.]";S=wt.Output.Formats[this.opt.mode]["@bibliography/entry"](this,k)}S&&e.push(S)}var I=!1;if(t&&t.page_start&&t.page_length){var T=r.slice(-1)[0],N=A.slice(-1)[0];T&&N&&T!=N||(I=!0)}return this.tmp.disambig_override=!1,[A,e,I]},(e.exports=wt).Engine.prototype.setCitationId=function(t,e){var r,i,s;if(r=!1,!t.citationID||e){for(i=Math.floor(1e14*Math.random());;){if(s=0,!this.registry.citationreg.citationById[i]){t.citationID="a"+i.toString(32);break}i+=1===(s=!s&&i<5e13?1:-1)?1:-1}r=""+i}return this.registry.citationreg.citationById[t.citationID]=t,r},(e.exports=wt).Engine.prototype.rebuildProcessorState=function(t,e,r){t||(t=[]),e||(e="html");for(var i={},s=[],n=0,o=t.length;n<o;n+=1)for(var a=0,l=t[n].citationItems.length;a<l;a+=1){var u=""+t[n].citationItems[a].id;i[u]||s.push(u),i[u]=!0}this.updateItems(s);var c=[],p=[],m=[],f=this.opt.mode;this.setOutputFormat(e);for(n=0,o=t.length;n<o;n+=1){var h=this.processCitationCluster(t[n],c,p,wt.ASSUME_ALL_ITEMS_REGISTERED);c.push([t[n].citationID,t[n].properties.noteIndex]);for(a=0,l=h[1].length;a<l;a+=1){var d=h[1][a][0];m[d]=[c[d][0],c[d][1],h[1][a][1]]}}return this.updateUncitedItems(r),this.setOutputFormat(f),m},wt.Engine.prototype.restoreProcessorState=function(t){var e,r,i,s,n,o,a,l,u,c;l=[],u=[],t||(t=[]);var p=[],m={};for(e=0,r=t.length;e<r;e+=1)m[t[e].citationID]&&this.setCitationId(t[e],!0),m[t[e].citationID]=!0,p.push(t[e].properties.index);var f=t.slice();for(f.sort(function(t,e){return t.properties.index<e.properties.index?-1:t.properties.index>e.properties.index?1:0}),e=0,r=f.length;e<r;e+=1)f[e].properties.index=e;for(e=0,r=f.length;e<r;e+=1){for(c=[],i=0,s=f[e].citationItems.length;i<s;i+=1)"undefined"==typeof(n=f[e].citationItems[i]).sortkeys&&(n.sortkeys=[]),a=[o=this.retrieveItem(""+n.id),n],c.push(a),f[e].citationItems[i].item=o,u.push(""+n.id);f[e].properties.unsorted||c.sort(this.citation.srt.compareCompositeKeys),f[e].sortedItems=c,this.registry.citationreg.citationById[f[e].citationID]=f[e]}for(this.updateItems(u),e=0,r=t.length;e<r;e+=1)l.push([""+t[e].citationID,t[e].properties.noteIndex]);var h=[];return t&&t.length?h=this.processCitationCluster(t[0],[],l.slice(1)):(this.registry=new wt.Registry(this),this.tmp=new wt.Engine.Tmp,this.disambiguate=new wt.Disambiguation(this)),h},wt.Engine.prototype.updateItems=function(t,e,r,i){var s=this.tmp.area,n=this.tmp.root,o=this.tmp.extension;if(this.tmp.area="citation",this.tmp.root="citation",this.tmp.extension="",i||(this.tmp.loadedItemIDs={}),this.registry.init(t),r)for(var a in this.registry.ambigcites)this.registry.ambigsTouched[a]=!0;return this.registry.dodeletes(this.registry.myhash),this.registry.doinserts(this.registry.mylist),this.registry.dorefreshes(),this.registry.rebuildlist(),this.registry.setsortkeys(),this.registry.setdisambigs(),e||this.registry.sorttokens(),this.registry.renumber(),this.tmp.extension=o,this.tmp.area=s,this.tmp.root=n,this.registry.getSortedIds()},wt.Engine.prototype.updateUncitedItems=function(t,e){var r=this.tmp.area,i=this.tmp.root,s=this.tmp.extension;if(this.tmp.area="citation",this.tmp.root="citation",this.tmp.extension="",this.tmp.loadedItemIDs={},t||(t=[]),"object"==W(t))if("undefined"==typeof t.length){var n=t;for(var o in t=[],n)t.push(o)}else if("number"==typeof t.length){n={};for(var a=0,l=t.length;a<l;a+=1)n[t[a]]=!0}return this.registry.init(t,!0),this.registry.dopurge(n),this.registry.doinserts(this.registry.mylist),this.registry.dorefreshes(),this.registry.rebuildlist(),this.registry.setsortkeys(),this.registry.setdisambigs(),e||this.registry.sorttokens(),this.registry.renumber(),this.tmp.extension=s,this.tmp.area=r,this.tmp.root=i,this.registry.getSortedIds()},(e.exports=wt).localeResolve=function(t,e){var r,i;return e||(e="en-US"),t||(t=e),r={},i=t.split(/[\-_]/),r.base=wt.LANG_BASES[i[0]],"undefined"==typeof r.base?{base:e,best:t,bare:i[0]}:(1===i.length&&(r.generic=!0),1===i.length||"x"===i[1]?r.best=r.base.replace("_","-"):r.best=i.slice(0,2).join("-"),r.base=r.base.replace("_","-"),r.bare=i[0],r)},wt.Engine.prototype.localeConfigure=function(t,e){var r;if((!e||!this.locale[t.best])&&("en-US"===t.best?(r=wt.setupXml(this.sys.retrieveLocale("en-US")),this.localeSet(r,"en-US",t.best)):"en-US"!==t.best&&(t.base!==t.best&&(r=wt.setupXml(this.sys.retrieveLocale(t.base)),this.localeSet(r,t.base,t.best)),r=wt.setupXml(this.sys.retrieveLocale(t.best)),this.localeSet(r,t.best,t.best)),this.localeSet(this.cslXml,"",t.best),this.localeSet(this.cslXml,t.bare,t.best),t.base!==t.best&&this.localeSet(this.cslXml,t.base,t.best),this.localeSet(this.cslXml,t.best,t.best),"undefined"==typeof this.locale[t.best].terms["page-range-delimiter"]&&(-1<["fr","pt"].indexOf(t.best.slice(0,2).toLowerCase())?this.locale[t.best].terms["page-range-delimiter"]="-":this.locale[t.best].terms["page-range-delimiter"]="\u2013"),"undefined"==typeof this.locale[t.best].terms["year-range-delimiter"]&&(this.locale[t.best].terms["year-range-delimiter"]="\u2013"),"undefined"==typeof this.locale[t.best].terms["citation-range-delimiter"]&&(this.locale[t.best].terms["citation-range-delimiter"]="\u2013"),this.opt.development_extensions.normalize_lang_keys_to_lowercase)){for(var i=["default-locale","locale-sort","locale-translit","locale-translat"],s=0,n=i.length;s<n;s+=1)for(var o=0,a=this.opt[i[s]].length;o<a;o+=1)this.opt[i[s]][o]=this.opt[i[s]][o].toLowerCase();this.opt.lang=this.opt.lang.toLowerCase()}},wt.Engine.prototype.localeSet=function(t,e,r){var i,s,n,o,a,l,u,c,p,m,f,h;if(e=e.replace("_","-"),r=r.replace("_","-"),this.opt.development_extensions.normalize_lang_keys_to_lowercase&&(e=e.toLowerCase(),r=r.toLowerCase()),this.locale[r]||(this.locale[r]={},this.locale[r].terms={},this.locale[r].opts={},this.locale[r].opts["skip-words"]=wt.SKIP_WORDS,this.locale[r].opts["leading-noise-words"]||(this.locale[r].opts["leading-noise-words"]=[]),this.locale[r].dates={},this.locale[r].ord={"1.0.1":!1,keys:{}},this.locale[r]["noun-genders"]={}),s=t.makeXml(),t.nodeNameIs(t.dataObj,"locale"))s=t.dataObj;else for(n=t.getNodesByName(t.dataObj,"locale"),a=0,f=t.numberofnodes(n);a<f;a+=1)if(i=n[a],t.getAttributeValue(i,"lang","xml")===e){s=i;break}for(n=t.getNodesByName(s,"type"),C=0,D=t.numberofnodes(n);C<D;C+=1){var d=n[C],g=t.getAttributeValue(d,"name"),b=t.getAttributeValue(d,"gender");this.opt.gender[g]=b}if(t.getNodesByName(s,"term","ordinal").length){for(var _ in this.locale[r].ord.keys)delete this.locale[r].terms[_];this.locale[r].ord={"1.0.1":!1,keys:{}}}n=t.getNodesByName(s,"term");var y={"last-digit":{},"last-two-digits":{},"whole-number":{}},v=!1,x={};for(a=0,f=t.numberofnodes(n);a<f;a+=1){if(l=n[a],"sub verbo"===(c=t.getAttributeValue(l,"name"))&&(c="sub-verbo"),"ordinal"===c.slice(0,7)){t.getNodeValue(l);if("ordinal"===c)v=!0;else{var w,A=t.getAttributeValue(l,"match"),E=c.slice(8);(w=t.getAttributeValue(l,"gender-form"))||(w="neuter"),A||(A="last-two-digits","0"===E.slice(0,1)&&(A="last-digit")),"0"===E.slice(0,1)&&(E=E.slice(1)),y[A][E]||(y[A][E]={}),y[A][E][w]=c}this.locale[r].ord.keys[c]=!0}"undefined"==typeof this.locale[r].terms[c]&&(this.locale[r].terms[c]={}),w=!(u="long"),t.getAttributeValue(l,"form")&&(u=t.getAttributeValue(l,"form")),t.getAttributeValue(l,"gender-form")&&(w=t.getAttributeValue(l,"gender-form")),t.getAttributeValue(l,"gender")&&(this.locale[r]["noun-genders"][c]=t.getAttributeValue(l,"gender")),w?(this.locale[r].terms[c][w]={},this.locale[r].terms[c][w][u]=[],h=this.locale[r].terms[c][w],x[c]=!0):(this.locale[r].terms[c][u]=[],h=this.locale[r].terms[c]),t.numberofnodes(t.getNodesByName(l,"multiple"))?(h[u][0]=t.getNodeValue(l,"single"),-1<h[u][0].indexOf("%s")&&(this.opt.hasPlaceholderTerm=!0),h[u][1]=t.getNodeValue(l,"multiple"),-1<h[u][1].indexOf("%s")&&(this.opt.hasPlaceholderTerm=!0)):(h[u]=t.getNodeValue(l),-1<h[u].indexOf("%s")&&(this.opt.hasPlaceholderTerm=!0))}if(v){for(var j in x){var O={},S=0;for(var k in this.locale[r].terms[j])-1<["masculine","feminine"].indexOf(k)?O[k]=this.locale[r].terms[j][k]:S+=1;if(!S)if(O.feminine)for(var k in O.feminine)this.locale[r].terms[j][k]=O.feminine[k];else if(O.masculine)for(var k in O.masculine)this.locale[r].terms[j][k]=O.masculine[k]}this.locale[r].ord["1.0.1"]=y}for(c in this.locale[r].terms)for(C=0,D=2;C<D;C+=1)if(w=wt.GENDERS[C],this.locale[r].terms[c][w])for(u in this.locale[r].terms[c])this.locale[r].terms[c][w][u]||(this.locale[r].terms[c][w][u]=this.locale[r].terms[c][u]);for(n=t.getNodesByName(s,"style-options"),a=0,f=t.numberofnodes(n);a<f;a+=1)for(m in p=n[a],o=t.attributes(p))if(o.hasOwnProperty(m))if("@punctuation-in-quote"===m||"@limit-day-ordinals-to-day-1"===m)"true"===o[m]?this.locale[r].opts[m.slice(1)]=!0:this.locale[r].opts[m.slice(1)]=!1;else if("@jurisdiction-preference"===m){var I=o[m].split(/\s*,\s*/);this.locale[r].opts[m.slice(1)]=I}else if("@skip-words"===m){var T=o[m].split(/\s*,\s*/);this.locale[r].opts[m.slice(1)]=T}else if("@leading-noise-words"===m){var N=o[m].split(/\s*,\s*/);this.locale[r].opts["leading-noise-words"]=N}else if("@name-as-sort-order"===m){this.locale[r].opts["name-as-sort-order"]={};for(var C=0,D=(P=o[m].split(/\s+/)).length;C<D;C+=1)this.locale[r].opts["name-as-sort-order"][P[C]]=!0}else if("@name-as-reverse-order"===m){this.locale[r].opts["name-as-reverse-order"]={};for(C=0,D=(P=o[m].split(/\s+/)).length;C<D;C+=1)this.locale[r].opts["name-as-reverse-order"][P[C]]=!0}else if("@name-never-short"===m){this.locale[r].opts["name-never-short"]={};var P;for(C=0,D=(P=o[m].split(/\s+/)).length;C<D;C+=1)this.locale[r].opts["name-never-short"][P[C]]=!0}for(n=t.getNodesByName(s,"date"),a=0,f=t.numberofnodes(n);a<f;a+=1){var R=n[a];this.locale[r].dates[t.getAttributeValue(R,"form")]=R}},(e.exports=wt).getLocaleNames=function(t,e){var a=wt.setupXml(t);function r(t,e){var r=["base","best"];if(e){normalizedLocale=wt.localeResolve(e);for(var i=0,s=r.length;i<s;i++)normalizedLocale[r[i]]&&-1===t.indexOf(normalizedLocale[r[i]])&&t.push(normalizedLocale[r[i]])}}function i(t){for(var e=a.getNodesByName(a.dataObj,t),r=0,i=e.length;r<i;r++){var s=a.getAttributeValue(e[r],"locale");if(s)for(var n=0,o=(s=s.split(/ +/)).length;n<o;n++)this.extendLocaleList(l,s[n])}}var l=["en-US"];r(l,e);var s=a.getNodesByName(a.dataObj,"style")[0],n=a.getAttributeValue(s,"default-locale");r(l,n);for(var o=["layout","if","else-if","condition"],u=0,c=o.length;u<c;u++)i(a);return l},(e.exports=wt).Node={},wt.Node.bibliography={build:function(t,e){if(this.tokentype===wt.START){t.build.area="bibliography",t.build.root="bibliography",t.build.extension="";this.execs.push(function(t,e){t.tmp.area="bibliography",t.tmp.root="bibliography",t.tmp.extension=""})}e.push(this)}},(e.exports=wt).Node.choose={build:function(t,e){var r;this.tokentype===wt.START&&(r=function(t,e){t.tmp.jump.push(undefined,wt.LITERAL)}),this.tokentype===wt.END&&(r=function(t,e){t.tmp.jump.pop()}),this.execs.push(r),e.push(this)},configure:function(t,e){this.tokentype===wt.END?(t.configure.fail.push(e),t.configure.succeed.push(e)):(t.configure.fail.pop(),t.configure.succeed.pop())}},(e.exports=wt).Node.citation={build:function(t,e){if(this.tokentype===wt.START){t.build.area="citation",t.build.root="citation",t.build.extension="";this.execs.push(function(t,e){t.tmp.area="citation",t.tmp.root="citation",t.tmp.extension=""})}if(this.tokentype===wt.END){if(t.opt.grouped_sort="in-text"===t.opt.xclass&&t.citation.opt.collapse&&t.citation.opt.collapse.length||t.citation.opt.cite_group_delimiter&&t.citation.opt.cite_group_delimiter.length&&t.opt.update_mode!==wt.POSITION&&t.opt.update_mode!==wt.NUMERIC,t.opt.grouped_sort&&t.citation_sort.opt.sort_directions.length){var r=t.citation_sort.opt.sort_directions[0].slice();t.citation_sort.opt.sort_directions=[r].concat(t.citation_sort.opt.sort_directions)}t.citation.srt=new wt.Registry.Comparifier(t,"citation_sort")}e.push(this)}},(e.exports=wt).Node["#comment"]={build:function(t,e){}},(e.exports=wt).Node.date={build:function(t,e){var r,s,n,o,a,l,u,c,p,m;this.tokentype!==wt.START&&this.tokentype!==wt.SINGLETON||(t.build.date_parts=[],t.build.date_variables=this.variables,t.build.extension||wt.Util.substituteStart.call(this,t,e),r=t.build.extension?wt.dateMacroAsSortKey:function(t,e,r){var i;if(t.tmp.element_rendered_ok=!1,t.tmp.donesies=[],t.tmp.dateparts=[],i=[],!this.variables.length||t.tmp.just_looking&&"accessed"===this.variables[0])t.tmp.date_object=!1;else{for(void 0===(s=e[this.variables[0]])&&(s={"date-parts":[[0]]},t.opt.development_extensions.locator_date_and_revision&&r&&"locator-date"===this.variables[0]&&r["locator-date"]&&(s=r["locator-date"])),t.tmp.date_object=s,n=this.dateparts.length,o=0;o<n;o+=1)a=this.dateparts[o],"undefined"!=typeof t.tmp.date_object[a+"_end"]?i.push(a):"month"===a&&"undefined"!=typeof t.tmp.date_object.season_end&&i.push(a);for(l=[],n=(u=["year","month","day"]).length,o=0;o<n;o+=1)-1<i.indexOf(u[o])&&l.push(u[o]);for(i=l.slice(),c=2,n=i.length,o=0;o<n;o+=1)if(a=i[o],p=t.tmp.date_object[a],m=t.tmp.date_object[a+"_end"],p!==m){c=o;break}t.tmp.date_collapse_at=i.slice(c)}},this.execs.push(r),r=function(t,e){if(e[this.variables[0]]&&(t.parallel.StartVariable(this.variables[0]),t.output.startTag("date",this),"issued"===this.variables[0]&&"legal_case"===e.type&&!t.tmp.extension&&""+e["collection-number"]==""+t.tmp.date_object.year&&1===this.dateparts.length&&"year"===this.dateparts[0]))for(var r in t.tmp.date_object)if(t.tmp.date_object.hasOwnProperty(r)&&"year"===r.slice(0,4)){t.tmp.issued_date={};var i=t.output.current.mystack.slice(-2)[0].blobs;t.tmp.issued_date.list=i,t.tmp.issued_date.pos=i.length-1}},this.execs.push(r)),t.build.extension||this.tokentype!==wt.END&&this.tokentype!==wt.SINGLETON||(r=function(t,e){e[this.variables[0]]&&(t.output.endTag(),t.parallel.CloseVariable(this.variables[0]))},this.execs.push(r)),e.push(this),this.tokentype!==wt.END&&this.tokentype!==wt.SINGLETON||t.build.extension||wt.Util.substituteEnd.call(this,t,e)}},(e.exports=wt).Node["date-part"]={build:function(t,e){var r,l,u,c,p,m,f,h,d,g,b,_,y,v,x,w,A,E,j;this.strings.form||(this.strings.form="long"),t.build.date_parts.push(this.strings.name);var O=t.build.date_variables[0];r=function(t,e){if(t.tmp.date_object){if(c=!0,m=p="",t.tmp.donesies.push(this.strings.name),t.tmp.date_object.literal&&"year"===this.strings.name&&(t.parallel.AppendToVariable(t.tmp.date_object.literal),t.output.append(t.tmp.date_object.literal,this)),t.tmp.date_object&&(p=t.tmp.date_object[this.strings.name],m=t.tmp.date_object[this.strings.name+"_end"]),"year"!==this.strings.name||0!==p||t.tmp.suppress_decorations||(p=!1),f=!t.tmp.suppress_decorations,h=t.tmp.have_collapsed,d="year-suffix"===t[t.tmp.area].opt.collapse||"year-suffix-ranged"===t[t.tmp.area].opt.collapse,g=t.opt["disambiguate-add-year-suffix"],f&&g&&d&&(t.tmp.years_used.push(p),t.tmp.last_years_used.length>=t.tmp.years_used.length&&h&&t.tmp.last_years_used[t.tmp.years_used.length-1]===p&&(p=!1)),void 0!==p){_=b=!1,"year"===this.strings.name&&(parseInt(p,10)<500&&0<parseInt(p,10)&&(_=t.getTerm("ad")),parseInt(p,10)<0&&(b=t.getTerm("bc"),p=-1*parseInt(p,10)),m&&(parseInt(m,10)<500&&0<parseInt(m,10)&&t.getTerm("ad"),parseInt(m,10)<0&&(t.getTerm("bc"),m=-1*parseInt(m,10)))),t.parallel.AppendToVariable(p);for(var r=""+t.tmp.date_object.month;r.length<2;)r="0"+r;r="month-"+r;var i=t.locale[t.opt.lang]["noun-genders"][r];if(this.strings.form){var s=this.strings.form;if("day"===this.strings.name&&"ordinal"===s&&t.locale[t.opt.lang].opts["limit-day-ordinals-to-day-1"]&&""+p!="1"&&(s="numeric"),p=wt.Util.Dates[this.strings.name][s](t,p,i,this.default_locale),"month"===this.strings.name)if(t.tmp.strip_periods)p=p.replace(/\./g,"");else for(var n=0,o=this.decorations.length;n<o;n+=1)if("@strip-periods"===this.decorations[n][0]&&"true"===this.decorations[n][1]){p=p.replace(/\./g,"");break}if(m)if(m=wt.Util.Dates[this.strings.name][s](t,m,i,"accessed"===O,"_end"),t.tmp.strip_periods)m=m.replace(/\./g,"");else for(n=0,o=this.decorations.length;n<o;n+=1)if("@strip-periods"===this.decorations[n][0]&&"true"===this.decorations[n][1]){m=m.replace(/\./g,"");break}}if(t.output.openLevel("empty"),t.tmp.date_collapse_at.length){for(y=!0,u=t.tmp.date_collapse_at.length,l=0;l<u;l+=1)if(j=t.tmp.date_collapse_at[l],-1===t.tmp.donesies.indexOf(j)){y=!1;break}if(y){if(""+m!="0"){if(0===t.dateput.queue.length&&(c=!0),t.opt["year-range-format"]&&"expanded"!==t.opt["year-range-format"]&&!t.tmp.date_object.day&&!t.tmp.date_object.month&&!t.tmp.date_object.season&&"year"===this.strings.name&&p&&m){m=t.fun.year_mangler(p+"-"+m,!0);var a=t.getTerm("year-range-delimiter");m=m.slice(m.indexOf(a)+1)}t.dateput.append(m,this),c&&(t.dateput.current.value()[0].strings.prefix="")}t.output.append(p,this),(v=t.output.current.value()).blobs[v.blobs.length-1].strings.suffix="",t.output.append(t.getTerm("year-range-delimiter"),"empty"),x=t.dateput.current.value(),v.blobs=v.blobs.concat(x),t.dateput.string(t,t.dateput.queue),t.tmp.date_collapse_at=[]}else t.output.append(p,this),-1<t.tmp.date_collapse_at.indexOf(this.strings.name)&&""+m!="0"&&(0===t.dateput.queue.length&&(c=!0),t.dateput.openLevel("empty"),t.dateput.append(m,this),c&&(t.dateput.current.value().blobs[0].strings.prefix=""),b&&t.dateput.append(b),_&&t.dateput.append(_),t.dateput.closeLevel())}else t.output.append(p,this);b&&t.output.append(b),_&&t.output.append(_),t.output.closeLevel()}else"month"===this.strings.name&&t.tmp.date_object.season&&((p=""+t.tmp.date_object.season)&&p.match(/^[1-4]$/)?(t.tmp.group_context.tip.variable_success=!0,t.output.append(t.getTerm("season-0"+p),this)):p&&t.output.append(p,this));t.tmp.value=[],!e[O]||!p&&!t.tmp.have_collapsed||t.opt.has_year_suffix||"year"!==this.strings.name||t.tmp.just_looking||t.registry.registry[e.id]&&!1!==t.registry.registry[e.id].disambig.year_suffix&&!t.tmp.has_done_year_suffix&&(t.tmp.has_done_year_suffix=!0,A=parseInt(t.registry.registry[e.id].disambig.year_suffix,10),w=new wt.NumericBlob(!1,A,this,e.id),this.successor_prefix=t[t.build.area].opt.layout_delimiter,this.splice_prefix=t[t.build.area].opt.layout_delimiter,E=new wt.Util.Suffixator(wt.SUFFIX_CHARS),w.setFormatter(E),"year-suffix-ranged"===t[t.tmp.area].opt.collapse&&(w.range_prefix=t.getTerm("citation-range-delimiter")),t[t.tmp.area].opt.cite_group_delimiter?w.successor_prefix=t[t.tmp.area].opt.cite_group_delimiter:t[t.tmp.area].opt["year-suffix-delimiter"]?w.successor_prefix=t[t.tmp.area].opt["year-suffix-delimiter"]:w.successor_prefix=t[t.tmp.area].opt.layout_delimiter,w.UGLY_DELIMITER_SUPPRESS_HACK=!0,t.output.append(w,"literal"))}},this.execs.push(r),e.push(this)}},(e.exports=wt).Node["else-if"]={build:function(t,e){wt.Conditions.TopNode.call(this,t,e),e.push(this)},configure:function(t,e){wt.Conditions.Configure.call(this,t,e)}},(e.exports=wt).Node["else"]={build:function(t,e){e.push(this)},configure:function(t,e){this.tokentype===wt.START&&(t.configure.fail[t.configure.fail.length-1]=e)}},(e.exports=wt).Node["et-al"]={build:function(t,e){if("citation"===t.build.area||"bibliography"===t.build.area){this.execs.push(function(t,e,r){"string"==typeof(t.tmp.etal_node=this).strings.term&&(t.tmp.etal_term=this.strings.term)})}e.push(this)}},(e.exports=wt).Node.group={build:function(m,t,e){var r,i,f;if(this.realGroup=e,this.tokentype===wt.START&&(wt.Util.substituteStart.call(this,m,t),m.build.substitute_level.value()&&m.build.substitute_level.replace(m.build.substitute_level.value()+1),this.juris||t.push(this),(i=[]).push(r=function(t,e){if(t.output.startTag("group",this),this.strings.label_form_override&&(t.tmp.group_context.tip.label_form||(t.tmp.group_context.tip.label_form=this.strings.label_form_override)),this.strings.label_capitalize_if_first_override&&(t.tmp.group_context.tip.label_capitalize_if_first||(t.tmp.group_context.tip.label_capitalize_if_first=this.strings.label_capitalize_if_first_override)),this.realGroup){var r=!1,i=!1;t.tmp.group_context.mystack.length&&(t.output.current.value().parent=t.tmp.group_context.tip.output_tip);var s=t.tmp.group_context.tip.label_form;s||(s=this.strings.label_form_override);var n=t.tmp.group_context.tip.label_capitalize_if_first;n||(n=this.strings.label_capitalize_if_first),t.tmp.group_context.tip.condition?(r=t.tmp.group_context.tip.condition,i=t.tmp.group_context.tip.force_suppress):this.strings.reject?(r={test:this.strings.reject,not:!0},i=!0,[]):this.strings.require&&(r={test:this.strings.require,not:!1},[]),t.tmp.group_context.push({old_term_predecessor:t.tmp.term_predecessor,term_intended:!1,variable_attempt:!1,variable_success:!1,variable_success_parent:t.tmp.group_context.tip.variable_success,output_tip:t.output.current.tip,label_form:s,label_capitalize_if_first:n,parallel_conditions:this.strings.set_parallel_condition,condition:r,force_suppress:i,done_vars:t.tmp.group_context.tip.done_vars.slice()})}}),this.execs=i.concat(this.execs),this.strings["has-publisher-and-publisher-place"]&&(m.build["publisher-special"]=!0,r=function(t,e){if(this.strings["subgroup-delimiter"]&&e.publisher&&e["publisher-place"]){var r=e.publisher.split(/;\s*/),i=e["publisher-place"].split(/;\s*/);1<r.length&&r.length===i.length&&(t.publisherOutput=new wt.PublisherOutput(t,this),t.publisherOutput["publisher-list"]=r,t.publisherOutput["publisher-place-list"]=i)}},this.execs.push(r)),this.juris)){for(var s=0,n=t.length;s<n;s++)t[s];var o=new wt.Token("choose",wt.START);wt.Node.choose.build.call(o,m,t);var a=new wt.Token("if",wt.START);f=this.juris,r=function(t){if(!m.sys.retrieveStyleModule||!wt.MODULE_MACROS[f]||!t.jurisdiction)return!1;var e=m.getJurisdictionList(t.jurisdiction);if(!m.opt.jurisdictions_seen[e[0]]){var r=m.retrieveAllStyleModules(e);for(var i in r){m.juris[i]={};for(var s=wt.setupXml(r[i]),n=0,o=(c=s.getNodesByName(s.dataObj,"law-module")).length;n<o;n++){var a=s.getAttributeValue(c[n],"types");if(a){m.juris[i].types={};for(var l=0,u=(a=a.split(/\s+/)).length;l<u;l++)m.juris[i].types[a[l]]=!0}}var c;for(m.juris[i].types||(m.juris[i].types=wt.MODULE_TYPES),n=0,o=(c=s.getNodesByName(s.dataObj,"macro")).length;n<o;n++){var p=s.getAttributeValue(c[n],"name");wt.MODULE_MACROS[p]?(m.juris[i][p]=[],m.buildTokenLists(c[n],m.juris[i][p]),m.configureTokenList(m.juris[i][p])):wt.debug('CSL: skipping non-modular macro name "'+p+'" in module context')}}}for(n=0,o=e.length;n<o;n++)if(i=e[n],m.juris[i]&&m.juris[i].types[t.type])return t["best-jurisdiction"]=i,!0;return!1},a.tests.push(r),a.test=m.fun.match.any(a,m,a.tests),t.push(a);var l=new wt.Token("text",wt.SINGLETON);r=function(t,e,r){var i=0;if(t.juris[e["best-jurisdiction"]][this.juris])for(;i<t.juris[e["best-jurisdiction"]][this.juris].length;)i=wt.tokenExec.call(t,t.juris[e["best-jurisdiction"]][this.juris][i],e,r)},l.juris=this.juris,l.execs.push(r),t.push(l);var u=new wt.Token("if",wt.END);wt.Node["if"].build.call(u,m,t);var c=new wt.Token("else",wt.START);wt.Node["else"].build.call(c,m,t)}if(this.tokentype===wt.END&&(m.build["publisher-special"]&&(m.build["publisher-special"]=!1,"string"==typeof m[m.build.root].opt["name-delimiter"]&&(r=function(t,e){t.publisherOutput&&(t.publisherOutput.render(),t.publisherOutput=!1)},this.execs.push(r))),r=function(t,e){if(t.output.endTag(),this.realGroup){var r=t.tmp.group_context.pop();if(t.tmp.group_context.tip.condition&&(t.tmp.group_context.tip.force_suppress=r.force_suppress),!r.force_suppress&&(r.variable_success||r.term_intended&&!r.variable_attempt)){this.isJurisLocatorLabel||(t.tmp.group_context.tip.variable_success=!0);var i=t.output.current.value().blobs,s=t.output.current.value().blobs.length-1;if(!t.tmp.just_looking&&"undefined"!=typeof r.parallel_conditions){var n={blobs:i,conditions:r.parallel_conditions,id:e.id,pos:s};t.parallel.parallel_conditional_blobs_list.push(n)}}else{if(t.tmp.term_predecessor=r.old_term_predecessor,t.tmp.group_context.tip.variable_attempt=r.variable_attempt,r.force_suppress&&!t.tmp.group_context.tip.condition){t.tmp.group_context.tip.variable_attempt=!0,t.tmp.group_context.tip.variable_success=r.variable_success_parent;for(var o=0,a=r.done_vars.length;o<a;o++)-1<t.tmp.done_vars.indexOf(r.done_vars[o])&&(t.tmp.done_vars=t.tmp.done_vars.slice(0,o).concat(t.tmp.done_vars.slice(o+1)))}t.output.current.value().blobs&&t.output.current.value().blobs.pop()}}},this.execs.push(r),this.juris)){var p=new wt.Token("else",wt.END);wt.Node["else"].build.call(p,m,t);var h=new wt.Token("choose",wt.END);wt.Node.choose.build.call(h,m,t)}this.tokentype===wt.END&&(this.juris||t.push(this),m.build.substitute_level.value()&&m.build.substitute_level.replace(m.build.substitute_level.value()-1),wt.Util.substituteEnd.call(this,m,t))}},(e.exports=wt).Node["if"]={build:function(t,e){wt.Conditions.TopNode.call(this,t,e),e.push(this)},configure:function(t,e){wt.Conditions.Configure.call(this,t,e)}},(e.exports=wt).Node.conditions={build:function(t,e){this.tokentype===wt.START&&t.tmp.conditions.addMatch(this.match),this.tokentype===wt.END&&t.tmp.conditions.matchCombine()}},(e.exports=wt).Node.condition={build:function(t,e){if(this.tokentype===wt.SINGLETON){var r=t.fun.match[this.match](this,t,this.tests);t.tmp.conditions.addTest(r)}}},(e.exports=wt).Conditions={},wt.Conditions.TopNode=function(t,e){var r;this.tokentype!==wt.START&&this.tokentype!==wt.SINGLETON||(this.locale&&(t.opt.lang=this.locale),this.tests&&this.tests.length?this.test=t.fun.match[this.match](this,t,this.tests):t.tmp.conditions=new wt.Conditions.Engine(t,this)),this.tokentype!==wt.END&&this.tokentype!==wt.SINGLETON||(r=function(t,e){return this.locale_default&&(t.output.current.value().old_locale=this.locale_default,t.output.closeLevel("empty"),t.opt.lang=this.locale_default),this[t.tmp.jump.value()]},this.execs.push(r),this.locale_default&&(t.opt.lang=this.locale_default))},wt.Conditions.Configure=function(t,e){this.tokentype===wt.START?(this.fail=t.configure.fail.slice(-1)[0],this.succeed=this.next,t.configure.fail[t.configure.fail.length-1]=e):this.tokentype===wt.SINGLETON?(this.fail=this.next,this.succeed=t.configure.succeed.slice(-1)[0],t.configure.fail[t.configure.fail.length-1]=e):(this.succeed=t.configure.succeed.slice(-1)[0],this.fail=this.next)},wt.Conditions.Engine=function(t,e){this.token=e,this.state=t},wt.Conditions.Engine.prototype.addTest=function(t){this.token.tests.push(t)},wt.Conditions.Engine.prototype.addMatch=function(t){this.token.match=t},wt.Conditions.Engine.prototype.matchCombine=function(){this.token.test=this.state.fun.match[this.token.match](this.token,this.state,this.token.tests)},(e.exports=wt).Node.info={build:function(t,e){this.tokentype===wt.START?t.build.skip="info":t.build.skip=!1}},(e.exports=wt).Node.institution={build:function(t,e){if(-1<[wt.SINGLETON,wt.START].indexOf(this.tokentype)){this.execs.push(function(t,e){"string"==typeof this.strings.delimiter?t.tmp.institution_delimiter=this.strings.delimiter:t.tmp.institution_delimiter=t.tmp.name_delimiter,"text"===t.inheritOpt(this,"and")?this.and_term=t.getTerm("and","long",0):"symbol"===t.inheritOpt(this,"and")?t.opt.development_extensions.expect_and_symbol_form?this.and_term=t.getTerm("and","symbol",0):this.and_term="&":"none"===t.inheritOpt(this,"and")&&(this.and_term=t.tmp.institution_delimiter),"undefined"==typeof this.and_term&&t.tmp.and_term&&(this.and_term=t.getTerm("and","long",0)),wt.STARTSWITH_ROMANESQUE_REGEXP.test(this.and_term)?(this.and_prefix_single=" ",this.and_prefix_multiple=", ","string"==typeof t.tmp.institution_delimiter&&(this.and_prefix_multiple=t.tmp.institution_delimiter),this.and_suffix=" "):(this.and_prefix_single="",this.and_prefix_multiple="",this.and_suffix=""),"always"===t.inheritOpt(this,"delimiter-precedes-last")?this.and_prefix_single=t.tmp.institution_delimiter:"never"===t.inheritOpt(this,"delimiter-precedes-last")&&this.and_prefix_multiple&&(this.and_prefix_multiple=" "),this.and={},"undefined"!=typeof this.and_term?(t.output.append(this.and_term,"empty",!0),this.and.single=t.output.pop(),this.and.single.strings.prefix=this.and_prefix_single,this.and.single.strings.suffix=this.and_suffix,t.output.append(this.and_term,"empty",!0),this.and.multiple=t.output.pop(),this.and.multiple.strings.prefix=this.and_prefix_multiple,this.and.multiple.strings.suffix=this.and_suffix):"undefined"!==this.strings.delimiter&&(this.and.single=new wt.Blob(t.tmp.institution_delimiter),this.and.single.strings.prefix="",this.and.single.strings.suffix="",this.and.multiple=new wt.Blob(t.tmp.institution_delimiter),this.and.multiple.strings.prefix="",this.and.multiple.strings.suffix=""),t.nameOutput.institution=this})}e.push(this)},configure:function(t,e){-1<[wt.SINGLETON,wt.START].indexOf(this.tokentype)&&(t.build.has_institution=!0)}},(e.exports=wt).Node["institution-part"]={build:function(t,e){var r;"long"===this.strings.name?r=this.strings["if-short"]?function(t,e){t.nameOutput.institutionpart["long-with-short"]=this}:function(t,e){t.nameOutput.institutionpart["long"]=this}:"short"===this.strings.name&&(r=function(t,e){t.nameOutput.institutionpart["short"]=this}),this.execs.push(r),e.push(this)}},(e.exports=wt).Node.key={build:function(t,e){var r;e=t[t.build.root+"_sort"].tokens;var i=new wt.Token("key",wt.START);t.tmp.root=t.build.root,i.strings["et-al-min"]=t.inheritOpt(this,"et-al-min"),i.strings["et-al-use-first"]=t.inheritOpt(this,"et-al-use-first"),i.strings["et-al-use-last"]=t.inheritOpt(this,"et-al-use-last"),r=function(t,e){t.tmp.done_vars=[]},i.execs.push(r),t.opt.citation_number_sort_direction=this.strings.sort_direction,r=function(t,e){t.output.openLevel("empty")},i.execs.push(r);var s=[];if(this.strings.sort_direction===wt.DESCENDING?(s.push(1),s.push(-1)):(s.push(-1),s.push(1)),t[t.build.area].opt.sort_directions.push(s),-1<wt.DATE_VARIABLES.indexOf(this.variables[0])&&(t.build.date_key=!0),r=function(t,e){t.tmp.sort_key_flag=!0,t.inheritOpt(this,"et-al-min")&&(t.tmp["et-al-min"]=t.inheritOpt(this,"et-al-min")),t.inheritOpt(this,"et-al-use-first")&&(t.tmp["et-al-use-first"]=t.inheritOpt(this,"et-al-use-first")),"boolean"==typeof t.inheritOpt(this,"et-al-use-last")&&(t.tmp["et-al-use-last"]=t.inheritOpt(this,"et-al-use-last"))},i.execs.push(r),e.push(i),this.variables.length){var n=this.variables[0];if("citation-number"===n&&("citation"===t.build.area&&"_sort"===t.build.extension&&(t.opt.citation_number_sort=!1),"bibliography"===t.build.root&&"_sort"===t.build.extension&&(t.opt.citation_number_sort_used=!1)),-1<wt.CREATORS.indexOf(n)){var o=new wt.Token("names",wt.START);o.tokentype=wt.START,o.variables=this.variables,wt.Node.names.build.call(o,t,e);var a=new wt.Token("name",wt.SINGLETON);a.tokentype=wt.SINGLETON,a.strings["name-as-sort-order"]="all",a.strings["sort-separator"]=" ",a.strings["et-al-use-last"]=t.inheritOpt(this,"et-al-use-last"),a.strings["et-al-min"]=t.inheritOpt(this,"et-al-min"),a.strings["et-al-use-first"]=t.inheritOpt(this,"et-al-use-first"),wt.Node.name.build.call(a,t,e);var l=new wt.Token("institution",wt.SINGLETON);l.tokentype=wt.SINGLETON,wt.Node.institution.build.call(l,t,e);var u=new wt.Token("names",wt.END);u.tokentype=wt.END,wt.Node.names.build.call(u,t,e)}else{var c=new wt.Token("text",wt.SINGLETON);if(c.dateparts=this.dateparts,-1<wt.NUMERIC_VARIABLES.indexOf(n))r=function(t,e){var r;r=!1,(r="citation-number"===n?t.registry.registry[e.id].seq.toString():e[n])&&(r=wt.Util.padding(r)),t.output.append(r,this)};else if("citation-label"===n)r=function(t,e){var r=t.getCitationLabel(e);t.output.append(r,this)};else if(-1<wt.DATE_VARIABLES.indexOf(n))r=wt.dateAsSortKey,c.variables=this.variables;else if("title"===n){r=t.transform.getOutputFunction(this.variables,"title",!1,!1,!0)}else r=function(t,e){var r=e[n];t.output.append(r,"empty")};c.execs.push(r),e.push(c)}}else{var p=new wt.Token("text",wt.SINGLETON);p.postponed_macro=this.postponed_macro,wt.expandMacro.call(t,p,e)}var m=new wt.Token("key",wt.END);r=function(t,e){var r=t.output.string(t,t.output.queue);t.sys.normalizeUnicode&&(r=t.sys.normalizeUnicode(r)),""===(r=r?r.split(" ").join(t.opt.sort_sep)+t.opt.sort_sep:"")&&(r=undefined),("string"!=typeof r||t.tmp.empty_date)&&(r=undefined,t.tmp.empty_date=!1),t[t[t.tmp.area].root+"_sort"].keys.push(r),t.tmp.value=[]},m.execs.push(r),t.build.date_key&&("citation"===t.build.area&&"_sort"===t.build.extension&&(t[t.build.area].opt.sort_directions.push([-1,1]),r=function(t,e){var r=t.registry.registry[e.id].disambig.year_suffix;r||(r=0);var i=wt.Util.padding(""+r);t[t.tmp.area].keys.push(i)},m.execs.push(r)),t.build.date_key=!1),r=function(t,e){t.tmp["et-al-min"]=undefined,t.tmp["et-al-use-first"]=undefined,t.tmp["et-al-use-last"]=undefined,t.tmp.sort_key_flag=!1},m.execs.push(r),e.push(m)}},(e.exports=wt).Node.label={build:function(t,e){if(this.strings.term){this.strings.form;this.execs.push(function(t,e,r){var i=wt.evaluateLabel(this,t,e,r);r&&"locator"===this.strings.term&&(t.parallel.StartVariable("label"),t.parallel.AppendToVariable(r.label),r.section_form_override=this.strings.form),i&&(t.tmp.group_context.tip.term_intended=!0),wt.UPDATE_GROUP_CONTEXT_CONDITION(t,i),-1===i.indexOf("%s")&&(this.strings.capitalize_if_first&&(t.tmp.term_predecessor||"in-text"===t.opt["class"]&&"citation"===t.tmp.area||(i=wt.Output.Formatters["capitalize-first"](t,i))),t.output.append(i,this)),r&&"locator"===this.strings.term&&t.parallel.CloseVariable()})}else{var r=t.build.names_variables.slice(-1)[0];t.build.name_label||(t.build.name_label={});for(var i=0,s=r.length;i<s;i+=1)t.build.name_label[r[i]]||(t.build.name_label[r[i]]={});if(t.build.name_flag)for(i=0,s=r.length;i<s;i+=1)t.build.name_label[r[i]].after=this;else for(var i=0,s=r.length;i<s;i+=1)t.build.name_label[r[i]].before=this}e.push(this)}},(e.exports=wt).Node.layout={build:function(t,e){var r,i,s,n,o;function a(){"bibliography"===t.build.area&&(s=new wt.Token("text",wt.SINGLETON),r=function(t,e,r){var i;t.tmp.cite_locales[t.tmp.cite_locales.length-1];i=t.tmp.cite_affixes[t.tmp.area][t.tmp.last_cite_locale]?t.tmp.cite_affixes[t.tmp.area][t.tmp.last_cite_locale].suffix:t.bibliography.opt.layout_suffix;var s=t.output.current.value();t.opt.using_display?s.blobs[s.blobs.length-1].strings.suffix=i:s.strings.suffix=i,t.bibliography.opt["second-field-align"]&&t.output.endTag("bib_other")},s.execs.push(r),e.push(s))}if(this.tokentype===wt.START&&(this.locale_raw?t.build.current_default_locale=this.locale_raw:t.build.current_default_locale=t.opt["default-locale"],r=function(t,e,r){t.opt.development_extensions.apply_citation_wrapper&&t.sys.wrapCitationEntry&&!t.tmp.just_looking&&e.system_id&&"citation"===t.tmp.area&&(cite_entry=new wt.Token("group",wt.START),cite_entry.decorations=[["@cite","entry"]],t.output.startTag("cite_entry",cite_entry),t.output.current.value().item_id=e.system_id,r&&(t.output.current.value().locator_txt=r.locator_txt,t.output.current.value().suffix_txt=r.suffix_txt))},this.execs.push(r)),this.tokentype!==wt.START||t.tmp.cite_affixes[t.build.area]||(r=function(t,e){t.tmp.done_vars=[],t.opt.suppressedJurisdictions[e.country]&&e.country&&-1===["treaty","patent"].indexOf(e.type)&&t.tmp.done_vars.push("country"),!t.tmp.just_looking&&t.registry.registry[e.id]&&t.registry.registry[e.id].parallel&&t.tmp.done_vars.push("first-reference-note-number"),t.tmp.rendered_name=!1},this.execs.push(r),r=function(t,e){t.tmp.sort_key_flag=!1},this.execs.push(r),r=function(t,e){t.tmp.nameset_counter=0},this.execs.push(r),r=function(t,e){var r=new wt.Token;t.opt.development_extensions.rtl_support&&-1<["ar","he","fa","ur","yi","ps","syr"].indexOf(e.language)&&((r=new wt.Token).strings.prefix="\u202b",r.strings.suffix="\u202c"),t.output.openLevel(r)},this.execs.push(r),e.push(this),t.opt.development_extensions.rtl_support,"citation"===t.build.area&&(i=new wt.Token("text",wt.SINGLETON),r=function(t,e,r){var i;if(r&&r.prefix){i="";var s=r.prefix.replace(/<[^>]+>/g,"").replace(/["'\u201d\u2019\u00bb\u202f\u00a0 ]+$/g,""),n=s.slice(-1);s.match(wt.ENDSWITH_ROMANESQUE_REGEXP)?i=" ":-1<wt.TERMINAL_PUNCTUATION.slice(0,-1).indexOf(n)?i=" ":n.match(/[\)\],0-9]/)&&(i=" ");var o=!1;-1<wt.TERMINAL_PUNCTUATION.slice(0,-1).indexOf(n)&&-1<r.prefix.trim().indexOf(" ")&&(o=!(t.tmp.term_predecessor=!1));var a=(r.prefix+i).replace(/\s+/g," ");t.tmp.just_looking||(a=t.output.checkNestedBrace.update(a)),t.output.append(a,this,!1,o)}},i.execs.push(r),e.push(i))),this.locale_raw&&((o=new wt.Token("dummy",wt.START)).locale=this.locale_raw,o.strings.delimiter=this.strings.delimiter,o.strings.suffix=this.strings.suffix,t.tmp.cite_affixes[t.build.area]||(t.tmp.cite_affixes[t.build.area]={})),this.tokentype===wt.START&&(t.build.layout_flag=!0,this.locale_raw||(t[t.tmp.area].opt.topdecor=[this.decorations],t[t.tmp.area+"_sort"].opt.topdecor=[this.decorations],t[t.build.area].opt.layout_prefix=this.strings.prefix,t[t.build.area].opt.layout_suffix=this.strings.suffix,t[t.build.area].opt.layout_delimiter=this.strings.delimiter,t[t.build.area].opt.layout_decorations=this.decorations,t.tmp.cite_affixes[t.build.area]&&(n=new wt.Token("else",wt.START),wt.Node["else"].build.call(n,t,e))),this.locale_raw)){if(t.build.layout_locale_flag)o.name="else-if",wt.Attributes["@locale-internal"].call(o,t,this.locale_raw),wt.Node["else-if"].build.call(o,t,e);else{var l=new wt.Token("choose",wt.START);wt.Node.choose.build.call(l,t,e),o.name="if",wt.Attributes["@locale-internal"].call(o,t,this.locale_raw),wt.Node["if"].build.call(o,t,e)}t.tmp.cite_affixes[t.build.area][o.locale]={},t.tmp.cite_affixes[t.build.area][o.locale].delimiter=this.strings.delimiter,t.tmp.cite_affixes[t.build.area][o.locale].suffix=this.strings.suffix}this.tokentype===wt.END&&(this.locale_raw&&(a(),t.build.layout_locale_flag?(o.name="else-if",o.tokentype=wt.END,wt.Attributes["@locale-internal"].call(o,t,this.locale_raw),wt.Node["else-if"].build.call(o,t,e)):(o.name="if",o.tokentype=wt.END,wt.Attributes["@locale-internal"].call(o,t,this.locale_raw),wt.Node["if"].build.call(o,t,e),t.build.layout_locale_flag=!0)),this.locale_raw||(a(),t.tmp.cite_affixes[t.build.area]&&t.build.layout_locale_flag&&(n=new wt.Token("else",wt.END),wt.Node["else"].build.call(n,t,e),n=new wt.Token("choose",wt.END),wt.Node.choose.build.call(n,t,e)),t.build_layout_locale_flag=!0,"citation"===t.build.area&&(s=new wt.Token("text",wt.SINGLETON),r=function(t,e,r){var i;if(r&&r.suffix){i="",(r.suffix.match(wt.STARTSWITH_ROMANESQUE_REGEXP)||-1<["[","("].indexOf(r.suffix.slice(0,1)))&&(i=" ");var s=r.suffix;t.tmp.just_looking||(s=t.output.checkNestedBrace.update(s)),t.output.append(i+s,this)}},s.execs.push(r),e.push(s)),r=function(t,e){t.output.closeLevel()},this.execs.push(r),r=function(t,e){t.opt.development_extensions.apply_citation_wrapper&&t.sys.wrapCitationEntry&&!t.tmp.just_looking&&e.system_id&&"citation"===t.tmp.area&&t.output.endTag()},this.execs.push(r),e.push(this),t.build.layout_flag=!1,t.build.layout_locale_flag=!1))}},(e.exports=wt).Node.macro={build:function(t,e){}},(e.exports=wt).NameOutput=function(t,e,r,i){this.debug=!1,this.state=t,this.Item=e,this.item=r,this.nameset_base=0,this.etal_spec={},this._first_creator_variable=!1,this._please_chop=!1},wt.NameOutput.prototype.init=function(t){this.state.tmp.term_predecessor&&(this.state.tmp.subsequent_author_substitute_ok=!1),this.nameset_offset&&(this.nameset_base=this.nameset_base+this.nameset_offset),this.nameset_offset=0,this.names=t,this.variables=t.variables,this.state.tmp.value=[],this.state.tmp.rendered_name=[],this.state.tmp.label_blob=!1,this.state.tmp.etal_node=!1,this.state.tmp.etal_term=!1;for(var e=0,r=this.variables.length;e<r;e+=1)this.Item[this.variables[e]]&&this.Item[this.variables[e]].length&&(this.state.tmp.value=this.state.tmp.value.concat(this.Item[this.variables[e]]));this["et-al"]=undefined,this["with"]=undefined,this.name=undefined,this.institutionpart={},this.state.tmp.group_context.tip.variable_attempt=!0,this.labelVariable=this.variables[0],this.state.tmp.value.length},wt.NameOutput.prototype.reinit=function(t,e){if(this.labelVariable=e,this.state.tmp.can_substitute.value()){this.nameset_offset=0,this.variables=t.variables;var r=this.state.tmp.value.slice();this.state.tmp.value=[];for(var i=0,s=this.variables.length;i<s;i+=1)this.Item[this.variables[i]]&&this.Item[this.variables[i]].length&&(this.state.tmp.value=this.state.tmp.value.concat(this.Item[this.variables[i]]));this.state.tmp.value.length&&this.state.tmp.can_substitute.replace(!1,wt.LITERAL),this.state.tmp.value=r}},wt.NameOutput.prototype.outputNames=function(){var t=this.variables;if(this.institution.and&&(this.institution.and.single.blobs&&this.institution.and.single.blobs.length||(this.institution.and.single.blobs=this.name.and.single.blobs),this.institution.and.multiple.blobs&&this.institution.and.multiple.blobs.length||(this.institution.and.multiple.blobs=this.name.and.multiple.blobs)),this.variable_offset={},this.family)for(this.family_decor=wt.Util.cloneToken(this.family),this.family_decor.strings.prefix="",this.family_decor.strings.suffix="",f=0,h=this.family.execs.length;f<h;f+=1)this.family.execs[f].call(this.family_decor,this.state,this.Item);else this.family_decor=!1;if(this.given)for(this.given_decor=wt.Util.cloneToken(this.given),this.given_decor.strings.prefix="",this.given_decor.strings.suffix="",f=0,h=this.given.execs.length;f<h;f+=1)this.given.execs[f].call(this.given_decor,this.state,this.Item);else this.given_decor=!1;if(this.getEtAlConfig(),this.divideAndTransliterateNames(),this.truncatePersonalNameLists(),this.disambigNames(),this.constrainNames(),"count"!==this.name.strings.form){this.setEtAlParameters(),this.setCommonTerm(),this.state.tmp.name_node={},this.state.tmp.name_node.children=[],this.renderAllNames();var e=[];for(f=0,h=t.length;f<h;f+=1){var r=t[f],i=[],s=!1,n=null;if(this.state.opt.development_extensions.spoof_institutional_affiliations){for(var o=0,a=this.institutions[r].length;o<a;o+=1)i.push(this.joinPersonsAndInstitutions([this.persons[r][o],this.institutions[r][o]]));if(this.institutions[r].length){var l=this.nameset_base+this.variable_offset[r];this.freeters[r].length&&(l+=1),s=this.joinInstitutionSets(i,l)}n=this.joinFreetersAndInstitutionSets([this.freeters[r],s])}else n=this._join([this.freeters[r]],"");if(n&&(this.state.tmp.extension||(n=this._applyLabels(n,r)),e.push(n)),this.common_term)break}for(this.state.output.openLevel("empty"),this.state.output.current.value().strings.delimiter=this.state.inheritOpt(this.names,"delimiter","names-delimiter"),f=0,h=e.length;f<h;f+=1)this.state.output.append(e[f],"literal",!0);this.state.output.closeLevel("empty");var u=this.state.output.pop(),c=wt.Util.cloneToken(this.names);if(this.state.output.append(u,c),this.state.tmp.term_predecessor_name&&(this.state.tmp.term_predecessor=!0),this.state.tmp.name_node.top=this.state.output.current.value(),"authority"!==t[0]){var p=[],m=this.Item[t[0]];if(m)for(var f=0,h=m.length;f<h;f+=1){var d=wt.Util.Names.getRawName(m[f]);d&&p.push(d)}(p=p.join(", "))&&(this.state.tmp.name_node.string=p)}if(this.state.tmp.name_node.string&&!this.state.tmp.first_name_string&&(this.state.tmp.first_name_string=this.state.tmp.name_node.string),"classic"===this.Item.type){var g=[];this.state.tmp.first_name_string&&g.push(this.state.tmp.first_name_string),this.Item.title&&g.push(this.Item.title),(g=g.join(", "))&&this.state.sys.getAbbreviation&&(this.state.transform.loadAbbreviation("default","classic",g),this.state.transform.abbrevs["default"].classic[g]&&(this.state.tmp.done_vars.push("title"),this.state.output.append(this.state.transform.abbrevs["default"].classic[g],"empty",!0),u=this.state.output.pop(),this.state.tmp.name_node.top.blobs.pop(),this.state.tmp.name_node.top.blobs.push(u)))}this._collapseAuthor(),this.variables=[]}else(this.state.tmp.extension||0!=this.names_count)&&(this.state.output.append(this.names_count,"empty"),this.state.tmp.group_context.tip.variable_success=!0)},wt.NameOutput.prototype._applyLabels=function(t,e){var r;if(!this.label||!this.label[this.labelVariable])return t;var i=0,s=this.freeters_count[e]+this.institutions_count[e];if(1<s)i=1;else{for(var n=0,o=this.persons[e].length;n<o;n+=1)s+=this.persons_count[e][n];1<s&&(i=1)}return this.label[this.labelVariable].before?("number"==typeof this.label[this.labelVariable].before.strings.plural&&(i=this.label[this.labelVariable].before.strings.plural),r=this._buildLabel(e,i,"before",this.labelVariable),this.state.output.openLevel("empty"),this.state.output.append(r,this.label[this.labelVariable].before,!0),this.state.output.append(t,"literal",!0),this.state.output.closeLevel("empty"),t=this.state.output.pop()):this.label[this.labelVariable].after&&("number"==typeof this.label[this.labelVariable].after.strings.plural&&(i=this.label[this.labelVariable].after.strings.plural),r=this._buildLabel(e,i,"after",this.labelVariable),this.state.output.openLevel("empty"),this.state.output.append(t,"literal",!0),this.state.output.append(r,this.label[this.labelVariable].after,!0),this.state.tmp.label_blob=this.state.output.pop(),this.state.output.append(this.state.tmp.label_blob,"literal",!0),this.state.output.closeLevel("empty"),t=this.state.output.pop()),t},wt.NameOutput.prototype._buildLabel=function(t,e,r,i){this.common_term&&(t=this.common_term);var s=!1,n=this.label[i][r];return n&&(s=wt.castLabel(this.state,n,t,e,wt.TOLERANT)),s},wt.NameOutput.prototype._collapseAuthor=function(){var t,e,r;0===this.nameset_base&&this.Item[this.variables[0]]&&!this._first_creator_variable&&(this._first_creator_variable=this.variables[0]),(this.item&&this.item["suppress-author"]&&this._first_creator_variable==this.variables[0]||this.state[this.state.tmp.area].opt.collapse&&this.state[this.state.tmp.area].opt.collapse.length||this.state[this.state.tmp.area].opt.cite_group_delimiter&&this.state[this.state.tmp.area].opt.cite_group_delimiter.length)&&(this.state.tmp.authorstring_request?(e="",t=this.state.tmp.name_node.top.blobs.slice(-1)[0].blobs,r=this.state.tmp.offset_characters,t&&(e=this.state.output.string(this.state,t,!1)),this.state.tmp.offset_characters=r,this.state.registry.authorstrings[this.Item.id]=e):this.state.tmp.just_looking||this.state.tmp.suppress_decorations||!(this.item["suppress-author"]||this.state[this.state.tmp.area].opt.collapse&&this.state[this.state.tmp.area].opt.collapse.length||this.state[this.state.tmp.area].opt.cite_group_delimiter&&this.state[this.state.tmp.area].opt.cite_group_delimiter)||(e="",t=this.state.tmp.name_node.top.blobs.slice(-1)[0].blobs,r=this.state.tmp.offset_characters,t&&(e=this.state.output.string(this.state,t,!1)),e===this.state.tmp.last_primary_names_string?((this.item["suppress-author"]||this.state[this.state.tmp.area].opt.collapse&&this.state[this.state.tmp.area].opt.collapse.length)&&(this.state.tmp.name_node.top.blobs.pop(),this.state.tmp.name_node.children=[],this.state.tmp.offset_characters=r),this.state[this.state.tmp.area].opt.cite_group_delimiter&&this.state[this.state.tmp.area].opt.cite_group_delimiter&&(this.state.tmp.use_cite_group_delimiter=!0)):(this.state.tmp.last_primary_names_string=e,-1<this.variables.indexOf(this._first_creator_variable)&&this.item&&this.item["suppress-author"]&&"legal_case"!==this.Item.type&&(this.state.tmp.name_node.top.blobs.pop(),this.state.tmp.name_node.children=[],this.state.tmp.offset_characters=r,this.state.tmp.term_predecessor=!1),this.state.tmp.have_collapsed=!1,this.state[this.state.tmp.area].opt.cite_group_delimiter&&this.state[this.state.tmp.area].opt.cite_group_delimiter&&(this.state.tmp.use_cite_group_delimiter=!1))))},(e.exports=wt).NameOutput.prototype.isPerson=function(t){return!(t.literal||!t.given&&t.family&&t.isInstitution)},(e.exports=wt).NameOutput.prototype.truncatePersonalNameLists=function(){var t,e,r,i;for(t in this.freeters_count={},this.persons_count={},this.institutions_count={},this.freeters)this.freeters.hasOwnProperty(t)&&(this.freeters_count[t]=this.freeters[t].length,this.freeters[t]=this._truncateNameList(this.freeters,t));for(t in this.persons)if(this.persons.hasOwnProperty(t))for(this.institutions_count[t]=this.institutions[t].length,this._truncateNameList(this.institutions,t),this.persons[t]=this.persons[t].slice(0,this.institutions[t].length),this.persons_count[t]=[],s=0,n=this.persons[t].length;s<n;s+=1)this.persons_count[t][s]=this.persons[t][s].length,this.persons[t][s]=this._truncateNameList(this.persons,t,s);if((i=1===this.etal_min&&1===this.etal_use_first&&!this.state.tmp.extension&&!this.state.tmp.just_looking&&t)||this._please_chop)for(e=0,r=this.variables.length;e<r;e+=1){t=this.variables[e],this.freeters[t].length&&(this._please_chop===t?(this.freeters[t]=this.freeters[t].slice(1),this.freeters_count[t]+=-1,this._please_chop=!1):i&&!this._please_chop&&(this.freeters[t]=this.freeters[t].slice(0,1),this.freeters_count[t]=1,this.institutions[t]=[],this.persons[t]=[],this._please_chop=i));for(var s=0,n=this.persons[t].length;s<n;s++)if(this.persons[t][s].length){if(this._please_chop===t){this.persons[t][s]=this.persons[t][s].slice(1),this.persons_count[t][s]+=-1,this._please_chop=!1;break}if(i&&!this._please_chop){this.freeters[t]=this.persons[t][s].slice(0,1),this.freeters_count[t]=1,this.institutions[t]=[],this.persons[t]=[],[],this._please_chop=i;break}}this.institutions[t].length&&(this._please_chop===t?(this.institutions[t]=this.institutions[t].slice(1),this.institutions_count[t]+=-1,this._please_chop=!1):i&&!this._please_chop&&(this.institutions[t]=this.institutions[t].slice(0,1),this.institutions_count[t]=1,[],this._please_chop=i))}for(e=0,r=this.variables.length;e<r;e+=1){this.institutions[t].length&&(this.nameset_offset+=1);for(s=0,n=this.persons[t].length;s<n;s++)this.persons[t][s].length&&(this.nameset_offset+=1)}},wt.NameOutput.prototype._truncateNameList=function(t,e,r){var i;if(i=void 0===r?t[e]:t[e][r],this.state[this.state[this.state.tmp.area].root].opt.max_number_of_names&&50<i.length&&i.length>this.state[this.state[this.state.tmp.area].root].opt.max_number_of_names+2){var s=this.state[this.state[this.state.tmp.area].root].opt.max_number_of_names;i=i.slice(0,s+1).concat(i.slice(-1))}return i},(e.exports=wt).NameOutput.prototype.divideAndTransliterateNames=function(){var t,e,r,i,s=this.Item,n=this.variables;for(this.varnames=n.slice(),this.freeters={},this.persons={},this.institutions={},t=0,e=n.length;t<e;t+=1){var o=n[t];this.variable_offset[o]=this.nameset_offset;var a=this._normalizeVariableValue(s,o);if(this.name.strings["suppress-min"]&&a.length>=this.name.strings["suppress-min"]&&(a=[]),this.name.strings["suppress-max"]&&a.length<=this.name.strings["suppress-max"]&&(a=[]),this._getFreeters(o,a),this._getPersonsAndInstitutions(o,a),this.state.opt.development_extensions.spoof_institutional_affiliations)if(0===this.name.strings["suppress-min"])for(this.freeters[o]=[],r=0,i=this.persons[o].length;r<i;r+=1)this.persons[o][r]=[];else if(0===this.institution.strings["suppress-min"]){for(this.institutions[o]=[],this.freeters[o]=this.freeters[o].concat(this.persons[o]),r=0,i=this.persons[o].length;r<i;r+=1)for(var l=0,u=this.persons[o][r].length;l<u;l+=1)this.freeters[o].push(this.persons[o][r][l]);this.persons[o]=[]}}},wt.NameOutput.prototype._normalizeVariableValue=function(t,e){var r;return"string"==typeof t[e]||"number"==typeof t[e]?(wt.debug('name variable "'+e+'" is string or number, not array. Attempting to fix.'),r=[{literal:t[e]+""}]):t[e]?("number"!=typeof t[e].length&&(wt.debug('name variable "'+e+'" is object, not array. Attempting to fix.'),t[e]=[t[e]]),r=t[e].slice()):r=[],r},wt.NameOutput.prototype._getFreeters=function(t,e){if(this.freeters[t]=[],this.state.opt.development_extensions.spoof_institutional_affiliations)for(var r=e.length-1;-1<r&&this.isPerson(e[r]);r--){(i=this._checkNickname(e.pop()))&&this.freeters[t].push(i)}else for(r=e.length-1;-1<r;r--){var i=e.pop();if(this.isPerson(i))i=this._checkNickname(i);this.freeters[t].push(i)}this.freeters[t].reverse(),this.freeters[t].length&&(this.nameset_offset+=1)},wt.NameOutput.prototype._getPersonsAndInstitutions=function(t,e){if(this.persons[t]=[],this.institutions[t]=[],this.state.opt.development_extensions.spoof_institutional_affiliations){for(var r=[],i=!1,s=!0,n=e.length-1;-1<n;n+=-1)if(this.isPerson(e[n])){var o=this._checkNickname(e[n]);o&&r.push(o)}else i=!0,this.institutions[t].push(e[n]),s||(r.reverse(),this.persons[t].push(r),r=[]),s=!1;i&&(r.reverse(),this.persons[t].push(r),this.persons[t].reverse(),this.institutions[t].reverse())}},wt.NameOutput.prototype._clearValues=function(t){for(var e=t.length-1;-1<e;e+=-1)t.pop()},wt.NameOutput.prototype._checkNickname=function(t){if(-1<["interview","personal_communication"].indexOf(this.Item.type)){var e;if((e=wt.Util.Names.getRawName(t))&&this.state.sys.getAbbreviation&&(!this.item||!this.item["suppress-author"])){var r=e;this.state.sys.normalizeAbbrevsKey&&(r=this.state.sys.normalizeAbbrevsKey("author",e)),this.state.transform.loadAbbreviation("default","nickname",r);var i=this.state.transform.abbrevs["default"].nickname[r];i&&(t="!here>>>"!==i&&{family:i,given:""})}}return t},(e.exports=wt).NameOutput.prototype.joinPersons=function(t,e,r,i){return i||(i="name"),void 0===r?1===this.etal_spec[e].freeters?this._joinEtAl(t,i):2===this.etal_spec[e].freeters?this._joinEllipsis(t,i):this.state.tmp.sort_key_flag?this._join(t," "):this._joinAnd(t,i):1===this.etal_spec[e].persons[r]?this._joinEtAl(t,i):2===this.etal_spec[e].persons[r]?this._joinEllipsis(t,i):this.state.tmp.sort_key_flag?this._join(t," "):this._joinAnd(t,i)},wt.NameOutput.prototype.joinInstitutionSets=function(t,e){return 1===this.etal_spec[e].institutions?this._joinEtAl(t,"institution"):2===this.etal_spec[e].institutions?this._joinEllipsis(t,"institution"):this._joinAnd(t,"institution")},wt.NameOutput.prototype.joinPersonsAndInstitutions=function(t){return this._join(t,this.state.tmp.name_delimiter)},wt.NameOutput.prototype.joinFreetersAndInstitutionSets=function(t){return this._join(t,"[never here]",this["with"].single,this["with"].multiple)},wt.NameOutput.prototype._joinEtAl=function(t,e){var r=this._join(t,this.state.tmp.name_delimiter);return this.state.output.openLevel(this._getToken(e)),this.state.output.current.value().strings.delimiter="",this.state.output.append(r,"literal",!0),1<t.length?this.state.output.append(this["et-al"].multiple,"literal",!0):1===t.length&&this.state.output.append(this["et-al"].single,"literal",!0),this.state.output.closeLevel(),this.state.output.pop()},wt.NameOutput.prototype._joinEllipsis=function(t,e){return this._join(t,this.state.tmp.name_delimiter,this.name.ellipsis.single,this.name.ellipsis.multiple,e)},wt.NameOutput.prototype._joinAnd=function(t,e){return this._join(t,this.state.inheritOpt(this[e],"delimiter",e+"-delimiter",", "),this[e].and.single,this[e].and.multiple,e)},wt.NameOutput.prototype._join=function(t,e,r,i,s){var n,o;if(!t)return!1;for(n=t.length-1;-1<n;n+=-1)t[n]&&0!==t[n].length&&t[n].blobs.length||(t=t.slice(0,n).concat(t.slice(n+1)));if(!t.length)return!1;if(r&&2===t.length)r&&(r=new wt.Blob(r.blobs,r)),t=[t[0],r,t[1]];else{var a;for(a=i?2:1,n=0,o=t.length-a;n<o;n+=1)t[n].strings.suffix+=e;if(1<t.length){var l=t.pop();i?(i=new wt.Blob(i.blobs,i),t.push(i)):(r&&(r=new wt.Blob(r.blobs,r)),t.push(r)),t.push(l)}}for(this.state.output.openLevel(),r&&i&&(this.state.output.current.value().strings.delimiter=""),n=0,o=t.length;n<o;n+=1)this.state.output.append(t[n],!1,!0);return this.state.output.closeLevel(),this.state.output.pop()},wt.NameOutput.prototype._getToken=function(t){var e=this[t];return"institution"===t?new wt.Token:e},(e.exports=wt).NameOutput.prototype.setCommonTerm=function(){var t=this.variables.slice();if(t.sort(),this.common_term=t.join(""),!this.common_term)return!1;var e=!1;if(this.label&&this.label[this.variables[0]]&&(this.label[this.variables[0]].before?e=this.state.getTerm(this.common_term,this.label[this.variables[0]].before.strings.form,0):this.label[this.variables[0]].after&&(e=this.state.getTerm(this.common_term,this.label[this.variables[0]].after.strings.form,0))),!this.state.locale[this.state.opt.lang].terms[this.common_term]||!e||this.variables.length<2)this.common_term=!1;else for(var r=0,i=this.variables.length-1;r<i;r+=1){var s=this.variables[r],n=this.variables[r+1];if(this.freeters[s].length||this.freeters[n].length){if(this.etal_spec[s].freeters!==this.etal_spec[n].freeters||!this._compareNamesets(this.freeters[s],this.freeters[n]))return void(this.common_term=!1);1}if(this.persons[s].length!==this.persons[n].length)return void(this.common_term=!1);for(var o=0,a=this.persons[s].length;o<a;o+=1)if(this.etal_spec[s].persons[o]!==this.etal_spec[n].persons[o]||!this._compareNamesets(this.persons[s][o],this.persons[n][o]))return void(this.common_term=!1)}},wt.NameOutput.prototype._compareNamesets=function(t,e){if(t.length!==e.length)return!1;for(var r=0,i=e.length;r<i;r+=1){e[r];for(var s=0,n=wt.NAME_PARTS.length;s<n;s+=1){var o=wt.NAME_PARTS[s];if(!t[r]||t[r][o]!=e[r][o])return!1}}return!0},(e.exports=wt).NameOutput.prototype.constrainNames=function(){for(var t,e=this.names_count=0,r=this.variables.length;e<r;e+=1){var i=this.variables[e];t=this.nameset_base+e,this.freeters[i].length&&(this.state.tmp.names_max.push(this.freeters[i].length,"literal"),this._imposeNameConstraints(this.freeters,this.freeters_count,i,t),this.names_count+=this.freeters[i].length),this.institutions[i].length&&(this.state.tmp.names_max.push(this.institutions[i].length,"literal"),this._imposeNameConstraints(this.institutions,this.institutions_count,i,t),this.persons[i]=this.persons[i].slice(0,this.institutions[i].length),this.names_count+=this.institutions[i].length);for(var s=0,n=this.persons[i].length;s<n;s+=1)this.persons[i][s].length&&(this.state.tmp.names_max.push(this.persons[i][s].length,"literal"),this._imposeNameConstraints(this.persons[i],this.persons_count[i],s,t),this.names_count+=this.persons[i][s].length)}},wt.NameOutput.prototype._imposeNameConstraints=function(t,e,r,i){var s=t[r],n=this.state.tmp["et-al-min"];this.state.tmp.suppress_decorations?this.state.tmp.disambig_request&&this.state.tmp.disambig_request.names[i]?n=this.state.tmp.disambig_request.names[i]:e[r]>=this.etal_min&&(n=this.etal_use_first):(this.state.tmp.disambig_request&&this.state.tmp.disambig_request.names[i]>this.etal_use_first?n=e[r]<this.etal_min?e[r]:this.state.tmp.disambig_request.names[i]:e[r]>=this.etal_min&&(n=this.etal_use_first),this.etal_use_last&&n>this.etal_min-2&&(n=this.etal_min-2));var o=this.etal_min>=this.etal_use_first,a=e[r]>n;n>e[r]&&(n=s.length),o&&a&&(this.etal_use_last?t[r]=s.slice(0,n).concat(s.slice(-1)):t[r]=s.slice(0,n)),this.state.tmp.disambig_settings.names[i]=t[r].length,this.state.disambiguate.padBase(this.state.tmp.disambig_settings)},(e.exports=wt).NameOutput.prototype.disambigNames=function(){for(var t,e=0,r=this.variables.length;e<r;e+=1){var i=this.variables[e];if(t=this.nameset_base+e,this.freeters[i].length&&this._runDisambigNames(this.freeters[i],t),this.institutions[i].length){"undefined"==typeof this.state.tmp.disambig_settings.givens[t]&&(this.state.tmp.disambig_settings.givens[t]=[]);for(var s=0,n=this.institutions[i].length;s<n;s+=1)"undefined"==typeof this.state.tmp.disambig_settings.givens[t][s]&&this.state.tmp.disambig_settings.givens[t].push(2)}for(s=0,n=this.persons[i].length;s<n;s+=1)this.persons[i][s].length&&this._runDisambigNames(this.persons[i][s],t)}},wt.NameOutput.prototype._runDisambigNames=function(t,e){var r,i,s,n,o,a;for(n=0,o=t.length;n<o;n+=1)if(t[n].given||t[n].family){if(i=this.state.inheritOpt(this.name,"initialize-with"),this.state.registry.namereg.addname(""+this.Item.id,t[n],n),void 0===this.state.tmp.disambig_settings.givens[e])for(var l=0,u=e+1;l<u;l+=1)this.state.tmp.disambig_settings.givens[l]||(this.state.tmp.disambig_settings.givens[l]=[]);if(void 0===this.state.tmp.disambig_settings.givens[e][n]&&(r=this.state.inheritOpt(this.name,"form","name-form","long"),s=this.state.registry.namereg.evalname(""+this.Item.id,t[n],n,0,r,i),this.state.tmp.disambig_settings.givens[e].push(s)),r=this.state.inheritOpt(this.name,"form","name-form","long"),a=this.state.registry.namereg.evalname(""+this.Item.id,t[n],n,0,r,i),this.state.tmp.disambig_request){var c=this.state.tmp.disambig_settings.givens[e][n];1!==c||"by-cite"!==this.state.citation.opt["givenname-disambiguation-rule"]||void 0!==this.state.inheritOpt(this.name,"initialize-with")&&"undefined"!=typeof t[n].given||(c=2),s=c,this.state.opt["disambiguate-add-givenname"]&&t[n].given&&(s=this.state.registry.namereg.evalname(""+this.Item.id,t[n],n,s,this.state.inheritOpt(this.name,"form","name-form","long"),this.state.inheritOpt(this.name,"initialize-with")))}else s=a;!this.state.tmp.just_looking&&this.item&&this.item.position===wt.POSITION_FIRST&&s<a&&(s=a),this.state.tmp.sort_key_flag||(this.state.tmp.disambig_settings.givens[e][n]=s,"string"!=typeof i||"undefined"!=typeof this.name.strings.initialize&&!0!==this.name.strings.initialize||(this.state.tmp.disambig_settings.use_initials=!0))}},(e.exports=wt).NameOutput.prototype.getEtAlConfig=function(){var t=this.item;this["et-al"]={},this.state.output.append(this.etal_term,this.etal_style,!0),this["et-al"].single=this.state.output.pop(),this["et-al"].single.strings.suffix=this.etal_suffix,this["et-al"].single.strings.prefix=this.etal_prefix_single,this.state.output.append(this.etal_term,this.etal_style,!0),this["et-al"].multiple=this.state.output.pop(),this["et-al"].multiple.strings.suffix=this.etal_suffix,this["et-al"].multiple.strings.prefix=this.etal_prefix_multiple,void 0===t&&(t={}),t.position?(this.state.inheritOpt(this.name,"et-al-subsequent-min")?this.etal_min=this.state.inheritOpt(this.name,"et-al-subsequent-min"):this.etal_min=this.state.inheritOpt(this.name,"et-al-min"),this.state.inheritOpt(this.name,"et-al-subsequent-use-first")?this.etal_use_first=this.state.inheritOpt(this.name,"et-al-subsequent-use-first"):this.etal_use_first=this.state.inheritOpt(this.name,"et-al-use-first")):(this.state.tmp["et-al-min"]?this.etal_min=this.state.tmp["et-al-min"]:this.etal_min=this.state.inheritOpt(this.name,"et-al-min"),this.state.tmp["et-al-use-first"]?this.etal_use_first=this.state.tmp["et-al-use-first"]:this.etal_use_first=this.state.inheritOpt(this.name,"et-al-use-first"),"boolean"==typeof this.state.tmp["et-al-use-last"]?this.etal_use_last=this.state.tmp["et-al-use-last"]:this.etal_use_last=this.state.inheritOpt(this.name,"et-al-use-last")),this.state.tmp["et-al-min"]||(this.state.tmp["et-al-min"]=this.etal_min)},(e.exports=wt).NameOutput.prototype.setEtAlParameters=function(){var t,e,r,i;for(t=0,e=this.variables.length;t<e;t+=1){var s=this.variables[t];for("undefined"==typeof this.etal_spec[s]&&(this.etal_spec[s]={freeters:0,institutions:0,persons:[]}),this.etal_spec[this.nameset_base+t]=this.etal_spec[s],this.freeters[s].length&&this._setEtAlParameter("freeters",s),r=0,i=this.persons[s].length;r<i;r+=1)"undefined"==typeof this.etal_spec[s][r]&&(this.etal_spec[s].persons[r]=0),this._setEtAlParameter("persons",s,r);this.institutions[s].length&&this._setEtAlParameter("institutions",s)}},wt.NameOutput.prototype._setEtAlParameter=function(t,e,r){var i,s;"persons"===t?(i=this.persons[e][r],s=this.persons_count[e][r]):(i=this[t][e],s=this[t+"_count"][e]),i.length<s&&!this.state.tmp.sort_key_flag?this.etal_use_last?"persons"===t?this.etal_spec[e].persons[r]=2:this.etal_spec[e][t]=2:"persons"===t?this.etal_spec[e].persons[r]=1:this.etal_spec[e][t]=1:"persons"===t?this.etal_spec[e].persons[r]=0:this.etal_spec[e][t]=0},(e.exports=wt).NameOutput.prototype.renderAllNames=function(){for(var t,e=0,r=this.variables.length;e<r;e+=1){var i=this.variables[e];(this.freeters[i].length||this.institutions[i].length)&&(this.state.tmp.group_context.tip.condition||(this.state.tmp.just_did_number=!1)),t=this.nameset_base+e,this.freeters[i].length&&(this.freeters[i]=this._renderNames(i,this.freeters[i],t));for(var s=0,n=this.institutions[i].length;s<n;s+=1)this.persons[i][s]=this._renderNames(i,this.persons[i][s],t,s)}this.renderInstitutionNames()},wt.NameOutput.prototype.renderInstitutionNames=function(){for(var t=0,e=this.variables.length;t<e;t+=1)for(var r=this.variables[t],i=0,s=this.institutions[r].length;i<s;i+=1){var n,o=this.institutions[r][i],a={primary:"locale-orig",secondary:!1,tertiary:!1};if(n=this.state.tmp.extension?["sort"]:o.isInstitution||o.literal?this.state.opt["cite-lang-prefs"].institutions:this.state.opt["cite-lang-prefs"].persons)for(var l=["primary","secondary","tertiary"],u=0,c=l.length;u<c&&!(n.length-1<u);u+=1)n[u]&&(a[l[u]]="locale-"+n[u]);else a.primary="locale-translat";"bibliography"===this.state.tmp.area||"citation"===this.state.tmp.area&&"note"===this.state.opt.xclass&&this.item&&!this.item.position||(a.secondary=!1,a.tertiary=!1),this.setRenderedName(o);var p=this._renderInstitutionName(r,o,a,i);this.institutions[r][i]=p}},wt.NameOutput.prototype._renderInstitutionName=function(t,e,r,i){var s,n,o,a,l,u=this.getName(e,r.primary,!0),c=u.name,p=u.usedOrig;if(c&&(c=this.fixupInstitution(c,t,i)),m=!1,r.secondary){var m=(u=this.getName(e,r.secondary,!1,p)).name;p=u.usedOrig,m&&(m=this.fixupInstitution(m,t,i))}s=!1,r.tertiary&&(s=(u=this.getName(e,r.tertiary,!1,p)).name)&&(s=this.fixupInstitution(s,t,i));var f={l:{pri:!1,sec:!1,ter:!1},s:{pri:!1,sec:!1,ter:!1}};switch(c&&(f.l.pri=c["long"],f.s.pri=c["short"].length?c["short"]:c["long"]),m&&(f.l.sec=m["long"],f.s.sec=m["short"].length?m["short"]:m["long"]),s&&(f.l.ter=s["long"],f.s.ter=s["short"].length?s["short"]:s["long"]),this.institution.strings["institution-parts"]){case"short":c["short"].length?(o=this._getShortStyle(),a=[this._composeOneInstitutionPart([f.s.pri,f.s.sec,f.s.ter],r,o,t)]):(n=this._getLongStyle(c,t,i),a=[this._composeOneInstitutionPart([f.l.pri,f.l.sec,f.l.ter],r,n,t)]);break;case"short-long":n=this._getLongStyle(c,t,i),o=this._getShortStyle(),a=[l=this._renderOneInstitutionPart(c["short"],o),this._composeOneInstitutionPart([f.l.pri,f.l.sec,f.l.ter],r,n,t)];break;case"long-short":n=this._getLongStyle(c,t,i),o=this._getShortStyle(),l=this._renderOneInstitutionPart(c["short"],o),a=[this._composeOneInstitutionPart([f.l.pri,f.l.sec,f.l.ter],r,n,t),l];break;default:n=this._getLongStyle(c,t,i),a=[this._composeOneInstitutionPart([f.l.pri,f.l.sec,f.l.ter],r,n,t)]}var h=this._join(a," ");return this.state.tmp.name_node.children.push(h),h},wt.NameOutput.prototype._composeOneInstitutionPart=function(t,e,r,i){var s,n,o,a,l=!1,u=!1,c=!1;if(t[0]){if(s=wt.Util.cloneToken(r),this.state.opt.citeAffixes[e.primary]&&"<i>"===this.state.opt.citeAffixes.institutions[e.primary].prefix){for(var p=!1,m=0,f=s.decorations.length;m<f;m+=1)"@font-style"===r.decorations[m][0]&&"italic"===s.decorations[m][1]&&(p=!0);p||s.decorations.push(["@font-style","italic"])}l=this._renderOneInstitutionPart(t[0],s)}if(t[1]&&(u=this._renderOneInstitutionPart(t[1],r)),t[2]&&(c=this._renderOneInstitutionPart(t[2],r)),u||c){this.state.output.openLevel("empty"),this.state.output.append(l),n=wt.Util.cloneToken(r),e.secondary&&(n.strings.prefix=this.state.opt.citeAffixes.institutions[e.secondary].prefix,n.strings.suffix=this.state.opt.citeAffixes.institutions[e.secondary].suffix,n.strings.prefix||(n.strings.prefix=" "));var h=new wt.Token;h.decorations.push(["@font-style","normal"]),h.decorations.push(["@font-weight","normal"]),this.state.output.openLevel(h),this.state.output.append(u,n),this.state.output.closeLevel(),o=wt.Util.cloneToken(r),e.tertiary&&(o.strings.prefix=this.state.opt.citeAffixes.institutions[e.tertiary].prefix,o.strings.suffix=this.state.opt.citeAffixes.institutions[e.tertiary].suffix,o.strings.prefix||(o.strings.prefix=" "));var d=new wt.Token;d.decorations.push(["@font-style","normal"]),d.decorations.push(["@font-weight","normal"]),this.state.output.openLevel(d),this.state.output.append(c,o),this.state.output.closeLevel(),this.state.output.closeLevel(),a=this.state.output.pop()}else a=l;return a},wt.NameOutput.prototype._renderOneInstitutionPart=function(t,e){for(var r=0,i=t.length;r<i;r+=1)if(t[r]){var s=t[r];if(this.state.tmp.strip_periods)s=s.replace(/\./g,"");else for(var n=0,o=e.decorations.length;n<o;n+=1)if("@strip-periods"===e.decorations[n][0]&&"true"===e.decorations[n][1]){s=s.replace(/\./g,"");break}this.state.tmp.group_context.tip.variable_success=!0,this.state.tmp.can_substitute.replace(!1,wt.LITERAL),"!here>>>"===s?t[r]=!1:(this.state.output.append(s,e,!0),t[r]=this.state.output.pop())}return"undefined"==typeof this.institution.strings["part-separator"]&&(this.institution.strings["part-separator"]=this.state.tmp.name_delimiter),this._join(t,this.institution.strings["part-separator"])},wt.NameOutput.prototype._renderNames=function(t,e,r,i){var s=!1;if(e.length){for(var n=[],o=0,a=e.length;o<a;o+=1){var l,u=e[o],c={primary:"locale-orig",secondary:!1,tertiary:!1};if(l=this.state.tmp.extension?["sort"]:u.isInstitution||u.literal?this.state.opt["cite-lang-prefs"].institutions:this.state.opt["cite-lang-prefs"].persons)for(var p=["primary","secondary","tertiary"],m=0,f=p.length;m<f&&!(l.length-1<m);m+=1)c[p[m]]="locale-"+l[m];else c.primary="locale-translat";if((this.state.tmp.sort_key_flag||"bibliography"!==this.state.tmp.area&&("citation"!==this.state.tmp.area||"note"!==this.state.opt.xclass||!this.item||this.item.position))&&(c.secondary=!1,c.tertiary=!1),this.setRenderedName(u),u.literal||u.isInstitution)n.push(this._renderInstitutionName(t,u,c,i));else{var h=this._renderPersonalName(t,u,c,r,o,i),d=wt.Util.cloneToken(this.name);this.state.output.append(h,d,!0),n.push(this.state.output.pop())}}s=this.joinPersons(n,r,i)}return s},wt.NameOutput.prototype._renderPersonalName=function(t,e,r,i,s,n){var o=this.getName(e,r.primary,!0),a=this._renderOnePersonalName(o.name,i,s,n),l=!1;r.secondary&&(o=this.getName(e,r.secondary,!1,o.usedOrig)).name&&(l=this._renderOnePersonalName(o.name,i,s,n));var u,c=!1;if(r.tertiary&&(o=this.getName(e,r.tertiary,!1,o.usedOrig)).name&&(c=this._renderOnePersonalName(o.name,i,s,n)),l||c){this.state.output.openLevel("empty"),this.state.output.append(a);var p=new wt.Token;r.secondary&&(p.strings.prefix=this.state.opt.citeAffixes.persons[r.secondary].prefix,p.strings.suffix=this.state.opt.citeAffixes.persons[r.secondary].suffix,p.strings.prefix||(p.strings.prefix=" ")),this.state.output.append(l,p);var m=new wt.Token;r.tertiary&&(m.strings.prefix=this.state.opt.citeAffixes.persons[r.tertiary].prefix,m.strings.suffix=this.state.opt.citeAffixes.persons[r.tertiary].suffix,m.strings.prefix||(m.strings.prefix=" ")),this.state.output.append(c,m),this.state.output.closeLevel(),u=this.state.output.pop()}else u=a;return u},wt.NameOutput.prototype._isRomanesque=function(t){var e=2;if(t.family.replace(/\"/g,"").match(wt.ROMANESQUE_REGEXP)||(e=0),!e&&t.given&&t.given.match(wt.STARTSWITH_ROMANESQUE_REGEXP)&&(e=1),2==e){if(t.multi&&t.multi.main)var r=t.multi.main.slice(0,2);else this.Item.language&&(r=this.Item.language.slice(0,2));-1<["ja","zh"].indexOf(r)&&(e=1)}return e},wt.NameOutput.prototype._renderOnePersonalName=function(e,r,i,s){var n=e,o=this._droppingParticle(n,r,s),a=this._familyName(n),l=this._nonDroppingParticle(n),u=this._givenName(n,r,i),c=this._nameSuffix(n);!1===u&&(c=o=!1);var p,m=this.state.inheritOpt(this.name,"sort-separator");m||(m=""),p=n["comma-suffix"]?", ":" ";var f=this._isRomanesque(n);var h,d,g,b,_=function t(e){return!!e&&("string"==typeof e.blobs?-1<["\u2019","'","-"," "].indexOf(e.blobs.slice(-1)):t(e.blobs[e.blobs.length-1]))}(l);if(0===f)h=this._join([l,a,u],"");else if(1===f||n["static-ordering"])h=this._join([l,a,u]," ");else if(n["reverse-ordering"])h=this._join([u,l,a]," ");else if(this.state.tmp.sort_key_flag)"never"===this.state.opt["demote-non-dropping-particle"]?(g=this._join([l,a,o]," "),d=this._join([g,u],this.state.opt.sort_sep)):(b=this._join([u,o,l]," "),d=this._join([a,b],this.state.opt.sort_sep)),h=this._join([d,c]," ");else if("all"===this.state.inheritOpt(this.name,"name-as-sort-order")||"first"===this.state.inheritOpt(this.name,"name-as-sort-order")&&0===i&&(0===s||void 0===s))-1<["Lord","Lady"].indexOf(n.given)&&(m=", "),-1<["always","display-and-sort"].indexOf(this.state.opt["demote-non-dropping-particle"])?(b=this._join([u,o],n["comma-dropping-particle"]+" "),(b=this._join([b,l]," "))&&this.given&&(b.strings.prefix=this.given.strings.prefix,b.strings.suffix=this.given.strings.suffix),a&&this.family&&(a.strings.prefix=this.family.strings.prefix,a.strings.suffix=this.family.strings.suffix),d=this._join([a,b],m)):((g=_?this._join([l,a],""):this._join([l,a]," "))&&this.family&&(g.strings.prefix=this.family.strings.prefix,g.strings.suffix=this.family.strings.suffix),(b=this._join([u,o],n["comma-dropping-particle"]+" "))&&this.given&&(b.strings.prefix=this.given.strings.prefix,b.strings.suffix=this.given.strings.suffix),d=this._join([g,b],m)),h=this._join([d,c],m);else{n["dropping-particle"]&&n.family&&!n["non-dropping-particle"]&&-1<["'","\u02bc","\u2019","-"].indexOf(n["dropping-particle"].slice(-1))&&(a=this._join([o,a],""),o=!1),this.state.tmp.term_predecessor;var y=" ";this.state.inheritOpt(this.name,"initialize-with")&&this.state.inheritOpt(this.name,"initialize-with").match(/[\u00a0\ufeff]/)&&-1<["fr","ru","cs"].indexOf(this.state.opt["default-locale"][0].slice(0,2))&&(y="\xa0"),_?(b=this._join([l,a],""),b=this._join([o,b],y)):b=this._join([o,l,a],y),(b=this._join([b,c],p))&&this.family&&(b.strings.prefix=this.family.strings.prefix,b.strings.suffix=this.family.strings.suffix),u&&this.given&&(u.strings.prefix=this.given.strings.prefix,u.strings.suffix=this.given.strings.suffix),b.strings.prefix&&(n["comma-dropping-particle"]=""),h=this._join([u,b],n["comma-dropping-particle"]+y)}return this.state.tmp.group_context.tip.variable_success=!0,this.state.tmp.can_substitute.replace(!1,wt.LITERAL),this.state.tmp.term_predecessor=!0,this.state.tmp.name_node.children.push(h),h},wt.NameOutput.prototype._normalizeNameInput=function(t){var e={literal:t.literal,family:t.family,isInstitution:t.isInstitution,given:t.given,suffix:t.suffix,"comma-suffix":t["comma-suffix"],"non-dropping-particle":t["non-dropping-particle"],"dropping-particle":t["dropping-particle"],"static-ordering":t["static-ordering"],"static-particles":t["static-particles"],"reverse-ordering":t["reverse-ordering"],"full-form-always":t["full-form-always"],"parse-names":t["parse-names"],"comma-dropping-particle":"",block_initialize:t.block_initialize,multi:t.multi};return this._parseName(e),e},wt.NameOutput.prototype._stripPeriods=function(t,e){var r=this[t+"_decor"];if(e)if(this.state.tmp.strip_periods)e=e.replace(/\./g,"");else if(r)for(var i=0,s=r.decorations.length;i<s;i+=1)if("@strip-periods"===r.decorations[i][0]&&"true"===r.decorations[i][1]){e=e.replace(/\./g,"");break}return e},wt.NameOutput.prototype._nonDroppingParticle=function(t){var e=t["non-dropping-particle"];e&&this.state.tmp.sort_key_flag&&(e=e.replace(/[\'\u2019]/,""));var r=this._stripPeriods("family",e);return!!this.state.output.append(r,this.family_decor,!0)&&this.state.output.pop()},wt.NameOutput.prototype._droppingParticle=function(t,e,r){var i=t["dropping-particle"];i&&this.state.tmp.sort_key_flag&&(i=i.replace(/[\'\u2019]/,""));var s=this._stripPeriods("given",i);if(t["dropping-particle"]&&t["dropping-particle"].match(/^et.?al[^a-z]$/))this.state.inheritOpt(this.name,"et-al-use-last")?void 0===r?this.etal_spec[e].freeters=2:this.etal_spec[e].persons=2:void 0===r?this.etal_spec[e].freeters=1:this.etal_spec[e].persons=1,t["comma-dropping-particle"]="";else if(this.state.output.append(s,this.given_decor,!0))return this.state.output.pop();return!1},wt.NameOutput.prototype._familyName=function(t){var e=this._stripPeriods("family",t.family);return!!this.state.output.append(e,this.family_decor,!0)&&this.state.output.pop()},wt.NameOutput.prototype._givenName=function(t,e,r){var i,s,n="long"!==this.state.inheritOpt(this.name,"form","name-form","long"),o=!(!1===this.state.inheritOpt(this.name,"initialize")),a="string"==typeof this.state.inheritOpt(this.name,"initialize-with")&&!t.block_initialize;this.state.tmp.area.slice(0,12);if(t["full-form-always"])s=2;else{i=n?0:a?1:2;var l=this.state.tmp.disambig_settings.givens[e][r];s=i<l?l:i}var u=this.state.citation.opt["givenname-disambiguation-rule"];if(u&&"-with-initials"===u.slice(-14)&&(a=!0),t.family&&1===s)if(a){var c=this.state.inheritOpt(this.name,"initialize-with",!1,"");t.given=wt.Util.Names.initializeWith(this.state,t.given,c,!o)}else t.given=wt.Util.Names.unInitialize(this.state,t.given);else{if(0===s)return!1;2===s&&(t.given=wt.Util.Names.unInitialize(this.state,t.given))}var p=this._stripPeriods("given",t.given);return!!this.state.output.append(p,this.given_decor,!0)&&this.state.output.pop()},wt.NameOutput.prototype._nameSuffix=function(t){var e,r=t.suffix;"string"==typeof this.state.inheritOpt(this.name,"initialize-with")&&(r=wt.Util.Names.initializeWith(this.state,t.suffix,this.state.inheritOpt(this.name,"initialize-with"),!0));var i="";return(r=this._stripPeriods("family",r))&&"."===r.slice(-1)&&(r=r.slice(0,-1),i="."),!!this.state.output.append(r,"empty",!0)&&((e=this.state.output.pop()).strings.suffix=i+e.strings.suffix,e)},wt.NameOutput.prototype._getLongStyle=function(t,e,r){var i;return(i=t["short"].length&&this.institutionpart["long-with-short"]?this.institutionpart["long-with-short"]:this.institutionpart["long"])||(i=new wt.Token),i},wt.NameOutput.prototype._getShortStyle=function(){return this.institutionpart["short"]?this.institutionpart["short"]:new wt.Token},wt.NameOutput.prototype._parseName=function(t){var e;if(!t["parse-names"]&&"undefined"!=typeof t["parse-names"])return t;t.family&&!t.given&&t.isInstitution&&(t.literal=t.family,t.family=undefined,t.isInstitution=undefined),t.family&&'"'===t.family.slice(0,1)&&'"'===t.family.slice(-1)||!t["parse-names"]&&"undefined"!=typeof t["parse-names"]?(t.family=t.family.slice(1,-1),e=!0,t["parse-names"]=0):e=!1,this.state.opt.development_extensions.parse_names&&!t["non-dropping-particle"]&&t.family&&!e&&t.given&&(t["static-particles"]||wt.parseParticles(t,!0))},wt.NameOutput.prototype.getName=function(t,e,r,i){if(i&&"locale-orig"===e)return{name:!1,usedOrig:i};t.family||(t.family=""),t.given||(t.given="");var s={};s["static-ordering"]=this.getStaticOrder(t);var n=!0;if("locale-orig"!==e&&(n=!1,t.multi))for(var o=this.state.opt[e],a=0,l=o.length;a<l;a+=1)if(c=o[a],t.multi._key[c]){n=!0;var u=t.isInstitution;(t=t.multi._key[c]).isInstitution=u,(s=this.getNameParams(c)).transliterated=!0;break}if(!n){var c=!1;t.multi&&t.multi.main?c=t.multi.main:this.Item.language&&(c=this.Item.language),c&&(s=this.getNameParams(c))}return r||n?(t.family||(t.family=""),t.given||(t.given=""),!(t={family:t.family,given:t.given,"non-dropping-particle":t["non-dropping-particle"],"dropping-particle":t["dropping-particle"],suffix:t.suffix,"static-ordering":s["static-ordering"],"static-particles":t["static-particles"],"reverse-ordering":s["reverse-ordering"],"full-form-always":s["full-form-always"],"parse-names":t["parse-names"],"comma-suffix":t["comma-suffix"],"comma-dropping-particle":t["comma-dropping-particle"],transliterated:s.transliterated,block_initialize:s["block-initialize"],literal:t.literal,isInstitution:t.isInstitution,multi:t.multi}).literal&&!t.given&&t.family&&t.isInstitution&&(t.literal=t.family),t.literal&&(delete t.family,delete t.given),{name:t=this._normalizeNameInput(t),usedOrig:i||!n}):{name:!1,usedOrig:i}},wt.NameOutput.prototype.getNameParams=function(t){var e={},r=wt.localeResolve(this.Item.language,this.state.opt["default-locale"][0]),i=this.state.locale[r.best]?r.best:this.state.opt["default-locale"][0],s=this.state.locale[i].opts["name-as-sort-order"],n=this.state.locale[i].opts["name-as-reverse-order"],o=this.state.locale[i].opts["name-never-short"],a=t.split("-")[0];return s&&s[a]&&(e["static-ordering"]=!0,e["reverse-ordering"]=!1),n&&n[a]&&(e["reverse-ordering"]=!0,e["static-ordering"]=!1),o&&o[a]&&(e["full-form-always"]=!0),e["static-ordering"]&&(e["block-initialize"]=!0),e},wt.NameOutput.prototype.setRenderedName=function(t){if("bibliography"===this.state.tmp.area){for(var e="",r=0,i=wt.NAME_PARTS.length;r<i;r+=1)t[wt.NAME_PARTS[r]]&&(e+=t[wt.NAME_PARTS[r]]);this.state.tmp.rendered_name.push(e)}},wt.NameOutput.prototype.fixupInstitution=function(t,e,r){this.state.sys.getHumanForm&&"legal_case"===this.Item.type&&"authority"===e&&(t.literal=this.state.sys.getHumanForm(this.Item.jurisdiction,t.literal,!0)),t=this._splitInstitution(t,e,r),this.institution.strings["reverse-order"]&&t["long"].reverse();var i=t["long"],s=t["long"].slice(),n=!1;if(this.state.sys.getAbbreviation)for(var o=this.Item.jurisdiction,a=0,l=i.length;a<l;a+=1){var u=i[a];this.state.sys.normalizeAbbrevsKey&&(u=this.state.sys.normalizeAbbrevsKey(e,i[a])),o=this.state.transform.loadAbbreviation(o,"institution-part",u),this.state.transform.abbrevs[o]["institution-part"][u]&&(s[a]=this.state.transform.abbrevs[o]["institution-part"][u],n=!0)}return t["short"]=n?s:[],t},wt.NameOutput.prototype.getStaticOrder=function(t,e){var r=!1;return!e&&t["static-ordering"]?r=!0:0===this._isRomanesque(t)?r=!0:(!t.multi||!t.multi.main)&&this.Item.language&&-1<["vi","hu"].indexOf(this.Item.language)?r=!0:t.multi&&t.multi.main&&-1<["vi","hu"].indexOf(t.multi.main.slice(0,2))?r=!0:this.state.opt["auto-vietnamese-names"]&&wt.VIETNAMESE_NAMES.exec(t.family+" "+t.given)&&wt.VIETNAMESE_SPECIALS.exec(t.family+t.given)&&(r=!0),r},wt.NameOutput.prototype._splitInstitution=function(t,e,r){var i={};!t.literal&&t.family&&(t.literal=t.family,delete t.family);var s=t.literal.replace(/\s*\|\s*/g,"|");if(s=s.split("|"),"short"===this.institution.strings.form&&this.state.sys.getAbbreviation)for(var n=this.Item.jurisdiction,o=s.length;0<o;o+=-1){var a=s.slice(0,o).join("|"),l=a;if(this.state.sys.normalizeAbbrevsKey&&(l=this.state.sys.normalizeAbbrevsKey(e,a)),n=this.state.transform.loadAbbreviation(n,"institution-entire",l),this.state.transform.abbrevs[n]["institution-entire"][l]){var u=this.state.transform.abbrevs[n]["institution-entire"][l],c=(u=this.state.transform.quashCheck(u)).split(/>>[0-9]{4}>>/),p=u.match(/>>([0-9]{4})>>/);if(u=c.pop(),0<c.length&&this.Item["original-date"]&&this.Item["original-date"].year)for(var m=p.length-1;0<m&&!(parseInt(this.Item["original-date"].year,10)>=parseInt(p[m],10));m+=-1)u=c.pop();s=[u=u.replace(/\s*\|\s*/g,"|")];break}}return s.reverse(),i["long"]=this._trimInstitution(s,e,r),i},wt.NameOutput.prototype._trimInstitution=function(t,e,r){var i=!1,s=!1,n=t.slice(),o=!1;return this.institution&&("undefined"!=typeof this.institution.strings["use-first"]&&(i=this.institution.strings["use-first"]),"undefined"!=typeof this.institution.strings["stop-last"]?o=this.institution.strings["stop-last"]:"authority"===e&&this.state.tmp.authority_stop_last&&(o=this.state.tmp.authority_stop_last),o&&(n=n.slice(0,o),t=t.slice(0,o)),"undefined"!=typeof this.institution.strings["use-last"]&&(s=this.institution.strings["use-last"]),"authority"===e&&(o&&(this.state.tmp.authority_stop_last=o),s&&(this.state.tmp.authority_stop_last+=-1*s))),!1===i&&(0===this.persons[e].length&&(i=this.institution.strings["substitute-use-first"]),i||(i=0)),!1===s&&(s=i?0:t.length),i>t.length-s&&(i=t.length-s),t=t.slice(0,i),n=n.slice(i),s&&(s>n.length&&(s=n.length),s&&(t=t.concat(n.slice(n.length-s)))),t},(e.exports=wt).PublisherOutput=function(t,e){this.state=t,this.group_tok=e,this.varlist=[]},wt.PublisherOutput.prototype.render=function(){this.clearVars(),this.composeAndBlob(),this.composeElements(),this.composePublishers(),this.joinPublishers()},wt.PublisherOutput.prototype.composeAndBlob=function(){var t=!(this.and_blob={});"text"===this.group_tok.strings.and?t=this.state.getTerm("and"):"symbol"===this.group_tok.strings.and&&(t="&");var e=new wt.Token;e.strings.suffix=" ",e.strings.prefix=" ",this.state.output.append(t,e,!0);var r=this.state.output.pop();e.strings.prefix=this.group_tok.strings["subgroup-delimiter"],this.state.output.append(t,e,!0);var i=this.state.output.pop();this.and_blob.single=!1,this.and_blob.multiple=!1,t&&("always"===this.group_tok.strings["subgroup-delimiter-precedes-last"]?this.and_blob.single=i:"never"===this.group_tok.strings["subgroup-delimiter-precedes-last"]?(this.and_blob.single=r,this.and_blob.multiple=r):(this.and_blob.single=r,this.and_blob.multiple=i))},wt.PublisherOutput.prototype.composeElements=function(){for(var t=0;t<2;t+=1)for(var e=["publisher","publisher-place"][t],r=0,i=this["publisher-list"].length;r<i;r+=1){var s=this[e+"-list"][r],n=this[e+"-token"];this.state.output.append(s,n,!0),this[e+"-list"][r]=this.state.output.pop()}},wt.PublisherOutput.prototype.composePublishers=function(){for(var t,e=0,r=this["publisher-list"].length;e<r;e+=1){t=[this[this.varlist[0]+"-list"][e],this[this.varlist[1]+"-list"][e]],this["publisher-list"][e]=this._join(t,this.group_tok.strings.delimiter)}},wt.PublisherOutput.prototype.joinPublishers=function(){var t=this["publisher-list"],e=(this.name_delimiter,this._join(t,this.group_tok.strings["subgroup-delimiter"],this.and_blob.single,this.and_blob.multiple,this.group_tok));this.state.output.append(e,"literal")},wt.PublisherOutput.prototype._join=wt.NameOutput.prototype._join,wt.PublisherOutput.prototype._getToken=wt.NameOutput.prototype._getToken,wt.PublisherOutput.prototype.clearVars=function(){this.state.tmp["publisher-list"]=!1,this.state.tmp["publisher-place-list"]=!1,this.state.tmp["publisher-group-token"]=!1,this.state.tmp["publisher-token"]=!1,this.state.tmp["publisher-place-token"]=!1},(e.exports=wt).evaluateLabel=function(t,e,r,i){var s;"locator"===t.strings.term?(i&&i.label&&(s="sub verbo"===i.label?"sub-verbo":i.label),s||(s="page")):s=t.strings.term;var n=t.strings.plural;if("number"!=typeof n){var o="locator"===t.strings.term?i:r;e.processNumber(!1,o,t.strings.term,r.type),n=e.tmp.shadow_numbers[t.strings.term].plural,e.tmp.shadow_numbers[t.strings.term].labelForm||e.tmp.shadow_numbers[t.strings.term].labelDecorations||(e.tmp.shadow_numbers[t.strings.term].labelForm=t.strings.form,e.tmp.shadow_numbers[t.strings.term].labelCapitalizeIfFirst=t.strings.capitalize_if_first,e.tmp.shadow_numbers[t.strings.term].labelDecorations=t.decorations.slice()),-1<["locator","number","page"].indexOf(t.strings.term)&&e.tmp.shadow_numbers[t.strings.term].label&&(s=e.tmp.shadow_numbers[t.strings.term].label),t.decorations&&(e.opt.development_extensions.csl_reverse_lookup_support||e.sys.csl_reverse_lookup_support)&&(t.decorations.reverse(),t.decorations.push(["@showid","true",t.cslid]),t.decorations.reverse())}return wt.castLabel(e,t,s,n,wt.TOLERANT)},wt.castLabel=function(t,e,r,i,s){var n=e.strings.form,o=e.strings.capitalize_if_first;t.tmp.group_context.tip.label_form&&"static"!==n&&(n=t.tmp.group_context.tip.label_form),t.tmp.group_context.tip.label_capitalize_if_first&&(o=t.tmp.group_context.tip.label_capitalize_if_first);var a=t.getTerm(r,n,i,!1,s,e.default_locale);if(o&&(a=wt.Output.Formatters["capitalize-first"](t,a)),t.tmp.strip_periods)a=a.replace(/\./g,"");else for(var l=0,u=e.decorations.length;l<u;l+=1)if("@strip-periods"===e.decorations[l][0]&&"true"===e.decorations[l][1]){a=a.replace(/\./g,"");break}return a},(e.exports=wt).Node.name={build:function(t,e){var r;if(-1<[wt.SINGLETON,wt.START].indexOf(this.tokentype)){if("undefined"==typeof t.tmp.root){var i=undefined;t.tmp.root="citation"}else i=t.tmp.root;t.inheritOpt(this,"et-al-subsequent-min")&&t.inheritOpt(this,"et-al-subsequent-min")!==t.inheritOpt(this,"et-al-min")&&(t.opt.update_mode=wt.POSITION),t.inheritOpt(this,"et-al-subsequent-use-first")&&t.inheritOpt(this,"et-al-subsequent-use-first")!==t.inheritOpt(this,"et-al-use-first")&&(t.opt.update_mode=wt.POSITION),t.tmp.root=i,r=function(t,e){t.tmp.etal_term="et-al",t.tmp.name_delimiter=t.inheritOpt(this,"delimiter","name-delimiter",", "),t.tmp["delimiter-precedes-et-al"]=t.inheritOpt(this,"delimiter-precedes-et-al"),"text"===t.inheritOpt(this,"and")?this.and_term=t.getTerm("and","long",0):"symbol"===t.inheritOpt(this,"and")&&(t.opt.development_extensions.expect_and_symbol_form?this.and_term=t.getTerm("and","symbol",0):this.and_term="&"),t.tmp.and_term=this.and_term,wt.STARTSWITH_ROMANESQUE_REGEXP.test(this.and_term)?(this.and_prefix_single=" ",this.and_prefix_multiple=", ","string"==typeof t.tmp.name_delimiter&&(this.and_prefix_multiple=t.tmp.name_delimiter),this.and_suffix=" "):(this.and_prefix_single="",this.and_prefix_multiple="",this.and_suffix=""),"always"===t.inheritOpt(this,"delimiter-precedes-last")?this.and_prefix_single=t.tmp.name_delimiter:"never"===t.inheritOpt(this,"delimiter-precedes-last")?this.and_prefix_multiple&&(this.and_prefix_multiple=" "):"after-inverted-name"===t.inheritOpt(this,"delimiter-precedes-last")&&(this.and_prefix_single&&(this.and_prefix_single=t.tmp.name_delimiter),this.and_prefix_multiple&&(this.and_prefix_multiple=" ")),this.and={},t.inheritOpt(this,"and")?(t.output.append(this.and_term,"empty",!0),this.and.single=t.output.pop(),this.and.single.strings.prefix=this.and_prefix_single,this.and.single.strings.suffix=this.and_suffix,t.output.append(this.and_term,"empty",!0),this.and.multiple=t.output.pop(),this.and.multiple.strings.prefix=this.and_prefix_multiple,this.and.multiple.strings.suffix=this.and_suffix):t.tmp.name_delimiter&&(this.and.single=new wt.Blob(t.tmp.name_delimiter),this.and.single.strings.prefix="",this.and.single.strings.suffix="",this.and.multiple=new wt.Blob(t.tmp.name_delimiter),this.and.multiple.strings.prefix="",this.and.multiple.strings.suffix=""),this.ellipsis={},t.inheritOpt(this,"et-al-use-last")&&(this.ellipsis_term="\u2026",this.ellipsis_prefix_single=" ",this.ellipsis_prefix_multiple=t.inheritOpt(this,"delimiter","name-delimiter",", "),this.ellipsis_suffix=" ",this.ellipsis.single=new wt.Blob(this.ellipsis_term),this.ellipsis.single.strings.prefix=this.ellipsis_prefix_single,this.ellipsis.single.strings.suffix=this.ellipsis_suffix,this.ellipsis.multiple=new wt.Blob(this.ellipsis_term),this.ellipsis.multiple.strings.prefix=this.ellipsis_prefix_multiple,this.ellipsis.multiple.strings.suffix=this.ellipsis_suffix),"undefined"==typeof t.tmp["et-al-min"]&&(t.tmp["et-al-min"]=t.inheritOpt(this,"et-al-min")),"undefined"==typeof t.tmp["et-al-use-first"]&&(t.tmp["et-al-use-first"]=t.inheritOpt(this,"et-al-use-first")),"undefined"==typeof t.tmp["et-al-use-last"]&&(t.tmp["et-al-use-last"]=t.inheritOpt(this,"et-al-use-last")),t.nameOutput.name=this},t.build.name_flag=!0,this.execs.push(r)}e.push(this)}},(e.exports=wt).Node["name-part"]={build:function(t,e){t.build[this.strings.name]=this}},(e.exports=wt).Node.names={build:function(t,e){var r;if(this.tokentype!==wt.START&&this.tokentype!==wt.SINGLETON||(wt.Util.substituteStart.call(this,t,e),t.build.substitute_level.push(1)),this.tokentype===wt.SINGLETON&&(t.build.names_variables.push(this.variables),r=function(t,e,r){var i=t.nameOutput.labelVariable;t.nameOutput.reinit(this,i)},this.execs.push(r)),this.tokentype===wt.START&&(t.build.names_flag=!0,t.build.names_level+=1,1===t.build.names_level&&(t.build.names_variables=[],t.build.name_label={}),t.build.names_variables.push(this.variables),r=function(t,e,r){t.tmp.can_substitute.push(!0),t.parallel.StartVariable("names",this.variables[0]),t.nameOutput.init(this)},this.execs.push(r)),this.tokentype===wt.END){for(var i=0;i<3;i+=1){var s=["family","given","et-al"][i];this[s]=t.build[s],1===t.build.names_level&&(t.build[s]=undefined)}this.label=t.build.name_label,1===t.build.names_level&&(t.build.name_label={}),t.build.names_level+=-1,t.build.names_variables.pop(),r=function(t,e,r){t.tmp.etal_node?this.etal_style=t.tmp.etal_node:this.etal_style="empty",this.etal_term=t.getTerm(t.tmp.etal_term,"long",0),wt.STARTSWITH_ROMANESQUE_REGEXP.test(this.etal_term)?(this.etal_prefix_single=" ",this.etal_prefix_multiple=t.tmp.name_delimiter,"always"===t.tmp["delimiter-precedes-et-al"]?this.etal_prefix_single=t.tmp.name_delimiter:"never"===t.tmp["delimiter-precedes-et-al"]?this.etal_prefix_multiple=" ":"after-inverted-name"===t.tmp["delimiter-precedes-et-al"]&&(this.etal_prefix_single=t.tmp.name_delimiter,this.etal_prefix_multiple=" ")):(this.etal_prefix_single="",this.etal_prefix_multiple=""),this.etal_suffix="";for(var i=0;i<3;i+=1){var s=["family","given"][i];t.nameOutput[s]=this[s]}t.nameOutput["with"]=this["with"];var n="",o="";wt.STARTSWITH_ROMANESQUE_REGEXP.test("with")&&(o=n=" ");var a={};a.single=new wt.Blob("with"),a.single.strings.suffix=o,a.multiple=new wt.Blob("with"),a.multiple.strings.suffix=o,"always"===t.inheritOpt(t.nameOutput.name,"delimiter-precedes-last")?(a.single.strings.prefix=t.inheritOpt(this,"delimiter","names-delimiter"),a.multiple.strings.prefix=t.inheritOpt(this,"delimiter","names-delimiter")):"contextual"===t.inheritOpt(t.nameOutput.name,"delimiter-precedes-last")?(a.single.strings.prefix=n,a.multiple.strings.prefix=t.inheritOpt(this,"delimiter","names-delimiter")):("after-inverted-name"===t.inheritOpt(t.nameOutput.name,"delimiter-precedes-last")?a.single.strings.prefix=t.inheritOpt(this,"delimiter","names-delimiter"):a.single.strings.prefix=n,a.multiple.strings.prefix=n),t.nameOutput["with"]=a,t.nameOutput.label=this.label,t.nameOutput.etal_style=this.etal_style,t.nameOutput.etal_term=this.etal_term,t.nameOutput.etal_prefix_single=this.etal_prefix_single,t.nameOutput.etal_prefix_multiple=this.etal_prefix_multiple,t.nameOutput.etal_suffix=this.etal_suffix,t.nameOutput.outputNames(),t.tmp["et-al-use-first"]=undefined,t.tmp["et-al-min"]=undefined,t.tmp["et-al-use-last"]=undefined},this.execs.push(r),r=function(t,e){t.tmp.can_substitute.pop()||t.tmp.can_substitute.replace(!1,wt.LITERAL),t.parallel.CloseVariable("names"),1===t.tmp.can_substitute.mystack.length&&(t.tmp.can_block_substitute=!1)},this.execs.push(r),t.build.name_flag=!1}e.push(this),this.tokentype!==wt.END&&this.tokentype!==wt.SINGLETON||(t.build.substitute_level.pop(),wt.Util.substituteEnd.call(this,t,e))}},(e.exports=wt).Node.number={build:function(t,e){var r;wt.Util.substituteStart.call(this,t,e),"roman"===this.strings.form?this.formatter=t.fun.romanizer:"ordinal"===this.strings.form?this.formatter=t.fun.ordinalizer:"long-ordinal"===this.strings.form&&(this.formatter=t.fun.long_ordinalizer),"undefined"==typeof this.successor_prefix&&(this.successor_prefix=t[t.build.area].opt.layout_delimiter),"undefined"==typeof this.splice_prefix&&(this.splice_prefix=t[t.build.area].opt.layout_delimiter),r=function(t,e,r){if(0!==this.variables.length){if(void 0===r)r={};var i;if("locator"!==(i=this.variables[0])||!t.tmp.just_looking){t.parallel.StartVariable(this.variables[0]),"locator"===this.variables[0]?t.parallel.AppendToVariable(e.section):t.parallel.AppendToVariable(e[this.variables[0]]);new RegExp("(?:&|, | and |"+t.getTerm("page-range-delimiter")+")");"collection-number"===i&&"legal_case"===e.type&&(t.tmp.renders_collection_number=!0);e[this.variables[0]];if(t.tmp.group_context.tip.force_suppress)return!1;"locator"===i?t.processNumber(this,r,i,e.type):(!t.tmp.group_context.tip.condition&&e[i]&&(t.tmp.just_did_number=!0),t.processNumber(this,e,i,e.type)),wt.Util.outputNumericField(t,i,e.id),t.parallel.CloseVariable("number"),-1<["locator","locator-extra"].indexOf(this.variables_real[0])&&!t.tmp.just_looking&&(t.tmp.done_vars.push(this.variables_real[0]),t.tmp.group_context.tip.done_vars.push(this.variables_real[0]))}}},this.execs.push(r),e.push(this),wt.Util.substituteEnd.call(this,t,e)}},(e.exports=wt).Node.sort={build:function(t,e){if(e=t[t.build.root+"_sort"].tokens,this.tokentype===wt.START){"citation"===t.build.area&&(t.parallel.use_parallels=!1,t.opt.sort_citations=!0),t.build.area=t.build.root+"_sort",t.build.extension="_sort";var r=function(t,e){if(t.opt.has_layout_locale){for(var r,i=wt.localeResolve(e.language,t.opt["default-locale"][0]),s=t[t.tmp.area.slice(0,-5)].opt.sort_locales,n=0,o=s.length;n<o&&((r=s[n][i.bare])||(r=s[n][i.best]),!r);n+=1);r||(r=t.opt["default-locale"][0]),t.tmp.lang_sort_hold=t.opt.lang,t.opt.lang=r}};this.execs.push(r)}if(this.tokentype===wt.END){t.build.area=t.build.root,t.build.extension="";r=function(t,e){t.opt.has_layout_locale&&(t.opt.lang=t.tmp.lang_sort_hold,delete t.tmp.lang_sort_hold)};this.execs.push(r)}e.push(this)}},(e.exports=wt).Node.substitute={build:function(t,e){var r;this.tokentype===wt.START&&(r=function(t,e){t.tmp.can_block_substitute=!0,t.tmp.value.length&&t.tmp.can_substitute.replace(!1,wt.LITERAL)},this.execs.push(r)),e.push(this)}},(e.exports=wt).Node.text={build:function(t,e){var r,u,l,s,n,o,a,c,p,i,m,f;if(this.postponed_macro){var h=wt.Util.cloneToken(this);h.name="group",h.tokentype=wt.START,wt.Node.group.build.call(h,t,e),wt.expandMacro.call(t,this,e);var d=wt.Util.cloneToken(this);d.name="group",d.tokentype=wt.END,"juris-locator-label"===this.postponed_macro&&(d.isJurisLocatorLabel=!0),wt.Node.group.build.call(d,t,e)}else{if(wt.Util.substituteStart.call(this,t,e),this.variables_real||(this.variables_real=[]),this.variables||(this.variables=[]),u="long",l=0,this.strings.form&&(u=this.strings.form),this.strings.plural&&(l=this.strings.plural),"citation-number"===this.variables_real[0]||"year-suffix"===this.variables_real[0]||"citation-label"===this.variables_real[0])"citation-number"===this.variables_real[0]?("citation"===t.build.root&&(t.opt.update_mode=wt.NUMERIC),"bibliography"===t.build.root&&(t.opt.bib_mode=wt.NUMERIC),"bibliography_sort"===t.build.area&&(t.opt.citation_number_sort_used=!0),"citation-number"===t[t.tmp.area].opt.collapse&&(this.range_prefix=t.getTerm("citation-range-delimiter")),this.successor_prefix=t[t.build.area].opt.layout_delimiter,this.splice_prefix=t[t.build.area].opt.layout_delimiter,r=function(t,e,r){if(s=""+e.id,!t.tmp.just_looking){if(r&&r["author-only"]){t.tmp.element_trace.replace("do-not-suppress-me");var i=t.getTerm("reference","long","singular");void 0===i&&(i="reference"),f=wt.Output.Formatters["capitalize-first"](t,i),t.output.append(f+" "),t.tmp.last_element_trace=!0}r&&r["suppress-author"]&&(t.tmp.last_element_trace&&t.tmp.element_trace.replace("suppress-me"),t.tmp.last_element_trace=!1),n=t.registry.registry[s].seq,t.opt.citation_number_slug?t.output.append(t.opt.citation_number_slug,this):(o=new wt.NumericBlob(!1,n,this,e.id),t.tmp.in_cite_predecessor&&(t.tmp.just_looking,o.suppress_splice_prefix=!0),t.output.append(o,"literal"))}},this.execs.push(r)):"year-suffix"===this.variables_real[0]?(t.opt.has_year_suffix=!0,"year-suffix-ranged"===t[t.tmp.area].opt.collapse&&(this.range_prefix=t.getTerm("citation-range-delimiter")),this.successor_prefix=t[t.build.area].opt.layout_delimiter,t[t.tmp.area].opt["year-suffix-delimiter"]&&(this.successor_prefix=t[t.build.area].opt["year-suffix-delimiter"]),r=function(t,e){if(t.registry.registry[e.id]&&!1!==t.registry.registry[e.id].disambig.year_suffix&&!t.tmp.just_looking){n=parseInt(t.registry.registry[e.id].disambig.year_suffix,10),t[t.tmp.area].opt.cite_group_delimiter&&(this.successor_prefix=t[t.tmp.area].opt.cite_group_delimiter),o=new wt.NumericBlob(!1,n,this,e.id),a=new wt.Util.Suffixator(wt.SUFFIX_CHARS),o.setFormatter(a),t.output.append(o,"literal"),c=!1;for(var r=0,i=t.tmp.group_context.mystack.length;r<i;r++){var s=t.tmp.group_context.mystack[r];if(!s.variable_success&&(s.variable_attempt||!s.variable_attempt&&!s.term_intended)){c=!0;break}}p=t[t.tmp.area].opt["year-suffix-delimiter"],c&&p&&!t.tmp.sort_key_flag&&(t.tmp.splice_delimiter=t[t.tmp.area].opt["year-suffix-delimiter"])}},this.execs.push(r)):"citation-label"===this.variables_real[0]&&(t.opt.has_year_suffix=!0,r=function(t,e){(i=e["citation-label"])||(i=t.getCitationLabel(e)),t.tmp.just_looking||(m="",t.registry.registry[e.id]&&!1!==t.registry.registry[e.id].disambig.year_suffix&&(n=parseInt(t.registry.registry[e.id].disambig.year_suffix,10),m=t.fun.suffixator.format(n)),i+=m),t.output.append(i,this)},this.execs.push(r));else if(this.strings.term)r=function(t,e,r){var i,s=t.opt.gender[e.type],n=this.strings.term;if(""!==(n=t.getTerm(n,u,l,s,wt.TOLERANT,this.default_locale))&&(t.tmp.group_context.tip.term_intended=!0),wt.UPDATE_GROUP_CONTEXT_CONDITION(t,n),i=t.tmp.term_predecessor||"in-text"===t.opt["class"]&&"citation"===t.tmp.area?n:wt.Output.Formatters["capitalize-first"](t,n),t.tmp.strip_periods)i=i.replace(/\./g,"");else for(var o=0,a=this.decorations.length;o<a;o+=1)if("@strip-periods"===this.decorations[o][0]&&"true"===this.decorations[o][1]){i=i.replace(/\./g,"");break}t.output.append(i,this)},this.execs.push(r),t.build.term=!1,t.build.form=!1,t.build.plural=!1;else if(this.variables_real.length){if(r=function(t,e,r){"locator"!==this.variables_real[0]&&(t.tmp.have_collapsed=!1);var i=this.variables[0];"title"!==i||"short"!==u&&!e["title-short"]||(i="title-short"),t.parallel.StartVariable(i),t.parallel.AppendToVariable(e[i],i),!t.tmp.group_context.tip.condition&&e[this.variables[0]]&&(t.tmp.just_did_number=!1)},this.execs.push(r),-1<wt.MULTI_FIELDS.indexOf(this.variables_real[0])||-1<["language-name","language-name-original"].indexOf(this.variables_real[0])){var g=this.variables[0],b=!1,_=!1,y=!1;"short"===u||-1<["country","jurisdiction"].indexOf(this.variables_real[0])?"container-title"===this.variables_real[0]?_="journalAbbreviation":"title"===this.variables_real[0]&&(_="title-short"):g=!1,t.build.extension?y=!0:b=y=!0,r=t.transform.getOutputFunction(this.variables,g,b,_,y)}else r=-1<wt.CITE_FIELDS.indexOf(this.variables_real[0])?function(t,e,r){r&&r[this.variables[0]]&&(t.processNumber(this,r,this.variables[0],e.type),wt.Util.outputNumericField(t,this.variables[0],e.id),-1<["locator","locator-extra"].indexOf(this.variables_real[0])&&!t.tmp.just_looking&&t.tmp.done_vars.push(this.variables_real[0]))}:-1<["page","page-first","chapter-number","collection-number","edition","issue","number","number-of-pages","number-of-volumes","volume"].indexOf(this.variables_real[0])?function(t,e){t.processNumber(this,e,this.variables[0],e.type),wt.Util.outputNumericField(t,this.variables[0],e.id)}:-1<["URL","DOI"].indexOf(this.variables_real[0])?function(t,e){var r;if(this.variables[0]&&(r=t.getVariable(e,this.variables[0],u)))if(t.opt.development_extensions.wrap_url_and_doi)if(this.decorations.length&&this.decorations[0][0]==="@"+this.variables[0])t.output.append(r,this,!1,!1,!0);else if("DOI"===this.variables_real[0]&&"https://doi.org/"===this.strings.prefix){var i=wt.Util.cloneToken(this),s=new wt.Blob(null,null,"url-wrapper");if(s.decorations.push(["@DOI","true"]),(r=r.replace(/^https?:\/\/doi\.org\//,"")).match(/^https?:\/\//))var n="";else n="https://doi.org/";var o=new wt.Blob(n),a=new wt.Blob(r);i.strings.prefix="",s.push(o),s.push(a),t.output.append(s,i,!1,!1,!0)}else this.decorations=[["@"+this.variables[0],"true"]].concat(this.decorations),t.output.append(r,this,!1,!1,!0);else{if(this.decorations.length)for(var l=this.decorations.length-1;-1<l;l--)this.decorations[l][0]==="@"+this.variables[0]&&(this.decorations=this.decorations.slice(0,l).concat(this.decorations.slice(l+1)));t.output.append(r,this,!1,!1,!0)}}:"section"===this.variables_real[0]?function(t,e){var r;(r=t.getVariable(e,this.variables[0],u))&&t.output.append(r,this)}:"hereinafter"===this.variables_real[0]?function(t,e){var r=t.transform.abbrevs["default"].hereinafter[e.id];r&&(t.output.append(r,this),t.tmp.group_context.tip.variable_success=!0)}:function(t,e){var r;this.variables[0]&&(r=t.getVariable(e,this.variables[0],u))&&(r=(r=""+r).split("\\").join(""),t.output.append(r,this))};this.execs.push(r),r=function(t,e){t.parallel.CloseVariable("text")},this.execs.push(r)}else this.strings.value&&(r=function(t,e){t.tmp.group_context.tip.term_intended=!0,wt.UPDATE_GROUP_CONTEXT_CONDITION(t,this.strings.value,!0),t.output.append(this.strings.value,this)},this.execs.push(r));e.push(this),wt.Util.substituteEnd.call(this,t,e)}}},(e.exports=wt).Attributes={},wt.Attributes["@genre"]=function(t,r){r=r.replace("-"," ");this.tests.push(function(t,e){return r===t.genre})},wt.Attributes["@disambiguate"]=function(r,t){if("true"===t){r.opt.has_disambiguate=!0;var e=function(t,e){if("bibliography"===r.tmp.area){if(r.tmp.disambiguate_count<r.registry.registry[t.id].disambig.disambiguate)return r.tmp.disambiguate_count+=1,!0}else if(r.tmp.disambiguate_maxMax+=1,r.tmp.disambig_settings.disambiguate&&r.tmp.disambiguate_count<r.tmp.disambig_settings.disambiguate)return r.tmp.disambiguate_count+=1,!0;return!1};this.tests.push(e)}else if("check-ambiguity-and-backreference"===t){e=function(t,e){return!!(r.registry.registry[t.id].disambig.disambiguate&&1<r.registry.registry[t.id]["citation-count"])};this.tests.push(e)}},wt.Attributes["@is-numeric"]=function(s,t,e){for(var r=t.split(/\s+/),i=function(i){return function(t,e){var r=t;if(-1<["locator","locator-extra"].indexOf(i)&&(r=e),void 0===r)return!1;if(-1<wt.NUMERIC_VARIABLES.indexOf(i)){if(s.tmp.shadow_numbers[i]||s.processNumber(!1,r,i,t.type),r[i]&&s.tmp.shadow_numbers[i].numeric)return!0}else if(-1<["title","locator-extra","version"].indexOf(i)&&r[i]&&r[i].slice(-1)===""+parseInt(r[i].slice(-1),10))return!0;return!1}},n=0;n<r.length;n+=1)this.tests.push(i(r[n]))},wt.Attributes["@is-uncertain-date"]=function(t,e){for(var r=e.split(/\s+/),i=function(r){return function(t,e){return!(!t[r]||!t[r].circa)}},s=0,n=r.length;s<n;s+=1)this.tests.push(i(r[s]))},wt.Attributes["@locator"]=function(s,t){for(var e=t.replace("sub verbo","sub-verbo"),r=function(i){return function(t,e){var r;return s.processNumber(!1,e,"locator"),r=s.tmp.shadow_numbers.locator.label,i===r}},i=0,n=(e=e.split(/\s+/)).length;i<n;i+=1)this.tests.push(r(e[i]))},wt.Attributes["@position"]=function(i,t){i.opt.update_mode=wt.POSITION,i.parallel.use_parallels=null;for(var e=t.split(/\s+/),r=function(r){return function(t,e){if("bibliography"===i.tmp.area)return!1;if(e&&"undefined"==typeof e.position&&(e.position=0),e&&"number"==typeof e.position){if(0===e.position&&0===r)return!0;if(0<r&&e.position>=r)return!0}else if(0===r)return!0;return!1}},s=0,n=e.length;s<n;s+=1){var o;"first"===(o=e[s])?o=wt.POSITION_FIRST:"subsequent"===o?o=wt.POSITION_SUBSEQUENT:"ibid"===o?o=wt.POSITION_IBID:"ibid-with-locator"===o&&(o=wt.POSITION_IBID_WITH_LOCATOR),"near-note"===o?this.tests.push(function(t,e){return!!(e&&e.position>=wt.POSITION_SUBSEQUENT&&e["near-note"])}):"far-note"===o?this.tests.push(function(t,e){return!(!e||e.position!=wt.POSITION_SUBSEQUENT||e["near-note"])}):this.tests.push(r(o))}},wt.Attributes["@type"]=function(t,e){for(var r=e.split(/\s+/),i=function(r){return function(t,e){return!!(t.type===r)}},s=[],n=0,o=r.length;n<o;n+=1)s.push(i(r[n]));this.tests.push(t.fun.match.any(this,t,s))},wt.Attributes["@variable"]=function(n,t){var e;if(this.variables=t.split(/\s+/),this.variables_real=this.variables.slice(),"label"===this.name&&this.variables[0])this.strings.term=this.variables[0];else if(-1<["names","date","text","number"].indexOf(this.name))e=function(t,e,r){for(var i=this.variables.length-1;-1<i;i+=-1)this.variables.pop();i=0;for(var s=this.variables_real.length;i<s;i++)-1!==t.tmp.done_vars.indexOf(this.variables_real[i])||r&&"legal_case"===e.type&&r["suppress-author"]&&"title"===this.variables_real[i]||this.variables.push(this.variables_real[i]),t.tmp.can_block_substitute&&t.tmp.done_vars.push(this.variables_real[i])},this.execs.push(e),e=function(t,e,r){for(var i=!1,s=0,n=this.variables.length;s<n;s++){var o=this.variables[s];if(-1<["authority","committee"].indexOf(o)&&"string"==typeof e[o]&&"names"===this.name){var a=!0,l=e[o].split(/\s*;\s*/),u={};if(e.multi&&e.multi._keys[o])for(var c in e.multi._keys[o])if(u[c]=e.multi._keys[o][c].split(/\s*;\s*/),u[c].length!==l.length){a=!1;break}a||(l=[e[o]],u=e.multi._keys[o]);for(var p=0,m=l.length;p<m;p++){var f={literal:l[p],multi:{_key:{}}};for(var c in u){var h={literal:u[c][p]};f.multi._key[c]=h}l[p]=f}e[o]=l}if("short"!==this.strings.form||e[o]||("title"===o?o="title-short":"container-title"===o&&(o="journalAbbreviation")),"year-suffix"===o){i=!0;break}if(-1<wt.DATE_VARIABLES.indexOf(o)){if(t.opt.development_extensions.locator_date_and_revision&&"locator-date"===o){i=!0;break}if(e[o]){for(var d in e[o])if((-1!==this.dateparts.indexOf(d)||"literal"===d)&&e[o][d]){i=!0;break}if(i)break}}else{if("locator"===o){r&&r.locator&&(i=!0);break}if("locator-extra"===o){r&&r["locator-extra"]&&(i=!0);break}if(-1<["citation-number","citation-label"].indexOf(o)){i=!0;break}if("first-reference-note-number"===o){r&&r["first-reference-note-number"]&&(i=!0);break}if("hereinafter"===o){t.transform.abbrevs["default"].hereinafter[e.id]&&t.sys.getAbbreviation&&e.id&&(i=!0);break}if("object"===W(e[o])){e[o].length;break}if("string"==typeof e[o]&&e[o]){i=!0;break}if("number"==typeof e[o]){i=!0;break}}if(i)break}if(i){for(s=0,n=this.variables_real.length;s<n;s++){"citation-number"===(o=this.variables_real[s])&&"bibliography"===t.tmp.area||(t.tmp.cite_renders_content=!0),t.tmp.group_context.tip.variable_success=!0,t.tmp.can_substitute.value()&&"bibliography"===t.tmp.area&&"string"==typeof e[o]&&(t.tmp.name_node.top=t.output.current.value(),t.tmp.rendered_name.push(e[o]))}t.tmp.can_substitute.replace(!1,wt.LITERAL)}else t.tmp.group_context.tip.variable_attempt=!0},this.execs.push(e);else if(-1<["if","else-if","condition"].indexOf(this.name))for(var r=function(s){return function(t,e){var r=t;if(e&&-1<["locator","locator-extra","first-reference-note-number","locator-date"].indexOf(s)&&(r=e),"hereinafter"===s&&n.sys.getAbbreviation&&r.id){if(n.transform.abbrevs["default"].hereinafter[r.id])return!0}else if(r[s]){if("number"==typeof r[s]||"string"==typeof r[s])return!0;if("object"===W(r[s]))for(var i in r[s])if(r[s][i])return!0}return!1}},i=0,s=this.variables.length;i<s;i+=1)this.tests.push(r(this.variables[i]))},wt.Attributes["@page"]=function(s,t){for(var e=t.replace("sub verbo","sub-verbo"),r=function(i){return function(t,e){var r;return s.processNumber(!1,t,"page",t.type),r=s.tmp.shadow_numbers.page.label?"sub verbo"===s.tmp.shadow_numbers.page.label?"sub-verbo":s.tmp.shadow_numbers.page.label:"page",i===r}},i=0,n=(e=e.split(/\s+/)).length;i<n;i+=1)this.tests.push(r(e[i]))},wt.Attributes["@number"]=function(s,t){for(var e=t.replace("sub verbo","sub-verbo"),r=function(i){return function(t,e){var r;return s.processNumber(!1,t,"number",t.type),r=s.tmp.shadow_numbers.number.label?"sub verbo"===s.tmp.shadow_numbers.number.label?"sub-verbo":s.tmp.shadow_numbers.number.label:"number",i===r}},i=0,n=(e=e.split(/\s+/)).length;i<n;i+=1)this.tests.push(r(e[i]))},wt.Attributes["@jurisdiction"]=function(t,e){for(var r=e.split(/\s+/),i=0,s=r.length;i<s;i+=1)r[i]=r[i].split(":");var n=function(n){return function(t,e){if(!t.jurisdiction)return!1;for(var r=t.jurisdiction.split(":"),i=0,s=r.length;i<s;i+=1)r[i]=r[i].split(":");for(i=n.length;0<i;i+=-1){if(n.slice(0,i).join(":")!==r.slice(0,i).join(":"))return!1}return!0}};for(i=0,s=r.length;i<s;i+=1){var o=r[i].slice();this.tests.push(n(o))}},wt.Attributes["@context"]=function(r,i){this.tests.push(function(t,e){return r.tmp.area.slice(0,i.length)===i})},wt.Attributes["@has-year-only"]=function(t,e){for(var r=e.split(/\s+/),i=function(i){return function(t,e){var r=t[i];return!(!r||r.month||r.season)}},s=0,n=r.length;s<n;s+=1)this.tests.push(i(r[s]))},wt.Attributes["@has-to-month-or-season"]=function(t,e){for(var r=e.split(/\s+/),i=function(i){return function(t,e){var r=t[i];return!(!r||!r.month&&!r.season||r.day)}},s=0,n=r.length;s<n;s+=1)this.tests.push(i(r[s]))},wt.Attributes["@has-day"]=function(t,e){for(var r=e.split(/\s+/),i=function(i){return function(t,e){var r=t[i];return!(!r||!r.day)}},s=0,n=r.length;s<n;s+=1)this.tests.push(i(r[s]))},wt.Attributes["@subjurisdictions"]=function(t,e){var i=parseInt(e,10);this.tests.push(function(t,e){var r=0;return t.jurisdiction&&(r=t.jurisdiction.split(":").length),r&&(r+=-1),i<=r})},wt.Attributes["@is-plural"]=function(l,u){this.tests.push(function(t,e){var r=t[u];if(r&&r.length){for(var i=0,s=0,n=!1,o=0,a=r.length;o<a;o+=1)l.opt.development_extensions.spoof_institutional_affiliations&&(r[o].literal||r[o].isInstitution&&r[o].family&&!r[o].given)?(s+=1,n=!1):(i+=1,n=!0);if(1<i)return!0;if(1<s)return!0;if(s&&n)return!0}return!1})},wt.Attributes["@locale"]=function(t,e){var r,i,s,n,o,a,l=t.opt["default-locale"][0];if("layout"===this.name){if(this.locale_raw=e,this.tokentype===wt.START){var u=e.split(/\s+/),c={},p=wt.localeResolve(u[0],l);p.generic?c[p.generic]=p.best:c[p.best]=p.best;for(var m=1,f=u.length;m<f;m+=1){var h=wt.localeResolve(u[m],l);h.generic?c[h.generic]=p.best:c[h.best]=p.best}t[t.build.area].opt.sort_locales.push(c)}t.opt.has_layout_locale=!0}else{s=e.split(/\s+/);var d=[];for(m=0,f=s.length;m<f;m+=1)i=s[m],r=wt.localeResolve(i,l),2===s[m].length&&d.push(r.bare),t.localeConfigure(r,!0),s[m]=r;var g=s.slice();this.tests.push((n=g,o=l,a=d,function(t,e){var r,i,s=r=![];for(i=t.language?t.language:o,s=wt.localeResolve(i,o),m=0,f=n.length;m<f;m+=1)if(s.best===n[m].best){r=!0;break}return!r&&-1<a.indexOf(s.bare)&&(r=!0),r}))}},wt.Attributes["@authority-residue"]=function(r,t){var i;this.tests.push((i="true"===t,function(t,e){return t.authority&&t.authority[0]&&t.authority[0].family&&0<t.authority[0].family.split("|").length+r.tmp.authority_stop_last?i:!i}))},wt.Attributes["@locale-internal"]=function(s,t){var e,n,r,o,a;for(r=t.split(/\s+/),this.locale_bares=[],o=0,a=r.length;o<a;o+=1)n=r[o],e=wt.localeResolve(n,s.opt["default-locale"][0]),2===r[o].length&&this.locale_bares.push(e.bare),s.localeConfigure(e),r[o]=e;this.locale_default=s.opt["default-locale"][0],this.locale=r[0].best,this.locale_list=r.slice();var l;this.tests.push((l=this,function(t,e){var r,i=r=![];if(t.language&&(n=t.language,(i=wt.localeResolve(n,s.opt["default-locale"][0])).best===s.opt["default-locale"][0]&&(i=!1)),i){for(o=0,a=l.locale_list.length;o<a;o+=1)if(i.best===l.locale_list[o].best){s.opt.lang=l.locale,s.tmp.last_cite_locale=l.locale,s.output.openLevel("empty"),s.output.current.value().new_locale=l.locale,r=!0;break}!r&&-1<l.locale_bares.indexOf(i.bare)&&(s.opt.lang=l.locale,s.tmp.last_cite_locale=l.locale,s.output.openLevel("empty"),s.output.current.value().new_locale=l.locale,r=!0)}return r}))},wt.Attributes["@is-parallel"]=function(t,e){for(var r=e.split(" "),i=0,s=r.length;i<s;i+=1)"true"===r[i]?r[i]=!0:"false"===r[i]&&(r[i]=!1);this.strings.set_parallel_condition=r},wt.Attributes["@jurisdiction-depth"]=function(t,e){this.strings.jurisdiction_depth=parseInt(e,10)},wt.Attributes["@require"]=function(t,e){this.strings.require=e},wt.Attributes["@reject"]=function(t,e){this.strings.reject=e},wt.Attributes["@gender"]=function(t,e){this.gender=e},wt.Attributes["@cslid"]=function(t,e){this.cslid=parseInt(e,10)},wt.Attributes["@capitalize-if-first"]=function(t,e){this.strings.capitalize_if_first_override=e},wt.Attributes["@label-capitalize-if-first"]=function(t,e){this.strings.label_capitalize_if_first_override=e},wt.Attributes["@label-form"]=function(t,e){this.strings.label_form_override=e},wt.Attributes["@part-separator"]=function(t,e){this.strings["part-separator"]=e},wt.Attributes["@leading-noise-words"]=function(t,e){this["leading-noise-words"]=e},wt.Attributes["@name-never-short"]=function(t,e){this["name-never-short"]=e},wt.Attributes["@class"]=function(t,e){t.opt["class"]=e},wt.Attributes["@version"]=function(t,e){t.opt.version=e},wt.Attributes["@value"]=function(t,e){this.strings.value=e},wt.Attributes["@name"]=function(t,e){this.strings.name=e},wt.Attributes["@form"]=function(t,e){this.strings.form=e},wt.Attributes["@date-parts"]=function(t,e){this.strings["date-parts"]=e},wt.Attributes["@range-delimiter"]=function(t,e){this.strings["range-delimiter"]=e},wt.Attributes["@macro"]=function(t,e){this.postponed_macro=e},wt.Attributes["@term"]=function(t,e){this.strings.term="sub verbo"===e?"sub-verbo":e},wt.Attributes["@xmlns"]=function(t,e){},wt.Attributes["@lang"]=function(t,e){e&&(t.build.lang=e)},wt.Attributes["@lingo"]=function(t,e){},wt.Attributes["@macro-has-date"]=function(t,e){this["macro-has-date"]=!0},wt.Attributes["@suffix"]=function(t,e){this.strings.suffix=e},wt.Attributes["@prefix"]=function(t,e){this.strings.prefix=e},wt.Attributes["@delimiter"]=function(t,e){this.strings.delimiter=e},wt.Attributes["@match"]=function(t,e){this.match=e},wt.Attributes["@names-min"]=function(t,e){var r=parseInt(e,10);t[t.build.area].opt.max_number_of_names<r&&(t[t.build.area].opt.max_number_of_names=r),this.strings["et-al-min"]=r},wt.Attributes["@names-use-first"]=function(t,e){this.strings["et-al-use-first"]=parseInt(e,10)},wt.Attributes["@names-use-last"]=function(t,e){this.strings["et-al-use-last"]="true"===e},wt.Attributes["@sort"]=function(t,e){"descending"===e&&(this.strings.sort_direction=wt.DESCENDING)},wt.Attributes["@plural"]=function(t,e){"always"===e||"true"===e?this.strings.plural=1:"never"===e||"false"===e?this.strings.plural=0:"contextual"===e&&(this.strings.plural=!1)},wt.Attributes["@has-publisher-and-publisher-place"]=function(t,e){this.strings["has-publisher-and-publisher-place"]=!0},wt.Attributes["@publisher-delimiter-precedes-last"]=function(t,e){this.strings["publisher-delimiter-precedes-last"]=e},wt.Attributes["@publisher-delimiter"]=function(t,e){this.strings["publisher-delimiter"]=e},wt.Attributes["@publisher-and"]=function(t,e){this.strings["publisher-and"]=e},wt.Attributes["@newdate"]=function(t,e){},wt.Attributes["@givenname-disambiguation-rule"]=function(t,e){-1<wt.GIVENNAME_DISAMBIGUATION_RULES.indexOf(e)&&(t.citation.opt["givenname-disambiguation-rule"]=e)},wt.Attributes["@collapse"]=function(t,e){e&&(t[this.name].opt.collapse=e)},wt.Attributes["@cite-group-delimiter"]=function(t,e){e&&(t[t.tmp.area].opt.cite_group_delimiter=e)},wt.Attributes["@names-delimiter"]=function(t,e){t.setOpt(this,"names-delimiter",e)},wt.Attributes["@name-form"]=function(t,e){t.setOpt(this,"name-form",e)},wt.Attributes["@subgroup-delimiter"]=function(t,e){this.strings["subgroup-delimiter"]=e},wt.Attributes["@subgroup-delimiter-precedes-last"]=function(t,e){this.strings["subgroup-delimiter-precedes-last"]=e},wt.Attributes["@name-delimiter"]=function(t,e){t.setOpt(this,"name-delimiter",e)},wt.Attributes["@et-al-min"]=function(t,e){var r=parseInt(e,10);t[t.build.area].opt.max_number_of_names<r&&(t[t.build.area].opt.max_number_of_names=r),t.setOpt(this,"et-al-min",r)},wt.Attributes["@et-al-use-first"]=function(t,e){t.setOpt(this,"et-al-use-first",parseInt(e,10))},wt.Attributes["@et-al-use-last"]=function(t,e){"true"===e?t.setOpt(this,"et-al-use-last",!0):t.setOpt(this,"et-al-use-last",!1)},wt.Attributes["@et-al-subsequent-min"]=function(t,e){var r=parseInt(e,10);t[t.build.area].opt.max_number_of_names<r&&(t[t.build.area].opt.max_number_of_names=r),t.setOpt(this,"et-al-subsequent-min",r)},wt.Attributes["@et-al-subsequent-use-first"]=function(t,e){t.setOpt(this,"et-al-subsequent-use-first",parseInt(e,10))},wt.Attributes["@suppress-min"]=function(t,e){this.strings["suppress-min"]=parseInt(e,10)},wt.Attributes["@suppress-max"]=function(t,e){this.strings["suppress-max"]=parseInt(e,10)},wt.Attributes["@and"]=function(t,e){t.setOpt(this,"and",e)},wt.Attributes["@delimiter-precedes-last"]=function(t,e){t.setOpt(this,"delimiter-precedes-last",e)},wt.Attributes["@delimiter-precedes-et-al"]=function(t,e){t.setOpt(this,"delimiter-precedes-et-al",e)},wt.Attributes["@initialize-with"]=function(t,e){t.setOpt(this,"initialize-with",e)},wt.Attributes["@initialize"]=function(t,e){"false"===e&&t.setOpt(this,"initialize",!1)},wt.Attributes["@name-as-reverse-order"]=function(t,e){this["name-as-reverse-order"]=e},wt.Attributes["@name-as-sort-order"]=function(t,e){"style-options"===this.name?this["name-as-sort-order"]=e:t.setOpt(this,"name-as-sort-order",e)},wt.Attributes["@sort-separator"]=function(t,e){t.setOpt(this,"sort-separator",e)},wt.Attributes["@year-suffix-delimiter"]=function(t,e){t[this.name].opt["year-suffix-delimiter"]=e},wt.Attributes["@after-collapse-delimiter"]=function(t,e){t[this.name].opt["after-collapse-delimiter"]=e},wt.Attributes["@subsequent-author-substitute"]=function(t,e){t[this.name].opt["subsequent-author-substitute"]=e},wt.Attributes["@subsequent-author-substitute-rule"]=function(t,e){t[this.name].opt["subsequent-author-substitute-rule"]=e},wt.Attributes["@disambiguate-add-names"]=function(t,e){"true"===e&&(t.opt["disambiguate-add-names"]=!0)},wt.Attributes["@disambiguate-add-givenname"]=function(t,e){"true"===e&&(t.opt["disambiguate-add-givenname"]=!0)},wt.Attributes["@disambiguate-add-year-suffix"]=function(t,e){"true"===e&&"numeric"!==t.opt.xclass&&(t.opt["disambiguate-add-year-suffix"]=!0)},wt.Attributes["@second-field-align"]=function(t,e){"flush"!==e&&"margin"!==e||(t[this.name].opt["second-field-align"]=e)},wt.Attributes["@hanging-indent"]=function(t,e){"true"===e&&(t[this.name].opt.hangingindent=2)},wt.Attributes["@line-spacing"]=function(t,e){e&&e.match(/^[.0-9]+$/)&&(t[this.name].opt["line-spacing"]=parseFloat(e,10))},wt.Attributes["@entry-spacing"]=function(t,e){e&&e.match(/^[.0-9]+$/)&&(t[this.name].opt["entry-spacing"]=parseFloat(e,10))},wt.Attributes["@near-note-distance"]=function(t,e){t[this.name].opt["near-note-distance"]=parseInt(e,10)},wt.Attributes["@text-case"]=function(t,r){this.execs.push(function(t,e){"normal"===r?this.text_case_normal=!0:"title"===(this.strings["text-case"]=r)&&(t.opt["default-locale"][0].slice(0,2),e.jurisdiction&&(this.strings["text-case"]="passthrough"))})},wt.Attributes["@page-range-format"]=function(t,e){t.opt["page-range-format"]=e},wt.Attributes["@year-range-format"]=function(t,e){t.opt["year-range-format"]=e},wt.Attributes["@default-locale"]=function(t,e){if("style"===this.name){var r,i,s,n,o;if(o=e.match(/-x-(sort|translit|translat)-/g))for(s=0,i=o.length;s<i;s+=1)o[s]=o[s].replace(/^-x-/,"").replace(/-$/,"");for(n=[(r=e.split(/-x-(?:sort|translit|translat)-/))[0]],s=1,i=r.length;s<i;s+=1)n.push(o[s-1]),n.push(r[s]);for(i=(r=n.slice()).length,s=1;s<i;s+=2)t.opt["locale-"+r[s]].push(r[s+1].replace(/^\s*/g,"").replace(/\s*$/g,""));r.length?t.opt["default-locale"]=r.slice(0,1):t.opt["default-locale"]=["en"]}else"true"===e&&(this.default_locale=!0)},wt.Attributes["@default-locale-sort"]=function(t,e){t.opt["default-locale-sort"]=e},wt.Attributes["@demote-non-dropping-particle"]=function(t,e){t.opt["demote-non-dropping-particle"]=e},wt.Attributes["@initialize-with-hyphen"]=function(t,e){"false"===e&&(t.opt["initialize-with-hyphen"]=!1)},wt.Attributes["@institution-parts"]=function(t,e){this.strings["institution-parts"]=e},wt.Attributes["@if-short"]=function(t,e){"true"===e&&(this.strings["if-short"]=!0)},wt.Attributes["@substitute-use-first"]=function(t,e){this.strings["substitute-use-first"]=parseInt(e,10)},wt.Attributes["@use-first"]=function(t,e){this.strings["use-first"]=parseInt(e,10)},wt.Attributes["@stop-last"]=function(t,e){this.strings["stop-last"]=-1*parseInt(e,10)},wt.Attributes["@use-last"]=function(t,e){this.strings["use-last"]=parseInt(e,10)},wt.Attributes["@reverse-order"]=function(t,e){"true"===e&&(this.strings["reverse-order"]=!0)},wt.Attributes["@display"]=function(t,e){2===t.bibliography.tokens.length&&(t.opt.using_display=!0),this.strings.cls=e},(e.exports=wt).Stack=function(t,e){this.mystack=[],(e||t)&&this.mystack.push(t),this.tip=this.mystack[0]},wt.Stack.prototype.push=function(t,e){e||t?this.mystack.push(t):this.mystack.push(""),this.tip=this.mystack[this.mystack.length-1]},wt.Stack.prototype.clear=function(){this.mystack=[],this.tip={}},wt.Stack.prototype.replace=function(t,e){if(0===this.mystack.length)throw"Internal CSL processor error: attempt to replace nonexistent stack item with "+t;this.mystack[this.mystack.length-1]=e||t?t:"",this.tip=this.mystack[this.mystack.length-1]},wt.Stack.prototype.pop=function(){var t=this.mystack.pop();return this.mystack.length?this.tip=this.mystack[this.mystack.length-1]:this.tip={},t},wt.Stack.prototype.value=function(){return this.mystack.slice(-1)[0]},wt.Stack.prototype.length=function(){return this.mystack.length},(e.exports=wt).Parallel=function(t){this.state=t,this.sets=new wt.Stack([]),this.try_cite=!0,this.use_parallels=!1,this.midVars=["section","volume","container-title","collection-number","issue","page-first","page","number"],this.ignoreVarsLawGeneral=["first-reference-note-number","locator","label","page-first","page","genre"],this.ignoreVarsLawProceduralHistory=["issued","first-reference-note-number","locator","label","page-first","page","genre","jurisdiction"],this.ignoreVarsOrders=["first-reference-note-number"],this.ignoreVarsOther=["first-reference-note-number","locator","label","section","page-first","page"]},wt.Parallel.prototype.isMid=function(t){return-1<this.midVars.indexOf(t)},wt.Parallel.prototype.StartCitation=function(t,e){this.parallel_conditional_blobs_list=[],this.use_parallels&&(this.sortedItems=t,this.sortedItemsPos=-1,this.sets.clear(),this.sets.push([]),this.in_series=!0,this.delim_counter=0,this.delim_pointers=[],this.out=e||this.state.output.queue,this.master_was_neutral_cite=!0)},wt.Parallel.prototype.StartCite=function(t,e,r){var i,s,n,o,a,l;if(this.use_parallels){this.sets.value().length&&this.sets.value()[0].itemId==t.id&&this.ComposeSet(),this.sortedItemsPos+=1,e&&(i=e.position);for(var u=!(this.try_cite=!0),c=0,p=wt.PARALLEL_MATCH_VARS.length;c<p;c+=1)if(t[wt.PARALLEL_MATCH_VARS[c]]){u=!0;break}var m=!0,f=this.sets.value().slice(-1)[0];if(f&&f.Item){var h=f.Item.jurisdiction?f.Item.jurisdiction.split(":")[0]:"",d=t.jurisdiction?t.jurisdiction.split(":")[0]:"";f.Item.title!==t.title?m=!1:h!==d?m=!1:f.Item.type!==t.type?m=!1:-1<["article-journal","article-magazine"].indexOf(t.type)&&(this.state.opt.development_extensions.handle_parallel_articles&&f.Item["container-title"]===t["container-title"]||(m=!1))}if(m&&u&&-1!==wt.PARALLEL_TYPES.indexOf(t.type)||(this.try_cite=!0,this.in_series&&(this.in_series=!1)),this.cite={},this.cite.front=[],this.cite.mid=[],this.cite.back=[],this.cite.front_collapse={},this.cite.back_forceme=[],this.cite.position=i,this.cite.Item=t,this.cite.itemId=""+t.id,this.cite.prevItemID=""+r,this.target="front",-1<["treaty"].indexOf(t.type))this.ignoreVars=this.ignoreVarsOrders;else if(-1<["article-journal","article-magazine"].indexOf(t.type))this.ignoreVars=this.ignoreVarsOther;else if(e&&e.prefix){this.ignoreVars=this.ignoreVarsLawProceduralHistory,this.cite.useProceduralHistory=!0;var g=this.sets.value()[this.sets.value().length-1];if(g&&g.back)for(c=g.back.length-1;-1<c;c+=-1)g.back[c]&&g[g.back[c]]&&delete g[g.back[c]]}else this.ignoreVars=this.ignoreVarsLawGeneral;if(this.sortedItems&&0<this.sortedItemsPos&&this.sortedItemsPos<this.sortedItems.length){if(n=this.sortedItems[this.sortedItemsPos][1],o=""+this.sortedItems[this.sortedItemsPos-1][1].id,a=!1,this.state.registry.registry[o].parallel==n.id){for(s=this.sortedItemsPos-1;-1<s;s+=-1)if(this.sortedItems[s][1].id==t.id){a=this.sortedItems[s][1].locator;break}l=this.sortedItems[this.sortedItemsPos][1].locator,n.position=!a&&l?wt.POSITION_IBID_WITH_LOCATOR:l===a?wt.POSITION_IBID:wt.POSITION_IBID_WITH_LOCATOR}}else{if(!this.state.registry.registry[t.id])return this.try_cite=!1,void(this.force_collapse=!1);this.state.registry.registry[t.id].parallel=!1}this.force_collapse=!1,this.state.registry.registry[t.id].parallel&&(this.force_collapse=!0)}},wt.Parallel.prototype.StartVariable=function(t,e){if(this.use_parallels&&(this.try_cite||this.force_collapse)){if(this.variable="names"===t?t+":"+this.target:t,-1<this.ignoreVars.indexOf(t))return;"container-title"===t&&0===this.sets.value().length&&(this.master_was_neutral_cite=!1),this.data={},this.data.value="",this.data.blobs=[];var r=this.isMid(t);if("authority"===e&&"names:front"===this.variable&&this.sets.value().length){var i=this.sets.value()[this.sets.value().length-1].Item,s=!1;this.cite.Item.authority&&this.cite.Item.authority.length&&(s=this.cite.Item.authority[0].literal);var n=!1;i.authority&&i.authority.length&&(n=i.authority[0].literal),s!==n&&(this.try_cite=!0,this.in_series=!1)}else"front"===this.target&&r?this.target="mid":"mid"===this.target&&!r&&this.cite.Item.title&&"names"!==t?this.target="back":"back"===this.target&&r&&(this.try_cite=!0,this.in_series=!1);"number"===t?this.cite.front.push(this.variable):-1<wt.PARALLEL_COLLAPSING_MID_VARSET.indexOf(t)?-1<["article-journal","article-magazine"].indexOf(this.cite.Item.type)?this.cite.mid.push(this.variable):this.cite.front.push(this.variable):this.cite[this.target].push(this.variable)}},wt.Parallel.prototype.AppendBlobPointer=function(t){if(this.use_parallels){if(-1<this.ignoreVars.indexOf(this.variable))return;if(this.use_parallels&&(this.force_collapse||this.try_cite)){if(-1<["article-journal","article-magazine"].indexOf(this.cite.Item.type)){if(-1<["volume","page","page-first","issue"].indexOf(this.variable))return;if("container-title"===this.variable&&1<this.cite.mid.length)return}this.variable&&(this.try_cite||this.force_collapse)&&t&&t.blobs&&(this.cite.useProceduralHistory&&"back"===this.target||this.data.blobs.push([t,t.blobs.length]))}}},wt.Parallel.prototype.AppendToVariable=function(t,e){if(this.use_parallels){if(-1<this.ignoreVars.indexOf(this.variable))return;if(this.try_cite||this.force_collapse)this.target,this.data.value+="::"+t}},wt.Parallel.prototype.CloseVariable=function(){if(this.use_parallels){if(-1<this.ignoreVars.indexOf(this.variable))return;if((this.try_cite||this.force_collapse)&&(this.cite[this.variable]=this.data,0<this.sets.value().length)){var t=this.sets.value()[this.sets.value().length-1];"front"===this.target&&"issued"===this.variable&&this.data.value&&this.master_was_neutral_cite&&(this.target="mid"),"front"===this.target?!t[this.variable]&&!this.data.value||t[this.variable]&&this.data.value===t[this.variable].value||"issued"!==this.variable&&(this.in_series=!1):"mid"===this.target?-1<wt.PARALLEL_COLLAPSING_MID_VARSET.indexOf(this.variable)&&(t[this.variable]&&t[this.variable].value===this.data.value?this.cite.front_collapse[this.variable]=!0:this.cite.front_collapse[this.variable]=!1):"back"===this.target&&t[this.variable]&&this.data.value!==t[this.variable].value&&-1===this.sets.value().slice(-1)[0].back_forceme.indexOf(this.variable)&&(this.in_series=!1)}this.variable=!1}},wt.Parallel.prototype.CloseCite=function(){var t,e,r,i,s,n;if(this.use_parallels&&(this.force_collapse||this.try_cite)){if(r=!1,this.cite.front_collapse["container-title"]||(r=!0),!1===this.cite.front_collapse.volume&&(r=!0),!1===this.cite.front_collapse["collection-number"]&&(r=!0),!1===this.cite.front_collapse.section&&(r=!0),r){this.cite.use_journal_info=!0,-1<(n=this.cite.front.indexOf("section"))&&(this.cite.front=this.cite.front.slice(0,n).concat(this.cite.front.slice(n+1))),-1<(i=this.cite.front.indexOf("volume"))&&(this.cite.front=this.cite.front.slice(0,i).concat(this.cite.front.slice(i+1))),-1<(s=this.cite.front.indexOf("container-title"))&&(this.cite.front=this.cite.front.slice(0,s).concat(this.cite.front.slice(s+1)));var o=this.cite.front.indexOf("collection-number");-1<o&&(this.cite.front=this.cite.front.slice(0,o).concat(this.cite.front.slice(o+1)))}if(this.in_series||this.force_collapse||this.ComposeSet(!0),0===this.sets.value().length){var a=!1;for(t=0,e=this.cite.back.length;t<e;t+=1)if("issued"===this.cite.back[t]&&this.cite.issued&&this.cite.issued.value){a=!0;break}a||this.cite.back_forceme.push("issued")}else{var l=this.cite.front.indexOf("issued");if((-1===l||this.master_was_neutral_cite)&&(this.cite.back_forceme=this.sets.value().slice(-1)[0].back_forceme),-1<l)this.sets.value()[this.sets.value().length-1].issued||(this.cite.front=this.cite.front.slice(0,l).concat(this.cite.front.slice(l+1)));this.master_was_neutral_cite&&-1<this.cite.mid.indexOf("names:mid")&&this.cite.front.push("names:mid")}this.sets.value().push(this.cite)}},wt.Parallel.prototype.ComposeSet=function(t){var e,r,i;if(this.use_parallels&&(this.force_collapse||this.try_cite)){var s=this.sets.value().length;if(1===this.sets.value().length)this.in_series||(this.sets.value().pop(),this.delim_counter+=1);else{for(i=this.sets.value().length,r=0;r<i;r+=1)e=this.sets.value()[r],0===r||(!e.Item.title&&e.use_journal_info?this.delim_pointers.push(!1):this.delim_pointers.push(this.delim_counter)),this.delim_counter+=1,wt.POSITION_FIRST===e.position&&(0===r?(this.state.registry.registry[e.itemId].master=!0,this.state.registry.registry[e.itemId].siblings=[],this.state.registry.registry[e.itemId].parallel=!1):e.prevItemID&&(this.state.registry.registry[e.prevItemID].parallel?this.state.registry.registry[e.itemId].parallel=this.state.registry.registry[e.prevItemID].parallel:this.state.registry.registry[e.itemId].parallel=e.prevItemID,this.state.registry.registry[e.itemId].siblings=this.state.registry.registry[e.prevItemID].siblings,this.state.registry.registry[e.itemId].siblings||(this.state.registry.registry[e.itemId].siblings=[],wt.debug("WARNING: adding missing siblings array to registry object")),this.state.registry.registry[e.itemId].siblings.push(e.itemId)));this.sets.push([])}s<2?this.purgeGroupsIfParallel(!1):this.purgeGroupsIfParallel(!0),this.in_series=!0}},wt.Parallel.prototype.PruneOutputQueue=function(){var t,e,r,i,s,n;if(this.use_parallels)for(t=this.sets.mystack.length,e=0;e<t;e+=1)if(1<(r=this.sets.mystack[e]).length)for(s=r.length,i=0;i<s;i+=1)n=r[i],0===i?this.purgeVariableBlobs(n,n.back):i===r.length-1?this.purgeVariableBlobs(n,n.front.concat(n.back_forceme)):this.purgeVariableBlobs(n,n.front.concat(n.back))},wt.Parallel.prototype.purgeVariableBlobs=function(t,e){var r,i,s,n,o,a;if(this.use_parallels){for("undefined"==typeof(a=this.state.output.current.value()).length&&(a=a.blobs),i=0,r=this.delim_pointers.length;i<r;i+=1)!1!==(o=this.delim_pointers[i])&&(a[o].parallel_delimiter=", ");for(i=r=e.length-1;-1<i;i+=-1)if(t[s=e[i]])for(o=t[s].blobs.length-1;-1<o;o+=-1)(n=t[s].blobs[o])[0].blobs=n[0].blobs.slice(0,n[1]).concat(n[0].blobs.slice(n[1]+1)),this.state.tmp.has_purged_parallel=!0,n[0]&&n[0].strings&&"string"==typeof n[0].strings.oops&&n[0].parent&&n[0].parent&&(n[0].parent.parent.strings.delimiter=n[0].strings.oops)}},wt.Parallel.prototype.purgeGroupsIfParallel=function(t){for(var e=this.parallel_conditional_blobs_list.length-1;-1<e;e+=-1){for(var r=this.parallel_conditional_blobs_list[e],i=!0,s=0,n=r.conditions.length;s<n;s+=1)if(!r.conditions[s]!=!!t&&("master"!==r.conditions[s]||this.state.registry.registry[r.id].master)&&("servant"!==r.conditions[s]||this.state.registry.registry[r.id].parallel)){i=!1;break}if(i){for(var o=[];r.blobs.length>r.pos;)o.push(r.blobs.pop());for(o.length&&o.pop();o.length;)r.blobs.push(o.pop())}this.parallel_conditional_blobs_list.pop()}},(e.exports=wt).Util={},wt.Util.Match=function(){this.any=function(t,e,s){return function(t,e){for(var r=0,i=s.length;r<i;r+=1){if(s[r](t,e))return!0}return!1}},this.none=function(t,e,s){return function(t,e){for(var r=0,i=s.length;r<i;r+=1){if(s[r](t,e))return!1}return!0}},this.all=function(t,e,s){return function(t,e){for(var r=0,i=s.length;r<i;r+=1){if(!s[r](t,e))return!1}return!0}},this[undefined]=this.all,this.nand=function(t,e,s){return function(t,e){for(var r=0,i=s.length;r<i;r+=1){if(!s[r](t,e))return!0}return!1}}},(e.exports=wt).Transform=function(T){function g(t,e,r){var i="";return T.sys.getHumanForm&&("country"===t?i=(i=T.sys.getHumanForm(e.toLowerCase(),!1,!0)).split("|")[0]:"jurisdiction"===t&&(i=T.sys.getHumanForm(e.toLowerCase(),!1,!0),i=r?"":i.split("|").slice(1).join(", "))),i}function N(t,e,r,i,s,n,o,a){var l="",u=wt.FIELD_CATEGORY_REMAP[n];if(!u)return s;var c=n,p=s;t.sys.normalizeAbbrevsKey&&(p=t.sys.normalizeAbbrevsKey(n,s));var m=!1;if("jurisdiction"===c&&p&&(m=-1===p.indexOf(":")),t.sys.getAbbreviation){if(-1<["jurisdiction","country","language-name","language-name-original"].indexOf(c))var f="default";else if(r.jurisdiction)f=r.jurisdiction;else f="default";var h=t.transform.loadAbbreviation(f,u,p,r.type);if(t.transform.abbrevs[h][u]&&p){var d=t.transform.abbrevs[h][u][p];l="short"===e.strings.form&&d?m?"":d:g(c,p,m)}}return l||t.opt.development_extensions.require_explicit_legal_case_title_short&&"legal_case"===r.type||!i||!r[i]||!o||(l=r[i]),l||t.sys.getAbbreviation||!t.sys.getHumanForm||(l=g(c,p,m)),l||m||t.sys.getHumanForm&&"jurisdiction"===c||(l=s),l}function b(t,e){var r,i=T.opt["default-locale"][0].slice(0,2);if(r=T.opt.development_extensions.strict_text_case_locales?new RegExp("^([a-zA-Z]{2})(?:$|-.*| .*)"):new RegExp("^([a-zA-Z]{2})(?:$|-.*|.*)"),t.language){var s=(""+t.language).match(r);i=s?s[1]:"tlh"}return t.multi&&t.multi&&t.multi.main&&t.multi.main[e]&&(i=t.multi.main[e]),T.opt.development_extensions.strict_text_case_locales&&!T.opt.development_extensions.normalize_lang_keys_to_lowercase||(i=i.toLowerCase()),i}function C(t,e,r,i,s){var n,o,a,l=s,u=!1;if(!t[e])return{name:"",usedOrig:s,token:wt.Util.cloneToken(this)};p={name:"",usedOrig:s,locale:b(t,e)},a=T.opt[r];var c=!1;if("locale-orig"===r)p=s?{name:"",usedOrig:s}:{name:t[e],usedOrig:!1,locale:b(t,e)},u=c=!0;else if(i&&(void 0===a||0===a.length)){var p={name:t[e],usedOrig:!0,locale:b(t,e)};u=c=!0}if(!c){for(var m=0,f=a.length;m<f;m+=1){if(o=(n=a[m]).split(/[\-_]/)[0],n&&t.multi&&t.multi._keys[e]&&t.multi._keys[e][n]){p.name=t.multi._keys[e][n],p.locale=n;break}if(o&&t.multi&&t.multi._keys[e]&&t.multi._keys[e][o]){p.name=t.multi._keys[e][o],p.locale=o;break}}!p.name&&i&&(p={name:t[e],usedOrig:!0,locale:b(t,e)},u=!0)}if(p.token=wt.Util.cloneToken(this),-1<["title","container-title"].indexOf(e)&&!(l||p.token.strings["text-case"]&&"sentence"!==p.token.strings["text-case"]&&"normal"!==p.token.strings["text-case"])){var h=!u&&p.locale,d=e.slice(0,-5),g="sentence"===p.token.strings["text-case"];p.name=wt.titlecaseSentenceOrNormal(T,t,d,h,g),delete p.token.strings["text-case"]}return p}function D(t){var e=t.match(/^!([-,_a-z]+)>>>/);if(e){var r=e[1].split(",");t=t.slice(e[0].length);for(var i=0,s=r.length;i<s;i+=1)-1===T.tmp.done_vars.indexOf(r[i])&&T.tmp.done_vars.push(r[i])}return t}this.abbrevs={},this.abbrevs["default"]=new T.sys.AbbreviationSegments,this.getTextSubField=C,this.loadAbbreviation=function(t,e,r,i){return t||(t="default"),r?T.sys.getAbbreviation&&((t=T.sys.getAbbreviation(T.opt.styleID,T.transform.abbrevs,t,e,r,i,!0))||(t="default")):(T.transform.abbrevs[t]||(T.transform.abbrevs[t]=new T.sys.AbbreviationSegments),T.transform.abbrevs[t][e]||(T.transform.abbrevs[t][e]={})),t},this.getOutputFunction=function(j,O,t,S,e){var k,I=wt.LangPrefsMap[j[0]];return k=!!I&&T.opt["cite-lang-prefs"][I],function(t,e,r,i){var s,n,o,a,l,u;if(!j[0]||!e[j[0]]&&!e[S])return null;var c={primary:!1,secondary:!1,tertiary:!1};if("_sort"===t.tmp.area.slice(-5))c.primary="locale-sort";else if(k)for(var p=["primary","secondary","tertiary"],m=0,f=p.length;m<f&&!(k.length-1<m);m+=1)k[m]&&(c[p[m]]="locale-"+k[m]);else c.primary="locale-orig";if("title-short"!==j[0]&&("bibliography"===t.tmp.area||"citation"===t.tmp.area&&"note"===t.opt.xclass&&r&&!r.position)||(c.secondary=!1,c.tertiary=!1),t.tmp["publisher-list"])return"publisher"===j[0]?t.tmp["publisher-token"]=this:"publisher-place"===j[0]&&(t.tmp["publisher-place-token"]=this),null;var h=C.call(this,e,j[0],c.primary,!0);s=h.name,n=h.locale;var d,g=h.token,b=h.usedOrig;if(function(t,e,r,i){var s=t.variables[0];if(T.publisherOutput&&r){if(-1===["publisher","publisher-place"].indexOf(s))return!1;T.publisherOutput[s+"-token"]=t,T.publisherOutput.varlist.push(s);var n=r.split(/;\s*/);n.length===T.publisherOutput[s+"-list"].length&&(T.publisherOutput[s+"-list"]=n);for(var o=0,a=n.length;o<a;o+=1)n[o]=N(T,t,e,!1,n[o],i,!0);return T.tmp[s+"-token"]=t,!0}return!1}(this,e,s,O))return null;if(l=o=!1,c.secondary){o=(h=C.call(this,e,j[0],c.secondary,!1,h.usedOrig)).name,a=h.locale;var _=h.token}if(c.tertiary){l=(h=C.call(this,e,j[0],c.tertiary,!1,h.usedOrig)).name,u=h.locale;var y=h.token}if(O&&((s=N(t,g,e,S,s,O,!0))&&(s=D(s)),o&&(o=N(t,_,e,!1,o,O,!0)),l&&(l=N(t,y,e,!1,l,O,!0))),"locale-translit"===c.primary&&(d=t.opt.citeAffixes[I][c.primary].prefix),"<i>"===d&&"title"===j[0]&&!b){var v=!1;for(m=0,f=g.decorations.length;m<f;m+=1)"@font-style"===g.decorations[m][0]&&"italic"===g.decorations[m][1]&&(v=!0);v||g.decorations.push(["@font-style","italic"])}if("en"!==n&&"title"===g.strings["text-case"]&&(g.strings["text-case"]="passthrough"),"title"===j[0]&&(s=wt.demoteNoiseWords(t,s,this["leading-noise-words"])),o||l){if(t.output.openLevel("empty"),g.strings.suffix=g.strings.suffix.replace(/[ .,]+$/,""),t.output.append(s,g),o){for(_.strings.prefix=t.opt.citeAffixes[I][c.secondary].prefix,_.strings.suffix=t.opt.citeAffixes[I][c.secondary].suffix,_.strings.prefix||(_.strings.prefix=" "),m=_.decorations.length-1;-1<m;m+=-1)-1<["@quotes/true","@font-style/italic","@font-style/oblique","@font-weight/bold"].indexOf(_.decorations[m].join("/"))&&(_.decorations=_.decorations.slice(0,m).concat(_.decorations.slice(m+1)));"en"!==a&&"title"===_.strings["text-case"]&&(_.strings["text-case"]="passthrough");var x=new wt.Token;x.decorations.push(["@font-style","normal"]),x.decorations.push(["@font-weight","normal"]),t.output.openLevel(x),t.output.append(o,_),t.output.closeLevel();var w=t.output.current.value(),A=t.output.current.value().blobs.length-1;t.parallel.use_parallels&&(t.parallel.cite.front.push(j[0]+":secondary"),t.parallel.cite[j[0]+":secondary"]={blobs:[[w,A]]})}if(l){for(y.strings.prefix=t.opt.citeAffixes[I][c.tertiary].prefix,y.strings.suffix=t.opt.citeAffixes[I][c.tertiary].suffix,y.strings.prefix||(y.strings.prefix=" "),m=y.decorations.length-1;-1<m;m+=-1)-1<["@quotes/true","@font-style/italic","@font-style/oblique","@font-weight/bold"].indexOf(y.decorations[m].join("/"))&&(y.decorations=y.decorations.slice(0,m).concat(y.decorations.slice(m+1)));"en"!==u&&"title"===y.strings["text-case"]&&(y.strings["text-case"]="passthrough");var E=new wt.Token;E.decorations.push(["@font-style","normal"]),E.decorations.push(["@font-weight","normal"]),t.output.openLevel(E),t.output.append(l,y),t.output.closeLevel(),w=t.output.current.value(),A=t.output.current.value().blobs.length-1,t.parallel.use_parallels&&(t.parallel.cite.front.push(j[0]+":tertiary"),t.parallel.cite[j[0]+":tertiary"]={blobs:[[w,A]]})}t.output.closeLevel()}else t.output.append(s,g);return null}},this.quashCheck=D},(e.exports=wt).Token=function(t,e){this.name=t,this.strings={},this.strings.delimiter=undefined,this.strings.prefix="",this.strings.suffix="",this.decorations=[],this.variables=[],this.execs=[],this.tokentype=e,this.evaluator=!1,this.tests=[],this.rawtests=[],this.succeed=!1,this.fail=!1,this.next=!1},wt.Util.cloneToken=function(t){var e,r,i;if("string"==typeof t)return t;for(var s in e=new wt.Token(t.name,t.tokentype),t.strings)t.strings.hasOwnProperty(s)&&(e.strings[s]=t.strings[s]);if(t.decorations)for(e.decorations=[],r=0,i=t.decorations.length;r<i;r+=1)e.decorations.push(t.decorations[r].slice());return t.variables&&(e.variables=t.variables.slice()),t.execs&&(e.execs=t.execs.slice(),e.tests=t.tests.slice(),e.rawtests=t.tests.slice()),e},(e.exports=wt).AmbigConfig=function(){this.maxvals=[],this.minval=1,this.names=[],this.givens=[],this.year_suffix=!1,this.disambiguate=0},(e.exports=wt).Blob=function(t,e,r){var i,s;if(this.levelname=r,e){for(var n in this.strings={prefix:"",suffix:""},e.strings)e.strings.hasOwnProperty(n)&&(this.strings[n]=e.strings[n]);for(this.decorations=[],i=e.decorations===undefined?0:e.decorations.length,s=0;s<i;s+=1)this.decorations.push(e.decorations[s].slice())}else this.strings={},this.strings.prefix="",this.strings.suffix="",this.strings.delimiter="",this.decorations=[];this.blobs="string"==typeof t?t:t?[t]:[],this.alldecor=[this.decorations]},wt.Blob.prototype.push=function(t){if("string"==typeof this.blobs)throw"Attempt to push blob onto string object";!1!==t&&(t.alldecor=t.alldecor.concat(this.alldecor),this.blobs.push(t))},(e.exports=wt).NumericBlob=function(t,e,r,i){this.id=i,this.alldecor=[],this.num=e,this.particle=t,this.blobs=e.toString(),this.status=wt.START,this.strings={},r?(this.gender=r.gender,this.decorations=r.decorations,this.strings.prefix=r.strings.prefix,this.strings.suffix=r.strings.suffix,this.strings["text-case"]=r.strings["text-case"],this.successor_prefix=r.successor_prefix,this.range_prefix=r.range_prefix,this.splice_prefix=r.splice_prefix,this.formatter=r.formatter,this.formatter||(this.formatter=new wt.Output.DefaultFormatter),this.formatter&&(this.type=this.formatter.format(1))):(this.decorations=[],this.strings.prefix="",this.strings.suffix="",this.successor_prefix="",this.range_prefix="",this.splice_prefix="",this.formatter=new wt.Output.DefaultFormatter)},wt.NumericBlob.prototype.setFormatter=function(t){this.formatter=t,this.type=this.formatter.format(1)},wt.Output.DefaultFormatter=function(){},wt.Output.DefaultFormatter.prototype.format=function(t){return t.toString()},wt.NumericBlob.prototype.checkNext=function(t,e){e?(this.status=wt.START,"object"===W(t)&&(t.num===this.num+1?t.status=wt.SUCCESSOR:t.status=wt.SEEN)):t&&t.num&&this.type===t.type&&t.num===this.num+1?this.status===wt.START||this.status===wt.SEEN?t.status=wt.SUCCESSOR:this.status!==wt.SUCCESSOR&&this.status!==wt.SUCCESSOR_OF_SUCCESSOR||(this.range_prefix?(t.status=wt.SUCCESSOR_OF_SUCCESSOR,this.status=wt.SUPPRESS):t.status=wt.SUCCESSOR):(this.status===wt.SUCCESSOR_OF_SUCCESSOR&&(this.status=wt.END),"object"===W(t)&&(t.status=wt.SEEN))},wt.NumericBlob.prototype.checkLast=function(t){return(this.status===wt.SEEN||t.num!==this.num-1&&this.status===wt.SUCCESSOR)&&(this.status=wt.SUCCESSOR,!0)},(e.exports=wt).Util.fixDateNode=function(t,e,r){var i,s,n,o,a,l,u,c,p,m,f,h,d,g=this.cslXml.getAttributeValue(r,"lingo"),b=this.cslXml.getAttributeValue(r,"default-locale");if(this.build.date_key=!0,i=this.cslXml.getAttributeValue(r,"form"),g=b?this.opt["default-locale"][0]:this.cslXml.getAttributeValue(r,"lingo"),!this.getDate(i,b))return t;var _=this.cslXml.getAttributeValue(r,"date-parts");for(var y in s=this.cslXml.getAttributeValue(r,"variable"),c=this.cslXml.getAttributeValue(r,"prefix"),p=this.cslXml.getAttributeValue(r,"suffix"),h=this.cslXml.getAttributeValue(r,"display"),d=this.cslXml.getAttributeValue(r,"cslid"),n=this.cslXml.nodeCopy(this.getDate(i,b)),this.cslXml.setAttribute(n,"lingo",this.opt.lang),this.cslXml.setAttribute(n,"form",i),this.cslXml.setAttribute(n,"date-parts",_),this.cslXml.setAttribute(n,"cslid",d),this.cslXml.setAttribute(n,"variable",s),this.cslXml.setAttribute(n,"default-locale",b),c&&this.cslXml.setAttribute(n,"prefix",c),p&&this.cslXml.setAttribute(n,"suffix",p),h&&this.cslXml.setAttribute(n,"display",h),m=this.cslXml.children(n))o=m[y],"date-part"===this.cslXml.nodename(o)&&(a=this.cslXml.getAttributeValue(o,"name"),b&&this.cslXml.setAttributeOnNodeIdentifiedByNameAttribute(n,"date-part",a,"@default-locale","true"));for(var y in m=this.cslXml.children(r))if(o=m[y],"date-part"===this.cslXml.nodename(o))for(l in a=this.cslXml.getAttributeValue(o,"name"),f=this.cslXml.attributes(o))"@name"!==l&&(g&&g!==this.opt.lang&&-1<["@suffix","@prefix","@form"].indexOf(l)||(u=f[l],this.cslXml.setAttributeOnNodeIdentifiedByNameAttribute(n,"date-part",a,l,u)));if("year"===this.cslXml.getAttributeValue(r,"date-parts"))this.cslXml.deleteNodeByNameAttribute(n,"month"),this.cslXml.deleteNodeByNameAttribute(n,"day");else if("year-month"===this.cslXml.getAttributeValue(r,"date-parts"))this.cslXml.deleteNodeByNameAttribute(n,"day");else if("month-day"===this.cslXml.getAttributeValue(r,"date-parts")){for(var v=this.cslXml.children(n),x=1,w=this.cslXml.numberofnodes(v);x<w;x++)if("year"===this.cslXml.getAttributeValue(v[x],"name")){this.cslXml.setAttribute(v[x-1],"suffix","");break}this.cslXml.deleteNodeByNameAttribute(n,"year")}return this.cslXml.insertChildNodeAfter(t,r,e,n)},(e.exports=wt).dateMacroAsSortKey=function(t,e){wt.dateAsSortKey.call(this,t,e,!0)},wt.dateAsSortKey=function(t,e,r){var i,s,n,o,a,l,u,c=this.variables[0],p="empty";for(r&&t.tmp.extension&&(p="macro-with-date"),void 0===(i=e[c])&&((i={"date-parts":[[0]]}).year||(t.tmp.empty_date=!0)),"undefined"==typeof this.dateparts&&(this.dateparts=["year","month","day"]),i.raw?i=t.fun.dateparser.parseDateToArray(i.raw):i["date-parts"]&&(i=t.dateParseArray(i)),void 0===i&&(i={}),l=0,u=wt.DATE_PARTS_INTERNAL.length;l<u;l+=1)if(n=0,"_end"===(o=s=wt.DATE_PARTS_INTERNAL[l]).slice(-4)&&(o=o.slice(0,-4)),i[s]&&-1<this.dateparts.indexOf(o)&&(n=i[s]),"year"===s.slice(0,4)){var m="Y";"-"===(a=wt.Util.Dates[o].numeric(t,n))[0]&&(m="X",a=a.slice(1),a=9999-parseInt(a,10)),t.output.append(wt.Util.Dates[s.slice(0,4)].numeric(t,m+a),p)}else(n=wt.Util.Dates[o]["numeric-leading-zeros"](t,n))||(n="00"),t.output.append(n,p)},wt.Engine.prototype.dateParseArray=function(t){var e,r,i,s;for(r in e={},t)if("date-parts"===r){1<(i=t["date-parts"]).length&&i[0].length!==i[1].length&&wt.error("CSL data error: element mismatch in date range input."),s=["","_end"];for(var n=0,o=i.length;n<o;n+=1)for(var a=0,l=wt.DATE_PARTS.length;a<l;a+=1)isNaN(parseInt(i[n][a],10))?e[wt.DATE_PARTS[a]+s[n]]=undefined:e[wt.DATE_PARTS[a]+s[n]]=parseInt(i[n][a],10)}else t.hasOwnProperty(r)&&("literal"===r&&"object"===W(t.literal)&&"string"==typeof t.literal.part?(wt.debug("Warning: fixing up weird literal date value"),e.literal=t.literal.part):e[r]=t[r]);return e},(e.exports=wt).Util.Names={},wt.Util.Names.compareNamesets=wt.NameOutput.prototype._compareNamesets,wt.Util.Names.unInitialize=function(t,e){var r,i,s,n,o;if(!e)return"";for(s=e.split(/(?:\-|\s+)/),n=e.match(/(\-|\s+)/g),o="",r=0,i=s.length;r<i;r+=1)o+=s[r],r<i-1&&(o+=n[r]);return o},wt.Util.Names.initializeWith=function(t,e,r,i){var s,n,o,a,l,u;if(!e)return"";if(r||(r=""),-1<["Lord","Lady"].indexOf(e)||!e.match(wt.STARTSWITH_ROMANESQUE_REGEXP)&&!r.match("%s"))return e;var c=e;if(!1===t.opt["initialize-with-hyphen"]&&(c=c.replace(/\-/g," ")),l=(c=(c=c.replace(/\s*\-\s*/g,"-").replace(/\s+/g," ")).replace(/-([a-z])/g,"\u2013$1")).match(/[\-\s]+/g),0===(u=c.split(/[\-\s]+/)).length)c=l;else for(c=[u[0]],s=1,n=u.length;s<n;s+=1)c.push(l[s-1]),c.push(u[s]);for(s=(u=c).length-1;-1<s;s+=-1)if(u[s]&&-1<u[s].slice(0,-1).indexOf(".")){var p=u.slice(s+1),m=u[s].slice(0,-1).split(".");for(u=u.slice(0,s),o=0,a=m.length;o<a;o+=1)u.push(m[o]+"."),o<m.length-1&&u.push(" ");u=u.concat(p)}return(i?wt.Util.Names.doNormalize(t,u,r):wt.Util.Names.doInitialize(t,u,r)).replace(/\u2013([a-z])/g,"-$1")},wt.Util.Names.doNormalize=function(t,e,r,i){var s,n;r=r||"";var o=[];for(s=0,n=e.length;s<n;s+=1)1<e[s].length&&"."===e[s].slice(-1)?(e[s]=e[s].slice(0,-1),o.push(!0)):1===e[s].length&&e[s].toUpperCase()===e[s]?o.push(!0):o.push(!1);for(s=0,n=e.length;s<n;s+=2)if(o[s]){if(s<e.length-2)e[s+1]="",(r.match(/^[\u0009\u000a\u000b\u000c\u000d\u0020\u00a0]+$/)||(!r||r.slice(-1)&&!r.slice(-1).match(/[\u0009\u000a\u000b\u000c\u000d\u0020\u00a0]/))&&e[s].length&&e[s].match(wt.ALL_ROMANESQUE_REGEXP)&&(1<e[s].length||1<e[s+2].length))&&(e[s+1]=" "),1<e[s+2].length?e[s]=e[s]+r.replace(/\ufeff$/,""):e[s]=e[s]+r;s===e.length-1&&(e[s]=e[s]+r)}return e.join("").replace(/[\u0009\u000a\u000b\u000c\u000d\u0020\ufeff\u00a0]+$/,"").replace(/\s*\-\s*/g,"-").replace(/[\u0009\u000a\u000b\u000c\u000d\u0020]+/g," ")},wt.Util.Names.doInitialize=function(t,e,r,i){var s,n,o,a,l,u,c;for(s=0,n=e.length;s<n;s+=2)if(c=e[s])if(!(o=c.match(wt.NAME_INITIAL_REGEXP))&&!c.match(wt.STARTSWITH_ROMANESQUE_REGEXP)&&1<c.length&&r.match("%s")&&(o=c.match(/(.)(.*)/)),o&&o[1]===o[1].toUpperCase()){var p="";if(o[2]){var m="";for(a=0,l=(u=o[2].split("")).length;a<l;a+=1){var f=u[a];if(f!==f.toUpperCase())break;m+=f}m.length<o[2].length&&(p=m.toLocaleLowerCase())}e[s]=o[1].toLocaleUpperCase()+p,s<n-1?r.match("%s")?e[s]=r.replace("%s",e[s]):-1<e[s+1].indexOf("-")?e[s+1]=r+e[s+1]:e[s+1]=r:r.match("%s")?e[s]=r.replace("%s",e[s]):e.push(r)}else c.match(wt.ROMANESQUE_REGEXP)&&(e[s]=" "+c);var h=e.join("");return h=h.replace(/[\u0009\u000a\u000b\u000c\u000d\u0020\ufeff\u00a0]+$/,"").replace(/\s*\-\s*/g,"-").replace(/[\u0009\u000a\u000b\u000c\u000d\u0020]+/g," ")},wt.Util.Names.getRawName=function(t){var e=[];return t.given&&e.push(t.given),t.family&&e.push(t.family),e.join(" ")},(e.exports=wt).Util.Dates={},wt.Util.Dates.year={},wt.Util.Dates.year["long"]=function(t,e){return e||(e="boolean"==typeof e?"":0),e.toString()},wt.Util.Dates.year.imperial=function(t,e,r,i){var s="";e||(e="boolean"==typeof e?"":0),r=r?"_end":"";var n=t.tmp.date_object["month"+r];for(n=n?""+n:"1";n.length<2;)n="0"+n;var o=t.tmp.date_object["day"+r];for(o=o?""+o:"1";o.length<2;)o="0"+o;var a,l,u=parseInt(e+n+o,10);if(18680908<=u&&u<19120730?(a="\u660e\u6cbb",l=1867):19120730<=u&&u<19261225?(a="\u5927\u6b63",l=1911):19261225<=u&&u<19890108?(a="\u662d\u548c",l=1925):19890108<=u&&(a="\u5e73\u6210",l=1988),a&&l){var c=a;t.sys.normalizeAbbrevsKey&&(c=t.sys.normalizeAbbrevsKey("number",a)),t.transform.abbrevs["default"].number[c]||t.transform.loadAbbreviation("default","number",c),t.transform.abbrevs["default"].number[c]&&(a=t.transform.abbrevs["default"].number[c]),s=a+(e-l)}return s},wt.Util.Dates.year["short"]=function(t,e){if((e=e.toString())&&4===e.length)return e.substr(2)},wt.Util.Dates.year.numeric=function(t,e){var r,i;for((i=(e=""+e).match(/([0-9]*)$/))?(r=e.slice(0,-1*i[1].length),e=i[1]):(r=e,e="");e.length<4;)e="0"+e;return r+e},wt.Util.Dates.normalizeMonth=function(t,e){var r;if(t||(t=0),(t=""+t).match(/^[0-9]+$/)||(t=0),t=parseInt(t,10),e){var i={stub:"month-",num:t};i.num<1||20<i.num?i.num=0:16<i.num?(i.stub="season-",i.num=i.num-16):12<i.num&&(i.stub="season-",i.num=i.num-12),r=i}else(t<1||12<t)&&(t=0),r=t;return r},wt.Util.Dates.month={},wt.Util.Dates.month.numeric=function(t,e){return(e=wt.Util.Dates.normalizeMonth(e))||(e=""),e},wt.Util.Dates.month["numeric-leading-zeros"]=function(t,e){if(e=wt.Util.Dates.normalizeMonth(e))for(e=""+e;e.length<2;)e="0"+e;else e="";return e},wt.Util.Dates.month["long"]=function(t,e,r,i){var s=wt.Util.Dates.normalizeMonth(e,!0);if(e=s.num){for(e=""+e;e.length<2;)e="0"+e;e=t.getTerm(s.stub+e,"long",0,0,!1,i)}else e="";return e},wt.Util.Dates.month["short"]=function(t,e,r,i){var s=wt.Util.Dates.normalizeMonth(e,!0);if(e=s.num){for(e=""+e;e.length<2;)e="0"+e;e=t.getTerm(s.stub+e,"short",0,0,!1,i)}else e="";return e},wt.Util.Dates.day={},wt.Util.Dates.day.numeric=function(t,e){return e.toString()},wt.Util.Dates.day["long"]=wt.Util.Dates.day.numeric,wt.Util.Dates.day["numeric-leading-zeros"]=function(t,e){for(e||(e=0),e=e.toString();e.length<2;)e="0"+e;return e.toString()},wt.Util.Dates.day.ordinal=function(t,e,r){return t.fun.ordinalizer.format(e,r)},(e.exports=wt).Util.Sort={},wt.Util.Sort.strip_prepositions=function(t){var e;return"string"==typeof t&&(e=t.toLocaleLowerCase(),e=t.match(/^((a|an|the)\s+)/)),e&&(t=t.substr(e[1].length)),t},(e.exports=wt).Util.substituteStart=function(r,t){var e,i,s,n,o,a,l;n=function(t,e){for(var r=0,i=this.decorations.length;r<i;r+=1)if("@strip-periods"===this.decorations[r][0]&&"true"===this.decorations[r][1]){t.tmp.strip_periods+=1;break}},this.execs.push(n),this.decorations&&(r.opt.development_extensions.csl_reverse_lookup_support||r.sys.csl_reverse_lookup_support)&&(this.decorations.reverse(),this.decorations.push(["@showid","true",this.cslid]),this.decorations.reverse()),l=["number","date","names"],("text"===this.name&&!this.postponed_macro||-1<l.indexOf(this.name))&&(e=function(t,e,r){"author"===t.tmp.element_trace.value()||"names"===this.name?r&&r["author-only"]?t.tmp.element_trace.push("do-not-suppress-me"):r&&r["suppress-author"]:r&&r["author-only"]?t.tmp.element_trace.push("suppress-me"):r&&r["suppress-author"]&&t.tmp.element_trace.push("do-not-suppress-me")},this.execs.push(e)),i=this.strings.cls,this.strings.cls=!1,0===r.build.render_nesting_level&&("bibliography"===r.build.area&&r.bibliography.opt["second-field-align"]?((s=new wt.Token("group",wt.START)).decorations=[["@display","left-margin"]],n=function(t,e){t.tmp.render_seen||(s.strings.first_blob=e.id,t.output.startTag("bib_first",s))},s.execs.push(n),t.push(s)):-1<wt.DISPLAY_CLASSES.indexOf(i)&&((s=new wt.Token("group",wt.START)).decorations=[["@display",i]],n=function(t,e){s.strings.first_blob=e.id,t.output.startTag("bib_first",s)},s.execs.push(n),t.push(s)),r.build.cls=i),r.build.render_nesting_level+=1,1===r.build.substitute_level.value()&&(o=new wt.Token("choose",wt.START),wt.Node.choose.build.call(o,r,t),n=function(t,e){return!!r.tmp.can_substitute.value()},(a=new wt.Token("if",wt.START)).tests.push(n),a.test=r.fun.match.any(this,r,a.tests),t.push(a)),r.sys.variableWrapper&&this.variables_real&&this.variables_real.length&&(n=function(t,e,r){if(!t.tmp.just_looking&&!t.tmp.suppress_decorations){var i=new wt.Token("text",wt.START);i.decorations=[["@showid","true"]],t.output.startTag("variable_entry",i);var s=null;r&&(s=r.position),s||(s=0);var n=0;r&&r.noteIndex&&(n=r.noteIndex);var o=0;r&&r["first-reference-note-number"]&&(o=r["first-reference-note-number"]);var a=0;r&&r["citation-number"]&&(a=r["citation-number"]);var l=0;r&&r.index&&(l=r.index);var u={itemData:e,variableNames:this.variables,context:t.tmp.area,xclass:t.opt.xclass,position:["first","subsequent","ibid","ibid-with-locator"][s],"note-number":n,"first-reference-note-number":o,"citation-number":a,index:l,mode:t.opt.mode};t.output.current.value().params=u}},this.execs.push(n))},wt.Util.substituteEnd=function(t,e){var r,i,s,n,o,l;t.sys.variableWrapper&&(this.hasVariable||this.variables_real&&this.variables_real.length)&&(r=function(t,e){t.tmp.just_looking||t.tmp.suppress_decorations||t.output.endTag("variable_entry")},this.execs.push(r)),r=function(t,e){for(var r=0,i=this.decorations.length;r<i;r+=1)if("@strip-periods"===this.decorations[r][0]&&"true"===this.decorations[r][1]){t.tmp.strip_periods+=-1;break}},this.execs.push(r),t.build.render_nesting_level+=-1,0===t.build.render_nesting_level&&(t.build.cls?(r=function(t,e){t.output.endTag("bib_first")},this.execs.push(r),t.build.cls=!1):"bibliography"===t.build.area&&t.bibliography.opt["second-field-align"]&&(r=function(t,e){t.tmp.render_seen||t.output.endTag("bib_first")},(i=new wt.Token("group",wt.END)).execs.push(r),e.push(i),(s=new wt.Token("group",wt.START)).decorations=[["@display","right-inline"]],r=function(t,e){t.tmp.render_seen||(t.tmp.render_seen=!0,t.output.startTag("bib_other",s))},s.execs.push(r),e.push(s))),1===t.build.substitute_level.value()&&(n=new wt.Token("if",wt.END),e.push(n),o=new wt.Token("choose",wt.END),wt.Node.choose.build.call(o,t,e)),("names"===this.name||"text"===this.name&&"title"!==this.variables_real)&&(new wt.Token("text",wt.SINGLETON),r=function(t,e){if("bibliography"===t.tmp.area&&"string"==typeof t.bibliography.opt["subsequent-author-substitute"]&&(!this.variables_real||e[this.variables_real])&&t.tmp.substituted_variable===this.variables_real){var r,i,s=t.bibliography.opt["subsequent-author-substitute-rule"];if(!t.tmp.suppress_decorations&&t.tmp.subsequent_author_substitute_ok&&t.tmp.rendered_name){if("partial-each"===s||"partial-first"===s){var n=!0,o=[];for(r=0,i=t.tmp.name_node.children.length;r<i;r+=1){var a=t.tmp.rendered_name[r];n&&t.tmp.last_rendered_name&&t.tmp.last_rendered_name.length>r-1&&a&&!a.localeCompare(t.tmp.last_rendered_name[r])?(l=new wt.Blob(t[t.tmp.area].opt["subsequent-author-substitute"]),t.tmp.name_node.children[r].blobs=[l],"partial-first"===s&&(n=!1)):n=!1,o.push(a)}t.tmp.last_rendered_name=o}else if("complete-each"===s){if(o=t.tmp.rendered_name.join(",")){if(t.tmp.last_rendered_name&&!o.localeCompare(t.tmp.last_rendered_name))for(r=0,i=t.tmp.name_node.children.length;r<i;r+=1)l=new wt.Blob(t[t.tmp.area].opt["subsequent-author-substitute"]),t.tmp.name_node.children[r].blobs=[l];t.tmp.last_rendered_name=o}}else{(o=t.tmp.rendered_name.join(","))&&(t.tmp.last_rendered_name&&!o.localeCompare(t.tmp.last_rendered_name)&&(l=new wt.Blob(t[t.tmp.area].opt["subsequent-author-substitute"]),t.tmp.label_blob?t.tmp.name_node.top.blobs=[l,t.tmp.label_blob]:t.tmp.name_node.top.blobs.length?t.tmp.name_node.top.blobs[0].blobs=[l]:t.tmp.name_node.top.blobs=[l],t.tmp.substituted_variable=this.variables_real),t.tmp.last_rendered_name=o)}t.tmp.subsequent_author_substitute_ok=!1}}},this.execs.push(r)),("text"===this.name&&!this.postponed_macro||-1<["number","date","names"].indexOf(this.name))&&(r=function(t,e){t.tmp.element_trace.pop()},this.execs.push(r))},(e.exports=wt).Util.padding=function(t){var e=t.match(/\s*(-{0,1}[0-9]+)/);if(e)for((t=parseInt(e[1],10))<0&&(t=1e20+t),t=""+t;t.length<20;)t="0"+t;return t},wt.Util.LongOrdinalizer=function(){},wt.Util.LongOrdinalizer.prototype.init=function(t){this.state=t},wt.Util.LongOrdinalizer.prototype.format=function(t,e){t<10&&(t="0"+t);var r=wt.Engine.getField(wt.LOOSE,this.state.locale[this.state.opt.lang].terms,"long-ordinal-"+t,"long",0,e);return r||(r=this.state.fun.ordinalizer.format(t,e)),this.state.tmp.cite_renders_content=!0,r},wt.Util.Ordinalizer=function(t){this.state=t,this.suffixes={}},wt.Util.Ordinalizer.prototype.init=function(){if(!this.suffixes[this.state.opt.lang]){this.suffixes[this.state.opt.lang]={};for(var t=0;t<3;t+=1){var e=[undefined,"masculine","feminine"][t];this.suffixes[this.state.opt.lang][e]=[];for(var r=1;r<5;r+=1){var i=this.state.getTerm("ordinal-0"+r,"long",!1,e);if(void 0===i){delete this.suffixes[this.state.opt.lang][e];break}this.suffixes[this.state.opt.lang][e].push(i)}}}},wt.Util.Ordinalizer.prototype.format=function(t,e){var r;r=""+(t=parseInt(t,10));var i="",s=[];if(e&&s.push(e),s.push("neuter"),this.state.locale[this.state.opt.lang].ord["1.0.1"]){var n;i=this.state.getTerm("ordinal",!1,0,e);for(var o=0,a=s.length;o<a;o+=1){n=s[o];var l=this.state.locale[this.state.opt.lang].ord["1.0.1"];if(l["whole-number"][r]&&l["whole-number"][r][n]?i=this.state.getTerm(this.state.locale[this.state.opt.lang].ord["1.0.1"]["whole-number"][r][n],!1,0,e):l["last-two-digits"][r.slice(r.length-2)]&&l["last-two-digits"][r.slice(r.length-2)][n]?i=this.state.getTerm(this.state.locale[this.state.opt.lang].ord["1.0.1"]["last-two-digits"][r.slice(r.length-2)][n],!1,0,e):l["last-digit"][r.slice(r.length-1)]&&l["last-digit"][r.slice(r.length-1)][n]&&(i=this.state.getTerm(this.state.locale[this.state.opt.lang].ord["1.0.1"]["last-digit"][r.slice(r.length-1)][n],!1,0,e)),i)break}}else e||(e=undefined),this.state.fun.ordinalizer.init(),i=t/10%10==1||10<t&&t<20?this.suffixes[this.state.opt.lang][e][3]:t%10==1&&t%100!=11?this.suffixes[this.state.opt.lang][e][0]:t%10==2&&t%100!=12?this.suffixes[this.state.opt.lang][e][1]:t%10==3&&t%100!=13?this.suffixes[this.state.opt.lang][e][2]:this.suffixes[this.state.opt.lang][e][3];return r=r+=i},wt.Util.Romanizer=function(){},wt.Util.Romanizer.prototype.format=function(t){var e,r,i,s,n;if(e="",t<6e3)for((s=t.toString().split("")).reverse(),i=r=0,n=s.length,r=0;r<n;r+=1)i=parseInt(s[r],10),e=wt.ROMAN_NUMERALS[r][i]+e;return e},wt.Util.Suffixator=function(t){t||(t=wt.SUFFIX_CHARS),this.slist=t.split(",")},wt.Util.Suffixator.prototype.format=function(t){var e;t+=1;var r="";do{e=t%26==0?26:t%26;r=this.slist[e-1]+r;t=(t-e)/26}while(0!==t);return r},wt.Engine.prototype.processNumber=function(u,h,d,t){var e,g=this;function b(t,e,r,i){i=i||"";var s={};if(e||wt.STATUTE_SUBDIV_STRINGS_REVERSE[d]||(e="var:"+d),e){var n=e.match(/(\s*)([^\s]+)(\s*)/);s.label=n[2],s.origLabel=t,s.labelSuffix=n[3]?n[3]:"",s.plural=0,s.labelVisibility=!1}return(n=r.match(/^([0-9]*[a-zA-Z]+0*)?([0-9]+(?:[a-zA-Z]*|[-,a-zA-Z]+))$/))?(s.particle=n[1]?n[1]:"",s.value=n[2]):(s.particle="",s.value=r),s.joiningSuffix=i.replace(/\s*-\s*/,"-"),s}function l(t,e,r){var i=t[r.pos],s=t[e].value,n="\\-"===i.joiningSuffix;s.particle&&s.particle!==i.particle&&(r.collapsible=!1);var o=s.match(/^[0-9]+([-,:a-zA-Z]*)$/),a=i.value.match(/^[0-9]+([-,:a-zA-Z]*)$/);if(s&&o&&a&&!n||(r.collapsible=!1,s&&a||(r.numeric=!1),n&&r.count--),(o&&o[1]||a&&a[1])&&(r.collapsible=!1),undefined===t[e].collapsible){for(var l=e,u=e+r.count;l<u;l++)isNaN(parseInt(t[l].value))&&!t[l].value.match(/^[ivxlcmIVXLCM]+$/)?t[l].collapsible=!1:t[l].collapsible=!0;r.collapsible=t[e].collapsible}var c=r.collapsible;for(l=r.pos,u=r.pos+r.count;l<u;l++)1<r.count&&c&&(t[l].plural=1),t[l].numeric=r.numeric,t[l].collapsible=r.collapsible}function c(t,e,r){"var:"!==r.label.slice(0,4)&&(0===r.pos?("locator"!==d&&"number"!==d||g.getTerm(wt.STATUTE_SUBDIV_STRINGS[r.label])||(t[r.pos].labelVisibility=!0),-1===["locator","number"].indexOf(d)&&wt.STATUTE_SUBDIV_STRINGS[r.label]!==d&&(t[0].labelVisibility=!0)):t[r.pos].labelVisibility=!0)}function r(t){var e=wt.Util.cloneToken(u),r=new wt.Token;if(!g.tmp.just_looking){for(var i=e.decorations.length-1;-1<i;i--)"@quotes"===e.decorations[i][0]&&(r.decorations=r.decorations.concat(e.decorations.slice(i,i+1)),e.decorations=e.decorations.slice(0,i).concat(e.decorations.slice(i+1)));r.strings.prefix=e.strings.prefix,e.strings.prefix="",r.strings.suffix=e.strings.suffix,e.strings.suffix=""}var s=t.length?t[0].label:null;if(t.length){for(var n=0,o=t.length;n<o;n++){var a=t[n],l=wt.Util.cloneToken(e);l.gender=u.gender,s===a.label&&(l.formatter=u.formatter),a.numeric&&(l.successor_prefix=a.successor_prefix),l.strings.suffix=l.strings.suffix+p(a.joiningSuffix),a.styling=l}g.tmp.just_looking||'"'===t[0].value.slice(0,1)&&'"'===t[t.length-1].value.slice(-1)&&(t[0].value=t[0].value.slice(1),t[t.length-1].value=t[t.length-1].value.slice(0,-1),r.decorations.push(["@quotes",!0]))}return r}function p(t){return t.replace("\\-","-")}function a(t,e,r,i){var s=m(t,e);return function(t,e){var r=!0;if("locator"===t){var i;i=e.origLabel?e.origLabel:e.label,r=!!g.getTerm(wt.STATUTE_SUBDIV_STRINGS[i])}return r}(t,e)&&"-"===r&&i&&((s||-1<["locator","issue","volume","edition","number"].indexOf(t))&&((r=g.getTerm("page-range-delimiter"))||(r="\u2013")),"collection-number"===t&&((r=g.getTerm("year-range-delimiter"))||(r="\u2013"))),r}function m(t,e){return"page"===t||"locator"===t&&(-1<["p."].indexOf(e.label)||-1<["p."].indexOf(e.origLabel))}function o(t,e,r){if(!(e<1)&&2===r.count&&t[e-1].particle===t[e].particle)if("-"===t[e-1].joiningSuffix)if(!g.opt["page-range-format"]&&parseInt(t[e-1].value,10)>parseInt(t[e].value,10))t[e-1].joiningSuffix=a(d,t[e],t[e-1].joiningSuffix,!0);else{var i=t[e];if(!m(d,i)||isNaN(parseInt(t[e-1].value))||isNaN(parseInt(t[e].value)))(""+t[e-1].value).match(/^([0-9]+|[ivxlcmIVXLCM]+)$/)&&(""+t[e].value).match(/^([0-9]+|[ivxlcmIVXLCM]+)$/)&&(t[e-1].joiningSuffix=g.getTerm("page-range-delimiter")),s=t[e-1].value+p(t[e-1].joiningSuffix)+t[e].value;else{var s=t[e-1].particle+t[e-1].value+" - "+t[e].particle+t[e].value;s=g.fun.page_mangler(s)}var n=s.match(/^((?:[0-9]*[a-zA-Z]+0*))?([0-9]+)(\s*[^0-9]+\s*)([-,a-zA-Z]?0*)([0-9]+)$/);if(n){var o=n[3];o=a(d,i,o,t[e].numeric),t[e-1].particle=n[1],t[e-1].value=n[2],t[e-1].joiningSuffix=o,t[e].particle=n[4],t[e].value=n[5]}r.count=0}else r.count=1}function i(t){if(u&&-1!==["page","page-first","chapter-number","collection-number","edition","issue","number","number-of-pages","number-of-volumes","volume","locator"].indexOf(d)){for(var e={count:0,label:null,lastHadRangeDelimiter:!1},r=0,i=t.length;r<i;r++){var s=t[r];if(s.collapsible)e.label===s.label&&"-"===s.joiningSuffix?e.count=1:e.label===s.label&&"-"!==s.joiningSuffix?(e.count++,2===e.count&&o(t,r,e)):e.label!==s.label?(e.label=s.label,e.count=1):(e.count=1,e.label=s.label);else{e.count=0,e.label=null;var n=s.numeric;s.joiningSuffix=a(d,s,s.joiningSuffix,n)}}2===e.count&&o(t,t.length-1,e)}}if(u&&this.tmp.shadow_numbers[d]&&this.tmp.shadow_numbers[d].values.length)return i(w=this.tmp.shadow_numbers[d].values),void(this.tmp.shadow_numbers[d].masterStyling=r(w));if(this.tmp.shadow_numbers[d]||(this.tmp.shadow_numbers[d]={values:[]}),h){var s,n,f,_,y=wt.LangPrefsMap[d];if(y){var v=this.opt["cite-lang-prefs"][y][0];e=(e=this.transform.getTextSubField(h,d,"locale-"+v,!0)).name}else e=h[d];if(e&&this.sys.getAbbreviation){var x=this.transform.loadAbbreviation(h.jurisdiction,"number",e);this.transform.abbrevs[x].number&&(this.transform.abbrevs[x].number[e]?e=this.transform.abbrevs[x].number[e]:"undefined"!=typeof this.transform.abbrevs[x].number[e]&&delete this.transform.abbrevs[x].number[e])}if(void 0!==e&&("string"==typeof e||"number"==typeof e)){"number"==typeof e&&(e=""+e);var w,A=wt.STATUTE_SUBDIV_STRINGS_REVERSE[d];if(!this.tmp.shadow_numbers.values)!function(t){for(var e=0,r=t.length-1;e<r;e++)!t[e].joiningSuffix&&t[e+1].label&&(t[e].joiningSuffix=" ")}(w=function(t,e){e=e||"";var r=[];if(l=(t=function(t,e){var r=(t=t.trim()).match(/^([^ ]+)/);if(r&&!wt.STATUTE_SUBDIV_STRINGS[r[1]]){var i=null;(i="locator"===d?h.label?wt.STATUTE_SUBDIV_STRINGS_REVERSE[h.label]:"p.":wt.STATUTE_SUBDIV_STRINGS_REVERSE[d])&&(t=i+" "+t)}return t}(t)).match(/(;\s+|,\s+|\s*\\*[\-\u2013]+\s*|\s*&\s*)/g)){for(var i=0,s=(u=t.split(/(?:;\s+|,\s+|\s*\\*[\-\u2013]+\s*|\s*&\s*)/)).length-1;i<s;i++)r.push(u[i]),r.push(l[i]);r.push(u[u.length-1]),r=function(t){for(var e=t.length-2;-1<e;e-=2)"-"===t[e]&&t[e-1].match(/^(?:(?:[a-z]|[a-z][a-z]|[a-z][a-z][a-z]|[a-z][a-z][a-z][a-z])\. *)*[0-9]+[,a-zA-Z]+$/)&&t[e+1].match(/^[,a-zA-Z]+$/)&&(t[e-1]=t.slice(e-1,e+2).join(""),t=t.slice(0,e).concat(t.slice(e+2)));return t}(r)}else r=[t];var n=[],o=e,a="";for(i=0,s=r.length;i<s;i+=2){var l;if(l=r[i].match(/((?:^| )(?:[a-z]|[a-z][a-z]|[a-z][a-z][a-z]|[a-z][a-z][a-z][a-z])(?:\.| ) *)/g)){for(var u,c=(u=r[i].split(/(?:(?:^| )(?:[a-z]|[a-z][a-z]|[a-z][a-z][a-z]|[a-z][a-z][a-z][a-z])(?:\.| ) *)/)).length-1;0<c;c--)!u[c-1]||u[c].match(/^[0-9]+([-;,:a-zA-Z]*)$/)&&u[c-1].match(/^[0-9]+([-;,:a-zA-Z]*)$/)||(u[c-1]=u[c-1]+l[c-1]+u[c],u=u.slice(0,c).concat(u.slice(c+1)),l=l.slice(0,c-1).concat(l.slice(c)));if(0<l.length){var p=l[0].trim();!wt.STATUTE_SUBDIV_STRINGS[p]||!g.getTerm(wt.STATUTE_SUBDIV_STRINGS[p])||-1===["locator","number"].indexOf(d)&&wt.STATUTE_SUBDIV_STRINGS[p]!==d?0===i&&(l=l.slice(1),u[0]=u[0]+" "+p+" "+u[1],u=u.slice(0,1).concat(u.slice(2))):a=p}c=0;for(var m=u.length;c<m;c++)(u[c]||c===u.length-1)&&(f=a===(o=l[c-1]?l[c-1]:o).trim()?"":a,t=u[c]?u[c].trim():"",c===u.length-1?n.push(b(f,o,t,r[i+1])):n.push(b(f,o,t)))}else{var f;f=a===o.trim()?"":a,n.push(b(f,o,r[i],r[i+1]))}}return n}(e,A)),function(t){if(0!==t.length){for(var e=0,r=1,i=1,s=t.length;i<s;i++){var n=t[i-1],o=t[i];n.label===o.label&&n.particle==n.particle?r++:((a=JSON.parse(JSON.stringify(t[e]))).pos=e,a.count=r,a.numeric=!0,l(t,e,a),0!==i&&n.label===o.label||c(t,0,a),e=i,r=1)}var a;(a=JSON.parse(JSON.stringify(t[e]))).pos=e,a.count=r,a.numeric=!0,l(t,e,a),c(t,0,a),t.length&&t[0].numeric&&"number-of-"===d.slice(0,10)&&1<parseInt(h[d],10)&&(t[0].plural=1)}}(w),this.tmp.shadow_numbers[d].values=w;u&&(i(w),this.tmp.shadow_numbers[d].masterStyling=r(w)),s=this.tmp.shadow_numbers,f=w,_=s[n=d],f.length&&(_.numeric=f[0].numeric,_.collapsible=f[0].collapsible,_.plural=f[0].plural,_.label=wt.STATUTE_SUBDIV_STRINGS[f[0].label],"number"===n&&"issue"===_.label&&g.getTerm("number")&&(_.label="number"))}}},wt.Util.outputNumericField=function(t,e,r){t.output.openLevel(t.tmp.shadow_numbers[e].masterStyling);var i,s=t.tmp.shadow_numbers[e].values,n=s.length?s[0].label:null,o=t.tmp.shadow_numbers[e].labelForm;i=o||"short";for(var a=t.tmp.shadow_numbers[e].labelCapitalizeIfFirst,l=t.tmp.shadow_numbers[e].labelDecorations,u=null,c=0,p=s.length;c<p;c++){var m,f=s[c],h="";if(f.label)(m="var:"===f.label.slice(0,4)?f.label.slice(4):wt.STATUTE_SUBDIV_STRINGS[f.label])&&(h=f.label===n?t.getTerm(m,o,f.plural):t.getTerm(m,i,f.plural),a&&(h=wt.Output.Formatters["capitalize-first"](t,h)));var d=-1;h&&(d=h.indexOf("%s"));var g=wt.Util.cloneToken(f.styling);if(g.formatter=f.styling.formatter,g.type=f.styling.type,g.num=f.styling.num,g.gender=f.styling.gender,0<d&&d<h.length-2)g.strings.prefix+=h.slice(0,d),g.strings.suffix=h.slice(d+2)+g.strings.suffix;else if(f.labelVisibility)if(h||(h=f.label,m=f.label),0<d){var b=new wt.Token;b.decorations=l,t.output.append(h.slice(0,d),b)}else d!==h.length-2&&-1!==d||t.output.append(h+f.labelSuffix,"empty");if(f.collapsible){if(f.value.match(/^[1-9][0-9]*$/))var _=new wt.NumericBlob(f.particle,parseInt(f.value,10),g,r);else _=new wt.NumericBlob(f.particle,f.value,g,r);"undefined"==typeof _.gender&&(_.gender=t.locale[t.opt.lang]["noun-genders"][e]),t.output.append(_,"literal")}else t.output.append(f.particle+f.value,g);if(0===d&&d<h.length-2&&(null===u&&(u=m),m!==u||c===s.length-1)){var y=new wt.Token;y.decorations=l,t.output.append(h.slice(d+2),y)}t.tmp.term_predecessor=!0}t.output.closeLevel()},(e.exports=wt).Util.PageRangeMangler={},wt.Util.PageRangeMangler.getFunction=function(r,i){var e,l,u,n,s,o,a,c,p,m,f,h,d,g,b,_,t,y=r.getTerm(i+"-range-delimiter");e=/([0-9]*[a-zA-Z]+0*)?([0-9]+)\s*(?:\u2013|-)\s*([0-9]*[a-zA-Z]+0*)?([0-9]+)/,n=function(t){for(u=t.length,l=1;l<u;l+=2)"object"===W(t[l])&&(t[l]=t[l].join(""));var e=t.join("");return e=e.replace(/([^\\])\-/g,"$1"+r.getTerm(i+"-range-delimiter"))},s=function(t){var e,r,i,s="\\s+\\-\\s+",n=new RegExp("([^\\\\])[-"+("-"===y?"":y)+"\\u2013]","g");t=t.replace(n,"$1 - ").replace(/\s+-\s+/g," - ");var o=new RegExp("((?:[0-9]*[a-zA-Z]+0*)?[0-9]+"+s+"(?:[0-9]*[a-zA-Z]+0*)?[0-9]+)","g"),a=new RegExp("(?:[0-9]*[a-zA-Z]+0*)?[0-9]+"+s+"(?:[0-9]*[a-zA-Z]+0*)?[0-9]+");if(e=t.match(o),0===(r=t.split(a)).length)i=e;else for(i=[r[0]],l=1,u=r.length;l<u;l+=1)i.push(e[l-1].replace(/\s*\-\s*/g,"-")),i.push(r[l]);return i},o=function(t){for(m=s(t=""+t),u=m.length,l=1;l<u;l+=2)(f=m[l].match(e))&&(f[3]&&f[1]!==f[3]||(f[4].length<f[2].length&&(f[4]=f[2].slice(0,f[2].length-f[4].length)+f[4]),parseInt(f[2],10)<parseInt(f[4],10)&&(f[3]=y+(f[1]?f[1]:""),m[l]=f.slice(1)))),"string"==typeof m[l]&&(m[l]=m[l].replace(/\-/g,y));return m},a=function(t,e,r){u=t.length;for(var i=1,s=t.length;i<s;i+=2)t[i][3]=c(t[i][1],t[i][3],e,r),t[i][2].slice(1)===t[i][0]&&(t[i][2]=y);return n(t)},c=function(t,e,r,i){if(r||(r=0),h=(""+t).split(""),d=(""+e).split(""),(g=d.slice()).reverse(),h.length===d.length)for(var s=0,n=h.length;s<n;s+=1){if(!(h[s]===d[s]&&g.length>r)){if(r&&i&&3===g.length){var o=h.slice(0,s);o.reverse(),g=g.concat(o)}break}g.pop()}return g.reverse(),g.join("")},p=function(t){for(u=t.length,l=1;l<u;l+=2)"object"===W(t[l])&&(f=t[l],b=parseInt(f[1],10),_=parseInt(f[3],10),100<b&&b%100&&parseInt(b/100,10)===parseInt(_/100,10)?f[3]=""+_%100:1e4<=b&&(f[3]=""+_%1e3)),f[2].slice(1)===f[0]&&(f[2]=y);return n(t)};var v=function(t,e,r,i){return e(o(t=""+t),r,i)};return r.opt[i+"-range-format"]?"expanded"===r.opt[i+"-range-format"]?t=function(t){return v(t,n)}:"minimal"===r.opt[i+"-range-format"]?t=function(t){return v(t,a)}:"minimal-two"===r.opt[i+"-range-format"]?t=function(t,e){return v(t,a,2,e)}:"chicago"===r.opt[i+"-range-format"]&&(t=function(t){return v(t,p)}):t=function(t){return v(t,n)},t},(e.exports=wt).Util.FlipFlopper=function(x){this.processTags=function(t){var e=t.blobs,r=!1;" "!==e.slice(0,1)||e.match(/^\s+[\'\"]/)||(r=!0);var i=new RegExp("("+wt.ROMANESQUE_REGEXP.source+")\u2019("+wt.ROMANESQUE_REGEXP.source+")","g"),s=function(t){var e=[],r=(t=(t=t.replace(/(<span)\s+(style=\"font-variant:)\s*(small-caps);?\"[^>]*(>)/g,'$1 $2$3;"$4')).replace(/(<span)\s+(class=\"no(?:case|decor)\")[^>]*(>)/g,"$1 $2$3")).match(O.matchAll);if(!r)return{tags:[],strings:[t],forcedSpaces:[]};for(var i=t.split(O.splitAll),s=0,n=r.length-1;s<n;s++)A[r[s]]&&(""===i[s+1]&&-1<['"',"'"].indexOf(r[s+1])?(r[s+1]=" "+r[s+1],e.push(!0)):e.push(!1));return{tags:r,strings:i,forcedSpaces:e}}(e=" "+e.replace(i,"$1'$2"));if(0===s.tags.length)return;for(var n=!1,o=0,a=s.tags.length;o<a;o++){var l=s.tags[o],e=s.strings[o+1];if(k(l,e))s.strings[o+1]=" '"===l?" \u2019"+s.strings[o+1]:"\u2019"+s.strings[o+1],s.tags[o]="";else{for(var u;m=o,_=b=g=d=h=f=void 0,u=(p=l).match(O.open)?(g=p,b=m,!(_=w[w.length-1])||g.match(_.opener)?(w.push({type:j[g].type,opener:j[g].opener,closer:j[g].closer,pos:b}),!1):(w.pop(),w.push({type:j[g].type,opener:j[g].opener,closer:j[g].closer,pos:b}),{fixtag:_.pos})):(f=p,h=m,(d=w[w.length-1])&&f===d.closer?(w.pop(),"nocase"===d.type&&{nocase:{open:d.pos,close:h}}):d?{fixtag:d.pos}:{fixtag:h});){if(!(-1<Object.keys(u).indexOf("fixtag"))){if(u.nocase){s.tags[u.nocase.open]="",s.tags[u.nocase.close]="";break}break}if(l.match(O.close)&&"'"===l)s.strings[o+1]="\u2019"+s.strings[o+1],s.tags[o]="";else{var c=s.tags[u.fixtag];s.forcedSpaces[u.fixtag-1]&&(c=c.slice(1)),s.strings[u.fixtag+1]=c+s.strings[u.fixtag+1],s.tags[u.fixtag]=""}if(!(0<w.length))break;w.pop()}u&&(u.fixtag||0===u.fixtag)&&(s.strings[o+1]=s.tags[o]+s.strings[o+1],s.tags[o]="")}}var p,m,f,h,d,g,b,_;for(var o=w.length-1;-1<o;o--){var y=w[o].pos,l=s.tags[y];s.strings[y+1]=" '"===l||"'"===l?" \u2019"+s.strings[y+1]:s.tags[y]+s.strings[y+1],s.tags[y]="",w.pop()}for(var o=s.tags.length-1;-1<o;o--)s.tags[o]||(s.tags=s.tags.slice(0,o).concat(s.tags.slice(o+1)),s.strings[o]=s.strings[o]+s.strings[o+1],s.strings=s.strings.slice(0,o+1).concat(s.strings.slice(o+2)));for(var o=0,a=s.tags.length;o<a;o++){var l=s.tags[o],v=s.forcedSpaces[o-1];-1<[' "'," '",'("',"('"].indexOf(l)&&(n||(E(l),n=!0),v||(s.strings[o]+=l.slice(0,1)))}!function(t,e,r){var f=!0,i=new S(t);t.blobs=[];var s=new function(t){this.stack=[t],this.latest=t,this.addStyling=function(t,e,r){if(f&&(" "===t.slice(0,1)&&(t=t.slice(1))," "===t.slice(0,1)&&(t=t.slice(1)),f=!1),this.latest=this.stack[this.stack.length-1],e){if("string"==typeof this.latest.blobs){var i=new wt.Blob;i.blobs=this.latest.blobs,i.alldecor=this.latest.alldecor.slice(),this.latest.blobs=[i]}var s=new wt.Token,n=new wt.Blob(null,s);if(n.alldecor=this.latest.alldecor.slice(),"@class"===e[0]&&"nodecor"===e[1]){for(var o=[],a={},l=[x[x.tmp.area].opt.layout_decorations].concat(n.alldecor),u=l.length-1;-1<u;u--){var c=l[u];if(c)for(var p=c.length-1;-1<p;p--){var m=c[p];-1<["@font-weight","@font-style","@font-variant"].indexOf(m[0])&&!a[m[0]]&&("normal"!==e[1]&&(n.decorations.push([m[0],"normal"]),o.push([m[0],"normal"])),a[m[0]]=!0)}}n.alldecor.push(o)}else n.decorations.push(e),n.alldecor.push([e]);if(this.latest.blobs.push(n),this.stack.push(n),this.latest=n,t){var s=new wt.Token,n=new wt.Blob(null,s);n.blobs=t,n.alldecor=this.latest.alldecor.slice(),this.latest.blobs.push(n)}}else if(t){var i=new wt.Blob;i.blobs=t,i.alldecor=this.latest.alldecor.slice(),this.latest.blobs.push(i)}},this.popStyling=function(){this.stack.pop()}}(t);if(e.strings.length){var n=e.strings[0];r&&(n=" "+n),s.addStyling(n)}for(var o=0,a=e.tags.length;o<a;o++){var l=e.tags[o],n=e.strings[o+1];l.match(O.open)?(i.set(l),s.addStyling(n,i.pair())):(i.pop(),s.popStyling(),s.addStyling(n))}}(t,s,r)};var w=[],A={'<span class="nocase">':{type:"nocase",opener:'<span class="nocase">',closer:"</span>",attr:null,outer:null,flipflop:null},'<span class="nodecor">':{type:"nodecor",opener:'<span class="nodecor">',closer:"</span>",attr:"@class",outer:"nodecor",flipflop:{nodecor:"nodecor"}},'<span style="font-variant:small-caps;">':{type:"tag",opener:'<span style="font-variant:small-caps;">',closer:"</span>",attr:"@font-variant",outer:"small-caps",flipflop:{"small-caps":"normal",normal:"small-caps"}},"<sc>":{type:"tag",opener:"<sc>",closer:"</sc>",attr:"@font-variant",outer:"small-caps",flipflop:{"small-caps":"normal",normal:"small-caps"}},"<i>":{type:"tag",opener:"<i>",closer:"</i>",attr:"@font-style",outer:"italic",flipflop:{italic:"normal",normal:"italic"}},"<b>":{type:"tag",opener:"<b>",closer:"</b>",attr:"@font-weight",outer:"bold",flipflop:{bold:"normal",normal:"bold"}},"<sup>":{type:"tag",opener:"<sup>",closer:"</sup>",attr:"@vertical-align",outer:"sup",flipflop:{sub:"sup",sup:"sup"}},"<sub>":{type:"tag",opener:"<sub>",closer:"</sub>",attr:"@vertical-align",outer:"sub",flipflop:{sup:"sub",sub:"sub"}},' "':{type:"quote",opener:' "',closer:'"',attr:"@quotes",outer:"true",flipflop:{"true":"inner",inner:"true","false":"true"}}," '":{type:"quote",opener:" '",closer:"'",attr:"@quotes",outer:"inner",flipflop:{"true":"inner",inner:"true","false":"true"}}};A['("']=A[' "'],A["('"]=A[" '"];var t=x.getTerm("open-quote"),e=x.getTerm("close-quote"),r=x.getTerm("open-inner-quote"),i=x.getTerm("close-inner-quote");t&&e&&-1===[' "'," '",'"',"'"].indexOf(t)&&(A[t]=JSON.parse(JSON.stringify(A[' "'])),A[t].opener=t,A[t].closer=e),r&&i&&-1===[' "'," '",'"',"'"].indexOf(r)&&(A[r]=JSON.parse(JSON.stringify(A[" '"])),A[r].opener=r,A[r].closer=i);(function(){for(var t={},e=Object.keys(A),r=0,i=e.length;r<i;r++){var s=e[r];"quote"===A[s].type&&(t[A[s].closer]=A[s])}})(),function(){for(var t={},e=Object.keys(A),r=0,i=e.length;r<i;r++){var s=e[r];if("nocase"!==A[s].type){var n=A[s].attr,o=A[s].outer,a=A[s].flipflop[A[s].outer];t[n+"/"+o]=A[s],t[n+"/"+a]=A[s]}}}();function E(t){A[t].outer="true",A[{" '":' "',' "':" '",'("':"('","('":'("'}[t]].outer="inner"}function n(t){for(var e=[],r=Object.keys(A),i=0,s=r.length;i<s;i++){var n=r[i];"quote"===A[t].type&&A[t]||e.push(n)}var o=A[t];return o.opener=new RegExp("^(?:"+e.map(function(t){return t.replace("(","\\(")}).join("|")+")"),o}var j=function(){for(var t={},e=Object.keys(A),r=0,i=e.length;r<i;r++){var s=e[r];t[s]=n(s)}return t}(),O=function(){var t=[],e=[],r={};for(var i in j)t.push(i),r[j[i].closer]=!0;for(var s=Object.keys(r),n=0,o=s.length;n<o;n++){var a=s[n];e.push(a)}var l=t.concat(e).map(function(t){return t.replace("(","\\(")}).join("|");return{matchAll:new RegExp("((?:"+l+"))","g"),splitAll:new RegExp("(?:"+l+")","g"),open:new RegExp("(^(?:"+t.map(function(t){return t.replace("(","\\(")}).join("|")+")$)"),close:new RegExp("(^(?:"+e.join("|")+")$)")}}();var S=function(l){this.set=function(t){for(var e=A[t].attr,r=null,i=u.length-1;-1<i;i--){var s=u[i];if(s[0]===e){r=s;break}}if(!r){var n=[x[x.tmp.area].opt.layout_decorations].concat(l.alldecor);t:for(var i=n.length-1;-1<i;i--){var o=n[i];if(o)for(var a=o.length-1;-1<a;a--){var s=o[a];if(s[0]===e){r=s;break t}}}}r=r?[e,A[t].flipflop[r[1]]]:[e,A[t].outer];u.push(r)},this.pair=function(){return u[u.length-1]},this.pop=function(){u.pop()};var u=[]};function k(t,e){if("'"===t){if(e&&e.match(/^[^\,\.\?\:\;\ ]/))return!0}else if(" '"===t&&e&&e.match(/^[\ ]/))return!0;return!1}},(e.exports=wt).Output.Formatters=new function(){this.passthrough=function(t,e){return e},this.lowercase=function(t,e){return r({quoteState:null,capitaliseWords:function(t){for(var e=t.split(" "),r=0,i=e.length;r<i;r++){var s=e[r];s&&(e[r]=s.toLowerCase())}return e.join(" ")},skipWordsRex:null,tagState:[],afterPunct:null,isFirst:null},e)},this.uppercase=function(t,e){return r({quoteState:null,capitaliseWords:function(t){for(var e=t.split(" "),r=0,i=e.length;r<i;r++){var s=e[r];s&&(e[r]=s.toUpperCase())}return e.join(" ")},skipWordsRex:null,tagState:[],afterPunct:null,isFirst:null},e)},this.sentence=function(t,e){var n={quoteState:[],capitaliseWords:function(t){for(var e=t.split(" "),r=0,i=e.length;r<i;r++){var s=e[r];s&&(n.isFirst?(e[r]=d(s),n.isFirst=!1):e[r]=s.toLowerCase())}return e.join(" ")},skipWordsRex:null,tagState:[],afterPunct:null,isFirst:!0};return r(n,e)},this.title=function(t,e){var l={quoteState:[],capitaliseWords:function(t,e,r){if(t.trim()){for(var i=t.split(/[ \u00A0]+/),s=f.split(t),i=s.strings,n=0,o=i.length;n<o;n++){var a=i[n];a&&(1<a.length&&!a.toLowerCase().match(l.skipWordsRex)?i[n]=d(i[n]):n===i.length-1&&"-"===r?i[n]=d(i[n]):l.isFirst?i[n]=d(i[n]):l.afterPunct&&(i[n]=d(i[n])),l.afterPunct=!1,l.isFirst=!1,l.lastWordPos={strings:e,words:n})}t=f.join(s)}return t},skipWordsRex:t.locale[t.opt.lang].opts["skip-words-regexp"],tagState:[],afterPunct:!1,isFirst:!0};return r(l,e)},this["capitalize-first"]=function(t,e){var n={quoteState:[],capitaliseWords:function(t){for(var e=t.split(" "),r=0,i=e.length;r<i;r++){var s=e[r];if(s&&n.isFirst){e[r]=d(s),n.isFirst=!1;break}}return e.join(" ")},skipWordsRex:null,tagState:[],afterPunct:null,isFirst:!0};return r(n,e)},this["capitalize-all"]=function(t,e){return r({quoteState:[],capitaliseWords:function(t){for(var e=t.split(" "),r=0,i=e.length;r<i;r++){var s=e[r];s&&(e[r]=d(s))}return e.join(" ")},skipWordsRex:null,tagState:[],afterPunct:null,isFirst:null},e)};var m=new wt.Doppeler('(?:\u2018|\u2019|\u201c|\u201d| "| \'|"|\'|[-\u2013\u2014/.,;?!:]|\\[|\\]|\\(|\\)|<span style="font-variant: small-caps;">|<span class="no(?:case|decor)">|</span>|</?(?:i|sc|b|sub|sup)>)',function(t){return t.replace(/(<span)\s+(class=\"no(?:case|decor)\")[^>]*(>)/g,"$1 $2$3").replace(/(<span)\s+(style=\"font-variant:)\s*(small-caps);?(\")[^>]*(>)/g,"$1 $2 $3;$4$5")}),f=new wt.Doppeler("(?:[ \xa0\u2000-\u200b\u205f\u3000]+)"),h={'<span style="font-variant: small-caps;">':"</span>",'<span class="nocase">':"</span>",'<span class="nodecor">':"</span>"};function d(t,e){var r=t.match(/(^\s*)((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))(.*)/);return!r||r[2].match(/^[\u0370-\u03FF]$/)&&!r[3]?t:r[1]+r[2].toUpperCase()+r[3]}function r(n,t){if(!t)return"";n.doppel=m.split(t);var o={' "':{opener:" '",closer:'"'}," '":{opener:' "',closer:"'"},"\u2018":{opener:"\u2018",closer:"\u2019"},"\u201c":{opener:"\u201c",closer:"\u201d"}};function e(t,e){var r,i,s=t.match(/(^(?:\u2018|\u2019|\u201C|\u201D|\"|\')|(?: \"| \')$)/);if(s)return r=s[1],i=e,-1<["\u201c","\u2018",' "'," '"].indexOf(r)?function(t,e){if(0===n.quoteState.length||t===n.quoteState[n.quoteState.length-1].opener)return n.quoteState.push({opener:o[t].opener,closer:o[t].closer,pos:e}),!1;var r=n.quoteState[n.quoteState.length-1].pos;return n.quoteState.pop(),n.quoteState.push({opener:o[t].opener,closer:o[t].closer,positions:e}),r}(r,i):function(t,e){if(!(0<n.quoteState.length&&t===n.quoteState[n.quoteState.length-1].closer))return e;n.quoteState.pop()}(r,i)}n.doppel.strings.length&&n.doppel.strings[0].trim()&&(n.doppel.strings[0]=n.capitaliseWords(n.doppel.strings[0],0,n.doppel.tags[0]));for(var r=0,i=n.doppel.tags.length;r<i;r++){var s=n.doppel.tags[r],a=n.doppel.strings[r+1];if(null!==n.tagState&&(h[s]?n.tagState.push(h[s]):n.tagState.length&&s===n.tagState[n.tagState.length-1]&&n.tagState.pop()),null!==n.afterPunct&&s.match(/[\!\?\:]$/)&&(n.afterPunct=!0),0===n.tagState.length?n.doppel.strings[r+1]=n.capitaliseWords(a,r+1,n.doppel,n.doppel.tags[r+1]):n.doppel.strings[r+1].trim()&&(n.lastWordPos=null),null!==n.quoteState)if((u=e(s,r))||0===u){var l=n.doppel.origStrings[u+1].slice(0,1);n.doppel.strings[u+1]=l+n.doppel.strings[u+1].slice(1),n.lastWordPos=null}n.isFirst&&a.trim()&&(n.isFirst=!1),n.afterPunct&&a.trim()&&(n.afterPunct=!1)}if(n.quoteState)for(r=0,i=n.quoteState.length;r<i;r++){var u;if(void 0!==(u=n.quoteState[r].pos)){l=n.doppel.origStrings[u+1].slice(0,1);n.doppel.strings[u+1]=l+n.doppel.strings[u+1].slice(1)}}if(n.lastWordPos){var c=f.split(n.doppel.strings[n.lastWordPos.strings]),p=d(c.strings[n.lastWordPos.words]);c.strings[n.lastWordPos.words]=p,n.doppel.strings[n.lastWordPos.strings]=f.join(c)}return m.join(n.doppel)}},(e.exports=wt).Output.Formats=function(){},wt.Output.Formats.prototype.html={text_escape:function(t){return t||(t=""),t.replace(/&/g,"&#38;").replace(/</g,"&#60;").replace(/>/g,"&#62;").replace(/\s\s/g,"\xa0 ").replace(wt.SUPERSCRIPTS_REGEXP,function(t){return"<sup>"+wt.SUPERSCRIPTS[t]+"</sup>"})},bibstart:'<div class="csl-bib-body">\n',bibend:"</div>","@font-style/italic":"<i>%%STRING%%</i>","@font-style/oblique":"<em>%%STRING%%</em>","@font-style/normal":'<span style="font-style:normal;">%%STRING%%</span>',"@font-variant/small-caps":'<span style="font-variant:small-caps;">%%STRING%%</span>',"@passthrough/true":wt.Output.Formatters.passthrough,"@font-variant/normal":'<span style="font-variant:normal;">%%STRING%%</span>',"@font-weight/bold":"<b>%%STRING%%</b>","@font-weight/normal":'<span style="font-weight:normal;">%%STRING%%</span>',"@font-weight/light":!1,"@text-decoration/none":'<span style="text-decoration:none;">%%STRING%%</span>',"@text-decoration/underline":'<span style="text-decoration:underline;">%%STRING%%</span>',"@vertical-align/sup":"<sup>%%STRING%%</sup>","@vertical-align/sub":"<sub>%%STRING%%</sub>","@vertical-align/baseline":'<span style="baseline">%%STRING%%</span>',"@strip-periods/true":wt.Output.Formatters.passthrough,"@strip-periods/false":wt.Output.Formatters.passthrough,"@quotes/true":function(t,e){return void 0===e?t.getTerm("open-quote"):t.getTerm("open-quote")+e+t.getTerm("close-quote")},"@quotes/inner":function(t,e){return void 0===e?"\u2019":t.getTerm("open-inner-quote")+e+t.getTerm("close-inner-quote")},"@quotes/false":!1,"@cite/entry":function(t,e){return t.sys.wrapCitationEntry(e,this.item_id,this.locator_txt,this.suffix_txt)},"@bibliography/entry":function(t,e){var r="";return t.sys.embedBibliographyEntry&&(r=t.sys.embedBibliographyEntry(this.item_id)+"\n"),' <div class="csl-entry">'+e+"</div>\n"+r},"@display/block":function(t,e){return'\n\n <div class="csl-block">'+e+"</div>\n"},"@display/left-margin":function(t,e){return'\n <div class="csl-left-margin">'+e+"</div>"},"@display/right-inline":function(t,e){return'<div class="csl-right-inline">'+e+"</div>\n "},"@display/indent":function(t,e){return'<div class="csl-indent">'+e+"</div>\n "},"@showid/true":function(t,e,r){if(t.tmp.just_looking||t.tmp.suppress_decorations)return e;if(r)return'<span class="'+t.opt.nodenames[r]+'" cslid="'+r+'">'+e+"</span>";if(this.params&&"string"==typeof e){var i="";if(e){var s=e.match(wt.VARIABLE_WRAPPER_PREPUNCT_REX);i=s[1],e=s[2]}var n="";return e&&-1<wt.SWAPPING_PUNCTUATION.indexOf(e.slice(-1))&&(n=e.slice(-1),e=e.slice(0,-1)),t.sys.variableWrapper(this.params,i,e,n)}return e},"@URL/true":function(t,e){return'<a href="'+e+'">'+e+"</a>"},"@DOI/true":function(t,e){var r=e;return e.match(/^https?:\/\//)||(r="https://doi.org/"+e),'<a href="'+r+'">'+e+"</a>"}},wt.Output.Formats.prototype.text={text_escape:function(t){return t||(t=""),t},bibstart:"",bibend:"","@font-style/italic":!1,"@font-style/oblique":!1,"@font-style/normal":!1,"@font-variant/small-caps":!1,"@passthrough/true":wt.Output.Formatters.passthrough,"@font-variant/normal":!1,"@font-weight/bold":!1,"@font-weight/normal":!1,"@font-weight/light":!1,"@text-decoration/none":!1,"@text-decoration/underline":!1,"@vertical-align/baseline":!1,"@vertical-align/sup":!1,"@vertical-align/sub":!1,"@strip-periods/true":wt.Output.Formatters.passthrough,"@strip-periods/false":wt.Output.Formatters.passthrough,"@quotes/true":function(t,e){return void 0===e?t.getTerm("open-quote"):t.getTerm("open-quote")+e+t.getTerm("close-quote")},"@quotes/inner":function(t,e){return void 0===e?"\u2019":t.getTerm("open-inner-quote")+e+t.getTerm("close-inner-quote")},"@quotes/false":!1,"@cite/entry":function(t,e){return t.sys.wrapCitationEntry(e,this.item_id,this.locator_txt,this.suffix_txt)},"@bibliography/entry":function(t,e){return e+"\n"},"@display/block":function(t,e){return"\n"+e},"@display/left-margin":function(t,e){return e},"@display/right-inline":function(t,e){return e},"@display/indent":function(t,e){return"\n "+e},"@showid/true":function(t,e,r){return e},"@URL/true":function(t,e){return e},"@DOI/true":function(t,e){return e}},wt.Output.Formats.prototype.rtf={text_escape:function(t){return t||(t=""),t.replace(/([\\{}])/g,"\\$1").replace(wt.SUPERSCRIPTS_REGEXP,function(t){return"\\super "+wt.SUPERSCRIPTS[t]+"\\nosupersub{}"}).replace(/[\u007F-\uFFFF]/g,function(t){return"\\uc0\\u"+t.charCodeAt(0).toString()+"{}"}).split("\t").join("\\tab{}")},"@passthrough/true":wt.Output.Formatters.passthrough,"@font-style/italic":"{\\i{}%%STRING%%}","@font-style/normal":"{\\i0{}%%STRING%%}","@font-style/oblique":"{\\i{}%%STRING%%}","@font-variant/small-caps":"{\\scaps %%STRING%%}","@font-variant/normal":"{\\scaps0{}%%STRING%%}","@font-weight/bold":"{\\b{}%%STRING%%}","@font-weight/normal":"{\\b0{}%%STRING%%}","@font-weight/light":!1,"@text-decoration/none":!1,"@text-decoration/underline":"{\\ul{}%%STRING%%}","@vertical-align/baseline":!1,"@vertical-align/sup":"\\super %%STRING%%\\nosupersub{}","@vertical-align/sub":"\\sub %%STRING%%\\nosupersub{}","@strip-periods/true":wt.Output.Formatters.passthrough,"@strip-periods/false":wt.Output.Formatters.passthrough,"@quotes/true":function(t,e){return void 0===e?wt.Output.Formats.rtf.text_escape(t.getTerm("open-quote")):wt.Output.Formats.rtf.text_escape(t.getTerm("open-quote"))+e+wt.Output.Formats.rtf.text_escape(t.getTerm("close-quote"))},"@quotes/inner":function(t,e){return void 0===e?wt.Output.Formats.rtf.text_escape("\u2019"):wt.Output.Formats.rtf.text_escape(t.getTerm("open-inner-quote"))+e+wt.Output.Formats.rtf.text_escape(t.getTerm("close-inner-quote"))},"@quotes/false":!1,bibstart:"{\\rtf ",bibend:"}","@display/block":"\\line{}%%STRING%%\\line\r\n","@cite/entry":function(t,e){return t.sys.wrapCitationEntry(e,this.item_id,this.locator_txt,this.suffix_txt)},"@bibliography/entry":function(t,e){return e},"@display/left-margin":function(t,e){return e+"\\tab "},"@display/right-inline":function(t,e){return e+"\r\n"},"@display/indent":function(t,e){return"\n\\tab "+e+"\\line\r\n"},"@showid/true":function(t,e,r){if(t.tmp.just_looking||t.tmp.suppress_decorations)return e;var i="";if(e){var s=e.match(wt.VARIABLE_WRAPPER_PREPUNCT_REX);i=s[1],e=s[2]}var n="";return e&&-1<wt.SWAPPING_PUNCTUATION.indexOf(e.slice(-1))&&(n=e.slice(-1),e=e.slice(0,-1)),t.sys.variableWrapper(this.params,i,e,n)},"@URL/true":function(t,e){return e},"@DOI/true":function(t,e){return e}},wt.Output.Formats=new wt.Output.Formats,(e.exports=wt).Registry=function(t){this.debug=!1,this.state=t,this.registry={},this.reflist=[],this.refhash={},this.namereg=new wt.Registry.NameReg(t),this.citationreg=new wt.Registry.CitationReg(t),this.authorstrings={},this.mylist=[],this.myhash={},this.deletes=[],this.inserts=[],this.uncited={},this.refreshes={},this.akeys={},this.oldseq={},this.return_data={},this.ambigcites={},this.ambigresets={},this.sorter=new wt.Registry.Comparifier(t,"bibliography_sort"),this.getSortedIds=function(){for(var t=[],e=0,r=this.reflist.length;e<r;e+=1)t.push(""+this.reflist[e].id);return t},this.getSortedRegistryItems=function(){for(var t=[],e=0,r=this.reflist.length;e<r;e+=1)t.push(this.reflist[e]);return t}},wt.Registry.prototype.init=function(t,e){if(this.oldseq={},e){this.uncited={};for(var r=0,i=t.length;r<i;r+=1)this.myhash[t[r]]||this.mylist.push(""+t[r]),this.uncited[t[r]]=!0,this.myhash[t[r]]=!0}else{for(var s in this.uncited)t.push(s);var n={};for(r=t.length-1;-1<r;r+=-1)n[t[r]]?t=t.slice(0,r).concat(t.slice(r+1)):n[t[r]]=!0;this.mylist=[];for(r=0,i=t.length;r<i;r+=1)this.mylist.push(""+t[r]);this.myhash=n}this.refreshes={},this.touched={},this.ambigsTouched={},this.ambigresets={}},wt.Registry.prototype.dopurge=function(t){for(var e=this.mylist.length-1;-1<e;e+=-1)this.citationreg.citationsByItemId&&(this.citationreg.citationsByItemId[this.mylist[e]]||t[this.mylist[e]]||(delete this.myhash[this.mylist[e]],this.mylist=this.mylist.slice(0,e).concat(this.mylist.slice(e+1))));this.dodeletes(this.myhash)},wt.Registry.prototype.dodeletes=function(t){var e,r,i,s,n,o,a;for(var l in"string"==typeof t&&((t={})[t]=!0),this.registry)if(!t[l]){if(this.uncited[l])continue;for(n in this.namereg.delitems(l))this.refreshes[n]=!0;for(e=this.registry[l].ambig,-1<(o=this.ambigcites[e].indexOf(l))&&(s=this.ambigcites[e].slice(),this.ambigcites[e]=s.slice(0,o).concat(s.slice(o+1,s.length)),this.ambigresets[e]=this.ambigcites[e].length),i=this.ambigcites[e].length,r=0;r<i;r+=1)a=""+this.ambigcites[e][r],this.refreshes[a]=!0;if(this.registry[l].siblings)if(1==this.registry[l].siblings.length){var u=this.registry[l].siblings[0];this.registry[u].master=!0,this.registry[u].siblings.pop(),this.registry[u].parallel=!1}else if(1<this.registry[l].siblings.length){var c=[l];if(this.registry[l].master){var p=this.registry[l].siblings[0],m=this.registry[p];m.master=!0,m.parallel=!1,c.push(p);for(var f=0,h=this.registry[l].siblings.length;f<h;f+=1)this.registry[this.registry[l].siblings[f]].parallel=p}var d=[];for(f=this.registry[l].siblings.length-1;-1<f;f+=-1){var g=this.registry[l].siblings.pop();-1===c.indexOf(g)&&d.push(g)}for(f=d.length-1;-1<f;f+=-1)this.registry[l].siblings.push(d[f])}delete this.registry[l],delete this.refhash[l],this.return_data.bibchange=!0}},wt.Registry.prototype.doinserts=function(t){var e,r,i,s,n;"string"==typeof t&&(t=[t]);for(var o=0,a=t.length;o<a;o+=1)e=t[o],this.registry[e]||(r=this.state.retrieveItem(e),i=wt.getAmbiguousCite.call(this.state,r),this.ambigsTouched[i]=!0,r.legislation_id||(this.akeys[i]=!0),s={id:""+e,seq:0,offset:0,sortkeys:!1,ambig:!1,rendered:!1,disambig:!1,ref:r},this.registry[e]=s,this.citationreg.citationsByItemId&&this.citationreg.citationsByItemId[e]&&(this.registry[e]["first-reference-note-number"]=this.citationreg.citationsByItemId[e][0].properties.noteIndex),n=wt.getAmbigConfig.call(this.state),this.registerAmbigToken(i,e,n),this.touched[e]=!0,this.return_data.bibchange=!0)},wt.Registry.prototype.rebuildlist=function(){var t,e,r;for(this.reflist=[],this.state.opt.citation_number_sort_direction===wt.DESCENDING&&this.state.opt.citation_number_sort_used,t=this.mylist.length,e=0;e<t;e+=1)r=this.mylist[e],this.reflist.push(this.registry[r]),this.oldseq[r]=this.registry[r].seq,this.registry[r].seq=e+1;this.state.opt.citation_number_sort_direction===wt.DESCENDING&&this.state.opt.citation_number_sort_used},wt.Registry.prototype.dorefreshes=function(){var t;for(var e in this.refreshes)if(t=this.registry[e]){t.sortkeys=undefined,n=this.state.retrieveItem(e);var r=t.ambig;for(var i in void 0===r&&(this.state.tmp.disambig_settings=!1,r=wt.getAmbiguousCite.call(this.state,n),o=wt.getAmbigConfig.call(this.state),this.registerAmbigToken(r,e,o)),this.ambigresets)if(1===this.ambigresets[i]){var s=this.ambigcites[r][0],n=this.state.retrieveItem(s);this.registry[s].disambig=new wt.AmbigConfig,this.state.tmp.disambig_settings=!1;r=wt.getAmbiguousCite.call(this.state,n);var o=wt.getAmbigConfig.call(this.state);this.registerAmbigToken(r,s,o)}this.state.tmp.taintedItemIDs[e]=!0,this.ambigsTouched[r]=!0,n.legislation_id||(this.akeys[r]=!0),this.touched[e]=!0}},wt.Registry.prototype.setdisambigs=function(){var t;for(t in this.leftovers=[],this.ambigsTouched)this.state.disambiguate.run(t);this.ambigsTouched={},this.akeys={}},wt.Registry.prototype.renumber=function(){var t,e,r;for(this.state.opt.citation_number_sort_direction===wt.DESCENDING&&this.state.opt.citation_number_sort_used,t=this.reflist.length,e=0;e<t;e+=1)(r=this.reflist[e]).seq=e+1,this.state.opt.update_mode===wt.NUMERIC&&r.seq!=this.oldseq[r.id]&&(this.state.tmp.taintedItemIDs[r.id]=!0),this.state.opt.bib_mode===wt.NUMERIC&&r.seq!=this.oldseq[r.id]&&(this.return_data.bibchange=!0);this.state.opt.citation_number_sort_direction===wt.DESCENDING&&this.state.opt.citation_number_sort_used&&this.reflist.reverse()},wt.Registry.prototype.setsortkeys=function(){for(var t=0,e=this.mylist.length;t<e;t+=1){var r=this.mylist[t];(this.touched[r]||this.state.tmp.taintedItemIDs[r]||!this.registry[r].sortkeys)&&(this.registry[r].sortkeys=wt.getSortKeys.call(this.state,this.state.retrieveItem(r),"bibliography_sort"))}},wt.Registry.prototype.sorttokens=function(){this.reflist.sort(this.sorter.compareKeys)},wt.Registry.Comparifier=function(t,e){var i,s,n,r,o=wt.getSortCompare(t.opt["default-locale-sort"]);i=t[e].opt.sort_directions,this.compareKeys=function(t,e){for(s=t.sortkeys?t.sortkeys.length:0,n=0;n<s;n+=1){var r=0;if(0<(r=t.sortkeys[n]===e.sortkeys[n]?0:"undefined"==typeof t.sortkeys[n]?i[n][1]:"undefined"==typeof e.sortkeys[n]?i[n][0]:o(t.sortkeys[n],e.sortkeys[n])))return i[n][1];if(r<0)return i[n][0]}return t.seq>e.seq?1:t.seq<e.seq?-1:0},r=this.compareKeys,this.compareCompositeKeys=function(t,e){return r(t[1],e[1])}},wt.Registry.prototype.compareRegistryTokens=function(t,e){return t.seq>e.seq?1:t.seq<e.seq?-1:0},wt.Registry.prototype.registerAmbigToken=function(t,e,r){if(this.registry[e]&&this.registry[e].disambig&&this.registry[e].disambig.names)for(var i=0,s=r.names.length;i<s;i+=1){if(r.names[i]!==this.registry[e].disambig.names[i])this.state.tmp.taintedItemIDs[e]=!0;else if(r.givens[i])for(var n=0,o=r.givens[i].length;n<o;n+=1){r.givens[i][n]!==this.registry[e].disambig.givens[i][n]&&(this.state.tmp.taintedItemIDs[e]=!0)}}this.ambigcites[t]||(this.ambigcites[t]=[]),-1===this.ambigcites[t].indexOf(""+e)&&this.ambigcites[t].push(""+e),this.registry[e].ambig=t;this.registry[e].disambig=wt.cloneAmbigConfig(r)},wt.getSortKeys=function(t,e){var r,i,s,n,o,a;for(r=this.tmp.area,i=this.tmp.root,s=this.tmp.extension,n=wt.Util.Sort.strip_prepositions,this.tmp.area=e,this.tmp.root=-1<e.indexOf("_")?e.slice(0,-5):e,this.tmp.extension="_sort",this.tmp.disambig_override=!0,this.tmp.disambig_request=!1,this.parallel.use_parallels=(!0===this.parallel.use_parallels||null===this.parallel.use_parallels)&&null,this.tmp.suppress_decorations=!0,wt.getCite.call(this,t),this.tmp.suppress_decorations=!1,this.parallel.use_parallels=null===this.parallel.use_parallels,this.tmp.disambig_override=!1,o=this[e].keys.length,a=0;a<o;a+=1)this[e].keys[a]=n(this[e].keys[a]);return this.tmp.area=r,this.tmp.root=i,this.tmp.extension=s,this[e].keys},(e.exports=wt).Registry.NameReg=function(u){var c,p,m,l,f,h,s,d,t,e,r,g;this.state=u,this.namereg={},this.nameind={},this.nameindpkeys={},this.itemkeyreg={},s=function(t){return t||(t=""),t.replace(/\./g," ").replace(/\s+/g," ").replace(/\s+$/,"")},d=function(t,e,r){c=s(r.family);var i=(m=s(r.given)).match(/[,\!]* ([^,]+)$/);i&&i[1]===i[1].toLowerCase()&&(m=m.replace(/[,\!]* [^,]+$/,"")),p=wt.Util.Names.initializeWith(t,m,"%s"),"by-cite"===t.citation.opt["givenname-disambiguation-rule"]&&(c=""+e+c)},t=function(t,e,r,i,s,n){var o;if("bibliography"===u.tmp.area.slice(0,12)&&!s)return"string"==typeof n?1:2;e=u.nameOutput.getName(e,"locale-translit",!0).name,d(this.state,""+t,e),o=2,l=u.opt["disambiguate-add-givenname"];var a=f=u.citation.opt["givenname-disambiguation-rule"];return"by-cite"===f&&(f="all-names"),"short"===s?o=0:"string"==typeof n&&(o=1),"undefined"==typeof this.namereg[c]||"undefined"==typeof this.namereg[c].ikey[p]?o:"by-cite"===a&&o<=i?i:l?"string"==typeof f&&"primary-name"===f.slice(0,12)&&0<r?o:(f&&"all-names"!==f&&"primary-name"!==f?"all-names-with-initials"!==f&&"primary-name-with-initials"!==f||(o=1<this.namereg[c].count?1:0):(1<this.namereg[c].count&&(o=1),(this.namereg[c].ikey&&1<this.namereg[c].ikey[p].count||1<this.namereg[c].count&&"string"!=typeof n)&&(o=2)),u.registry.registry[t]?o:"short"==s?0:"string"==typeof n?1:void 0):o},e=function(t){var e,r,i,s,n;"string"!=typeof t&&"number"!=typeof t||(t=[""+t]);for(r=t.length,e=0;e<r;e+=1)if(s=""+t[e],this.nameind[s]){for(n in this.nameind[s])if(this.nameind[s].hasOwnProperty(n)){var o=n.split("::");if(c=o[0],p=o[1],m=o[2],"undefined"==typeof this.namereg[c])continue;if(h=this.namereg[c].items,m&&this.namereg[c].ikey[p]&&this.namereg[c].ikey[p].skey[m]&&(-1<(i=(g=this.namereg[c].ikey[p].skey[m].items).indexOf(""+s))&&(this.namereg[c].ikey[p].skey[m].items=g.slice(0,i).concat(g.slice([i+1]))),0===this.namereg[c].ikey[p].skey[m].items.length&&(delete this.namereg[c].ikey[p].skey[m],this.namereg[c].ikey[p].count+=-1,this.namereg[c].ikey[p].count<2)))for(var a=0,l=this.namereg[c].ikey[p].items.length;a<l;a+=1)u.tmp.taintedItemIDs[this.namereg[c].ikey[p].items[a]]=!0;if(p&&this.namereg[c].ikey[p]&&(-1<(i=this.namereg[c].ikey[p].items.indexOf(""+s))&&(h=this.namereg[c].ikey[p].items.slice(),this.namereg[c].ikey[p].items=h.slice(0,i).concat(h.slice([i+1]))),0===this.namereg[c].ikey[p].items.length&&(delete this.namereg[c].ikey[p],this.namereg[c].count+=-1,this.namereg[c].count<2)))for(a=0,l=this.namereg[c].items.length;a<l;a+=1)u.tmp.taintedItemIDs[this.namereg[c].items[a]]=!0;c&&(-1<(i=this.namereg[c].items.indexOf(""+s))&&(h=this.namereg[c].items.slice(),this.namereg[c].items=h.slice(0,i).concat(h.slice([i+1],h.length))),this.namereg[c].items.length<2&&delete this.namereg[c]),delete this.nameind[s][n]}delete this.nameind[s],delete this.nameindpkeys[s]}return{}},r=function(t,e,r){if(e=u.nameOutput.getName(e,"locale-translit",!0).name,!u.citation.opt["givenname-disambiguation-rule"]||"primary-"!==u.citation.opt["givenname-disambiguation-rule"].slice(0,8)||0===r){if(d(this.state,""+t,e),c&&("undefined"==typeof this.namereg[c]?(this.namereg[c]={},this.namereg[c].count=0,this.namereg[c].ikey={},this.namereg[c].items=[t]):-1===this.namereg[c].items.indexOf(t)&&this.namereg[c].items.push(t)),c&&p)if("undefined"==typeof this.namereg[c].ikey[p]){if(this.namereg[c].ikey[p]={},this.namereg[c].ikey[p].count=0,this.namereg[c].ikey[p].skey={},this.namereg[c].ikey[p].items=[t],this.namereg[c].count+=1,2===this.namereg[c].count)for(var i=0,s=this.namereg[c].items.length;i<s;i+=1)u.tmp.taintedItemIDs[this.namereg[c].items[i]]=!0}else-1===this.namereg[c].ikey[p].items.indexOf(t)&&this.namereg[c].ikey[p].items.push(t);if(c&&p&&m)if("undefined"==typeof this.namereg[c].ikey[p].skey[m]){if(this.namereg[c].ikey[p].skey[m]={},this.namereg[c].ikey[p].skey[m].items=[t],this.namereg[c].ikey[p].count+=1,2===this.namereg[c].ikey[p].count)for(i=0,s=this.namereg[c].ikey[p].items.length;i<s;i+=1)u.tmp.taintedItemIDs[this.namereg[c].ikey[p].items[i]]=!0}else-1===this.namereg[c].ikey[p].skey[m].items.indexOf(t)&&this.namereg[c].ikey[p].skey[m].items.push(t);"undefined"==typeof this.nameind[t]&&(this.nameind[t]={},this.nameindpkeys[t]={}),c&&(this.nameind[t][c+"::"+p+"::"+m]=!0,this.nameindpkeys[t][c]=this.namereg[c])}},this.addname=r,this.delitems=e,this.evalname=t},(e.exports=wt).Registry.CitationReg=function(t){this.citationById={},this.citationByIndex=[]},(e.exports=wt).Disambiguation=function(t){this.state=t,this.sys=this.state.sys,this.registry=t.registry.registry,this.ambigcites=t.registry.ambigcites,this.configModes(),this.debug=!1},wt.Disambiguation.prototype.run=function(t){this.modes.length&&(this.akey=t,this.initVars(t)&&this.runDisambig())},wt.Disambiguation.prototype.runDisambig=function(){var t;for(this.initGivens=!0;this.lists.length;){for(this.gnameset=0,this.gname=0,this.clashes=[1,0];this.lists[0][1].length;){this.listpos=0,this.base||(this.base=this.lists[0][0]);t=this.incrementDisambig(),this.scanItems(this.lists[0]),this.evalScan(t)}this.lists=this.lists.slice(1)}},wt.Disambiguation.prototype.scanItems=function(t){var e;this.Item=t[1][0],this.ItemCite=wt.getAmbiguousCite.call(this.state,this.Item,this.base,!0),this.scanlist=t[1],this.partners=[],this.partners.push(this.Item),this.nonpartners=[];for(var r=0,i=1,s=t[1].length;i<s;i+=1){e=t[1][i];var n=wt.getAmbiguousCite.call(this.state,e,this.base,!0);this.ItemCite===n?(r+=1,this.partners.push(e)):this.nonpartners.push(e)}this.clashes[0]=this.clashes[1],this.clashes[1]=r},wt.Disambiguation.prototype.evalScan=function(t){this[this.modes[this.modeindex]](t),t&&(this.modeindex<this.modes.length-1?this.modeindex+=1:this.lists[this.listpos+1]=[this.base,[]])},wt.Disambiguation.prototype.disNames=function(t){if(0===this.clashes[1]&&1===this.nonpartners.length)this.captureStepToBase(),this.state.registry.registerAmbigToken(this.akey,""+this.nonpartners[0].id,this.betterbase),this.state.registry.registerAmbigToken(this.akey,""+this.partners[0].id,this.betterbase),this.lists[this.listpos]=[this.betterbase,[]];else if(0===this.clashes[1])this.captureStepToBase(),this.state.registry.registerAmbigToken(this.akey,""+this.partners[0].id,this.betterbase),this.lists[this.listpos]=[this.betterbase,this.nonpartners],this.nonpartners.length&&(this.initGivens=!0);else if(1===this.nonpartners.length)this.captureStepToBase(),this.state.registry.registerAmbigToken(this.akey,""+this.nonpartners[0].id,this.betterbase),this.lists[this.listpos]=[this.betterbase,this.partners];else if(this.clashes[1]<this.clashes[0])this.captureStepToBase(),this.lists[this.listpos]=[this.betterbase,this.partners],this.lists.push([this.betterbase,this.nonpartners]);else if(t&&(this.lists[this.listpos]=[this.betterbase,this.nonpartners],this.lists.push([this.betterbase,this.partners]),this.modeindex===this.modes.length-1)){for(var e=0,r=this.partners.length;e<r;e+=1)this.state.registry.registerAmbigToken(this.akey,""+this.partners[e].id,this.betterbase);this.lists[this.listpos]=[this.betterbase,[]]}},wt.Disambiguation.prototype.disExtraText=function(){var t=!1;if(0===this.clashes[1]&&this.nonpartners.length<2&&(t=!0),t||this.base.disambiguate&&this.state.tmp.disambiguate_count===this.state.tmp.disambiguate_maxMax){if(t||this.state.tmp.disambiguate_count===this.state.tmp.disambiguate_maxMax)if(t||this.modeindex===this.modes.length-1){var e=this.lists[this.listpos][0];for(r=0,i=this.lists[this.listpos][1].length;r<i;r+=1)this.state.tmp.taintedItemIDs[this.lists[this.listpos][1][r].id]=!0,this.state.registry.registerAmbigToken(this.akey,""+this.lists[this.listpos][1][r].id,e);this.lists[this.listpos]=[this.betterbase,[]]}else{this.modeindex=this.modes.length-1,(e=this.lists[this.listpos][0]).disambiguate=!0;for(r=0,i=this.lists[this.listpos][1].length;r<i;r+=1)this.state.tmp.taintedItemIDs[this.lists[this.listpos][1][r].id]=!0,this.state.registry.registerAmbigToken(this.akey,""+this.lists[this.listpos][1][r].id,e)}}else if(this.modeindex=0,this.base.disambiguate=this.state.tmp.disambiguate_count,this.betterbase.disambiguate=this.state.tmp.disambiguate_count,this.base.disambiguate)this.disNames();else{this.initGivens=!0,this.base.disambiguate=1;for(var r=0,i=this.lists[this.listpos][1].length;r<i;r+=1)this.state.tmp.taintedItemIDs[this.lists[this.listpos][1][r].id]=!0}},wt.Disambiguation.prototype.disYears=function(){var t;t=[];var e=this.lists[this.listpos][0];if(this.clashes[1])for(var r=0,i=this.state.registry.mylist.length;r<i;r+=1)for(var s=this.state.registry.mylist[r],n=0,o=this.lists[this.listpos][1].length;n<o;n+=1){var a;if((a=this.lists[this.listpos][1][n]).id==s){t.push(this.registry[a.id]);break}}t.sort(this.state.registry.sorter.compareKeys);for(var l=0,u=t.length;l<u;l+=1){e.year_suffix=""+l;var c=this.state.registry.registry[t[l].id].disambig;this.state.registry.registerAmbigToken(this.akey,""+t[l].id,e),wt.ambigConfigDiff(c,e)&&(this.state.tmp.taintedItemIDs[t[l].id]=!0)}this.lists[this.listpos]=[this.betterbase,[]]},wt.Disambiguation.prototype.incrementDisambig=function(){if(this.initGivens)return this.initGivens=!1;var t=!1,e=!0;if("disNames"===this.modes[this.modeindex]){e=!1,"number"!=typeof this.givensMax&&(e=!0);var r=!1;if("number"!=typeof this.namesMax&&(r=!0),"number"==typeof this.givensMax&&(this.base.givens.length&&this.base.givens[this.gnameset][this.gname]<this.givensMax?this.base.givens[this.gnameset][this.gname]+=1:e=!0),"number"==typeof this.namesMax&&e&&(this.state.opt["disambiguate-add-names"]?(r=!1,this.gname<this.namesMax?(this.base.names[this.gnameset]+=1,this.gname+=1):r=!0):r=!0),"number"==typeof this.namesetsMax&&r)if(this.gnameset<this.namesetsMax)this.gnameset+=1,this.base.names[this.gnameset]=1,this.gname=0;else;"number"==typeof this.namesetsMax&&-1!==this.namesetsMax&&this.gnameset!==this.namesetsMax||this.state.opt["disambiguate-add-names"]&&"number"==typeof this.namesMax&&this.gname!==this.namesMax||"number"==typeof this.givensMax&&"undefined"!=typeof this.base.givens[this.gnameset]&&"undefined"!=typeof this.base.givens[this.gnameset][this.gname]&&this.base.givens[this.gnameset][this.gname]!==this.givensMax||(t=!0)}else"disExtraText"===this.modes[this.modeindex]&&(this.base.disambiguate+=1,this.betterbase.disambiguate+=1);return t},wt.Disambiguation.prototype.initVars=function(t){var e,r,i;if(this.lists=[],this.base=!1,this.betterbase=!1,this.akey=t,this.maxNamesByItemId={},r=[],!(e=this.ambigcites[t])||!e.length)return!1;var s=this.state.retrieveItem(""+e[0]);if(this.getCiteData(s),this.base=wt.getAmbigConfig.call(this.state),e&&1<e.length){r.push([this.maxNamesByItemId[s.id],s]);for(var n=1,o=e.length;n<o;n+=1)s=this.state.retrieveItem(""+e[n]),this.getCiteData(s,this.base),r.push([this.maxNamesByItemId[s.id],s]);r.sort(function(t,e){return t[0]>e[0]?1:t[0]<e[0]?-1:t[1].id>e[1].id?1:t[1].id<e[1].id?-1:0}),i=[];for(var n=0,o=r.length;n<o;n+=1)i.push(r[n][1]);this.lists.push([this.base,i]),this.Item=this.lists[0][1][0]}else this.Item=this.state.retrieveItem(""+e[0]);return this.modeindex=0,this.state.citation.opt["disambiguate-add-names"],this.namesMax=this.maxNamesByItemId[this.Item.id][0],this.padBase(this.base),this.padBase(this.betterbase),this.base.year_suffix=!1,this.base.disambiguate=!1,this.betterbase.year_suffix=!1,this.betterbase.disambiguate=!1,"by-cite"===this.state.citation.opt["givenname-disambiguation-rule"]&&this.state.opt["disambiguate-add-givenname"]&&(this.givensMax=2),!0},wt.Disambiguation.prototype.padBase=function(t){for(var e=0,r=t.names.length;e<r;e+=1){t.givens[e]||(t.givens[e]=[]);for(var i=0,s=t.names[e];i<s;i+=1)t.givens[e][i]||(t.givens[e][i]=0)}},wt.Disambiguation.prototype.configModes=function(){var t,e;this.modes=[],t=this.state.opt["disambiguate-add-givenname"],e=this.state.citation.opt["givenname-disambiguation-rule"],(this.state.opt["disambiguate-add-names"]||t&&"by-cite"===e)&&this.modes.push("disNames"),this.state.opt.has_disambiguate&&this.modes.push("disExtraText"),this.state.opt["disambiguate-add-year-suffix"]&&this.modes.push("disYears")},wt.Disambiguation.prototype.getCiteData=function(t,e){if(!this.maxNamesByItemId[t.id]){wt.getAmbiguousCite.call(this.state,t,e),e=wt.getAmbigConfig.call(this.state),this.maxNamesByItemId[t.id]=wt.getMaxVals.call(this.state),this.state.registry.registry[t.id].disambig.givens=this.state.tmp.disambig_settings.givens.slice();for(var r=0,i=this.state.registry.registry[t.id].disambig.givens.length;r<i;r+=1)this.state.registry.registry[t.id].disambig.givens[r]=this.state.tmp.disambig_settings.givens[r].slice();this.namesetsMax=this.state.registry.registry[t.id].disambig.names.length-1,this.base||(this.base=e,this.betterbase=wt.cloneAmbigConfig(e)),e.names.length<this.base.names.length&&(this.base=e);for(r=0,i=e.names.length;r<i;r+=1)e.names[r]>this.base.names[r]&&(this.base.givens[r]=e.givens[r].slice(),this.base.names[r]=e.names[r],this.betterbase.names=this.base.names.slice(),this.betterbase.givens=this.base.givens.slice(),this.padBase(this.base),this.padBase(this.betterbase));this.betterbase.givens=this.base.givens.slice();for(var s=0,n=this.base.givens.length;s<n;s+=1)this.betterbase.givens[s]=this.base.givens[s].slice()}},wt.Disambiguation.prototype.captureStepToBase=function(){"by-cite"===this.state.citation.opt["givenname-disambiguation-rule"]&&this.base.givens&&this.base.givens.length&&"undefined"!=typeof this.base.givens[this.gnameset][this.gname]&&(this.betterbase.givens[this.gnameset][this.gname]=this.base.givens[this.gnameset][this.gname]),this.betterbase.names[this.gnameset]=this.base.names[this.gnameset]},(e.exports=wt).Engine.prototype.getJurisdictionList=function(t){for(var e=[],r=t.split(":"),i=r.length;0<i;i--)e.push(r.slice(0,i).join(":"));return-1===e.indexOf("us")&&e.push("us"),e},wt.Engine.prototype.retrieveAllStyleModules=function(t){for(var e={},r=this.locale[this.opt.lang].opts["jurisdiction-preference"],i=(r=[""].concat(r=r||[])).length-1;-1<i;i--)for(var s=r[i],n=0,o=t.length;n<o;n++){var a=t[n];if(!this.opt.jurisdictions_seen[a]){var l=this.sys.retrieveStyleModule(a,s);(!l&&!s||l)&&(this.opt.jurisdictions_seen[a]=!0),l&&(e[a]=l)}}return e},(e.exports=wt).ParticleList=[["'s",s=[[null,[0,1]]]],["'s-",s],["'t",s],["a",s],["aan 't",n=[[null,[0,2]]]],["aan de",n],["aan den",n],["aan der",n],["aan het",n],["aan t",n],["aan",s],["ad-",a=[[null,[0,1]],[[0,1],null]]],["adh-",a],["af",a],["al",a],["al-",a],["am de",n],["am",s],["an-",a],["ar-",a],["as-",a],["ash-",a],["at-",a],["ath-",a],["auf dem",c=[[[0,2],null],[null,[0,2]]]],["auf den",c],["auf der",c],["auf ter",n],["auf",u=[[[0,1],null],[null,[0,1]]]],["aus 'm",c],["aus dem",c],["aus den",c],["aus der",c],["aus m",c],["aus",u],["aus'm",c],["az-",a],["a\u0161-",a],["a\u1e0d-",a],["a\u1e0f-",a],["a\u1e63-",a],["a\u1e6d-",a],["a\u1e6f-",a],["a\u1e93-",a],["ben",s],["bij 't",n],["bij de",n],["bij den",n],["bij het",n],["bij t",n],["bij",s],["bin",s],["boven d",n],["boven d'",n],["d",s],["d'",a],["da",a],["dal",s],["dal'",s],["dall'",s],["dalla",s],["das",a],["de die le",o=[[null,[0,3]]]],["de die",n],["de l",n],["de l'",n],["de la",p=[[null,[0,2]],[[0,1],[1,2]]]],["de las",p],["de le",n],["de li",l=[[null,[0,2]],[[0,2],null]]],["de van der",o],["de",a],["de'",a],["deca",s],["degli",a],["dei",a],["del",a],["dela",i=[[[0,1],null]]],["dell'",a],["della",a],["delle",a],["dello",a],["den",a],["der",a],["des",a],["di",a],["die le",n],["do",s],["don",s],["dos",a],["du",a],["ed-",a],["edh-",a],["el",a],["el-",a],["en-",a],["er-",a],["es-",a],["esh-",a],["et-",a],["eth-",a],["ez-",a],["e\u0161-",a],["e\u1e0d-",a],["e\u1e0f-",a],["e\u1e63-",a],["e\u1e6d-",a],["e\u1e6f-",a],["e\u1e93-",a],["het",s],["i",s],["il",i],["im",s],["in 't",n],["in de",n],["in den",n],["in der",l],["in het",n],["in t",n],["in",s],["l",s],["l'",s],["la",s],["las",s],["le",s],["les",a],["lo",a],["los",s],["lou",s],["of",s],["onder 't",n],["onder de",n],["onder den",n],["onder het",n],["onder t",n],["onder",s],["op 't",n],["op de",l],["op den",n],["op der",n],["op gen",n],["op het",n],["op t",n],["op ten",n],["op",s],["over 't",n],["over de",n],["over den",n],["over het",n],["over t",n],["over",s],["s",s],["s'",s],["sen",i],["t",s],["te",s],["ten",s],["ter",s],["tho",s],["thoe",s],["thor",s],["to",s],["toe",s],["tot",s],["uijt 't",n],["uijt de",n],["uijt den",n],["uijt te de",o],["uijt ten",n],["uijt",s],["uit 't",n],["uit de",n],["uit den",n],["uit het",n],["uit t",n],["uit te de",o],["uit ten",n],["uit",s],["unter",s],["v",s],["v.",s],["v.d.",s],["van 't",n],["van de l",o],["van de l'",o],["van de",n],["van de",n],["van den",n],["van der",n],["van gen",n],["van het",n],["van la",n],["van t",n],["van ter",n],["van van de",o],["van",a],["vander",s],["vd",s],["ver",s],["vom und zum",[[[0,3],null]]],["vom",a],["von 't",n],["von dem",c],["von den",c],["von der",c],["von t",n],["von und zu",[[[0,3],null],[null,[0,3]]]],["von zu",c],["von",u],["voor 't",n],["voor de",n],["voor den",n],["voor in 't",o],["voor in t",o],["voor",s],["vor der",c],["vor",u],["z",i],["ze",i],["zu",u],["zum",a],["zur",a]],wt.parseParticles=function(){function c(t,e,r){var i=t;t=r?t.toLowerCase():t;var s,n=[];e?(t=t.split("").reverse().join(""),s=wt.PARTICLE_GIVEN_REGEXP):s=wt.PARTICLE_FAMILY_REGEXP;for(var o=t.match(s);o;){var a,l=e?o[1].split("").reverse().join(""):o[1],u=!!(a=!!(a=!!o&&l)&&l.replace(/^[-\'\u02bb\u2019\s]*(.).*$/,"$1"))&&a.toUpperCase()!==a;if(!u)break;e?(n.push(i.slice(-1*l.length)),i=i.slice(0,-1*l.length)):(n.push(i.slice(0,l.length)),i=i.slice(l.length)),o=(t=o[2]).match(s)}if(e){t=t.split("").reverse().join(""),n.reverse();for(var c=1,p=n.length;c<p;c++)" "==n[c].slice(0,1)&&(n[c-1]+=" ");for(c=0,p=n.length;c<p;c++)" "==n[c].slice(0,1)&&(n[c]=n[c].slice(1));t=i.slice(0,t.length)}else t=i.slice(-1*t.length);return[u,t,n]}return function(t){(o=c(t.family))[0];var e=o[1],r=o[2];t.family=e;var i,s,n=(i=r.join(""),s=i.slice(-1),i=i.trim()," "===s&&-1<["'","\u2019"].indexOf(i.slice(-1))&&(i+=" "),i);n&&(t["non-dropping-particle"]=n),function(t){if(!t.suffix&&t.given){var e=t.given.match(/(\s*,!*\s*)/);if(e){var r=t.given.indexOf(e[1]),i=t.given.slice(r+e[1].length),s=t.given.slice(r,r+e[1].length).replace(/\s*/g,"");"et al"!==i.replace(/\./g,"")||t["dropping-particle"]?(2===s.length&&(t["comma-suffix"]=!0),t.suffix=i):(t["dropping-particle"]=i,t["comma-dropping-particle"]=","),t.given=t.given.slice(0,r)}}}(t);(o=c(t.given,!0))[0];var o,a=o[1],l=o[2];t.given=a;var u=l.join("").trim();u&&(t["dropping-particle"]=u)}}(),e.exports=wt},{}],324:[function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=function(){function t(t,e,r,i){if("number"!=typeof t)throw new TypeError("statusCode must be a number but was "+o(t));if(null===e)throw new TypeError("headers cannot be null");if("object"!==o(e))throw new TypeError("headers must be an object but was "+o(e));this.statusCode=t;var s={};for(var n in e)s[n.toLowerCase()]=e[n];this.headers=s,this.body=r,this.url=i}return t.prototype.isError=function(){return 0===this.statusCode||400<=this.statusCode},t.prototype.getBody=function(t){var e;if(0===this.statusCode)throw(e=new Error("This request to "+this.url+" resulted in a status code of 0. This usually indicates some kind of network error in a browser (e.g. CORS not being set up or the DNS failing to resolve):\n"+this.body.toString())).statusCode=this.statusCode,e.headers=this.headers,e.body=this.body,e.url=this.url,e;if(300<=this.statusCode)throw(e=new Error("Server responded to "+this.url+" with status code "+this.statusCode+":\n"+this.body.toString())).statusCode=this.statusCode,e.headers=this.headers,e.body=this.body,e.url=this.url,e;return t&&"string"!=typeof this.body?this.body.toString(t):this.body},t}();e.exports=i},{}],325:[function(t,e,r){"use strict";t("whatwg-fetch"),e.exports=self.fetch.bind(self)},{"whatwg-fetch":326}],326:[function(t,e,r){"use strict";!function(t){if(!t.fetch){var e="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,o="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),i="FormData"in t,s="ArrayBuffer"in t;if(s)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=function(t){return t&&DataView.prototype.isPrototypeOf(t)},l=ArrayBuffer.isView||function(t){return t&&-1<n.indexOf(Object.prototype.toString.call(t))};h.prototype.append=function(t,e){t=p(t),e=m(e);var r=this.map[t];this.map[t]=r?r+","+e:e},h.prototype["delete"]=function(t){delete this.map[p(t)]},h.prototype.get=function(t){return t=p(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(p(t))},h.prototype.set=function(t,e){this.map[p(t)]=m(e)},h.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},h.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),f(r)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),f(e)},h.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),f(r)},r&&(h.prototype[Symbol.iterator]=h.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},y.call(v.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var c=[301,302,303,307,308];w.redirect=function(t,e){if(-1===c.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},t.Headers=h,t.Request=v,t.Response=w,t.fetch=function(r,s){return new Promise(function(i,t){var e=new v(r,s),n=new XMLHttpRequest;n.onload=function(){var t,s,e={status:n.status,statusText:n.statusText,headers:(t=n.getAllResponseHeaders()||"",s=new h,t.split(/\r?\n/).forEach(function(t){var e=t.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();s.append(r,i)}}),s)};e.url="responseURL"in n?n.responseURL:e.headers.get("X-Request-URL");var r="response"in n?n.response:n.responseText;i(new w(r,e))},n.onerror=function(){t(new TypeError("Network request failed"))},n.ontimeout=function(){t(new TypeError("Network request failed"))},n.open(e.method,e.url,!0),"include"===e.credentials&&(n.withCredentials=!0),"responseType"in n&&o&&(n.responseType="blob"),e.headers.forEach(function(t,e){n.setRequestHeader(e,t)}),n.send("undefined"==typeof e._bodyInit?null:e._bodyInit)})},t.fetch.polyfill=!0}function p(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function m(t){return"string"!=typeof t&&(t=String(t)),t}function f(e){var t={next:function(){var t=e.shift();return{done:t===undefined,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function g(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function b(t){var e=new FileReader,r=g(e);return e.readAsArrayBuffer(t),r}function _(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t)if("string"==typeof t)this._bodyText=t;else if(o&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(i&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(s&&o&&a(t))this._bodyArrayBuffer=_(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!s||!ArrayBuffer.prototype.isPrototypeOf(t)&&!l(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=_(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var t,e,r,i=d(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=g(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),i=0;i<e.length;i++)r[i]=String.fromCharCode(e[i]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}function v(t,e){var r,i,s=(e=e||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,s||null==t._bodyInit||(s=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(r=e.method||this.method||"GET",i=r.toUpperCase(),-1<u.indexOf(i)?i:r),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(s)}function x(t){var s=new FormData;return t.trim().split("&").forEach(function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");s.append(decodeURIComponent(r),decodeURIComponent(i))}}),s}function w(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=200<=this.status&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new h(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!=typeof self?self:void 0)},{}],327:[function(t,e,r){"use strict";var i,s,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{s="function"==typeof clearTimeout?clearTimeout:a}catch(t){s=a}}();var u,c=[],p=!1,m=-1;function f(){p&&u&&(p=!1,u.length?c=u.concat(c):m=-1,c.length&&h())}function h(){if(!p){var t=l(f);p=!0;for(var e=c.length;e;){for(u=c,c=[];++m<e;)u&&u[m].run();m=-1,e=c.length}u=null,p=!1,function(t){if(s===clearTimeout)return clearTimeout(t);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(t);try{s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new d(t,e)),1!==c.length||p||l(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},{}],328:[function(t,e,r){"use strict";e.exports=function(t,e,r,i){e=e||"&",r=r||"=";var s={};if("string"!=typeof t||0===t.length)return s;var n=/\+/g;t=t.split(e);var o=1e3;i&&"number"==typeof i.maxKeys&&(o=i.maxKeys);var a,l,u=t.length;0<o&&o<u&&(u=o);for(var c=0;c<u;++c){var p,m,f,h,d=t[c].replace(n,"%20"),g=d.indexOf(r);0<=g?(p=d.substr(0,g),m=d.substr(g+1)):(p=d,m=""),f=decodeURIComponent(p),h=decodeURIComponent(m),a=s,l=f,Object.prototype.hasOwnProperty.call(a,l)?b(s[f])?s[f].push(h):s[f]=[s[f],h]:s[f]=h}return s};var b=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],329:[function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=function(t){switch(n(t)){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};e.exports=function(r,i,s,t){return i=i||"&",s=s||"=",null===r&&(r=undefined),"object"===n(r)?l(u(r),function(t){var e=encodeURIComponent(o(t))+s;return a(r[t])?l(r[t],function(t){return e+encodeURIComponent(o(t))}).join(i):e+encodeURIComponent(o(r[t]))}).join(i):t?encodeURIComponent(o(t))+s+encodeURIComponent(o(r)):""};var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function l(t,e){if(t.map)return t.map(e);for(var r=[],i=0;i<t.length;i++)r.push(e(t[i],i));return r}var u=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},{}],330:[function(t,e,r){"use strict";r.decode=r.parse=t("./decode"),r.encode=r.stringify=t("./encode")},{"./decode":328,"./encode":329}],331:[function(t,C,e){"use strict";function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){var l,e=Object.prototype,u=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag",o="object"===(void 0===C?"undefined":D(C)),a=t.regeneratorRuntime;if(a)o&&(C.exports=a);else{(a=t.regeneratorRuntime=o?C.exports:{}).wrap=y;var p="suspendedStart",m="suspendedYield",f="executing",h="completed",d={},c={};c[n]=function(){return this};var g=Object.getPrototypeOf,b=g&&g(g(T([])));b&&b!==e&&u.call(b,n)&&(c=b);var _=A.prototype=x.prototype=Object.create(c);w.prototype=_.constructor=A,A.constructor=w,A[s]=w.displayName="GeneratorFunction",a.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(_),t},a.awrap=function(t){return{__await:t}},E(j.prototype),j.prototype[i]=function(){return this},a.AsyncIterator=j,a.async=function(t,e,r,i){var s=new j(y(t,e,r,i));return a.isGeneratorFunction(e)?s:s.next().then(function(t){return t.done?t.value:s.next()})},E(_),_[s]="Generator",_[n]=function(){return this},_.toString=function(){return"[object Generator]"},a.keys=function(r){var i=[];for(var e in r)i.push(e);return i.reverse(),function t(){for(;i.length;){var e=i.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=T,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&u.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=l)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var i=this;function t(t,e){return n.type="throw",n.arg=r,i.next=t,e&&(i.method="next",i.arg=l),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var s=this.tryEntries[e],n=s.completion;if("root"===s.tryLoc)return t("end");if(s.tryLoc<=this.prev){var o=u.call(s,"catchLoc"),a=u.call(s,"finallyLoc");if(o&&a){if(this.prev<s.catchLoc)return t(s.catchLoc,!0);if(this.prev<s.finallyLoc)return t(s.finallyLoc)}else if(o){if(this.prev<s.catchLoc)return t(s.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return t(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&u.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var n=s?s.completion:{};return n.type=t,n.arg=e,s?(this.method="next",this.next=s.finallyLoc,d):this.complete(n)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),d}},"catch":function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var s=i.arg;k(r)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=l),d}}}function y(t,e,r,i){var n,o,a,l,s=e&&e.prototype instanceof x?e:x,u=Object.create(s.prototype),c=new I(i||[]);return u._invoke=(n=t,o=r,a=c,l=p,function(t,e){if(l===f)throw new Error("Generator is already running");if(l===h){if("throw"===t)throw e;return N()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){var i=O(r,a);if(i){if(i===d)continue;return i}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(l===p)throw l=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);l=f;var s=v(n,o,a);if("normal"===s.type){if(l=a.done?h:m,s.arg===d)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(l=h,a.method="throw",a.arg=s.arg)}}),u}function v(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(i){return{type:"throw",arg:i}}}function x(){}function w(){}function A(){}function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function j(l){var e;this._invoke=function(i,s){function t(){return new Promise(function(t,r){!function e(t,r,i,s){var n=v(l[t],l,r);if("throw"!==n.type){var o=n.arg,a=o.value;return a&&"object"===D(a)&&u.call(a,"__await")?Promise.resolve(a.__await).then(function(t){e("next",t,i,s)},function(t){e("throw",t,i,s)}):Promise.resolve(a).then(function(t){o.value=t,i(o)},s)}s(n.arg)}(i,s,t,r)})}return e=e?e.then(t,t):t()}}function O(t,e){var r=t.iterator[e.method];if(r===l){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=l,O(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=v(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var s=i.arg;return s?s.done?(e[t.resultName]=s.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=l),e.delegate=null,d):s:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function T(e){if(e){var r=e[n];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,s=function t(){for(;++i<e.length;)if(u.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=l,t.done=!0,t};return s.next=s}}return{next:N}}function N(){return{value:l,done:!0}}}(function(){return this}()||Function("return this")())},{}],332:[function(t,e,r){"use strict";function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.__esModule=!0;var u=t("then-request/lib/handle-qs.js"),c=t("http-response-object"),i=FormData;function s(t,e,r){var i,s=new XMLHttpRequest;if("string"!=typeof t)throw new TypeError("The method must be a string.");if(e&&"object"===l(e)&&(e=e.href),"string"!=typeof e)throw new TypeError("The URL/path must be a string.");if(null!==r&&r!==undefined||(r={}),"object"!==l(r))throw new TypeError("Options must be an object (or null).");t=t.toUpperCase(),r.headers=r.headers||{};var n=!(!(i=/^([\w-]+:)?\/\/([^\/]+)/.exec(e))||i[2]==location.host);for(var o in n||(r.headers["X-Requested-With"]="XMLHttpRequest"),r.qs&&(e=u["default"](e,r.qs)),r.json&&(r.body=JSON.stringify(r.json),r.headers["content-type"]="application/json"),r.form&&(r.body=r.form),s.open(t,e,!1),r.headers)s.setRequestHeader(o.toLowerCase(),""+r.headers[o]);s.send(r.body?r.body:null);var a={};return s.getAllResponseHeaders().split("\r\n").forEach(function(t){var e=t.split(":");1<e.length&&(a[e[0].toLowerCase()]=e.slice(1).join(":").trim())}),new c(s.status,a,s.responseText,e)}r.FormData=i,r["default"]=s,e.exports=s,e.exports["default"]=s,e.exports.FormData=i},{"http-response-object":324,"then-request/lib/handle-qs.js":333}],333:[function(t,e,r){"use strict";r.__esModule=!0;var u=t("qs");r["default"]=function(t,e){var r=t.split("?"),i=r[0],s=r[1],n=(s||"").split("#")[0],o=s&&1<s.split("#").length?"#"+s.split("#")[1]:"",a=u.parse(n);for(var l in e)a[l]=e[l];return""!==(n=u.stringify(a))&&(n="?"+n),i+n+o}},{qs:335}],334:[function(t,e,r){"use strict";var i=String.prototype.replace,s=/%20/g;e.exports={"default":"RFC3986",formatters:{RFC1738:function(t){return i.call(t,s,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},{}],335:[function(t,e,r){"use strict";var i=t("./stringify"),s=t("./parse"),n=t("./formats");e.exports={formats:n,parse:s,stringify:i}},{"./formats":334,"./parse":336,"./stringify":337}],336:[function(t,e,r){"use strict";var u=t("./utils"),m=Object.prototype.hasOwnProperty,f={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:u.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},c=function(t,e,r){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,n=/(\[[^[\]]*])/.exec(i),o=n?i.slice(0,n.index):i,a=[];if(o){if(!r.plainObjects&&m.call(Object.prototype,o)&&!r.allowPrototypes)return;a.push(o)}for(var l=0;null!==(n=s.exec(i))&&l<r.depth;){if(l+=1,!r.plainObjects&&m.call(Object.prototype,n[1].slice(1,-1))&&!r.allowPrototypes)return;a.push(n[1])}return n&&a.push("["+i.slice(n.index)+"]"),function(t,e,r){for(var i=e,s=t.length-1;0<=s;--s){var n,o=t[s];if("[]"===o)n=(n=[]).concat(i);else{n=r.plainObjects?Object.create(null):{};var a="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,l=parseInt(a,10);!isNaN(l)&&o!==a&&String(l)===a&&0<=l&&r.parseArrays&&l<=r.arrayLimit?(n=[])[l]=i:n[a]=i}i=n}return i}(a,e,r)}};e.exports=function(t,e){var r=e?u.assign({},e):{};if(null!==r.decoder&&r.decoder!==undefined&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||u.isRegExp(r.delimiter)?r.delimiter:f.delimiter,r.depth="number"==typeof r.depth?r.depth:f.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:f.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:f.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:f.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:f.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:f.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:f.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:f.strictNullHandling,""===t||null==t)return r.plainObjects?Object.create(null):{};for(var i="string"==typeof t?function(t,e){for(var r={},i=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=e.parameterLimit===Infinity?undefined:e.parameterLimit,n=i.split(e.delimiter,s),o=0;o<n.length;++o){var a,l,u=n[o],c=u.indexOf("]="),p=-1===c?u.indexOf("="):c+1;-1===p?(a=e.decoder(u,f.decoder),l=e.strictNullHandling?null:""):(a=e.decoder(u.slice(0,p),f.decoder),l=e.decoder(u.slice(p+1),f.decoder)),m.call(r,a)?r[a]=[].concat(r[a]).concat(l):r[a]=l}return r}(t,r):t,s=r.plainObjects?Object.create(null):{},n=Object.keys(i),o=0;o<n.length;++o){var a=n[o],l=c(a,i[a],r);s=u.merge(s,l,r)}return u.compact(s)}},{"./utils":338}],337:[function(e,r,i){"use strict";function A(t){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var E=e("./utils"),j=e("./formats"),O={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Date.prototype.toISOString,S={delimiter:"&",encode:!0,encoder:E.encode,encodeValuesOnly:!1,serializeDate:function(t){return s.call(t)},skipNulls:!1,strictNullHandling:!1},k=function t(e,r,i,s,n,o,a,l,u,c,p,m){var f=e;if("function"==typeof a)f=a(r,f);else if(f instanceof Date)f=c(f);else if(null===f){if(s)return o&&!m?o(r,S.encoder):r;f=""}if("string"==typeof f||"number"==typeof f||"boolean"==typeof f||E.isBuffer(f))return o?[p(m?r:o(r,S.encoder))+"="+p(o(f,S.encoder))]:[p(r)+"="+p(String(f))];var h,d=[];if(void 0===f)return d;if(Array.isArray(a))h=a;else{var g=Object.keys(f);h=l?g.sort(l):g}for(var b=0;b<h.length;++b){var _=h[b];n&&null===f[_]||(d=Array.isArray(f)?d.concat(t(f[_],i(r,_),i,s,n,o,a,l,u,c,p,m)):d.concat(t(f[_],r+(u?"."+_:"["+_+"]"),i,s,n,o,a,l,u,c,p,m)))}return d};r.exports=function(t,e){var r=t,i=e?E.assign({},e):{};if(null!==i.encoder&&i.encoder!==undefined&&"function"!=typeof i.encoder)throw new TypeError("Encoder has to be a function.");var s="undefined"==typeof i.delimiter?S.delimiter:i.delimiter,n="boolean"==typeof i.strictNullHandling?i.strictNullHandling:S.strictNullHandling,o="boolean"==typeof i.skipNulls?i.skipNulls:S.skipNulls,a="boolean"==typeof i.encode?i.encode:S.encode,l="function"==typeof i.encoder?i.encoder:S.encoder,u="function"==typeof i.sort?i.sort:null,c="undefined"!=typeof i.allowDots&&i.allowDots,p="function"==typeof i.serializeDate?i.serializeDate:S.serializeDate,m="boolean"==typeof i.encodeValuesOnly?i.encodeValuesOnly:S.encodeValuesOnly;if("undefined"==typeof i.format)i.format=j["default"];else if(!Object.prototype.hasOwnProperty.call(j.formatters,i.format))throw new TypeError("Unknown format option provided.");var f,h,d=j.formatters[i.format];"function"==typeof i.filter?r=(h=i.filter)("",r):Array.isArray(i.filter)&&(f=h=i.filter);var g,b=[];if("object"!==A(r)||null===r)return"";g=i.arrayFormat in O?i.arrayFormat:"indices"in i?i.indices?"indices":"repeat":"indices";var _=O[g];f||(f=Object.keys(r)),u&&f.sort(u);for(var y=0;y<f.length;++y){var v=f[y];o&&null===r[v]||(b=b.concat(k(r[v],v,_,n,o,a?l:null,h,u,c,p,d,m)))}var x=b.join(s),w=!0===i.addQueryPrefix?"?":"";return 0<x.length?w+x:""}},{"./formats":334,"./utils":338}],338:[function(t,e,n){"use strict";function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=Object.prototype.hasOwnProperty,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}();n.arrayToObject=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},i=0;i<t.length;++i)"undefined"!=typeof t[i]&&(r[i]=t[i]);return r},n.merge=function(r,i,s){if(!i)return r;if("object"!==c(i)){if(Array.isArray(r))r.push(i);else{if("object"!==c(r))return[r,i];(s.plainObjects||s.allowPrototypes||!o.call(Object.prototype,i))&&(r[i]=!0)}return r}if("object"!==c(r))return[r].concat(i);var t=r;return Array.isArray(r)&&!Array.isArray(i)&&(t=n.arrayToObject(r,s)),Array.isArray(r)&&Array.isArray(i)?(i.forEach(function(t,e){o.call(r,e)?r[e]&&"object"===c(r[e])?r[e]=n.merge(r[e],t,s):r.push(t):r[e]=t}),r):Object.keys(i).reduce(function(t,e){var r=i[e];return o.call(t,e)?t[e]=n.merge(t[e],r,s):t[e]=r,t},t)},n.assign=function(t,r){return Object.keys(r).reduce(function(t,e){return t[e]=r[e],t},t)},n.decode=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},n.encode=function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),r="",i=0;i<e.length;++i){var s=e.charCodeAt(i);45===s||46===s||95===s||126===s||48<=s&&s<=57||65<=s&&s<=90||97<=s&&s<=122?r+=e.charAt(i):s<128?r+=a[s]:s<2048?r+=a[192|s>>6]+a[128|63&s]:s<55296||57344<=s?r+=a[224|s>>12]+a[128|s>>6&63]+a[128|63&s]:(i+=1,s=65536+((1023&s)<<10|1023&e.charCodeAt(i)),r+=a[240|s>>18]+a[128|s>>12&63]+a[128|s>>6&63]+a[128|63&s])}return r},n.compact=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],i=0;i<e.length;++i)for(var s=e[i],n=s.obj[s.prop],o=Object.keys(n),a=0;a<o.length;++a){var l=o[a],u=n[l];"object"===c(u)&&null!==u&&-1===r.indexOf(u)&&(e.push({obj:n,prop:l}),r.push(u))}return function(t){for(var e;t.length;){var r=t.pop();if(e=r.obj[r.prop],Array.isArray(e)){for(var i=[],s=0;s<e.length;++s)"undefined"!=typeof e[s]&&i.push(e[s]);r.obj[r.prop]=i}}return e}(e)},n.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},n.isBuffer=function(t){return null!=t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}},{}],339:[function(t,e,r){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=t("./wikidata_time_to_date_object"),n={isNumericId:function(t){return/^[0-9]+$/.test(t)},isEntityId:function(t){return/^(Q|P)[0-9]+$/.test(t)},isItemId:function(t){return/^Q[0-9]+$/.test(t)},isPropertyId:function(t){return/^P[0-9]+$/.test(t)},getNumericId:function(t){if(!n.isEntityId(t))throw new Error("invalid wikidata id: ".concat(t));return t.replace(/Q|P/,"")}};n.wikidataTimeToDateObject=i;var o=function(r){return function(t){try{return r(t)}catch(e){return(t=t.time||t).replace("-00-00","-01-01")}}};n.wikidataTimeToEpochTime=o(function(t){return i(t).getTime()}),n.wikidataTimeToISOString=o(function(t){return i(t).toISOString()}),n.wikidataTimeToSimpleDay=o(function(t){if("object"===s(t)){var e=t,r=e.time,i=e.precision;t=9===i?r.replace("-01-01T","-00-00T"):10===i?r.replace("-01T","-00T"):r}return t.split("T")[0].replace(/^\+/,"").replace(/^(-?)0+/,"$1").replace(/-00$/,"").replace(/-00$/,"")}),n.getImageUrl=function(t,e){var r="https://commons.wikimedia.org/wiki/Special:FilePath/".concat(t);return"number"==typeof e&&(r+="?width=".concat(e)),r},e.exports=n},{"./wikidata_time_to_date_object":349}],340:[function(t,e,r){"use strict";var i=t("./helpers"),s=i.wikidataTimeToISOString,n=i.wikidataTimeToEpochTime,o=i.wikidataTimeToSimpleDay,a=function(t){return t.value},l={item:"Q",property:"P"},u=function(t,e){var r=t.value,i=r.id||l[r["entity-type"]]+r["numeric-id"];return"string"==typeof e?"".concat(e,":").concat(i):i},c=function(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:"iso";return p[t]},p={iso:s,epoch:n,"simple-day":o,none:function(t){return t.time||t}},m={string:a,commonsMedia:a,url:a,"external-id":a,math:a,monolingualtext:function(t,e){return e.keepRichValues?t.value:t.value.text},"wikibase-item":function(t,e){return u(t,e.entityPrefix)},"wikibase-property":function(t,e){return u(t,e.propertyPrefix)},time:function(t,e){return c(e.timeConverter)(t.value)},quantity:function(t,e){var r=t.value,i=parseFloat(r.amount);return e.keepRichValues?{amount:parseFloat(r.amount),unit:r.unit.replace("http://www.wikidata.org/entity/",""),upperBound:parseFloat(r.upperBound),lowerBound:parseFloat(r.lowerBound)}:i},"globe-coordinate":function(t){return[t.value.latitude,t.value.longitude]},"geo-shape":a,"tabular-data":a};e.exports={parsers:m,parse:function(t,e,r,i){if(!t)return console.error("invalid claim",i),null;try{return m[t](e,r)}catch(s){throw"parsers[datatype] is not a function"===s.message&&(s.message="".concat(t," claim parser isn't implemented\n Claim id: ").concat(i,"\n Please report to https://github.com/maxlath/wikidata-sdk/issues")),s}}}},{"./helpers":339}],341:[function(t,e,r){"use strict";var i=t("./simplify_entity");e.exports={wd:{entities:function(t){var e=(t=t.body||t).entities;return Object.keys(e).forEach(function(t){e[t]=i(e[t])}),e}}}},{"./simplify_entity":343}],342:[function(t,e,r){"use strict";function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var y=t("./parse_claim").parse,l=t("../utils/utils").uniq,v=function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];var s=x(r).propertyPrefix,n={};for(var o in t){var a=t[o];s&&(o=s+":"+o),n[o]=u.apply(void 0,[a].concat(r))}return n},u=function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(null==t||0===t.length)return[];var s=x(r),n=s.keepNonTruthy,o=s.areSubSnaks;return n||o||(t=c(t)),(t=t.map(function(t){return m.apply(void 0,[t].concat(r))}).filter(p))[0]&&"object"!==a(t[0])?l(t):t},s=function(t,e){var r=e.rank;return t[r]||(t[r]=[]),t[r].push(e),t},c=function(t){var e=t.reduce(s,{});return e.preferred||e.normal||[]},p=function(t){return null!=t},m=function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];var s,n,o,a,l=r=x(r),u=l.keepQualifiers,c=l.keepReferences,p=l.keepIds,m=l.keepHashes,f=l.keepTypes,h=t.mainsnak;if(h){if(s=h.datatype,!(n=h.datavalue))return null}else{if(!t||!t.datavalue)return null;n=t.datavalue,s=t.datatype,t.hash?o=!0:a=!0}var d=y(s,n,r,t.id);if(o){if(!m&&!f)return d;var g={value:d};return m&&(g.hash=t.hash),f&&(g.type=s),g}if(a)return f?{type:s,value:d}:d;if(!(u||c||p||f))return d;var b={value:d};f&&(b.type=s);var _=Object.assign({},r,{areSubSnaks:!0,keepHashes:m});return u&&(b.qualifiers=v(t.qualifiers,_)),c&&(t.references=t.references||[],b.references=t.references.map(function(t){var e=v(t.snaks,_);return m?{snaks:e,hash:t.hash}:e})),p&&(b.id=t.id),b},x=function(t){if(null==t)return{};if(t[0]&&"object"===a(t[0]))return t[0];var e=i(t,3);return{entityPrefix:e[0],propertyPrefix:e[1],keepQualifiers:e[2]}};e.exports={simplifyClaims:v,simplifyPropertyClaims:u,simplifyClaim:m}},{"../utils/utils":360,"./parse_claim":340}],343:[function(t,e,r){"use strict";var i=t("./simplify_claims").simplifyClaims,s=t("./simplify_text_attributes"),n=t("./simplify_sitelinks");e.exports=function(t,e){var r={id:t.id,type:t.type,modified:t.modified};return o(t,r,"labels"),o(t,r,"descriptions"),o(t,r,"aliases"),null!=t.claims&&(r.claims=i(t.claims,e)),null!=t.sitelinks&&(r.sitelinks=n(t.sitelinks,e)),r};var o=function(t,e,r){null!=t[r]&&(e[r]=s[r](t[r]))}},{"./simplify_claims":342,"./simplify_sitelinks":344,"./simplify_text_attributes":346}],344:[function(t,e,r){"use strict";var n=t("./sitelinks_helpers").getSitelinkUrl;e.exports=function(t){var e=(1<arguments.length&&arguments[1]!==undefined?arguments[1]:{}).addUrl;return Object.keys(t).reduce(i(t,e),{})};var i=function(i,s){return function(t,e){var r=i[e].title;return t[e]=s?{title:r,url:n(e,r)}:r,t}}},{"./sitelinks_helpers":347}],345:[function(t,e,r){"use strict";function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}e.exports=function(t){"string"==typeof t&&(t=JSON.parse(t));var e=t.head.vars,r=t.results.bindings;if(1===e.length){var i=e[0];return r.map(function(t){return y(t[i])}).filter(function(t){return null!=t})}var s=a(c(e),2),n=s[0],o=s[1];return r.map(p(n,o))};var y=function(t){if(t){var e=t.datatype;return e=e&&e.replace("http://www.w3.org/2001/XMLSchema#",""),(i[t.type]||n(e))(t)}},i={uri:function(t){return u(t.value)},bnode:function(){return null}},s=function(t){return parseFloat(t.value)},n=function(t){return t=t&&t.replace("http://www.w3.org/2001/XMLSchema#",""),o[t]||l},o={decimal:s,integer:s,"float":s,"double":s,"boolean":function(t){return"true"===t.value}},l=function(t){return t.value},u=function(t){return t.replace("http://www.wikidata.org/entity/","").replace("http://www.wikidata.org/prop/direct/","")},c=function(t){var e=[],r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var l=o.value;-1<t.indexOf("".concat(l,"Label"))?e.push(l):/^\w+Label$/.test(l)||r.push(l)}}catch(u){s=!0,n=u}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return[e,r]},p=function(b,_){return function(t){var e={},r=!0,i=!1,s=undefined;try{for(var n,o=b[Symbol.iterator]();!(r=(n=o.next()).done);r=!0){var a=n.value,l=y(t[a]);if(null!=l){var u=t["".concat(a,"Label")]&&t["".concat(a,"Label")].value;e[a]={value:l,label:u}}}}catch(g){i=!0,s=g}finally{try{r||null==o["return"]||o["return"]()}finally{if(i)throw s}}var c=!0,p=!1,m=undefined;try{for(var f,h=_[Symbol.iterator]();!(c=(f=h.next()).done);c=!0){var d=f.value;e[d]=y(t[d])}}catch(g){p=!0,m=g}finally{try{c||null==h["return"]||h["return"]()}finally{if(p)throw m}}return e}}},{}],346:[function(t,e,r){"use strict";var i=function(e){return function(t){return Object.keys(t).reduce(s(t,e),{})}},s=function(i,s){return function(t,e){var r=i[e];return t[e]=s?r.map(n):r.value,t}},n=function(t){return t.value},o=i(!1);e.exports={labels:o,descriptions:o,aliases:i(!0)}},{}],347:[function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var i=t("../utils/utils"),o=i.fixedEncodeURIComponent,a=i.replaceSpaceByUnderscores,l=i.isPlainObject,u=t("./helpers").isPropertyId,c="https://www.wikidata.org/wiki/",p=t("./sitelinks_languages"),m=function(t){if("commons"===t)return{lang:"en",project:"commons"};if("wikidata"===t)return{lang:"en",project:"wikidata"};var e=n(t.split("wik"),3),r=e[0],i=e[1];if(null!=e[2])throw new Error("invalid sitelink: ".concat(t));if(-1===p.indexOf(r))throw new Error("sitelink lang not found: ".concat(r));var s=f[i];if(!s)throw new Error("sitelink project not found: ".concat(s));return{lang:r,project:s}},f={i:"wikipedia",isource:"wikisource",iquote:"wikiquote",tionary:"wiktionary",ibooks:"wikibooks",iversity:"wikiversity",ivoyage:"wikivoyage",inews:"wikinews"};e.exports={getSitelinkUrl:function(t,e){if(l(t)&&(e=t.title,t=t.site),!t)throw new Error("missing a site");if(!e)throw new Error("missing a title");if("commons"===t)return"https://commons.wikimedia.org/wiki/".concat(e);if("wikidata"===t)return u(e)?"".concat(c,"Property:").concat(e):"".concat(c).concat(e);var r=m(t),i=r.lang,s=r.project;return e=o(a(e)),"https://".concat(i,".").concat(s,".org/wiki/").concat(e)},getSitelinkData:m,isSitelinkKey:function(t){try{return m(t),!0}catch(e){return!1}}}},{"../utils/utils":360,"./helpers":339,"./sitelinks_languages":348}],348:[function(t,e,r){"use strict";e.exports=["aa","ab","ace","ady","af","ak","als","am","an","ang","ar","arc","arz","as","ast","atj","av","ay","az","azb","ba","bar","bat_smg","bcl","be","be_x_old","bg","bh","bi","bjn","bm","bn","bo","bpy","br","bs","bug","bxr","ca","cbk_zam","cdo","ce","ceb","ch","cho","chr","chy","ckb","co","commons","cr","crh","cs","csb","cu","cv","cy","da","de","din","diq","dsb","dty","dv","dz","ee","el","eml","en","eo","es","et","eu","ext","fa","ff","fi","fiu_vro","fj","fo","fr","frp","frr","fur","fy","ga","gag","gan","gd","gl","glk","gn","gom","got","gu","gv","ha","hak","haw","he","hi","hif","ho","hr","hsb","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","ilo","io","is","it","iu","ja","jam","jbo","jv","ka","kaa","kab","kbd","kbp","kg","ki","kj","kk","kl","km","kn","ko","koi","kr","krc","ks","ksh","ku","kv","kw","ky","la","lad","lb","lbe","lez","lg","li","lij","lmo","ln","lo","lrc","lt","ltg","lv","mai","map_bms","mdf","mediawiki","meta","mg","mh","mhr","mi","min","mk","ml","mn","mo","mr","mrj","ms","mt","mus","mwl","my","myv","mzn","na","nah","nap","nds","nds_nl","ne","new","ng","nl","nn","no","nov","nrm","nso","nv","ny","oc","olo","om","or","os","pa","pag","pam","pap","pcd","pdc","pfl","pi","pih","pl","pms","pnb","pnt","ps","pt","qu","rm","rmy","rn","ro","roa_rup","roa_tara","ru","rue","rw","sa","sah","sc","scn","sco","sd","se","sg","sh","si","simple","sk","sl","sm","sn","so","species","sq","sr","srn","ss","st","stq","su","sv","sw","szl","ta","tcy","te","tet","tg","th","ti","tk","tl","tn","to","tpi","tr","ts","tt","tum","tw","ty","tyv","udm","ug","uk","ur","uz","ve","vec","vep","vi","vls","vo","wa","war","wo","wuu","xal","xh","xmf","yi","yo","za","zea","zh","zh_classical","zh_min_nan","zh_yue","zu"]},{}],349:[function(t,e,r){"use strict";function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports=function(t){"object"===s(t)&&(t=t.time);var e=t[0],r=t.slice(1),i=n(e,r);return"Invalid Date"===i.toString()?a(e,r):i};var n=function(t,e){return"-"===t?o(e):i(e)},i=function(t){return new Date(t)},o=function(t){var e,r=t.split("-")[0];return e=4===r.length?"-00".concat(t):5===r.length?"-0".concat(t):"-".concat(t),new Date(e)},a=function(t,e){var r=e.split("T")[0].split("-")[0];return n(t,r)}},{}],350:[function(t,e,r){"use strict";var i=e.exports={};i.searchEntities=t("./queries/search_entities"),i.getEntities=t("./queries/get_entities"),i.getManyEntities=t("./queries/get_many_entities"),i.getWikidataIdsFromSitelinks=t("./queries/get_wikidata_ids_from_sitelinks"),i.sparqlQuery=t("./queries/sparql_query"),i.getReverseClaims=t("./queries/get_reverse_claims"),i.getRevisions=t("./queries/get_revisions"),i.parse=t("./helpers/parse_responses");var s=t("./helpers/simplify_claims"),n=t("./helpers/simplify_sparql_results");i.simplify=t("../lib/helpers/simplify_text_attributes"),i.simplify.entity=t("../lib/helpers/simplify_entity"),i.simplify.claim=s.simplifyClaim,i.simplify.propertyClaims=s.simplifyPropertyClaims,i.simplify.claims=s.simplifyClaims,i.simplify.sitelinks=t("../lib/helpers/simplify_sitelinks"),i.simplify.sparqlResults=n,i.simplifySparqlResults=t("./helpers/simplify_sparql_results"),Object.assign(i,s),i.getWikidataIdsFromWikipediaTitles=i.getWikidataIdsFromSitelinks;var o=t("../lib/helpers/helpers"),a=t("../lib/helpers/sitelinks_helpers");Object.assign(i,o,a)},{"../lib/helpers/helpers":339,"../lib/helpers/simplify_entity":343,"../lib/helpers/simplify_sitelinks":344,"../lib/helpers/simplify_text_attributes":346,"../lib/helpers/sitelinks_helpers":347,"./helpers/parse_responses":341,"./helpers/simplify_claims":342,"./helpers/simplify_sparql_results":345,"./queries/get_entities":351,"./queries/get_many_entities":352,"./queries/get_reverse_claims":353,"./queries/get_revisions":354,"./queries/get_wikidata_ids_from_sitelinks":355,"./queries/search_entities":356,"./queries/sparql_query":357}],351:[function(t,e,r){"use strict";var o=t("../utils/build_url"),i=t("../utils/utils"),a=i.isPlainObject,l=i.forceArray,u=i.shortLang;e.exports=function(t,e,r,i){if(a(t)){var s=t;t=s.ids,e=s.languages,r=s.props,i=s.format}if(i=i||"json",!(t&&0<t.length))throw new Error("no id provided");50<(t=l(t)).length&&console.warn("getEntities accepts 50 ids max to match Wikidata API limitations:\n this request won't get all the desired entities.\n You can use getManyEntities instead to generate several request urls\n to work around this limitation");var n={action:"wbgetentities",ids:t.join("|"),format:i};return e&&(e=l(e).map(u),n.languages=e.join("|")),r&&0<r.length&&(n.props=l(r).join("|")),o(n)}},{"../utils/build_url":358,"../utils/utils":360}],352:[function(t,e,r){"use strict";var n=t("./get_entities"),o=t("../utils/utils").isPlainObject;e.exports=function(t,e,r,i){if(o(t)){var s=t;t=s.ids,e=s.languages,r=s.props,i=s.format}if(!(t instanceof Array))throw new Error("getManyEntities expects an array of ids");return a(t).map(function(t){return n(t,e,r,i)})};var a=function(t){for(var e=[];0<t.length;){var r=t.slice(0,50);t=t.slice(50),e.push(r)}return e}},{"../utils/utils":360,"./get_entities":351}],353:[function(t,e,r){"use strict";var c=t("../helpers/helpers"),p=t("./sparql_query");function m(t,e,r,i){return"SELECT DISTINCT ?subject WHERE {\n ?subject ".concat(t," ").concat(e," .\n ").concat(r,"\n }\n LIMIT ").concat(i)}function f(t,e,r,i){return"SELECT DISTINCT ?subject WHERE {\n ?subject ".concat(t," ?value .\n FILTER (lcase(?value) = ").concat(e.toLowerCase(),")\n ").concat(r,"\n }\n LIMIT ").concat(i)}e.exports=function(t,e){var r=2<arguments.length&&arguments[2]!==undefined?arguments[2]:{},i=r.limit,s=r.caseInsensitive,n=r.keepProperties;i=i||1e3;var o=s?f:m,a=function(t){c.isItemId(t)?t="wd:".concat(t):"string"==typeof t&&(t="'".concat(t,"'"));return t}(e),l=n?"":"FILTER NOT EXISTS { ?subject rdf:type wikibase:Property . } ",u=o(t=t instanceof Array?t.map(h).join("|"):h(t),a,l,i);return p(u)};var h=function(t){return"wdt:"+t}},{"../helpers/helpers":339,"./sparql_query":357}],354:[function(t,e,r){"use strict";var s=t("../utils/build_url"),n=t("../utils/utils").forceArray;e.exports=function(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=1===(t=n(t)).length,i={action:"query",prop:"revisions"};return i.titles=t.join("|"),i.format=e.format||"json",r&&(i.rvlimit=e.limit||"max"),r&&e.start&&(i.rvstart=o(e.start)),r&&e.end&&(i.rvend=o(e.end)),s(i)};var o=function(t){return"number"==typeof t&&t<i?t:Math.trunc(new Date(t).getTime()/1e3)},i=new Date("2000-01-01").getTime()},{"../utils/build_url":358,"../utils/utils":360}],355:[function(t,e,r){"use strict";var a=t("../utils/build_url"),i=t("../utils/utils"),l=i.isPlainObject,u=i.forceArray,c=i.shortLang;e.exports=function(t,e,r,i,s){if(l(t)){var n=t;t=n.titles,e=n.sites,r=n.languages,i=n.props,s=n.format}if(s=s||"json",!(t&&0<t.length))throw new Error("no title provided");e&&0<e.length||(e=["enwiki"]),t=u(t),e=u(e).map(p),i=u(i);var o={action:"wbgetentities",titles:t.join("|"),sites:e.join("|"),format:s};return 1===e.length&&1===t.length&&(o.normalize=!0),r&&(r=u(r).map(c),o.languages=r.join("|")),i&&0<i.length&&(o.props=i.join("|")),a(o)};var p=function(t){return 2===t.length?"".concat(t,"wiki"):t}},{"../utils/build_url":358,"../utils/utils":360}],356:[function(t,e,r){"use strict";var o=t("../utils/build_url"),a=t("../utils/utils").isPlainObject;e.exports=function(t,e,r,i,s){if(a(t)){var n=t;t=n.search,e=n.language,r=n.limit,i=n.format,s=n.uselang}if(!(t&&0<t.length))throw new Error("search can't be empty");return o({action:"wbsearchentities",search:t,language:e=e||"en",limit:r=r||"20",format:i=i||"json",uselang:s=s||e})}},{"../utils/build_url":358,"../utils/utils":360}],357:[function(t,e,r){"use strict";var i=t("../utils/utils").fixedEncodeURIComponent;e.exports=function(t){var e=i(t);return"https://query.wikidata.org/sparql?format=json&query=".concat(e)}},{"../utils/utils":360}],358:[function(t,e,r){"use strict";var i="undefined"!=typeof location&&"undefined"!=typeof document,s=t(i?"./querystring_lite":"querystring");e.exports=function(t){return i&&(t.origin="*"),"https://www.wikidata.org/w/api.php?"+s.stringify(t)}},{"./querystring_lite":359,querystring:330}],359:[function(t,e,r){"use strict";e.exports={stringify:function(t){var e="";for(var r in t){var i=t[r];i&&(e+="&".concat(r,"=").concat(i))}return e=e.slice(1),encodeURI?encodeURI(e):e}}},{}],360:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.exports={shortLang:function(t){return t.toLowerCase().split(/[^a-z]/)[0]},forceArray:function(t){return"string"==typeof t&&(t=[t]),t||[]},isPlainObject:function(t){return!(!t||"object"!==i(t)||t instanceof Array)},fixedEncodeURIComponent:function(t){return encodeURIComponent(t).replace(/[!'()*]/g,s)},replaceSpaceByUnderscores:function(t){return t.replace(/\s/g,"_")},uniq:function(t){return Array.from(new Set(t))}};var s=function(t){return"%"+t.charCodeAt(0).toString(16)}},{}],361:[function(t,e,r){e.exports={name:"citation-js",version:"0.4.0-9",description:"Citation.js converts formats like BibTeX, Wikidata JSON and ContentMine JSON to CSL-JSON to convert to other formats like APA, Vancouver and back to BibTeX.",main:"lib/index.js",jsdelivr:"build/citation.min.js",unpkg:"build/citation.min.js",directories:{doc:"docs/",test:"test/",lib:"src/"},homepage:"https://citation.js.org/",repository:{type:"git",url:"git+https://github.com/larsgw/citation.js.git"},keywords:["citation","bibtex","wikidata","contentmine","quickscrape","csl","citeproc"],files:["/lib","/bin","/build/citation.js","/build/citation.min.js"],dependencies:{"@babel/polyfill":"^7.0.0-beta.49",citeproc:"^2.1.206",commander:"^2.15.1","isomorphic-fetch":"^2.2.1","sync-request":"^5.0.0","wikidata-sdk":"^5.11.0"},devDependencies:{"@babel/cli":"^7.0.0-beta.49","@babel/core":"^7.0.0-beta.49","@babel/plugin-proposal-class-properties":"^7.0.0-beta.49","@babel/plugin-proposal-object-rest-spread":"^7.0.0-beta.49","@babel/plugin-proposal-unicode-property-regex":"^7.0.0-beta.49","@babel/preset-env":"^7.0.0-beta.49","@babel/register":"^7.0.0-beta.49","babel-eslint":"^8.2.3","babel-plugin-istanbul":"^4.1.6",babelify:"github:larsgw/babelify#patch-1",browserify:"^16.2.2","cross-env":"^5.1.6",disc:"^1.3.2","eslint-plugin-vuln-regex-detector":"^1.0.4","expect.js":"^0.3.1",glob:"^7.1.2",jsdoc:"^3.5.5","markdown-toc":"^1.2.0",minami:"^1.2.3",mocha:"^5.2.0","mock-require":"^3.0.2","npm-run-all":"^4.1.3",nyc:"^11.8.0",standard:"^11.0.1","uglify-js":"^3.3.27"},nyc:{require:["@babel/register"],sourceMap:!1,instrument:!1},standard:{parser:"babel-eslint",globals:["logger"]},browser:{"./test/citation.js":"./test/citation-browser.js"},scripts:{"--1--":"lint","lint:src":'standard "src/**/*.js"',"lint:test":'standard "test/**/*.js"',"lint:tools":'standard "tools/**/*.js"',"lint:bin":'standard "bin/**/*.js"',lint:"npm-run-all lint:*","--2--":"test",test:"cross-env TEST_MOCHA=true mocha --check-leaks -r @babel/register -R dot test/*.spec.js","test:live":"cross-env TEST_MOCK_HTTP=false npm test","test:regex":"eslint --parser babel-eslint --plugin vuln-regex-detector --rule 'vuln-regex-detector/no-vuln-regex: 2' \"src/**/*.js\"","test:update:wikidata":"node tools/api/wikidata.js","test:update:doi":"node tools/api/doi.js","test:update":"npm-run-all test:update:*","--3--":"coverage","coverage:test":"cross-env NODE_ENV=test nyc npm test","coverage:report":"nyc report --reporter=lcov > coverage.lcov","--4--":"compile",compile:"babel src -d lib --copy-files","--5--":"distributions","dist:debug":"node tools/build-debug.js","dist:regular-main":"node tools/build.js","dist:regular-test":"node tools/build-test.js","dist:minify-main":"uglifyjs --config-file .uglify.json build/citation.js -o build/citation.min.js","dist:minify-test":"uglifyjs --config-file .uglify.json build/test.citation.js -o build/test.citation.min.js","dist:regular":"npm-run-all dist:regular-*","dist:minify":"npm-run-all dist:minify-*","dist:main":"npm-run-all dist:*-main","dist:test":"npm-run-all dist:*-test",dist:"npm-run-all dist:*-*","--6--":"generate","generate:files":"npm run dist","generate:docs":"markdown-toc -i README.md && jsdoc -c .jsdoc.json","generate:disc":"node tools/disc.js",generate:"npm-run-all generate:*","--7--":"hooks",preversion:"npm run lint && npm run test",prepublishOnly:"npm run compile && npm run dist:main"},author:"Lars Willighagen (https://larsgw.github.io)",license:"MIT",bin:"bin/cmd.js",man:"bin/man/citation-js.1",bugs:{url:"https://github.com/larsgw/citation.js/issues"},engines:{node:">=6.0.0"}}},{}],362:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i["default"]=void 0;var s,n=e("../parse/"),o=(s=e("./index"))&&s.__esModule?s:{"default":s};var c,a,l=(c=regeneratorRuntime.mark(function t(e,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=o["default"],t.next=3,e;case 3:return t.t1=t.sent,t.t2=r,t.abrupt("return",new t.t0(t.t1,t.t2));case 6:case"end":return t.stop()}},t,this)}),a=function(){var t=this,r=arguments;return new Promise(function(n,o){var a=c.apply(t,r);function e(t,e){try{var r=a[t](e),i=r.value}catch(s){return void o(s)}r.done?n(i):Promise.resolve(i).then(l,u)}function l(t){e("next",t)}function u(t){e("throw",t)}l()})},function(t,e){return a.apply(this,arguments)}),u=function(t,e,r){var i=(0,n.chainAsync)(t);return"function"!=typeof e||r||(r=e,e=undefined),"function"==typeof r?(i.then(function(t){return r(new o["default"](t,e))}),undefined):l(i,e)};i["default"]=u},{"../parse/":400,"./index":364}],363:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.get=r.getIds=r.format=void 0;var h=t("./static"),s=t("../get/registrar"),n=t("../parse/");function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.getIds=function(){return this.data.map(function(t){return t.id})};r.format=function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return s.format.apply(void 0,[t,(0,n.csl)(this.data)].concat(r))};r.get=function(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};try{(0,h.validateOutputOptions)(t)}catch(f){var e=f.message;logger.error("[get]",e)}var r,i=Object.assign({},this.defaultOptions,this._options.output,t),s=i.type,n=g(i.style.split("-"),2),o=n[0],a=n[1],l="citation"===o?"bibliography":"csl"===o?"data":o,u="string"===s?"text":"json"===s?"object":s;switch(l){case"bibliography":r={template:a,lang:i.lang,format:u,append:i.append,prepend:i.prepend};break;case"data":case"bibtex":case"bibtxt":r={type:u};break;default:logger.error("[get]","Invalid options")}var c=this.format(l,r),p=i.format;if("real"===p&&"html"===u&&"undefined"!=typeof document&&"function"==typeof document.createElement){var m=document.createElement("div");return m.innerHTML=c,m.firstChild}return"string"===p&&"object"===d(c)?JSON.stringify(c):c}},{"../get/registrar":396,"../parse/":400,"./static":369}],364:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i["default"]=void 0;var s=u(e("./log")),n=u(e("./options")),o=u(e("./set")),a=u(e("./sort")),l=u(e("./get"));function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}function c(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};return this instanceof c?(this._options=e||{},this.log=[],this.data=[],this.set(t,e),this.options(e),this.save(),this):new c(t,e)}Object.assign(c.prototype,s,n,o,a,l),c.prototype[Symbol.iterator]=regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this.data,"t0",1);case 1:case"end":return t.stop()}},t,this)});var p=c;i["default"]=p},{"./get":363,"./log":365,"./options":366,"./set":367,"./sort":368}],365:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.save=r.undo=r.retrieveLastVersion=r.retrieveVersion=r.currentVersion=void 0;var i,n=(i=t("./index"))&&i.__esModule?i:{"default":i};function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r.currentVersion=function(){return this.log.length};r.retrieveVersion=function(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:1;if(t<=0||t>this.currentVersion())return null;var e=o(this.log[t-1],2),r=e[0],i=e[1],s=new n["default"](JSON.parse(r),JSON.parse(i));return s.log=this.log.slice(0,t),s};r.undo=function(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:1;return this.retrieveVersion(this.currentVersion()-t)};r.retrieveLastVersion=function(){return this.retrieveVersion(this.currentVersion())};r.save=function(){return this.log.push([JSON.stringify(this.data),JSON.stringify(this._options)]),this}},{"./index":364}],366:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.defaultOptions=r.options=void 0;var s=t("./validate");r.defaultOptions={format:"real",type:"json",style:"csl",lang:"en-US"};r.options=function(t,e){e&&this.save();try{(0,s.validateOutputOptions)(t),Object.assign(this._options,t)}catch(i){var r=i.message;logger.warn("[options]",r)}return this}},{"./validate":370}],367:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.reset=i.setAsync=i.set=i.addAsync=i.add=void 0;var s,a=e("../parse/"),l=(s=e("../util/fetchId"))&&s.__esModule?s:{"default":s};function n(i){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=i.apply(t,r);function e(t,e){try{var r=a[t](e),i=r.value}catch(s){return void o(s)}r.done?n(i):Promise.resolve(i).then(l,u)}function l(t){e("next",t)}function u(t){e("throw",t)}l()})}}function u(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}i.add=function(t){var e,r=this,i=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},s=2<arguments.length&&arguments[2]!==undefined&&arguments[2];return!0!==i&&!0!==s||this.save(),(e=this.data).push.apply(e,u((0,a.chain)(t,i))),this.data.filter(function(t){return!t.hasOwnProperty("id")}).forEach(function(t){t.id=(0,l["default"])(r.getIds(),"temp_id_")}),this};var o,c=(o=n(regeneratorRuntime.mark(function t(e){var r,i,s,n=this,o=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=1<o.length&&o[1]!==undefined?o[1]:{},s=2<o.length&&o[2]!==undefined&&o[2],!0!==i&&!0!==s||this.save(),t.t0=(r=this.data).push,t.t1=r,t.t2=u,t.next=8,(0,a.chainAsync)(e,i);case 8:return t.t3=t.sent,t.t4=(0,t.t2)(t.t3),t.t0.apply.call(t.t0,t.t1,t.t4),this.data.filter(function(t){return!t.hasOwnProperty("id")}).forEach(function(t){t.id=(0,l["default"])(n.getIds(),"temp_id_")}),t.abrupt("return",this);case 13:case"end":return t.stop()}},t,this)})),function(t){return o.apply(this,arguments)});i.addAsync=c;i.set=function(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=2<arguments.length&&arguments[2]!==undefined&&arguments[2];return!0!==e&&!0!==r||this.save(),this.data=[],"boolean"!=typeof e?this.add(t,e):this.add(t)};var p,m=(p=n(regeneratorRuntime.mark(function t(e){var r,i,s=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=1<s.length&&s[1]!==undefined?s[1]:{},i=2<s.length&&s[2]!==undefined&&s[2],!0!==r&&!0!==i||this.save(),this.data=[],t.abrupt("return","boolean"!=typeof r?this.addAsync(e,r):this.addAsync(e));case 5:case"end":return t.stop()}},t,this)})),function(t){return p.apply(this,arguments)});i.setAsync=m;i.reset=function(t){return t&&this.save(),this.data=[],this._options={},this}},{"../parse/":400,"../util/fetchId":444}],368:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.sort=void 0;var i,s=t("../get/modules/label"),n=(i=t("../get/name"))&&i.__esModule?i:{"default":i};function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var a=function(t,e){var r=(2<arguments.length&&arguments[2]!==undefined?arguments[2]:"label"===e)?(0,s.getLabel)(t):t[e];switch(e){case"author":case"editor":return r.map(function(t){return t.literal||t.family||(0,n["default"])(t)});case"accessed":case"issued":return r["date-parts"][0];case"page":return r.split("-").map(function(t){return parseInt(t)});case"edition":case"issue":case"volume":return r=parseInt(r),isNaN(r)?-Infinity:r;default:return r||-Infinity}},l=function(t,e,r){var i=3<arguments.length&&arguments[3]!==undefined?arguments[3]:/^!/.test(r);r=r.replace(/^!/,"");var s=a(t,r),n=a(e,r);return s===n?0:i!==n<s?1:-1};r.sort=function(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:[];return(1<arguments.length?arguments[1]:undefined)&&this.save(),this.data.sort("function"==typeof t?t:function(){for(var t=arguments.length,s=new Array(t),e=0;e<t;e++)s[e]=arguments[e];return function(t,e){for(var r=s.slice(),i=0;!i&&r.length;)i=l(t,e,r.shift());return i}}.apply(void 0,o(t).concat(["label"]))),this}},{"../get/modules/label":392,"../get/name":395}],369:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={async:!0};Object.defineProperty(r,"async",{enumerable:!0,get:function(){return n["default"]}});var s,n=(s=t("./async"))&&s.__esModule?s:{"default":s},o=t("./validate");Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return o[t]}}))})},{"./async":362,"./validate":370}],370:[function(t,e,r){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0}),r.validateOutputOptions=r.validateOptions=void 0;var l=["real","string"],u=["json","html","string","rtf"],c=["csl","bibtex","bibtxt","citation-*"],p=["string","function"],i=function(t){if("object"!==a(t))throw new TypeError("Options not an object!");var e=t.format,r=t.type,i=t.style,s=t.lang,n=t.append,o=t.prepend;if(e&&!l.includes(e))throw new TypeError('Option format ("'.concat(e,'") should be one of: ').concat(l));if(r&&!u.includes(r))throw new TypeError('Option type ("'.concat(r,'") should be one of: ').concat(u));if(i&&!c.includes(i)&&!/^citation/.test(i))throw new TypeError('Option style ("'.concat(i,'") should be one of: ').concat(c));if(s&&"string"!=typeof s)throw new TypeError("Option lang should be a string, but is a ".concat(a(s)));if(o&&!p.includes(a(o)))throw new TypeError("Option prepend should be a string or a function, but is a ".concat(a(o)));if(n&&!p.includes(a(n)))throw new TypeError("Option append should be a string or a function, but is a ".concat(a(n)));if(/^citation/.test(i)&&"json"===r)throw new Error("Combination type/style of json/citation-* is not valid: ".concat(r,"/").concat(i));return!0};r.validateOutputOptions=i;r.validateOptions=function(t){if("object"!==a(t))throw new TypeError("Options not an object!");if(t.output)i(t.output);else{if(t.maxChainLength&&"number"!=typeof t.maxChainLength)throw new TypeError("Option maxChainLength should be a number");if(t.forceType&&"string"!=typeof t.forceType)throw new TypeError("Option forceType should be a string")}return!0}},{}],371:[function(t,e,r){"use strict";function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var i=function(t){var e=s(t["date-parts"],1)[0],r=1<arguments.length&&arguments[1]!==undefined?arguments[1]:"-",i=e.map(function(t){return t.toString()});switch(i.length){case 3:i[2]=i[2].padStart(2,"0");case 2:i[1]=i[1].padStart(2,"0");case 1:i[0]=i[0].padStart(4,"0")}return i.join(r)};r["default"]=i},{}],372:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.textDict=r.htmlDict=r.get=r.list=r.has=r.remove=r.add=r.register=void 0;var i,s=(i=t("../util/register"))&&i.__esModule?i:{"default":i};function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=new s["default"]({html:{bibliographyContainer:['<div class="csl-bib-body>',"</div>"],entry:['<div class="csl-entry>',"</div>"],list:['<ul style="list-style-type:none">',"</ul>"],listItem:["<li>","</li>"]},text:{bibliographyContainer:["","\n"],entry:["","\n"],list:["\n",""],listItem:["\t","\n"]}});r.register=o;r.add=function(t,e){!function(t,e){if("string"!=typeof t)throw new TypeError("Invalid dict name, expected string, got ".concat(n(t)));if("object"!==n(e))throw new TypeError("Invalid dict, expected object, got ".concat(n(e)));for(var r in e){var i=e[r];if(!Array.isArray(i)||i.some(function(t){return"string"!=typeof t}))throw new TypeError('Invalid dict entry "'.concat(r,'", expected array of strings'))}}(t,e),o.set(t,e)};r.remove=function(t){o.remove(t)};r.has=function(t){return o.has(t)};r.list=function(){return o.list()};r.get=function(t){return o.has(t)?o.get(t):(logger.error("[get]",'Dict "'.concat(t,'" unavailable')),undefined)};r.htmlDict={wr_start:'<div class="csl-bib-body">',wr_end:"</div>",en_start:'<div class="csl-entry">',en_end:"</div>",ul_start:'<ul style="list-style-type:none">',ul_end:"</ul>",li_start:"<li>",li_end:"</li>"};r.textDict={wr_start:"",wr_end:"\n",en_start:"",en_end:"\n",ul_start:"\n",ul_end:"",li_start:"\t",li_end:"\n"}},{"../util/register":446}],373:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={bibtex:!0,date:!0,name:!0,dict:!0,bibtxt:!0,json:!0,label:!0};Object.defineProperty(r,"date",{enumerable:!0,get:function(){return s["default"]}}),Object.defineProperty(r,"name",{enumerable:!0,get:function(){return n["default"]}}),Object.defineProperty(r,"bibtxt",{enumerable:!0,get:function(){return p["default"]}}),Object.defineProperty(r,"json",{enumerable:!0,get:function(){return m.getJsonWrapper}}),Object.defineProperty(r,"label",{enumerable:!0,get:function(){return f.getLabel}}),r.dict=r.bibtex=void 0;var s=d(t("./date")),n=d(t("./name"));t("./modules/");var o=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}}(t("./dict"));r.dict=o;var a=d(t("./modules/bibtex/json")),l=d(t("./modules/bibtex/label")),u=d(t("./modules/bibtex/text")),c=d(t("./modules/bibtex/type")),p=d(t("./modules/bibtex/bibtxt")),m=t("./modules/json"),f=t("./modules/label"),h=t("./registrar");function d(t){return t&&t.__esModule?t:{"default":t}}Object.keys(h).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return h[t]}}))});var g={json:a["default"],label:l["default"],text:u["default"],type:c["default"]};r.bibtex=g},{"./date":371,"./dict":372,"./modules/":390,"./modules/bibtex/bibtxt":374,"./modules/bibtex/json":376,"./modules/bibtex/label":377,"./modules/bibtex/text":378,"./modules/bibtex/type":379,"./modules/json":391,"./modules/label":392,"./name":395,"./registrar":396}],374:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.getBibtxt=void 0;var i,n=(i=t("./json"))&&i.__esModule?i:{"default":i},s=t("../../dict");function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var a=function(t,s){var e=t.map(function(t){var e=(0,n["default"])(t);e.properties.type=e.type;var r=Object.entries(e.properties).map(function(t){var e=o(t,2),r=e[0],i=e[1];return s.listItem.join("".concat(r,": ").concat(i))}).join("");return s.entry.join("[".concat(e.label,"]").concat(s.list.join(r)))}).join("\n");return s.bibliographyContainer.join(e)};r.getBibtxt=a;var l=function(t,e){var r=(0,s.get)(e?"html":"text");return a(t,r)};r["default"]=l},{"../../dict":372,"./json":376}],375:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var i,o=t("../../dict"),a=(i=t("./json"))&&i.__esModule?i:{"default":i},s=t("./text"),n=t("./bibtxt");var l=function(n){return function(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=e.type,i=e.format,s=void 0===i?r||"text":i;return"object"===s?t.map(a["default"]):(0,o.has)(s)?n(t,(0,o.get)(s)):""}},u={bibtex:l(s.getBibtex),bibtxt:l(n.getBibtxt)};r["default"]=u},{"../../dict":372,"./bibtxt":374,"./json":376,"./text":378}],376:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var o=i(t("./type")),a=i(t("./label")),l=i(t("../../name")),u=i(t("../../date"));function i(t){return t&&t.__esModule?t:{"default":t}}var s=function(t){var e={label:(0,a["default"])(t),type:(0,o["default"])(t.type)},r={},i={"collection-title":"series","container-title":"chapter"===t.type?"booktitle":"journal",edition:"edition",event:"organization",DOI:"doi",ISBN:"isbn",ISSN:"issn",issue:"number",language:"language",note:"note","number-of-pages":"numpages",PMID:"pmid",PMCID:"pmcid",publisher:"publisher","publisher-place":"address",title:"title",URL:"url",volume:"volume"};for(var s in i)t.hasOwnProperty(s)&&(r[i[s]]=t[s]+"");if(t.author&&(r.author=t.author.map(function(t){return(0,l["default"])(t,!0)}).join(" and ")),t.editor&&(r.editor=t.editor.map(function(t){return(0,l["default"])(t,!0)}).join(" and ")),!t.note&&t.accessed&&(r.note="[Online; accessed ".concat((0,u["default"])(t.accessed),"]")),t.page&&(r.pages=t.page.replace("-","--")),t.issued){var n=t.issued["date-parts"][0];0<n.length&&(r.date=(0,u["default"])(t.issued),r.year=n[0].toString()),1<n.length&&(r.month=n[1].toString()),2<n.length&&(r.day=n[2].toString())}return e.properties=r,e};r["default"]=s},{"../../date":371,"../../name":395,"./label":377,"./type":379}],377:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var i=function(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};if(t["citation-label"])return t["citation-label"];var e="";return t.author&&(e+=t.author[0].family||t.author[0].literal),t.issued&&t.issued["date-parts"]&&t.issued["date-parts"][0]&&(e+=t.issued["date-parts"][0][0]),t["year-suffix"]?e+=t["year-suffix"]:t.title&&(e+=t.title.replace(/<\/?.*?>/g,"").match(/^(?:(?:the|a|an)\s+)?(\S+)/i)[1]),e};r["default"]=i},{}],378:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.getBibtex=void 0;var i,l=(i=t("./json"))&&i.__esModule?i:{"default":i},s=t("../../dict");function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var n={"|":"{\\textbar}","<":"{\\textless}",">":"{\\textgreater}","~":"{\\textasciitilde}","^":"{\\textasciicircum}","\\":"{\\textbackslash}","{":"\\{\\vphantom{\\}}","}":"\\vphantom{\\{}\\}"};function o(t){return t.replace(/[|<>~^\\{}]/g,function(t){return n[t]})}var a={"":"","{":"}"};var c={i:"\\textit{",b:"\\textbf{",sc:"\\textsc{",sup:"\\textsuperscript{",sub:"\\textsubscript{",'span style="font-variant:small-caps;"':"\\textsc{",'span class="nocase"':"{"};var p=["title"];function m(t,e,r){var i,s;return e=p.includes(t)?e.split(/<(\/.*?|i|b|sc|sup|sub|span.*?)>/g).map(function(t,e){return e%2==0?o(t):t in c?c[t]:"}"}).join(""):o(e),r.listItem.join("".concat(t,"=").concat((i=e,(s=isNaN(+i)?"{":"")+i+a[s]),","))}function f(t,e){var r,i,s=(0,l["default"])(t),n=s.type,o=s.label,a=s.properties;return r=Object.entries(a),i=e,a=r.map(function(t){var e=u(t,2);return m(e[0],e[1],i)}).join(""),e.entry.join("@".concat(n,"{").concat(o,",").concat(e.list.join(a),"}"))}var h=function(t,e){var r=t.map(function(t){return f(t,e)}).join("");return e.bibliographyContainer.join(r)};r.getBibtex=h;var d=function(t,e){var r=(0,s.get)(e?"html":"text");return h(t,r)};r["default"]=d},{"../../dict":372,"./json":376}],379:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var i=function(t){switch(t){case"article":case"article-journal":case"article-magazine":case"article-newspaper":return"article";case"book":return"book";case"chapter":return"incollection";case"manuscript":return"unpublished";case"paper-conference":return"inproceedings";case"patent":return"patent";case"report":return"techreport";case"thesis":return"phdthesis";case"graphic":case"interview":case"motion_picture":case"personal_communication":case"webpage":return"misc";default:return logger.warn("CSL publication type not recognized: ".concat(t,'}. Interpreting as "misc".')),"misc"}};r["default"]=i},{}],380:[function(t,e,r){"use strict";function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r.getWrappedEntry=void 0;var f=function(t,e){return"function"==typeof e?e(t):"string"==typeof e?e:""},h=/^([^>]+>)([\s\S]+)(<[^<]+)$/i;r.getWrappedEntry=function(t,e,r){var i=r.prepend,s=r.append,n=m(t.match(h)||[],4),o=n[1],a=void 0===o?"":o,l=n[2],u=void 0===l?t:l,c=n[3],p=void 0===c?"":c;return a+f(e,i)+u+f(e,s)+p}},{}],381:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getPrefixedEntry=r.getAttributedEntry=void 0;var i=function(t,e,r){return t.replace(/^\s*<[a-z]+/i,"$& data-".concat(e,'="').concat(r,'"'))};r.getAttributedEntry=i;r.getPrefixedEntry=function(t,e){return i(t,"csl-entry-id",e)}},{}],382:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=function(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=e.template,i=void 0===r?"apa":r,s=e.lang,n=void 0===s?"en-US":s,o=e.format,a=void 0===o?"text":o,l=(0,x["default"])(t,i,n,a),u=l.updateItems(t.map(function(t){return t.id})),c=(d=l.makeBibliography(),g=2,function(t){if(Array.isArray(t))return t}(d)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(d,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),p=c[0],m=p.bibstart,f=p.bibend,h=c[1].map(function(t,e){return(0,w.getPrefixedEntry)(t,u[e])});var d,g;if(e.append||e.prepend){var b=e.append,_=e.prepend,y=t.reduce(function(t,e){return t[e.id]=e,t},{}),v=u.map(function(t){return y[t]});h.forEach(function(t,e){h[e]=(0,A.getWrappedEntry)(t,v[e],{append:b,prepend:_})})}return m+h.join("")+f};var i,x=(i=t("./engines"))&&i.__esModule?i:{"default":i},w=t("./attr.js"),A=t("./affix")},{"./affix":380,"./attr.js":381,"./engines":384}],383:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=function(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=e.template,i=void 0===r?"apa":r,s=e.lang,n=void 0===s?"en-US":s,o=e.format,a=void 0===o?"text":o,l=t.map(function(t){var e=t.id;return e}),u=e.entry?[].concat(e.entry):l,c=(0,p["default"])(t,i,n,a);return c.updateItems(l),c.previewCitationCluster({citationItems:u.map(function(t){return{id:t}}),properties:{noteIndex:0}},[],[],a)};var i,p=(i=t("./engines"))&&i.__esModule?i:{"default":i}},{"./engines":384}],384:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.fetchEngine=r["default"]=void 0;var a=i(t("citeproc")),l=i(t("./styles")),u=t("./locales");function i(t){return t&&t.__esModule?t:{"default":t}}var c={},p=function(t,e,r,i,s){var n,o="".concat(t,"|").concat(e);return c.hasOwnProperty(o)?(n=c[o]).sys.retrieveItem=i:n=c[o]=new a["default"].Engine({retrieveLocale:s,retrieveItem:i},r,e,!0),n};r.fetchEngine=p;var s=function(t,e,r,i){var s=t.reduce(function(t,e){return t[e.id]=e,t},{}),n=(0,l["default"])(e);r=u.locales.has(r)?r:"en-US";var o=p(e,r,n,function(t){return s[t]},u.locales.get.bind(u.locales));return o.setOutputFormat(i),o};r["default"]=s},{"./locales":387,"./styles":389,citeproc:323}],385:[function(t,e,r){"use strict";var i=t("../../../plugins/"),s=t("./locales"),n=t("./styles"),o=u(t("./engines")),a=u(t("./bibliography")),l=u(t("./citation"));function u(t){return t&&t.__esModule?t:{"default":t}}(0,i.add)("csl",{output:{bibliography:a["default"],citation:l["default"]},config:{engine:o["default"],locales:s.locales,templates:n.templates}})},{"../../../plugins/":440,"./bibliography":382,"./citation":383,"./engines":384,"./locales":387,"./styles":389}],386:[function(t,e,r){e.exports={"en-US":'<?xml version="1.0" encoding="utf-8"?><locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="en-US"><info><rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights><updated>2015-10-10T23:31:02+00:00</updated></info><style-options punctuation-in-quote="true"/><date form="text"><date-part name="month" suffix=" "/><date-part name="day" suffix=", "/><date-part name="year"/></date><date form="numeric"><date-part name="month" form="numeric-leading-zeros" suffix="/"/><date-part name="day" form="numeric-leading-zeros" suffix="/"/><date-part name="year"/></date><terms><term name="accessed">accessed</term><term name="and">and</term><term name="and others">and others</term><term name="anonymous">anonymous</term><term name="anonymous" form="short">anon.</term><term name="at">at</term><term name="available at">available at</term><term name="by">by</term><term name="circa">circa</term><term name="circa" form="short">c.</term><term name="cited">cited</term><term name="edition"><single>edition</single><multiple>editions</multiple></term><term name="edition" form="short">ed.</term><term name="et-al">et al.</term><term name="forthcoming">forthcoming</term><term name="from">from</term><term name="ibid">ibid.</term><term name="in">in</term><term name="in press">in press</term><term name="internet">internet</term><term name="interview">interview</term><term name="letter">letter</term><term name="no date">no date</term><term name="no date" form="short">n.d.</term><term name="online">online</term><term name="presented at">presented at the</term><term name="reference"><single>reference</single><multiple>references</multiple></term><term name="reference" form="short"><single>ref.</single><multiple>refs.</multiple></term><term name="retrieved">retrieved</term><term name="scale">scale</term><term name="version">version</term><term name="ad">AD</term><term name="bc">BC</term><term name="open-quote">\u201c</term><term name="close-quote">\u201d</term><term name="open-inner-quote">\u2018</term><term name="close-inner-quote">\u2019</term><term name="page-range-delimiter">\u2013</term><term name="ordinal">th</term><term name="ordinal-01">st</term><term name="ordinal-02">nd</term><term name="ordinal-03">rd</term><term name="ordinal-11">th</term><term name="ordinal-12">th</term><term name="ordinal-13">th</term><term name="long-ordinal-01">first</term><term name="long-ordinal-02">second</term><term name="long-ordinal-03">third</term><term name="long-ordinal-04">fourth</term><term name="long-ordinal-05">fifth</term><term name="long-ordinal-06">sixth</term><term name="long-ordinal-07">seventh</term><term name="long-ordinal-08">eighth</term><term name="long-ordinal-09">ninth</term><term name="long-ordinal-10">tenth</term><term name="book"><single>book</single><multiple>books</multiple></term><term name="chapter"><single>chapter</single><multiple>chapters</multiple></term><term name="column"><single>column</single><multiple>columns</multiple></term><term name="figure"><single>figure</single><multiple>figures</multiple></term><term name="folio"><single>folio</single><multiple>folios</multiple></term><term name="issue"><single>number</single><multiple>numbers</multiple></term><term name="line"><single>line</single><multiple>lines</multiple></term><term name="note"><single>note</single><multiple>notes</multiple></term><term name="opus"><single>opus</single><multiple>opera</multiple></term><term name="page"><single>page</single><multiple>pages</multiple></term><term name="number-of-pages"><single>page</single><multiple>pages</multiple></term><term name="paragraph"><single>paragraph</single><multiple>paragraphs</multiple></term><term name="part"><single>part</single><multiple>parts</multiple></term><term name="section"><single>section</single><multiple>sections</multiple></term><term name="sub verbo"><single>sub verbo</single><multiple>sub verbis</multiple></term><term name="verse"><single>verse</single><multiple>verses</multiple>\n</term><term name="volume"><single>volume</single><multiple>volumes</multiple></term><term name="book" form="short"><single>bk.</single><multiple>bks.</multiple></term><term name="chapter" form="short"><single>chap.</single><multiple>chaps.</multiple></term><term name="column" form="short"><single>col.</single><multiple>cols.</multiple></term><term name="figure" form="short"><single>fig.</single><multiple>figs.</multiple></term><term name="folio" form="short"><single>fol.</single><multiple>fols.</multiple></term><term name="issue" form="short"><single>no.</single><multiple>nos.</multiple></term><term name="line" form="short"><single>l.</single><multiple>ll.</multiple></term><term name="note" form="short"><single>n.</single><multiple>nn.</multiple></term><term name="opus" form="short"><single>op.</single><multiple>opp.</multiple></term><term name="page" form="short"><single>p.</single><multiple>pp.</multiple></term><term name="number-of-pages" form="short"><single>p.</single><multiple>pp.</multiple></term><term name="paragraph" form="short"><single>para.</single><multiple>paras.</multiple></term><term name="part" form="short"><single>pt.</single><multiple>pts.</multiple></term><term name="section" form="short"><single>sec.</single><multiple>secs.</multiple></term><term name="sub verbo" form="short"><single>s.v.</single><multiple>s.vv.</multiple></term><term name="verse" form="short"><single>v.</single><multiple>vv.</multiple></term><term name="volume" form="short"><single>vol.</single><multiple>vols.</multiple></term><term name="paragraph" form="symbol"><single>\xb6</single><multiple>\xb6\xb6</multiple></term><term name="section" form="symbol"><single>\xa7</single><multiple>\xa7\xa7</multiple></term><term name="director"><single>director</single><multiple>directors</multiple></term><term name="editor"><single>editor</single><multiple>editors</multiple></term><term name="editorial-director"><single>editor</single><multiple>editors</multiple></term><term name="illustrator"><single>illustrator</single><multiple>illustrators</multiple></term><term name="translator"><single>translator</single><multiple>translators</multiple></term><term name="editortranslator"><single>editor &amp; translator</single><multiple>editors &amp; translators</multiple></term><term name="director" form="short"><single>dir.</single><multiple>dirs.</multiple></term><term name="editor" form="short"><single>ed.</single><multiple>eds.</multiple></term><term name="editorial-director" form="short"><single>ed.</single><multiple>eds.</multiple></term><term name="illustrator" form="short"><single>ill.</single><multiple>ills.</multiple></term><term name="translator" form="short"><single>tran.</single><multiple>trans.</multiple></term><term name="editortranslator" form="short"><single>ed. &amp; tran.</single><multiple>eds. &amp; trans.</multiple></term><term name="container-author" form="verb">by</term><term name="director" form="verb">directed by</term><term name="editor" form="verb">edited by</term><term name="editorial-director" form="verb">edited by</term><term name="illustrator" form="verb">illustrated by</term><term name="interviewer" form="verb">interview by</term><term name="recipient" form="verb">to</term><term name="reviewed-author" form="verb">by</term><term name="translator" form="verb">translated by</term><term name="editortranslator" form="verb">edited &amp; translated by</term><term name="director" form="verb-short">dir. by</term><term name="editor" form="verb-short">ed. by</term><term name="editorial-director" form="verb-short">ed. by</term><term name="illustrator" form="verb-short">illus. by</term><term name="translator" form="verb-short">trans. by</term><term name="editortranslator" form="verb-short">ed. &amp; trans. by</term><term name="month-01">January</term><term name="month-02">February</term><term name="month-03">March</term><term name="month-04">April</term><term name="month-05">May</term><term name="month-06">June</term><term name="month-07">July</term><term name="month-08">August</term><term name="month-09">September</term>\n<term name="month-10">October</term><term name="month-11">November</term><term name="month-12">December</term><term name="month-01" form="short">Jan.</term><term name="month-02" form="short">Feb.</term><term name="month-03" form="short">Mar.</term><term name="month-04" form="short">Apr.</term><term name="month-05" form="short">May</term><term name="month-06" form="short">Jun.</term><term name="month-07" form="short">Jul.</term><term name="month-08" form="short">Aug.</term><term name="month-09" form="short">Sep.</term><term name="month-10" form="short">Oct.</term><term name="month-11" form="short">Nov.</term><term name="month-12" form="short">Dec.</term><term name="season-01">Spring</term><term name="season-02">Summer</term><term name="season-03">Autumn</term><term name="season-04">Winter</term></terms></locale>',"nl-NL":'<?xml version="1.0" encoding="utf-8"?><locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="nl-NL"><info><translator><name>Rintze Zelle</name><uri>http://twitter.com/rintzezelle</uri></translator><rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights><updated>2012-07-04T23:31:02+00:00</updated></info><style-options punctuation-in-quote="false"/><date form="text"><date-part name="day" suffix=" "/><date-part name="month" suffix=" "/><date-part name="year"/></date><date form="numeric"><date-part name="day" suffix="-" range-delimiter="/"/><date-part name="month" form="numeric" suffix="-" range-delimiter="/"/><date-part name="year"/></date><terms><term name="accessed">geraadpleegd</term><term name="and">en</term><term name="and others">en anderen</term><term name="anonymous">anoniem</term><term name="anonymous" form="short">anon.</term><term name="at">bij</term><term name="available at">beschikbaar op</term><term name="by">door</term><term name="circa">circa</term><term name="circa" form="short">c.</term><term name="cited">geciteerd</term><term name="edition"><single>editie</single><multiple>edities</multiple></term><term name="edition" form="short">ed.</term><term name="et-al">e.a.</term><term name="forthcoming">in voorbereiding</term><term name="from">van</term><term name="ibid">ibid.</term><term name="in">in</term><term name="in press">in druk</term><term name="internet">internet</term><term name="interview">interview</term><term name="letter">brief</term><term name="no date">zonder datum</term><term name="no date" form="short">z.d.</term><term name="online">online</term><term name="presented at">gepresenteerd bij</term><term name="reference"><single>referentie</single><multiple>referenties</multiple></term><term name="reference" form="short"><single>ref.</single><multiple>refs.</multiple></term><term name="retrieved">geraadpleegd</term><term name="scale">schaal</term><term name="version">versie</term><term name="ad">AD</term><term name="bc">BC</term><term name="open-quote">\u201c</term><term name="close-quote">\u201d</term><term name="open-inner-quote">\u2018</term><term name="close-inner-quote">\u2019</term><term name="page-range-delimiter">\u2013</term><term name="ordinal">ste</term><term name="ordinal-00" match="whole-number">de</term><term name="ordinal-02" match="last-two-digits">de</term><term name="ordinal-03" match="last-two-digits">de</term><term name="ordinal-04" match="last-two-digits">de</term><term name="ordinal-05" match="last-two-digits">de</term><term name="ordinal-06" match="last-two-digits">de</term><term name="ordinal-07" match="last-two-digits">de</term><term name="ordinal-09" match="last-two-digits">de</term><term name="ordinal-10">de</term><term name="ordinal-11">de</term><term name="ordinal-12">de</term><term name="ordinal-13">de</term><term name="ordinal-14">de</term><term name="ordinal-15">de</term><term name="ordinal-16">de</term><term name="ordinal-17">de</term><term name="ordinal-18">de</term><term name="ordinal-19">de</term><term name="long-ordinal-01">eerste</term><term name="long-ordinal-02">tweede</term><term name="long-ordinal-03">derde</term><term name="long-ordinal-04">vierde</term><term name="long-ordinal-05">vijfde</term><term name="long-ordinal-06">zesde</term><term name="long-ordinal-07">zevende</term><term name="long-ordinal-08">achtste</term><term name="long-ordinal-09">negende</term><term name="long-ordinal-10">tiende</term><term name="book"><single>boek</single><multiple>boeken</multiple></term><term name="chapter"><single>hoofdstuk</single><multiple>hoofdstukken</multiple></term><term name="column"><single>column</single><multiple>columns</multiple></term><term name="figure"><single>figuur</single><multiple>figuren</multiple></term><term name="folio"><single>folio</single><multiple>folio\'s</multiple></term><term name="issue"><single>nummer</single><multiple>nummers</multiple></term><term name="line"><single>regel</single><multiple>regels</multiple>\n</term><term name="note"><single>aantekening</single><multiple>aantekeningen</multiple></term><term name="opus"><single>opus</single><multiple>opera</multiple></term><term name="page"><single>pagina</single><multiple>pagina\'s</multiple></term><term name="number-of-pages"><single>pagina</single><multiple>pagina\'s</multiple></term><term name="paragraph"><single>paragraaf</single><multiple>paragrafen</multiple></term><term name="part"><single>deel</single><multiple>delen</multiple></term><term name="section"><single>sectie</single><multiple>secties</multiple></term><term name="sub verbo"><single>sub verbo</single><multiple>sub verbis</multiple></term><term name="verse"><single>vers</single><multiple>versen</multiple></term><term name="volume"><single>volume</single><multiple>volumes</multiple></term><term name="book" form="short">bk.</term><term name="chapter" form="short">hfdst.</term><term name="column" form="short">col.</term><term name="figure" form="short">fig.</term><term name="folio" form="short">f.</term><term name="issue" form="short">nr.</term><term name="line" form="short">l.</term><term name="note" form="short">n.</term><term name="opus" form="short">op.</term><term name="page" form="short"><single>p.</single><multiple>pp.</multiple></term><term name="number-of-pages" form="short"><single>p.</single><multiple>pp.</multiple></term><term name="paragraph" form="short">par.</term><term name="part" form="short">deel</term><term name="section" form="short">sec.</term><term name="sub verbo" form="short"><single>s.v.</single><multiple>s.vv.</multiple></term><term name="verse" form="short"><single>v.</single><multiple>vv.</multiple></term><term name="volume" form="short"><single>vol.</single><multiple>vols.</multiple></term><term name="paragraph" form="symbol"><single>\xb6</single><multiple>\xb6\xb6</multiple></term><term name="section" form="symbol"><single>\xa7</single><multiple>\xa7\xa7</multiple></term><term name="director"><single>regisseur</single><multiple>regisseurs</multiple></term><term name="editor"><single>redacteur</single><multiple>redacteuren</multiple></term><term name="editorial-director"><single>redacteur</single><multiple>redacteuren</multiple></term><term name="illustrator"><single>illustrator</single><multiple>illustrators</multiple></term><term name="translator"><single>vertaler</single><multiple>vertalers</multiple></term><term name="editortranslator"><single>redacteur &amp; vertaler</single><multiple>redacteuren &amp; vertalers</multiple></term><term name="director" form="short"><single>reg.</single><multiple>reg.</multiple></term><term name="editor" form="short"><single>red.</single><multiple>red.</multiple></term><term name="editorial-director" form="short"><single>red.</single><multiple>red.</multiple></term><term name="illustrator" form="short"><single>ill.</single><multiple>ill.</multiple></term><term name="translator" form="short"><single>vert.</single><multiple>vert.</multiple></term><term name="editortranslator" form="short"><single>red. &amp; vert.</single><multiple>red. &amp; vert.</multiple></term><term name="container-author" form="verb">door</term><term name="director" form="verb">geregisseerd door</term><term name="editor" form="verb">bewerkt door</term><term name="editorial-director" form="verb">bewerkt door</term><term name="illustrator" form="verb">ge\xefllustreerd door</term><term name="interviewer" form="verb">ge\xefnterviewd door</term><term name="recipient" form="verb">ontvangen door</term><term name="reviewed-author" form="verb">door</term><term name="translator" form="verb">vertaald door</term><term name="editortranslator" form="verb">bewerkt &amp; vertaald door</term><term name="director" form="verb-short">geregisseerd door</term><term name="editor" form="verb-short">bewerkt door</term><term name="editorial-director" form="verb-short">bewerkt door</term><term name="illustrator" form="verb-short">ge\xefllustreerd door</term><term name="translator" form="verb-short">vertaald door</term><term name="editortranslator" form="verb-short">bewerkt &amp; vertaald door</term>\n<term name="month-01">januari</term><term name="month-02">februari</term><term name="month-03">maart</term><term name="month-04">april</term><term name="month-05">mei</term><term name="month-06">juni</term><term name="month-07">juli</term><term name="month-08">augustus</term><term name="month-09">september</term><term name="month-10">oktober</term><term name="month-11">november</term><term name="month-12">december</term><term name="month-01" form="short">jan.</term><term name="month-02" form="short">feb.</term><term name="month-03" form="short">mrt.</term><term name="month-04" form="short">apr.</term><term name="month-05" form="short">mei</term><term name="month-06" form="short">jun.</term><term name="month-07" form="short">jul.</term><term name="month-08" form="short">aug.</term><term name="month-09" form="short">sep.</term><term name="month-10" form="short">okt.</term><term name="month-11" form="short">nov.</term><term name="month-12" form="short">dec.</term><term name="season-01">lente</term><term name="season-02">zomer</term><term name="season-03">herst</term><term name="season-04">winter</term></terms></locale>',"fr-FR":'<?xml version="1.0" encoding="utf-8"?><locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="fr-FR"><info><translator><name>Gr\xe9goire Colly</name></translator><rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights><updated>2012-07-04T23:31:02+00:00</updated></info><style-options punctuation-in-quote="false" limit-day-ordinals-to-day-1="true"/><date form="text"><date-part name="day" suffix=" "/><date-part name="month" suffix=" "/><date-part name="year"/></date><date form="numeric"><date-part name="day" form="numeric-leading-zeros" suffix="/"/><date-part name="month" form="numeric-leading-zeros" suffix="/"/><date-part name="year"/></date><terms><term name="accessed">consult\xe9 le</term><term name="and">et</term><term name="and others">et autres</term><term name="anonymous">anonyme</term><term name="anonymous" form="short">anon.</term><term name="at">sur</term><term name="available at">disponible sur</term><term name="by">par</term><term name="circa">vers</term><term name="circa" form="short">v.</term><term name="cited">cit\xe9</term><term name="edition" gender="feminine"><single>\xe9dition</single><multiple>\xe9ditions</multiple></term><term name="edition" form="short">\xe9d.</term><term name="et-al">et al.</term><term name="forthcoming">\xe0 para\xeetre</term><term name="from">\xe0 l\'adresse</term><term name="ibid">ibid.</term><term name="in">in</term><term name="in press">sous presse</term><term name="internet">Internet</term><term name="interview">entretien</term><term name="letter">lettre</term><term name="no date">sans date</term><term name="no date" form="short">s.&#160;d.</term><term name="online">en ligne</term><term name="presented at">pr\xe9sent\xe9 \xe0</term><term name="reference"><single>r\xe9f\xe9rence</single><multiple>r\xe9f\xe9rences</multiple></term><term name="reference" form="short"><single>r\xe9f.</single><multiple>r\xe9f.</multiple></term><term name="retrieved">consult\xe9</term><term name="scale">\xe9chelle</term><term name="version">version</term><term name="ad">apr. J.-C.</term><term name="bc">av. J.-C.</term><term name="open-quote">\xab&#160;</term><term name="close-quote">&#160;\xbb</term><term name="open-inner-quote">\u201c</term><term name="close-inner-quote">\u201d</term><term name="page-range-delimiter">&#8209;</term><term name="ordinal">\u1d49</term><term name="ordinal-01" gender-form="feminine" match="whole-number">\u02b3\u1d49</term><term name="ordinal-01" gender-form="masculine" match="whole-number">\u1d49\u02b3</term><term name="long-ordinal-01">premier</term><term name="long-ordinal-02">deuxi\xe8me</term><term name="long-ordinal-03">troisi\xe8me</term><term name="long-ordinal-04">quatri\xe8me</term><term name="long-ordinal-05">cinqui\xe8me</term><term name="long-ordinal-06">sixi\xe8me</term><term name="long-ordinal-07">septi\xe8me</term><term name="long-ordinal-08">huiti\xe8me</term><term name="long-ordinal-09">neuvi\xe8me</term><term name="long-ordinal-10">dixi\xe8me</term><term name="book"><single>livre</single><multiple>livres</multiple></term><term name="chapter"><single>chapitre</single><multiple>chapitres</multiple></term><term name="column"><single>colonne</single><multiple>colonnes</multiple></term><term name="figure"><single>figure</single><multiple>figures</multiple></term><term name="folio"><single>folio</single><multiple>folios</multiple></term><term name="issue" gender="masculine"><single>num\xe9ro</single><multiple>num\xe9ros</multiple></term><term name="line"><single>ligne</single><multiple>lignes</multiple></term><term name="note"><single>note</single><multiple>notes</multiple></term><term name="opus"><single>opus</single><multiple>opus</multiple></term><term name="page"><single>page</single><multiple>pages</multiple></term><term name="number-of-pages"><single>page</single><multiple>pages</multiple></term><term name="paragraph"><single>paragraphe</single><multiple>paragraphes</multiple></term><term name="part"><single>partie</single><multiple>parties</multiple></term><term name="section"><single>section</single><multiple>sections</multiple>\n</term><term name="sub verbo"><single>sub verbo</single><multiple>sub verbis</multiple></term><term name="verse"><single>verset</single><multiple>versets</multiple></term><term name="volume" gender="masculine"><single>volume</single><multiple>volumes</multiple></term><term name="book" form="short">liv.</term><term name="chapter" form="short">chap.</term><term name="column" form="short">col.</term><term name="figure" form="short">fig.</term><term name="folio" form="short"><single>f\u1d52</single><multiple>f\u1d52\u02e2</multiple></term><term name="issue" form="short"><single>n\u1d52</single><multiple>n\u1d52\u02e2</multiple></term><term name="line" form="short">l.</term><term name="note" form="short">n.</term><term name="opus" form="short">op.</term><term name="page" form="short"><single>p.</single><multiple>p.</multiple></term><term name="number-of-pages" form="short"><single>p.</single><multiple>p.</multiple></term><term name="paragraph" form="short">paragr.</term><term name="part" form="short">part.</term><term name="section" form="short">sect.</term><term name="sub verbo" form="short"><single>s.&#160;v.</single><multiple>s.&#160;vv.</multiple></term><term name="verse" form="short"><single>v.</single><multiple>v.</multiple></term><term name="volume" form="short"><single>vol.</single><multiple>vol.</multiple></term><term name="paragraph" form="symbol"><single>\xa7</single><multiple>\xa7</multiple></term><term name="section" form="symbol"><single>\xa7</single><multiple>\xa7</multiple></term><term name="director"><single>r\xe9alisateur</single><multiple>r\xe9alisateurs</multiple></term><term name="editor"><single>\xe9diteur</single><multiple>\xe9diteurs</multiple></term><term name="editorial-director"><single>directeur</single><multiple>directeurs</multiple></term><term name="illustrator"><single>illustrateur</single><multiple>illustrateurs</multiple></term><term name="translator"><single>traducteur</single><multiple>traducteurs</multiple></term><term name="editortranslator"><single>\xe9diteur et traducteur</single><multiple>\xe9diteurs et traducteurs</multiple></term><term name="director" form="short"><single>r\xe9al.</single><multiple>r\xe9al.</multiple></term><term name="editor" form="short"><single>\xe9d.</single><multiple>\xe9d.</multiple></term><term name="editorial-director" form="short"><single>dir.</single><multiple>dir.</multiple></term><term name="illustrator" form="short"><single>ill.</single><multiple>ill.</multiple></term><term name="translator" form="short"><single>trad.</single><multiple>trad.</multiple></term><term name="editortranslator" form="short"><single>\xe9d. et trad.</single><multiple>\xe9d. et trad.</multiple></term><term name="container-author" form="verb">par</term><term name="director" form="verb">r\xe9alis\xe9 par</term><term name="editor" form="verb">\xe9dit\xe9 par</term><term name="editorial-director" form="verb">sous la direction de</term><term name="illustrator" form="verb">illustr\xe9 par</term><term name="interviewer" form="verb">entretien r\xe9alis\xe9 par</term><term name="recipient" form="verb">\xe0</term><term name="reviewed-author" form="verb">par</term><term name="translator" form="verb">traduit par</term><term name="editortranslator" form="verb">\xe9dit\xe9 et traduit par</term><term name="director" form="verb-short">r\xe9al. par</term><term name="editor" form="verb-short">\xe9d. par</term><term name="editorial-director" form="verb-short">ss la dir. de</term><term name="illustrator" form="verb-short">ill. par</term><term name="translator" form="verb-short">trad. par</term><term name="editortranslator" form="verb-short">\xe9d. et trad. par</term><term name="month-01" gender="masculine">janvier</term><term name="month-02" gender="masculine">f\xe9vrier</term><term name="month-03" gender="masculine">mars</term><term name="month-04" gender="masculine">avril</term><term name="month-05" gender="masculine">mai</term><term name="month-06" gender="masculine">juin</term><term name="month-07" gender="masculine">juillet</term><term name="month-08" gender="masculine">ao\xfbt</term><term name="month-09" gender="masculine">septembre</term><term name="month-10" gender="masculine">\noctobre</term><term name="month-11" gender="masculine">novembre</term><term name="month-12" gender="masculine">d\xe9cembre</term><term name="month-01" form="short">janv.</term><term name="month-02" form="short">f\xe9vr.</term><term name="month-03" form="short">mars</term><term name="month-04" form="short">avr.</term><term name="month-05" form="short">mai</term><term name="month-06" form="short">juin</term><term name="month-07" form="short">juill.</term><term name="month-08" form="short">ao\xfbt</term><term name="month-09" form="short">sept.</term><term name="month-10" form="short">oct.</term><term name="month-11" form="short">nov.</term><term name="month-12" form="short">d\xe9c.</term><term name="season-01">printemps</term><term name="season-02">\xe9t\xe9</term><term name="season-03">automne</term><term name="season-04">hiver</term></terms></locale>',"de-DE":'<?xml version="1.0" encoding="utf-8"?><locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="de-DE"><info><rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights><updated>2012-07-04T23:31:02+00:00</updated></info><style-options punctuation-in-quote="false"/><date form="text"><date-part name="day" form="ordinal" suffix=" "/><date-part name="month" suffix=" "/><date-part name="year"/></date><date form="numeric"><date-part name="day" form="numeric-leading-zeros" suffix="."/><date-part name="month" form="numeric-leading-zeros" suffix="."/><date-part name="year"/></date><terms><term name="accessed">zugegriffen</term><term name="and">und</term><term name="and others">und andere</term><term name="anonymous">ohne Autor</term><term name="anonymous" form="short">o.&#160;A.</term><term name="at">auf</term><term name="available at">verf\xfcgbar unter</term><term name="by">von</term><term name="circa">circa</term><term name="circa" form="short">ca.</term><term name="cited">zitiert</term><term name="edition"><single>Auflage</single><multiple>Auflagen</multiple></term><term name="edition" form="short">Aufl.</term><term name="et-al">u.&#160;a.</term><term name="forthcoming">i.&#160;E.</term><term name="from">von</term><term name="ibid">ebd.</term><term name="in">in</term><term name="in press">im Druck</term><term name="internet">Internet</term><term name="interview">Interview</term><term name="letter">Brief</term><term name="no date">ohne Datum</term><term name="no date" form="short">o.&#160;J.</term><term name="online">online</term><term name="presented at">gehalten auf der</term><term name="reference"><single>Referenz</single><multiple>Referenzen</multiple></term><term name="reference" form="short"><single>Ref.</single><multiple>Ref.</multiple></term><term name="retrieved">abgerufen</term><term name="scale">Ma\xdfstab</term><term name="version">Version</term><term name="ad">n.&#160;Chr.</term><term name="bc">v.&#160;Chr.</term><term name="open-quote">\u201e</term><term name="close-quote">\u201c</term><term name="open-inner-quote">\u201a</term><term name="close-inner-quote">\u2018</term><term name="page-range-delimiter">\u2013</term><term name="ordinal">.</term><term name="long-ordinal-01">erster</term><term name="long-ordinal-02">zweiter</term><term name="long-ordinal-03">dritter</term><term name="long-ordinal-04">vierter</term><term name="long-ordinal-05">f\xfcnfter</term><term name="long-ordinal-06">sechster</term><term name="long-ordinal-07">siebter</term><term name="long-ordinal-08">achter</term><term name="long-ordinal-09">neunter</term><term name="long-ordinal-10">zehnter</term><term name="book"><single>Buch</single><multiple>B\xfccher</multiple></term><term name="chapter"><single>Kapitel</single><multiple>Kapitel</multiple></term><term name="column"><single>Spalte</single><multiple>Spalten</multiple></term><term name="figure"><single>Abbildung</single><multiple>Abbildungen</multiple></term><term name="folio"><single>Blatt</single><multiple>Bl\xe4tter</multiple></term><term name="issue"><single>Nummer</single><multiple>Nummern</multiple></term><term name="line"><single>Zeile</single><multiple>Zeilen</multiple></term><term name="note"><single>Note</single><multiple>Noten</multiple></term><term name="opus"><single>Opus</single><multiple>Opera</multiple></term><term name="page"><single>Seite</single><multiple>Seiten</multiple></term><term name="number-of-pages"><single>Seite</single><multiple>Seiten</multiple></term><term name="paragraph"><single>Absatz</single><multiple>Abs\xe4tze</multiple></term><term name="part"><single>Teil</single><multiple>Teile</multiple></term><term name="section"><single>Abschnitt</single><multiple>Abschnitte</multiple></term><term name="sub verbo"><single>sub verbo</single><multiple>sub verbis</multiple></term><term name="verse"><single>Vers</single><multiple>Verse</multiple></term><term name="volume"><single>Band</single><multiple>B\xe4nde</multiple></term><term name="book" form="short">B.</term>\n<term name="chapter" form="short">Kap.</term><term name="column" form="short">Sp.</term><term name="figure" form="short">Abb.</term><term name="folio" form="short">Fol.</term><term name="issue" form="short">Nr.</term><term name="line" form="short">Z.</term><term name="note" form="short">N.</term><term name="opus" form="short">op.</term><term name="page" form="short"><single>S.</single><multiple>S.</multiple></term><term name="number-of-pages" form="short"><single>S.</single><multiple>S.</multiple></term><term name="paragraph" form="short">Abs.</term><term name="part" form="short">Teil</term><term name="section" form="short">Abschn.</term><term name="sub verbo" form="short"><single>s.&#160;v.</single><multiple>s.&#160;vv.</multiple></term><term name="verse" form="short"><single>V.</single><multiple>V.</multiple></term><term name="volume" form="short"><single>Bd.</single><multiple>Bde.</multiple></term><term name="paragraph" form="symbol"><single>\xb6</single><multiple>\xb6\xb6</multiple></term><term name="section" form="symbol"><single>\xa7</single><multiple>\xa7\xa7</multiple></term><term name="director"><single>Regisseur</single><multiple>Regisseure</multiple></term><term name="editor"><single>Herausgeber</single><multiple>Herausgeber</multiple></term><term name="collection-editor"><single>Reihenherausgeber</single><multiple>Reihenherausgeber</multiple></term><term name="editorial-director"><single>Herausgeber</single><multiple>Herausgeber</multiple></term><term name="illustrator"><single>Illustrator</single><multiple>Illustratoren</multiple></term><term name="translator"><single>\xdcbersetzer</single><multiple>\xdcbersetzer</multiple></term><term name="editortranslator"><single>Herausgeber&#160;&amp; \xdcbersetzer</single><multiple>Herausgeber&#160;&amp; \xdcbersetzer</multiple></term><term name="director" form="short"><single>Reg.</single><multiple>Reg.</multiple></term><term name="editor" form="short"><single>Hrsg.</single><multiple>Hrsg.</multiple></term><term name="collection-editor" form="short"><single>Hrsg.</single><multiple>Hrsg.</multiple></term><term name="editorial-director" form="short"><single>Hrsg.</single><multiple>Hrsg.</multiple></term><term name="illustrator" form="short"><single>Ill.</single><multiple>Ill.</multiple></term><term name="translator" form="short"><single>\xdcbers.</single><multiple>\xdcbers.</multiple></term><term name="editortranslator" form="short"><single>Hrsg.&#160;&amp; \xdcbers.</single><multiple>Hrsg.&#160;&amp; \xdcbers</multiple></term><term name="container-author" form="verb">von</term><term name="director" form="verb">Regie von</term><term name="editor" form="verb">herausgegeben von</term><term name="collection-editor" form="verb">herausgegeben von</term><term name="editorial-director" form="verb">herausgegeben von</term><term name="illustrator" form="verb">illustriert von</term><term name="interviewer" form="verb">interviewt von</term><term name="recipient" form="verb">an</term><term name="reviewed-author" form="verb">von</term><term name="translator" form="verb">\xfcbersetzt von</term><term name="editortranslator" form="verb">herausgegeben und \xfcbersetzt von</term><term name="director" form="verb-short">Reg.</term><term name="editor" form="verb-short">hg. von</term><term name="collection-editor" form="verb-short">hg. von</term><term name="editorial-director" form="verb-short">hg. von</term><term name="illustrator" form="verb-short">illus. von</term><term name="translator" form="verb-short">\xfcbers. von</term><term name="editortranslator" form="verb-short">hg.&#160;&amp; \xfcbers. von</term><term name="month-01">Januar</term><term name="month-02">Februar</term><term name="month-03">M\xe4rz</term><term name="month-04">April</term><term name="month-05">Mai</term><term name="month-06">Juni</term><term name="month-07">Juli</term><term name="month-08">August</term><term name="month-09">September</term><term name="month-10">Oktober</term><term name="month-11">November</term><term name="month-12">Dezember</term><term name="month-01" form="short">Jan.</term><term name="month-02" form="short">Feb.</term>\n<term name="month-03" form="short">M\xe4rz</term><term name="month-04" form="short">Apr.</term><term name="month-05" form="short">Mai</term><term name="month-06" form="short">Juni</term><term name="month-07" form="short">Juli</term><term name="month-08" form="short">Aug.</term><term name="month-09" form="short">Sep.</term><term name="month-10" form="short">Okt.</term><term name="month-11" form="short">Nov.</term><term name="month-12" form="short">Dez.</term><term name="season-01">Fr\xfchjahr</term><term name="season-02">Sommer</term><term name="season-03">Herbst</term><term name="season-04">Winter</term></terms></locale>',"es-ES":'<?xml version="1.0" encoding="utf-8"?><locale xmlns="http://purl.org/net/xbiblio/csl" version="1.0" xml:lang="es-ES"><info><rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights><updated>2012-07-04T23:31:02+00:00</updated></info><style-options punctuation-in-quote="false"/><date form="text"><date-part name="day" suffix=" de "/><date-part name="month" suffix=" de "/><date-part name="year"/></date><date form="numeric"><date-part name="day" form="numeric-leading-zeros" suffix="/"/><date-part name="month" form="numeric-leading-zeros" suffix="/"/><date-part name="year"/></date><terms><term name="accessed">accedido</term><term name="and">y</term><term name="and others">y otros</term><term name="anonymous">an\xf3nimo</term><term name="anonymous" form="short">an\xf3n.</term><term name="at">en</term><term name="available at">disponible en</term><term name="by">de</term><term name="circa">circa</term><term name="circa" form="short">c.</term><term name="cited">citado</term><term name="edition"><single>edici\xf3n</single><multiple>ediciones</multiple></term><term name="edition" form="short">ed.</term><term name="et-al">et&#160;al.</term><term name="forthcoming">previsto</term><term name="from">a partir de</term><term name="ibid">ibid.</term><term name="in">en</term><term name="in press">en imprenta</term><term name="internet">internet</term><term name="interview">entrevista</term><term name="letter">carta</term><term name="no date">sin fecha</term><term name="no date" form="short">s.&#160;f.</term><term name="online">en l\xednea</term><term name="presented at">presentado en</term><term name="reference"><single>referencia</single><multiple>referencias</multiple></term><term name="reference" form="short"><single>ref.</single><multiple>refs.</multiple></term><term name="retrieved">recuperado</term><term name="scale">escala</term><term name="version">versi\xf3n</term><term name="ad">d.&#160;C.</term><term name="bc">a.&#160;C.</term><term name="open-quote">\xab</term><term name="close-quote">\xbb</term><term name="open-inner-quote">\u201c</term><term name="close-inner-quote">\u201d</term><term name="page-range-delimiter">-</term><term name="ordinal">.\xaa</term><term name="long-ordinal-01">primera</term><term name="long-ordinal-02">segunda</term><term name="long-ordinal-03">tercera</term><term name="long-ordinal-04">cuarta</term><term name="long-ordinal-05">quinta</term><term name="long-ordinal-06">sexta</term><term name="long-ordinal-07">s\xe9ptima</term><term name="long-ordinal-08">octava</term><term name="long-ordinal-09">novena</term><term name="long-ordinal-10">d\xe9cima</term><term name="book"><single>libro</single><multiple>libros</multiple></term><term name="chapter"><single>cap\xedtulo</single><multiple>cap\xedtulos</multiple></term><term name="column"><single>columna</single><multiple>columnas</multiple></term><term name="figure"><single>figura</single><multiple>figuras</multiple></term><term name="folio"><single>folio</single><multiple>folios</multiple></term><term name="issue"><single>n\xfamero</single><multiple>n\xfameros</multiple></term><term name="line"><single>l\xednea</single><multiple>l\xedneas</multiple></term><term name="note"><single>nota</single><multiple>notas</multiple></term><term name="opus"><single>opus</single><multiple>opera</multiple></term><term name="page"><single>p\xe1gina</single><multiple>p\xe1ginas</multiple></term><term name="number-of-pages"><single>p\xe1gina</single><multiple>p\xe1ginas</multiple></term><term name="paragraph"><single>p\xe1rrafo</single><multiple>p\xe1rrafos</multiple></term><term name="part"><single>parte</single><multiple>partes</multiple></term><term name="section"><single>secci\xf3n</single><multiple>secciones</multiple></term><term name="sub verbo"><single>sub voce</single><multiple>sub vocibus</multiple></term><term name="verse"><single>verso</single><multiple>versos</multiple></term><term name="volume"><single>volumen</single><multiple>vol\xfamenes</multiple></term><term name="book" form="short">lib.</term>\n<term name="chapter" form="short">cap.</term><term name="column" form="short">col.</term><term name="figure" form="short">fig.</term><term name="folio" form="short">f.</term><term name="issue" form="short">n.\xba</term><term name="line" form="short">l.</term><term name="note" form="short">n.</term><term name="opus" form="short">op.</term><term name="page" form="short"><single>p.</single><multiple>pp.</multiple></term><term name="number-of-pages" form="short"><single>p.</single><multiple>pp.</multiple></term><term name="paragraph" form="short">p\xe1rr.</term><term name="part" form="short">pt.</term><term name="section" form="short">sec.</term><term name="sub verbo" form="short"><single>s.&#160;v.</single><multiple>s.&#160;vv.</multiple></term><term name="verse" form="short"><single>v.</single><multiple>vv.</multiple></term><term name="volume" form="short"><single>vol.</single><multiple>vols.</multiple></term><term name="paragraph" form="symbol"><single>\xa7</single><multiple>\xa7</multiple></term><term name="section" form="symbol"><single>\xa7</single><multiple>\xa7</multiple></term><term name="director"><single>director</single><multiple>directores</multiple></term><term name="editor"><single>editor</single><multiple>editores</multiple></term><term name="editorial-director"><single>editor</single><multiple>editores</multiple></term><term name="illustrator"><single>ilustrador</single><multiple>ilustradores</multiple></term><term name="translator"><single>traductor</single><multiple>traductores</multiple></term><term name="editortranslator"><single>editor y traductor</single><multiple>editores y traductores</multiple></term><term name="director" form="short"><single>dir.</single><multiple>dirs.</multiple></term><term name="editor" form="short"><single>ed.</single><multiple>eds.</multiple></term><term name="editorial-director" form="short"><single>ed.</single><multiple>eds.</multiple></term><term name="illustrator" form="short"><single>ilust.</single><multiple>ilusts.</multiple></term><term name="translator" form="short"><single>trad.</single><multiple>trads.</multiple></term><term name="editortranslator" form="short"><single>ed. y trad.</single><multiple>eds. y trads.</multiple></term><term name="container-author" form="verb">de</term><term name="director" form="verb">dirigido por</term><term name="editor" form="verb">editado por</term><term name="editorial-director" form="verb">editado por</term><term name="illustrator" form="verb">ilustrado por</term><term name="interviewer" form="verb">entrevistado por</term><term name="recipient" form="verb">a</term><term name="reviewed-author" form="verb">por</term><term name="translator" form="verb">traducido por</term><term name="editortranslator" form="verb">editado y traducido por</term><term name="director" form="verb-short">dir.</term><term name="editor" form="verb-short">ed.</term><term name="editorial-director" form="verb-short">ed.</term><term name="illustrator" form="verb-short">ilust.</term><term name="translator" form="verb-short">trad.</term><term name="editortranslator" form="verb-short">ed. y trad.</term><term name="month-01">enero</term><term name="month-02">febrero</term><term name="month-03">marzo</term><term name="month-04">abril</term><term name="month-05">mayo</term><term name="month-06">junio</term><term name="month-07">julio</term><term name="month-08">agosto</term><term name="month-09">septiembre</term><term name="month-10">octubre</term><term name="month-11">noviembre</term><term name="month-12">diciembre</term><term name="month-01" form="short">ene.</term><term name="month-02" form="short">feb.</term><term name="month-03" form="short">mar.</term><term name="month-04" form="short">abr.</term><term name="month-05" form="short">may</term><term name="month-06" form="short">jun.</term><term name="month-07" form="short">jul.</term><term name="month-08" form="short">ago.</term><term name="month-09" form="short">sep.</term><term name="month-10" form="short">oct.</term><term name="month-11" form="short">nov.</term><term name="month-12" form="short">\ndic.</term><term name="season-01">primavera</term><term name="season-02">verano</term><term name="season-03">oto\xf1o</term><term name="season-04">invierno</term></terms></locale>'}},{}],387:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.locales=r["default"]=void 0;var i=n(t("../../../util/register")),s=n(t("./locales.json"));function n(t){return t&&t.__esModule?t:{"default":t}}var o=new i["default"](s["default"]);r.locales=o;var a=function(t){return o.has(t)?o.get(t):o.get("en-US")};r["default"]=a},{"../../../util/register":446,"./locales.json":386}],388:[function(t,e,r){e.exports={apa:'<?xml version="1.0" encoding="utf-8"?><style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never"><info><title>American Psychological Association 6th edition</title><title-short>APA</title-short><id>http://www.zotero.org/styles/apa</id><link href="http://www.zotero.org/styles/apa" rel="self"/><link href="http://owl.english.purdue.edu/owl/resource/560/01/" rel="documentation"/><author><name>Simon Kornblith</name><email>simon@simonster.com</email></author><contributor><name>Bruce D\'Arcus</name></contributor><contributor><name>Curtis M. Humphrey</name></contributor><contributor><name>Richard Karnesky</name><email>karnesky+zotero@gmail.com</email><uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri></contributor><contributor><name>Sebastian Karcher</name></contributor><contributor><name> Brenton M. Wiernik</name><email>zotero@wiernik.org</email></contributor><category citation-format="author-date"/><category field="psychology"/><category field="generic-base"/><updated>2016-05-25T09:01:49+00:00</updated><rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights></info><locale xml:lang="en"><terms><term name="editortranslator" form="short"><single>ed. &amp; trans.</single><multiple>eds. &amp; trans.</multiple></term><term name="translator" form="short"><single>trans.</single><multiple>trans.</multiple></term></terms></locale><macro name="container-contributors"><choose><if type="chapter paper-conference entry-dictionary entry-encyclopedia" match="any"><group delimiter=", "><names variable="container-author" delimiter=", "><name and="symbol" initialize-with=". " delimiter=", "/><label form="short" prefix=" (" text-case="title" suffix=")"/></names><names variable="editor translator" delimiter=", "><name and="symbol" initialize-with=". " delimiter=", "/><label form="short" prefix=" (" text-case="title" suffix=")"/></names></group></if></choose></macro><macro name="secondary-contributors"><choose><if type="article-journal chapter paper-conference entry-dictionary entry-encyclopedia" match="none"><group delimiter=", " prefix=" (" suffix=")"><names variable="container-author" delimiter=", "><name and="symbol" initialize-with=". " delimiter=", "/><label form="short" prefix=", " text-case="title"/></names><names variable="editor translator" delimiter=", "><name and="symbol" initialize-with=". " delimiter=", "/><label form="short" prefix=", " text-case="title"/></names></group></if></choose></macro><macro name="author"><names variable="author"><name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/><label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/><substitute><names variable="editor"/><names variable="translator"/><choose><if type="report"><text variable="publisher"/><text macro="title"/></if><else><text macro="title"/></else></choose></substitute></names></macro><macro name="author-short"><names variable="author"><name form="short" and="symbol" delimiter=", " initialize-with=". "/><substitute><names variable="editor"/><names variable="translator"/><choose><if type="report"><text variable="publisher"/><text variable="title" form="short" font-style="italic"/></if><else-if type="legal_case"><text variable="title" font-style="italic"/></else-if><else-if type="bill book graphic legislation motion_picture song" match="any"><text variable="title" form="short" font-style="italic"/></else-if><else-if variable="reviewed-author"><choose><if variable="reviewed-title" match="none"><text variable="title" form="short" font-style="italic" prefix="Review of "/></if><else><text variable="title" form="short" quotes="true"/></else></choose></else-if><else><text variable="title" form="short" quotes="true"/></else></choose></substitute></names></macro><macro name="access"><choose><if type="thesis report" match="any"><choose><if variable="DOI" match="any">\n<text variable="DOI" prefix="https://doi.org/"/></if><else-if variable="archive" match="any"><group><text term="retrieved" text-case="capitalize-first" suffix=" "/><text term="from" suffix=" "/><text variable="archive" suffix="."/><text variable="archive_location" prefix=" (" suffix=")"/></group></else-if><else><group><text term="retrieved" text-case="capitalize-first" suffix=" "/><text term="from" suffix=" "/><text variable="URL"/></group></else></choose></if><else><choose><if variable="DOI"><text variable="DOI" prefix="https://doi.org/"/></if><else><choose><if type="webpage"><group delimiter=" "><text term="retrieved" text-case="capitalize-first" suffix=" "/><group><date variable="accessed" form="text" suffix=", "/></group><text term="from"/><text variable="URL"/></group></if><else><group><text term="retrieved" text-case="capitalize-first" suffix=" "/><text term="from" suffix=" "/><text variable="URL"/></group></else></choose></else></choose></else></choose></macro><macro name="title"><choose><if type="book graphic manuscript motion_picture report song speech thesis" match="any"><choose><if variable="version" type="book" match="all"><text variable="title"/></if><else><text variable="title" font-style="italic"/></else></choose></if><else-if variable="reviewed-author"><choose><if variable="reviewed-title"><group delimiter=" "><text variable="title"/><group delimiter=", " prefix="[" suffix="]"><text variable="reviewed-title" font-style="italic" prefix="Review of "/><names variable="reviewed-author" delimiter=", "><label form="verb-short" suffix=" "/><name and="symbol" initialize-with=". " delimiter=", "/></names></group></group></if><else><group delimiter=", " prefix="[" suffix="]"><text variable="title" font-style="italic" prefix="Review of "/><names variable="reviewed-author" delimiter=", "><label form="verb-short" suffix=" "/><name and="symbol" initialize-with=". " delimiter=", "/></names></group></else></choose></else-if><else><text variable="title"/></else></choose></macro><macro name="title-plus-extra"><text macro="title"/><choose><if type="report thesis" match="any"><group prefix=" (" suffix=")" delimiter=", "><group delimiter=" "><choose><if variable="genre" match="any"><text variable="genre"/></if><else><text variable="collection-title"/></else></choose><text variable="number" prefix="No. "/></group><group delimiter=" "><text term="version" text-case="capitalize-first"/><text variable="version"/></group><text macro="edition"/></group></if><else-if type="post-weblog webpage" match="any"><text variable="genre" prefix=" [" suffix="]"/></else-if><else-if variable="version"><group delimiter=" " prefix=" (" suffix=")"><text term="version" text-case="capitalize-first"/><text variable="version"/></group></else-if></choose><text macro="format" prefix=" [" suffix="]"/></macro><macro name="format"><choose><if match="any" variable="medium"><text variable="medium" text-case="capitalize-first"/></if><else-if type="dataset" match="any"><text value="Data set"/></else-if></choose></macro><macro name="publisher"><choose><if type="report" match="any"><group delimiter=": "><text variable="publisher-place"/><text variable="publisher"/></group></if><else-if type="thesis" match="any"><group delimiter=", "><text variable="publisher"/><text variable="publisher-place"/></group></else-if><else-if type="post-weblog webpage" match="none"><group delimiter=", "><choose><if variable="event version" type="speech motion_picture" match="none"><text variable="genre"/></if></choose><choose><if type="article-journal article-magazine" match="none"><group delimiter=": "><choose><if variable="publisher-place"><text variable="publisher-place"/></if><else><text variable="event-place"/></else></choose><text variable="publisher"/></group></if></choose></group></else-if></choose></macro><macro name="event"><choose><if variable="container-title" match="none"><choose><if variable="event"><choose><if variable="genre" match="none"><text term="presented at" text-case="capitalize-first" suffix=" "/><text variable="event"/></if><else>\n<group delimiter=" "><text variable="genre" text-case="capitalize-first"/><text term="presented at"/><text variable="event"/></group></else></choose></if><else-if type="speech"><text variable="genre" text-case="capitalize-first"/></else-if></choose></if></choose></macro><macro name="issued"><choose><if type="bill legal_case legislation" match="none"><choose><if variable="issued"><group prefix=" (" suffix=")"><date variable="issued"><date-part name="year"/></date><text variable="year-suffix"/><choose><if type="speech" match="any"><date variable="issued"><date-part prefix=", " name="month"/></date></if><else-if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song dataset" match="none"><date variable="issued"><date-part prefix=", " name="month"/><date-part prefix=" " name="day"/></date></else-if></choose></group></if><else-if variable="status"><group prefix=" (" suffix=")"><text variable="status"/><text variable="year-suffix" prefix="-"/></group></else-if><else><group prefix=" (" suffix=")"><text term="no date" form="short"/><text variable="year-suffix" prefix="-"/></group></else></choose></if></choose></macro><macro name="issued-sort"><choose><if type="article-journal bill book chapter graphic legal_case legislation motion_picture paper-conference report song dataset" match="none"><date variable="issued"><date-part name="year"/><date-part name="month"/><date-part name="day"/></date></if><else><date variable="issued"><date-part name="year"/></date></else></choose></macro><macro name="issued-year"><choose><if variable="issued"><group delimiter="/"><date variable="original-date" form="text"/><group><date variable="issued"><date-part name="year"/></date><text variable="year-suffix"/></group></group></if><else-if variable="status"><text variable="status"/><text variable="year-suffix" prefix="-"/></else-if><else><text term="no date" form="short"/><text variable="year-suffix" prefix="-"/></else></choose></macro><macro name="edition"><choose><if is-numeric="edition"><group delimiter=" "><number variable="edition" form="ordinal"/><text term="edition" form="short"/></group></if><else><text variable="edition"/></else></choose></macro><macro name="locators"><choose><if type="article-journal article-magazine" match="any"><group prefix=", " delimiter=", "><group><text variable="volume" font-style="italic"/><text variable="issue" prefix="(" suffix=")"/></group><text variable="page"/></group><choose><if variable="issued"><choose><if variable="page issue" match="none"><text variable="status" prefix=". "/></if></choose></if></choose></if><else-if type="article-newspaper"><group delimiter=" " prefix=", "><label variable="page" form="short"/><text variable="page"/></group></else-if><else-if type="book graphic motion_picture report song chapter paper-conference entry-encyclopedia entry-dictionary" match="any"><group prefix=" (" suffix=")" delimiter=", "><choose><if type="report" match="none"><text macro="edition"/></if></choose><choose><if variable="volume" match="any"><group><text term="volume" form="short" text-case="capitalize-first" suffix=" "/><number variable="volume" form="numeric"/></group></if><else><group><text term="volume" form="short" plural="true" text-case="capitalize-first" suffix=" "/><number variable="number-of-volumes" form="numeric" prefix="1&#8211;"/></group></else></choose><group><label variable="page" form="short" suffix=" "/><text variable="page"/></group></group></else-if><else-if type="legal_case"><group prefix=" (" suffix=")" delimiter=" "><text variable="authority"/><date variable="issued" form="text"/></group></else-if><else-if type="bill legislation" match="any"><date variable="issued" prefix=" (" suffix=")"><date-part name="year"/></date></else-if></choose></macro><macro name="citation-locator"><group><choose><if locator="chapter"><label variable="locator" form="long" text-case="capitalize-first"/></if><else><label variable="locator" form="short"/></else></choose><text variable="locator" prefix=" "/></group></macro>\n<macro name="container"><choose><if type="post-weblog webpage" match="none"><group><choose><if type="chapter paper-conference entry-encyclopedia" match="any"><text term="in" text-case="capitalize-first" suffix=" "/></if></choose><group delimiter=", "><text macro="container-contributors"/><text macro="secondary-contributors"/><text macro="container-title"/></group></group></if></choose></macro><macro name="container-title"><choose><if type="article article-journal article-magazine article-newspaper" match="any"><text variable="container-title" font-style="italic" text-case="title"/></if><else-if type="bill legal_case legislation" match="none"><text variable="container-title" font-style="italic"/></else-if></choose></macro><macro name="legal-cites"><choose><if type="bill legal_case legislation" match="any"><group delimiter=" " prefix=", "><choose><if variable="container-title"><text variable="volume"/><text variable="container-title"/><group delimiter=" "><text term="section" form="symbol"/><text variable="section"/></group><text variable="page"/></if><else><choose><if type="legal_case"><text variable="number" prefix="No. "/></if><else><text variable="number" prefix="Pub. L. No. "/><group delimiter=" "><text term="section" form="symbol"/><text variable="section"/></group></else></choose></else></choose></group></if></choose></macro><macro name="original-date"><choose><if variable="original-date"><group prefix="(" suffix=")" delimiter=" "><text value="Original work published"/><date variable="original-date" form="text"/></group></if></choose></macro><citation et-al-min="6" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name"><sort><key macro="author"/><key macro="issued-sort"/></sort><layout prefix="(" suffix=")" delimiter="; "><group delimiter=", "><text macro="author-short"/><text macro="issued-year"/><text macro="citation-locator"/></group></layout></citation><bibliography hanging-indent="true" et-al-min="8" et-al-use-first="6" et-al-use-last="true" entry-spacing="0" line-spacing="2"><sort><key macro="author"/><key macro="issued-sort" sort="ascending"/><key macro="title"/></sort><layout><group suffix="."><group delimiter=". "><text macro="author"/><text macro="issued"/><text macro="title-plus-extra"/><text macro="container"/></group><text macro="legal-cites"/><text macro="locators"/><group delimiter=", " prefix=". "><text macro="event"/><text macro="publisher"/></group></group><text macro="access" prefix=" "/><text macro="original-date" prefix=" "/></layout></bibliography></style>',vancouver:'<?xml version="1.0" encoding="utf-8"?><style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="minimal"><info><title>Vancouver</title><id>http://www.zotero.org/styles/vancouver</id><link href="http://www.zotero.org/styles/vancouver" rel="self"/><link href="http://www.nlm.nih.gov/bsd/uniform_requirements.html" rel="documentation"/><author><name>Michael Berkowitz</name><email>mberkowi@gmu.edu</email></author><contributor><name>Sean Takats</name><email>stakats@gmu.edu</email></contributor><contributor><name>Sebastian Karcher</name></contributor><category citation-format="numeric"/><category field="medicine"/><summary>Vancouver style as outlined by International Committee of Medical Journal Editors Uniform Requirements for Manuscripts Submitted to Biomedical Journals: Sample References</summary><updated>2014-09-06T16:03:01+00:00</updated><rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights></info><locale xml:lang="en"><date form="text" delimiter=" "><date-part name="year"/><date-part name="month" form="short" strip-periods="true"/><date-part name="day"/></date><terms><term name="collection-editor" form="long"><single>editor</single><multiple>editors</multiple></term><term name="presented at">presented at</term><term name="available at">available from</term><term name="section" form="short">sect.</term></terms></locale><locale xml:lang="fr"><date form="text" delimiter=" "><date-part name="day"/><date-part name="month" form="short" strip-periods="true"/><date-part name="year"/></date></locale><macro name="author"><names variable="author"><name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/><label form="long" prefix=", "/><substitute><names variable="editor"/></substitute></names></macro><macro name="editor"><names variable="editor" suffix="."><name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/><label form="long" prefix=", "/></names></macro><macro name="chapter-marker"><choose><if type="chapter paper-conference entry-dictionary entry-encyclopedia" match="any"><text term="in" text-case="capitalize-first"/></if></choose></macro><macro name="publisher"><choose><if type="article-journal article-magazine article-newspaper" match="none"><group delimiter=": " suffix=";"><choose><if type="thesis"><text variable="publisher-place" prefix="[" suffix="]"/></if><else-if type="speech"/><else><text variable="publisher-place"/></else></choose><text variable="publisher"/></group></if></choose></macro><macro name="access"><choose><if variable="URL"><group delimiter=": "><text term="available at" text-case="capitalize-first"/><text variable="URL"/></group></if></choose></macro><macro name="accessed-date"><choose><if variable="URL"><group prefix="[" suffix="]" delimiter=" "><text term="cited" text-case="lowercase"/><date variable="accessed" form="text"/></group></if></choose></macro><macro name="container-title"><choose><if type="article-journal article-magazine chapter paper-conference article-newspaper review review-book entry-dictionary entry-encyclopedia" match="any"><group suffix="." delimiter=" "><choose><if type="article-journal review review-book" match="any"><text variable="container-title" form="short" strip-periods="true"/></if><else><text variable="container-title" strip-periods="true"/></else></choose><choose><if variable="URL"><text term="internet" prefix="[" suffix="]" text-case="capitalize-first"/></if></choose></group><text macro="edition" prefix=" "/></if><else-if type="bill legislation" match="any"><group delimiter=", "><group delimiter=". "><text variable="container-title"/><group delimiter=" "><text term="section" form="short" text-case="capitalize-first"/><text variable="section"/></group></group><text variable="number"/></group></else-if><else-if type="speech">\n<group delimiter=": " suffix=";"><group delimiter=" "><text variable="genre" text-case="capitalize-first"/><text term="presented at"/></group><text variable="event"/></group></else-if><else><group delimiter=", " suffix="."><choose><if variable="collection-title" match="none"><group delimiter=" "><label variable="volume" form="short" text-case="capitalize-first"/><text variable="volume"/></group></if></choose><text variable="container-title"/></group></else></choose></macro><macro name="title"><text variable="title"/><choose><if type="article-journal article-magazine chapter paper-conference article-newspaper review review-book entry-dictionary entry-encyclopedia" match="none"><choose><if variable="URL"><text term="internet" prefix=" [" suffix="]" text-case="capitalize-first"/></if></choose><text macro="edition" prefix=". "/></if></choose><choose><if type="thesis"><text variable="genre" prefix=" [" suffix="]"/></if></choose></macro><macro name="edition"><choose><if is-numeric="edition"><group delimiter=" "><number variable="edition" form="ordinal"/><text term="edition" form="short"/></group></if><else><text variable="edition" suffix="."/></else></choose></macro><macro name="date"><choose><if type="article-journal article-magazine article-newspaper review review-book" match="any"><group suffix=";" delimiter=" "><date variable="issued" form="text"/><text macro="accessed-date"/></group></if><else-if type="bill legislation" match="any"><group delimiter=", "><date variable="issued" delimiter=" "><date-part name="month" form="short" strip-periods="true"/><date-part name="day"/></date><date variable="issued"><date-part name="year"/></date></group></else-if><else-if type="report"><date variable="issued" delimiter=" "><date-part name="year"/><date-part name="month" form="short" strip-periods="true"/></date><text macro="accessed-date" prefix=" "/></else-if><else-if type="patent"><group suffix="."><group delimiter=", "><text variable="number"/><date variable="issued"><date-part name="year"/></date></group><text macro="accessed-date" prefix=" "/></group></else-if><else-if type="speech"><group delimiter="; "><group delimiter=" "><date variable="issued" delimiter=" "><date-part name="year"/><date-part name="month" form="short" strip-periods="true"/><date-part name="day"/></date><text macro="accessed-date"/></group><text variable="event-place"/></group></else-if><else><group suffix="."><date variable="issued"><date-part name="year"/></date><text macro="accessed-date" prefix=" "/></group></else></choose></macro><macro name="pages"><choose><if type="article-journal article-magazine article-newspaper review review-book" match="any"><text variable="page" prefix=":"/></if><else-if type="book" match="any"><text variable="number-of-pages" prefix=" "/><choose><if is-numeric="number-of-pages"><label variable="number-of-pages" form="short" prefix=" " plural="never"/></if></choose></else-if><else><group prefix=" " delimiter=" "><label variable="page" form="short" plural="never"/><text variable="page"/></group></else></choose></macro><macro name="journal-location"><choose><if type="article-journal article-magazine review review-book" match="any"><text variable="volume"/><text variable="issue" prefix="(" suffix=")"/></if></choose></macro><macro name="collection-details"><choose><if type="article-journal article-magazine article-newspaper review review-book" match="none"><choose><if variable="collection-title"><group delimiter=" " prefix="(" suffix=")"><names variable="collection-editor" suffix="."><name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/><label form="long" prefix=", "/></names><group delimiter="; "><text variable="collection-title"/><group delimiter=" "><label variable="volume" form="short"/><text variable="volume"/></group></group></group></if></choose></if></choose></macro><macro name="report-details"><choose><if type="report"><text variable="number" prefix="Report No.: "/></if></choose></macro><citation collapse="citation-number">\n<sort><key variable="citation-number"/></sort><layout prefix="(" suffix=")" delimiter=","><text variable="citation-number"/></layout></citation><bibliography et-al-min="7" et-al-use-first="6" second-field-align="flush"><layout><text variable="citation-number" suffix=". "/><group delimiter=". " suffix=". "><text macro="author"/><text macro="title"/></group><group delimiter=" " suffix=". "><group delimiter=": "><text macro="chapter-marker"/><group delimiter=" "><text macro="editor"/><text macro="container-title"/></group></group><text macro="publisher"/><group><text macro="date"/><text macro="journal-location"/><text macro="pages"/></group></group><text macro="collection-details" suffix=". "/><text macro="report-details" suffix=". "/><text macro="access"/></layout></bibliography></style>',harvard1:'<?xml version="1.0" encoding="utf-8"?><style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only"><info><title>Harvard Reference format 1 (author-date)</title><id>http://www.zotero.org/styles/harvard1</id><link href="http://www.zotero.org/styles/harvard1" rel="self"/><link href="http://libweb.anglia.ac.uk/referencing/harvard.htm" rel="documentation"/><author><name>Julian Onions</name><email>julian.onions@gmail.com</email></author><category citation-format="author-date"/><category field="generic-base"/><summary>The Harvard author-date style</summary><updated>2012-09-27T22:06:38+00:00</updated><rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights></info><macro name="editor"><names variable="editor" delimiter=", "><name and="symbol" initialize-with=". " delimiter=", "/><label form="short" prefix=", " text-case="lowercase"/></names></macro><macro name="anon"><text term="anonymous" form="short" text-case="capitalize-first" strip-periods="true"/></macro><macro name="author"><names variable="author"><name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/><label form="short" prefix=" " text-case="lowercase"/><substitute><names variable="editor"/><text macro="anon"/></substitute></names></macro><macro name="author-short"><names variable="author"><name form="short" and="symbol" delimiter=", " delimiter-precedes-last="never" initialize-with=". "/><substitute><names variable="editor"/><names variable="translator"/><text macro="anon"/></substitute></names></macro><macro name="access"><choose><if variable="URL"><text value="Available at:" suffix=" "/><text variable="URL"/><group prefix=" [" suffix="]"><text term="accessed" text-case="capitalize-first" suffix=" "/><date variable="accessed"><date-part name="month" suffix=" "/><date-part name="day" suffix=", "/><date-part name="year"/></date></group></if></choose></macro><macro name="title"><choose><if type="bill book graphic legal_case legislation motion_picture report song thesis" match="any"><text variable="title" font-style="italic"/></if><else><text variable="title"/></else></choose></macro><macro name="publisher"><group delimiter=": "><text variable="publisher-place"/><text variable="publisher"/></group></macro><macro name="year-date"><choose><if variable="issued"><date variable="issued"><date-part name="year"/></date></if><else><text term="no date" form="short"/></else></choose></macro><macro name="edition"><choose><if is-numeric="edition"><group delimiter=" "><number variable="edition" form="ordinal"/><text term="edition" form="short"/></group></if><else><text variable="edition" suffix="."/></else></choose></macro><macro name="pages"><group><label variable="page" form="short" suffix=" "/><text variable="page"/></group></macro><citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true"><layout prefix="(" suffix=")" delimiter="; "><group delimiter=", "><group delimiter=" "><text macro="author-short"/><text macro="year-date"/></group><group><label variable="locator" form="short"/><text variable="locator"/></group></group></layout></citation><bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1"><sort><key macro="author"/><key variable="title"/></sort><layout><text macro="author" suffix=","/><date variable="issued" prefix=" " suffix="."><date-part name="year"/></date><choose><if type="bill book graphic legal_case legislation motion_picture report song" match="any"><group prefix=" " delimiter=" " suffix=","><text macro="title"/><text macro="edition"/><text macro="editor"/></group><text prefix=" " suffix="." macro="publisher"/></if><else-if type="chapter paper-conference" match="any"><text macro="title" prefix=" " suffix="."/><group prefix=" " delimiter=" "><text term="in" text-case="capitalize-first"/>\n<text macro="editor"/><text variable="container-title" font-style="italic" suffix="."/><text variable="collection-title" suffix="."/><text variable="event" suffix="."/><group suffix="." delimiter=", "><text macro="publisher" prefix=" "/><text macro="pages"/></group></group></else-if><else-if type="thesis"><group prefix=" " suffix="." delimiter=". "><text macro="title"/><text variable="genre"/><text macro="publisher"/></group></else-if><else><group suffix="."><text macro="title" prefix=" "/><text macro="editor" prefix=" "/></group><group prefix=" " suffix="."><text variable="container-title" font-style="italic"/><group prefix=", "><text variable="volume"/><text variable="issue" prefix="(" suffix=")"/></group><group prefix=", "><label variable="page" form="short"/><text variable="page"/></group></group></else></choose><text prefix=" " macro="access" suffix="."/></layout></bibliography></style>'}},{}],389:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.templates=r["default"]=void 0;var i=n(t("../../../util/register")),s=n(t("./styles.json"));function n(t){return t&&t.__esModule?t:{"default":t}}var o=new i["default"](s["default"]);r.templates=o;var a=function(t){return o.has(t)?o.get(t):o.get("apa")};r["default"]=a},{"../../../util/register":446,"./styles.json":388}],390:[function(t,e,r){"use strict";var i=t("../../plugins/"),s=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}}(t("./modules"));for(var n in s){var o=s[n];(0,i.add)(n,{output:o})}},{"../../plugins/":440,"./modules":393}],391:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.getJsonWrapper=void 0;var i,n=(i=t("../../util/deepCopy.js"))&&i.__esModule?i:{"default":i},o=t("../dict");function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var l=function(t,e,r){return t+(e<r.length-1?",":"")},u=function(t,s){var e,r=Array.isArray(t);return e=(e=r?t.map(function(t){return c(t,s)}):Object.entries(t).map(function(t){var e=a(t,2),r=e[0],i=e[1];return'"'.concat(r,'": ').concat(c(i,s))})).map(l).map(function(t){return s.listItem.join(t)}),e=s.list.join(e.join("")),r?"[".concat(e,"]"):"{".concat(e,"}")},c=function(t,e){return"object"===s(t)&&null!==t?0===t.length?"[]":0===Object.keys(t).length?"{}":u(t,e):JSON.stringify(t)+""},p=function(t,e){var r=t.map(function(t){return u(t,e)});return r=(r=r.map(l).map(function(t){return e.entry.join(t)})).join(""),e.bibliographyContainer.join("[".concat(r,"]"))};r.getJsonWrapper=function(t){return p(t,(0,o.get)("html"))};var m={data:function(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=e.type,i=e.format,s=void 0===i?r||"text":i;return"object"===s?(0,n["default"])(t):"text"===s?JSON.stringify(t,null,2):(logger.warn("[get]","This feature (JSON output with special formatting) is unstable. See https://github.com/larsgw/citation.js/issues/144"),(0,o.has)(s)?p(t,(0,o.get)(s)):"")}};r["default"]=m},{"../../util/deepCopy.js":441,"../dict":372}],392:[function(t,e,r){"use strict";var i;Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.getLabel=void 0;var s=((i=t("./bibtex/label"))&&i.__esModule?i:{"default":i})["default"];r.getLabel=s;var n={label:function(t){return t.reduce(function(t,e){return t[e.id]=s(e),t},{})}};r["default"]=n},{"./bibtex/label":377}],393:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"bibtex",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(r,"data",{enumerable:!0,get:function(){return s["default"]}}),Object.defineProperty(r,"label",{enumerable:!0,get:function(){return n["default"]}}),Object.defineProperty(r,"ris",{enumerable:!0,get:function(){return o["default"]}}),t("./csl/");var i=a(t("./bibtex/")),s=a(t("./json")),n=a(t("./label")),o=a(t("./ris/"));function a(t){return t&&t.__esModule?t:{"default":t}}},{"./bibtex/":375,"./csl/":385,"./json":391,"./label":392,"./ris/":394}],394:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i["default"]=void 0;var s=o(e("../../name")),n=o(e("../../date"));function o(t){return t&&t.__esModule?t:{"default":t}}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function m(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var u={graphic:"ART",bill:"BILL","post-webblog":"BLOG",book:"BOOK","review-book":"BOOK",legal_case:"CASE",chapter:"CHAP","paper-conference":"CONF",dataset:"DATA","entry-dictionary":"DICT","entry-encyclopedia":"ENCYC",figure:"FIGURE",interview:"GEN",treaty:"GEN",post:"ICOMM",article:"JOUR","article-journal":"JOUR",review:"JOUR",legislation:"LEGAL",manuscript:"MANSCPT",map:"MAP","article-magazine":"MGZN",broadcast:"MPCT",motion_picture:"MPCT",musical_score:"MUSIC","article-newspaper":"NEWS",pamphlet:"PAMP",patent:"PAT",personal_communication:"PCOMM",report:"RPRT",song:"SOUND",speech:"SOUND",thesis:"THES"},c=function(t){return t.map(function(t){return(0,s["default"])(t,!0)})},f={TY:{fieldName:"type",convert:function(t){return u[t]||"GEN"}},AU:[{type:["review","review-book"],fieldName:"reviewed-author",convert:c},{type:"__default",fieldName:"author",convert:c}],DA:{fieldName:"issued",convert:function(t){return(0,n["default"])(t,"/")}},PY:{fieldName:"issued",convert:function(t){return t["date-parts"][0][0]}},Y2:{fieldName:"accessed",convert:function(t){return(0,n["default"])(t,"/")}},AB:"abstract",CN:"call-number",CY:["event-place","publisher-place"],DO:"DOI",ET:[{type:"book",fieldName:["version","edition"]}],IS:[{type:"__default",fieldName:"issue"}],J2:["journalAbbreviation"],LA:"language",LB:"citation-label",M1:"number",M3:["genre","medium"],N1:"note",RI:"reviewed-title",SE:"section",SN:[{type:"__default",fieldName:["ISBN","ISSN"]},{type:["patent","report"],fieldName:"number"}],SP:{fieldName:["first-page","page"]},T2:["container-title","collection-title"],T3:{fieldName:["container-title","collection-title"],keepAll:!0,convert:function(t,e){return t?e:undefined}},TI:["original-title","title"],TT:{fieldName:["original-title","title"],keepAll:!0,convert:function(t,e){return t?e:undefined}},UR:"URL",VL:"volume",A2:{fieldName:"editor",convert:c},C1:[{type:"chapter",fieldName:"section"},{type:"paper-conference",fieldName:"publisher-place"},{type:"map",fieldName:"scale"},{type:"musical_score",fieldName:"medium"}],C2:[{type:["article-journal","article"],fieldName:"PMCID"},{type:"paper-conference",fieldName:"issued",convert:function(t){return t["date-parts"][0][0]}},{type:"article-newspaper",fieldName:"issue"}],C3:[{type:["graphic","speech","sound","map"],fieldName:"dimensions"},{type:"paper-conference",fieldName:"container-title"}],C4:[{type:["review","review-book"],fieldName:"author",convert:c},{type:["motion_picture","broadcast"],fieldName:"genre"}],C5:[{type:["graphic","speech","sound","motion_picture","broadcast"],fieldName:"medium"}],C6:[{type:"report",fieldName:"issue"},{type:"patent",fieldName:"status"}],C7:[{type:["article-journal","article"],fieldName:"number"}],BT:[{type:"chapter",fieldName:"container-title"}],DB:"archive",DP:"source",ED:{fieldName:"editor",convert:c},ID:"id",NV:"number-of-volumes",OP:"references",PP:"publiser-place",ST:["short-title","titleShort"]},h=function t(e,r,i){if(!0===e)return{sourceFields:[r]};if("string"==typeof e)return{sourceFields:[e]};if(Array.isArray(e)&&"string"==typeof e[0])return{sourceFields:e};if(Array.isArray(e)&&"object"===l(e[0])){var s,n;e.forEach(function(t){"string"==typeof t.type&&t.type===i.type||Array.isArray(t.type)&&t.type.includes(i.type)?s=t:"__default"===t.type&&(n=t)});var o=s||n;return o?t(o.convert?o:o.fieldName,r,i):{}}return"object"===l(e)&&null!==e?{sourceFields:[].concat(e.fieldName),workOnEmptyInput:e.fieldName===undefined,convert:e.convert,keepAll:!0===e.keepAll}:{}},p=function(e){var t={};for(var r in f){var i=h(f[r],r,e),s=i.sourceFields,n=void 0===s?[]:s,o=i.workOnEmptyInput,a=void 0!==o&&o,l=i.convert,u=void 0!==l&&l,c=i.keepAll;if(void 0!==c&&c||(n=n.filter(e.hasOwnProperty.bind(e))),a||0!==n.length){var p=n.map(function(t){return e[t]});"function"==typeof u?(p=u.call.apply(u,[e].concat(m(p))))!==undefined&&(t[r]=p):t[r]=p[0]}}return t},d=function(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:"";return"".concat(t," - ").concat(e,"\n")},g=function(t){var e=a(t,2),r=e[0],i=e[1];return Array.isArray(i)?i.map(function(t){return d(r,t)}).join(""):d(r,i)},b=function(t){var e=Object.entries(t);if("TY"!==e[0][0]){var r=e.findIndex(function(t){return"TY"===a(t,1)[0]}),i=a(e.splice(r,1),1)[0];e.unshift(i)}return e.push(["ER"]),e.map(g).join("")},_={ris:function(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=e.type,i=e.format;return"object"===(void 0===i?r||"text":i)?t.map(p):t.map(p).map(b).join("")}};i["default"]=_},{"../../date":371,"../../name":395}],395:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var n=["dropping-particle","given"],o=["suffix"],a=["non-dropping-particle","family"],i=function(e){var t=1<arguments.length&&arguments[1]!==undefined&&arguments[1],r=function(t){return t.map(function(t){return e[t]||""}).filter(Boolean).join(" ")};if(e.literal)return e.literal;if(t){var i=r(o)?", ".concat(r(o)):"",s=r(n)?", ".concat(r(n)):"";return r(a)+i+s}return"".concat(r(n.concat(o,a)))};r["default"]=i},{}],396:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.format=r.list=r.has=r.remove=r.add=r.register=void 0;var i,s=(i=t("../util/register"))&&i.__esModule?i:{"default":i};function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=new s["default"];r.register=o;r.add=function(t,e){!function(t,e){if("string"!=typeof t)throw new TypeError("Invalid output format name, expected string, got ".concat(n(t)));if("function"!=typeof e)throw new TypeError("Invalid formatter, expected function, got ".concat(n(e)))}(t,e),o.set(t,e)};r.remove=function(t){o.remove(t)};r.has=function(t){return o.has(t)};r.list=function(){return o.list()};r.format=function(t,e){if(!o.has(t))return logger.error("[get]",'Output plugin "'.concat(t,'" unavailable')),undefined;for(var r=arguments.length,i=new Array(2<r?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];return o.get(t).apply(void 0,[e].concat(i))}},{"../util/register":446}],397:[function(t,e,r){(function(t,e){"use strict";"true"===t.env.TEST_MOCHA?e.logger={error:function(){},warn:function(){},info:function(){}}:"function"==typeof console.Console?e.logger=new console.Console(t.stderr):e.logger=console}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:327}],398:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i["default"]=void 0;var s,n=(s=e("./name"))&&s.__esModule?s:{"default":s};function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l={author:2,"collection-editor":2,composer:2,"container-author":2,editor:2,"editorial-director":2,director:2,interviewer:2,illustrator:2,"original-author":2,"reviewed-author":2,recipient:2,translator:2,accessed:3,container:3,"event-date":3,issued:3,"original-date":3,submitted:3,categories:"object",id:["string","number"],type:"string",language:"string",journalAbbreviation:"string",shortTitle:"string","abstract":"string",annote:"string",archive:"string",archive_location:"string","archive-place":"string",authority:"string","call-number":"string","chapter-number":"string","citation-number":"string","citation-label":"string","collection-number":"string","collection-title":"string","container-title":"string","container-title-short":"string",dimensions:"string",DOI:"string",edition:["string","number"],event:"string","event-place":"string","first-reference-note-number":"string",genre:"string",ISBN:"string",ISSN:"string",issue:["string","number"],jurisdiction:"string",keyword:"string",locator:"string",medium:"string",note:"string",number:["string","number"],"number-of-pages":"string","number-of-volumes":["string","number"],"original-publisher":"string","original-publisher-place":"string","original-title":"string",page:"string","page-first":"string",PMCID:"string",PMID:"string",publisher:"string","publisher-place":"string",references:"string","reviewed-title":"string",scale:"string",section:"string",source:"string",status:"string",title:"string","title-short":"string",URL:"string",version:"string",volume:["string","number"],"year-suffix":"string"},u=function(t){var e=!(1<arguments.length&&arguments[1]!==undefined)||arguments[1];return"object"===a(t)&&(t.literal||t.given||t.family)?t:e?"string"==typeof t?(0,n["default"])(t):void 0:undefined},c=function t(e,r){var i=!(2<arguments.length&&arguments[2]!==undefined)||arguments[2],s=[].concat(l[e]);switch(l[e]){case 1:return u(r,i);case 2:return function(t){var e=!(1<arguments.length&&arguments[1]!==undefined)||arguments[1];if(t instanceof Array)return t.map(function(t){return u(t,e)}).filter(Boolean)||undefined}(r,i);case 3:return function(t){var e=!(1<arguments.length&&arguments[1]!==undefined)||arguments[1],r="date-parts";if(t&&t[r]instanceof Array&&t[r].every(function(t){return t instanceof Array})){if(t[r].every(function(t){return t.every(function(t){return"number"==typeof t})}))return o({},r,t[r].map(function(t){return t.slice()}));if(!e)return undefined;if(t[r].some(function(t){return t.some(function(t){return"string"==typeof t})}))return o({},r,t[r].map(function(t){return t.map(parseFloat)}))}else if(t&&t instanceof Array&&t[0][r]instanceof Array){if(t[0][r].every(function(t){return"number"==typeof t}))return o({},r,[t[0][r].slice()]);if(!e)return undefined;if(t[0][r].every(function(t){return"string"==typeof t}))return o({},r,[t[0][r].map(parseFloat)])}}(r,i)}return s.includes(a(r))?r:/^_/.test(r)?r:i?"string"==typeof r&&s.includes("number")&&parseFloat(r)?parseFloat(r):"number"==typeof r&&s.includes("string")&&!s.includes("number")?r.toString():Array.isArray(r)&&r.length?t(e,r[0]):void 0:undefined},p=function(t){return t.map(function(t){var e={};for(var r in t){var i=c(r,t[r]);i!==undefined&&(e[r]=i)}return e})};i["default"]=p},{"./name":438}],399:[function(t,e,r){"use strict";function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=r.types=r.scope=void 0;var i={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},u=function(t){return i[t.toLowerCase().slice(0,3)]};r["default"]=r.parse=function(t){var e,r,i,s=(r=t,i=new Date(r),("number"!=typeof r||isNaN(i.valueOf())?null:[i.getFullYear(),i.getMonth()+1,i.getDate()])||function(t){var e=/^(\d{4}|[-+]\d{6,})-(\d{2})-(\d{2})/;if("string"!=typeof t||!e.test(t))return null;var r=l(t.match(e),4),i=r[1],s=r[2],n=r[3];return+s?+n?[i,s,n]:[i,s]:[i]}(t)||function(t){var e=/^(?:[a-z]{3},\s*)?(\d{1,2}) ([a-z]{3}) (\d{4,})/i;if("string"!=typeof t||!e.test(t))return null;var r=l(t.match(e),4),i=r[1],s=r[2],n=r[3];return(s=u(s))?[n,s,i]:null}(t)||function(t){var e=/^(\d{1,2})\/(\d{1,2})\/(\d{2}(?:\d{2})?)/;if("string"!=typeof t||!e.test(t))return null;var r=l(t.match(e),4),i=r[1],s=r[2],n=r[3];return new Date(n,i,s).getMonth()===parseInt(i)?[n,i,s]:null}(t)||function(t){var e,r,i,s=/^(\d{1,2})[ .\-/](\d{1,2}|[a-z]{3,10})[ .\-/](-?\d+)/i,n=/^(-?\d+)[ .\-/](\d{1,2}|[a-z]{3,10})[ .\-/](\d{1,2})/i;if("string"!=typeof t)return null;if(s.test(t)){var o=l(t.match(s),4);i=o[1],r=o[2],e=o[3]}else{if(!n.test(t))return null;var a=l(t.match(n),4);e=a[1],r=a[2],i=a[3]}if(u(r))r=u(r);else if(isNaN(r))return null;return[e,r,i]}(t)||function(t){var e=/^([a-z]{3,10}|-?\d+)[^\w-]+([a-z]{3,10}|-?\d+)$/i;if("string"==typeof t&&e.test(t)){var r,i=t.match(e).slice(1,3);if(u(i[1]))r=u(i.pop());else if(u(i[0]))r=u(i.shift());else{if(i.some(isNaN)||i.every(function(t){return+t<0}))return null;r=+i[0]<0?i.pop():+i[0]>+i[1]&&0<+i[1]?i.pop():i.shift()}return[i.pop(),r]}return null}(t)||("string"==typeof(e=t)&&/^-?\d+$/.test(e)?[e]:null));return s?{"date-parts":[s=s.map(function(t){return parseInt(t)})]}:{raw:t}};r.scope="@date";r.types="@date"},{}],400:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={wikidata:!0,bibtex:!0,bibtxt:!0,bibjson:!0,doi:!0,input:!0,json:!0,date:!0,name:!0,csl:!0};Object.defineProperty(r,"json",{enumerable:!0,get:function(){return p.parse}}),Object.defineProperty(r,"date",{enumerable:!0,get:function(){return m["default"]}}),Object.defineProperty(r,"name",{enumerable:!0,get:function(){return f["default"]}}),Object.defineProperty(r,"csl",{enumerable:!0,get:function(){return h["default"]}}),r.input=r.doi=r.bibjson=r.bibtxt=r.bibtex=r.wikidata=void 0,t("./modules/");var s=t("./interface/chain"),n=t("./interface/data"),o=t("./interface/type"),a=t("./modules/bibjson/"),l=t("./modules/bibtex/"),u=t("./modules/doi/"),c=t("./modules/wikidata/"),p=t("./modules/other/json"),m=g(t("./date")),f=g(t("./name")),h=g(t("./csl")),d=t("./interface/");function g(t){return t&&t.__esModule?t:{"default":t}}Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return d[t]}}))});var b={list:c.parsers.list.parse,json:c.parsers.json.parse,prop:c.parsers.prop.parse,type:c.parsers.type.parse,async:{json:c.parsers.json.parseAsync,prop:c.parsers.prop.parseAsync}};r.wikidata=b;var _={json:l.parsers.json.parse,text:l.parsers.text.parse,prop:l.parsers.prop.parse,type:l.parsers.type.parse};r.bibtex=_;var y={text:l.parsers.bibtxt.text,textEntry:l.parsers.bibtxt.textEntry};r.bibtxt=y;var v=a.parsers.json.parse;r.bibjson=v;var x={id:u.parsers.id.parse,api:u.parsers.api.parse,async:{api:u.parsers.api.parseAsync}};r.doi=x;var w={chain:s.chain,chainAsync:s.chainAsync,chainLink:s.chainLink,chainLinkAsync:s.chainLinkAsync,data:n.data,dataAsync:n.dataAsync,type:o.type,async:{chain:s.chainAsync,chainLink:s.chainLinkAsync,data:n.dataAsync}};r.input=w},{"./csl":398,"./date":399,"./interface/":405,"./interface/chain":401,"./interface/data":402,"./interface/type":408,"./modules/":423,"./modules/bibjson/":409,"./modules/bibtex/":412,"./modules/doi/":420,"./modules/other/json":429,"./modules/wikidata/":432,"./name":438}],401:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.chainLinkAsync=i.chainAsync=i.chainLink=i.chain=void 0;var s,m=(s=e("../../util/deepCopy"))&&s.__esModule?s:{"default":s},f=e("./type"),h=e("./data"),d=e("./graph");function n(i){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=i.apply(t,r);function e(t,e){try{var r=a[t](e),i=r.value}catch(s){return void o(s)}r.done?n(i):Promise.resolve(i).then(l,u)}function l(t){e("next",t)}function u(t){e("throw",t)}l()})}}i.chain=function(t){for(var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=e.maxChainLength,i=void 0===r?10:r,s=e.generateGraph,n=void 0===s||s,o=e.forceType||(0,f.type)(t),a=o.match(/object$/)?(0,m["default"])(t):t,l=[{type:o,data:t}];"@csl/list+object"!==o;){if(i--<=0)return logger.error("[set]","Max. number of parsing iterations reached"),[];a=(0,h.data)(a,o),o=(0,f.type)(a),l.push({type:o})}return a.map(n?function(t){return(0,d.applyGraph)(t,l)}:d.removeGraph)};i.chainLink=function(t){var e=(0,f.type)(t),r=e.match(/array|object/)?(0,m["default"])(t):t;return(0,h.data)(r,e)};var o,a=(o=n(regeneratorRuntime.mark(function t(e){var r,i,s,n,o,a,l,u,c,p=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=1<p.length&&p[1]!==undefined?p[1]:{},i=r.maxChainLength,s=void 0===i?10:i,n=r.generateGraph,o=void 0===n||n,a=r.forceType,l=a||(0,f.type)(e),u=l.match(/array|object/)?(0,m["default"])(e):e,c=[{type:l,data:e}];case 5:if("@csl/list+object"===l){t.next=16;break}if(!(s--<=0)){t.next=9;break}return logger.error("[set]","Max. number of parsing iterations reached"),t.abrupt("return",[]);case 9:return t.next=11,(0,h.dataAsync)(u,l);case 11:u=t.sent,l=(0,f.type)(u),c.push({type:l}),t.next=5;break;case 16:return t.abrupt("return",u.map(o?function(t){return(0,d.applyGraph)(t,c)}:d.removeGraph));case 17:case"end":return t.stop()}},t,this)})),function(t){return o.apply(this,arguments)});i.chainAsync=a;var l,u=(l=n(regeneratorRuntime.mark(function t(e){var r,i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=(0,f.type)(e),i=r.match(/array|object/)?(0,m["default"])(e):e,t.abrupt("return",(0,h.dataAsync)(i,r));case 3:case"end":return t.stop()}},t,this)})),function(t){return l.apply(this,arguments)});i.chainLinkAsync=u},{"../../util/deepCopy":441,"./data":402,"./graph":404,"./type":408}],402:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.listDataParser=i.removeDataParser=i.hasDataParser=i.addDataParser=i.dataAsync=i.data=void 0;var s=e("./chain");function n(i){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=i.apply(t,r);function e(t,e){try{var r=a[t](e),i=r.value}catch(s){return void o(s)}r.done?n(i):Promise.resolve(i).then(l,u)}function l(t){e("next",t)}function u(t){e("throw",t)}l()})}}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var a,l=function(t){var e;return(e=[]).concat.apply(e,o(t))},u={},c={},p={"@csl/object":function(t){return[t]},"@csl/list+object":function(t){return t},"@else/list+object":function(t){return l(t.map(s.chain))},"@invalid":function(){return[]}},m={"@else/list+object":(a=n(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=l,t.next=3,Promise.all(e.map(s.chainAsync));case 3:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 5:case"end":return t.stop()}},t,this)})),function(t){return a.apply(this,arguments)})},f=function(t,e){return u.hasOwnProperty(e)?u[e](t):p.hasOwnProperty(e)?p[e](t):(logger.error("[set]","No synchronous parser found for ".concat(e)),null)};i.data=f;var h,d=(h=n(regeneratorRuntime.mark(function t(e,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!c.hasOwnProperty(r)){t.next=4;break}return t.abrupt("return",c[r](e));case 4:if(!m.hasOwnProperty(r)){t.next=8;break}return t.abrupt("return",m[r](e));case 8:if(!g(r,!1)){t.next=12;break}return t.abrupt("return",f(e,r));case 12:return logger.error("[set]","No parser found for ".concat(r)),t.abrupt("return",null);case 14:case"end":return t.stop()}},t,this)})),function(t,e){return h.apply(this,arguments)});i.dataAsync=d;i.addDataParser=function(t,e){var r=e.parser;e.async?c[t]=r:u[t]=r};var g=function(t,e){return e?c[t]||m[t]:u[t]||p[t]};i.hasDataParser=g;i.removeDataParser=function(t,e){delete(e?c:u)[t]};i.listDataParser=function(t){return Object.keys(t?c:u)}},{"./chain":401}],403:[function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(r,"__esModule",{value:!0}),r.dataTypeOf=r.typeOf=void 0;var s=function(t){switch(t){case undefined:return"Undefined";case null:return"Null";default:return t.constructor.name}};r.typeOf=s;r.dataTypeOf=function(t){switch(i(t)){case"string":return"String";case"object":if(Array.isArray(t))return"Array";if("Object"===s(t))return"SimpleObject";if("Null"!==s(t))return"ComplexObject";default:return"Primitive"}}},{}],404:[function(t,e,r){"use strict";function i(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r.removeGraph=r.applyGraph=void 0;r.applyGraph=function(t,e){var r=function(t){return"@else/list+object"===t.type};return Array.isArray(t._graph)?e.find(r)&&(e.splice.apply(e,[e.findIndex(r),1].concat(i(t._graph.slice(0,-1)))),t._graph=e):t._graph=e,t};r.removeGraph=function(t){return delete t._graph,t}},{}],405:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={util:!0};r.util=void 0;var s=p(t("./dataType")),n=p(t("./graph")),o=p(t("./parser")),a=t("./register");Object.keys(a).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return a[t]}}))});var l=t("./chain");Object.keys(l).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return l[t]}}))});var u=t("./type");Object.keys(u).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return u[t]}}))});var c=t("./data");function p(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}Object.keys(c).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(i,t)||Object.defineProperty(r,t,{enumerable:!0,get:function(){return c[t]}}))});var m=function(s){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},e=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.forEach(function(t){var e,r,i;e=s,i=n[r=t],r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i})}return s}({},s,n,o);r.util=m},{"./chain":401,"./data":402,"./dataType":403,"./graph":404,"./parser":406,"./register":407,"./type":408}],406:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FormatParser=r.DataParser=r.TypeParser=void 0;var i=t("./type");function n(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),t}var u=function(){function s(t){var e,r,i;a(this,s),i=["String","Array","SimpleObject","ComplexObject","Primitive"],(r="validDataTypes")in(e=this)?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,this.data=t}return l(s,[{key:"validateDataType",value:function(){var t=this.data.dataType;if(t&&!this.validDataTypes.includes(t))throw new RangeError("dataType was ".concat(t,"; expected one of ").concat(this.validDataTypes))}},{key:"validateParseType",value:function(){var t=this.data.predicate;if(t&&!(t instanceof RegExp||"function"==typeof t))throw new TypeError("predicate was ".concat(o(t),"; expected RegExp or function"))}},{key:"validateTokenList",value:function(){var t=this.data.tokenList;if(t&&"object"!==o(t))throw new TypeError("tokenList was ".concat(o(t),"; expected object or RegExp"))}},{key:"validatePropertyConstraint",value:function(){var t=this.data.propertyConstraint;if(t&&"object"!==o(t))throw new TypeError("propertyConstraint was ".concat(o(t),"; expected array or object"))}},{key:"validateElementConstraint",value:function(){var t=this.data.elementConstraint;if(t&&"string"!=typeof t)throw new TypeError("elementConstraint was ".concat(o(t),"; expected string"))}},{key:"validateExtends",value:function(){var t=this.data["extends"];if(t&&"string"!=typeof t)throw new TypeError("extends was ".concat(o(t),"; expected string"))}},{key:"validate",value:function(){if(null===this.data||"object"!==o(this.data))throw new TypeError("typeParser was ".concat(o(this.data),"; expected object"));this.validateDataType(),this.validateParseType(),this.validateTokenList(),this.validatePropertyConstraint(),this.validateElementConstraint(),this.validateExtends()}},{key:"parseTokenList",value:function(){var t=this.data.tokenList;if(!t)return[];t instanceof RegExp&&(t={token:t});var e=t,r=e.token,i=e.split,s=void 0===i?/\s+/:i,n=e.trim,o=void 0===n||n,a=e.every,l=void 0===a||a?"every":"some";return[function(t){return(e=t,o?e.trim():e).split(s)[l](function(t){return r.test(t)});var e}]}},{key:"parsePropertyConstraint",value:function(){return[].concat(this.data.propertyConstraint||[]).map(function(t){var r=t.props,e=t.match,i=void 0===e?"every":e,s=t.value,n=void 0===s?function(){return!0}:s;return r=[].concat(r),function(e){return r[i](function(t){return t in e&&n(e[t])})}})}},{key:"parseElementConstraint",value:function(){var e=this.data.elementConstraint;return e?[function(t){return t.every(function(t){return(0,i.type)(t)===e})}]:[]}},{key:"parsePredicate",value:function(){return this.data.predicate instanceof RegExp?[this.data.predicate.test.bind(this.data.predicate)]:this.data.predicate?[this.data.predicate]:[]}},{key:"getCombinedPredicate",value:function(){var t=n(this.parsePredicate()).concat(n(this.parseTokenList()),n(this.parsePropertyConstraint()),n(this.parseElementConstraint()));return 0===t.length?function(){return!0}:1===t.length?t[0]:function(e){return t.every(function(t){return t(e)})}}},{key:"getDataType",value:function(){return this.data.dataType?this.data.dataType:this.data.predicate instanceof RegExp?"String":this.data.tokenList?"String":this.data.elementConstraint?"Array":"Primitive"}},{key:"dataType",get:function(){return this.getDataType()}},{key:"predicate",get:function(){return this.getCombinedPredicate()}},{key:"extends",get:function(){return this.data["extends"]}}]),s}();r.TypeParser=u;var c=function(){function r(t){var e=(1<arguments.length&&arguments[1]!==undefined?arguments[1]:{}).async;a(this,r),this.parser=t,this.async=e}return l(r,[{key:"validate",value:function(){var t=this.parser;if("function"!=typeof t)throw new TypeError("parser was ".concat(o(t),"; expected function"))}}]),r}();r.DataParser=c;var p=function(){function r(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{};a(this,r),this.format=t,e.parseType&&(this.typeParser=new u(e.parseType)),e.parse&&(this.dataParser=new c(e.parse,{async:!1})),e.parseAsync&&(this.asyncDataParser=new c(e.parseAsync,{async:!0}))}return l(r,[{key:"validateFormat",value:function(){var t=this.format;if(!i.typeMatcher.test(t))throw new TypeError('format name was "'.concat(t,"\"; didn't match expected pattern"))}},{key:"validate",value:function(){this.validateFormat(),this.typeParser&&this.typeParser.validate(),this.dataParser&&this.dataParser.validate(),this.asyncDataParser&&this.asyncDataParser.validate()}}]),r}();r.FormatParser=p},{"./type":408}],407:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.list=r.has=r.remove=r.add=void 0;var s=t("./parser"),n=t("./type"),o=t("./data"),a={};r.add=function(t,e){var r=new s.FormatParser(t,e);r.validate();var i=a[t]={};r.typeParser&&((0,n.addTypeParser)(t,r.typeParser),i.type=!0),r.dataParser&&((0,o.addDataParser)(t,r.dataParser),i.data=!0),r.asyncDataParser&&((0,o.addDataParser)(t,r.asyncDataParser),i.asyncData=!0)};r.remove=function(t){var e=a[t];e&&(e.type&&(0,n.removeTypeParser)(t),e.data&&(0,o.removeDataParser)(t),e.asyncData&&(0,o.removeDataParser)(t,!0),delete a[t])};r.has=function(t){return t in a};r.list=function(){return Object.keys(a)}},{"./data":402,"./parser":406,"./type":408}],408:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.typeMatcher=r.treeTypeParser=r.listTypeParser=r.removeTypeParser=r.hasTypeParser=r.addTypeParser=r.type=void 0;var i=t("./dataType");function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var c={},l={},u={},o=function(t,e){switch(e){case"Array":return 0===t.length||t.every(function(t){return"@csl/object"===a(t)})?"@csl/list+object":"@else/list+object";case"SimpleObject":case"ComplexObject":return"@csl/object";default:return logger.warn("[set]","This format is not supported or recognized"),"@invalid"}},a=function(e){var r=(0,i.dataTypeOf)(e);return"Array"===r&&0===e.length?o(e,r):function t(){var e=0<arguments.length&&arguments[0]!==undefined?arguments[0]:[],r=1<arguments.length?arguments[1]:undefined,i=!0,s=!1,n=undefined;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var l=o.value;if(c[l].predicate(r))return t(c[l].extensions,r)||l}}catch(u){s=!0,n=u}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}}(l[r],e)||o(e,r)};r.type=a;r.addTypeParser=function(t,e){var r=e.dataType,i=e.predicate,s=e["extends"],n=[];t in u&&(n=u[t],delete u[t],logger.info("[set]",'Subclasses "'.concat(n,'" finally registered to parent type "').concat(t,'"')));var o={predicate:i,extensions:n};if(c[t]=o,s){var a=c[s];a?a.extensions.push(t):(u[s]||(u[s]=[]),u[s].push(t),logger.info("[set]",'Subclass "'.concat(t,'" is waiting on parent type "').concat(s,'"')))}else(l[r]||(l[r]=[])).push(t)};r.hasTypeParser=function(t){return c.hasOwnProperty(t)};r.removeTypeParser=function(r){delete c[r],n(Object.values(l)).concat(n(Object.values(c).map(function(t){return t.extensions}).filter(function(t){return 0<t.length}))).forEach(function(t){var e=t.indexOf(r);-1<e&&t.splice(e,1)})};r.listTypeParser=function(){return Object.keys(c)};r.treeTypeParser=function(){var r=function t(e){return{name:e,children:c[e].extensions.map(t)}};return{name:"Type tree",children:Object.entries(l).map(function(t){var e=s(t,2);return{name:e[0],children:e[1].map(r)}})}};r.typeMatcher=/^(?:@(.+?))(?:\/(?:(.+?)\+)?(?:(.+)))?$/},{"./dataType":403}],409:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.formats=r.parsers=r.ref=void 0;var i=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}}(t("./json"));var s=["fulltext_html","fulltext_xml","fulltext_pdf"];r.ref="@bibjson";var n={json:i};r.parsers=n;var o={"@bibjson/quickscrape+record+object":{parse:i.quickscrapeRecord,parseType:{propertyConstraint:{props:"link",value:function(t){return s.some(function(e){return t.find(function(t){return t.type===e})})}},"extends":"@bibjson/record+object"}},"@bibjson/record+object":{parse:i.record,parseType:{dataType:"SimpleObject",propertyConstraint:[{props:"title"},{props:["author","editor"],match:"some",value:function(t){return Array.isArray(t)&&t[0]&&"name"in t[0]}}]}},"@bibjson/collection+object":{parse:function(t){return t.records},parseType:{dataType:"SimpleObject",propertyConstraint:[{props:"metadata",value:function(t){return"collection"in t}},{props:"records",value:function(t){return Array.isArray(t)}}]}}};r.formats=o},{"./json":410}],410:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.record=r.quickscrapeRecord=void 0;var s=i(t("../../date")),a=i(t("../../name"));function i(t){return t&&t.__esModule?t:{"default":t}}function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){var e=t.firstname,r=t.lastname,i=t.firstName,s=void 0===i?e:i,n=t.lastName,o=void 0===n?r:n;return s&&o?{given:s,family:o}:t.name?(0,a["default"])(t.name):void 0}var l=["PMID","PMCID","DOI","ISBN"],u=["ISSN"];function c(t,e){var r={};for(var i in t){var s=i.toUpperCase();e.includes(s)&&(r[s]=t[i])}if(t.identifier){var n=!0,o=!1,a=undefined;try{for(var l,u=t.identifier[Symbol.iterator]();!(n=(l=u.next()).done);n=!0){var c=l.value,p=c.id,m=c.type,f=void 0===m?"":m;f=f.toUpperCase(),e.includes(f)&&(r[f]=p)}}catch(h){o=!0,a=h}finally{try{n||null==u["return"]||u["return"]()}finally{if(o)throw a}}}return r}var p={article:"article",book:"book",booklet:"book",proceedings:"book",mastersthesis:"thesis",inbook:"chapter",incollection:"chapter",conference:"paper-conference",inproceedings:"paper-conference",online:"website",patent:"patent",phdthesis:"thesis",techreport:"report",unpublished:"manuscript",manual:undefined,misc:undefined};function m(t){var e={type:p[t.type]||"book"};if(t.title&&(e.title=t.title),t.author&&(e.author=t.author.map(o).filter(Boolean)),t.editor&&(e.editor=t.editor.map(o).filter(Boolean)),t.reviewer&&(t.author&&(e["reviewed-author"]=e.author),e.author=t.reviewer.map(o).filter(Boolean)),Array.isArray(t.keywords)?e.keyword=t.keywords.join():t.keywords&&(e.keyword=t.keywords),t.publisher&&(e.publisher=t.publisher.name||t.publisher),t.date&&0<Object.keys(t.date).length){var r=t.date;r.submitted&&(e.submitted=(0,s["default"])(r.submitted)),r.published&&(e.issued=(0,s["default"])(r.published))}else t.year&&(e.issued={"date-parts":[[+t.year]]});if(t.journal){var i=t.journal;i.name&&(e["container-title"]=i.name),i.volume&&(e.volume=+i.volume),i.issue&&(e.issue=+i.issue),Object.assign(e,c(i,u)),i.firstpage&&(e["page-first"]=i.firstpage),i.pages?e.page=i.pages.replace("--","-"):i.firstpage&&i.lastpage&&(e.page=i.firstpage+"-"+i.lastpage)}return t.link&&"object"===n(t.link[0])&&(e.URL=t.link[0].url),Object.assign(e,c(t,l)),t.cid?e.id=t.cid:e.DOI&&(e.id=e.DOI),e}r.quickscrapeRecord=function(t){return Object.assign(m(t),{type:"article-journal"})};r.record=function(t){return m(t)}},{"../../date":399,"../../name":438}],411:[function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r.textEntry=r.text=r.parse=void 0;var i=/\n\s*(?=\[)/g,o=/^\[(.+?)\]\s*(?:\n([\s\S]+))?$/,a=/((?=.)\s)*\n\s*/g,l=/:(.*)/,s=function(t){var e=n(t.match(o)||[],3),r=e[1],i=e[2];if(r&&i){var s={type:"book",label:r,properties:{}};return i.trim().split(a).filter(function(t){return t}).forEach(function(t){var e=n(t.split(l),2),r=e[0],i=e[1];i&&(r=r.trim(),i=i.trim(),"type"===r?s.type=i:s.properties[r]=i)}),s}return{}};r.textEntry=s;r.text=r.parse=function(t){return t.trim().split(i).map(s)}},{}],412:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.formats=r.parsers=r.ref=void 0;var i=l(t("./text")),s=l(t("./json")),n=l(t("./prop")),o=l(t("./type")),a=l(t("./bibtxt"));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}r.ref="@bibtex";var u={text:i,json:s,prop:n,type:o,bibtxt:a};r.parsers=u;var c={"@bibtex/text":{parse:i.parse,parseType:{dataType:"String",predicate:/@\s{0,5}[A-Za-z]{1,13}\s{0,5}\{\s{0,5}[^@{}"=,\\\s]{0,100}\s{0,5},[\s\S]*\}/}},"@bibtxt/text":{parse:a.parse,parseType:{dataType:"String",predicate:/^\s*(\[(?!\s*[{[]).*?\]\s*(\n\s*[^[]((?!:)\S)+\s*:\s*.+?\s*)*\s*)+$/}},"@bibtex/object":{parse:s.parse,parseType:{dataType:"SimpleObject",propertyConstraint:{props:["type","label","properties"]}}},"@bibtex/prop":{parse:n.parse},"@bibtex/type":{parse:o.parse}};r.formats=c},{"./bibtxt":411,"./json":413,"./prop":414,"./text":415,"./type":417}],413:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=void 0;var l=i(t("./prop")),u=i(t("./type"));function i(t){return t&&t.__esModule?t:{"default":t}}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}r["default"]=r.parse=function(t){return[].concat(t).map(function(t){var a={},e=[];for(var r in t.properties){var i=t.properties[r],s=c((0,l["default"])(r,i)||[],2),n=s[0],o=s[1];n&&(/^[^:\s]+?:[^.\s]+(\.[^.\s]+)*$/.test(n)?e.push([n,o]):a[n]=o)}return a.type=(0,u["default"])(t.type),a.id=a["citation-label"]=t.label,/\d(\D+)$/.test(t.label)&&(a["year-suffix"]=t.label.match(/\d(\D+)$/)[1]),e.forEach(function(t){for(var e=c(t,2),r=e[0],i=e[1],s=r.split(/:|\./g),n=a;0<s.length;){var o=s.shift();n=n[o]||(n[o]=s.length?isNaN(+s[0])?{}:[]:i)}}),a})}},{"./prop":414,"./type":417}],414:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=void 0;var i=s(t("../../name")),u=s(t("../../date"));function s(t){return t&&t.__esModule?t:{"default":t}}var c=[/jan(uary)?\.?/i,/feb(ruary)?\.?/i,/mar(ch)?\.?/i,/apr(il)?\.?/i,/may\.?/i,/jun(e)?\.?/i,/jul(y)?\.?/i,/aug(ust)?\.?/i,/sep(tember)?\.?/i,/oct(ober)?\.?/i,/nov(ember)?\.?/i,/dec(ember)?\.?/i],p=function(t){return/{|}/.test(t)?{literal:t.replace(/[{}]/g,"")}:(0,i["default"])(t)},m={textit:"i",textbf:"b",textsc:"sc",textsuperscript:"sup",textsubscript:"sub"},n={address:"publisher-place",author:!0,booktitle:"container-title",doi:"DOI",date:"issued",edition:!0,editor:!0,isbn:"ISBN",issn:"ISSN",issue:"issue",journal:"container-title",language:!0,location:"publisher-place",note:!0,number:"issue",numpages:"number-of-pages",pages:"page",pmid:"PMID",pmcid:"PMCID",publisher:!0,series:"collection-title",title:!0,url:"URL",volume:!0,year:"issued:date-parts.0.0",month:"issued:date-parts.0.1",day:"issued:date-parts.0.2",crossref:!1,keywords:!1};r["default"]=r.parse=function(t,e){if(!n.hasOwnProperty(t))return logger.info("[set]","Unknown property: ".concat(t)),undefined;if(!1===n[t])return undefined;var l=!0===n[t]?t:n[t];return[l,function(t,e){switch(l){case"author":case"editor":return a=[],e.replace(/%/g,"%0").replace(/{.*?}/g,function(t){return"%[".concat(a.push(t)-1,"]")}).split(" and ").map(function(t){return t.replace(/%\[(\d+)\]/,function(t,e){return a[+e]}).replace(/%0/g,"%")}).map(p);case"issued":return/{|}/.test(o=e)?{literal:o.replace(/[{}]/g,"")}:(0,u["default"])(o);case"edition":return e;case"issued:date-parts.0.1":return parseFloat(e)?e:c.findIndex(function(t){return t.test(e)})+1;case"page":return e.replace(/[\u2014\u2013]/,"-");case"title":return i=(r=e).split(/((?:\\text[a-z]+)?{|})/),s=[],n="{"===r[0]&&"}"===r[r.length-1],i=i.map(function(t,e){if(e%2==0)return t;if("\\"===t[0]){var r=m[t.slice(1,-1)];return s.push("</".concat(r,">")),"<".concat(r,">")}return"{"===t?(s.push("</span>"),'<span class="nocase">'):"}"===t?(1===s.length&&e!==i.length-2&&(n=!1),s.pop()):void 0}),n&&(i.splice(0,2),i.splice(-2,2)),i.join("");default:return e.replace(/[{}]/g,"")}var r,i,s,n,o,a}(0,e)]}},{"../../date":399,"../../name":438}],415:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=void 0;var u=i(t("../../../util/stack")),c=i(t("./tokens.json"));function i(t){return t&&t.__esModule?t:{"default":t}}var p=/\\url|\\href|{\\[a-zA-Z]+}|\$\\[a-zA-Z]+\$|\$[_^]{[0-9()+=\-n]}\$|`{2,3}|'{2,3}|-{2,3}|[!?]!|!\?|{\\~}|\\[#$%&~_^\\{}]|{\\(?:[a-z] |[`"'^~=.])\\?[a-zA-Z]}|[\s\S]/g,m=/^\s$/,f=/^[@{}"=,\\]$/,h={'"':'"',"{":"}","":""};r["default"]=r.parse=function(t){var e=[],r=t.replace(/(\\[`"'^~=.]){\\?([A-Za-z])}/g,"{$1$2}").replace(/(\\[a-z]) ?{\\?([A-Za-z])}/g,"{$1 $2}").match(p),n=new u["default"](r);try{for(n.consumeWhitespace();n.tokensLeft();){n.consumeToken("@",{spaced:!1}),n.consumeWhitespace();var i=n.consume([m,f],{inverse:!0}).toLowerCase();n.consumeToken("{");var s=n.consume([m,f],{inverse:!0});n.consumeToken(",");for(var o={},a=function(){var t=n.consume([m,"="],{inverse:!0}).toLowerCase();n.consumeToken("=");var e=n.consume(/^({|"|)$/g),r=h[e];if(!h.hasOwnProperty(e))throw new SyntaxError("Unexpected field delimiter at index ".concat(n.index,". Expected ")+"".concat(Object.keys(h).map(function(t){return'"'.concat(t,'"')}).join(", "),'; got "').concat(e,'"'));var i=0,s=n.consume(function(e,t){if("{"===e&&i++,n.tokensLeft()<r.length)throw new SyntaxError("Unmatched delimiter at index ".concat(n.index,": Expected ").concat(r));return r.length?"}"===e&&i--||!n.matchesSequence(r):![m,f].some(function(t){return t.test(e)})},{tokenMap:function(t){if(c["default"].hasOwnProperty(t))return c["default"][t];if(t.match(/^\\[#$%&~_^\\{}]$/))return t.slice(1);if(1<t.length)throw new SyntaxError("Escape sequence not recognized: ".concat(t));return t}});return o[t]=s,n.consumeN(r.length),n.consumeWhitespace(),n.matches("}")?"break":(n.consumeToken(",",{spaced:!1}),n.consumeWhitespace(),n.matches("}")?"break":void 0)};n.tokensLeft()&&"break"!==a(););n.consumeToken("}",{spaced:!1}),n.consumeWhitespace(),e.push({type:i,label:s,properties:o})}}catch(l){logger.error("Uncaught SyntaxError: ".concat(l.message,". Returning completed entries.")),e.pop()}return e}},{"../../../util/stack":447,"./tokens.json":416}],416:[function(t,e,r){e.exports={"\\url":"","\\href":"","{\\textexclamdown}":"\xa1","{\\textcent}":"\xa2","{\\textsterling}":"\xa3","{\\textyen}":"\xa5","{\\textbrokenbar}":"\xa6","{\\textsection}":"\xa7","{\\textasciidieresis}":"\xa8","{\\textcopyright}":"\xa9","{\\textordfeminine}":"\xaa","{\\guillemotleft}":"\xab","{\\textlnot}":"\xac","{\\textregistered}":"\xae","{\\textasciimacron}":"\xaf","{\\textdegree}":"\xb0","{\\textpm}":"\xb1","{\\texttwosuperior}":"\xb2","{\\textthreesuperior}":"\xb3","{\\textasciiacute}":"\xb4","{\\textmu}":"\xb5","{\\textparagraph}":"\xb6","{\\textperiodcentered}":"\xb7","{\\c\\ }":"\xb8","{\\textonesuperior}":"\xb9","{\\textordmasculine}":"\xba","{\\guillemotright}":"\xbb","{\\textonequarter}":"\xbc","{\\textonehalf}":"\xbd","{\\textthreequarters}":"\xbe","{\\textquestiondown}":"\xbf","{\\AE}":"\xc6","{\\DH}":"\xd0","{\\texttimes}":"\xd7","{\\O}":"\xd8","{\\TH}":"\xde","{\\ss}":"\xdf","{\\ae}":"\xe6","{\\dh}":"\xf0","{\\textdiv}":"\xf7","{\\o}":"\xf8","{\\th}":"\xfe","{\\i}":"\u0131","{\\NG}":"\u014a","{\\ng}":"\u014b","{\\OE}":"\u0152","{\\oe}":"\u0153","{\\textasciicircum}":"\u02c6","{\\textacutedbl}":"\u02dd","$\\Gamma$":"\u0393","$\\Delta$":"\u0394","$\\Theta$":"\u0398","$\\Lambda$":"\u039b","$\\Xi$":"\u039e","$\\Pi$":"\u03a0","$\\Sigma$":"\u03a3","$\\Phi$":"\u03a6","$\\Psi$":"\u03a8","$\\Omega$":"\u03a9","$\\alpha$":"\u03b1","$\\beta$":"\u03b2","$\\gamma$":"\u03b3","$\\delta$":"\u03b4","$\\varepsilon$":"\u03b5","$\\zeta$":"\u03b6","$\\eta$":"\u03b7","$\\theta$":"\u03b8","$\\iota$":"\u03b9","$\\kappa$":"\u03ba","$\\lambda$":"\u03bb","$\\mu$":"\u03bc","$\\nu$":"\u03bd","$\\xi$":"\u03be","$\\pi$":"\u03c0","$\\rho$":"\u03c1","$\\varsigma$":"\u03c2","$\\sigma$":"\u03c3","$\\tau$":"\u03c4","$\\upsilon$":"\u03c5","$\\varphi$":"\u03c6","$\\chi$":"\u03c7","$\\psi$":"\u03c8","$\\omega$":"\u03c9","$\\vartheta$":"\u03d1","$\\Upsilon$":"\u03d2","$\\phi$":"\u03d5","$\\varpi$":"\u03d6","$\\varrho$":"\u03f1","$\\epsilon$":"\u03f5","{\\textendash}":"\u2013","{\\textemdash}":"\u2014","---":"\u2014","--":"\u2013","{\\textbardbl}":"\u2016","{\\textunderscore}":"\u2017","{\\textquoteleft}":"\u2018","{\\textquoteright}":"\u2019","{\\quotesinglbase}":"\u201a","{\\textquotedblleft}":"\u201c","{\\textquotedblright}":"\u201d","{\\quotedblbase}":"\u201e","{\\textdagger}":"\u2020","{\\textdaggerdbl}":"\u2021","{\\textbullet}":"\u2022","{\\textellipsis}":"\u2026","{\\textperthousand}":"\u2030","'''":"\u2034","''":"\u201d","``":"\u201c","```":"\u2037","{\\guilsinglleft}":"\u2039","{\\guilsinglright}":"\u203a","!!":"\u203c","{\\textfractionsolidus}":"\u2044","?!":"\u2048","!?":"\u2049","$^{0}$":"\u2070","$^{4}$":"\u2074","$^{5}$":"\u2075","$^{6}$":"\u2076","$^{7}$":"\u2077","$^{8}$":"\u2078","$^{9}$":"\u2079","$^{+}$":"\u207a","$^{-}$":"\u207b","$^{=}$":"\u207c","$^{(}$":"\u207d","$^{)}$":"\u207e","$^{n}$":"\u207f","$_{0}$":"\u2080","$_{1}$":"\u2081","$_{2}$":"\u2082","$_{3}$":"\u2083","$_{4}$":"\u2084","$_{5}$":"\u2085","$_{6}$":"\u2086","$_{7}$":"\u2087","$_{8}$":"\u2088","$_{9}$":"\u2089","$_{+}$":"\u208a","$_{-}$":"\u208b","$_{=}$":"\u208c","$_{(}$":"\u208d","$_{)}$":"\u208e","{\\texteuro}":"\u20ac","{\\textcelsius}":"\u2103","{\\textnumero}":"\u2116","{\\textcircledP}":"\u2117","{\\textservicemark}":"\u2120","{TEL}":"\u2121","{\\texttrademark}":"\u2122","{\\textohm}":"\u2126","{\\textestimated}":"\u212e","{\\`A}":"\xc0","{\\'A}":"\xc1","{\\^A}":"\xc2","{\\~A}":"\xc3",'{\\"A}':"\xc4","{\\r A}":"\xc5","{\\c C}":"\xc7","{\\`E}":"\xc8","{\\'E}":"\xc9","{\\^E}":"\xca",'{\\"E}':"\xcb","{\\`I}":"\xcc","{\\'I}":"\xcd","{\\^I}":"\xce",'{\\"I}':"\xcf","{\\~N}":"\xd1","{\\`O}":"\xd2","{\\'O}":"\xd3","{\\^O}":"\xd4","{\\~O}":"\xd5",'{\\"O}':"\xd6","{\\`U}":"\xd9","{\\'U}":"\xda","{\\^U}":"\xdb",'{\\"U}':"\xdc","{\\'Y}":"\xdd","{\\`a}":"\xe0","{\\'a}":"\xe1","{\\^a}":"\xe2","{\\~a}":"\xe3",'{\\"a}':"\xe4","{\\r a}":"\xe5","{\\c c}":"\xe7","{\\`e}":"\xe8","{\\'e}":"\xe9","{\\^e}":"\xea",'{\\"e}':"\xeb","{\\`i}":"\xec","{\\'i}":"\xed","{\\^i}":"\xee",'{\\"i}':"\xef","{\\~n}":"\xf1","{\\`o}":"\xf2","{\\'o}":"\xf3","{\\^o}":"\xf4","{\\~o}":"\xf5",'{\\"o}':"\xf6","{\\`u}":"\xf9","{\\'u}":"\xfa","{\\^u}":"\xfb",'{\\"u}':"\xfc","{\\'y}":"\xfd",'{\\"y}':"\xff","{\\=A}":"\u0100","{\\=a}":"\u0101","{\\u A}":"\u0102","{\\u a}":"\u0103","{\\k A}":"\u0104","{\\k a}":"\u0105","{\\'C}":"\u0106","{\\'c}":"\u0107","{\\^C}":"\u0108","{\\^c}":"\u0109","{\\.C}":"\u010a","{\\.c}":"\u010b","{\\v C}":"\u010c","{\\v c}":"\u010d","{\\v D}":"\u010e","{\\v d}":"\u010f","{\\=E}":"\u0112","{\\=e}":"\u0113","{\\u E}":"\u0114","{\\u e}":"\u0115","{\\.E}":"\u0116","{\\.e}":"\u0117","{\\k E}":"\u0118","{\\k e}":"\u0119","{\\v E}":"\u011a","{\\v e}":"\u011b","{\\^G}":"\u011c","{\\^g}":"\u011d","{\\u G}":"\u011e","{\\u g}":"\u011f","{\\.G}":"\u0120","{\\.g}":"\u0121","{\\c G}":"\u0122","{\\c g}":"\u0123","{\\^H}":"\u0124","{\\^h}":"\u0125","{\\~I}":"\u0128","{\\~i}":"\u0129","{\\=I}":"\u012a","{\\=i}":"\u012b","{\\=\\i}":"\u012b","{\\u I}":"\u012c","{\\u i}":"\u012d","{\\k I}":"\u012e","{\\k i}":"\u012f","{\\.I}":"\u0130","{\\^J}":"\u0134","{\\^j}":"\u0135","{\\c K}":"\u0136","{\\c k}":"\u0137","{\\'L}":"\u0139","{\\'l}":"\u013a","{\\c L}":"\u013b","{\\c l}":"\u013c","{\\v L}":"\u013d","{\\v l}":"\u013e","{\\L }":"\u0141","{\\l }":"\u0142","{\\'N}":"\u0143","{\\'n}":"\u0144","{\\c N}":"\u0145","{\\c n}":"\u0146","{\\v N}":"\u0147","{\\v n}":"\u0148","{\\=O}":"\u014c","{\\=o}":"\u014d","{\\u O}":"\u014e","{\\u o}":"\u014f","{\\H O}":"\u0150","{\\H o}":"\u0151","{\\'R}":"\u0154","{\\'r}":"\u0155","{\\c R}":"\u0156","{\\c r}":"\u0157","{\\v R}":"\u0158","{\\v r}":"\u0159","{\\'S}":"\u015a","{\\'s}":"\u015b","{\\^S}":"\u015c","{\\^s}":"\u015d","{\\c S}":"\u015e","{\\c s}":"\u015f","{\\v S}":"\u0160","{\\v s}":"\u0161","{\\c T}":"\u0162","{\\c t}":"\u0163","{\\v T}":"\u0164","{\\v t}":"\u0165","{\\~U}":"\u0168","{\\~u}":"\u0169","{\\=U}":"\u016a","{\\=u}":"\u016b","{\\u U}":"\u016c","{\\u u}":"\u016d","{\\r U}":"\u016e","{\\r u}":"\u016f","{\\H U}":"\u0170","{\\H u}":"\u0171","{\\k U}":"\u0172","{\\k u}":"\u0173","{\\^W}":"\u0174","{\\^w}":"\u0175","{\\^Y}":"\u0176","{\\^y}":"\u0177",'{\\"Y}':"\u0178","{\\'Z}":"\u0179","{\\'z}":"\u017a","{\\.Z}":"\u017b","{\\.z}":"\u017c","{\\v Z}":"\u017d","{\\v z}":"\u017e","{\\v A}":"\u01cd","{\\v a}":"\u01ce","{\\v I}":"\u01cf","{\\v i}":"\u01d0","{\\v O}":"\u01d1","{\\v o}":"\u01d2","{\\v U}":"\u01d3","{\\v u}":"\u01d4","{\\v G}":"\u01e6","{\\v g}":"\u01e7","{\\v K}":"\u01e8","{\\v k}":"\u01e9","{\\k O}":"\u01ea","{\\k o}":"\u01eb","{\\v j}":"\u01f0","{\\'G}":"\u01f4","{\\'g}":"\u01f5","{\\.B}":"\u1e02","{\\.b}":"\u1e03","{\\d B}":"\u1e04","{\\d b}":"\u1e05","{\\b B}":"\u1e06","{\\b b}":"\u1e07","{\\.D}":"\u1e0a","{\\.d}":"\u1e0b","{\\d D}":"\u1e0c","{\\d d}":"\u1e0d","{\\b D}":"\u1e0e","{\\b d}":"\u1e0f","{\\c D}":"\u1e10","{\\c d}":"\u1e11","{\\.F}":"\u1e1e","{\\.f}":"\u1e1f","{\\=G}":"\u1e20","{\\=g}":"\u1e21","{\\.H}":"\u1e22","{\\.h}":"\u1e23","{\\d H}":"\u1e24","{\\d h}":"\u1e25",'{\\"H}':"\u1e26",'{\\"h}':"\u1e27","{\\c H}":"\u1e28","{\\c h}":"\u1e29","{\\'K}":"\u1e30","{\\'k}":"\u1e31","{\\d K}":"\u1e32","{\\d k}":"\u1e33","{\\b K}":"\u1e34","{\\b k}":"\u1e35","{\\d L}":"\u1e36","{\\d l}":"\u1e37","{\\b L}":"\u1e3a","{\\b l}":"\u1e3b","{\\'M}":"\u1e3e","{\\'m}":"\u1e3f","{\\.M}":"\u1e40","{\\.m}":"\u1e41","{\\d M}":"\u1e42","{\\d m}":"\u1e43","{\\.N}":"\u1e44","{\\.n}":"\u1e45","{\\d N}":"\u1e46","{\\d n}":"\u1e47","{\\b N}":"\u1e48","{\\b n}":"\u1e49","{\\'P}":"\u1e54","{\\'p}":"\u1e55","{\\.P}":"\u1e56","{\\.p}":"\u1e57","{\\.R}":"\u1e58","{\\.r}":"\u1e59","{\\d R}":"\u1e5a","{\\d r}":"\u1e5b","{\\b R}":"\u1e5e","{\\b r}":"\u1e5f","{\\.S}":"\u1e60","{\\.s}":"\u1e61","{\\d S}":"\u1e62","{\\d s}":"\u1e63","{\\.T}":"\u1e6a","{\\.t}":"\u1e6b","{\\d T}":"\u1e6c","{\\d t}":"\u1e6d","{\\b T}":"\u1e6e","{\\b t}":"\u1e6f","{\\~V}":"\u1e7c","{\\~v}":"\u1e7d","{\\d V}":"\u1e7e","{\\d v}":"\u1e7f","{\\`W}":"\u1e80","{\\`w}":"\u1e81","{\\'W}":"\u1e82","{\\'w}":"\u1e83",'{\\"W}':"\u1e84",'{\\"w}':"\u1e85","{\\.W}":"\u1e86","{\\.w}":"\u1e87","{\\d W}":"\u1e88","{\\d w}":"\u1e89","{\\.X}":"\u1e8a","{\\.x}":"\u1e8b",'{\\"X}':"\u1e8c",'{\\"x}':"\u1e8d","{\\.Y}":"\u1e8e","{\\.y}":"\u1e8f","{\\^Z}":"\u1e90","{\\^z}":"\u1e91","{\\d Z}":"\u1e92","{\\d z}":"\u1e93","{\\b Z}":"\u1e94","{\\b z}":"\u1e95","{\\b h}":"\u1e96",'{\\"t}':"\u1e97","{\\r w}":"\u1e98","{\\r y}":"\u1e99","{\\d A}":"\u1ea0","{\\d a}":"\u1ea1","{\\d E}":"\u1eb8","{\\d e}":"\u1eb9","{\\~E}":"\u1ebc","{\\~e}":"\u1ebd","{\\d I}":"\u1eca","{\\d i}":"\u1ecb","{\\d O}":"\u1ecc","{\\d o}":"\u1ecd","{\\d U}":"\u1ee4","{\\d u}":"\u1ee5","{\\`Y}":"\u1ef2","{\\`y}":"\u1ef3","{\\d Y}":"\u1ef4","{\\d y}":"\u1ef5","{\\~Y}":"\u1ef8","{\\~y}":"\u1ef9","{\\~}":"\u223c","~":"\xa0"}},{}],417:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=void 0;var i={article:"article-journal",book:"book",booklet:"book",proceedings:"book",manual:!1,mastersthesis:"thesis",misc:!1,inbook:"chapter",incollection:"chapter",conference:"paper-conference",inproceedings:"paper-conference",online:"website",patent:"patent",phdthesis:"thesis",techreport:"report",unpublished:"manuscript"};r["default"]=r.parse=function(t){return i.hasOwnProperty(t)?!1===i[t]?"book":i[t]:(logger.warn("[set]","BibTeX publication type not recognized: ".concat(t,'. Defaulting to "book".')),"book")}},{}],418:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parseAsync=i.parse=void 0;var s=a(e("./json")),n=a(e("../../../util/fetchFile")),o=a(e("../../../util/fetchFileAsync"));function a(t){return t&&t.__esModule?t:{"default":t}}function l(i){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=i.apply(t,r);function e(t,e){try{var r=a[t](e),i=r.value}catch(s){return void o(s)}r.done?n(i):Promise.resolve(i).then(l,u)}function l(t){e("next",t)}function u(t){e("throw",t)}l()})}}var u,c,p={Accept:"application/vnd.citationstyles.csl+json"},m=(u=l(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o["default"])(e,{headers:p});case 2:return r=t.sent,t.abrupt("return","[]"===r?{}:JSON.parse(r));case 4:case"end":return t.stop()}},t,this)})),function(t){return u.apply(this,arguments)}),f=(c=l(regeneratorRuntime.mark(function t(e){var r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([].concat(e).map(m));case 2:return r=t.sent,t.abrupt("return",r.map(s["default"]));case 4:case"end":return t.stop()}},t,this)})),function(t){return c.apply(this,arguments)});i.parseAsync=f;var h=function(t){var e=(0,n["default"])(t,{headers:p});return"[]"===e?{}:JSON.parse(e)};i.parse=function(t){return[].concat(t).map(h).map(s["default"])}},{"../../../util/fetchFile":442,"../../../util/fetchFileAsync":443,"./json":421}],419:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=void 0;r["default"]=r.parse=function(t){return(Array.isArray(t)?t:t.trim().split(/(?:\s+)/g)).map(function(t){return"https://doi.org/".concat(t)})}},{}],420:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.formats=r.parsers=r.ref=void 0;var i=a(t("./id")),s=a(t("./api")),n=a(t("./json")),o=a(t("./type"));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}r.ref="@doi";var l={id:i,api:s,json:n,type:o};r.parsers=l;var u={"@doi/api":{parse:s.parse,parseAsync:s.parseAsync,parseType:{dataType:"String",predicate:/^\s*(https?:\/\/(?:dx\.)?doi\.org\/(10.\d{4,9}\/[-._;()/:A-Z0-9]+))\s*$/i,"extends":"@else/url"}},"@doi/id":{parse:i.parse,parseType:{dataType:"String",predicate:/^\s*(10.\d{4,9}\/[-._;()/:A-Z0-9]+)\s*$/i}},"@doi/list+text":{parse:i.parse,parseType:{dataType:"String",tokenList:/^10.\d{4,9}\/[-._;()/:A-Z0-9]+$/i}},"@doi/list+object":{parse:i.parse,parseType:{dataType:"Array",elementConstraint:"@doi/id"}},"@doi/type":{parse:o.parse}};r.formats=u},{"./api":418,"./id":419,"./json":421,"./type":422}],421:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=void 0;var i,s=(i=t("./type"))&&i.__esModule?i:{"default":i};r["default"]=r.parse=function(r){var t={type:(0,s["default"])(r.type)};return["submitted","issued","event-date","original-date","container","accessed"].forEach(function(t){var e=r[t];e&&e["date-parts"]&&"number"==typeof e["date-parts"][0]&&(e["date-parts"]=[e["date-parts"]])}),Object.assign({},r,t)}},{"./type":422}],422:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=void 0;var i={"journal-article":"article-journal","book-chapter":"chapter","posted-content":"manuscript","proceedings-article":"paper-conference"};r["default"]=r.parse=function(t){return i[t]||t}},{}],423:[function(t,e,r){"use strict";var i=t("../../plugins/"),s=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}}(t("./modules"));for(var n in s){var o=s[n],a=o.ref,l=o.formats;(0,i.add)(a,{input:l})}},{"../../plugins/":440,"./modules":424}],424:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.other=r.wikidata=r.doi=r.bibtex=r.bibjson=void 0;var i=l(t("./bibjson/"));r.bibjson=i;var s=l(t("./bibtex/"));r.bibtex=s;var n=l(t("./doi/"));r.doi=n;var o=l(t("./wikidata/"));r.wikidata=o;var a=l(t("./other/"));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}r.other=a},{"./bibjson/":409,"./bibtex/":412,"./doi/":420,"./other/":427,"./wikidata/":432}],425:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parse=void 0;r.parse=function(){return[]}},{}],426:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parse=void 0;r.parse=function(t){return t.value||t.textContent}},{}],427:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.formats=r.parsers=r.ref=void 0;var i=l(t("./empty")),s=l(t("./url")),n=l(t("./json")),o=l(t("./jquery")),a=l(t("./html"));function l(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}r.ref="@else";var u={empty:i,url:s,json:n,jquery:o,html:a};r.parsers=u;var c={"@empty/text":{parse:i.parse,parseType:{dataType:"String",predicate:function(t){return""===t}}},"@empty/whitespace+text":{parse:i.parse,parseType:{dataType:"String",predicate:/^\s+$/}},"@empty":{parse:i.parse,parseType:{dataType:"Primitive",predicate:function(t){return null==t}}},"@else/json":{parse:n.parse,parseType:{dataType:"String",predicate:/^\s*(\{[\S\s]*\}|\[[\S\s]*\])\s*$/}},"@else/url":{parse:s.parse,parseAsync:s.parseAsync,parseType:{dataType:"String",predicate:/^https?:\/\/(([\w-]+\.)*[\w-]+)(:\d+)?(\/[^?/]*)*(\?[^#]*)?(#.*)?$/i}},"@else/jquery":{parse:o.parse,parseType:{dataType:"ComplexObject",predicate:function(t){return"undefined"!=typeof jQuery&&t instanceof jQuery}}},"@else/html":{parse:a.parse,parseType:{dataType:"ComplexObject",predicate:function(t){return"undefined"!=typeof HTMLElement&&t instanceof HTMLElement}}}};r.formats=c},{"./empty":425,"./html":426,"./jquery":428,"./json":429,"./url":430}],428:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parse=void 0;r.parse=function(t){return t.val()||t.text()||t.html()}},{}],429:[function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=void 0;var i=[[/((?:\[|:|,)\s*)'((?:\\'|[^'])*?[^\\])?'(?=\s*(?:\]|}|,))/g,'$1"$2"'],[/((?:(?:"|]|}|\/[gmiuys]|\.|(?:\d|\.|-)*\d)\s*,|{)\s*)(?:"([^":\n]+?)"|'([^":\n]+?)'|([^":\n]+?))(\s*):/g,'$1"$2$3$4"$5:']];r["default"]=r.parse=function(s){try{return JSON.parse(s)}catch(t){logger.info("[set]","Input was not valid JSON, switching to experimental parser for invalid JSON");try{return i.forEach(function(t){var e=n(t,2),r=e[0],i=e[1];s=s.replace(r,i)}),JSON.parse(s)}catch(t){return logger.error("[set]","Experimental parser failed. Please improve the JSON. If this is not JSON, please re-read the supported formats."),undefined}}}},{}],430:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(r,"parseAsync",{enumerable:!0,get:function(){return s["default"]}});var i=n(t("../../../util/fetchFile")),s=n(t("../../../util/fetchFileAsync"));function n(t){return t&&t.__esModule?t:{"default":t}}},{"../../../util/fetchFile":442,"../../../util/fetchFileAsync":443}],431:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(r,"parseAsync",{enumerable:!0,get:function(){return s["default"]}});var i=n(t("../../../util/fetchFile")),s=n(t("../../../util/fetchFileAsync"));function n(t){return t&&t.__esModule?t:{"default":t}}},{"../../../util/fetchFile":442,"../../../util/fetchFileAsync":443}],432:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.formats=r.parsers=r.ref=void 0;var i=u(t("./list")),s=u(t("./json")),n=u(t("./prop")),o=u(t("./type")),a=u(t("./url")),l=u(t("./api"));function u(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}r.ref="@wikidata";var c={list:i,json:s,prop:n,type:o,url:a,api:l};r.parsers=c;var p={"@wikidata/id":{parse:i.parse,parseType:{dataType:"String",predicate:/^\s*(Q\d+)\s*$/}},"@wikidata/list+text":{parse:i.parse,parseType:{dataType:"String",predicate:/^\s*((?:Q\d+(?:\s+|,|))*Q\d+)\s*$/}},"@wikidata/api":{parse:l.parse,parseAsync:l.parseAsync,parseType:{dataType:"String",predicate:/^(https?:\/\/(?:www\.)?wikidata.org\/w\/api\.php(?:\?.*)?)$/,"extends":"@else/url"}},"@wikidata/url":{parse:a.parse,parseType:{dataType:"String",predicate:/\/(Q\d+)(?:[#?/]|\s*$)/,"extends":"@else/url"}},"@wikidata/list+object":{parse:i.parse,parseType:{dataType:"Array",elementConstraint:"@wikidata/id"}},"@wikidata/object":{parse:s.parse,parseAsync:s.parseAsync,parseType:{dataType:"SimpleObject",propertyConstraint:{props:"entities"}}},"@wikidata/prop":{parse:n.parse},"@wikidata/type":{parse:o.parse}};r.formats=p},{"./api":431,"./json":433,"./list":434,"./prop":435,"./type":436,"./url":437}],433:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parseAsync=i["default"]=i.parse=void 0;var s,l=(s=e("wikidata-sdk"))&&s.__esModule?s:{"default":s},u=e("./prop");function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(i){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=i.apply(t,r);function e(t,e){try{var r=a[t](e),i=r.value}catch(s){return void o(s)}r.done?n(i):Promise.resolve(i).then(l,u)}function l(t){e("next",t)}function u(t){e("throw",t)}l()})}}var n,o=(n=p(regeneratorRuntime.mark(function t(n){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all(Object.keys(n.entities).map(function(){var e=p(regeneratorRuntime.mark(function t(e){var r,i,s,o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.entities[e],i=r.labels,s=r.claims,o=l["default"].simplifyClaims(s,null,null,!0),a={_wikiId:e,id:e},t.next=5,Promise.all(Object.keys(o).map(function(){var e=p(regeneratorRuntime.mark(function t(e){var r,i,s,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,u.parseAsync)(e,o[e],"en");case 2:(r=t.sent)&&(i=c(r,2),s=i[0],n=i[1],Array.isArray(a[s])?a[s]=a[s].concat(n):n!==undefined&&(a[s]=n));case 4:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}()));case 5:return Array.isArray(a.author)&&a.author.sort(function(t,e){return t._ordinal-e._ordinal}),a.title||(a.title=i.en.value),t.abrupt("return",a);case 8:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return t.stop()}},t,this)})),function(t){return n.apply(this,arguments)});i.parseAsync=o;i["default"]=i.parse=function(s){return Object.keys(s.entities).map(function(t){var e=s.entities[t],r=e.labels,i=e.claims,n=l["default"].simplifyClaims(i,null,null,!0),o={_wikiId:t,id:t};return Object.keys(n).forEach(function(t){var e=(0,u.parse)(t,n[t],"en");if(e){var r=c(e,2),i=r[0],s=r[1];Array.isArray(o[i])?o[i]=o[i].concat(s):s!==undefined&&(o[i]=s)}}),Array.isArray(o.author)&&o.author.sort(function(t,e){return t._ordinal-e._ordinal}),o.title||(o.title=r.en.value),o})}},{"./prop":435,"wikidata-sdk":350}],434:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=void 0;var i,s=(i=t("wikidata-sdk"))&&i.__esModule?i:{"default":i};r["default"]=r.parse=function(t){var e=Array.isArray(t)?t:t.trim().split(/(?:[\s,]\s*)/g);return[].concat(s["default"].getEntities(e,["en"]))}},{"wikidata-sdk":350}],435:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.parseAsync=i["default"]=i.parse=void 0;var o=s(e("wikidata-sdk")),n=s(e("../../../util/fetchFile")),a=s(e("../../../util/fetchFileAsync")),l=s(e("./type")),u=s(e("../../date")),c=s(e("../../name"));function s(t){return t&&t.__esModule?t:{"default":t}}function p(i){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=i.apply(t,r);function e(t,e){try{var r=a[t](e),i=r.value}catch(s){return void o(s)}r.done?n(i):Promise.resolve(i).then(l,u)}function l(t){e("next",t)}function u(t){e("throw",t)}l()})}}var m=function(t,e){var r=Array.isArray(t)?t:"string"==typeof t?t.split("|"):"",i=o["default"].getEntities(r,[e],"labels"),s=JSON.parse((0,n["default"])(i)).entities||{};return Object.keys(s).map(function(t){return(s[t].labels[e]||{}).value})},f=function(t){return t.P1545?parseInt(t.P1545[0]):-1},h={P31:"type",P50:"author",P57:"director",P86:"composer",P98:"editor",P110:"illustrator",P123:"publisher",P136:"genre",P212:"ISBN",P236:"ISSN",P291:"publisher-place",P304:"page",P348:"version",P356:"DOI",P393:"edition",P433:"issue",P478:"volume",P577:"issued",P655:"translator",P698:"PMID",P932:"PMCID",P953:"URL",P957:"ISBN",P1104:"number-of-pages",P1433:"container-title",P1476:"title",P2093:"author",P2860:!1,P921:!1,P3181:!1,P364:!1},d=function(t,e,s){if(!h.hasOwnProperty(t))return logger.info("[set]","Unknown property: ".concat(t)),undefined;if(!1===h[t])return undefined;var r=h[t];return e?[r,function(t,e){var r=e[0].value;switch(t){case"P31":var i=(0,l["default"])(r);return i||(logger.warn("[set]","Wikidata entry type not recognized: ".concat(r,'. Defaulting to "book".')),"book");case"P50":case"P57":case"P86":case"P98":case"P110":case"P655":return e.map(function(t){var e=t.value,r=t.qualifiers,i=(0,c["default"])(m(e,s)[0]);return i._ordinal=f(r),i});case"P577":return(0,u["default"])(r);case"P123":case"P136":case"P291":case"P1433":return m(r,s)[0];case"P2093":return e.map(function(t){var e=t.value,r=t.qualifiers,i=(0,c["default"])(e);return i._ordinal=f(r),i});default:return r}}(t,e)]:r};i["default"]=i.parse=d;var g,b,_=(g=p(regeneratorRuntime.mark(function t(e,r){var i,s,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=Array.isArray(e)?e:"string"==typeof e?e.split("|"):"",s=o["default"].getEntities(i,[r],"labels"),t.t1=JSON,t.next=5,(0,a["default"])(s);case 5:if(t.t2=t.sent,t.t0=t.t1.parse.call(t.t1,t.t2).entities,t.t0){t.next=9;break}t.t0={};case 9:return n=t.t0,t.abrupt("return",Object.keys(n).map(function(t){return(n[t].labels[r]||{}).value}));case 11:case"end":return t.stop()}},t,this)})),function(t,e){return g.apply(this,arguments)}),y=(b=p(regeneratorRuntime.mark(function t(e,r,n){var i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,function(){var r=p(regeneratorRuntime.mark(function t(e,r){var i;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i=r[0].value,t.t0=e,t.next="P50"===t.t0?4:"P57"===t.t0?4:"P86"===t.t0?4:"P98"===t.t0?4:"P110"===t.t0?4:"P655"===t.t0?4:"P123"===t.t0?5:"P136"===t.t0?5:"P291"===t.t0?5:"P1433"===t.t0?5:8;break;case 4:return t.abrupt("return",Promise.all(r.map(function(){var e=p(regeneratorRuntime.mark(function t(e){var r,i,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.value,i=e.qualifiers,t.t0=c["default"],t.next=4,_(r,n);case 4:return t.t1=t.sent[0],(s=(0,t.t0)(t.t1))._ordinal=f(i),t.abrupt("return",s);case 8:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}())));case 5:return t.next=7,_(i,n);case 7:return t.abrupt("return",t.sent[0]);case 8:case"end":return t.stop()}},t,this)}));return function(t,e){return r.apply(this,arguments)}}()(e,r);case 2:if(!(i=t.sent)){t.next=7;break}return t.abrupt("return",[d(e),i]);case 7:return t.abrupt("return",d(e,r,n));case 8:case"end":return t.stop()}},t,this)})),function(t,e,r){return b.apply(this,arguments)});i.parseAsync=y},{"../../../util/fetchFile":442,"../../../util/fetchFileAsync":443,"../../date":399,"../../name":438,"./type":436,"wikidata-sdk":350}],436:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=void 0;var i={Q49848:"article",Q191067:"article",Q13442814:"article-journal",Q18918145:"article-journal",Q38926:"article-newspaper",Q5707594:"article-newspaper",Q30070590:"article-magazine",Q686822:"bill",Q3331189:"book",Q571:"book",Q1555508:"broadcast",Q15416:"broadcast",Q1980247:"chapter",Q1172284:"dataset",Q10389811:"entry",Q19389637:"entry",Q17329259:"entry-encyclopedia",Q30070753:"figure",Q1027879:"graphic",Q4502142:"graphic",Q478798:"graphic",Q838948:"graphic",Q178651:"interview",Q49371:"legislation",Q820655:"legislation",Q2334719:"legal_case",Q87167:"manuscript",Q4006:"map",Q11424:"motion_picture",Q30070675:"motion_picture",Q187947:"musical_score",Q18536349:"pamphlet",Q190399:"pamphlet",Q26973022:"paper-conference",Q23927052:"paper-conference",Q253623:"patent",Q30070565:"personal_communication",Q30070439:"personal_communication",Q133492:"personal_communication",Q628523:"personal_communication",Q7216866:"post",Q17928402:"post-blog",Q10870555:"report",Q265158:"review",Q637866:"review-book",Q7366:"song",Q3741908:"song",Q30070318:"song",Q24634210:"song",Q861911:"speech",Q1266946:"thesis",Q187685:"thesis",Q131569:"treaty",Q36774:"webpage"};r["default"]=r.parse=function(t){return i[t]}},{}],437:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parse=void 0;r.parse=function(t){return t.match(/\/(Q\d+)(?:[#?/]|\s*$)/)[1]}},{}],438:[function(t,e,r){"use strict";function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],i=!0,s=!1,n=undefined;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);i=!0);}catch(l){s=!0,n=l}finally{try{i||null==a["return"]||a["return"]()}finally{if(s)throw n}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=r.parse=r.types=r.scope=void 0;var i=function(t){return t.replace(/$|( )|(?!^)(?=[A-Z])/g,"\\.?$1")},s=function(t){return"(?:".concat(t.join("|"),")\\b")},n=function(t,e){return new RegExp("(?:^| )(".concat(t,"$)"),e)},o=s(["mr","mrs","ms","miss","dr","herr","monsieur","hr","frau","a v m","admiraal","admiral","air cdre","air commodore","air marshal","air vice marshal","alderman","alhaji","ambassador","baron","barones","brig","brig gen","brig general","brigadier","brigadier general","brother","canon","capt","captain","cardinal","cdr","chief","cik","cmdr","coach","col","col dr","colonel","commandant","commander","commissioner","commodore","comte","comtessa","congressman","conseiller","consul","conte","contessa","corporal","councillor","count","countess","crown prince","crown princess","dame","datin","dato","datuk","datuk seri","deacon","deaconess","dean","dhr","dipl ing","doctor","dott","dott sa","dr","dr ing","dra","drs","embajador","embajadora","en","encik","eng","eur ing","exma sra","exmo sr","f o","father","first lieutient","first officer","flt lieut","flying officer","fr","frau","fraulein","fru","gen","generaal","general","governor","graaf","gravin","group captain","grp capt","h e dr","h h","h m","h r h","hajah","haji","hajim","her highness","her majesty","herr","high chief","his highness","his holiness","his majesty","hon","hr","hra","ing","ir","jonkheer","judge","justice","khun ying","kolonel","lady","lcda","lic","lieut","lieut cdr","lieut col","lieut gen","lord","m","m l","m r","madame","mademoiselle","maj gen","major","master","mevrouw","miss","mlle","mme","monsieur","monsignor","mr","mrs","ms","mstr","nti","pastor","president","prince","princess","princesse","prinses","prof","prof dr","prof sir","professor","puan","puan sri","rabbi","rear admiral","rev","rev canon","rev dr","rev mother","reverend","rva","senator","sergeant","sheikh","sheikha","sig","sig na","sig ra","sir","sister","sqn ldr","sr","sr d","sra","srta","sultan","tan sri","tan sri dato","tengku","teuku","than puying","the hon dr","the hon justice","the hon miss","the hon mr","the hon mrs","the hon ms","the hon sir","the very rev","toh puan","tun","vice admiral","viscount","viscountess","wg cdr"].map(i)),b=s(["I","II","III","IV","V","Senior","Junior","Jr","Sr","PhD","Ph\\.D","APR","RPh","PE","MD","MA","DMD","CME","BVM","CFRE","CLU","CPA","CSC","CSJ","DC","DD","DDS","DO","DVM","EdD","Esq","JD","LLD","OD","OSB","PC","Ret","RGS","RN","RNC","SHCJ","SJ","SNJM","SSMO","USA","USAF","USAFR","USAR","USCG","USMC","USMCR","USN","USNR"].map(i)),a=s(["Vere","Von","Van","De","Del","Della","Di","Da","Pietro","Vanden","Du","St.","St","La","Lo","Ter","O","O'","Mac","Fitz"]),_=new RegExp("^((?:".concat(o," )*)(.*)$"),"i"),y=n("(?:".concat(b,", )*(?:").concat(b,")"),"i"),v=n("".concat(/(?:[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2160-\u216F\u2183\u24B6-\u24CF\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27\uDCB0-\uDCD3]|\uD803[\uDC80-\uDCB2]|\uD806[\uDCA0-\uDCBF]|\uD81B[\uDE40-\uDE5F]|\uD835[\uDC00-\uDC19\uDC34-\uDC4D\uDC68-\uDC81\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB5\uDCD0-\uDCE9\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD38\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD6C-\uDD85\uDDA0-\uDDB9\uDDD4-\uDDED\uDE08-\uDE21\uDE3C-\uDE55\uDE70-\uDE89\uDEA8-\uDEC0\uDEE2-\uDEFA\uDF1C-\uDF34\uDF56-\uDF6E\uDF90-\uDFA8\uDFCA]|\uD83A[\uDD00-\uDD21]|\uD83C[\uDD30-\uDD49\uDD50-\uDD69\uDD70-\uDD89])/.source,".*")),x=n("(?:".concat(/(?:[a-z\xAA\xB5\xBA\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02B8\u02C0\u02C1\u02E0-\u02E4\u0345\u0371\u0373\u0377\u037A-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0560-\u0588\u10D0-\u10FA\u10FD-\u10FF\u13F8-\u13FD\u1C80-\u1C88\u1D00-\u1DBF\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u2071\u207F\u2090-\u209C\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2170-\u217F\u2184\u24D0-\u24E9\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7D\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B-\uA69D\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7F8-\uA7FA\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]|\uD801[\uDC28-\uDC4F\uDCD8-\uDCFB]|\uD803[\uDCC0-\uDCF2]|\uD806[\uDCC0-\uDCDF]|\uD81B[\uDE60-\uDE7F]|\uD835[\uDC1A-\uDC33\uDC4E-\uDC54\uDC56-\uDC67\uDC82-\uDC9B\uDCB6-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDCEA-\uDD03\uDD1E-\uDD37\uDD52-\uDD6B\uDD86-\uDD9F\uDDBA-\uDDD3\uDDEE-\uDE07\uDE22-\uDE3B\uDE56-\uDE6F\uDE8A-\uDEA5\uDEC2-\uDEDA\uDEDC-\uDEE1\uDEFC-\uDF14\uDF16-\uDF1B\uDF36-\uDF4E\uDF50-\uDF55\uDF70-\uDF88\uDF8A-\uDF8F\uDFAA-\uDFC2\uDFC4-\uDFC9\uDFCB]|\uD83A[\uDD22-\uDD43])/.source,".*|").concat(a,".*|\\S*)"));r["default"]=r.parse=function(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:"";"string"!=typeof t&&(t+="");var e="",r="",i="";if(/[^.], /.test(t)){var s=t.split(", ");i=s.shift();var n=RegExp(b).exec(s.join(", "));e=s.splice(n&&0!==n.index?0:-1,1)[0],r=s.join(", ")}else{var o=t.split(y,2),a=o.shift().split(x,2);e=a[0],i=a[1],r=o.pop()}var l=g(e.match(_),3),u=l[1],c=l[2],p=r,m=g(i.split(v,2).reverse(),2),f=m[0],h=m[1];if(!c&&f)return f.includes(" ")?{literal:f}:{family:f};if(f){var d={"dropping-particle":u,given:c,suffix:p,"non-dropping-particle":h,family:f};return Object.keys(d).forEach(function(t){d[t]||delete d[t]}),d}return logger.warn("[set]","Could not parse name: '".concat(t,"', falling back to literal")),{literal:t}};r.scope="@name";r.types="@name"},{}],439:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.remove=r.get=r.add=void 0;var i={};r.add=function(t,e){i[t]=e};r.get=function(t){return i[t]};r.remove=function(t){delete i[t]}},{}],440:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.config=r.dict=r.output=r.input=r.list=r.has=r.remove=r.add=void 0;var i=a(t("../parse/interface/"));r.input=i;var s=a(t("../get/registrar"));r.output=s;var n=a(t("../get/dict"));r.dict=n;var o=a(t("./config"));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}var l={input:i,output:s,dict:n,config:r.config=o},u={};r.add=function(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=u[t]={};for(var i in"config"in e&&(l.config.add(t,e.config),delete e.config),e){var s=r[i]={},n=e[i];for(var o in n){var a=n[o];s[o]=!0,l[i].add(o,a)}}};r.remove=function(t){var e=u[t];for(var r in e){var i=e[r];for(var s in i)l[r].remove(s)}delete u[t]};r.has=function(t){return t in u};r.list=function(){return Object.keys(u)}},{"../get/dict":372,"../get/registrar":396,"../parse/interface/":405,"./config":439}],441:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var i=function(t){return JSON.parse(JSON.stringify(t))};r["default"]=i},{}],442:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var i,s=(i=t("sync-request"))&&i.__esModule?i:{"default":i};var n=function(t){var e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r={};e.headers&&(r.headers=e.headers,r.allowRedirectHeaders=Object.keys(e.headers));try{return(0,s["default"])("GET",t,r).getBody("utf8")}catch(i){return logger.error("[set]","File '".concat(t,"' could not be fetched:"),i.message),"[]"}};r["default"]=n},{"sync-request":332}],443:[function(e,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i["default"]=void 0,e("isomorphic-fetch");var s,n,o=(s=regeneratorRuntime.mark(function t(e){var r,i,s=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=1<s.length&&s[1]!==undefined?s[1]:{},i={},r.headers&&(i.headers=r.headers,i.allowRedirectHeaders=Object.keys(r.headers)),t.prev=3,t.abrupt("return",fetch(e,i).then(function(t){return t.text()}));case 7:return t.prev=7,t.t0=t["catch"](3),logger.error("[set]","File '".concat(e,"' could not be fetched:"),t.t0.message),t.abrupt("return","[]");case 11:case"end":return t.stop()}},t,this,[[3,7]])}),n=function(){var t=this,r=arguments;return new Promise(function(n,o){var a=s.apply(t,r);function e(t,e){try{var r=a[t](e),i=r.value}catch(s){return void o(s)}r.done?n(i):Promise.resolve(i).then(l,u)}function l(t){e("next",t)}function u(t){e("throw",t)}l()})},function(t){return n.apply(this,arguments)});i["default"]=o},{"isomorphic-fetch":325}],444:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var i=function(t,e){for(var r;t.includes(r);)r="".concat(e).concat(Math.random().toString().slice(2));return r};r["default"]=i},{}],445:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"deepCopy",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(r,"fetchFile",{enumerable:!0,get:function(){return s["default"]}}),Object.defineProperty(r,"fetchFileAsync",{enumerable:!0,get:function(){return n["default"]}}),Object.defineProperty(r,"fetchId",{enumerable:!0,get:function(){return o["default"]}}),Object.defineProperty(r,"TokenStack",{enumerable:!0,get:function(){return a["default"]}}),Object.defineProperty(r,"Register",{enumerable:!0,get:function(){return l["default"]}}),r.attr=void 0;var i=p(t("./deepCopy")),s=p(t("./fetchFile")),n=p(t("./fetchFileAsync")),o=p(t("./fetchId")),a=p(t("./stack")),l=p(t("./register")),u=t("../get/modules/csl/attr"),c=t("../get/modules/csl/affix");function p(t){return t&&t.__esModule?t:{"default":t}}var m={getAttributedEntry:u.getAttributedEntry,getPrefixedEntry:u.getPrefixedEntry,getWrappedEntry:c.getWrappedEntry};r.attr=m},{"../get/modules/csl/affix":380,"../get/modules/csl/attr":381,"./deepCopy":441,"./fetchFile":442,"./fetchFileAsync":443,"./fetchId":444,"./register":446,"./stack":447}],446:[function(t,e,r){"use strict";function s(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var i=function(){function e(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t}var t,r,i;return t=e,(r=[{key:"set",value:function(t,e){return this.data[t]=e,this}},{key:"add",value:function(){return this.set.apply(this,arguments)}},{key:"delete",value:function(t){return delete this.data[t],this}},{key:"get",value:function(t){return this.data[t]}},{key:"has",value:function(t){return this.data.hasOwnProperty(t)}},{key:"list",value:function(){return Object.keys(this.data)}}])&&s(t.prototype,r),i&&s(t,i),e}();r["default"]=i},{}],447:[function(t,e,r){"use strict";function i(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=void 0;var s=function(){function f(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),this.stack=t,this.index=0,this.current=this.stack[this.index]}var t,e,r;return t=f,r=[{key:"getPatternText",value:function(t){return'"'.concat(t instanceof RegExp?t.source:t,'"')}},{key:"getMatchCallback",value:function(e){if(Array.isArray(e)){var t=e.map(f.getMatchCallback);return function(e){return t.some(function(t){return t(e)})}}return e instanceof Function?e:e instanceof RegExp?function(t){return e.test(t)}:function(t){return e===t}}}],(e=[{key:"tokensLeft",value:function(){return this.stack.length-this.index}},{key:"matches",value:function(t){return f.getMatchCallback(t)(this.current,this.index,this.stack)}},{key:"matchesSequence",value:function(t){var r=this.stack.slice(this.index,this.index+t.length).join("");return"string"==typeof t?r===t:t.every(function(t,e){return f.getMatchCallback(t)(r[e])})}},{key:"consumeToken",value:function(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:/^[\s\S]$/,e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=(e.inverse,e.spaced),i=void 0===r||r;i&&this.consumeWhitespace();var s=this.current;if(!f.getMatchCallback(t)(s,this.index,this.stack))throw new SyntaxError("Unexpected token at index ".concat(this.index,": Expected ").concat(f.getPatternText(t),', got "').concat(s,'"'));return this.current=this.stack[++this.index],i&&this.consumeWhitespace(),s}},{key:"consumeWhitespace",value:function(){var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:/^\s$/,e=(1<arguments.length&&arguments[1]!==undefined?arguments[1]:{}).optional,r=void 0===e||e;return this.consume(t,{min:+!r})}},{key:"consumeN",value:function(t){if(this.tokensLeft()<t)throw new SyntaxError("Not enough tokens left");for(var e=this.index;t--;)this.current=this.stack[++this.index];return this.stack.slice(e,this.index).join("")}},{key:"consumeSequence",value:function(t){if(this.matchesSequence(t))return this.consumeN(t.length);throw new SyntaxError('Expected "'.concat(t,'", got "').concat(this.consumeN(t.length),'"'))}},{key:"consume",value:function(){for(var t=0<arguments.length&&arguments[0]!==undefined?arguments[0]:/^[\s\S]$/,e=1<arguments.length&&arguments[1]!==undefined?arguments[1]:{},r=e.min,i=void 0===r?0:r,s=e.max,n=void 0===s?Infinity:s,o=e.inverse,a=void 0!==o&&o,l=e.tokenMap,u=e.tokenFilter,c=this.index,p=f.getMatchCallback(t);p(this.current,this.index,this.stack)!==a;)this.current=this.stack[++this.index];var m=this.stack.slice(c,this.index);if(m.length<i)throw new SyntaxError("Not enough ".concat(f.getPatternText(t)));if(m.length>n)throw new SyntaxError("Too many ".concat(f.getPatternText(t)));return l&&(m=m.map(l)),u&&(m=m.filter(u)),m.join("")}}])&&i(t.prototype,e),r&&i(t,r),f}();r["default"]=s},{}],448:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"cite",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(r,"citeproc",{enumerable:!0,get:function(){return s.PROCESSOR_VERSION}});var i=t("../package.json"),s=t("citeproc")},{"../package.json":361,citeproc:323}],"citation-js":[function(t,e,r){"use strict";t("@babel/polyfill"),t("./logger");var i,s=f(t("./Cite/static")),n=f(t("./plugins/index")),o=f(t("./get/index")),a=f(t("./parse/index")),l=f(t("./util/index")),u=f(t("./version")),c=(i=t("./Cite/index"))&&i.__esModule?i:{"default":i},p=f(t("./get/modules/csl/locales")),m=f(t("./get/modules/csl/styles"));function f(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};i.get||i.set?Object.defineProperty(e,r,i):e[r]=t[r]}return e["default"]=t,e}var h={engine:t("./get/modules/csl/engines").fetchEngine,style:m["default"],locale:p["default"],item:function(t){return function(e){return t.find(function(t){return t.id===e})}},register:{addTemplate:m.templates.add.bind(m.templates),getTemplate:m.templates.get.bind(m.templates),hasTemplate:m.templates.has.bind(m.templates),addLocale:p.locales.add.bind(p.locales),getLocale:p.locales.get.bind(p.locales),hasLocale:p.locales.has.bind(p.locales)}};Object.assign(c["default"],s,{plugins:n,get:o,CSL:h,parse:a,util:l,version:u,input:a.chain,inputAsync:a.chainAsync}),e.exports=c["default"]},{"./Cite/index":364,"./Cite/static":369,"./get/index":373,"./get/modules/csl/engines":384,"./get/modules/csl/locales":387,"./get/modules/csl/styles":389,"./logger":397,"./parse/index":400,"./plugins/index":440,"./util/index":445,"./version":448,"@babel/polyfill":1}]},{},[]);