@d-i-t-a/reader 2.1.7 → 2.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/reader.js CHANGED
@@ -7,11 +7,11 @@ var D2Reader=(()=>{var oM=Object.create;var ds=Object.defineProperty,sM=Object.d
7
7
  `))):u=i.stylize("[Circular]","special")),Co(l)){if(a&&o.match(/^\d+$/))return u;l=JSON.stringify(""+o),l.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.substr(1,l.length-2),l=i.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),l=i.stylize(l,"string"))}return l+": "+u}function NP(i,t,n){var r=0,o=i.reduce(function(a,l){return r++,l.indexOf(`
8
8
  `)>=0&&r++,a+l.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(t===""?"":t+`
9
9
  `)+" "+i.join(`,
10
- `)+" "+n[1]:n[0]+t+" "+i.join(", ")+" "+n[1]}ct.types=G1();function X1(i){return Array.isArray(i)}ct.isArray=X1;function Hh(i){return typeof i=="boolean"}ct.isBoolean=Hh;function Ac(i){return i===null}ct.isNull=Ac;function HP(i){return i==null}ct.isNullOrUndefined=HP;function Q1(i){return typeof i=="number"}ct.isNumber=Q1;function Rc(i){return typeof i=="string"}ct.isString=Rc;function jP(i){return typeof i=="symbol"}ct.isSymbol=jP;function Co(i){return i===void 0}ct.isUndefined=Co;function ya(i){return vs(i)&&jh(i)==="[object RegExp]"}ct.isRegExp=ya;ct.types.isRegExp=ya;function vs(i){return typeof i=="object"&&i!==null}ct.isObject=vs;function Mc(i){return vs(i)&&jh(i)==="[object Date]"}ct.isDate=Mc;ct.types.isDate=Mc;function ba(i){return vs(i)&&(jh(i)==="[object Error]"||i instanceof Error)}ct.isError=ba;ct.types.isNativeError=ba;function Pc(i){return typeof i=="function"}ct.isFunction=Pc;function DP(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i=="undefined"}ct.isPrimitive=DP;ct.isBuffer=J1();function jh(i){return Object.prototype.toString.call(i)}function Dh(i){return i<10?"0"+i.toString(10):i.toString(10)}var FP=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $P(){var i=new Date,t=[Dh(i.getHours()),Dh(i.getMinutes()),Dh(i.getSeconds())].join(":");return[i.getDate(),FP[i.getMonth()],t].join(" ")}ct.log=function(){console.log("%s - %s",$P(),ct.format.apply(ct,arguments))};ct.inherits=K1();ct._extend=function(i,t){if(!t||!vs(t))return i;for(var n=Object.keys(t),r=n.length;r--;)i[n[r]]=t[n[r]];return i};function eb(i,t){return Object.prototype.hasOwnProperty.call(i,t)}var Ao=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ct.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Ao&&t[Ao]){var n=t[Ao];if(typeof n!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,Ao,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var r,o,a=new Promise(function(d,f){r=d,o=f}),l=[],u=0;u<arguments.length;u++)l.push(arguments[u]);l.push(function(d,f){d?o(d):r(f)});try{t.apply(this,l)}catch(d){o(d)}return a}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Ao&&Object.defineProperty(n,Ao,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,Y1(t))};ct.promisify.custom=Ao;function UP(i,t){if(!i){var n=new Error("Promise was rejected with a falsy value");n.reason=i,i=n}return t(i)}function qP(i){if(typeof i!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var o=n.pop();if(typeof o!="function")throw new TypeError("The last argument must be of type Function");var a=this,l=function(){return o.apply(a,arguments)};i.apply(this,n).then(function(u){j.nextTick(l.bind(null,null,u))},function(u){j.nextTick(UP.bind(null,u,l))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(i)),Object.defineProperties(t,Y1(i)),t}ct.callbackify=qP});var j,$,A=uM(()=>{j=zy(),$=Ic()});var Yr=Y((HN,kc)=>{A();var tb,nb,rb,ib,ob,sb,ab,lb,cb,Lc,Fh,ub,db,fb,ws,hb,pb,gb,mb,yb,bb,vb,wb,Bc;(function(i){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){i(n(t,n(r)))}):typeof kc=="object"&&typeof kc.exports=="object"?i(n(t,n(kc.exports))):i(n(t));function n(r,o){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(a,l){return r[a]=o?o(a,l):l}}})(function(i){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])};tb=function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function a(){this.constructor=r}r.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)},nb=Object.assign||function(r){for(var o,a=1,l=arguments.length;a<l;a++){o=arguments[a];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},rb=function(r,o){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.indexOf(l)<0&&(a[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(r);u<l.length;u++)o.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(r,l[u])&&(a[l[u]]=r[l[u]]);return a},ib=function(r,o,a,l){var u=arguments.length,d=u<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,a):l,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,o,a,l);else for(var m=r.length-1;m>=0;m--)(f=r[m])&&(d=(u<3?f(d):u>3?f(o,a,d):f(o,a))||d);return u>3&&d&&Object.defineProperty(o,a,d),d},ob=function(r,o){return function(a,l){o(a,l,r)}},sb=function(r,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,o)},ab=function(r,o,a,l){function u(d){return d instanceof a?d:new a(function(f){f(d)})}return new(a||(a=Promise))(function(d,f){function m(S){try{E(l.next(S))}catch(v){f(v)}}function p(S){try{E(l.throw(S))}catch(v){f(v)}}function E(S){S.done?d(S.value):u(S.value).then(m,p)}E((l=l.apply(r,o||[])).next())})},lb=function(r,o){var a={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},l,u,d,f;return f={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function m(E){return function(S){return p([E,S])}}function p(E){if(l)throw new TypeError("Generator is already executing.");for(;a;)try{if(l=1,u&&(d=E[0]&2?u.return:E[0]?u.throw||((d=u.return)&&d.call(u),0):u.next)&&!(d=d.call(u,E[1])).done)return d;switch(u=0,d&&(E=[E[0]&2,d.value]),E[0]){case 0:case 1:d=E;break;case 4:return a.label++,{value:E[1],done:!1};case 5:a.label++,u=E[1],E=[0];continue;case 7:E=a.ops.pop(),a.trys.pop();continue;default:if(d=a.trys,!(d=d.length>0&&d[d.length-1])&&(E[0]===6||E[0]===2)){a=0;continue}if(E[0]===3&&(!d||E[1]>d[0]&&E[1]<d[3])){a.label=E[1];break}if(E[0]===6&&a.label<d[1]){a.label=d[1],d=E;break}if(d&&a.label<d[2]){a.label=d[2],a.ops.push(E);break}d[2]&&a.ops.pop(),a.trys.pop();continue}E=o.call(r,a)}catch(S){E=[6,S],u=0}finally{l=d=0}if(E[0]&5)throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}},cb=function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&Bc(o,r,a)},Bc=Object.create?function(r,o,a,l){l===void 0&&(l=a),Object.defineProperty(r,l,{enumerable:!0,get:function(){return o[a]}})}:function(r,o,a,l){l===void 0&&(l=a),r[l]=o[a]},Lc=function(r){var o=typeof Symbol=="function"&&Symbol.iterator,a=o&&r[o],l=0;if(a)return a.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&l>=r.length&&(r=void 0),{value:r&&r[l++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Fh=function(r,o){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),u,d=[],f;try{for(;(o===void 0||o-- >0)&&!(u=l.next()).done;)d.push(u.value)}catch(m){f={error:m}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(f)throw f.error}}return d},ub=function(){for(var r=[],o=0;o<arguments.length;o++)r=r.concat(Fh(arguments[o]));return r},db=function(){for(var r=0,o=0,a=arguments.length;o<a;o++)r+=arguments[o].length;for(var l=Array(r),u=0,o=0;o<a;o++)for(var d=arguments[o],f=0,m=d.length;f<m;f++,u++)l[u]=d[f];return l},fb=function(r,o,a){if(a||arguments.length===2)for(var l=0,u=o.length,d;l<u;l++)(d||!(l in o))&&(d||(d=Array.prototype.slice.call(o,0,l)),d[l]=o[l]);return r.concat(d||Array.prototype.slice.call(o))},ws=function(r){return this instanceof ws?(this.v=r,this):new ws(r)},hb=function(r,o,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=a.apply(r,o||[]),u,d=[];return u={},f("next"),f("throw"),f("return"),u[Symbol.asyncIterator]=function(){return this},u;function f(y){l[y]&&(u[y]=function(b){return new Promise(function(w,O){d.push([y,b,w,O])>1||m(y,b)})})}function m(y,b){try{p(l[y](b))}catch(w){v(d[0][3],w)}}function p(y){y.value instanceof ws?Promise.resolve(y.value.v).then(E,S):v(d[0][2],y)}function E(y){m("next",y)}function S(y){m("throw",y)}function v(y,b){y(b),d.shift(),d.length&&m(d[0][0],d[0][1])}},pb=function(r){var o,a;return o={},l("next"),l("throw",function(u){throw u}),l("return"),o[Symbol.iterator]=function(){return this},o;function l(u,d){o[u]=r[u]?function(f){return(a=!a)?{value:ws(r[u](f)),done:u==="return"}:d?d(f):f}:d}},gb=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r[Symbol.asyncIterator],a;return o?o.call(r):(r=typeof Lc=="function"?Lc(r):r[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(d){a[d]=r[d]&&function(f){return new Promise(function(m,p){f=r[d](f),u(m,p,f.done,f.value)})}}function u(d,f,m,p){Promise.resolve(p).then(function(E){d({value:E,done:m})},f)}},mb=function(r,o){return Object.defineProperty?Object.defineProperty(r,"raw",{value:o}):r.raw=o,r};var n=Object.create?function(r,o){Object.defineProperty(r,"default",{enumerable:!0,value:o})}:function(r,o){r.default=o};yb=function(r){if(r&&r.__esModule)return r;var o={};if(r!=null)for(var a in r)a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)&&Bc(o,r,a);return n(o,r),o},bb=function(r){return r&&r.__esModule?r:{default:r}},vb=function(r,o,a,l){if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?r!==o||!l:!o.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?l:a==="a"?l.call(r):l?l.value:o.get(r)},wb=function(r,o,a,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?r!==o||!u:!o.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(r,a):u?u.value=a:o.set(r,a),a},i("__extends",tb),i("__assign",nb),i("__rest",rb),i("__decorate",ib),i("__param",ob),i("__metadata",sb),i("__awaiter",ab),i("__generator",lb),i("__exportStar",cb),i("__createBinding",Bc),i("__values",Lc),i("__read",Fh),i("__spread",ub),i("__spreadArrays",db),i("__spreadArray",fb),i("__await",ws),i("__asyncGenerator",hb),i("__asyncDelegator",pb),i("__asyncValues",gb),i("__makeTemplateObject",mb),i("__importStar",yb),i("__importDefault",bb),i("__classPrivateFieldGet",vb),i("__classPrivateFieldSet",wb)})});var Sb=Y((jN,Eb)=>{A();var Es=1e3,Ss=Es*60,Os=Ss*60,Ro=Os*24,zP=Ro*7,WP=Ro*365.25;Eb.exports=function(i,t){t=t||{};var n=typeof i;if(n==="string"&&i.length>0)return GP(i);if(n==="number"&&isFinite(i))return t.long?JP(i):VP(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function GP(i){if(i=String(i),!(i.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!!t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*WP;case"weeks":case"week":case"w":return n*zP;case"days":case"day":case"d":return n*Ro;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Os;case"minutes":case"minute":case"mins":case"min":case"m":return n*Ss;case"seconds":case"second":case"secs":case"sec":case"s":return n*Es;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function VP(i){var t=Math.abs(i);return t>=Ro?Math.round(i/Ro)+"d":t>=Os?Math.round(i/Os)+"h":t>=Ss?Math.round(i/Ss)+"m":t>=Es?Math.round(i/Es)+"s":i+"ms"}function JP(i){var t=Math.abs(i);return t>=Ro?Nc(i,t,Ro,"day"):t>=Os?Nc(i,t,Os,"hour"):t>=Ss?Nc(i,t,Ss,"minute"):t>=Es?Nc(i,t,Es,"second"):i+" ms"}function Nc(i,t,n,r){var o=t>=n*1.5;return Math.round(i/n)+" "+r+(o?"s":"")}});var xb=Y((DN,Ob)=>{A();function KP(i){n.debug=n,n.default=n,n.coerce=d,n.disable=a,n.enable=o,n.enabled=l,n.humanize=Sb(),n.destroy=f,Object.keys(i).forEach(m=>{n[m]=i[m]}),n.names=[],n.skips=[],n.formatters={};function t(m){let p=0;for(let E=0;E<m.length;E++)p=(p<<5)-p+m.charCodeAt(E),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=t;function n(m){let p,E=null,S,v;function y(...b){if(!y.enabled)return;let w=y,O=Number(new Date),T=O-(p||O);w.diff=T,w.prev=p,w.curr=O,p=O,b[0]=n.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let C=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(P,D)=>{if(P==="%%")return"%";C++;let I=n.formatters[D];if(typeof I=="function"){let q=b[C];P=I.call(w,q),b.splice(C,1),C--}return P}),n.formatArgs.call(w,b),(w.log||n.log).apply(w,b)}return y.namespace=m,y.useColors=n.useColors(),y.color=n.selectColor(m),y.extend=r,y.destroy=n.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>E!==null?E:(S!==n.namespaces&&(S=n.namespaces,v=n.enabled(m)),v),set:b=>{E=b}}),typeof n.init=="function"&&n.init(y),y}function r(m,p){let E=n(this.namespace+(typeof p=="undefined"?":":p)+m);return E.log=this.log,E}function o(m){n.save(m),n.namespaces=m,n.names=[],n.skips=[];let p,E=(typeof m=="string"?m:"").split(/[\s,]+/),S=E.length;for(p=0;p<S;p++)!E[p]||(m=E[p].replace(/\*/g,".*?"),m[0]==="-"?n.skips.push(new RegExp("^"+m.slice(1)+"$")):n.names.push(new RegExp("^"+m+"$")))}function a(){let m=[...n.names.map(u),...n.skips.map(u).map(p=>"-"+p)].join(",");return n.enable(""),m}function l(m){if(m[m.length-1]==="*")return!0;let p,E;for(p=0,E=n.skips.length;p<E;p++)if(n.skips[p].test(m))return!1;for(p=0,E=n.names.length;p<E;p++)if(n.names[p].test(m))return!0;return!1}function u(m){return m.toString().substring(2,m.toString().length-2).replace(/\.\*\?$/,"*")}function d(m){return m instanceof Error?m.stack||m.message:m}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}Ob.exports=KP});var _b=Y((rr,Hc)=>{A();rr.formatArgs=ZP;rr.save=XP;rr.load=QP;rr.useColors=YP;rr.storage=eI();rr.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();rr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function YP(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ZP(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+Hc.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;i.splice(1,0,t,"color: inherit");let n=0,r=0;i[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n))}),i.splice(r,0,t)}rr.log=console.debug||console.log||(()=>{});function XP(i){try{i?rr.storage.setItem("debug",i):rr.storage.removeItem("debug")}catch(t){}}function QP(){let i;try{i=rr.storage.getItem("debug")}catch(t){}return!i&&typeof j!="undefined"&&"env"in j&&(i=j.env.DEBUG),i}function eI(){try{return localStorage}catch(i){}}Hc.exports=xb()(rr);var{formatters:tI}=Hc.exports;tI.j=function(i){try{return JSON.stringify(i)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Cb=Y(Tb=>{A();"use strict";Object.defineProperty(Tb,"__esModule",{value:!0})});var Rb=Y(jc=>{A();"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.PropertyDefinition=void 0;var Ab=class{constructor(){this.array=!1,this.set=!1,this.readonly=!1,this.writeonly=!1}};jc.PropertyDefinition=Ab});var An=Y(un=>{A();"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getTypedInheritanceChain=un.getInheritanceChain=un.getDefinition=un.objectDefinitions=un.ObjectDefinition=void 0;var nI=Rb(),$h=class{constructor(){this.ctr=()=>{},this.beforeDeserialized=()=>{},this.onDeserialized=()=>{},this.properties=new Map}getProperty(t){let n=this.properties.get(t);return n||(n=new nI.PropertyDefinition,this.properties.set(t,n)),n}};un.ObjectDefinition=$h;un.objectDefinitions=new Map;function rI(i){let t=un.objectDefinitions.get(i);return t||(t=new $h,un.objectDefinitions.set(i,t)),t}un.getDefinition=rI;function Uh(i){if(!i)return[];let t=Object.getPrototypeOf(i);return[i.constructor].concat(Uh(t))}un.getInheritanceChain=Uh;function Mb(i){let t=[];return un.objectDefinitions.forEach((n,r)=>{Object.getPrototypeOf(r.prototype).constructor===i&&t.push([r,n])}),t}function Pb(i,t){let n=un.objectDefinitions.get(i),r=[];t&&n&&n.discriminatorProperty&&(r=r.concat(Mb(i)));let o;for(;r.length!==0&&!o;){let[l,u]=r.shift();if(u.hasOwnProperty("discriminatorValue")){if(t&&n&&u.discriminatorValue===t[n.discriminatorProperty]){if(u.hasOwnProperty("discriminatorProperty"))return Pb(l,t);o=l}}else r=r.concat(Mb(l))}o||(o=i);let a=new Set(Uh(Object.create(o.prototype)));return Array.from(a).filter(l=>un.objectDefinitions.has(l))}un.getTypedInheritanceChain=Pb});var Ib=Y(Dc=>{A();"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.JsonObject=void 0;var iI=An();function oI(){return function(i){iI.getDefinition(i)}}Dc.JsonObject=oI});var Bb=Y(()=>{A();var Lb;(function(i){(function(t){var n=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=o(i);typeof n.Reflect=="undefined"?n.Reflect=i:r=o(n.Reflect,r),t(r);function o(a,l){return function(u,d){typeof a[u]!="function"&&Object.defineProperty(a,u,{configurable:!0,writable:!0,value:d}),l&&l(u,d)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=r&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,d=!l&&!u,f={create:l?function(){return Ie(Object.create(null))}:u?function(){return Ie({__proto__:null})}:function(){return Ie({})},has:d?function(z,X){return n.call(z,X)}:function(z,X){return X in z},get:d?function(z,X){return n.call(z,X)?z[X]:void 0}:function(z,X){return z[X]}},m=Object.getPrototypeOf(Function),p=typeof j=="object"&&j.env&&j.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",E=!p&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:pe(),S=!p&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:le(),v=!p&&typeof WeakMap=="function"?WeakMap:_e(),y=new v;function b(z,X,oe,ve){if(ue(oe)){if(!Ft(z))throw new TypeError;if(!Et(X))throw new TypeError;return U(z,X)}else{if(!Ft(z))throw new TypeError;if(!Se(X))throw new TypeError;if(!Se(ve)&&!ue(ve)&&!xe(ve))throw new TypeError;return xe(ve)&&(ve=void 0),oe=bt(oe),k(z,X,oe,ve)}}t("decorate",b);function w(z,X){function oe(ve,Ce){if(!Se(ve))throw new TypeError;if(!ue(Ce)&&!On(Ce))throw new TypeError;fe(z,X,ve,Ce)}return oe}t("metadata",w);function O(z,X,oe,ve){if(!Se(oe))throw new TypeError;return ue(ve)||(ve=bt(ve)),fe(z,X,oe,ve)}t("defineMetadata",O);function T(z,X,oe){if(!Se(X))throw new TypeError;return ue(oe)||(oe=bt(oe)),N(z,X,oe)}t("hasMetadata",T);function C(z,X,oe){if(!Se(X))throw new TypeError;return ue(oe)||(oe=bt(oe)),W(z,X,oe)}t("hasOwnMetadata",C);function _(z,X,oe){if(!Se(X))throw new TypeError;return ue(oe)||(oe=bt(oe)),ye(z,X,oe)}t("getMetadata",_);function P(z,X,oe){if(!Se(X))throw new TypeError;return ue(oe)||(oe=bt(oe)),be(z,X,oe)}t("getOwnMetadata",P);function D(z,X){if(!Se(z))throw new TypeError;return ue(X)||(X=bt(X)),re(z,X)}t("getMetadataKeys",D);function I(z,X){if(!Se(z))throw new TypeError;return ue(X)||(X=bt(X)),he(z,X)}t("getOwnMetadataKeys",I);function q(z,X,oe){if(!Se(X))throw new TypeError;ue(oe)||(oe=bt(oe));var ve=B(X,oe,!1);if(ue(ve)||!ve.delete(z))return!1;if(ve.size>0)return!0;var Ce=y.get(X);return Ce.delete(oe),Ce.size>0||y.delete(X),!0}t("deleteMetadata",q);function U(z,X){for(var oe=z.length-1;oe>=0;--oe){var ve=z[oe],Ce=ve(X);if(!ue(Ce)&&!xe(Ce)){if(!Et(Ce))throw new TypeError;X=Ce}}return X}function k(z,X,oe,ve){for(var Ce=z.length-1;Ce>=0;--Ce){var ft=z[Ce],$e=ft(X,oe,ve);if(!ue($e)&&!xe($e)){if(!Se($e))throw new TypeError;ve=$e}}return ve}function B(z,X,oe){var ve=y.get(z);if(ue(ve)){if(!oe)return;ve=new E,y.set(z,ve)}var Ce=ve.get(X);if(ue(Ce)){if(!oe)return;Ce=new E,ve.set(X,Ce)}return Ce}function N(z,X,oe){var ve=W(z,X,oe);if(ve)return!0;var Ce=Oe(X);return xe(Ce)?!1:N(z,Ce,oe)}function W(z,X,oe){var ve=B(X,oe,!1);return ue(ve)?!1:ne(ve.has(z))}function ye(z,X,oe){var ve=W(z,X,oe);if(ve)return be(z,X,oe);var Ce=Oe(X);if(!xe(Ce))return ye(z,Ce,oe)}function be(z,X,oe){var ve=B(X,oe,!1);if(!ue(ve))return ve.get(z)}function fe(z,X,oe,ve){var Ce=B(oe,ve,!0);Ce.set(z,X)}function re(z,X){var oe=he(z,X),ve=Oe(z);if(ve===null)return oe;var Ce=re(ve,X);if(Ce.length<=0)return oe;if(oe.length<=0)return Ce;for(var ft=new S,$e=[],Ye=0,je=oe;Ye<je.length;Ye++){var Xe=je[Ye],et=ft.has(Xe);et||(ft.add(Xe),$e.push(Xe))}for(var kn=0,ho=Ce;kn<ho.length;kn++){var Xe=ho[kn],et=ft.has(Xe);et||(ft.add(Xe),$e.push(Xe))}return $e}function he(z,X){var oe=[],ve=B(z,X,!1);if(ue(ve))return oe;for(var Ce=ve.keys(),ft=It(Ce),$e=0;;){var Ye=zr(ft);if(!Ye)return oe.length=$e,oe;var je=Kt(Ye);try{oe[$e]=je}catch(Xe){try{xn(ft)}finally{throw Xe}}$e++}}function Ae(z){if(z===null)return 1;switch(typeof z){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return z===null?1:6;default:return 6}}function ue(z){return z===void 0}function xe(z){return z===null}function Re(z){return typeof z=="symbol"}function Se(z){return typeof z=="object"?z!==null:typeof z=="function"}function V(z,X){switch(Ae(z)){case 0:return z;case 1:return z;case 2:return z;case 3:return z;case 4:return z;case 5:return z}var oe=X===3?"string":X===5?"number":"default",ve=Bn(z,o);if(ve!==void 0){var Ce=ve.call(z,oe);if(Se(Ce))throw new TypeError;return Ce}return ee(z,oe==="default"?"number":oe)}function ee(z,X){if(X==="string"){var oe=z.toString;if(Mt(oe)){var ve=oe.call(z);if(!Se(ve))return ve}var Ce=z.valueOf;if(Mt(Ce)){var ve=Ce.call(z);if(!Se(ve))return ve}}else{var Ce=z.valueOf;if(Mt(Ce)){var ve=Ce.call(z);if(!Se(ve))return ve}var ft=z.toString;if(Mt(ft)){var ve=ft.call(z);if(!Se(ve))return ve}}throw new TypeError}function ne(z){return!!z}function ae(z){return""+z}function bt(z){var X=V(z,3);return Re(X)?X:ae(X)}function Ft(z){return Array.isArray?Array.isArray(z):z instanceof Object?z instanceof Array:Object.prototype.toString.call(z)==="[object Array]"}function Mt(z){return typeof z=="function"}function Et(z){return typeof z=="function"}function On(z){switch(Ae(z)){case 3:return!0;case 4:return!0;default:return!1}}function Bn(z,X){var oe=z[X];if(oe!=null){if(!Mt(oe))throw new TypeError;return oe}}function It(z){var X=Bn(z,a);if(!Mt(X))throw new TypeError;var oe=X.call(z);if(!Se(oe))throw new TypeError;return oe}function Kt(z){return z.value}function zr(z){var X=z.next();return X.done?!1:X}function xn(z){var X=z.return;X&&X.call(z)}function Oe(z){var X=Object.getPrototypeOf(z);if(typeof z!="function"||z===m||X!==m)return X;var oe=z.prototype,ve=oe&&Object.getPrototypeOf(oe);if(ve==null||ve===Object.prototype)return X;var Ce=ve.constructor;return typeof Ce!="function"||Ce===z?X:Ce}function pe(){var z={},X=[],oe=function(){function $e(Ye,je,Xe){this._index=0,this._keys=Ye,this._values=je,this._selector=Xe}return $e.prototype["@@iterator"]=function(){return this},$e.prototype[a]=function(){return this},$e.prototype.next=function(){var Ye=this._index;if(Ye>=0&&Ye<this._keys.length){var je=this._selector(this._keys[Ye],this._values[Ye]);return Ye+1>=this._keys.length?(this._index=-1,this._keys=X,this._values=X):this._index++,{value:je,done:!1}}return{value:void 0,done:!0}},$e.prototype.throw=function(Ye){throw this._index>=0&&(this._index=-1,this._keys=X,this._values=X),Ye},$e.prototype.return=function(Ye){return this._index>=0&&(this._index=-1,this._keys=X,this._values=X),{value:Ye,done:!0}},$e}();return function(){function $e(){this._keys=[],this._values=[],this._cacheKey=z,this._cacheIndex=-2}return Object.defineProperty($e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),$e.prototype.has=function(Ye){return this._find(Ye,!1)>=0},$e.prototype.get=function(Ye){var je=this._find(Ye,!1);return je>=0?this._values[je]:void 0},$e.prototype.set=function(Ye,je){var Xe=this._find(Ye,!0);return this._values[Xe]=je,this},$e.prototype.delete=function(Ye){var je=this._find(Ye,!1);if(je>=0){for(var Xe=this._keys.length,et=je+1;et<Xe;et++)this._keys[et-1]=this._keys[et],this._values[et-1]=this._values[et];return this._keys.length--,this._values.length--,Ye===this._cacheKey&&(this._cacheKey=z,this._cacheIndex=-2),!0}return!1},$e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=z,this._cacheIndex=-2},$e.prototype.keys=function(){return new oe(this._keys,this._values,ve)},$e.prototype.values=function(){return new oe(this._keys,this._values,Ce)},$e.prototype.entries=function(){return new oe(this._keys,this._values,ft)},$e.prototype["@@iterator"]=function(){return this.entries()},$e.prototype[a]=function(){return this.entries()},$e.prototype._find=function(Ye,je){return this._cacheKey!==Ye&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Ye)),this._cacheIndex<0&&je&&(this._cacheIndex=this._keys.length,this._keys.push(Ye),this._values.push(void 0)),this._cacheIndex},$e}();function ve($e,Ye){return $e}function Ce($e,Ye){return Ye}function ft($e,Ye){return[$e,Ye]}}function le(){return function(){function z(){this._map=new E}return Object.defineProperty(z.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),z.prototype.has=function(X){return this._map.has(X)},z.prototype.add=function(X){return this._map.set(X,X),this},z.prototype.delete=function(X){return this._map.delete(X)},z.prototype.clear=function(){this._map.clear()},z.prototype.keys=function(){return this._map.keys()},z.prototype.values=function(){return this._map.values()},z.prototype.entries=function(){return this._map.entries()},z.prototype["@@iterator"]=function(){return this.keys()},z.prototype[a]=function(){return this.keys()},z}()}function _e(){var z=16,X=f.create(),oe=ve();return function(){function je(){this._key=ve()}return je.prototype.has=function(Xe){var et=Ce(Xe,!1);return et!==void 0?f.has(et,this._key):!1},je.prototype.get=function(Xe){var et=Ce(Xe,!1);return et!==void 0?f.get(et,this._key):void 0},je.prototype.set=function(Xe,et){var kn=Ce(Xe,!0);return kn[this._key]=et,this},je.prototype.delete=function(Xe){var et=Ce(Xe,!1);return et!==void 0?delete et[this._key]:!1},je.prototype.clear=function(){this._key=ve()},je}();function ve(){var je;do je="@@WeakMap@@"+Ye();while(f.has(X,je));return X[je]=!0,je}function Ce(je,Xe){if(!n.call(je,oe)){if(!Xe)return;Object.defineProperty(je,oe,{value:f.create()})}return je[oe]}function ft(je,Xe){for(var et=0;et<Xe;++et)je[et]=Math.random()*255|0;return je}function $e(je){return typeof Uint8Array=="function"?typeof crypto!="undefined"?crypto.getRandomValues(new Uint8Array(je)):typeof msCrypto!="undefined"?msCrypto.getRandomValues(new Uint8Array(je)):ft(new Uint8Array(je),je):ft(new Array(je),je)}function Ye(){var je=$e(z);je[6]=je[6]&79|64,je[8]=je[8]&191|128;for(var Xe="",et=0;et<z;++et){var kn=je[et];(et===4||et===6||et===8)&&(Xe+="-"),kn<16&&(Xe+="0"),Xe+=kn.toString(16).toLowerCase()}return Xe}}function Ie(z){return z.__=void 0,delete z.__,z}})})(Lb||(Lb={}))});var kb=Y(Fc=>{A();"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.JsonProperty=void 0;Bb();var sI=An();function aI(i){return function(t,n){let r=Reflect.getMetadata("design:type",t,n.toString()),o=sI.getDefinition(t.constructor).getProperty(n.toString());o.serializedName=i||n.toString(),o.array=r===Array,o.set=r===Set,!o.array&&!o.set&&!o.type&&(o.type=r)}}Fc.JsonProperty=aI});var Nb=Y($c=>{A();"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.JsonType=void 0;var lI=An();function cI(i){return function(t,n){let r=lI.getDefinition(t.constructor).getProperty(n.toString());r.type=i}}$c.JsonType=cI});var Hb=Y(Uc=>{A();"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.JsonElementType=void 0;var uI=An();function dI(i){return function(t,n){let r=uI.getDefinition(t.constructor).getProperty(n.toString());r.type=i}}Uc.JsonElementType=dI});var jb=Y(qc=>{A();"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.JsonConverter=void 0;var fI=An();function hI(i){return function(t,n){let r=fI.getDefinition(t.constructor).getProperty(n.toString());typeof i=="function"?r.converter=new i:r.converter=i}}qc.JsonConverter=hI});var Db=Y(zc=>{A();"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.JsonReadonly=void 0;var pI=An();function gI(){return function(i,t){let n=pI.getDefinition(i.constructor).getProperty(t.toString());n.readonly=!0}}zc.JsonReadonly=gI});var Fb=Y(Wc=>{A();"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.JsonWriteonly=void 0;var mI=An();function yI(){return function(i,t){let n=mI.getDefinition(i.constructor).getProperty(t.toString());n.writeonly=!0}}Wc.JsonWriteonly=yI});var $b=Y(Gc=>{A();"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.JsonDiscriminatorProperty=void 0;var bI=An();function vI(i){return function(t){bI.getDefinition(t).discriminatorProperty=i}}Gc.JsonDiscriminatorProperty=vI});var Ub=Y(Vc=>{A();"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.JsonDiscriminatorValue=void 0;var wI=An();function EI(i){return function(t){wI.getDefinition(t).discriminatorValue=i}}Vc.JsonDiscriminatorValue=EI});var qb=Y(Jc=>{A();"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.JsonConstructor=void 0;var SI=An();function OI(){return function(i,t){let n=SI.getDefinition(i.constructor);n.ctr=i[t.toString()]}}Jc.JsonConstructor=OI});var zb=Y(Kc=>{A();"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.BeforeDeserialized=void 0;var xI=An();function _I(){return function(i,t){let n=xI.getDefinition(i.constructor);n.beforeDeserialized=i[t.toString()]}}Kc.BeforeDeserialized=_I});var Wb=Y(Yc=>{A();"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.OnDeserialized=void 0;var TI=An();function CI(){return function(i,t){let n=TI.getDefinition(i.constructor);n.onDeserialized=i[t.toString()]}}Yc.OnDeserialized=CI});var Gb=Y(nn=>{A();"use strict";var AI=nn&&nn.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n),Object.defineProperty(i,r,{enumerable:!0,get:function(){return t[n]}})}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),Or=nn&&nn.__exportStar||function(i,t){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&AI(t,i,n)};Object.defineProperty(nn,"__esModule",{value:!0});Or(Ib(),nn);Or(kb(),nn);Or(Nb(),nn);Or(Hb(),nn);Or(jb(),nn);Or(Db(),nn);Or(Fb(),nn);Or($b(),nn);Or(Ub(),nn);Or(qb(),nn);Or(zb(),nn);Or(Wb(),nn)});var qh=Y(Zc=>{A();"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.DateConverter=void 0;var Vb=class{serialize(t){return t.toString()}deserialize(t){return new Date(t)}collapseArrayWithSingleItem(){return!1}};Zc.DateConverter=Vb});var zh=Y(Xc=>{A();"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.BufferConverter=void 0;var Jb=class{constructor(t="json"){this._encoding=t}serialize(t){return this._encoding==="json"?t.toJSON():t.toString(this._encoding)}deserialize(t){return this._encoding==="json"?Buffer.from(t.data):Buffer.from(t,this._encoding)}collapseArrayWithSingleItem(){return!1}};Xc.BufferConverter=Jb});var Qc=Y(xs=>{A();"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.propertyConverters=void 0;var RI=qh(),MI=zh();xs.propertyConverters=new Map;typeof window=="undefined"&&xs.propertyConverters.set(Buffer,new MI.BufferConverter);xs.propertyConverters.set(Date,new RI.DateConverter)});var Kb=Y(wi=>{A();"use strict";var PI=wi&&wi.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n),Object.defineProperty(i,r,{enumerable:!0,get:function(){return t[n]}})}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),Wh=wi&&wi.__exportStar||function(i,t){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&PI(t,i,n)};Object.defineProperty(wi,"__esModule",{value:!0});Wh(Qc(),wi);Wh(zh(),wi);Wh(qh(),wi)});var tv=Y(eu=>{A();"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.serialize=void 0;var Yb=Ic(),Zb=Qc(),Gh=An();function Vh(i,t,n={keyToPreserveUnknownJSON:void 0}){return i.constructor===Array?i.map(r=>Xb(r,t,n)):Xb(i,t,n)}eu.serialize=Vh;function Xb(i,t=Object.getPrototypeOf(i).constructor,n){let r=Gh.getTypedInheritanceChain(t);if(r.length===0)return i;let o=r.map(l=>Gh.objectDefinitions.get(l)).filter(l=>!!l),a={};if(o.forEach(l=>{l.properties.forEach((u,d)=>{if(!u.type)throw new Error(`Cannot serialize property '${d}' without type!`);let f=i[d];if(!(f==null||u.writeonly)){if(u.set){a[u.serializedName]=Qb(Array.from(f||[]),u,n);return}if(u.array){a[u.serializedName]=Qb(f,u,n);return}a[u.serializedName]=ev(f,u,n)}})}),n.keyToPreserveUnknownJSON){let l=n.keyToPreserveUnknownJSON;if(i[l]){let u=Object.keys(i[l]);for(let d of u)if(i[l].hasOwnProperty(d)){let f;o.forEach(m=>{m.properties.forEach((p,E)=>{!f&&d===p.serializedName&&(f=p)})}),f||(typeof a[d]!="undefined"&&(console.log(`???!!! TAJSON keyToPreserveUnknownJSON already serialized?! ${l}.${d}`),console.log(Yb.inspect(a[d],{showHidden:!1,depth:1e3,colors:!0,customInspect:!1})),a[d]!==i[l][d]&&(console.log(`???!!! TAJSON keyToPreserveUnknownJSON already serialized DIFF?! ${l}.${d}`),console.log(Yb.inspect(i[l][d],{showHidden:!1,depth:1e3,colors:!0,customInspect:!1})))),a[d]=i[l][d])}}}return a}function Qb(i,t,n){let r=i.map(o=>ev(o,t,n));if(r.length===1){let o=t.converter||Zb.propertyConverters.get(t.type);if(o&&o.collapseArrayWithSingleItem())return r[0]}return r}function ev(i,t,n){let r=t.type===String||t.type===Boolean||t.type===Number,o=i,a=t.converter||Zb.propertyConverters.get(t.type);return a?a.serialize(o):!r&&Gh.objectDefinitions.get(t.type)?o instanceof t.type?Vh(o,void 0,n):Vh(o,t.type,n):o}});var sv=Y(nu=>{A();"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.deserialize=void 0;var II=Ic(),tu=An(),nv=Qc();function rv(i,t,n={runConstructor:!1,keyToPreserveUnknownJSON:void 0}){return i&&i.constructor===Array?i.map(r=>iv(r,t,n)):iv(i,t,n)}nu.deserialize=rv;function iv(i,t=Object,n){if(!tu.objectDefinitions.has(t))return i;let r=i,[o,...a]=tu.getTypedInheritanceChain(t,r),l=Object.create(o.prototype),u=[...a.reverse(),o].map(d=>tu.objectDefinitions.get(d)).filter(d=>!!d);if(u.forEach(d=>{n.runConstructor&&d.ctr.call(l),d.beforeDeserialized.call(l),d.properties.forEach((f,m)=>{if(!f.type)throw new Error(`Cannot deserialize property '${m}' without type!`);let p=r[f.serializedName];if(!(p==null||f.readonly)){if(f.array||f.set){l[m]=LI(p,f,n),f.set&&(l[m]=new Set(l[m]));return}l[m]=ov(p,f,n)}}),d.onDeserialized.call(l)}),n.keyToPreserveUnknownJSON){let d=n.keyToPreserveUnknownJSON;Object.keys(r).forEach(f=>{if(r.hasOwnProperty(f)){let m;u.forEach(p=>{p.properties.forEach((E,S)=>{!m&&f===E.serializedName&&(m=E)}),m?l[d]&&typeof l[d][f]!="undefined"&&delete l[d][f]:(l[d]||(l[d]={}),typeof l[d][f]!="undefined"&&l[d][f]!==r[f]&&(console.log(`???!!! TAJSON keyToPreserveUnknownJSON already deserialized DIFF?! ${d}.${f}`),console.log(II.inspect(r[f],{showHidden:!1,depth:1e3,colors:!0,customInspect:!1}))),l[d][f]=r[f])})}}),l[d]&&!Object.keys(l[d]).length&&delete l[d]}return l}function LI(i,t,n){let r=t.converter||nv.propertyConverters.get(t.type);return(i instanceof Array?i:r&&r.collapseArrayWithSingleItem()?[i]:i).map(a=>ov(a,t,n))}function ov(i,t,n){let r=t.type===String||t.type===Boolean||t.type===Number,o=i,a=t.converter||nv.propertyConverters.get(t.type);return a?a.deserialize(o):!r&&tu.objectDefinitions.get(t.type)?rv(o,t.type,n):o}});var lv=Y(ru=>{A();"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.TaJson=void 0;var BI=tv(),kI=sv(),av=class{static deserialize(t,n,r){return kI.deserialize(t,n,r)}static parse(t,n,r){return this.deserialize(JSON.parse(t),n,r)}static serialize(t,n){return BI.serialize(t,void 0,n)}static stringify(t,n){return JSON.stringify(this.serialize(t,n))}};ru.TaJson=av});var Rn=Y(ir=>{A();"use strict";var NI=ir&&ir.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n),Object.defineProperty(i,r,{enumerable:!0,get:function(){return t[n]}})}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),Jh=ir&&ir.__exportStar||function(i,t){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&NI(t,i,n)};Object.defineProperty(ir,"__esModule",{value:!0});ir.TaJson=ir.JSON=void 0;Jh(Cb(),ir);Jh(Gb(),ir);Jh(Kb(),ir);var cv=lv();Object.defineProperty(ir,"JSON",{enumerable:!0,get:function(){return cv.TaJson}});Object.defineProperty(ir,"TaJson",{enumerable:!0,get:function(){return cv.TaJson}})});var _s=Y(iu=>{A();"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.JsonStringConverter=void 0;var uv=class{serialize(t){return t}deserialize(t){return t}collapseArrayWithSingleItem(){return!0}};iu.JsonStringConverter=uv});var dv=Y(ou=>{A();"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.tryDecodeURI=void 0;function HI(i){if(!i)return null;try{return decodeURIComponent(i)}catch(t){console.log(i),console.log(t)}return i}ou.tryDecodeURI=HI});var Iv=Y((p7,lu)=>{A();var fv,hv,pv,gv,mv,yv,bv,vv,wv,su,Kh,Ev,Sv,Ov,Ts,xv,_v,Tv,Cv,Av,Rv,Mv,Pv,au;(function(i){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){i(n(t,n(r)))}):typeof lu=="object"&&typeof lu.exports=="object"?i(n(t,n(lu.exports))):i(n(t));function n(r,o){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(a,l){return r[a]=o?o(a,l):l}}})(function(i){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])};fv=function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function a(){this.constructor=r}r.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)},hv=Object.assign||function(r){for(var o,a=1,l=arguments.length;a<l;a++){o=arguments[a];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},pv=function(r,o){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.indexOf(l)<0&&(a[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(r);u<l.length;u++)o.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(r,l[u])&&(a[l[u]]=r[l[u]]);return a},gv=function(r,o,a,l){var u=arguments.length,d=u<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,a):l,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,o,a,l);else for(var m=r.length-1;m>=0;m--)(f=r[m])&&(d=(u<3?f(d):u>3?f(o,a,d):f(o,a))||d);return u>3&&d&&Object.defineProperty(o,a,d),d},mv=function(r,o){return function(a,l){o(a,l,r)}},yv=function(r,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,o)},bv=function(r,o,a,l){function u(d){return d instanceof a?d:new a(function(f){f(d)})}return new(a||(a=Promise))(function(d,f){function m(S){try{E(l.next(S))}catch(v){f(v)}}function p(S){try{E(l.throw(S))}catch(v){f(v)}}function E(S){S.done?d(S.value):u(S.value).then(m,p)}E((l=l.apply(r,o||[])).next())})},vv=function(r,o){var a={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},l,u,d,f;return f={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function m(E){return function(S){return p([E,S])}}function p(E){if(l)throw new TypeError("Generator is already executing.");for(;a;)try{if(l=1,u&&(d=E[0]&2?u.return:E[0]?u.throw||((d=u.return)&&d.call(u),0):u.next)&&!(d=d.call(u,E[1])).done)return d;switch(u=0,d&&(E=[E[0]&2,d.value]),E[0]){case 0:case 1:d=E;break;case 4:return a.label++,{value:E[1],done:!1};case 5:a.label++,u=E[1],E=[0];continue;case 7:E=a.ops.pop(),a.trys.pop();continue;default:if(d=a.trys,!(d=d.length>0&&d[d.length-1])&&(E[0]===6||E[0]===2)){a=0;continue}if(E[0]===3&&(!d||E[1]>d[0]&&E[1]<d[3])){a.label=E[1];break}if(E[0]===6&&a.label<d[1]){a.label=d[1],d=E;break}if(d&&a.label<d[2]){a.label=d[2],a.ops.push(E);break}d[2]&&a.ops.pop(),a.trys.pop();continue}E=o.call(r,a)}catch(S){E=[6,S],u=0}finally{l=d=0}if(E[0]&5)throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}},wv=function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&au(o,r,a)},au=Object.create?function(r,o,a,l){l===void 0&&(l=a),Object.defineProperty(r,l,{enumerable:!0,get:function(){return o[a]}})}:function(r,o,a,l){l===void 0&&(l=a),r[l]=o[a]},su=function(r){var o=typeof Symbol=="function"&&Symbol.iterator,a=o&&r[o],l=0;if(a)return a.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&l>=r.length&&(r=void 0),{value:r&&r[l++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Kh=function(r,o){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),u,d=[],f;try{for(;(o===void 0||o-- >0)&&!(u=l.next()).done;)d.push(u.value)}catch(m){f={error:m}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(f)throw f.error}}return d},Ev=function(){for(var r=[],o=0;o<arguments.length;o++)r=r.concat(Kh(arguments[o]));return r},Sv=function(){for(var r=0,o=0,a=arguments.length;o<a;o++)r+=arguments[o].length;for(var l=Array(r),u=0,o=0;o<a;o++)for(var d=arguments[o],f=0,m=d.length;f<m;f++,u++)l[u]=d[f];return l},Ov=function(r,o,a){if(a||arguments.length===2)for(var l=0,u=o.length,d;l<u;l++)(d||!(l in o))&&(d||(d=Array.prototype.slice.call(o,0,l)),d[l]=o[l]);return r.concat(d||Array.prototype.slice.call(o))},Ts=function(r){return this instanceof Ts?(this.v=r,this):new Ts(r)},xv=function(r,o,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=a.apply(r,o||[]),u,d=[];return u={},f("next"),f("throw"),f("return"),u[Symbol.asyncIterator]=function(){return this},u;function f(y){l[y]&&(u[y]=function(b){return new Promise(function(w,O){d.push([y,b,w,O])>1||m(y,b)})})}function m(y,b){try{p(l[y](b))}catch(w){v(d[0][3],w)}}function p(y){y.value instanceof Ts?Promise.resolve(y.value.v).then(E,S):v(d[0][2],y)}function E(y){m("next",y)}function S(y){m("throw",y)}function v(y,b){y(b),d.shift(),d.length&&m(d[0][0],d[0][1])}},_v=function(r){var o,a;return o={},l("next"),l("throw",function(u){throw u}),l("return"),o[Symbol.iterator]=function(){return this},o;function l(u,d){o[u]=r[u]?function(f){return(a=!a)?{value:Ts(r[u](f)),done:u==="return"}:d?d(f):f}:d}},Tv=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r[Symbol.asyncIterator],a;return o?o.call(r):(r=typeof su=="function"?su(r):r[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(d){a[d]=r[d]&&function(f){return new Promise(function(m,p){f=r[d](f),u(m,p,f.done,f.value)})}}function u(d,f,m,p){Promise.resolve(p).then(function(E){d({value:E,done:m})},f)}},Cv=function(r,o){return Object.defineProperty?Object.defineProperty(r,"raw",{value:o}):r.raw=o,r};var n=Object.create?function(r,o){Object.defineProperty(r,"default",{enumerable:!0,value:o})}:function(r,o){r.default=o};Av=function(r){if(r&&r.__esModule)return r;var o={};if(r!=null)for(var a in r)a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)&&au(o,r,a);return n(o,r),o},Rv=function(r){return r&&r.__esModule?r:{default:r}},Mv=function(r,o,a,l){if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?r!==o||!l:!o.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?l:a==="a"?l.call(r):l?l.value:o.get(r)},Pv=function(r,o,a,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?r!==o||!u:!o.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(r,a):u?u.value=a:o.set(r,a),a},i("__extends",fv),i("__assign",hv),i("__rest",pv),i("__decorate",gv),i("__param",mv),i("__metadata",yv),i("__awaiter",bv),i("__generator",vv),i("__exportStar",wv),i("__createBinding",au),i("__values",su),i("__read",Kh),i("__spread",Ev),i("__spreadArrays",Sv),i("__spreadArray",Ov),i("__await",Ts),i("__asyncGenerator",xv),i("__asyncDelegator",_v),i("__asyncValues",Tv),i("__makeTemplateObject",Cv),i("__importStar",Av),i("__importDefault",Rv),i("__classPrivateFieldGet",Mv),i("__classPrivateFieldSet",Pv)})});var Lv=Y(cu=>{A();"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.Encrypted=void 0;var or=Iv(),Mo=Rn(),Ei=class{constructor(){this.DecryptedLengthBeforeInflate=-1,this.CypherBlockPadding=-1}get OriginalLength(){return typeof this.OriginalLength2!="undefined"?this.OriginalLength2:this.OriginalLength1}set OriginalLength(t){typeof t!="undefined"&&(this.OriginalLength1=void 0,this.OriginalLength2=t)}};(0,or.__decorate)([(0,Mo.JsonProperty)("scheme"),(0,or.__metadata)("design:type",String)],Ei.prototype,"Scheme",void 0);(0,or.__decorate)([(0,Mo.JsonProperty)("profile"),(0,or.__metadata)("design:type",String)],Ei.prototype,"Profile",void 0);(0,or.__decorate)([(0,Mo.JsonProperty)("algorithm"),(0,or.__metadata)("design:type",String)],Ei.prototype,"Algorithm",void 0);(0,or.__decorate)([(0,Mo.JsonProperty)("compression"),(0,or.__metadata)("design:type",String)],Ei.prototype,"Compression",void 0);(0,or.__decorate)([(0,Mo.JsonProperty)("originalLength"),(0,or.__metadata)("design:type",Number)],Ei.prototype,"OriginalLength2",void 0);(0,or.__decorate)([(0,Mo.JsonProperty)("original-length"),(0,or.__metadata)("design:type",Object)],Ei.prototype,"OriginalLength1",void 0);Ei=(0,or.__decorate)([(0,Mo.JsonObject)()],Ei);cu.Encrypted=Ei});var Yh=Y(Jt=>{A();"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.Properties=Jt.PropertiesSupportedKeys=Jt.SpreadEnum=Jt.PageEnum=Jt.OverflowEnum=Jt.OrientationEnum=Jt.LayoutEnum=void 0;var dn=Yr(),Zr=Rn(),jI=Lv(),DI;(function(i){i.Fixed="fixed",i.Reflowable="reflowable"})(DI=Jt.LayoutEnum||(Jt.LayoutEnum={}));var FI;(function(i){i.Auto="auto",i.Landscape="landscape",i.Portrait="portrait"})(FI=Jt.OrientationEnum||(Jt.OrientationEnum={}));var $I;(function(i){i.Auto="auto",i.Paginated="paginated",i.Scrolled="scrolled",i.ScrolledContinuous="scrolled-continuous"})($I=Jt.OverflowEnum||(Jt.OverflowEnum={}));var UI;(function(i){i.Left="left",i.Right="right",i.Center="center"})(UI=Jt.PageEnum||(Jt.PageEnum={}));var qI;(function(i){i.Auto="auto",i.Both="both",i.None="none",i.Landscape="landscape"})(qI=Jt.SpreadEnum||(Jt.SpreadEnum={}));Jt.PropertiesSupportedKeys=["contains","layout","orientation","overflow","page","spread","encrypted","media-overlay"];var Nr=class{};dn.__decorate([(0,Zr.JsonProperty)("contains"),(0,Zr.JsonElementType)(String),dn.__metadata("design:type",Array)],Nr.prototype,"Contains",void 0);dn.__decorate([(0,Zr.JsonProperty)("layout"),dn.__metadata("design:type",String)],Nr.prototype,"Layout",void 0);dn.__decorate([(0,Zr.JsonProperty)("orientation"),dn.__metadata("design:type",String)],Nr.prototype,"Orientation",void 0);dn.__decorate([(0,Zr.JsonProperty)("overflow"),dn.__metadata("design:type",String)],Nr.prototype,"Overflow",void 0);dn.__decorate([(0,Zr.JsonProperty)("page"),dn.__metadata("design:type",String)],Nr.prototype,"Page",void 0);dn.__decorate([(0,Zr.JsonProperty)("spread"),dn.__metadata("design:type",String)],Nr.prototype,"Spread",void 0);dn.__decorate([(0,Zr.JsonProperty)("encrypted"),dn.__metadata("design:type",jI.Encrypted)],Nr.prototype,"Encrypted",void 0);dn.__decorate([(0,Zr.JsonProperty)("media-overlay"),dn.__metadata("design:type",String)],Nr.prototype,"MediaOverlay",void 0);Nr=dn.__decorate([(0,Zr.JsonObject)()],Nr);Jt.Properties=Nr});var va=Y(du=>{A();"use strict";var uu;Object.defineProperty(du,"__esModule",{value:!0});du.Link=void 0;var _t=Yr(),rn=Rn(),zI=_s(),WI=dv(),GI=Yh(),VI="properties",JI="children",KI="alternate",bn=uu=class{get Href(){return this.Href1}set Href(t){this.Href1=t,this._urlDecoded=void 0}get HrefDecoded(){if(this._urlDecoded)return this._urlDecoded;if(this._urlDecoded!==null){if(!this.Href){this._urlDecoded=null;return}return this._urlDecoded=(0,WI.tryDecodeURI)(this.Href),this._urlDecoded?this._urlDecoded:void 0}}set HrefDecoded(t){this._urlDecoded=t}setHrefDecoded(t){this.Href=t,this.HrefDecoded=t}AddRels(t){t.forEach(n=>{this.AddRel(n)})}AddRel(t){this.HasRel(t)||(this.Rel?this.Rel.push(t):this.Rel=[t])}HasRel(t){return this.Rel&&this.Rel.indexOf(t)>=0}_OnDeserialized(){!this.Href&&(!this.Children||!this.Children.length)&&console.log("Link.Href is not set! (and no child Links)")}};_t.__decorate([(0,rn.JsonProperty)("type"),_t.__metadata("design:type",String)],bn.prototype,"TypeLink",void 0);_t.__decorate([(0,rn.JsonProperty)("height"),_t.__metadata("design:type",Number)],bn.prototype,"Height",void 0);_t.__decorate([(0,rn.JsonProperty)("width"),_t.__metadata("design:type",Number)],bn.prototype,"Width",void 0);_t.__decorate([(0,rn.JsonProperty)("title"),_t.__metadata("design:type",String)],bn.prototype,"Title",void 0);_t.__decorate([(0,rn.JsonProperty)(VI),_t.__metadata("design:type",GI.Properties)],bn.prototype,"Properties",void 0);_t.__decorate([(0,rn.JsonProperty)("duration"),_t.__metadata("design:type",Number)],bn.prototype,"Duration",void 0);_t.__decorate([(0,rn.JsonProperty)("bitrate"),_t.__metadata("design:type",Number)],bn.prototype,"Bitrate",void 0);_t.__decorate([(0,rn.JsonProperty)("templated"),_t.__metadata("design:type",Boolean)],bn.prototype,"Templated",void 0);_t.__decorate([(0,rn.JsonProperty)(JI),(0,rn.JsonElementType)(uu),_t.__metadata("design:type",Array)],bn.prototype,"Children",void 0);_t.__decorate([(0,rn.JsonProperty)(KI),(0,rn.JsonElementType)(uu),_t.__metadata("design:type",Array)],bn.prototype,"Alternate",void 0);_t.__decorate([(0,rn.JsonProperty)("rel"),(0,rn.JsonConverter)(zI.JsonStringConverter),(0,rn.JsonElementType)(String),_t.__metadata("design:type",Array)],bn.prototype,"Rel",void 0);_t.__decorate([(0,rn.JsonProperty)("href"),_t.__metadata("design:type",String)],bn.prototype,"Href1",void 0);_t.__decorate([(0,rn.OnDeserialized)(),_t.__metadata("design:type",Function),_t.__metadata("design:paramtypes",[]),_t.__metadata("design:returntype",void 0)],bn.prototype,"_OnDeserialized",null);bn=uu=_t.__decorate([(0,rn.JsonObject)()],bn);du.Link=bn});var hu=Y(fu=>{A();"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.Contributor=void 0;var Xt=Yr(),xr=Rn(),YI=_s(),ZI=va(),XI="links",Hr=class{get SortAs(){return this.SortAs2?this.SortAs2:this.SortAs1}set SortAs(t){t&&(this.SortAs1=void 0,this.SortAs2=t)}_OnDeserialized(){this.Name||console.log("Contributor.Name is not set!")}};Xt.__decorate([(0,xr.JsonProperty)("name"),Xt.__metadata("design:type",Object)],Hr.prototype,"Name",void 0);Xt.__decorate([(0,xr.JsonProperty)("sortAs"),Xt.__metadata("design:type",String)],Hr.prototype,"SortAs2",void 0);Xt.__decorate([(0,xr.JsonProperty)("sort_as"),Xt.__metadata("design:type",Object)],Hr.prototype,"SortAs1",void 0);Xt.__decorate([(0,xr.JsonProperty)("role"),(0,xr.JsonConverter)(YI.JsonStringConverter),(0,xr.JsonElementType)(String),Xt.__metadata("design:type",Array)],Hr.prototype,"Role",void 0);Xt.__decorate([(0,xr.JsonProperty)("identifier"),Xt.__metadata("design:type",String)],Hr.prototype,"Identifier",void 0);Xt.__decorate([(0,xr.JsonProperty)("position"),Xt.__metadata("design:type",Number)],Hr.prototype,"Position",void 0);Xt.__decorate([(0,xr.JsonProperty)(XI),(0,xr.JsonElementType)(ZI.Link),Xt.__metadata("design:type",Array)],Hr.prototype,"Links",void 0);Xt.__decorate([(0,xr.OnDeserialized)(),Xt.__metadata("design:type",Function),Xt.__metadata("design:paramtypes",[]),Xt.__metadata("design:returntype",void 0)],Hr.prototype,"_OnDeserialized",null);Hr=Xt.__decorate([(0,xr.JsonObject)()],Hr);fu.Contributor=Hr});var Zh=Y(Xr=>{A();"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.TaJsonSerialize=Xr.TaJsonDeserialize=Xr.KeyToPreserveUnknownJSON=void 0;var Bv=Rn();Xr.KeyToPreserveUnknownJSON="AdditionalJSON";function QI(i,t){return Bv.JSON.deserialize(i,t,{keyToPreserveUnknownJSON:Xr.KeyToPreserveUnknownJSON})}Xr.TaJsonDeserialize=QI;function eL(i){return Bv.JSON.serialize(i,{keyToPreserveUnknownJSON:Xr.KeyToPreserveUnknownJSON})}Xr.TaJsonSerialize=eL});var Xh=Y(pu=>{A();"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.JsonContributorConverter=void 0;var kv=Zh(),Nv=hu(),Hv=class{serialize(t){return t.Name&&!t.SortAs&&(!t.Role||!t.Role.length)&&!t.Identifier&&typeof t.Position=="undefined"&&(!t.Links||!t.Links.length)&&typeof t.Name=="string"?t.Name:(0,kv.TaJsonSerialize)(t)}deserialize(t){if(typeof t=="string"){let n=new Nv.Contributor;return n.Name=t,n}return(0,kv.TaJsonDeserialize)(t,Nv.Contributor)}collapseArrayWithSingleItem(){return!0}};pu.JsonContributorConverter=Hv});var Fv=Y(gu=>{A();"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.BelongsTo=void 0;var wa=Yr(),Po=Rn(),jv=hu(),Dv=Xh(),tL="series",nL="collection",Ea=class{};wa.__decorate([(0,Po.JsonProperty)(tL),(0,Po.JsonElementType)(jv.Contributor),(0,Po.JsonConverter)(Dv.JsonContributorConverter),wa.__metadata("design:type",Array)],Ea.prototype,"Series",void 0);wa.__decorate([(0,Po.JsonProperty)(nL),(0,Po.JsonElementType)(jv.Contributor),(0,Po.JsonConverter)(Dv.JsonContributorConverter),wa.__metadata("design:type",Array)],Ea.prototype,"Collection",void 0);Ea=wa.__decorate([(0,Po.JsonObject)()],Ea);gu.BelongsTo=Ea});var $v=Y(mu=>{A();"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.MediaOverlay=void 0;var Sa=Yr(),Qh=Rn(),Oa=class{};Sa.__decorate([(0,Qh.JsonProperty)("active-class"),Sa.__metadata("design:type",String)],Oa.prototype,"ActiveClass",void 0);Sa.__decorate([(0,Qh.JsonProperty)("playback-active-class"),Sa.__metadata("design:type",String)],Oa.prototype,"PlaybackActiveClass",void 0);Oa=Sa.__decorate([(0,Qh.JsonObject)()],Oa);mu.MediaOverlay=Oa});var ep=Y(yu=>{A();"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.Subject=void 0;var fn=Yr(),Si=Rn(),rL=va(),iL="links",Qr=class{get SortAs(){return this.SortAs2?this.SortAs2:this.SortAs1}set SortAs(t){t&&(this.SortAs1=void 0,this.SortAs2=t)}_OnDeserialized(){this.Name||console.log("Subject.Name is not set!")}};fn.__decorate([(0,Si.JsonProperty)("name"),fn.__metadata("design:type",Object)],Qr.prototype,"Name",void 0);fn.__decorate([(0,Si.JsonProperty)("sortAs"),fn.__metadata("design:type",String)],Qr.prototype,"SortAs2",void 0);fn.__decorate([(0,Si.JsonProperty)("sort_as"),fn.__metadata("design:type",Object)],Qr.prototype,"SortAs1",void 0);fn.__decorate([(0,Si.JsonProperty)("scheme"),fn.__metadata("design:type",String)],Qr.prototype,"Scheme",void 0);fn.__decorate([(0,Si.JsonProperty)("code"),fn.__metadata("design:type",String)],Qr.prototype,"Code",void 0);fn.__decorate([(0,Si.JsonProperty)(iL),(0,Si.JsonElementType)(rL.Link),fn.__metadata("design:type",Array)],Qr.prototype,"Links",void 0);fn.__decorate([(0,Si.OnDeserialized)(),fn.__metadata("design:type",Function),fn.__metadata("design:paramtypes",[]),fn.__metadata("design:returntype",void 0)],Qr.prototype,"_OnDeserialized",null);Qr=fn.__decorate([(0,Si.JsonObject)()],Qr);yu.Subject=Qr});var Wv=Y(bu=>{A();"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.JsonSubjectConverter=void 0;var Uv=Zh(),qv=ep(),zv=class{serialize(t){return t.Name&&!t.SortAs&&!t.Scheme&&!t.Code&&(!t.Links||!t.Links.length)&&typeof t.Name=="string"?t.Name:(0,Uv.TaJsonSerialize)(t)}deserialize(t){if(typeof t=="string"){let n=new qv.Subject;return n.Name=t,n}return(0,Uv.TaJsonDeserialize)(t,qv.Subject)}collapseArrayWithSingleItem(){return!0}};bu.JsonSubjectConverter=zv});var Gv=Y(Oi=>{A();"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.Metadata=Oi.MetadataSupportedKeys=Oi.DirectionEnum=void 0;var me=Yr(),ge=Rn(),ei=_s(),oL=Fv(),sr=hu(),ar=Xh(),sL=$v(),aL=Yh(),lL=ep(),cL=Wv(),uL;(function(i){i.Auto="auto",i.RTL="rtl",i.LTR="ltr"})(uL=Oi.DirectionEnum||(Oi.DirectionEnum={}));Oi.MetadataSupportedKeys=["dcterms:modified","accessMode","accessibilityFeature","accessibilityHazard","accessibilitySummary","accessModeSufficient","accessibilityAPI","accessibilityControl","certifiedBy","certifierCredential","certifierReport","conformsTo","title","subtitle","identifier","author","translator","editor","artist","illustrator","letterer","penciler","colorist","inker","narrator","contributor","publisher","imprint","language","modified","published","sortAs","description","readingProgression","direction","belongsTo","duration","numberOfPages","rights","rendition","source","subject"];var Ve=class{get SortAs(){return this.SortAs2?this.SortAs2:this.SortAs1}set SortAs(t){t&&(this.SortAs1=void 0,this.SortAs2=t)}get Direction(){return this.Direction2?this.Direction2:this.Direction1}set Direction(t){t&&(this.Direction1=void 0,this.Direction2=t)}get BelongsTo(){return this.BelongsTo2?this.BelongsTo2:this.BelongsTo1}set BelongsTo(t){t&&(this.BelongsTo1=void 0,this.BelongsTo2=t)}_OnDeserialized(){this.Title||console.log("Metadata.Title is not set!")}};me.__decorate([(0,ge.JsonProperty)("accessMode"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"AccessMode",void 0);me.__decorate([(0,ge.JsonProperty)("accessibilityFeature"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"AccessibilityFeature",void 0);me.__decorate([(0,ge.JsonProperty)("accessibilityHazard"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"AccessibilityHazard",void 0);me.__decorate([(0,ge.JsonProperty)("accessibilitySummary"),me.__metadata("design:type",Object)],Ve.prototype,"AccessibilitySummary",void 0);me.__decorate([(0,ge.JsonProperty)("accessModeSufficient"),(0,ge.JsonElementType)(Array),me.__metadata("design:type",Array)],Ve.prototype,"AccessModeSufficient",void 0);me.__decorate([(0,ge.JsonProperty)("accessibilityAPI"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"AccessibilityAPI",void 0);me.__decorate([(0,ge.JsonProperty)("accessibilityControl"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"AccessibilityControl",void 0);me.__decorate([(0,ge.JsonProperty)("certifiedBy"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"CertifiedBy",void 0);me.__decorate([(0,ge.JsonProperty)("certifierCredential"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"CertifierCredential",void 0);me.__decorate([(0,ge.JsonProperty)("certifierReport"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"CertifierReport",void 0);me.__decorate([(0,ge.JsonProperty)("conformsTo"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"ConformsTo",void 0);me.__decorate([(0,ge.JsonProperty)("@type"),me.__metadata("design:type",String)],Ve.prototype,"RDFType",void 0);me.__decorate([(0,ge.JsonProperty)("title"),me.__metadata("design:type",Object)],Ve.prototype,"Title",void 0);me.__decorate([(0,ge.JsonProperty)("subtitle"),me.__metadata("design:type",Object)],Ve.prototype,"SubTitle",void 0);me.__decorate([(0,ge.JsonProperty)("identifier"),me.__metadata("design:type",String)],Ve.prototype,"Identifier",void 0);me.__decorate([(0,ge.JsonProperty)("author"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Author",void 0);me.__decorate([(0,ge.JsonProperty)("translator"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Translator",void 0);me.__decorate([(0,ge.JsonProperty)("editor"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Editor",void 0);me.__decorate([(0,ge.JsonProperty)("artist"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Artist",void 0);me.__decorate([(0,ge.JsonProperty)("illustrator"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Illustrator",void 0);me.__decorate([(0,ge.JsonProperty)("letterer"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Letterer",void 0);me.__decorate([(0,ge.JsonProperty)("penciler"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Penciler",void 0);me.__decorate([(0,ge.JsonProperty)("colorist"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Colorist",void 0);me.__decorate([(0,ge.JsonProperty)("inker"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Inker",void 0);me.__decorate([(0,ge.JsonProperty)("narrator"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Narrator",void 0);me.__decorate([(0,ge.JsonProperty)("contributor"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Contributor",void 0);me.__decorate([(0,ge.JsonProperty)("publisher"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Publisher",void 0);me.__decorate([(0,ge.JsonProperty)("imprint"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Imprint",void 0);me.__decorate([(0,ge.JsonProperty)("language"),(0,ge.JsonElementType)(String),(0,ge.JsonConverter)(ei.JsonStringConverter),me.__metadata("design:type",Array)],Ve.prototype,"Language",void 0);me.__decorate([(0,ge.JsonProperty)("modified"),me.__metadata("design:type",Date)],Ve.prototype,"Modified",void 0);me.__decorate([(0,ge.JsonProperty)("published"),me.__metadata("design:type",Date)],Ve.prototype,"PublicationDate",void 0);me.__decorate([(0,ge.JsonProperty)("sortAs"),me.__metadata("design:type",String)],Ve.prototype,"SortAs2",void 0);me.__decorate([(0,ge.JsonProperty)("sort_as"),me.__metadata("design:type",Object)],Ve.prototype,"SortAs1",void 0);me.__decorate([(0,ge.JsonProperty)("description"),me.__metadata("design:type",String)],Ve.prototype,"Description",void 0);me.__decorate([(0,ge.JsonProperty)("readingProgression"),me.__metadata("design:type",String)],Ve.prototype,"Direction2",void 0);me.__decorate([(0,ge.JsonProperty)("direction"),me.__metadata("design:type",Object)],Ve.prototype,"Direction1",void 0);me.__decorate([(0,ge.JsonProperty)("belongsTo"),me.__metadata("design:type",oL.BelongsTo)],Ve.prototype,"BelongsTo2",void 0);me.__decorate([(0,ge.JsonProperty)("belongs_to"),me.__metadata("design:type",Object)],Ve.prototype,"BelongsTo1",void 0);me.__decorate([(0,ge.JsonProperty)("duration"),me.__metadata("design:type",Number)],Ve.prototype,"Duration",void 0);me.__decorate([(0,ge.JsonProperty)("numberOfPages"),me.__metadata("design:type",Number)],Ve.prototype,"NumberOfPages",void 0);me.__decorate([(0,ge.JsonProperty)("media-overlay"),me.__metadata("design:type",sL.MediaOverlay)],Ve.prototype,"MediaOverlay",void 0);me.__decorate([(0,ge.JsonProperty)("rights"),me.__metadata("design:type",String)],Ve.prototype,"Rights",void 0);me.__decorate([(0,ge.JsonProperty)("rendition"),me.__metadata("design:type",aL.Properties)],Ve.prototype,"Rendition",void 0);me.__decorate([(0,ge.JsonProperty)("source"),me.__metadata("design:type",String)],Ve.prototype,"Source",void 0);me.__decorate([(0,ge.JsonProperty)("subject"),(0,ge.JsonConverter)(cL.JsonSubjectConverter),(0,ge.JsonElementType)(lL.Subject),me.__metadata("design:type",Array)],Ve.prototype,"Subject",void 0);me.__decorate([(0,ge.OnDeserialized)(),me.__metadata("design:type",Function),me.__metadata("design:paramtypes",[]),me.__metadata("design:returntype",void 0)],Ve.prototype,"_OnDeserialized",null);Ve=me.__decorate([(0,ge.JsonObject)()],Ve);Oi.Metadata=Ve});var Vv=Y(vu=>{A();"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.Publication=void 0;var gt=Yr(),dL=_b(),Ot=Rn(),fL=_s(),hL=Gv(),lr=va(),pL=dL("r2:shared#models/publication"),gL="metadata",mL="links",yL="readingOrder",bL="spine",vL="resources",wL="toc",EL="page-list",SL="pageList",OL="landmarks",xL="loi",_L="loa",TL="lov",CL="lot",on=class{get Spine(){return this.Spine2?this.Spine2:this.Spine1}set Spine(t){t&&(this.Spine1=void 0,this.Spine2=t)}get PageList(){return this.PageList2?this.PageList2:this.PageList1}set PageList(t){t&&(this.PageList1=void 0,this.PageList2=t)}freeDestroy(){if(pL("freeDestroy: Publication"),this.Internal){let t=this.findFromInternal("zip");t&&t.Value.freeDestroy()}}findFromInternal(t){if(this.Internal){let n=this.Internal.find(r=>r.Name===t);if(n)return n}}AddToInternal(t,n){let r=this.findFromInternal(t);if(r)r.Value=n;else{this.Internal||(this.Internal=[]);let o={Name:t,Value:n};this.Internal.push(o)}}GetCover(){return this.searchLinkByRel("cover")}GetNavDoc(){return this.searchLinkByRel("contents")}searchLinkByRel(t){if(this.Resources){let n=this.Resources.find(r=>r.HasRel(t));if(n)return n}if(this.Spine){let n=this.Spine.find(r=>r.HasRel(t));if(n)return n}if(this.Links){let n=this.Links.find(r=>r.HasRel(t));if(n)return n}}AddLink(t,n,r,o){let a=new lr.Link;a.AddRels(n),a.setHrefDecoded(r),a.TypeLink=t,typeof o!="undefined"&&(a.Templated=o),this.Links||(this.Links=[]),this.Links.push(a)}_OnDeserialized(){this.Metadata||console.log("Publication.Metadata is not set!"),this.Spine||console.log("Publication.Spine/ReadingOrder is not set!")}};gt.__decorate([(0,Ot.JsonProperty)("@context"),(0,Ot.JsonElementType)(String),(0,Ot.JsonConverter)(fL.JsonStringConverter),gt.__metadata("design:type",Array)],on.prototype,"Context",void 0);gt.__decorate([(0,Ot.JsonProperty)(gL),gt.__metadata("design:type",hL.Metadata)],on.prototype,"Metadata",void 0);gt.__decorate([(0,Ot.JsonProperty)(mL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"Links",void 0);gt.__decorate([(0,Ot.JsonProperty)(yL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"Spine2",void 0);gt.__decorate([(0,Ot.JsonProperty)(bL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Object)],on.prototype,"Spine1",void 0);gt.__decorate([(0,Ot.JsonProperty)(vL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"Resources",void 0);gt.__decorate([(0,Ot.JsonProperty)(wL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"TOC",void 0);gt.__decorate([(0,Ot.JsonProperty)(SL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"PageList2",void 0);gt.__decorate([(0,Ot.JsonProperty)(EL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Object)],on.prototype,"PageList1",void 0);gt.__decorate([(0,Ot.JsonProperty)(OL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"Landmarks",void 0);gt.__decorate([(0,Ot.JsonProperty)(xL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"LOI",void 0);gt.__decorate([(0,Ot.JsonProperty)(_L),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"LOA",void 0);gt.__decorate([(0,Ot.JsonProperty)(TL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"LOV",void 0);gt.__decorate([(0,Ot.JsonProperty)(CL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"LOT",void 0);gt.__decorate([(0,Ot.OnDeserialized)(),gt.__metadata("design:type",Function),gt.__metadata("design:paramtypes",[]),gt.__metadata("design:returntype",void 0)],on.prototype,"_OnDeserialized",null);on=gt.__decorate([(0,Ot.JsonObject)()],on);vu.Publication=on});var tw=Y((U7,RL)=>{RL.exports={"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}});var tp=Y(_a=>{A();"use strict";var ML=_a&&_a.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(_a,"__esModule",{value:!0});var nw=ML(tw()),PL=String.fromCodePoint||function(i){var t="";return i>65535&&(i-=65536,t+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),t+=String.fromCharCode(i),t};function IL(i){return i>=55296&&i<=57343||i>1114111?"\uFFFD":(i in nw.default&&(i=nw.default[i]),PL(i))}_a.default=IL});var wu=Y((z7,LL)=>{LL.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
10
+ `)+" "+n[1]:n[0]+t+" "+i.join(", ")+" "+n[1]}ct.types=G1();function X1(i){return Array.isArray(i)}ct.isArray=X1;function Hh(i){return typeof i=="boolean"}ct.isBoolean=Hh;function Ac(i){return i===null}ct.isNull=Ac;function HP(i){return i==null}ct.isNullOrUndefined=HP;function Q1(i){return typeof i=="number"}ct.isNumber=Q1;function Rc(i){return typeof i=="string"}ct.isString=Rc;function jP(i){return typeof i=="symbol"}ct.isSymbol=jP;function Co(i){return i===void 0}ct.isUndefined=Co;function ya(i){return vs(i)&&jh(i)==="[object RegExp]"}ct.isRegExp=ya;ct.types.isRegExp=ya;function vs(i){return typeof i=="object"&&i!==null}ct.isObject=vs;function Mc(i){return vs(i)&&jh(i)==="[object Date]"}ct.isDate=Mc;ct.types.isDate=Mc;function ba(i){return vs(i)&&(jh(i)==="[object Error]"||i instanceof Error)}ct.isError=ba;ct.types.isNativeError=ba;function Pc(i){return typeof i=="function"}ct.isFunction=Pc;function DP(i){return i===null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||typeof i=="symbol"||typeof i=="undefined"}ct.isPrimitive=DP;ct.isBuffer=J1();function jh(i){return Object.prototype.toString.call(i)}function Dh(i){return i<10?"0"+i.toString(10):i.toString(10)}var FP=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function $P(){var i=new Date,t=[Dh(i.getHours()),Dh(i.getMinutes()),Dh(i.getSeconds())].join(":");return[i.getDate(),FP[i.getMonth()],t].join(" ")}ct.log=function(){console.log("%s - %s",$P(),ct.format.apply(ct,arguments))};ct.inherits=K1();ct._extend=function(i,t){if(!t||!vs(t))return i;for(var n=Object.keys(t),r=n.length;r--;)i[n[r]]=t[n[r]];return i};function eb(i,t){return Object.prototype.hasOwnProperty.call(i,t)}var Ao=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ct.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(Ao&&t[Ao]){var n=t[Ao];if(typeof n!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(n,Ao,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var r,o,a=new Promise(function(d,f){r=d,o=f}),l=[],u=0;u<arguments.length;u++)l.push(arguments[u]);l.push(function(d,f){d?o(d):r(f)});try{t.apply(this,l)}catch(d){o(d)}return a}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Ao&&Object.defineProperty(n,Ao,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,Y1(t))};ct.promisify.custom=Ao;function UP(i,t){if(!i){var n=new Error("Promise was rejected with a falsy value");n.reason=i,i=n}return t(i)}function qP(i){if(typeof i!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var o=n.pop();if(typeof o!="function")throw new TypeError("The last argument must be of type Function");var a=this,l=function(){return o.apply(a,arguments)};i.apply(this,n).then(function(u){j.nextTick(l.bind(null,null,u))},function(u){j.nextTick(UP.bind(null,u,l))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(i)),Object.defineProperties(t,Y1(i)),t}ct.callbackify=qP});var j,U,A=uM(()=>{j=zy(),U=Ic()});var Yr=Y((HN,kc)=>{A();var tb,nb,rb,ib,ob,sb,ab,lb,cb,Lc,Fh,ub,db,fb,ws,hb,pb,gb,mb,yb,bb,vb,wb,Bc;(function(i){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){i(n(t,n(r)))}):typeof kc=="object"&&typeof kc.exports=="object"?i(n(t,n(kc.exports))):i(n(t));function n(r,o){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(a,l){return r[a]=o?o(a,l):l}}})(function(i){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])};tb=function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function a(){this.constructor=r}r.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)},nb=Object.assign||function(r){for(var o,a=1,l=arguments.length;a<l;a++){o=arguments[a];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},rb=function(r,o){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.indexOf(l)<0&&(a[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(r);u<l.length;u++)o.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(r,l[u])&&(a[l[u]]=r[l[u]]);return a},ib=function(r,o,a,l){var u=arguments.length,d=u<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,a):l,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,o,a,l);else for(var m=r.length-1;m>=0;m--)(f=r[m])&&(d=(u<3?f(d):u>3?f(o,a,d):f(o,a))||d);return u>3&&d&&Object.defineProperty(o,a,d),d},ob=function(r,o){return function(a,l){o(a,l,r)}},sb=function(r,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,o)},ab=function(r,o,a,l){function u(d){return d instanceof a?d:new a(function(f){f(d)})}return new(a||(a=Promise))(function(d,f){function m(S){try{E(l.next(S))}catch(v){f(v)}}function p(S){try{E(l.throw(S))}catch(v){f(v)}}function E(S){S.done?d(S.value):u(S.value).then(m,p)}E((l=l.apply(r,o||[])).next())})},lb=function(r,o){var a={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},l,u,d,f;return f={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function m(E){return function(S){return p([E,S])}}function p(E){if(l)throw new TypeError("Generator is already executing.");for(;a;)try{if(l=1,u&&(d=E[0]&2?u.return:E[0]?u.throw||((d=u.return)&&d.call(u),0):u.next)&&!(d=d.call(u,E[1])).done)return d;switch(u=0,d&&(E=[E[0]&2,d.value]),E[0]){case 0:case 1:d=E;break;case 4:return a.label++,{value:E[1],done:!1};case 5:a.label++,u=E[1],E=[0];continue;case 7:E=a.ops.pop(),a.trys.pop();continue;default:if(d=a.trys,!(d=d.length>0&&d[d.length-1])&&(E[0]===6||E[0]===2)){a=0;continue}if(E[0]===3&&(!d||E[1]>d[0]&&E[1]<d[3])){a.label=E[1];break}if(E[0]===6&&a.label<d[1]){a.label=d[1],d=E;break}if(d&&a.label<d[2]){a.label=d[2],a.ops.push(E);break}d[2]&&a.ops.pop(),a.trys.pop();continue}E=o.call(r,a)}catch(S){E=[6,S],u=0}finally{l=d=0}if(E[0]&5)throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}},cb=function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&Bc(o,r,a)},Bc=Object.create?function(r,o,a,l){l===void 0&&(l=a),Object.defineProperty(r,l,{enumerable:!0,get:function(){return o[a]}})}:function(r,o,a,l){l===void 0&&(l=a),r[l]=o[a]},Lc=function(r){var o=typeof Symbol=="function"&&Symbol.iterator,a=o&&r[o],l=0;if(a)return a.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&l>=r.length&&(r=void 0),{value:r&&r[l++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Fh=function(r,o){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),u,d=[],f;try{for(;(o===void 0||o-- >0)&&!(u=l.next()).done;)d.push(u.value)}catch(m){f={error:m}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(f)throw f.error}}return d},ub=function(){for(var r=[],o=0;o<arguments.length;o++)r=r.concat(Fh(arguments[o]));return r},db=function(){for(var r=0,o=0,a=arguments.length;o<a;o++)r+=arguments[o].length;for(var l=Array(r),u=0,o=0;o<a;o++)for(var d=arguments[o],f=0,m=d.length;f<m;f++,u++)l[u]=d[f];return l},fb=function(r,o,a){if(a||arguments.length===2)for(var l=0,u=o.length,d;l<u;l++)(d||!(l in o))&&(d||(d=Array.prototype.slice.call(o,0,l)),d[l]=o[l]);return r.concat(d||Array.prototype.slice.call(o))},ws=function(r){return this instanceof ws?(this.v=r,this):new ws(r)},hb=function(r,o,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=a.apply(r,o||[]),u,d=[];return u={},f("next"),f("throw"),f("return"),u[Symbol.asyncIterator]=function(){return this},u;function f(y){l[y]&&(u[y]=function(b){return new Promise(function(w,O){d.push([y,b,w,O])>1||m(y,b)})})}function m(y,b){try{p(l[y](b))}catch(w){v(d[0][3],w)}}function p(y){y.value instanceof ws?Promise.resolve(y.value.v).then(E,S):v(d[0][2],y)}function E(y){m("next",y)}function S(y){m("throw",y)}function v(y,b){y(b),d.shift(),d.length&&m(d[0][0],d[0][1])}},pb=function(r){var o,a;return o={},l("next"),l("throw",function(u){throw u}),l("return"),o[Symbol.iterator]=function(){return this},o;function l(u,d){o[u]=r[u]?function(f){return(a=!a)?{value:ws(r[u](f)),done:u==="return"}:d?d(f):f}:d}},gb=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r[Symbol.asyncIterator],a;return o?o.call(r):(r=typeof Lc=="function"?Lc(r):r[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(d){a[d]=r[d]&&function(f){return new Promise(function(m,p){f=r[d](f),u(m,p,f.done,f.value)})}}function u(d,f,m,p){Promise.resolve(p).then(function(E){d({value:E,done:m})},f)}},mb=function(r,o){return Object.defineProperty?Object.defineProperty(r,"raw",{value:o}):r.raw=o,r};var n=Object.create?function(r,o){Object.defineProperty(r,"default",{enumerable:!0,value:o})}:function(r,o){r.default=o};yb=function(r){if(r&&r.__esModule)return r;var o={};if(r!=null)for(var a in r)a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)&&Bc(o,r,a);return n(o,r),o},bb=function(r){return r&&r.__esModule?r:{default:r}},vb=function(r,o,a,l){if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?r!==o||!l:!o.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?l:a==="a"?l.call(r):l?l.value:o.get(r)},wb=function(r,o,a,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?r!==o||!u:!o.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(r,a):u?u.value=a:o.set(r,a),a},i("__extends",tb),i("__assign",nb),i("__rest",rb),i("__decorate",ib),i("__param",ob),i("__metadata",sb),i("__awaiter",ab),i("__generator",lb),i("__exportStar",cb),i("__createBinding",Bc),i("__values",Lc),i("__read",Fh),i("__spread",ub),i("__spreadArrays",db),i("__spreadArray",fb),i("__await",ws),i("__asyncGenerator",hb),i("__asyncDelegator",pb),i("__asyncValues",gb),i("__makeTemplateObject",mb),i("__importStar",yb),i("__importDefault",bb),i("__classPrivateFieldGet",vb),i("__classPrivateFieldSet",wb)})});var Sb=Y((jN,Eb)=>{A();var Es=1e3,Ss=Es*60,Os=Ss*60,Ro=Os*24,zP=Ro*7,WP=Ro*365.25;Eb.exports=function(i,t){t=t||{};var n=typeof i;if(n==="string"&&i.length>0)return GP(i);if(n==="number"&&isFinite(i))return t.long?JP(i):VP(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function GP(i){if(i=String(i),!(i.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!!t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*WP;case"weeks":case"week":case"w":return n*zP;case"days":case"day":case"d":return n*Ro;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Os;case"minutes":case"minute":case"mins":case"min":case"m":return n*Ss;case"seconds":case"second":case"secs":case"sec":case"s":return n*Es;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function VP(i){var t=Math.abs(i);return t>=Ro?Math.round(i/Ro)+"d":t>=Os?Math.round(i/Os)+"h":t>=Ss?Math.round(i/Ss)+"m":t>=Es?Math.round(i/Es)+"s":i+"ms"}function JP(i){var t=Math.abs(i);return t>=Ro?Nc(i,t,Ro,"day"):t>=Os?Nc(i,t,Os,"hour"):t>=Ss?Nc(i,t,Ss,"minute"):t>=Es?Nc(i,t,Es,"second"):i+" ms"}function Nc(i,t,n,r){var o=t>=n*1.5;return Math.round(i/n)+" "+r+(o?"s":"")}});var xb=Y((DN,Ob)=>{A();function KP(i){n.debug=n,n.default=n,n.coerce=d,n.disable=a,n.enable=o,n.enabled=l,n.humanize=Sb(),n.destroy=f,Object.keys(i).forEach(m=>{n[m]=i[m]}),n.names=[],n.skips=[],n.formatters={};function t(m){let p=0;for(let E=0;E<m.length;E++)p=(p<<5)-p+m.charCodeAt(E),p|=0;return n.colors[Math.abs(p)%n.colors.length]}n.selectColor=t;function n(m){let p,E=null,S,v;function y(...b){if(!y.enabled)return;let w=y,O=Number(new Date),T=O-(p||O);w.diff=T,w.prev=p,w.curr=O,p=O,b[0]=n.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let C=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(I,D)=>{if(I==="%%")return"%";C++;let P=n.formatters[D];if(typeof P=="function"){let q=b[C];I=P.call(w,q),b.splice(C,1),C--}return I}),n.formatArgs.call(w,b),(w.log||n.log).apply(w,b)}return y.namespace=m,y.useColors=n.useColors(),y.color=n.selectColor(m),y.extend=r,y.destroy=n.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>E!==null?E:(S!==n.namespaces&&(S=n.namespaces,v=n.enabled(m)),v),set:b=>{E=b}}),typeof n.init=="function"&&n.init(y),y}function r(m,p){let E=n(this.namespace+(typeof p=="undefined"?":":p)+m);return E.log=this.log,E}function o(m){n.save(m),n.namespaces=m,n.names=[],n.skips=[];let p,E=(typeof m=="string"?m:"").split(/[\s,]+/),S=E.length;for(p=0;p<S;p++)!E[p]||(m=E[p].replace(/\*/g,".*?"),m[0]==="-"?n.skips.push(new RegExp("^"+m.slice(1)+"$")):n.names.push(new RegExp("^"+m+"$")))}function a(){let m=[...n.names.map(u),...n.skips.map(u).map(p=>"-"+p)].join(",");return n.enable(""),m}function l(m){if(m[m.length-1]==="*")return!0;let p,E;for(p=0,E=n.skips.length;p<E;p++)if(n.skips[p].test(m))return!1;for(p=0,E=n.names.length;p<E;p++)if(n.names[p].test(m))return!0;return!1}function u(m){return m.toString().substring(2,m.toString().length-2).replace(/\.\*\?$/,"*")}function d(m){return m instanceof Error?m.stack||m.message:m}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}Ob.exports=KP});var _b=Y((rr,Hc)=>{A();rr.formatArgs=ZP;rr.save=XP;rr.load=QP;rr.useColors=YP;rr.storage=eI();rr.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();rr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function YP(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function ZP(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+Hc.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;i.splice(1,0,t,"color: inherit");let n=0,r=0;i[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n))}),i.splice(r,0,t)}rr.log=console.debug||console.log||(()=>{});function XP(i){try{i?rr.storage.setItem("debug",i):rr.storage.removeItem("debug")}catch(t){}}function QP(){let i;try{i=rr.storage.getItem("debug")}catch(t){}return!i&&typeof j!="undefined"&&"env"in j&&(i=j.env.DEBUG),i}function eI(){try{return localStorage}catch(i){}}Hc.exports=xb()(rr);var{formatters:tI}=Hc.exports;tI.j=function(i){try{return JSON.stringify(i)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Cb=Y(Tb=>{A();"use strict";Object.defineProperty(Tb,"__esModule",{value:!0})});var Rb=Y(jc=>{A();"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.PropertyDefinition=void 0;var Ab=class{constructor(){this.array=!1,this.set=!1,this.readonly=!1,this.writeonly=!1}};jc.PropertyDefinition=Ab});var An=Y(un=>{A();"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getTypedInheritanceChain=un.getInheritanceChain=un.getDefinition=un.objectDefinitions=un.ObjectDefinition=void 0;var nI=Rb(),$h=class{constructor(){this.ctr=()=>{},this.beforeDeserialized=()=>{},this.onDeserialized=()=>{},this.properties=new Map}getProperty(t){let n=this.properties.get(t);return n||(n=new nI.PropertyDefinition,this.properties.set(t,n)),n}};un.ObjectDefinition=$h;un.objectDefinitions=new Map;function rI(i){let t=un.objectDefinitions.get(i);return t||(t=new $h,un.objectDefinitions.set(i,t)),t}un.getDefinition=rI;function Uh(i){if(!i)return[];let t=Object.getPrototypeOf(i);return[i.constructor].concat(Uh(t))}un.getInheritanceChain=Uh;function Mb(i){let t=[];return un.objectDefinitions.forEach((n,r)=>{Object.getPrototypeOf(r.prototype).constructor===i&&t.push([r,n])}),t}function Pb(i,t){let n=un.objectDefinitions.get(i),r=[];t&&n&&n.discriminatorProperty&&(r=r.concat(Mb(i)));let o;for(;r.length!==0&&!o;){let[l,u]=r.shift();if(u.hasOwnProperty("discriminatorValue")){if(t&&n&&u.discriminatorValue===t[n.discriminatorProperty]){if(u.hasOwnProperty("discriminatorProperty"))return Pb(l,t);o=l}}else r=r.concat(Mb(l))}o||(o=i);let a=new Set(Uh(Object.create(o.prototype)));return Array.from(a).filter(l=>un.objectDefinitions.has(l))}un.getTypedInheritanceChain=Pb});var Ib=Y(Dc=>{A();"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.JsonObject=void 0;var iI=An();function oI(){return function(i){iI.getDefinition(i)}}Dc.JsonObject=oI});var Bb=Y(()=>{A();var Lb;(function(i){(function(t){var n=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=o(i);typeof n.Reflect=="undefined"?n.Reflect=i:r=o(n.Reflect,r),t(r);function o(a,l){return function(u,d){typeof a[u]!="function"&&Object.defineProperty(a,u,{configurable:!0,writable:!0,value:d}),l&&l(u,d)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=r&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",a=r&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,d=!l&&!u,f={create:l?function(){return Ie(Object.create(null))}:u?function(){return Ie({__proto__:null})}:function(){return Ie({})},has:d?function(z,X){return n.call(z,X)}:function(z,X){return X in z},get:d?function(z,X){return n.call(z,X)?z[X]:void 0}:function(z,X){return z[X]}},m=Object.getPrototypeOf(Function),p=typeof j=="object"&&j.env&&j.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",E=!p&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:pe(),S=!p&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:le(),v=!p&&typeof WeakMap=="function"?WeakMap:_e(),y=new v;function b(z,X,oe,ve){if(ue(oe)){if(!Ft(z))throw new TypeError;if(!Et(X))throw new TypeError;return F(z,X)}else{if(!Ft(z))throw new TypeError;if(!Se(X))throw new TypeError;if(!Se(ve)&&!ue(ve)&&!xe(ve))throw new TypeError;return xe(ve)&&(ve=void 0),oe=bt(oe),k(z,X,oe,ve)}}t("decorate",b);function w(z,X){function oe(ve,Ce){if(!Se(ve))throw new TypeError;if(!ue(Ce)&&!On(Ce))throw new TypeError;fe(z,X,ve,Ce)}return oe}t("metadata",w);function O(z,X,oe,ve){if(!Se(oe))throw new TypeError;return ue(ve)||(ve=bt(ve)),fe(z,X,oe,ve)}t("defineMetadata",O);function T(z,X,oe){if(!Se(X))throw new TypeError;return ue(oe)||(oe=bt(oe)),N(z,X,oe)}t("hasMetadata",T);function C(z,X,oe){if(!Se(X))throw new TypeError;return ue(oe)||(oe=bt(oe)),W(z,X,oe)}t("hasOwnMetadata",C);function _(z,X,oe){if(!Se(X))throw new TypeError;return ue(oe)||(oe=bt(oe)),ye(z,X,oe)}t("getMetadata",_);function I(z,X,oe){if(!Se(X))throw new TypeError;return ue(oe)||(oe=bt(oe)),be(z,X,oe)}t("getOwnMetadata",I);function D(z,X){if(!Se(z))throw new TypeError;return ue(X)||(X=bt(X)),re(z,X)}t("getMetadataKeys",D);function P(z,X){if(!Se(z))throw new TypeError;return ue(X)||(X=bt(X)),he(z,X)}t("getOwnMetadataKeys",P);function q(z,X,oe){if(!Se(X))throw new TypeError;ue(oe)||(oe=bt(oe));var ve=B(X,oe,!1);if(ue(ve)||!ve.delete(z))return!1;if(ve.size>0)return!0;var Ce=y.get(X);return Ce.delete(oe),Ce.size>0||y.delete(X),!0}t("deleteMetadata",q);function F(z,X){for(var oe=z.length-1;oe>=0;--oe){var ve=z[oe],Ce=ve(X);if(!ue(Ce)&&!xe(Ce)){if(!Et(Ce))throw new TypeError;X=Ce}}return X}function k(z,X,oe,ve){for(var Ce=z.length-1;Ce>=0;--Ce){var ft=z[Ce],$e=ft(X,oe,ve);if(!ue($e)&&!xe($e)){if(!Se($e))throw new TypeError;ve=$e}}return ve}function B(z,X,oe){var ve=y.get(z);if(ue(ve)){if(!oe)return;ve=new E,y.set(z,ve)}var Ce=ve.get(X);if(ue(Ce)){if(!oe)return;Ce=new E,ve.set(X,Ce)}return Ce}function N(z,X,oe){var ve=W(z,X,oe);if(ve)return!0;var Ce=Oe(X);return xe(Ce)?!1:N(z,Ce,oe)}function W(z,X,oe){var ve=B(X,oe,!1);return ue(ve)?!1:ne(ve.has(z))}function ye(z,X,oe){var ve=W(z,X,oe);if(ve)return be(z,X,oe);var Ce=Oe(X);if(!xe(Ce))return ye(z,Ce,oe)}function be(z,X,oe){var ve=B(X,oe,!1);if(!ue(ve))return ve.get(z)}function fe(z,X,oe,ve){var Ce=B(oe,ve,!0);Ce.set(z,X)}function re(z,X){var oe=he(z,X),ve=Oe(z);if(ve===null)return oe;var Ce=re(ve,X);if(Ce.length<=0)return oe;if(oe.length<=0)return Ce;for(var ft=new S,$e=[],Ye=0,je=oe;Ye<je.length;Ye++){var Xe=je[Ye],et=ft.has(Xe);et||(ft.add(Xe),$e.push(Xe))}for(var kn=0,ho=Ce;kn<ho.length;kn++){var Xe=ho[kn],et=ft.has(Xe);et||(ft.add(Xe),$e.push(Xe))}return $e}function he(z,X){var oe=[],ve=B(z,X,!1);if(ue(ve))return oe;for(var Ce=ve.keys(),ft=It(Ce),$e=0;;){var Ye=zr(ft);if(!Ye)return oe.length=$e,oe;var je=Kt(Ye);try{oe[$e]=je}catch(Xe){try{xn(ft)}finally{throw Xe}}$e++}}function Ae(z){if(z===null)return 1;switch(typeof z){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return z===null?1:6;default:return 6}}function ue(z){return z===void 0}function xe(z){return z===null}function Re(z){return typeof z=="symbol"}function Se(z){return typeof z=="object"?z!==null:typeof z=="function"}function V(z,X){switch(Ae(z)){case 0:return z;case 1:return z;case 2:return z;case 3:return z;case 4:return z;case 5:return z}var oe=X===3?"string":X===5?"number":"default",ve=Bn(z,o);if(ve!==void 0){var Ce=ve.call(z,oe);if(Se(Ce))throw new TypeError;return Ce}return ee(z,oe==="default"?"number":oe)}function ee(z,X){if(X==="string"){var oe=z.toString;if(Mt(oe)){var ve=oe.call(z);if(!Se(ve))return ve}var Ce=z.valueOf;if(Mt(Ce)){var ve=Ce.call(z);if(!Se(ve))return ve}}else{var Ce=z.valueOf;if(Mt(Ce)){var ve=Ce.call(z);if(!Se(ve))return ve}var ft=z.toString;if(Mt(ft)){var ve=ft.call(z);if(!Se(ve))return ve}}throw new TypeError}function ne(z){return!!z}function ae(z){return""+z}function bt(z){var X=V(z,3);return Re(X)?X:ae(X)}function Ft(z){return Array.isArray?Array.isArray(z):z instanceof Object?z instanceof Array:Object.prototype.toString.call(z)==="[object Array]"}function Mt(z){return typeof z=="function"}function Et(z){return typeof z=="function"}function On(z){switch(Ae(z)){case 3:return!0;case 4:return!0;default:return!1}}function Bn(z,X){var oe=z[X];if(oe!=null){if(!Mt(oe))throw new TypeError;return oe}}function It(z){var X=Bn(z,a);if(!Mt(X))throw new TypeError;var oe=X.call(z);if(!Se(oe))throw new TypeError;return oe}function Kt(z){return z.value}function zr(z){var X=z.next();return X.done?!1:X}function xn(z){var X=z.return;X&&X.call(z)}function Oe(z){var X=Object.getPrototypeOf(z);if(typeof z!="function"||z===m||X!==m)return X;var oe=z.prototype,ve=oe&&Object.getPrototypeOf(oe);if(ve==null||ve===Object.prototype)return X;var Ce=ve.constructor;return typeof Ce!="function"||Ce===z?X:Ce}function pe(){var z={},X=[],oe=function(){function $e(Ye,je,Xe){this._index=0,this._keys=Ye,this._values=je,this._selector=Xe}return $e.prototype["@@iterator"]=function(){return this},$e.prototype[a]=function(){return this},$e.prototype.next=function(){var Ye=this._index;if(Ye>=0&&Ye<this._keys.length){var je=this._selector(this._keys[Ye],this._values[Ye]);return Ye+1>=this._keys.length?(this._index=-1,this._keys=X,this._values=X):this._index++,{value:je,done:!1}}return{value:void 0,done:!0}},$e.prototype.throw=function(Ye){throw this._index>=0&&(this._index=-1,this._keys=X,this._values=X),Ye},$e.prototype.return=function(Ye){return this._index>=0&&(this._index=-1,this._keys=X,this._values=X),{value:Ye,done:!0}},$e}();return function(){function $e(){this._keys=[],this._values=[],this._cacheKey=z,this._cacheIndex=-2}return Object.defineProperty($e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),$e.prototype.has=function(Ye){return this._find(Ye,!1)>=0},$e.prototype.get=function(Ye){var je=this._find(Ye,!1);return je>=0?this._values[je]:void 0},$e.prototype.set=function(Ye,je){var Xe=this._find(Ye,!0);return this._values[Xe]=je,this},$e.prototype.delete=function(Ye){var je=this._find(Ye,!1);if(je>=0){for(var Xe=this._keys.length,et=je+1;et<Xe;et++)this._keys[et-1]=this._keys[et],this._values[et-1]=this._values[et];return this._keys.length--,this._values.length--,Ye===this._cacheKey&&(this._cacheKey=z,this._cacheIndex=-2),!0}return!1},$e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=z,this._cacheIndex=-2},$e.prototype.keys=function(){return new oe(this._keys,this._values,ve)},$e.prototype.values=function(){return new oe(this._keys,this._values,Ce)},$e.prototype.entries=function(){return new oe(this._keys,this._values,ft)},$e.prototype["@@iterator"]=function(){return this.entries()},$e.prototype[a]=function(){return this.entries()},$e.prototype._find=function(Ye,je){return this._cacheKey!==Ye&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=Ye)),this._cacheIndex<0&&je&&(this._cacheIndex=this._keys.length,this._keys.push(Ye),this._values.push(void 0)),this._cacheIndex},$e}();function ve($e,Ye){return $e}function Ce($e,Ye){return Ye}function ft($e,Ye){return[$e,Ye]}}function le(){return function(){function z(){this._map=new E}return Object.defineProperty(z.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),z.prototype.has=function(X){return this._map.has(X)},z.prototype.add=function(X){return this._map.set(X,X),this},z.prototype.delete=function(X){return this._map.delete(X)},z.prototype.clear=function(){this._map.clear()},z.prototype.keys=function(){return this._map.keys()},z.prototype.values=function(){return this._map.values()},z.prototype.entries=function(){return this._map.entries()},z.prototype["@@iterator"]=function(){return this.keys()},z.prototype[a]=function(){return this.keys()},z}()}function _e(){var z=16,X=f.create(),oe=ve();return function(){function je(){this._key=ve()}return je.prototype.has=function(Xe){var et=Ce(Xe,!1);return et!==void 0?f.has(et,this._key):!1},je.prototype.get=function(Xe){var et=Ce(Xe,!1);return et!==void 0?f.get(et,this._key):void 0},je.prototype.set=function(Xe,et){var kn=Ce(Xe,!0);return kn[this._key]=et,this},je.prototype.delete=function(Xe){var et=Ce(Xe,!1);return et!==void 0?delete et[this._key]:!1},je.prototype.clear=function(){this._key=ve()},je}();function ve(){var je;do je="@@WeakMap@@"+Ye();while(f.has(X,je));return X[je]=!0,je}function Ce(je,Xe){if(!n.call(je,oe)){if(!Xe)return;Object.defineProperty(je,oe,{value:f.create()})}return je[oe]}function ft(je,Xe){for(var et=0;et<Xe;++et)je[et]=Math.random()*255|0;return je}function $e(je){return typeof Uint8Array=="function"?typeof crypto!="undefined"?crypto.getRandomValues(new Uint8Array(je)):typeof msCrypto!="undefined"?msCrypto.getRandomValues(new Uint8Array(je)):ft(new Uint8Array(je),je):ft(new Array(je),je)}function Ye(){var je=$e(z);je[6]=je[6]&79|64,je[8]=je[8]&191|128;for(var Xe="",et=0;et<z;++et){var kn=je[et];(et===4||et===6||et===8)&&(Xe+="-"),kn<16&&(Xe+="0"),Xe+=kn.toString(16).toLowerCase()}return Xe}}function Ie(z){return z.__=void 0,delete z.__,z}})})(Lb||(Lb={}))});var kb=Y(Fc=>{A();"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.JsonProperty=void 0;Bb();var sI=An();function aI(i){return function(t,n){let r=Reflect.getMetadata("design:type",t,n.toString()),o=sI.getDefinition(t.constructor).getProperty(n.toString());o.serializedName=i||n.toString(),o.array=r===Array,o.set=r===Set,!o.array&&!o.set&&!o.type&&(o.type=r)}}Fc.JsonProperty=aI});var Nb=Y($c=>{A();"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.JsonType=void 0;var lI=An();function cI(i){return function(t,n){let r=lI.getDefinition(t.constructor).getProperty(n.toString());r.type=i}}$c.JsonType=cI});var Hb=Y(Uc=>{A();"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.JsonElementType=void 0;var uI=An();function dI(i){return function(t,n){let r=uI.getDefinition(t.constructor).getProperty(n.toString());r.type=i}}Uc.JsonElementType=dI});var jb=Y(qc=>{A();"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.JsonConverter=void 0;var fI=An();function hI(i){return function(t,n){let r=fI.getDefinition(t.constructor).getProperty(n.toString());typeof i=="function"?r.converter=new i:r.converter=i}}qc.JsonConverter=hI});var Db=Y(zc=>{A();"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.JsonReadonly=void 0;var pI=An();function gI(){return function(i,t){let n=pI.getDefinition(i.constructor).getProperty(t.toString());n.readonly=!0}}zc.JsonReadonly=gI});var Fb=Y(Wc=>{A();"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.JsonWriteonly=void 0;var mI=An();function yI(){return function(i,t){let n=mI.getDefinition(i.constructor).getProperty(t.toString());n.writeonly=!0}}Wc.JsonWriteonly=yI});var $b=Y(Gc=>{A();"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.JsonDiscriminatorProperty=void 0;var bI=An();function vI(i){return function(t){bI.getDefinition(t).discriminatorProperty=i}}Gc.JsonDiscriminatorProperty=vI});var Ub=Y(Vc=>{A();"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.JsonDiscriminatorValue=void 0;var wI=An();function EI(i){return function(t){wI.getDefinition(t).discriminatorValue=i}}Vc.JsonDiscriminatorValue=EI});var qb=Y(Jc=>{A();"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.JsonConstructor=void 0;var SI=An();function OI(){return function(i,t){let n=SI.getDefinition(i.constructor);n.ctr=i[t.toString()]}}Jc.JsonConstructor=OI});var zb=Y(Kc=>{A();"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.BeforeDeserialized=void 0;var xI=An();function _I(){return function(i,t){let n=xI.getDefinition(i.constructor);n.beforeDeserialized=i[t.toString()]}}Kc.BeforeDeserialized=_I});var Wb=Y(Yc=>{A();"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.OnDeserialized=void 0;var TI=An();function CI(){return function(i,t){let n=TI.getDefinition(i.constructor);n.onDeserialized=i[t.toString()]}}Yc.OnDeserialized=CI});var Gb=Y(nn=>{A();"use strict";var AI=nn&&nn.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n),Object.defineProperty(i,r,{enumerable:!0,get:function(){return t[n]}})}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),Or=nn&&nn.__exportStar||function(i,t){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&AI(t,i,n)};Object.defineProperty(nn,"__esModule",{value:!0});Or(Ib(),nn);Or(kb(),nn);Or(Nb(),nn);Or(Hb(),nn);Or(jb(),nn);Or(Db(),nn);Or(Fb(),nn);Or($b(),nn);Or(Ub(),nn);Or(qb(),nn);Or(zb(),nn);Or(Wb(),nn)});var qh=Y(Zc=>{A();"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.DateConverter=void 0;var Vb=class{serialize(t){return t.toString()}deserialize(t){return new Date(t)}collapseArrayWithSingleItem(){return!1}};Zc.DateConverter=Vb});var zh=Y(Xc=>{A();"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.BufferConverter=void 0;var Jb=class{constructor(t="json"){this._encoding=t}serialize(t){return this._encoding==="json"?t.toJSON():t.toString(this._encoding)}deserialize(t){return this._encoding==="json"?Buffer.from(t.data):Buffer.from(t,this._encoding)}collapseArrayWithSingleItem(){return!1}};Xc.BufferConverter=Jb});var Qc=Y(xs=>{A();"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.propertyConverters=void 0;var RI=qh(),MI=zh();xs.propertyConverters=new Map;typeof window=="undefined"&&xs.propertyConverters.set(Buffer,new MI.BufferConverter);xs.propertyConverters.set(Date,new RI.DateConverter)});var Kb=Y(wi=>{A();"use strict";var PI=wi&&wi.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n),Object.defineProperty(i,r,{enumerable:!0,get:function(){return t[n]}})}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),Wh=wi&&wi.__exportStar||function(i,t){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&PI(t,i,n)};Object.defineProperty(wi,"__esModule",{value:!0});Wh(Qc(),wi);Wh(zh(),wi);Wh(qh(),wi)});var tv=Y(eu=>{A();"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.serialize=void 0;var Yb=Ic(),Zb=Qc(),Gh=An();function Vh(i,t,n={keyToPreserveUnknownJSON:void 0}){return i.constructor===Array?i.map(r=>Xb(r,t,n)):Xb(i,t,n)}eu.serialize=Vh;function Xb(i,t=Object.getPrototypeOf(i).constructor,n){let r=Gh.getTypedInheritanceChain(t);if(r.length===0)return i;let o=r.map(l=>Gh.objectDefinitions.get(l)).filter(l=>!!l),a={};if(o.forEach(l=>{l.properties.forEach((u,d)=>{if(!u.type)throw new Error(`Cannot serialize property '${d}' without type!`);let f=i[d];if(!(f==null||u.writeonly)){if(u.set){a[u.serializedName]=Qb(Array.from(f||[]),u,n);return}if(u.array){a[u.serializedName]=Qb(f,u,n);return}a[u.serializedName]=ev(f,u,n)}})}),n.keyToPreserveUnknownJSON){let l=n.keyToPreserveUnknownJSON;if(i[l]){let u=Object.keys(i[l]);for(let d of u)if(i[l].hasOwnProperty(d)){let f;o.forEach(m=>{m.properties.forEach((p,E)=>{!f&&d===p.serializedName&&(f=p)})}),f||(typeof a[d]!="undefined"&&(console.log(`???!!! TAJSON keyToPreserveUnknownJSON already serialized?! ${l}.${d}`),console.log(Yb.inspect(a[d],{showHidden:!1,depth:1e3,colors:!0,customInspect:!1})),a[d]!==i[l][d]&&(console.log(`???!!! TAJSON keyToPreserveUnknownJSON already serialized DIFF?! ${l}.${d}`),console.log(Yb.inspect(i[l][d],{showHidden:!1,depth:1e3,colors:!0,customInspect:!1})))),a[d]=i[l][d])}}}return a}function Qb(i,t,n){let r=i.map(o=>ev(o,t,n));if(r.length===1){let o=t.converter||Zb.propertyConverters.get(t.type);if(o&&o.collapseArrayWithSingleItem())return r[0]}return r}function ev(i,t,n){let r=t.type===String||t.type===Boolean||t.type===Number,o=i,a=t.converter||Zb.propertyConverters.get(t.type);return a?a.serialize(o):!r&&Gh.objectDefinitions.get(t.type)?o instanceof t.type?Vh(o,void 0,n):Vh(o,t.type,n):o}});var sv=Y(nu=>{A();"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.deserialize=void 0;var II=Ic(),tu=An(),nv=Qc();function rv(i,t,n={runConstructor:!1,keyToPreserveUnknownJSON:void 0}){return i&&i.constructor===Array?i.map(r=>iv(r,t,n)):iv(i,t,n)}nu.deserialize=rv;function iv(i,t=Object,n){if(!tu.objectDefinitions.has(t))return i;let r=i,[o,...a]=tu.getTypedInheritanceChain(t,r),l=Object.create(o.prototype),u=[...a.reverse(),o].map(d=>tu.objectDefinitions.get(d)).filter(d=>!!d);if(u.forEach(d=>{n.runConstructor&&d.ctr.call(l),d.beforeDeserialized.call(l),d.properties.forEach((f,m)=>{if(!f.type)throw new Error(`Cannot deserialize property '${m}' without type!`);let p=r[f.serializedName];if(!(p==null||f.readonly)){if(f.array||f.set){l[m]=LI(p,f,n),f.set&&(l[m]=new Set(l[m]));return}l[m]=ov(p,f,n)}}),d.onDeserialized.call(l)}),n.keyToPreserveUnknownJSON){let d=n.keyToPreserveUnknownJSON;Object.keys(r).forEach(f=>{if(r.hasOwnProperty(f)){let m;u.forEach(p=>{p.properties.forEach((E,S)=>{!m&&f===E.serializedName&&(m=E)}),m?l[d]&&typeof l[d][f]!="undefined"&&delete l[d][f]:(l[d]||(l[d]={}),typeof l[d][f]!="undefined"&&l[d][f]!==r[f]&&(console.log(`???!!! TAJSON keyToPreserveUnknownJSON already deserialized DIFF?! ${d}.${f}`),console.log(II.inspect(r[f],{showHidden:!1,depth:1e3,colors:!0,customInspect:!1}))),l[d][f]=r[f])})}}),l[d]&&!Object.keys(l[d]).length&&delete l[d]}return l}function LI(i,t,n){let r=t.converter||nv.propertyConverters.get(t.type);return(i instanceof Array?i:r&&r.collapseArrayWithSingleItem()?[i]:i).map(a=>ov(a,t,n))}function ov(i,t,n){let r=t.type===String||t.type===Boolean||t.type===Number,o=i,a=t.converter||nv.propertyConverters.get(t.type);return a?a.deserialize(o):!r&&tu.objectDefinitions.get(t.type)?rv(o,t.type,n):o}});var lv=Y(ru=>{A();"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.TaJson=void 0;var BI=tv(),kI=sv(),av=class{static deserialize(t,n,r){return kI.deserialize(t,n,r)}static parse(t,n,r){return this.deserialize(JSON.parse(t),n,r)}static serialize(t,n){return BI.serialize(t,void 0,n)}static stringify(t,n){return JSON.stringify(this.serialize(t,n))}};ru.TaJson=av});var Rn=Y(ir=>{A();"use strict";var NI=ir&&ir.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n),Object.defineProperty(i,r,{enumerable:!0,get:function(){return t[n]}})}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),Jh=ir&&ir.__exportStar||function(i,t){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&NI(t,i,n)};Object.defineProperty(ir,"__esModule",{value:!0});ir.TaJson=ir.JSON=void 0;Jh(Cb(),ir);Jh(Gb(),ir);Jh(Kb(),ir);var cv=lv();Object.defineProperty(ir,"JSON",{enumerable:!0,get:function(){return cv.TaJson}});Object.defineProperty(ir,"TaJson",{enumerable:!0,get:function(){return cv.TaJson}})});var _s=Y(iu=>{A();"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.JsonStringConverter=void 0;var uv=class{serialize(t){return t}deserialize(t){return t}collapseArrayWithSingleItem(){return!0}};iu.JsonStringConverter=uv});var dv=Y(ou=>{A();"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.tryDecodeURI=void 0;function HI(i){if(!i)return null;try{return decodeURIComponent(i)}catch(t){console.log(i),console.log(t)}return i}ou.tryDecodeURI=HI});var Iv=Y((p7,lu)=>{A();var fv,hv,pv,gv,mv,yv,bv,vv,wv,su,Kh,Ev,Sv,Ov,Ts,xv,_v,Tv,Cv,Av,Rv,Mv,Pv,au;(function(i){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){i(n(t,n(r)))}):typeof lu=="object"&&typeof lu.exports=="object"?i(n(t,n(lu.exports))):i(n(t));function n(r,o){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(a,l){return r[a]=o?o(a,l):l}}})(function(i){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])};fv=function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(r,o);function a(){this.constructor=r}r.prototype=o===null?Object.create(o):(a.prototype=o.prototype,new a)},hv=Object.assign||function(r){for(var o,a=1,l=arguments.length;a<l;a++){o=arguments[a];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(r[u]=o[u])}return r},pv=function(r,o){var a={};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&o.indexOf(l)<0&&(a[l]=r[l]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(r);u<l.length;u++)o.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(r,l[u])&&(a[l[u]]=r[l[u]]);return a},gv=function(r,o,a,l){var u=arguments.length,d=u<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,a):l,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(r,o,a,l);else for(var m=r.length-1;m>=0;m--)(f=r[m])&&(d=(u<3?f(d):u>3?f(o,a,d):f(o,a))||d);return u>3&&d&&Object.defineProperty(o,a,d),d},mv=function(r,o){return function(a,l){o(a,l,r)}},yv=function(r,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,o)},bv=function(r,o,a,l){function u(d){return d instanceof a?d:new a(function(f){f(d)})}return new(a||(a=Promise))(function(d,f){function m(S){try{E(l.next(S))}catch(v){f(v)}}function p(S){try{E(l.throw(S))}catch(v){f(v)}}function E(S){S.done?d(S.value):u(S.value).then(m,p)}E((l=l.apply(r,o||[])).next())})},vv=function(r,o){var a={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},l,u,d,f;return f={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function m(E){return function(S){return p([E,S])}}function p(E){if(l)throw new TypeError("Generator is already executing.");for(;a;)try{if(l=1,u&&(d=E[0]&2?u.return:E[0]?u.throw||((d=u.return)&&d.call(u),0):u.next)&&!(d=d.call(u,E[1])).done)return d;switch(u=0,d&&(E=[E[0]&2,d.value]),E[0]){case 0:case 1:d=E;break;case 4:return a.label++,{value:E[1],done:!1};case 5:a.label++,u=E[1],E=[0];continue;case 7:E=a.ops.pop(),a.trys.pop();continue;default:if(d=a.trys,!(d=d.length>0&&d[d.length-1])&&(E[0]===6||E[0]===2)){a=0;continue}if(E[0]===3&&(!d||E[1]>d[0]&&E[1]<d[3])){a.label=E[1];break}if(E[0]===6&&a.label<d[1]){a.label=d[1],d=E;break}if(d&&a.label<d[2]){a.label=d[2],a.ops.push(E);break}d[2]&&a.ops.pop(),a.trys.pop();continue}E=o.call(r,a)}catch(S){E=[6,S],u=0}finally{l=d=0}if(E[0]&5)throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}},wv=function(r,o){for(var a in r)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&au(o,r,a)},au=Object.create?function(r,o,a,l){l===void 0&&(l=a),Object.defineProperty(r,l,{enumerable:!0,get:function(){return o[a]}})}:function(r,o,a,l){l===void 0&&(l=a),r[l]=o[a]},su=function(r){var o=typeof Symbol=="function"&&Symbol.iterator,a=o&&r[o],l=0;if(a)return a.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&l>=r.length&&(r=void 0),{value:r&&r[l++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},Kh=function(r,o){var a=typeof Symbol=="function"&&r[Symbol.iterator];if(!a)return r;var l=a.call(r),u,d=[],f;try{for(;(o===void 0||o-- >0)&&!(u=l.next()).done;)d.push(u.value)}catch(m){f={error:m}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(f)throw f.error}}return d},Ev=function(){for(var r=[],o=0;o<arguments.length;o++)r=r.concat(Kh(arguments[o]));return r},Sv=function(){for(var r=0,o=0,a=arguments.length;o<a;o++)r+=arguments[o].length;for(var l=Array(r),u=0,o=0;o<a;o++)for(var d=arguments[o],f=0,m=d.length;f<m;f++,u++)l[u]=d[f];return l},Ov=function(r,o,a){if(a||arguments.length===2)for(var l=0,u=o.length,d;l<u;l++)(d||!(l in o))&&(d||(d=Array.prototype.slice.call(o,0,l)),d[l]=o[l]);return r.concat(d||Array.prototype.slice.call(o))},Ts=function(r){return this instanceof Ts?(this.v=r,this):new Ts(r)},xv=function(r,o,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=a.apply(r,o||[]),u,d=[];return u={},f("next"),f("throw"),f("return"),u[Symbol.asyncIterator]=function(){return this},u;function f(y){l[y]&&(u[y]=function(b){return new Promise(function(w,O){d.push([y,b,w,O])>1||m(y,b)})})}function m(y,b){try{p(l[y](b))}catch(w){v(d[0][3],w)}}function p(y){y.value instanceof Ts?Promise.resolve(y.value.v).then(E,S):v(d[0][2],y)}function E(y){m("next",y)}function S(y){m("throw",y)}function v(y,b){y(b),d.shift(),d.length&&m(d[0][0],d[0][1])}},_v=function(r){var o,a;return o={},l("next"),l("throw",function(u){throw u}),l("return"),o[Symbol.iterator]=function(){return this},o;function l(u,d){o[u]=r[u]?function(f){return(a=!a)?{value:Ts(r[u](f)),done:u==="return"}:d?d(f):f}:d}},Tv=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r[Symbol.asyncIterator],a;return o?o.call(r):(r=typeof su=="function"?su(r):r[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(d){a[d]=r[d]&&function(f){return new Promise(function(m,p){f=r[d](f),u(m,p,f.done,f.value)})}}function u(d,f,m,p){Promise.resolve(p).then(function(E){d({value:E,done:m})},f)}},Cv=function(r,o){return Object.defineProperty?Object.defineProperty(r,"raw",{value:o}):r.raw=o,r};var n=Object.create?function(r,o){Object.defineProperty(r,"default",{enumerable:!0,value:o})}:function(r,o){r.default=o};Av=function(r){if(r&&r.__esModule)return r;var o={};if(r!=null)for(var a in r)a!=="default"&&Object.prototype.hasOwnProperty.call(r,a)&&au(o,r,a);return n(o,r),o},Rv=function(r){return r&&r.__esModule?r:{default:r}},Mv=function(r,o,a,l){if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?r!==o||!l:!o.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?l:a==="a"?l.call(r):l?l.value:o.get(r)},Pv=function(r,o,a,l,u){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?r!==o||!u:!o.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?u.call(r,a):u?u.value=a:o.set(r,a),a},i("__extends",fv),i("__assign",hv),i("__rest",pv),i("__decorate",gv),i("__param",mv),i("__metadata",yv),i("__awaiter",bv),i("__generator",vv),i("__exportStar",wv),i("__createBinding",au),i("__values",su),i("__read",Kh),i("__spread",Ev),i("__spreadArrays",Sv),i("__spreadArray",Ov),i("__await",Ts),i("__asyncGenerator",xv),i("__asyncDelegator",_v),i("__asyncValues",Tv),i("__makeTemplateObject",Cv),i("__importStar",Av),i("__importDefault",Rv),i("__classPrivateFieldGet",Mv),i("__classPrivateFieldSet",Pv)})});var Lv=Y(cu=>{A();"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.Encrypted=void 0;var or=Iv(),Mo=Rn(),Ei=class{constructor(){this.DecryptedLengthBeforeInflate=-1,this.CypherBlockPadding=-1}get OriginalLength(){return typeof this.OriginalLength2!="undefined"?this.OriginalLength2:this.OriginalLength1}set OriginalLength(t){typeof t!="undefined"&&(this.OriginalLength1=void 0,this.OriginalLength2=t)}};(0,or.__decorate)([(0,Mo.JsonProperty)("scheme"),(0,or.__metadata)("design:type",String)],Ei.prototype,"Scheme",void 0);(0,or.__decorate)([(0,Mo.JsonProperty)("profile"),(0,or.__metadata)("design:type",String)],Ei.prototype,"Profile",void 0);(0,or.__decorate)([(0,Mo.JsonProperty)("algorithm"),(0,or.__metadata)("design:type",String)],Ei.prototype,"Algorithm",void 0);(0,or.__decorate)([(0,Mo.JsonProperty)("compression"),(0,or.__metadata)("design:type",String)],Ei.prototype,"Compression",void 0);(0,or.__decorate)([(0,Mo.JsonProperty)("originalLength"),(0,or.__metadata)("design:type",Number)],Ei.prototype,"OriginalLength2",void 0);(0,or.__decorate)([(0,Mo.JsonProperty)("original-length"),(0,or.__metadata)("design:type",Object)],Ei.prototype,"OriginalLength1",void 0);Ei=(0,or.__decorate)([(0,Mo.JsonObject)()],Ei);cu.Encrypted=Ei});var Yh=Y(Jt=>{A();"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.Properties=Jt.PropertiesSupportedKeys=Jt.SpreadEnum=Jt.PageEnum=Jt.OverflowEnum=Jt.OrientationEnum=Jt.LayoutEnum=void 0;var dn=Yr(),Zr=Rn(),jI=Lv(),DI;(function(i){i.Fixed="fixed",i.Reflowable="reflowable"})(DI=Jt.LayoutEnum||(Jt.LayoutEnum={}));var FI;(function(i){i.Auto="auto",i.Landscape="landscape",i.Portrait="portrait"})(FI=Jt.OrientationEnum||(Jt.OrientationEnum={}));var $I;(function(i){i.Auto="auto",i.Paginated="paginated",i.Scrolled="scrolled",i.ScrolledContinuous="scrolled-continuous"})($I=Jt.OverflowEnum||(Jt.OverflowEnum={}));var UI;(function(i){i.Left="left",i.Right="right",i.Center="center"})(UI=Jt.PageEnum||(Jt.PageEnum={}));var qI;(function(i){i.Auto="auto",i.Both="both",i.None="none",i.Landscape="landscape"})(qI=Jt.SpreadEnum||(Jt.SpreadEnum={}));Jt.PropertiesSupportedKeys=["contains","layout","orientation","overflow","page","spread","encrypted","media-overlay"];var Nr=class{};dn.__decorate([(0,Zr.JsonProperty)("contains"),(0,Zr.JsonElementType)(String),dn.__metadata("design:type",Array)],Nr.prototype,"Contains",void 0);dn.__decorate([(0,Zr.JsonProperty)("layout"),dn.__metadata("design:type",String)],Nr.prototype,"Layout",void 0);dn.__decorate([(0,Zr.JsonProperty)("orientation"),dn.__metadata("design:type",String)],Nr.prototype,"Orientation",void 0);dn.__decorate([(0,Zr.JsonProperty)("overflow"),dn.__metadata("design:type",String)],Nr.prototype,"Overflow",void 0);dn.__decorate([(0,Zr.JsonProperty)("page"),dn.__metadata("design:type",String)],Nr.prototype,"Page",void 0);dn.__decorate([(0,Zr.JsonProperty)("spread"),dn.__metadata("design:type",String)],Nr.prototype,"Spread",void 0);dn.__decorate([(0,Zr.JsonProperty)("encrypted"),dn.__metadata("design:type",jI.Encrypted)],Nr.prototype,"Encrypted",void 0);dn.__decorate([(0,Zr.JsonProperty)("media-overlay"),dn.__metadata("design:type",String)],Nr.prototype,"MediaOverlay",void 0);Nr=dn.__decorate([(0,Zr.JsonObject)()],Nr);Jt.Properties=Nr});var va=Y(du=>{A();"use strict";var uu;Object.defineProperty(du,"__esModule",{value:!0});du.Link=void 0;var _t=Yr(),rn=Rn(),zI=_s(),WI=dv(),GI=Yh(),VI="properties",JI="children",KI="alternate",bn=uu=class{get Href(){return this.Href1}set Href(t){this.Href1=t,this._urlDecoded=void 0}get HrefDecoded(){if(this._urlDecoded)return this._urlDecoded;if(this._urlDecoded!==null){if(!this.Href){this._urlDecoded=null;return}return this._urlDecoded=(0,WI.tryDecodeURI)(this.Href),this._urlDecoded?this._urlDecoded:void 0}}set HrefDecoded(t){this._urlDecoded=t}setHrefDecoded(t){this.Href=t,this.HrefDecoded=t}AddRels(t){t.forEach(n=>{this.AddRel(n)})}AddRel(t){this.HasRel(t)||(this.Rel?this.Rel.push(t):this.Rel=[t])}HasRel(t){return this.Rel&&this.Rel.indexOf(t)>=0}_OnDeserialized(){!this.Href&&(!this.Children||!this.Children.length)&&console.log("Link.Href is not set! (and no child Links)")}};_t.__decorate([(0,rn.JsonProperty)("type"),_t.__metadata("design:type",String)],bn.prototype,"TypeLink",void 0);_t.__decorate([(0,rn.JsonProperty)("height"),_t.__metadata("design:type",Number)],bn.prototype,"Height",void 0);_t.__decorate([(0,rn.JsonProperty)("width"),_t.__metadata("design:type",Number)],bn.prototype,"Width",void 0);_t.__decorate([(0,rn.JsonProperty)("title"),_t.__metadata("design:type",String)],bn.prototype,"Title",void 0);_t.__decorate([(0,rn.JsonProperty)(VI),_t.__metadata("design:type",GI.Properties)],bn.prototype,"Properties",void 0);_t.__decorate([(0,rn.JsonProperty)("duration"),_t.__metadata("design:type",Number)],bn.prototype,"Duration",void 0);_t.__decorate([(0,rn.JsonProperty)("bitrate"),_t.__metadata("design:type",Number)],bn.prototype,"Bitrate",void 0);_t.__decorate([(0,rn.JsonProperty)("templated"),_t.__metadata("design:type",Boolean)],bn.prototype,"Templated",void 0);_t.__decorate([(0,rn.JsonProperty)(JI),(0,rn.JsonElementType)(uu),_t.__metadata("design:type",Array)],bn.prototype,"Children",void 0);_t.__decorate([(0,rn.JsonProperty)(KI),(0,rn.JsonElementType)(uu),_t.__metadata("design:type",Array)],bn.prototype,"Alternate",void 0);_t.__decorate([(0,rn.JsonProperty)("rel"),(0,rn.JsonConverter)(zI.JsonStringConverter),(0,rn.JsonElementType)(String),_t.__metadata("design:type",Array)],bn.prototype,"Rel",void 0);_t.__decorate([(0,rn.JsonProperty)("href"),_t.__metadata("design:type",String)],bn.prototype,"Href1",void 0);_t.__decorate([(0,rn.OnDeserialized)(),_t.__metadata("design:type",Function),_t.__metadata("design:paramtypes",[]),_t.__metadata("design:returntype",void 0)],bn.prototype,"_OnDeserialized",null);bn=uu=_t.__decorate([(0,rn.JsonObject)()],bn);du.Link=bn});var hu=Y(fu=>{A();"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.Contributor=void 0;var Xt=Yr(),xr=Rn(),YI=_s(),ZI=va(),XI="links",Hr=class{get SortAs(){return this.SortAs2?this.SortAs2:this.SortAs1}set SortAs(t){t&&(this.SortAs1=void 0,this.SortAs2=t)}_OnDeserialized(){this.Name||console.log("Contributor.Name is not set!")}};Xt.__decorate([(0,xr.JsonProperty)("name"),Xt.__metadata("design:type",Object)],Hr.prototype,"Name",void 0);Xt.__decorate([(0,xr.JsonProperty)("sortAs"),Xt.__metadata("design:type",String)],Hr.prototype,"SortAs2",void 0);Xt.__decorate([(0,xr.JsonProperty)("sort_as"),Xt.__metadata("design:type",Object)],Hr.prototype,"SortAs1",void 0);Xt.__decorate([(0,xr.JsonProperty)("role"),(0,xr.JsonConverter)(YI.JsonStringConverter),(0,xr.JsonElementType)(String),Xt.__metadata("design:type",Array)],Hr.prototype,"Role",void 0);Xt.__decorate([(0,xr.JsonProperty)("identifier"),Xt.__metadata("design:type",String)],Hr.prototype,"Identifier",void 0);Xt.__decorate([(0,xr.JsonProperty)("position"),Xt.__metadata("design:type",Number)],Hr.prototype,"Position",void 0);Xt.__decorate([(0,xr.JsonProperty)(XI),(0,xr.JsonElementType)(ZI.Link),Xt.__metadata("design:type",Array)],Hr.prototype,"Links",void 0);Xt.__decorate([(0,xr.OnDeserialized)(),Xt.__metadata("design:type",Function),Xt.__metadata("design:paramtypes",[]),Xt.__metadata("design:returntype",void 0)],Hr.prototype,"_OnDeserialized",null);Hr=Xt.__decorate([(0,xr.JsonObject)()],Hr);fu.Contributor=Hr});var Zh=Y(Xr=>{A();"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.TaJsonSerialize=Xr.TaJsonDeserialize=Xr.KeyToPreserveUnknownJSON=void 0;var Bv=Rn();Xr.KeyToPreserveUnknownJSON="AdditionalJSON";function QI(i,t){return Bv.JSON.deserialize(i,t,{keyToPreserveUnknownJSON:Xr.KeyToPreserveUnknownJSON})}Xr.TaJsonDeserialize=QI;function eL(i){return Bv.JSON.serialize(i,{keyToPreserveUnknownJSON:Xr.KeyToPreserveUnknownJSON})}Xr.TaJsonSerialize=eL});var Xh=Y(pu=>{A();"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.JsonContributorConverter=void 0;var kv=Zh(),Nv=hu(),Hv=class{serialize(t){return t.Name&&!t.SortAs&&(!t.Role||!t.Role.length)&&!t.Identifier&&typeof t.Position=="undefined"&&(!t.Links||!t.Links.length)&&typeof t.Name=="string"?t.Name:(0,kv.TaJsonSerialize)(t)}deserialize(t){if(typeof t=="string"){let n=new Nv.Contributor;return n.Name=t,n}return(0,kv.TaJsonDeserialize)(t,Nv.Contributor)}collapseArrayWithSingleItem(){return!0}};pu.JsonContributorConverter=Hv});var Fv=Y(gu=>{A();"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.BelongsTo=void 0;var wa=Yr(),Po=Rn(),jv=hu(),Dv=Xh(),tL="series",nL="collection",Ea=class{};wa.__decorate([(0,Po.JsonProperty)(tL),(0,Po.JsonElementType)(jv.Contributor),(0,Po.JsonConverter)(Dv.JsonContributorConverter),wa.__metadata("design:type",Array)],Ea.prototype,"Series",void 0);wa.__decorate([(0,Po.JsonProperty)(nL),(0,Po.JsonElementType)(jv.Contributor),(0,Po.JsonConverter)(Dv.JsonContributorConverter),wa.__metadata("design:type",Array)],Ea.prototype,"Collection",void 0);Ea=wa.__decorate([(0,Po.JsonObject)()],Ea);gu.BelongsTo=Ea});var $v=Y(mu=>{A();"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.MediaOverlay=void 0;var Sa=Yr(),Qh=Rn(),Oa=class{};Sa.__decorate([(0,Qh.JsonProperty)("active-class"),Sa.__metadata("design:type",String)],Oa.prototype,"ActiveClass",void 0);Sa.__decorate([(0,Qh.JsonProperty)("playback-active-class"),Sa.__metadata("design:type",String)],Oa.prototype,"PlaybackActiveClass",void 0);Oa=Sa.__decorate([(0,Qh.JsonObject)()],Oa);mu.MediaOverlay=Oa});var ep=Y(yu=>{A();"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.Subject=void 0;var fn=Yr(),Si=Rn(),rL=va(),iL="links",Qr=class{get SortAs(){return this.SortAs2?this.SortAs2:this.SortAs1}set SortAs(t){t&&(this.SortAs1=void 0,this.SortAs2=t)}_OnDeserialized(){this.Name||console.log("Subject.Name is not set!")}};fn.__decorate([(0,Si.JsonProperty)("name"),fn.__metadata("design:type",Object)],Qr.prototype,"Name",void 0);fn.__decorate([(0,Si.JsonProperty)("sortAs"),fn.__metadata("design:type",String)],Qr.prototype,"SortAs2",void 0);fn.__decorate([(0,Si.JsonProperty)("sort_as"),fn.__metadata("design:type",Object)],Qr.prototype,"SortAs1",void 0);fn.__decorate([(0,Si.JsonProperty)("scheme"),fn.__metadata("design:type",String)],Qr.prototype,"Scheme",void 0);fn.__decorate([(0,Si.JsonProperty)("code"),fn.__metadata("design:type",String)],Qr.prototype,"Code",void 0);fn.__decorate([(0,Si.JsonProperty)(iL),(0,Si.JsonElementType)(rL.Link),fn.__metadata("design:type",Array)],Qr.prototype,"Links",void 0);fn.__decorate([(0,Si.OnDeserialized)(),fn.__metadata("design:type",Function),fn.__metadata("design:paramtypes",[]),fn.__metadata("design:returntype",void 0)],Qr.prototype,"_OnDeserialized",null);Qr=fn.__decorate([(0,Si.JsonObject)()],Qr);yu.Subject=Qr});var Wv=Y(bu=>{A();"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.JsonSubjectConverter=void 0;var Uv=Zh(),qv=ep(),zv=class{serialize(t){return t.Name&&!t.SortAs&&!t.Scheme&&!t.Code&&(!t.Links||!t.Links.length)&&typeof t.Name=="string"?t.Name:(0,Uv.TaJsonSerialize)(t)}deserialize(t){if(typeof t=="string"){let n=new qv.Subject;return n.Name=t,n}return(0,Uv.TaJsonDeserialize)(t,qv.Subject)}collapseArrayWithSingleItem(){return!0}};bu.JsonSubjectConverter=zv});var Gv=Y(Oi=>{A();"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.Metadata=Oi.MetadataSupportedKeys=Oi.DirectionEnum=void 0;var me=Yr(),ge=Rn(),ei=_s(),oL=Fv(),sr=hu(),ar=Xh(),sL=$v(),aL=Yh(),lL=ep(),cL=Wv(),uL;(function(i){i.Auto="auto",i.RTL="rtl",i.LTR="ltr"})(uL=Oi.DirectionEnum||(Oi.DirectionEnum={}));Oi.MetadataSupportedKeys=["dcterms:modified","accessMode","accessibilityFeature","accessibilityHazard","accessibilitySummary","accessModeSufficient","accessibilityAPI","accessibilityControl","certifiedBy","certifierCredential","certifierReport","conformsTo","title","subtitle","identifier","author","translator","editor","artist","illustrator","letterer","penciler","colorist","inker","narrator","contributor","publisher","imprint","language","modified","published","sortAs","description","readingProgression","direction","belongsTo","duration","numberOfPages","rights","rendition","source","subject"];var Ve=class{get SortAs(){return this.SortAs2?this.SortAs2:this.SortAs1}set SortAs(t){t&&(this.SortAs1=void 0,this.SortAs2=t)}get Direction(){return this.Direction2?this.Direction2:this.Direction1}set Direction(t){t&&(this.Direction1=void 0,this.Direction2=t)}get BelongsTo(){return this.BelongsTo2?this.BelongsTo2:this.BelongsTo1}set BelongsTo(t){t&&(this.BelongsTo1=void 0,this.BelongsTo2=t)}_OnDeserialized(){this.Title||console.log("Metadata.Title is not set!")}};me.__decorate([(0,ge.JsonProperty)("accessMode"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"AccessMode",void 0);me.__decorate([(0,ge.JsonProperty)("accessibilityFeature"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"AccessibilityFeature",void 0);me.__decorate([(0,ge.JsonProperty)("accessibilityHazard"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"AccessibilityHazard",void 0);me.__decorate([(0,ge.JsonProperty)("accessibilitySummary"),me.__metadata("design:type",Object)],Ve.prototype,"AccessibilitySummary",void 0);me.__decorate([(0,ge.JsonProperty)("accessModeSufficient"),(0,ge.JsonElementType)(Array),me.__metadata("design:type",Array)],Ve.prototype,"AccessModeSufficient",void 0);me.__decorate([(0,ge.JsonProperty)("accessibilityAPI"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"AccessibilityAPI",void 0);me.__decorate([(0,ge.JsonProperty)("accessibilityControl"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"AccessibilityControl",void 0);me.__decorate([(0,ge.JsonProperty)("certifiedBy"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"CertifiedBy",void 0);me.__decorate([(0,ge.JsonProperty)("certifierCredential"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"CertifierCredential",void 0);me.__decorate([(0,ge.JsonProperty)("certifierReport"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"CertifierReport",void 0);me.__decorate([(0,ge.JsonProperty)("conformsTo"),(0,ge.JsonConverter)(ei.JsonStringConverter),(0,ge.JsonElementType)(String),me.__metadata("design:type",Array)],Ve.prototype,"ConformsTo",void 0);me.__decorate([(0,ge.JsonProperty)("@type"),me.__metadata("design:type",String)],Ve.prototype,"RDFType",void 0);me.__decorate([(0,ge.JsonProperty)("title"),me.__metadata("design:type",Object)],Ve.prototype,"Title",void 0);me.__decorate([(0,ge.JsonProperty)("subtitle"),me.__metadata("design:type",Object)],Ve.prototype,"SubTitle",void 0);me.__decorate([(0,ge.JsonProperty)("identifier"),me.__metadata("design:type",String)],Ve.prototype,"Identifier",void 0);me.__decorate([(0,ge.JsonProperty)("author"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Author",void 0);me.__decorate([(0,ge.JsonProperty)("translator"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Translator",void 0);me.__decorate([(0,ge.JsonProperty)("editor"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Editor",void 0);me.__decorate([(0,ge.JsonProperty)("artist"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Artist",void 0);me.__decorate([(0,ge.JsonProperty)("illustrator"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Illustrator",void 0);me.__decorate([(0,ge.JsonProperty)("letterer"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Letterer",void 0);me.__decorate([(0,ge.JsonProperty)("penciler"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Penciler",void 0);me.__decorate([(0,ge.JsonProperty)("colorist"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Colorist",void 0);me.__decorate([(0,ge.JsonProperty)("inker"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Inker",void 0);me.__decorate([(0,ge.JsonProperty)("narrator"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Narrator",void 0);me.__decorate([(0,ge.JsonProperty)("contributor"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Contributor",void 0);me.__decorate([(0,ge.JsonProperty)("publisher"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Publisher",void 0);me.__decorate([(0,ge.JsonProperty)("imprint"),(0,ge.JsonElementType)(sr.Contributor),(0,ge.JsonConverter)(ar.JsonContributorConverter),me.__metadata("design:type",Array)],Ve.prototype,"Imprint",void 0);me.__decorate([(0,ge.JsonProperty)("language"),(0,ge.JsonElementType)(String),(0,ge.JsonConverter)(ei.JsonStringConverter),me.__metadata("design:type",Array)],Ve.prototype,"Language",void 0);me.__decorate([(0,ge.JsonProperty)("modified"),me.__metadata("design:type",Date)],Ve.prototype,"Modified",void 0);me.__decorate([(0,ge.JsonProperty)("published"),me.__metadata("design:type",Date)],Ve.prototype,"PublicationDate",void 0);me.__decorate([(0,ge.JsonProperty)("sortAs"),me.__metadata("design:type",String)],Ve.prototype,"SortAs2",void 0);me.__decorate([(0,ge.JsonProperty)("sort_as"),me.__metadata("design:type",Object)],Ve.prototype,"SortAs1",void 0);me.__decorate([(0,ge.JsonProperty)("description"),me.__metadata("design:type",String)],Ve.prototype,"Description",void 0);me.__decorate([(0,ge.JsonProperty)("readingProgression"),me.__metadata("design:type",String)],Ve.prototype,"Direction2",void 0);me.__decorate([(0,ge.JsonProperty)("direction"),me.__metadata("design:type",Object)],Ve.prototype,"Direction1",void 0);me.__decorate([(0,ge.JsonProperty)("belongsTo"),me.__metadata("design:type",oL.BelongsTo)],Ve.prototype,"BelongsTo2",void 0);me.__decorate([(0,ge.JsonProperty)("belongs_to"),me.__metadata("design:type",Object)],Ve.prototype,"BelongsTo1",void 0);me.__decorate([(0,ge.JsonProperty)("duration"),me.__metadata("design:type",Number)],Ve.prototype,"Duration",void 0);me.__decorate([(0,ge.JsonProperty)("numberOfPages"),me.__metadata("design:type",Number)],Ve.prototype,"NumberOfPages",void 0);me.__decorate([(0,ge.JsonProperty)("media-overlay"),me.__metadata("design:type",sL.MediaOverlay)],Ve.prototype,"MediaOverlay",void 0);me.__decorate([(0,ge.JsonProperty)("rights"),me.__metadata("design:type",String)],Ve.prototype,"Rights",void 0);me.__decorate([(0,ge.JsonProperty)("rendition"),me.__metadata("design:type",aL.Properties)],Ve.prototype,"Rendition",void 0);me.__decorate([(0,ge.JsonProperty)("source"),me.__metadata("design:type",String)],Ve.prototype,"Source",void 0);me.__decorate([(0,ge.JsonProperty)("subject"),(0,ge.JsonConverter)(cL.JsonSubjectConverter),(0,ge.JsonElementType)(lL.Subject),me.__metadata("design:type",Array)],Ve.prototype,"Subject",void 0);me.__decorate([(0,ge.OnDeserialized)(),me.__metadata("design:type",Function),me.__metadata("design:paramtypes",[]),me.__metadata("design:returntype",void 0)],Ve.prototype,"_OnDeserialized",null);Ve=me.__decorate([(0,ge.JsonObject)()],Ve);Oi.Metadata=Ve});var Vv=Y(vu=>{A();"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.Publication=void 0;var gt=Yr(),dL=_b(),Ot=Rn(),fL=_s(),hL=Gv(),lr=va(),pL=dL("r2:shared#models/publication"),gL="metadata",mL="links",yL="readingOrder",bL="spine",vL="resources",wL="toc",EL="page-list",SL="pageList",OL="landmarks",xL="loi",_L="loa",TL="lov",CL="lot",on=class{get Spine(){return this.Spine2?this.Spine2:this.Spine1}set Spine(t){t&&(this.Spine1=void 0,this.Spine2=t)}get PageList(){return this.PageList2?this.PageList2:this.PageList1}set PageList(t){t&&(this.PageList1=void 0,this.PageList2=t)}freeDestroy(){if(pL("freeDestroy: Publication"),this.Internal){let t=this.findFromInternal("zip");t&&t.Value.freeDestroy()}}findFromInternal(t){if(this.Internal){let n=this.Internal.find(r=>r.Name===t);if(n)return n}}AddToInternal(t,n){let r=this.findFromInternal(t);if(r)r.Value=n;else{this.Internal||(this.Internal=[]);let o={Name:t,Value:n};this.Internal.push(o)}}GetCover(){return this.searchLinkByRel("cover")}GetNavDoc(){return this.searchLinkByRel("contents")}searchLinkByRel(t){if(this.Resources){let n=this.Resources.find(r=>r.HasRel(t));if(n)return n}if(this.Spine){let n=this.Spine.find(r=>r.HasRel(t));if(n)return n}if(this.Links){let n=this.Links.find(r=>r.HasRel(t));if(n)return n}}AddLink(t,n,r,o){let a=new lr.Link;a.AddRels(n),a.setHrefDecoded(r),a.TypeLink=t,typeof o!="undefined"&&(a.Templated=o),this.Links||(this.Links=[]),this.Links.push(a)}_OnDeserialized(){this.Metadata||console.log("Publication.Metadata is not set!"),this.Spine||console.log("Publication.Spine/ReadingOrder is not set!")}};gt.__decorate([(0,Ot.JsonProperty)("@context"),(0,Ot.JsonElementType)(String),(0,Ot.JsonConverter)(fL.JsonStringConverter),gt.__metadata("design:type",Array)],on.prototype,"Context",void 0);gt.__decorate([(0,Ot.JsonProperty)(gL),gt.__metadata("design:type",hL.Metadata)],on.prototype,"Metadata",void 0);gt.__decorate([(0,Ot.JsonProperty)(mL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"Links",void 0);gt.__decorate([(0,Ot.JsonProperty)(yL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"Spine2",void 0);gt.__decorate([(0,Ot.JsonProperty)(bL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Object)],on.prototype,"Spine1",void 0);gt.__decorate([(0,Ot.JsonProperty)(vL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"Resources",void 0);gt.__decorate([(0,Ot.JsonProperty)(wL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"TOC",void 0);gt.__decorate([(0,Ot.JsonProperty)(SL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"PageList2",void 0);gt.__decorate([(0,Ot.JsonProperty)(EL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Object)],on.prototype,"PageList1",void 0);gt.__decorate([(0,Ot.JsonProperty)(OL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"Landmarks",void 0);gt.__decorate([(0,Ot.JsonProperty)(xL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"LOI",void 0);gt.__decorate([(0,Ot.JsonProperty)(_L),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"LOA",void 0);gt.__decorate([(0,Ot.JsonProperty)(TL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"LOV",void 0);gt.__decorate([(0,Ot.JsonProperty)(CL),(0,Ot.JsonElementType)(lr.Link),gt.__metadata("design:type",Array)],on.prototype,"LOT",void 0);gt.__decorate([(0,Ot.OnDeserialized)(),gt.__metadata("design:type",Function),gt.__metadata("design:paramtypes",[]),gt.__metadata("design:returntype",void 0)],on.prototype,"_OnDeserialized",null);on=gt.__decorate([(0,Ot.JsonObject)()],on);vu.Publication=on});var tw=Y((U7,RL)=>{RL.exports={"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}});var tp=Y(_a=>{A();"use strict";var ML=_a&&_a.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(_a,"__esModule",{value:!0});var nw=ML(tw()),PL=String.fromCodePoint||function(i){var t="";return i>65535&&(i-=65536,t+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),t+=String.fromCharCode(i),t};function IL(i){return i>=55296&&i<=57343||i>1114111?"\uFFFD":(i in nw.default&&(i=nw.default[i]),PL(i))}_a.default=IL});var wu=Y((z7,LL)=>{LL.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
11
11
  `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var np=Y((W7,BL)=>{BL.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var Eu=Y((G7,kL)=>{kL.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var op=Y(Ta=>{A();"use strict";var Su=Ta&&Ta.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ta,"__esModule",{value:!0});var NL=Su(tp()),HL=Su(wu()),rp=Su(np()),jL=Su(Eu());function _r(i){return i===" "||i===`
12
12
  `||i===" "||i==="\f"||i==="\r"}function ip(i){return i>="a"&&i<="z"||i>="A"&&i<="Z"}function sn(i,t,n){var r=i.toLowerCase();return i===r?function(o,a){a===r?o._state=t:(o._state=n,o._index--)}:function(o,a){a===r||a===i?o._state=t:(o._state=n,o._index--)}}function jr(i,t){var n=i.toLowerCase();return function(r,o){o===n||o===i?r._state=t:(r._state=3,r._index--)}}var DL=sn("C",24,16),FL=sn("D",25,16),$L=sn("A",26,16),UL=sn("T",27,16),qL=sn("A",28,16),zL=jr("R",35),WL=jr("I",36),GL=jr("P",37),VL=jr("T",38),JL=sn("R",40,1),KL=sn("I",41,1),YL=sn("P",42,1),ZL=sn("T",43,1),XL=jr("Y",45),QL=jr("L",46),eB=jr("E",47),tB=sn("Y",49,1),nB=sn("L",50,1),rB=sn("E",51,1),iB=jr("I",54),oB=jr("T",55),sB=jr("L",56),aB=jr("E",57),lB=sn("I",58,1),cB=sn("T",59,1),uB=sn("L",60,1),dB=sn("E",61,1),fB=sn("#",63,64),hB=sn("X",66,65),pB=function(){function i(t,n){var r;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=n,this.xmlMode=!!(t==null?void 0:t.xmlMode),this.decodeEntities=(r=t==null?void 0:t.decodeEntities)!==null&&r!==void 0?r:!0}return i.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},i.prototype.write=function(t){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=t,this.parse()},i.prototype.end=function(t){this.ended&&this.cbs.onerror(Error(".end() after done!")),t&&this.write(t),this.ended=!0,this.running&&this.finish()},i.prototype.pause=function(){this.running=!1},i.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},i.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},i.prototype.stateText=function(t){t==="<"?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&t==="&"&&(this.special===1||this.special===4)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},i.prototype.stateBeforeTagName=function(t){t==="/"?this._state=5:t==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):t===">"||this.special!==1||_r(t)?this._state=1:t==="!"?(this._state=15,this.sectionStart=this._index+1):t==="?"?(this._state=17,this.sectionStart=this._index+1):ip(t)?(this._state=!this.xmlMode&&(t==="s"||t==="S")?32:!this.xmlMode&&(t==="t"||t==="T")?52:3,this.sectionStart=this._index):this._state=1},i.prototype.stateInTagName=function(t){(t==="/"||t===">"||_r(t))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},i.prototype.stateBeforeClosingTagName=function(t){_r(t)||(t===">"?this._state=1:this.special!==1?this.special!==4&&(t==="s"||t==="S")?this._state=33:this.special===4&&(t==="t"||t==="T")?this._state=53:(this._state=1,this._index--):ip(t)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},i.prototype.stateInClosingTagName=function(t){(t===">"||_r(t))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},i.prototype.stateAfterClosingTagName=function(t){t===">"&&(this._state=1,this.sectionStart=this._index+1)},i.prototype.stateBeforeAttributeName=function(t){t===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):t==="/"?this._state=4:_r(t)||(this._state=9,this.sectionStart=this._index)},i.prototype.stateInSelfClosingTag=function(t){t===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):_r(t)||(this._state=8,this._index--)},i.prototype.stateInAttributeName=function(t){(t==="="||t==="/"||t===">"||_r(t))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},i.prototype.stateAfterAttributeName=function(t){t==="="?this._state=11:t==="/"||t===">"?(this.cbs.onattribend(void 0),this._state=8,this._index--):_r(t)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},i.prototype.stateBeforeAttributeValue=function(t){t==='"'?(this._state=12,this.sectionStart=this._index+1):t==="'"?(this._state=13,this.sectionStart=this._index+1):_r(t)||(this._state=14,this.sectionStart=this._index,this._index--)},i.prototype.handleInAttributeValue=function(t,n){t===n?(this.emitToken("onattribdata"),this.cbs.onattribend(n),this._state=8):this.decodeEntities&&t==="&"&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},i.prototype.stateInAttributeValueDoubleQuotes=function(t){this.handleInAttributeValue(t,'"')},i.prototype.stateInAttributeValueSingleQuotes=function(t){this.handleInAttributeValue(t,"'")},i.prototype.stateInAttributeValueNoQuotes=function(t){_r(t)||t===">"?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&t==="&"&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},i.prototype.stateBeforeDeclaration=function(t){this._state=t==="["?23:t==="-"?18:16},i.prototype.stateInDeclaration=function(t){t===">"&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},i.prototype.stateInProcessingInstruction=function(t){t===">"&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},i.prototype.stateBeforeComment=function(t){t==="-"?(this._state=19,this.sectionStart=this._index+1):this._state=16},i.prototype.stateInComment=function(t){t==="-"&&(this._state=21)},i.prototype.stateInSpecialComment=function(t){t===">"&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},i.prototype.stateAfterComment1=function(t){t==="-"?this._state=22:this._state=19},i.prototype.stateAfterComment2=function(t){t===">"?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):t!=="-"&&(this._state=19)},i.prototype.stateBeforeCdata6=function(t){t==="["?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},i.prototype.stateInCdata=function(t){t==="]"&&(this._state=30)},i.prototype.stateAfterCdata1=function(t){t==="]"?this._state=31:this._state=29},i.prototype.stateAfterCdata2=function(t){t===">"?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):t!=="]"&&(this._state=29)},i.prototype.stateBeforeSpecialS=function(t){t==="c"||t==="C"?this._state=34:t==="t"||t==="T"?this._state=44:(this._state=3,this._index--)},i.prototype.stateBeforeSpecialSEnd=function(t){this.special===2&&(t==="c"||t==="C")?this._state=39:this.special===3&&(t==="t"||t==="T")?this._state=48:this._state=1},i.prototype.stateBeforeSpecialLast=function(t,n){(t==="/"||t===">"||_r(t))&&(this.special=n),this._state=3,this._index--},i.prototype.stateAfterSpecialLast=function(t,n){t===">"||_r(t)?(this.special=1,this._state=6,this.sectionStart=this._index-n,this._index--):this._state=1},i.prototype.parseFixedEntity=function(t){if(t===void 0&&(t=this.xmlMode?jL.default:HL.default),this.sectionStart+1<this._index){var n=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(t,n)&&(this.emitPartial(t[n]),this.sectionStart=this._index+1)}},i.prototype.parseLegacyEntity=function(){for(var t=this.sectionStart+1,n=Math.min(this._index-t,6);n>=2;){var r=this.buffer.substr(t,n);if(Object.prototype.hasOwnProperty.call(rp.default,r)){this.emitPartial(rp.default[r]),this.sectionStart+=n+1;return}n--}},i.prototype.stateInNamedEntity=function(t){t===";"?(this.parseFixedEntity(),this.baseState===1&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(t<"0"||t>"9")&&!ip(t)&&(this.xmlMode||this.sectionStart+1===this._index||(this.baseState!==1?t!=="="&&this.parseFixedEntity(rp.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},i.prototype.decodeNumericEntity=function(t,n,r){var o=this.sectionStart+t;if(o!==this._index){var a=this.buffer.substring(o,this._index),l=parseInt(a,n);this.emitPartial(NL.default(l)),this.sectionStart=r?this._index+1:this._index}this._state=this.baseState},i.prototype.stateInNumericEntity=function(t){t===";"?this.decodeNumericEntity(2,10,!0):(t<"0"||t>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},i.prototype.stateInHexEntity=function(t){t===";"?this.decodeNumericEntity(3,16,!0):(t<"a"||t>"f")&&(t<"A"||t>"F")&&(t<"0"||t>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},i.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(this._state===1?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},i.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var t=this.buffer.charAt(this._index);this._state===1?this.stateText(t):this._state===12?this.stateInAttributeValueDoubleQuotes(t):this._state===9?this.stateInAttributeName(t):this._state===19?this.stateInComment(t):this._state===20?this.stateInSpecialComment(t):this._state===8?this.stateBeforeAttributeName(t):this._state===3?this.stateInTagName(t):this._state===6?this.stateInClosingTagName(t):this._state===2?this.stateBeforeTagName(t):this._state===10?this.stateAfterAttributeName(t):this._state===13?this.stateInAttributeValueSingleQuotes(t):this._state===11?this.stateBeforeAttributeValue(t):this._state===5?this.stateBeforeClosingTagName(t):this._state===7?this.stateAfterClosingTagName(t):this._state===32?this.stateBeforeSpecialS(t):this._state===21?this.stateAfterComment1(t):this._state===14?this.stateInAttributeValueNoQuotes(t):this._state===4?this.stateInSelfClosingTag(t):this._state===16?this.stateInDeclaration(t):this._state===15?this.stateBeforeDeclaration(t):this._state===22?this.stateAfterComment2(t):this._state===18?this.stateBeforeComment(t):this._state===33?this.stateBeforeSpecialSEnd(t):this._state===53?lB(this,t):this._state===39?JL(this,t):this._state===40?KL(this,t):this._state===41?YL(this,t):this._state===34?zL(this,t):this._state===35?WL(this,t):this._state===36?GL(this,t):this._state===37?VL(this,t):this._state===38?this.stateBeforeSpecialLast(t,2):this._state===42?ZL(this,t):this._state===43?this.stateAfterSpecialLast(t,6):this._state===44?XL(this,t):this._state===29?this.stateInCdata(t):this._state===45?QL(this,t):this._state===46?eB(this,t):this._state===47?this.stateBeforeSpecialLast(t,3):this._state===48?tB(this,t):this._state===49?nB(this,t):this._state===50?rB(this,t):this._state===51?this.stateAfterSpecialLast(t,5):this._state===52?iB(this,t):this._state===54?oB(this,t):this._state===55?sB(this,t):this._state===56?aB(this,t):this._state===57?this.stateBeforeSpecialLast(t,4):this._state===58?cB(this,t):this._state===59?uB(this,t):this._state===60?dB(this,t):this._state===61?this.stateAfterSpecialLast(t,5):this._state===17?this.stateInProcessingInstruction(t):this._state===64?this.stateInNamedEntity(t):this._state===23?DL(this,t):this._state===62?fB(this,t):this._state===24?FL(this,t):this._state===25?$L(this,t):this._state===30?this.stateAfterCdata1(t):this._state===31?this.stateAfterCdata2(t):this._state===26?UL(this,t):this._state===27?qL(this,t):this._state===28?this.stateBeforeCdata6(t):this._state===66?this.stateInHexEntity(t):this._state===65?this.stateInNumericEntity(t):this._state===63?hB(this,t):this.cbs.onerror(Error("unknown _state"),this._state),this._index++}this.cleanup()},i.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},i.prototype.handleTrailingData=function(){var t=this.buffer.substr(this.sectionStart);this._state===29||this._state===30||this._state===31?this.cbs.oncdata(t):this._state===19||this._state===21||this._state===22?this.cbs.oncomment(t):this._state===64&&!this.xmlMode?(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):this._state===65&&!this.xmlMode?(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):this._state===66&&!this.xmlMode?(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):this._state!==3&&this._state!==8&&this._state!==11&&this._state!==10&&this._state!==9&&this._state!==13&&this._state!==12&&this._state!==14&&this._state!==6&&this.cbs.ontext(t)},i.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},i.prototype.emitToken=function(t){this.cbs[t](this.getSection()),this.sectionStart=-1},i.prototype.emitPartial=function(t){this.baseState!==1?this.cbs.onattribdata(t):this.cbs.ontext(t)},i}();Ta.default=pB});var ap=Y(Ms=>{A();"use strict";var gB=Ms&&Ms.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ms,"__esModule",{value:!0});Ms.Parser=void 0;var mB=gB(op()),Rs=new Set(["input","option","optgroup","select","button","datalist","textarea"]),At=new Set(["p"]),rw={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:At,h1:At,h2:At,h3:At,h4:At,h5:At,h6:At,select:Rs,input:Rs,output:Rs,button:Rs,datalist:Rs,textarea:Rs,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:At,article:At,aside:At,blockquote:At,details:At,div:At,dl:At,fieldset:At,figcaption:At,figure:At,footer:At,form:At,header:At,hr:At,main:At,nav:At,ol:At,pre:At,section:At,table:At,ul:At,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},sp=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),iw=new Set(["math","svg"]),ow=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),yB=/\s|\//,bB=function(){function i(t,n){n===void 0&&(n={});var r,o,a,l,u;this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=n,this.cbs=t??{},this.lowerCaseTagNames=(r=n.lowerCaseTags)!==null&&r!==void 0?r:!n.xmlMode,this.lowerCaseAttributeNames=(o=n.lowerCaseAttributeNames)!==null&&o!==void 0?o:!n.xmlMode,this.tokenizer=new((a=n.Tokenizer)!==null&&a!==void 0?a:mB.default)(this.options,this),(u=(l=this.cbs).onparserinit)===null||u===void 0||u.call(l,this)}return i.prototype.updatePosition=function(t){this.endIndex===null?this.tokenizer.sectionStart<=t?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-t:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},i.prototype.ontext=function(t){var n,r;this.updatePosition(1),this.endIndex--,(r=(n=this.cbs).ontext)===null||r===void 0||r.call(n,t)},i.prototype.onopentagname=function(t){var n,r;if(this.lowerCaseTagNames&&(t=t.toLowerCase()),this.tagname=t,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(rw,t))for(var o=void 0;this.stack.length>0&&rw[t].has(o=this.stack[this.stack.length-1]);)this.onclosetag(o);(this.options.xmlMode||!sp.has(t))&&(this.stack.push(t),iw.has(t)?this.foreignContext.push(!0):ow.has(t)&&this.foreignContext.push(!1)),(r=(n=this.cbs).onopentagname)===null||r===void 0||r.call(n,t),this.cbs.onopentag&&(this.attribs={})},i.prototype.onopentagend=function(){var t,n;this.updatePosition(1),this.attribs&&((n=(t=this.cbs).onopentag)===null||n===void 0||n.call(t,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&sp.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},i.prototype.onclosetag=function(t){if(this.updatePosition(1),this.lowerCaseTagNames&&(t=t.toLowerCase()),(iw.has(t)||ow.has(t))&&this.foreignContext.pop(),this.stack.length&&(this.options.xmlMode||!sp.has(t))){var n=this.stack.lastIndexOf(t);if(n!==-1)if(this.cbs.onclosetag)for(n=this.stack.length-n;n--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=n;else t==="p"&&!this.options.xmlMode&&(this.onopentagname(t),this.closeCurrentTag())}else!this.options.xmlMode&&(t==="br"||t==="p")&&(this.onopentagname(t),this.closeCurrentTag())},i.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},i.prototype.closeCurrentTag=function(){var t,n,r=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===r&&((n=(t=this.cbs).onclosetag)===null||n===void 0||n.call(t,r),this.stack.pop())},i.prototype.onattribname=function(t){this.lowerCaseAttributeNames&&(t=t.toLowerCase()),this.attribname=t},i.prototype.onattribdata=function(t){this.attribvalue+=t},i.prototype.onattribend=function(t){var n,r;(r=(n=this.cbs).onattribute)===null||r===void 0||r.call(n,this.attribname,this.attribvalue,t),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},i.prototype.getInstructionName=function(t){var n=t.search(yB),r=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},i.prototype.ondeclaration=function(t){if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(t);this.cbs.onprocessinginstruction("!"+n,"!"+t)}},i.prototype.onprocessinginstruction=function(t){if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(t);this.cbs.onprocessinginstruction("?"+n,"?"+t)}},i.prototype.oncomment=function(t){var n,r,o,a;this.updatePosition(4),(r=(n=this.cbs).oncomment)===null||r===void 0||r.call(n,t),(a=(o=this.cbs).oncommentend)===null||a===void 0||a.call(o)},i.prototype.oncdata=function(t){var n,r,o,a,l,u;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?((r=(n=this.cbs).oncdatastart)===null||r===void 0||r.call(n),(a=(o=this.cbs).ontext)===null||a===void 0||a.call(o,t),(u=(l=this.cbs).oncdataend)===null||u===void 0||u.call(l)):this.oncomment("[CDATA["+t+"]]")},i.prototype.onerror=function(t){var n,r;(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,t)},i.prototype.onend=function(){var t,n;if(this.cbs.onclosetag)for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r]));(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)},i.prototype.reset=function(){var t,n,r,o;(n=(t=this.cbs).onreset)===null||n===void 0||n.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],(o=(r=this.cbs).onparserinit)===null||o===void 0||o.call(r,this)},i.prototype.parseComplete=function(t){this.reset(),this.end(t)},i.prototype.write=function(t){this.tokenizer.write(t)},i.prototype.end=function(t){this.tokenizer.end(t)},i.prototype.pause=function(){this.tokenizer.pause()},i.prototype.resume=function(){this.tokenizer.resume()},i.prototype.parseChunk=function(t){this.write(t)},i.prototype.done=function(t){this.end(t)},i}();Ms.Parser=bB});var Ps=Y(Bt=>{A();"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Doctype=Bt.CDATA=Bt.Tag=Bt.Style=Bt.Script=Bt.Comment=Bt.Directive=Bt.Text=Bt.Root=Bt.isTag=Bt.ElementType=void 0;var ur;(function(i){i.Root="root",i.Text="text",i.Directive="directive",i.Comment="comment",i.Script="script",i.Style="style",i.Tag="tag",i.CDATA="cdata",i.Doctype="doctype"})(ur=Bt.ElementType||(Bt.ElementType={}));function vB(i){return i.type===ur.Tag||i.type===ur.Script||i.type===ur.Style}Bt.isTag=vB;Bt.Root=ur.Root;Bt.Text=ur.Text;Bt.Directive=ur.Directive;Bt.Comment=ur.Comment;Bt.Script=ur.Script;Bt.Style=ur.Style;Bt.Tag=ur.Tag;Bt.CDATA=ur.CDATA;Bt.Doctype=ur.Doctype});var dp=Y(ot=>{A();"use strict";var Io=ot&&ot.__extends||function(){var i=function(t,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},i(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ca=ot&&ot.__assign||function(){return Ca=Object.assign||function(i){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},Ca.apply(this,arguments)};Object.defineProperty(ot,"__esModule",{value:!0});ot.cloneNode=ot.hasChildren=ot.isDocument=ot.isDirective=ot.isComment=ot.isText=ot.isCDATA=ot.isTag=ot.Element=ot.Document=ot.NodeWithChildren=ot.ProcessingInstruction=ot.Comment=ot.Text=ot.DataNode=ot.Node=void 0;var qt=Ps(),wB=new Map([[qt.ElementType.Tag,1],[qt.ElementType.Script,1],[qt.ElementType.Style,1],[qt.ElementType.Directive,1],[qt.ElementType.Text,3],[qt.ElementType.CDATA,4],[qt.ElementType.Comment,8],[qt.ElementType.Root,9]]),lp=function(){function i(t){this.type=t,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(i.prototype,"nodeType",{get:function(){var t;return(t=wB.get(this.type))!==null&&t!==void 0?t:1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),i.prototype.cloneNode=function(t){return t===void 0&&(t=!1),cp(this,t)},i}();ot.Node=lp;var Ou=function(i){Io(t,i);function t(n,r){var o=i.call(this,n)||this;return o.data=r,o}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(lp);ot.DataNode=Ou;var sw=function(i){Io(t,i);function t(n){return i.call(this,qt.ElementType.Text,n)||this}return t}(Ou);ot.Text=sw;var aw=function(i){Io(t,i);function t(n){return i.call(this,qt.ElementType.Comment,n)||this}return t}(Ou);ot.Comment=aw;var lw=function(i){Io(t,i);function t(n,r){var o=i.call(this,qt.ElementType.Directive,r)||this;return o.name=n,o}return t}(Ou);ot.ProcessingInstruction=lw;var xu=function(i){Io(t,i);function t(n,r){var o=i.call(this,n)||this;return o.children=r,o}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(lp);ot.NodeWithChildren=xu;var cw=function(i){Io(t,i);function t(n){return i.call(this,qt.ElementType.Root,n)||this}return t}(xu);ot.Document=cw;var uw=function(i){Io(t,i);function t(n,r,o,a){o===void 0&&(o=[]),a===void 0&&(a=n==="script"?qt.ElementType.Script:n==="style"?qt.ElementType.Style:qt.ElementType.Tag);var l=i.call(this,a,o)||this;return l.name=n,l.attribs=r,l}return Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var o,a;return{name:r,value:n.attribs[r],namespace:(o=n["x-attribsNamespace"])===null||o===void 0?void 0:o[r],prefix:(a=n["x-attribsPrefix"])===null||a===void 0?void 0:a[r]}})},enumerable:!1,configurable:!0}),t}(xu);ot.Element=uw;function dw(i){return(0,qt.isTag)(i)}ot.isTag=dw;function fw(i){return i.type===qt.ElementType.CDATA}ot.isCDATA=fw;function hw(i){return i.type===qt.ElementType.Text}ot.isText=hw;function pw(i){return i.type===qt.ElementType.Comment}ot.isComment=pw;function gw(i){return i.type===qt.ElementType.Directive}ot.isDirective=gw;function mw(i){return i.type===qt.ElementType.Root}ot.isDocument=mw;function EB(i){return Object.prototype.hasOwnProperty.call(i,"children")}ot.hasChildren=EB;function cp(i,t){t===void 0&&(t=!1);var n;if(hw(i))n=new sw(i.data);else if(pw(i))n=new aw(i.data);else if(dw(i)){var r=t?up(i.children):[],o=new uw(i.name,Ca({},i.attribs),r);r.forEach(function(d){return d.parent=o}),i.namespace!=null&&(o.namespace=i.namespace),i["x-attribsNamespace"]&&(o["x-attribsNamespace"]=Ca({},i["x-attribsNamespace"])),i["x-attribsPrefix"]&&(o["x-attribsPrefix"]=Ca({},i["x-attribsPrefix"])),n=o}else if(fw(i)){var r=t?up(i.children):[],a=new xu(qt.ElementType.CDATA,r);r.forEach(function(f){return f.parent=a}),n=a}else if(mw(i)){var r=t?up(i.children):[],l=new cw(r);r.forEach(function(f){return f.parent=l}),i["x-mode"]&&(l["x-mode"]=i["x-mode"]),n=l}else if(gw(i)){var u=new lw(i.name,i.data);i["x-name"]!=null&&(u["x-name"]=i["x-name"],u["x-publicId"]=i["x-publicId"],u["x-systemId"]=i["x-systemId"]),n=u}else throw new Error("Not implemented yet: ".concat(i.type));return n.startIndex=i.startIndex,n.endIndex=i.endIndex,i.sourceCodeLocation!=null&&(n.sourceCodeLocation=i.sourceCodeLocation),n}ot.cloneNode=cp;function up(i){for(var t=i.map(function(r){return cp(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}});var Ti=Y(ti=>{A();"use strict";var SB=ti&&ti.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(i,r,o)}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),OB=ti&&ti.__exportStar||function(i,t){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&SB(t,i,n)};Object.defineProperty(ti,"__esModule",{value:!0});ti.DomHandler=void 0;var _u=Ps(),Zi=dp();OB(dp(),ti);var yw=/\s+/g,bw={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},vw=function(){function i(t,n,r){this.dom=[],this.root=new Zi.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(r=n,n=bw),typeof t=="object"&&(n=t,t=void 0),this.callback=t??null,this.options=n??bw,this.elementCB=r??null}return i.prototype.onparserinit=function(t){this.parser=t},i.prototype.onreset=function(){this.dom=[],this.root=new Zi.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},i.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},i.prototype.onerror=function(t){this.handleCallback(t)},i.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},i.prototype.onopentag=function(t,n){var r=this.options.xmlMode?_u.ElementType.Tag:void 0,o=new Zi.Element(t,n,void 0,r);this.addNode(o),this.tagStack.push(o)},i.prototype.ontext=function(t){var n=this.options.normalizeWhitespace,r=this.lastNode;if(r&&r.type===_u.ElementType.Text)n?r.data=(r.data+t).replace(yw," "):r.data+=t,this.options.withEndIndices&&(r.endIndex=this.parser.endIndex);else{n&&(t=t.replace(yw," "));var o=new Zi.Text(t);this.addNode(o),this.lastNode=o}},i.prototype.oncomment=function(t){if(this.lastNode&&this.lastNode.type===_u.ElementType.Comment){this.lastNode.data+=t;return}var n=new Zi.Comment(t);this.addNode(n),this.lastNode=n},i.prototype.oncommentend=function(){this.lastNode=null},i.prototype.oncdatastart=function(){var t=new Zi.Text(""),n=new Zi.NodeWithChildren(_u.ElementType.CDATA,[t]);this.addNode(n),t.parent=n,this.lastNode=t},i.prototype.oncdataend=function(){this.lastNode=null},i.prototype.onprocessinginstruction=function(t,n){var r=new Zi.ProcessingInstruction(t,n);this.addNode(r)},i.prototype.handleCallback=function(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t},i.prototype.addNode=function(t){var n=this.tagStack[this.tagStack.length-1],r=n.children[n.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),n.children.push(t),r&&(t.prev=r,r.next=t),t.parent=n,this.lastNode=null},i}();ti.DomHandler=vw;ti.default=vw});var hp=Y(ni=>{A();"use strict";var Tu=ni&&ni.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ni,"__esModule",{value:!0});ni.decodeHTML=ni.decodeHTMLStrict=ni.decodeXML=void 0;var fp=Tu(wu()),xB=Tu(np()),_B=Tu(Eu()),ww=Tu(tp()),TB=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;ni.decodeXML=Ew(_B.default);ni.decodeHTMLStrict=Ew(fp.default);function Ew(i){var t=Ow(i);return function(n){return String(n).replace(TB,t)}}var Sw=function(i,t){return i<t?1:-1};ni.decodeHTML=function(){for(var i=Object.keys(xB.default).sort(Sw),t=Object.keys(fp.default).sort(Sw),n=0,r=0;n<t.length;n++)i[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var o=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=Ow(fp.default);function l(u){return u.substr(-1)!==";"&&(u+=";"),a(u)}return function(u){return String(u).replace(o,l)}}();function Ow(i){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?ww.default(parseInt(n.substr(3),16)):ww.default(parseInt(n.substr(2),10))}return i[n.slice(1,-1)]||n}}});var gp=Y(Fn=>{A();"use strict";var xw=Fn&&Fn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.escapeUTF8=Fn.escape=Fn.encodeNonAsciiHTML=Fn.encodeHTML=Fn.encodeXML=void 0;var CB=xw(Eu()),_w=Cw(CB.default),Tw=Aw(_w);Fn.encodeXML=Pw(_w);var AB=xw(wu()),pp=Cw(AB.default),RB=Aw(pp);Fn.encodeHTML=PB(pp,RB);Fn.encodeNonAsciiHTML=Pw(pp);function Cw(i){return Object.keys(i).sort().reduce(function(t,n){return t[i[n]]="&"+n+";",t},{})}function Aw(i){for(var t=[],n=[],r=0,o=Object.keys(i);r<o.length;r++){var a=o[r];a.length===1?t.push("\\"+a):n.push(a)}t.sort();for(var l=0;l<t.length-1;l++){for(var u=l;u<t.length-1&&t[u].charCodeAt(1)+1===t[u+1].charCodeAt(1);)u+=1;var d=1+u-l;d<3||t.splice(l,d,t[l]+"-"+t[u])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var Rw=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,MB=String.prototype.codePointAt!=null?function(i){return i.codePointAt(0)}:function(i){return(i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536};function Cu(i){return"&#x"+(i.length>1?MB(i):i.charCodeAt(0)).toString(16).toUpperCase()+";"}function PB(i,t){return function(n){return n.replace(t,function(r){return i[r]}).replace(Rw,Cu)}}var Mw=new RegExp(Tw.source+"|"+Rw.source,"g");function IB(i){return i.replace(Mw,Cu)}Fn.escape=IB;function LB(i){return i.replace(Tw,Cu)}Fn.escapeUTF8=LB;function Pw(i){return function(t){return t.replace(Mw,function(n){return i[n]||Cu(n)})}}});var Lw=Y(st=>{A();"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.decodeXMLStrict=st.decodeHTML5Strict=st.decodeHTML4Strict=st.decodeHTML5=st.decodeHTML4=st.decodeHTMLStrict=st.decodeHTML=st.decodeXML=st.encodeHTML5=st.encodeHTML4=st.escapeUTF8=st.escape=st.encodeNonAsciiHTML=st.encodeHTML=st.encodeXML=st.encode=st.decodeStrict=st.decode=void 0;var Au=hp(),Iw=gp();function BB(i,t){return(!t||t<=0?Au.decodeXML:Au.decodeHTML)(i)}st.decode=BB;function kB(i,t){return(!t||t<=0?Au.decodeXML:Au.decodeHTMLStrict)(i)}st.decodeStrict=kB;function NB(i,t){return(!t||t<=0?Iw.encodeXML:Iw.encodeHTML)(i)}st.encode=NB;var Lo=gp();Object.defineProperty(st,"encodeXML",{enumerable:!0,get:function(){return Lo.encodeXML}});Object.defineProperty(st,"encodeHTML",{enumerable:!0,get:function(){return Lo.encodeHTML}});Object.defineProperty(st,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return Lo.encodeNonAsciiHTML}});Object.defineProperty(st,"escape",{enumerable:!0,get:function(){return Lo.escape}});Object.defineProperty(st,"escapeUTF8",{enumerable:!0,get:function(){return Lo.escapeUTF8}});Object.defineProperty(st,"encodeHTML4",{enumerable:!0,get:function(){return Lo.encodeHTML}});Object.defineProperty(st,"encodeHTML5",{enumerable:!0,get:function(){return Lo.encodeHTML}});var Xi=hp();Object.defineProperty(st,"decodeXML",{enumerable:!0,get:function(){return Xi.decodeXML}});Object.defineProperty(st,"decodeHTML",{enumerable:!0,get:function(){return Xi.decodeHTML}});Object.defineProperty(st,"decodeHTMLStrict",{enumerable:!0,get:function(){return Xi.decodeHTMLStrict}});Object.defineProperty(st,"decodeHTML4",{enumerable:!0,get:function(){return Xi.decodeHTML}});Object.defineProperty(st,"decodeHTML5",{enumerable:!0,get:function(){return Xi.decodeHTML}});Object.defineProperty(st,"decodeHTML4Strict",{enumerable:!0,get:function(){return Xi.decodeHTMLStrict}});Object.defineProperty(st,"decodeHTML5Strict",{enumerable:!0,get:function(){return Xi.decodeHTMLStrict}});Object.defineProperty(st,"decodeXMLStrict",{enumerable:!0,get:function(){return Xi.decodeXML}})});var Bw=Y(Is=>{A();"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.attributeNames=Is.elementNames=void 0;Is.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]);Is.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])});var jw=Y(Dr=>{A();"use strict";var Ls=Dr&&Dr.__assign||function(){return Ls=Object.assign||function(i){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}return i},Ls.apply(this,arguments)},HB=Dr&&Dr.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n),Object.defineProperty(i,r,{enumerable:!0,get:function(){return t[n]}})}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),jB=Dr&&Dr.__setModuleDefault||(Object.create?function(i,t){Object.defineProperty(i,"default",{enumerable:!0,value:t})}:function(i,t){i.default=t}),DB=Dr&&Dr.__importStar||function(i){if(i&&i.__esModule)return i;var t={};if(i!=null)for(var n in i)n!=="default"&&Object.prototype.hasOwnProperty.call(i,n)&&HB(t,i,n);return jB(t,i),t};Object.defineProperty(Dr,"__esModule",{value:!0});var Ci=DB(Ps()),kw=Lw(),Nw=Bw(),FB=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function $B(i,t){if(!!i)return Object.keys(i).map(function(n){var r,o,a=(r=i[n])!==null&&r!==void 0?r:"";return t.xmlMode==="foreign"&&(n=(o=Nw.attributeNames.get(n))!==null&&o!==void 0?o:n),!t.emptyAttrs&&!t.xmlMode&&a===""?n:n+'="'+(t.decodeEntities?kw.encodeXML(a):a.replace(/"/g,"&quot;"))+'"'}).join(" ")}var Hw=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function mp(i,t){t===void 0&&(t={});for(var n=Array.isArray(i)||i.cheerio?i:[i],r="",o=0;o<n.length;o++)r+=UB(n[o],t);return r}Dr.default=mp;function UB(i,t){switch(i.type){case Ci.Root:return mp(i.children,t);case Ci.Directive:case Ci.Doctype:return GB(i);case Ci.Comment:return KB(i);case Ci.CDATA:return JB(i);case Ci.Script:case Ci.Style:case Ci.Tag:return WB(i,t);case Ci.Text:return VB(i,t)}}var qB=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),zB=new Set(["svg","math"]);function WB(i,t){var n;t.xmlMode==="foreign"&&(i.name=(n=Nw.elementNames.get(i.name))!==null&&n!==void 0?n:i.name,i.parent&&qB.has(i.parent.name)&&(t=Ls(Ls({},t),{xmlMode:!1}))),!t.xmlMode&&zB.has(i.name)&&(t=Ls(Ls({},t),{xmlMode:"foreign"}));var r="<"+i.name,o=$B(i.attribs,t);return o&&(r+=" "+o),i.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Hw.has(i.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",i.children.length>0&&(r+=mp(i.children,t)),(t.xmlMode||!Hw.has(i.name))&&(r+="</"+i.name+">")),r}function GB(i){return"<"+i.data+">"}function VB(i,t){var n=i.data||"";return t.decodeEntities&&!(i.parent&&FB.has(i.parent.name))&&(n=kw.encodeXML(n)),n}function JB(i){return"<![CDATA["+i.children[0].data+"]]>"}function KB(i){return"<!--"+i.data+"-->"}});var vp=Y($n=>{A();"use strict";var YB=$n&&$n.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty($n,"__esModule",{value:!0});$n.innerText=$n.textContent=$n.getText=$n.getInnerHTML=$n.getOuterHTML=void 0;var ri=Ti(),ZB=YB(jw()),XB=Ps();function Dw(i,t){return(0,ZB.default)(i,t)}$n.getOuterHTML=Dw;function QB(i,t){return(0,ri.hasChildren)(i)?i.children.map(function(n){return Dw(n,t)}).join(""):""}$n.getInnerHTML=QB;function Ru(i){return Array.isArray(i)?i.map(Ru).join(""):(0,ri.isTag)(i)?i.name==="br"?`
13
13
  `:Ru(i.children):(0,ri.isCDATA)(i)?Ru(i.children):(0,ri.isText)(i)?i.data:""}$n.getText=Ru;function yp(i){return Array.isArray(i)?i.map(yp).join(""):(0,ri.hasChildren)(i)&&!(0,ri.isComment)(i)?yp(i.children):(0,ri.isText)(i)?i.data:""}$n.textContent=yp;function bp(i){return Array.isArray(i)?i.map(bp).join(""):(0,ri.hasChildren)(i)&&(i.type===XB.ElementType.Tag||(0,ri.isCDATA)(i))?bp(i.children):(0,ri.isText)(i)?i.data:""}$n.innerText=bp});var qw=Y(an=>{A();"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.prevElementSibling=an.nextElementSibling=an.getName=an.hasAttrib=an.getAttributeValue=an.getSiblings=an.getParent=an.getChildren=void 0;var Fw=Ti(),e6=[];function $w(i){var t;return(t=i.children)!==null&&t!==void 0?t:e6}an.getChildren=$w;function Uw(i){return i.parent||null}an.getParent=Uw;function t6(i){var t,n,r=Uw(i);if(r!=null)return $w(r);for(var o=[i],a=i.prev,l=i.next;a!=null;)o.unshift(a),t=a,a=t.prev;for(;l!=null;)o.push(l),n=l,l=n.next;return o}an.getSiblings=t6;function n6(i,t){var n;return(n=i.attribs)===null||n===void 0?void 0:n[t]}an.getAttributeValue=n6;function r6(i,t){return i.attribs!=null&&Object.prototype.hasOwnProperty.call(i.attribs,t)&&i.attribs[t]!=null}an.hasAttrib=r6;function i6(i){return i.name}an.getName=i6;function o6(i){for(var t,n=i.next;n!==null&&!(0,Fw.isTag)(n);)t=n,n=t.next;return n}an.nextElementSibling=o6;function s6(i){for(var t,n=i.prev;n!==null&&!(0,Fw.isTag)(n);)t=n,n=t.prev;return n}an.prevElementSibling=s6});var zw=Y(Un=>{A();"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.prepend=Un.prependChild=Un.append=Un.appendChild=Un.replaceElement=Un.removeElement=void 0;function Aa(i){if(i.prev&&(i.prev.next=i.next),i.next&&(i.next.prev=i.prev),i.parent){var t=i.parent.children;t.splice(t.lastIndexOf(i),1)}}Un.removeElement=Aa;function a6(i,t){var n=t.prev=i.prev;n&&(n.next=t);var r=t.next=i.next;r&&(r.prev=t);var o=t.parent=i.parent;if(o){var a=o.children;a[a.lastIndexOf(i)]=t}}Un.replaceElement=a6;function l6(i,t){if(Aa(t),t.next=null,t.parent=i,i.children.push(t)>1){var n=i.children[i.children.length-2];n.next=t,t.prev=n}else t.prev=null}Un.appendChild=l6;function c6(i,t){Aa(t);var n=i.parent,r=i.next;if(t.next=r,t.prev=i,i.next=t,t.parent=n,r){if(r.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}Un.append=c6;function u6(i,t){if(Aa(t),t.parent=i,t.prev=null,i.children.unshift(t)!==1){var n=i.children[1];n.prev=t,t.next=n}else t.next=null}Un.prependChild=u6;function d6(i,t){Aa(t);var n=i.parent;if(n){var r=n.children;r.splice(r.indexOf(i),0,t)}i.prev&&(i.prev.next=t),t.parent=n,t.prev=i.prev,t.next=i,i.prev=t}Un.prepend=d6});var Ep=Y(qn=>{A();"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.findAll=qn.existsOne=qn.findOne=qn.findOneChild=qn.find=qn.filter=void 0;var Ra=Ti();function f6(i,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),Array.isArray(t)||(t=[t]),wp(i,t,n,r)}qn.filter=f6;function wp(i,t,n,r){for(var o=[],a=0,l=t;a<l.length;a++){var u=l[a];if(i(u)&&(o.push(u),--r<=0))break;if(n&&(0,Ra.hasChildren)(u)&&u.children.length>0){var d=wp(i,u.children,n,r);if(o.push.apply(o,d),r-=d.length,r<=0)break}}return o}qn.find=wp;function h6(i,t){return t.find(i)}qn.findOneChild=h6;function Ww(i,t,n){n===void 0&&(n=!0);for(var r=null,o=0;o<t.length&&!r;o++){var a=t[o];if((0,Ra.isTag)(a))i(a)?r=a:n&&a.children.length>0&&(r=Ww(i,a.children));else continue}return r}qn.findOne=Ww;function Gw(i,t){return t.some(function(n){return(0,Ra.isTag)(n)&&(i(n)||n.children.length>0&&Gw(i,n.children))})}qn.existsOne=Gw;function p6(i,t){for(var n,r=[],o=t.filter(Ra.isTag),a;a=o.shift();){var l=(n=a.children)===null||n===void 0?void 0:n.filter(Ra.isTag);l&&l.length>0&&o.unshift.apply(o,l),i(a)&&r.push(a)}return r}qn.findAll=p6});var Sp=Y(Tr=>{A();"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.getElementsByTagType=Tr.getElementsByTagName=Tr.getElementById=Tr.getElements=Tr.testElement=void 0;var Bo=Ti(),Mu=Ep(),Pu={tag_name:function(i){return typeof i=="function"?function(t){return(0,Bo.isTag)(t)&&i(t.name)}:i==="*"?Bo.isTag:function(t){return(0,Bo.isTag)(t)&&t.name===i}},tag_type:function(i){return typeof i=="function"?function(t){return i(t.type)}:function(t){return t.type===i}},tag_contains:function(i){return typeof i=="function"?function(t){return(0,Bo.isText)(t)&&i(t.data)}:function(t){return(0,Bo.isText)(t)&&t.data===i}}};function Vw(i,t){return typeof t=="function"?function(n){return(0,Bo.isTag)(n)&&t(n.attribs[i])}:function(n){return(0,Bo.isTag)(n)&&n.attribs[i]===t}}function g6(i,t){return function(n){return i(n)||t(n)}}function Jw(i){var t=Object.keys(i).map(function(n){var r=i[n];return Object.prototype.hasOwnProperty.call(Pu,n)?Pu[n](r):Vw(n,r)});return t.length===0?null:t.reduce(g6)}function m6(i,t){var n=Jw(i);return n?n(t):!0}Tr.testElement=m6;function y6(i,t,n,r){r===void 0&&(r=1/0);var o=Jw(i);return o?(0,Mu.filter)(o,t,n,r):[]}Tr.getElements=y6;function b6(i,t,n){return n===void 0&&(n=!0),Array.isArray(t)||(t=[t]),(0,Mu.findOne)(Vw("id",i),t,n)}Tr.getElementById=b6;function v6(i,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,Mu.filter)(Pu.tag_name(i),t,n,r)}Tr.getElementsByTagName=v6;function w6(i,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,Mu.filter)(Pu.tag_type(i),t,n,r)}Tr.getElementsByTagType=w6});var Zw=Y(Qi=>{A();"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.uniqueSort=Qi.compareDocumentPosition=Qi.removeSubsets=void 0;var Kw=Ti();function E6(i){for(var t=i.length;--t>=0;){var n=i[t];if(t>0&&i.lastIndexOf(n,t-1)>=0){i.splice(t,1);continue}for(var r=n.parent;r;r=r.parent)if(i.includes(r)){i.splice(t,1);break}}return i}Qi.removeSubsets=E6;function Yw(i,t){var n=[],r=[];if(i===t)return 0;for(var o=(0,Kw.hasChildren)(i)?i:i.parent;o;)n.unshift(o),o=o.parent;for(o=(0,Kw.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(var a=Math.min(n.length,r.length),l=0;l<a&&n[l]===r[l];)l++;if(l===0)return 1;var u=n[l-1],d=u.children,f=n[l],m=r[l];return d.indexOf(f)>d.indexOf(m)?u===t?4|16:4:u===i?2|8:2}Qi.compareDocumentPosition=Yw;function S6(i){return i=i.filter(function(t,n,r){return!r.includes(t,n+1)}),i.sort(function(t,n){var r=Yw(t,n);return r&2?-1:r&4?1:0}),i}Qi.uniqueSort=S6});var Qw=Y(Lu=>{A();"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.getFeed=void 0;var O6=vp(),Ma=Sp();function x6(i){var t=Iu(R6,i);return t?t.name==="feed"?_6(t):T6(t):null}Lu.getFeed=x6;function _6(i){var t,n=i.children,r={type:"atom",items:(0,Ma.getElementsByTagName)("entry",n).map(function(l){var u,d=l.children,f={media:Xw(d)};zn(f,"id","id",d),zn(f,"title","title",d);var m=(u=Iu("link",d))===null||u===void 0?void 0:u.attribs.href;m&&(f.link=m);var p=ko("summary",d)||ko("content",d);p&&(f.description=p);var E=ko("updated",d);return E&&(f.pubDate=new Date(E)),f})};zn(r,"id","id",n),zn(r,"title","title",n);var o=(t=Iu("link",n))===null||t===void 0?void 0:t.attribs.href;o&&(r.link=o),zn(r,"description","subtitle",n);var a=ko("updated",n);return a&&(r.updated=new Date(a)),zn(r,"author","email",n,!0),r}function T6(i){var t,n,r=(n=(t=Iu("channel",i.children))===null||t===void 0?void 0:t.children)!==null&&n!==void 0?n:[],o={type:i.name.substr(0,3),id:"",items:(0,Ma.getElementsByTagName)("item",i.children).map(function(l){var u=l.children,d={media:Xw(u)};zn(d,"id","guid",u),zn(d,"title","title",u),zn(d,"link","link",u),zn(d,"description","description",u);var f=ko("pubDate",u);return f&&(d.pubDate=new Date(f)),d})};zn(o,"title","title",r),zn(o,"link","link",r),zn(o,"description","description",r);var a=ko("lastBuildDate",r);return a&&(o.updated=new Date(a)),zn(o,"author","managingEditor",r,!0),o}var C6=["url","type","lang"],A6=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Xw(i){return(0,Ma.getElementsByTagName)("media:content",i).map(function(t){for(var n=t.attribs,r={medium:n.medium,isDefault:!!n.isDefault},o=0,a=C6;o<a.length;o++){var l=a[o];n[l]&&(r[l]=n[l])}for(var u=0,d=A6;u<d.length;u++){var l=d[u];n[l]&&(r[l]=parseInt(n[l],10))}return n.expression&&(r.expression=n.expression),r})}function Iu(i,t){return(0,Ma.getElementsByTagName)(i,t,!0,1)[0]}function ko(i,t,n){return n===void 0&&(n=!1),(0,O6.textContent)((0,Ma.getElementsByTagName)(i,t,n,1)).trim()}function zn(i,t,n,r,o){o===void 0&&(o=!1);var a=ko(n,r,o);a&&(i[t]=a)}function R6(i){return i==="rss"||i==="feed"||i==="rdf:RDF"}});var Op=Y(kt=>{A();"use strict";var M6=kt&&kt.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n),Object.defineProperty(i,r,{enumerable:!0,get:function(){return t[n]}})}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),No=kt&&kt.__exportStar||function(i,t){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&M6(t,i,n)};Object.defineProperty(kt,"__esModule",{value:!0});kt.hasChildren=kt.isDocument=kt.isComment=kt.isText=kt.isCDATA=kt.isTag=void 0;No(vp(),kt);No(qw(),kt);No(zw(),kt);No(Ep(),kt);No(Sp(),kt);No(Zw(),kt);No(Qw(),kt);var Bs=Ti();Object.defineProperty(kt,"isTag",{enumerable:!0,get:function(){return Bs.isTag}});Object.defineProperty(kt,"isCDATA",{enumerable:!0,get:function(){return Bs.isCDATA}});Object.defineProperty(kt,"isText",{enumerable:!0,get:function(){return Bs.isText}});Object.defineProperty(kt,"isComment",{enumerable:!0,get:function(){return Bs.isComment}});Object.defineProperty(kt,"isDocument",{enumerable:!0,get:function(){return Bs.isDocument}});Object.defineProperty(kt,"hasChildren",{enumerable:!0,get:function(){return Bs.hasChildren}})});var _p=Y(vn=>{A();"use strict";var P6=vn&&vn.__extends||function(){var i=function(t,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a])},i(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),I6=vn&&vn.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n),Object.defineProperty(i,r,{enumerable:!0,get:function(){return t[n]}})}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),L6=vn&&vn.__setModuleDefault||(Object.create?function(i,t){Object.defineProperty(i,"default",{enumerable:!0,value:t})}:function(i,t){i.default=t}),B6=vn&&vn.__importStar||function(i){if(i&&i.__esModule)return i;var t={};if(i!=null)for(var n in i)n!=="default"&&Object.prototype.hasOwnProperty.call(i,n)&&I6(t,i,n);return L6(t,i),t},k6=vn&&vn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(vn,"__esModule",{value:!0});vn.parseFeed=vn.FeedHandler=void 0;var N6=k6(Ti()),Bu=B6(Op()),H6=ap(),e2;(function(i){i[i.image=0]="image",i[i.audio=1]="audio",i[i.video=2]="video",i[i.document=3]="document",i[i.executable=4]="executable"})(e2||(e2={}));var t2;(function(i){i[i.sample=0]="sample",i[i.full=1]="full",i[i.nonstop=2]="nonstop"})(t2||(t2={}));var n2=function(i){P6(t,i);function t(n,r){var o=this;return typeof n=="object"&&(n=void 0,r=n),o=i.call(this,n,r)||this,o}return t.prototype.onend=function(){var n,r,o=ku(j6,this.dom);if(!o){this.handleCallback(new Error("couldn't find root of feed"));return}var a={};if(o.name==="feed"){var l=o.children;a.type="atom",Wn(a,"id","id",l),Wn(a,"title","title",l);var u=i2("href",ku("link",l));u&&(a.link=u),Wn(a,"description","subtitle",l);var d=Ho("updated",l);d&&(a.updated=new Date(d)),Wn(a,"author","email",l,!0),a.items=xp("entry",l).map(function(f){var m={},p=f.children;Wn(m,"id","id",p),Wn(m,"title","title",p);var E=i2("href",ku("link",p));E&&(m.link=E);var S=Ho("summary",p)||Ho("content",p);S&&(m.description=S);var v=Ho("updated",p);return v&&(m.pubDate=new Date(v)),m.media=r2(p),m})}else{var l=(r=(n=ku("channel",o.children))===null||n===void 0?void 0:n.children)!==null&&r!==void 0?r:[];a.type=o.name.substr(0,3),a.id="",Wn(a,"title","title",l),Wn(a,"link","link",l),Wn(a,"description","description",l);var d=Ho("lastBuildDate",l);d&&(a.updated=new Date(d)),Wn(a,"author","managingEditor",l,!0),a.items=xp("item",o.children).map(function(p){var E={},S=p.children;Wn(E,"id","guid",S),Wn(E,"title","title",S),Wn(E,"link","link",S),Wn(E,"description","description",S);var v=Ho("pubDate",S);return v&&(E.pubDate=new Date(v)),E.media=r2(S),E})}this.feed=a,this.handleCallback(null)},t}(N6.default);vn.FeedHandler=n2;function r2(i){return xp("media:content",i).map(function(t){var n={medium:t.attribs.medium,isDefault:!!t.attribs.isDefault};return t.attribs.url&&(n.url=t.attribs.url),t.attribs.fileSize&&(n.fileSize=parseInt(t.attribs.fileSize,10)),t.attribs.type&&(n.type=t.attribs.type),t.attribs.expression&&(n.expression=t.attribs.expression),t.attribs.bitrate&&(n.bitrate=parseInt(t.attribs.bitrate,10)),t.attribs.framerate&&(n.framerate=parseInt(t.attribs.framerate,10)),t.attribs.samplingrate&&(n.samplingrate=parseInt(t.attribs.samplingrate,10)),t.attribs.channels&&(n.channels=parseInt(t.attribs.channels,10)),t.attribs.duration&&(n.duration=parseInt(t.attribs.duration,10)),t.attribs.height&&(n.height=parseInt(t.attribs.height,10)),t.attribs.width&&(n.width=parseInt(t.attribs.width,10)),t.attribs.lang&&(n.lang=t.attribs.lang),n})}function xp(i,t){return Bu.getElementsByTagName(i,t,!0)}function ku(i,t){return Bu.getElementsByTagName(i,t,!0,1)[0]}function Ho(i,t,n){return n===void 0&&(n=!1),Bu.getText(Bu.getElementsByTagName(i,t,n,1)).trim()}function i2(i,t){if(!t)return null;var n=t.attribs;return n[i]}function Wn(i,t,n,r,o){o===void 0&&(o=!1);var a=Ho(n,r,o);a&&(i[t]=a)}function j6(i){return i==="rss"||i==="feed"||i==="rdf:RDF"}function D6(i,t){t===void 0&&(t={xmlMode:!0});var n=new n2(t);return new H6.Parser(n,t).end(i),n.feed}vn.parseFeed=D6});var l2=Y(mt=>{A();"use strict";var o2=mt&&mt.__createBinding||(Object.create?function(i,t,n,r){r===void 0&&(r=n),Object.defineProperty(i,r,{enumerable:!0,get:function(){return t[n]}})}:function(i,t,n,r){r===void 0&&(r=n),i[r]=t[n]}),F6=mt&&mt.__setModuleDefault||(Object.create?function(i,t){Object.defineProperty(i,"default",{enumerable:!0,value:t})}:function(i,t){i.default=t}),s2=mt&&mt.__importStar||function(i){if(i&&i.__esModule)return i;var t={};if(i!=null)for(var n in i)n!=="default"&&Object.prototype.hasOwnProperty.call(i,n)&&o2(t,i,n);return F6(t,i),t},$6=mt&&mt.__exportStar||function(i,t){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&o2(t,i,n)},U6=mt&&mt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(mt,"__esModule",{value:!0});mt.RssHandler=mt.DefaultHandler=mt.DomUtils=mt.ElementType=mt.Tokenizer=mt.createDomStream=mt.parseDOM=mt.parseDocument=mt.DomHandler=mt.Parser=void 0;var Tp=ap();Object.defineProperty(mt,"Parser",{enumerable:!0,get:function(){return Tp.Parser}});var Nu=Ti();Object.defineProperty(mt,"DomHandler",{enumerable:!0,get:function(){return Nu.DomHandler}});Object.defineProperty(mt,"DefaultHandler",{enumerable:!0,get:function(){return Nu.DomHandler}});function a2(i,t){var n=new Nu.DomHandler(void 0,t);return new Tp.Parser(n,t).end(i),n.root}mt.parseDocument=a2;function q6(i,t){return a2(i,t).children}mt.parseDOM=q6;function z6(i,t,n){var r=new Nu.DomHandler(i,t,n);return new Tp.Parser(r,t)}mt.createDomStream=z6;var W6=op();Object.defineProperty(mt,"Tokenizer",{enumerable:!0,get:function(){return U6(W6).default}});var G6=s2(Ps());mt.ElementType=G6;$6(_p(),mt);mt.DomUtils=s2(Op());var V6=_p();Object.defineProperty(mt,"RssHandler",{enumerable:!0,get:function(){return V6.FeedHandler}})});var u2=Y((hH,c2)=>{A();"use strict";c2.exports=i=>{if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var f2=Y(d2=>{A();function Ai(i){if(typeof i!="object")return i;var t,n,r=Object.prototype.toString.call(i);if(r==="[object Object]"){if(i.constructor!==Object&&typeof i.constructor=="function"){n=new i.constructor;for(t in i)n.hasOwnProperty(t)&&n[t]!==i[t]&&(n[t]=Ai(i[t]))}else{n={};for(t in i)t==="__proto__"?Object.defineProperty(n,t,{value:Ai(i[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=Ai(i[t])}return n}if(r==="[object Array]"){for(t=i.length,n=Array(t);t--;)n[t]=Ai(i[t]);return n}return r==="[object Set]"?(n=new Set,i.forEach(function(o){n.add(Ai(o))}),n):r==="[object Map]"?(n=new Map,i.forEach(function(o,a){n.set(Ai(a),Ai(o))}),n):r==="[object Date]"?new Date(+i):r==="[object RegExp]"?(n=new RegExp(i.source,i.flags),n.lastIndex=i.lastIndex,n):r==="[object DataView]"?new i.constructor(Ai(i.buffer)):r==="[object ArrayBuffer]"?i.slice(0):r.slice(-6)==="Array]"?new i.constructor(i):i}d2.klona=Ai});var p2=Y(Cp=>{A();"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});function h2(i){return Object.prototype.toString.call(i)==="[object Object]"}function J6(i){var t,n;return h2(i)===!1?!1:(t=i.constructor,t===void 0?!0:(n=t.prototype,!(h2(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}Cp.isPlainObject=J6});var b2=Y((mH,y2)=>{A();"use strict";var K6=function(t){return Y6(t)&&!Z6(t)};function Y6(i){return!!i&&typeof i=="object"}function Z6(i){var t=Object.prototype.toString.call(i);return t==="[object RegExp]"||t==="[object Date]"||e5(i)}var X6=typeof Symbol=="function"&&Symbol.for,Q6=X6?Symbol.for("react.element"):60103;function e5(i){return i.$$typeof===Q6}function t5(i){return Array.isArray(i)?[]:{}}function Pa(i,t){return t.clone!==!1&&t.isMergeableObject(i)?ks(t5(i),i,t):i}function n5(i,t,n){return i.concat(t).map(function(r){return Pa(r,n)})}function r5(i,t){if(!t.customMerge)return ks;var n=t.customMerge(i);return typeof n=="function"?n:ks}function i5(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(t){return i.propertyIsEnumerable(t)}):[]}function g2(i){return Object.keys(i).concat(i5(i))}function m2(i,t){try{return t in i}catch(n){return!1}}function o5(i,t){return m2(i,t)&&!(Object.hasOwnProperty.call(i,t)&&Object.propertyIsEnumerable.call(i,t))}function s5(i,t,n){var r={};return n.isMergeableObject(i)&&g2(i).forEach(function(o){r[o]=Pa(i[o],n)}),g2(t).forEach(function(o){o5(i,o)||(m2(i,o)&&n.isMergeableObject(t[o])?r[o]=r5(o,n)(i[o],t[o],n):r[o]=Pa(t[o],n))}),r}function ks(i,t,n){n=n||{},n.arrayMerge=n.arrayMerge||n5,n.isMergeableObject=n.isMergeableObject||K6,n.cloneUnlessOtherwiseSpecified=Pa;var r=Array.isArray(t),o=Array.isArray(i),a=r===o;return a?r?n.arrayMerge(i,t,n):s5(i,t,n):Pa(t,n)}ks.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return ks(r,o,n)},{})};var a5=ks;y2.exports=a5});var w2=Y((v2,Hu)=>{A();(function(i,t){typeof define=="function"&&define.amd?define([],t):typeof Hu=="object"&&Hu.exports?Hu.exports=t():i.parseSrcset=t()})(v2,function(){return function(i){function t(T){return T===" "||T===" "||T===`
14
- `||T==="\f"||T==="\r"}function n(T){var C,_=T.exec(i.substring(y));if(_)return C=_[0],y+=C.length,C}for(var r=i.length,o=/^[ \t\n\r\u000c]+/,a=/^[, \t\n\r\u000c]+/,l=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,d=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m,p,E,S,v,y=0,b=[];;){if(n(a),y>=r)return b;m=n(l),p=[],m.slice(-1)===","?(m=m.replace(u,""),O()):w()}function w(){for(n(o),E="",S="in descriptor";;){if(v=i.charAt(y),S==="in descriptor")if(t(v))E&&(p.push(E),E="",S="after descriptor");else if(v===","){y+=1,E&&p.push(E),O();return}else if(v==="(")E=E+v,S="in parens";else if(v===""){E&&p.push(E),O();return}else E=E+v;else if(S==="in parens")if(v===")")E=E+v,S="in descriptor";else if(v===""){p.push(E),O();return}else E=E+v;else if(S==="after descriptor"&&!t(v))if(v===""){O();return}else S="in descriptor",y-=1;y+=1}}function O(){var T=!1,C,_,P,D,I={},q,U,k,B,N;for(D=0;D<p.length;D++)q=p[D],U=q[q.length-1],k=q.substring(0,q.length-1),B=parseInt(k,10),N=parseFloat(k),d.test(k)&&U==="w"?((C||_)&&(T=!0),B===0?T=!0:C=B):f.test(k)&&U==="x"?((C||_||P)&&(T=!0),N<0?T=!0:_=N):d.test(k)&&U==="h"?((P||_)&&(T=!0),B===0?T=!0:P=B):T=!0;T?console&&console.log&&console.log("Invalid srcset descriptor found in '"+i+"' at '"+q+"'."):(I.url=m,C&&(I.w=C),_&&(I.d=_),P&&(I.h=P),b.push(I))}}})});var S2=Y((yH,Ap)=>{A();var Nt=String,E2=function(){return{isColorSupported:!1,reset:Nt,bold:Nt,dim:Nt,italic:Nt,underline:Nt,inverse:Nt,hidden:Nt,strikethrough:Nt,black:Nt,red:Nt,green:Nt,yellow:Nt,blue:Nt,magenta:Nt,cyan:Nt,white:Nt,gray:Nt,bgBlack:Nt,bgRed:Nt,bgGreen:Nt,bgYellow:Nt,bgBlue:Nt,bgMagenta:Nt,bgCyan:Nt,bgWhite:Nt}};Ap.exports=E2();Ap.exports.createColors=E2});var Rp=Y(()=>{A()});var ju=Y((wH,_2)=>{A();"use strict";var O2=S2(),x2=Rp(),Ns=class extends Error{constructor(t,n,r,o,a,l){super(t);this.name="CssSyntaxError",this.reason=t,a&&(this.file=a),o&&(this.source=o),l&&(this.plugin=l),typeof n!="undefined"&&typeof r!="undefined"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ns)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=O2.isColorSupported),x2&&t&&(n=x2(n));let r=n.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,r.length),l=String(a).length,u,d;if(t){let{bold:f,red:m,gray:p}=O2.createColors(!0);u=E=>f(m(E)),d=E=>p(E)}else u=d=f=>f;return r.slice(o,a).map((f,m)=>{let p=o+1+m,E=" "+(" "+p).slice(-l)+" | ";if(p===this.line){let S=d(E.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+d(E)+f+`
14
+ `||T==="\f"||T==="\r"}function n(T){var C,_=T.exec(i.substring(y));if(_)return C=_[0],y+=C.length,C}for(var r=i.length,o=/^[ \t\n\r\u000c]+/,a=/^[, \t\n\r\u000c]+/,l=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,d=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m,p,E,S,v,y=0,b=[];;){if(n(a),y>=r)return b;m=n(l),p=[],m.slice(-1)===","?(m=m.replace(u,""),O()):w()}function w(){for(n(o),E="",S="in descriptor";;){if(v=i.charAt(y),S==="in descriptor")if(t(v))E&&(p.push(E),E="",S="after descriptor");else if(v===","){y+=1,E&&p.push(E),O();return}else if(v==="(")E=E+v,S="in parens";else if(v===""){E&&p.push(E),O();return}else E=E+v;else if(S==="in parens")if(v===")")E=E+v,S="in descriptor";else if(v===""){p.push(E),O();return}else E=E+v;else if(S==="after descriptor"&&!t(v))if(v===""){O();return}else S="in descriptor",y-=1;y+=1}}function O(){var T=!1,C,_,I,D,P={},q,F,k,B,N;for(D=0;D<p.length;D++)q=p[D],F=q[q.length-1],k=q.substring(0,q.length-1),B=parseInt(k,10),N=parseFloat(k),d.test(k)&&F==="w"?((C||_)&&(T=!0),B===0?T=!0:C=B):f.test(k)&&F==="x"?((C||_||I)&&(T=!0),N<0?T=!0:_=N):d.test(k)&&F==="h"?((I||_)&&(T=!0),B===0?T=!0:I=B):T=!0;T?console&&console.log&&console.log("Invalid srcset descriptor found in '"+i+"' at '"+q+"'."):(P.url=m,C&&(P.w=C),_&&(P.d=_),I&&(P.h=I),b.push(P))}}})});var S2=Y((yH,Ap)=>{A();var Nt=String,E2=function(){return{isColorSupported:!1,reset:Nt,bold:Nt,dim:Nt,italic:Nt,underline:Nt,inverse:Nt,hidden:Nt,strikethrough:Nt,black:Nt,red:Nt,green:Nt,yellow:Nt,blue:Nt,magenta:Nt,cyan:Nt,white:Nt,gray:Nt,bgBlack:Nt,bgRed:Nt,bgGreen:Nt,bgYellow:Nt,bgBlue:Nt,bgMagenta:Nt,bgCyan:Nt,bgWhite:Nt}};Ap.exports=E2();Ap.exports.createColors=E2});var Rp=Y(()=>{A()});var ju=Y((wH,_2)=>{A();"use strict";var O2=S2(),x2=Rp(),Ns=class extends Error{constructor(t,n,r,o,a,l){super(t);this.name="CssSyntaxError",this.reason=t,a&&(this.file=a),o&&(this.source=o),l&&(this.plugin=l),typeof n!="undefined"&&typeof r!="undefined"&&(typeof n=="number"?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ns)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let n=this.source;t==null&&(t=O2.isColorSupported),x2&&t&&(n=x2(n));let r=n.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,r.length),l=String(a).length,u,d;if(t){let{bold:f,red:m,gray:p}=O2.createColors(!0);u=E=>f(m(E)),d=E=>p(E)}else u=d=f=>f;return r.slice(o,a).map((f,m)=>{let p=o+1+m,E=" "+(" "+p).slice(-l)+" | ";if(p===this.line){let S=d(E.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+d(E)+f+`
15
15
  `+S+u("^")}return" "+d(E)+f}).join(`
16
16
  `)}toString(){let t=this.showSourceCode();return t&&(t=`
17
17
 
@@ -34,7 +34,7 @@ var D2Reader=(()=>{var oM=Object.create;var ds=Object.defineProperty,sM=Object.d
34
34
  `)&&(n=`\r
35
35
  `),this.css+=n+"/*# sourceMappingURL="+t+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Vu.fromSourceMap(t)}else this.map=new Vu({file:this.outputFile()}),this.map.addMapping({source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>",generated:{line:1,column:0},original:{line:1,column:0}});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(t){if(t.indexOf("<")===0||/^\w+:\/\//.test(t)||this.mapOpts.absolute)return t;let n=this.opts.to?Ju(this.opts.to):".";return typeof this.mapOpts.annotation=="string"&&(n=Ju(U2(n,this.mapOpts.annotation))),t=q2(n,t),t}toUrl(t){return z2==="\\"&&(t=t.replace(/\\/g,"/")),encodeURI(t).replace(/[#?]/g,encodeURIComponent)}sourcePath(t){if(this.mapOpts.from)return this.toUrl(this.mapOpts.from);if(this.mapOpts.absolute){if(W2)return W2(t.source.input.from).toString();throw new Error("`map.absolute` option is not available in this PostCSS build")}else return this.toUrl(this.path(t.source.input.from))}generateString(){this.css="",this.map=new Vu({file:this.outputFile()});let t=1,n=1,r="<no source>",o={source:"",generated:{line:0,column:0},original:{line:0,column:0}},a,l;this.stringify(this.root,(u,d,f)=>{if(this.css+=u,d&&f!=="end"&&(o.generated.line=t,o.generated.column=n-1,d.source&&d.source.start?(o.source=this.sourcePath(d),o.original.line=d.source.start.line,o.original.column=d.source.start.column-1,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,this.map.addMapping(o))),a=u.match(/\n/g),a?(t+=a.length,l=u.lastIndexOf(`
36
36
  `),n=u.length-l):n+=u.length,d&&f!=="start"){let m=d.parent||{raws:{}};(d.type!=="decl"||d!==m.last||m.raws.semicolon)&&(d.source&&d.source.end?(o.source=this.sourcePath(d),o.original.line=d.source.end.line,o.original.column=d.source.end.column-1,o.generated.line=t,o.generated.column=n-2,this.map.addMapping(o)):(o.source=r,o.original.line=1,o.original.column=0,o.generated.line=t,o.generated.column=n-1,this.map.addMapping(o)))}})}generate(){if(this.clearAnnotation(),R5&&A5&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}};V2.exports=G2});var ja=Y((jH,J2)=>{A();"use strict";var M5=La(),Ku=class extends M5{constructor(t){super(t);this.type="comment"}};J2.exports=Ku;Ku.default=Ku});var eo=Y((DH,nE)=>{A();"use strict";var{isClean:K2,my:Y2}=Du(),Z2=Ba(),X2=ja(),P5=La(),Q2,Up,qp;function eE(i){return i.map(t=>(t.nodes&&(t.nodes=eE(t.nodes)),delete t.source,t))}function tE(i){if(i[K2]=!1,i.proxyOf.nodes)for(let t of i.proxyOf.nodes)tE(t)}var Fr=class extends P5{push(t){return t.parent=this,this.proxyOf.nodes.push(t),this}each(t){if(!this.proxyOf.nodes)return;let n=this.getIterator(),r,o;for(;this.indexes[n]<this.proxyOf.nodes.length&&(r=this.indexes[n],o=t(this.proxyOf.nodes[r],r),o!==!1);)this.indexes[n]+=1;return delete this.indexes[n],o}walk(t){return this.each((n,r)=>{let o;try{o=t(n,r)}catch(a){throw n.addToError(a)}return o!==!1&&n.walk&&(o=n.walk(t)),o})}walkDecls(t,n){return n?t instanceof RegExp?this.walk((r,o)=>{if(r.type==="decl"&&t.test(r.prop))return n(r,o)}):this.walk((r,o)=>{if(r.type==="decl"&&r.prop===t)return n(r,o)}):(n=t,this.walk((r,o)=>{if(r.type==="decl")return n(r,o)}))}walkRules(t,n){return n?t instanceof RegExp?this.walk((r,o)=>{if(r.type==="rule"&&t.test(r.selector))return n(r,o)}):this.walk((r,o)=>{if(r.type==="rule"&&r.selector===t)return n(r,o)}):(n=t,this.walk((r,o)=>{if(r.type==="rule")return n(r,o)}))}walkAtRules(t,n){return n?t instanceof RegExp?this.walk((r,o)=>{if(r.type==="atrule"&&t.test(r.name))return n(r,o)}):this.walk((r,o)=>{if(r.type==="atrule"&&r.name===t)return n(r,o)}):(n=t,this.walk((r,o)=>{if(r.type==="atrule")return n(r,o)}))}walkComments(t){return this.walk((n,r)=>{if(n.type==="comment")return t(n,r)})}append(...t){for(let n of t){let r=this.normalize(n,this.last);for(let o of r)this.proxyOf.nodes.push(o)}return this.markDirty(),this}prepend(...t){t=t.reverse();for(let n of t){let r=this.normalize(n,this.first,"prepend").reverse();for(let o of r)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+r.length}return this.markDirty(),this}cleanRaws(t){if(super.cleanRaws(t),this.nodes)for(let n of this.nodes)n.cleanRaws(t)}insertBefore(t,n){t=this.index(t);let r=t===0?"prepend":!1,o=this.normalize(n,this.proxyOf.nodes[t],r).reverse();for(let l of o)this.proxyOf.nodes.splice(t,0,l);let a;for(let l in this.indexes)a=this.indexes[l],t<=a&&(this.indexes[l]=a+o.length);return this.markDirty(),this}insertAfter(t,n){t=this.index(t);let r=this.normalize(n,this.proxyOf.nodes[t]).reverse();for(let a of r)this.proxyOf.nodes.splice(t+1,0,a);let o;for(let a in this.indexes)o=this.indexes[a],t<o&&(this.indexes[a]=o+r.length);return this.markDirty(),this}removeChild(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);let n;for(let r in this.indexes)n=this.indexes[r],n>=t&&(this.indexes[r]=n-1);return this.markDirty(),this}removeAll(){for(let t of this.proxyOf.nodes)t.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(t,n,r){return r||(r=n,n={}),this.walkDecls(o=>{n.props&&!n.props.includes(o.prop)||n.fast&&!o.value.includes(n.fast)||(o.value=o.value.replace(t,r))}),this.markDirty(),this}every(t){return this.nodes.every(t)}some(t){return this.nodes.some(t)}index(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))}get first(){if(!!this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(!!this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(t,n){if(typeof t=="string")t=eE(Q2(t).nodes);else if(Array.isArray(t)){t=t.slice(0);for(let o of t)o.parent&&o.parent.removeChild(o,"ignore")}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(let o of t)o.parent&&o.parent.removeChild(o,"ignore")}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Z2(t)]}else if(t.selector)t=[new Up(t)];else if(t.name)t=[new qp(t)];else if(t.text)t=[new X2(t)];else throw new Error("Unknown node type in node creation");return t.map(o=>(o[Y2]||Fr.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[K2]&&tE(o),typeof o.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(o.raws.before=n.raws.before.replace(/\S/g,"")),o.parent=this,o))}getProxyProcessor(){return{set(t,n,r){return t[n]===r||(t[n]=r,(n==="name"||n==="params"||n==="selector")&&t.markDirty()),!0},get(t,n){return n==="proxyOf"?t:t[n]?n==="each"||typeof n=="string"&&n.startsWith("walk")?(...r)=>t[n](...r.map(o=>typeof o=="function"?(a,l)=>o(a.toProxy(),l):o)):n==="every"||n==="some"?r=>t[n]((o,...a)=>r(o.toProxy(),...a)):n==="root"?()=>t.root().toProxy():n==="nodes"?t.nodes.map(r=>r.toProxy()):n==="first"||n==="last"?t[n].toProxy():t[n]:t[n]}}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach;return this.indexes[t]=0,t}};Fr.registerParse=i=>{Q2=i};Fr.registerRule=i=>{Up=i};Fr.registerAtRule=i=>{qp=i};nE.exports=Fr;Fr.default=Fr;Fr.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,qp.prototype):i.type==="rule"?Object.setPrototypeOf(i,Up.prototype):i.type==="decl"?Object.setPrototypeOf(i,Z2.prototype):i.type==="comment"&&Object.setPrototypeOf(i,X2.prototype),i[Y2]=!0,i.nodes&&i.nodes.forEach(t=>{Fr.rebuild(t)})}});var Yu=Y((FH,oE)=>{A();"use strict";var I5=eo(),rE,iE,Hs=class extends I5{constructor(t){super(Fe({type:"document"},t));this.nodes||(this.nodes=[])}toResult(t={}){return new rE(new iE,this,t).stringify()}};Hs.registerLazyResult=i=>{rE=i};Hs.registerProcessor=i=>{iE=i};oE.exports=Hs;Hs.default=Hs});var zp=Y(($H,aE)=>{A();"use strict";var sE={};aE.exports=function(t){sE[t]||(sE[t]=!0,typeof console!="undefined"&&console.warn&&console.warn(t))}});var Wp=Y((UH,lE)=>{A();"use strict";var Zu=class{constructor(t,n={}){if(this.type="warning",this.text=t,n.node&&n.node.source){let r=n.node.rangeBy(n);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in n)this[r]=n[r]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};lE.exports=Zu;Zu.default=Zu});var Qu=Y((qH,cE)=>{A();"use strict";var L5=Wp(),Xu=class{constructor(t,n,r){this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new L5(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(t=>t.type==="warning")}get content(){return this.css}};cE.exports=Xu;Xu.default=Xu});var pE=Y((zH,hE)=>{A();"use strict";var Gp="'".charCodeAt(0),uE='"'.charCodeAt(0),ed="\\".charCodeAt(0),dE="/".charCodeAt(0),td=`
37
- `.charCodeAt(0),Da=" ".charCodeAt(0),nd="\f".charCodeAt(0),rd=" ".charCodeAt(0),id="\r".charCodeAt(0),B5="[".charCodeAt(0),k5="]".charCodeAt(0),N5="(".charCodeAt(0),H5=")".charCodeAt(0),j5="{".charCodeAt(0),D5="}".charCodeAt(0),F5=";".charCodeAt(0),$5="*".charCodeAt(0),U5=":".charCodeAt(0),q5="@".charCodeAt(0),od=/[\t\n\f\r "#'()/;[\\\]{}]/g,sd=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,z5=/.[\n"'(/\\]/,fE=/[\da-f]/i;hE.exports=function(t,n={}){let r=t.css.valueOf(),o=n.ignoreErrors,a,l,u,d,f,m,p,E,S,v,y=r.length,b=0,w=[],O=[];function T(){return b}function C(I){throw t.error("Unclosed "+I,b)}function _(){return O.length===0&&b>=y}function P(I){if(O.length)return O.pop();if(b>=y)return;let q=I?I.ignoreUnclosed:!1;switch(a=r.charCodeAt(b),a){case td:case Da:case rd:case id:case nd:{l=b;do l+=1,a=r.charCodeAt(l);while(a===Da||a===td||a===rd||a===id||a===nd);v=["space",r.slice(b,l)],b=l-1;break}case B5:case k5:case j5:case D5:case U5:case F5:case H5:{let U=String.fromCharCode(a);v=[U,U,b];break}case N5:{if(E=w.length?w.pop()[1]:"",S=r.charCodeAt(b+1),E==="url"&&S!==Gp&&S!==uE&&S!==Da&&S!==td&&S!==rd&&S!==nd&&S!==id){l=b;do{if(m=!1,l=r.indexOf(")",l+1),l===-1)if(o||q){l=b;break}else C("bracket");for(p=l;r.charCodeAt(p-1)===ed;)p-=1,m=!m}while(m);v=["brackets",r.slice(b,l+1),b,l],b=l}else l=r.indexOf(")",b+1),d=r.slice(b,l+1),l===-1||z5.test(d)?v=["(","(",b]:(v=["brackets",d,b,l],b=l);break}case Gp:case uE:{u=a===Gp?"'":'"',l=b;do{if(m=!1,l=r.indexOf(u,l+1),l===-1)if(o||q){l=b+1;break}else C("string");for(p=l;r.charCodeAt(p-1)===ed;)p-=1,m=!m}while(m);v=["string",r.slice(b,l+1),b,l],b=l;break}case q5:{od.lastIndex=b+1,od.test(r),od.lastIndex===0?l=r.length-1:l=od.lastIndex-2,v=["at-word",r.slice(b,l+1),b,l],b=l;break}case ed:{for(l=b,f=!0;r.charCodeAt(l+1)===ed;)l+=1,f=!f;if(a=r.charCodeAt(l+1),f&&a!==dE&&a!==Da&&a!==td&&a!==rd&&a!==id&&a!==nd&&(l+=1,fE.test(r.charAt(l)))){for(;fE.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===Da&&(l+=1)}v=["word",r.slice(b,l+1),b,l],b=l;break}default:{a===dE&&r.charCodeAt(b+1)===$5?(l=r.indexOf("*/",b+2)+1,l===0&&(o||q?l=r.length:C("comment")),v=["comment",r.slice(b,l+1),b,l],b=l):(sd.lastIndex=b+1,sd.test(r),sd.lastIndex===0?l=r.length-1:l=sd.lastIndex-2,v=["word",r.slice(b,l+1),b,l],w.push(v),b=l);break}}return b++,v}function D(I){O.push(I)}return{back:D,nextToken:P,endOfFile:_,position:T}}});var ad=Y((WH,mE)=>{A();"use strict";var gE=eo(),Fa=class extends gE{constructor(t){super(t);this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};mE.exports=Fa;Fa.default=Fa;gE.registerAtRule(Fa)});var Ds=Y((GH,vE)=>{A();"use strict";var W5=eo(),yE,bE,js=class extends W5{constructor(t){super(t);this.type="root",this.nodes||(this.nodes=[])}removeChild(t,n){let r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}normalize(t,n,r){let o=super.normalize(t);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let a of o)a.raws.before=n.raws.before}return o}toResult(t={}){return new yE(new bE,this,t).stringify()}};js.registerLazyResult=i=>{yE=i};js.registerProcessor=i=>{bE=i};vE.exports=js;js.default=js});var Vp=Y((VH,wE)=>{A();"use strict";var $a={split(i,t,n){let r=[],o="",a=!1,l=0,u=!1,d=!1;for(let f of i)d?d=!1:f==="\\"?d=!0:u?f===u&&(u=!1):f==='"'||f==="'"?u=f:f==="("?l+=1:f===")"?l>0&&(l-=1):l===0&&t.includes(f)&&(a=!0),a?(o!==""&&r.push(o.trim()),o="",a=!1):o+=f;return(n||o!=="")&&r.push(o.trim()),r},space(i){let t=[" ",`
37
+ `.charCodeAt(0),Da=" ".charCodeAt(0),nd="\f".charCodeAt(0),rd=" ".charCodeAt(0),id="\r".charCodeAt(0),B5="[".charCodeAt(0),k5="]".charCodeAt(0),N5="(".charCodeAt(0),H5=")".charCodeAt(0),j5="{".charCodeAt(0),D5="}".charCodeAt(0),F5=";".charCodeAt(0),$5="*".charCodeAt(0),U5=":".charCodeAt(0),q5="@".charCodeAt(0),od=/[\t\n\f\r "#'()/;[\\\]{}]/g,sd=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,z5=/.[\n"'(/\\]/,fE=/[\da-f]/i;hE.exports=function(t,n={}){let r=t.css.valueOf(),o=n.ignoreErrors,a,l,u,d,f,m,p,E,S,v,y=r.length,b=0,w=[],O=[];function T(){return b}function C(P){throw t.error("Unclosed "+P,b)}function _(){return O.length===0&&b>=y}function I(P){if(O.length)return O.pop();if(b>=y)return;let q=P?P.ignoreUnclosed:!1;switch(a=r.charCodeAt(b),a){case td:case Da:case rd:case id:case nd:{l=b;do l+=1,a=r.charCodeAt(l);while(a===Da||a===td||a===rd||a===id||a===nd);v=["space",r.slice(b,l)],b=l-1;break}case B5:case k5:case j5:case D5:case U5:case F5:case H5:{let F=String.fromCharCode(a);v=[F,F,b];break}case N5:{if(E=w.length?w.pop()[1]:"",S=r.charCodeAt(b+1),E==="url"&&S!==Gp&&S!==uE&&S!==Da&&S!==td&&S!==rd&&S!==nd&&S!==id){l=b;do{if(m=!1,l=r.indexOf(")",l+1),l===-1)if(o||q){l=b;break}else C("bracket");for(p=l;r.charCodeAt(p-1)===ed;)p-=1,m=!m}while(m);v=["brackets",r.slice(b,l+1),b,l],b=l}else l=r.indexOf(")",b+1),d=r.slice(b,l+1),l===-1||z5.test(d)?v=["(","(",b]:(v=["brackets",d,b,l],b=l);break}case Gp:case uE:{u=a===Gp?"'":'"',l=b;do{if(m=!1,l=r.indexOf(u,l+1),l===-1)if(o||q){l=b+1;break}else C("string");for(p=l;r.charCodeAt(p-1)===ed;)p-=1,m=!m}while(m);v=["string",r.slice(b,l+1),b,l],b=l;break}case q5:{od.lastIndex=b+1,od.test(r),od.lastIndex===0?l=r.length-1:l=od.lastIndex-2,v=["at-word",r.slice(b,l+1),b,l],b=l;break}case ed:{for(l=b,f=!0;r.charCodeAt(l+1)===ed;)l+=1,f=!f;if(a=r.charCodeAt(l+1),f&&a!==dE&&a!==Da&&a!==td&&a!==rd&&a!==id&&a!==nd&&(l+=1,fE.test(r.charAt(l)))){for(;fE.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===Da&&(l+=1)}v=["word",r.slice(b,l+1),b,l],b=l;break}default:{a===dE&&r.charCodeAt(b+1)===$5?(l=r.indexOf("*/",b+2)+1,l===0&&(o||q?l=r.length:C("comment")),v=["comment",r.slice(b,l+1),b,l],b=l):(sd.lastIndex=b+1,sd.test(r),sd.lastIndex===0?l=r.length-1:l=sd.lastIndex-2,v=["word",r.slice(b,l+1),b,l],w.push(v),b=l);break}}return b++,v}function D(P){O.push(P)}return{back:D,nextToken:I,endOfFile:_,position:T}}});var ad=Y((WH,mE)=>{A();"use strict";var gE=eo(),Fa=class extends gE{constructor(t){super(t);this.type="atrule"}append(...t){return this.proxyOf.nodes||(this.nodes=[]),super.append(...t)}prepend(...t){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...t)}};mE.exports=Fa;Fa.default=Fa;gE.registerAtRule(Fa)});var Ds=Y((GH,vE)=>{A();"use strict";var W5=eo(),yE,bE,js=class extends W5{constructor(t){super(t);this.type="root",this.nodes||(this.nodes=[])}removeChild(t,n){let r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(t)}normalize(t,n,r){let o=super.normalize(t);if(n){if(r==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(let a of o)a.raws.before=n.raws.before}return o}toResult(t={}){return new yE(new bE,this,t).stringify()}};js.registerLazyResult=i=>{yE=i};js.registerProcessor=i=>{bE=i};vE.exports=js;js.default=js});var Vp=Y((VH,wE)=>{A();"use strict";var $a={split(i,t,n){let r=[],o="",a=!1,l=0,u=!1,d=!1;for(let f of i)d?d=!1:f==="\\"?d=!0:u?f===u&&(u=!1):f==='"'||f==="'"?u=f:f==="("?l+=1:f===")"?l>0&&(l-=1):l===0&&t.includes(f)&&(a=!0),a?(o!==""&&r.push(o.trim()),o="",a=!1):o+=f;return(n||o!=="")&&r.push(o.trim()),r},space(i){let t=[" ",`
38
38
  `," "];return $a.split(i,t)},comma(i){return $a.split(i,[","],!0)}};wE.exports=$a;$a.default=$a});var ld=Y((JH,SE)=>{A();"use strict";var EE=eo(),G5=Vp(),Ua=class extends EE{constructor(t){super(t);this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return G5.comma(this.selector)}set selectors(t){let n=this.selector?this.selector.match(/,\s*/):null,r=n?n[0]:","+this.raw("between","beforeOpen");this.selector=t.join(r)}};SE.exports=Ua;Ua.default=Ua;EE.registerRule(Ua)});var CE=Y((KH,TE)=>{A();"use strict";var V5=Ba(),J5=pE(),K5=ja(),Y5=ad(),Z5=Ds(),OE=ld(),xE={empty:!0,space:!0};function X5(i){for(let t=i.length-1;t>=0;t--){let n=i[t],r=n[3]||n[2];if(r)return r}}var _E=class{constructor(t){this.input=t,this.root=new Z5,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:t,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=J5(this.input)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}comment(t){let n=new K5;this.init(n,t[2]),n.source.end=this.getPosition(t[3]||t[2]);let r=t[1].slice(2,-2);if(/^\s*$/.test(r))n.text="",n.raws.left=r,n.raws.right="";else{let o=r.match(/^(\s*)([^]*\S)(\s*)$/);n.text=o[2],n.raws.left=o[1],n.raws.right=o[3]}}emptyRule(t){let n=new OE;this.init(n,t[2]),n.selector="",n.raws.between="",this.current=n}other(t){let n=!1,r=null,o=!1,a=null,l=[],u=t[1].startsWith("--"),d=[],f=t;for(;f;){if(r=f[0],d.push(f),r==="("||r==="[")a||(a=f),l.push(r==="("?")":"]");else if(u&&o&&r==="{")a||(a=f),l.push("}");else if(l.length===0)if(r===";")if(o){this.decl(d,u);return}else break;else if(r==="{"){this.rule(d);return}else if(r==="}"){this.tokenizer.back(d.pop()),n=!0;break}else r===":"&&(o=!0);else r===l[l.length-1]&&(l.pop(),l.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(n=!0),l.length>0&&this.unclosedBracket(a),n&&o){if(!u)for(;d.length&&(f=d[d.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(d.pop());this.decl(d,u)}else this.unknownWord(d)}rule(t){t.pop();let n=new OE;this.init(n,t[0][2]),n.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(n,"selector",t),this.current=n}decl(t,n){let r=new V5;this.init(r,t[0][2]);let o=t[t.length-1];for(o[0]===";"&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(o[3]||o[2]||X5(t));t[0][0]!=="word";)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop="";t.length;){let f=t[0][0];if(f===":"||f==="space"||f==="comment")break;r.prop+=t.shift()[1]}r.raws.between="";let a;for(;t.length;)if(a=t.shift(),a[0]===":"){r.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),r.raws.between+=a[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let l=[],u;for(;t.length&&(u=t[0][0],!(u!=="space"&&u!=="comment"));)l.push(t.shift());this.precheckMissedSemicolon(t);for(let f=t.length-1;f>=0;f--){if(a=t[f],a[1].toLowerCase()==="!important"){r.important=!0;let m=this.stringFrom(t,f);m=this.spacesFromEnd(t)+m,m!==" !important"&&(r.raws.important=m);break}else if(a[1].toLowerCase()==="important"){let m=t.slice(0),p="";for(let E=f;E>0;E--){let S=m[E][0];if(p.trim().indexOf("!")===0&&S!=="space")break;p=m.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,t=m)}if(a[0]!=="space"&&a[0]!=="comment")break}t.some(f=>f[0]!=="space"&&f[0]!=="comment")&&(r.raws.between+=l.map(f=>f[1]).join(""),l=[]),this.raw(r,"value",l.concat(t),n),r.value.includes(":")&&!n&&this.checkMissedSemicolon(t)}atrule(t){let n=new Y5;n.name=t[1].slice(1),n.name===""&&this.unnamedAtrule(n,t),this.init(n,t[2]);let r,o,a,l=!1,u=!1,d=[],f=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),r=t[0],r==="("||r==="["?f.push(r==="("?")":"]"):r==="{"&&f.length>0?f.push("}"):r===f[f.length-1]&&f.pop(),f.length===0)if(r===";"){n.source.end=this.getPosition(t[2]),this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(d.length>0){for(a=d.length-1,o=d[a];o&&o[0]==="space";)o=d[--a];o&&(n.source.end=this.getPosition(o[3]||o[2]))}this.end(t);break}else d.push(t);else d.push(t);if(this.tokenizer.endOfFile()){l=!0;break}}n.raws.between=this.spacesAndCommentsFromEnd(d),d.length?(n.raws.afterName=this.spacesAndCommentsFromStart(d),this.raw(n,"params",d),l&&(t=d[d.length-1],n.source.end=this.getPosition(t[3]||t[2]),this.spaces=n.raws.between,n.raws.between="")):(n.raws.afterName="",n.params=""),u&&(n.nodes=[],this.current=n)}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let n=this.current.nodes[this.current.nodes.length-1];n&&n.type==="rule"&&!n.raws.ownSemicolon&&(n.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let n=this.input.fromOffset(t);return{offset:t,line:n.line,column:n.col}}init(t,n){this.current.push(t),t.source={start:this.getPosition(n),input:this.input},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}raw(t,n,r,o){let a,l,u=r.length,d="",f=!0,m,p;for(let E=0;E<u;E+=1)a=r[E],l=a[0],l==="space"&&E===u-1&&!o?f=!1:l==="comment"?(p=r[E-1]?r[E-1][0]:"empty",m=r[E+1]?r[E+1][0]:"empty",!xE[p]&&!xE[m]?d.slice(-1)===","?f=!1:d+=a[1]:f=!1):d+=a[1];if(!f){let E=r.reduce((S,v)=>S+v[1],"");t.raws[n]={value:d,raw:E}}t[n]=d}spacesAndCommentsFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],!(n!=="space"&&n!=="comment"));)r=t.pop()[1]+r;return r}spacesAndCommentsFromStart(t){let n,r="";for(;t.length&&(n=t[0][0],!(n!=="space"&&n!=="comment"));)r+=t.shift()[1];return r}spacesFromEnd(t){let n,r="";for(;t.length&&(n=t[t.length-1][0],n==="space");)r=t.pop()[1]+r;return r}stringFrom(t,n){let r="";for(let o=n;o<t.length;o++)r+=t[o][1];return t.splice(n,t.length-n),r}colon(t){let n=0,r,o,a;for(let[l,u]of t.entries()){if(r=u,o=r[0],o==="("&&(n+=1),o===")"&&(n-=1),n===0&&o===":")if(!a)this.doubleColon(r);else{if(a[0]==="word"&&a[1]==="progid")continue;return l}a=r}return!1}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}unnamedAtrule(t,n){throw this.input.error("At-rule without name",{offset:n[2]},{offset:n[2]+n[1].length})}precheckMissedSemicolon(){}checkMissedSemicolon(t){let n=this.colon(t);if(n===!1)return;let r=0,o;for(let a=n-1;a>=0&&(o=t[a],!(o[0]!=="space"&&(r+=1,r===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}};TE.exports=_E});var ud=Y((YH,AE)=>{A();"use strict";var Q5=eo(),ek=CE(),tk=Ha();function cd(i,t){let n=new tk(i,t),r=new ek(n);try{r.parse()}catch(o){throw o}return r.root}AE.exports=cd;cd.default=cd;Q5.registerParse(cd)});var Yp=Y((XH,IE)=>{A();"use strict";var{isClean:ii,my:nk}=Du(),rk=$p(),ik=Ia(),ok=eo(),sk=Yu(),ZH=zp(),RE=Qu(),ak=ud(),lk=Ds(),ck={document:"Document",root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},uk={postcssPlugin:!0,prepare:!0,Once:!0,Document:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,DocumentExit:!0,OnceExit:!0},dk={postcssPlugin:!0,prepare:!0,Once:!0},Fs=0;function qa(i){return typeof i=="object"&&typeof i.then=="function"}function ME(i){let t=!1,n=ck[i.type];return i.type==="decl"?t=i.prop.toLowerCase():i.type==="atrule"&&(t=i.name.toLowerCase()),t&&i.append?[n,n+"-"+t,Fs,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:i.append?[n,Fs,n+"Exit"]:[n,n+"Exit"]}function PE(i){let t;return i.type==="document"?t=["Document",Fs,"DocumentExit"]:i.type==="root"?t=["Root",Fs,"RootExit"]:t=ME(i),{node:i,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function Jp(i){return i[ii]=!1,i.nodes&&i.nodes.forEach(t=>Jp(t)),i}var Kp={},Ri=class{constructor(t,n,r){this.stringified=!1,this.processed=!1;let o;if(typeof n=="object"&&n!==null&&(n.type==="root"||n.type==="document"))o=Jp(n);else if(n instanceof Ri||n instanceof RE)o=Jp(n.root),n.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let a=ak;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(n,r)}catch(l){this.processed=!0,this.error=l}o&&!o[nk]&&ok.rebuild(o)}this.result=new RE(t,o,r),this.helpers=jt(Fe({},Kp),{result:this.result,postcss:Kp}),this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?Fe(Fe({},a),a.prepare(this.result)):a)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(t,n){return this.async().then(t,n)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){let n=this.runOnRoot(t);if(qa(n))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ii];)t[ii]=!0,this.walkSync(t);if(this.listeners.OnceExit)if(t.type==="document")for(let n of t.nodes)this.visitSync(this.listeners.OnceExit,n);else this.visitSync(this.listeners.OnceExit,t)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,n=ik;t.syntax&&(n=t.syntax.stringify),t.stringifier&&(n=t.stringifier),n.stringify&&(n=n.stringify);let o=new rk(n,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}walkSync(t){t[ii]=!0;let n=ME(t);for(let r of n)if(r===Fs)t.nodes&&t.each(o=>{o[ii]||this.walkSync(o)});else{let o=this.listeners[r];if(o&&this.visitSync(o,t.toProxy()))return}}visitSync(t,n){for(let[r,o]of t){this.result.lastPlugin=r;let a;try{a=o(n,this.helpers)}catch(l){throw this.handleError(l,n.proxyOf)}if(n.type!=="root"&&n.type!=="document"&&!n.parent)return!0;if(qa(a))throw this.getAsyncError()}}runOnRoot(t){this.result.lastPlugin=t;try{if(typeof t=="object"&&t.Once){if(this.result.root.type==="document"){let n=this.result.root.nodes.map(r=>t.Once(r,this.helpers));return qa(n[0])?Promise.all(n):n}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(this.result.root,this.result)}catch(n){throw this.handleError(n)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,n){let r=this.result.lastPlugin;try{n&&n.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin?(t.plugin=r.postcssPlugin,t.setMessage()):r.postcssVersion}catch(o){console&&console.error&&console.error(o)}return t}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let n=this.plugins[t],r=this.runOnRoot(n);if(qa(r))try{await r}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[ii];){t[ii]=!0;let n=[PE(t)];for(;n.length>0;){let r=this.visitTick(n);if(qa(r))try{await r}catch(o){let a=n[n.length-1].node;throw this.handleError(o,a)}}}if(this.listeners.OnceExit)for(let[n,r]of this.listeners.OnceExit){this.result.lastPlugin=n;try{if(t.type==="document"){let o=t.nodes.map(a=>r(a,this.helpers));await Promise.all(o)}else await r(t,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let t=(n,r,o)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([n,o])};for(let n of this.plugins)if(typeof n=="object")for(let r in n){if(!uk[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${n.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!dk[r])if(typeof n[r]=="object")for(let o in n[r])o==="*"?t(n,r,n[r][o]):t(n,r+"-"+o.toLowerCase(),n[r][o]);else typeof n[r]=="function"&&t(n,r,n[r])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(t){let n=t[t.length-1],{node:r,visitors:o}=n;if(r.type!=="root"&&r.type!=="document"&&!r.parent){t.pop();return}if(o.length>0&&n.visitorIndex<o.length){let[l,u]=o[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===o.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=l;try{return u(r.toProxy(),this.helpers)}catch(d){throw this.handleError(d,r)}}if(n.iterator!==0){let l=n.iterator,u;for(;u=r.nodes[r.indexes[l]];)if(r.indexes[l]+=1,!u[ii]){u[ii]=!0,t.push(PE(u));return}n.iterator=0,delete r.indexes[l]}let a=n.events;for(;n.eventIndex<a.length;){let l=a[n.eventIndex];if(n.eventIndex+=1,l===Fs){r.nodes&&r.nodes.length&&(r[ii]=!0,n.iterator=r.getIterator());return}else if(this.listeners[l]){n.visitors=this.listeners[l];return}}t.pop()}};Ri.registerPostcss=i=>{Kp=i};IE.exports=Ri;Ri.default=Ri;lk.registerLazyResult(Ri);sk.registerLazyResult(Ri)});var BE=Y((ej,LE)=>{A();"use strict";var fk=$p(),hk=Ia(),QH=zp(),pk=ud(),gk=Qu(),dd=class{constructor(t,n,r){n=n.toString(),this.stringified=!1,this._processor=t,this._css=n,this._opts=r,this._map=void 0;let o,a=hk;this.result=new gk(this._processor,o,this._opts),this.result.css=n;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let u=new fk(a,o,this._opts,n);if(u.isMap()){let[d,f]=u.generate();d&&(this.result.css=d),f&&(this.result.map=f)}}get[Symbol.toStringTag](){return"NoWorkResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.result.css}get content(){return this.result.css}get map(){return this.result.map}get root(){if(this._root)return this._root;let t,n=pk;try{t=n(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=t,t}get messages(){return[]}warnings(){return[]}toString(){return this._css}then(t,n){return this.async().then(t,n)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}sync(){if(this.error)throw this.error;return this.result}};LE.exports=dd;dd.default=dd});var NE=Y((tj,kE)=>{A();"use strict";var mk=BE(),yk=Yp(),bk=Yu(),vk=Ds(),$s=class{constructor(t=[]){this.version="8.4.12",this.plugins=this.normalize(t)}use(t){return this.plugins=this.plugins.concat(this.normalize([t])),this}process(t,n={}){return this.plugins.length===0&&typeof n.parser=="undefined"&&typeof n.stringifier=="undefined"&&typeof n.syntax=="undefined"?new mk(this,t,n):new yk(this,t,n)}normalize(t){let n=[];for(let r of t)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))n=n.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)n.push(r);else if(typeof r=="function")n.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return n}};kE.exports=$s;$s.default=$s;vk.registerProcessor($s);bk.registerProcessor($s)});var jE=Y((nj,HE)=>{A();"use strict";var wk=Ba(),Ek=Np(),Sk=ja(),Ok=ad(),xk=Ha(),_k=Ds(),Tk=ld();function za(i,t){if(Array.isArray(i))return i.map(l=>za(l));let o=i,{inputs:n}=o,r=Vi(o,["inputs"]);if(n){t=[];for(let l of n){let u=jt(Fe({},l),{__proto__:xk.prototype});u.map&&(u.map=jt(Fe({},u.map),{__proto__:Ek.prototype})),t.push(u)}}if(r.nodes&&(r.nodes=i.nodes.map(l=>za(l,t))),r.source){let a=r.source,{inputId:l}=a,u=Vi(a,["inputId"]);r.source=u,l!=null&&(r.source.input=t[l])}if(r.type==="root")return new _k(r);if(r.type==="decl")return new wk(r);if(r.type==="rule")return new Tk(r);if(r.type==="comment")return new Sk(r);if(r.type==="atrule")return new Ok(r);throw new Error("Unknown node type: "+i.type)}HE.exports=za;za.default=za});var GE=Y((rj,WE)=>{A();"use strict";var Ck=ju(),DE=Ba(),Ak=Yp(),Rk=eo(),Zp=NE(),Mk=Ia(),Pk=jE(),FE=Yu(),Ik=Wp(),$E=ja(),UE=ad(),Lk=Qu(),Bk=Ha(),kk=ud(),Nk=Vp(),qE=ld(),zE=Ds(),Hk=La();function Tt(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Zp(i)}Tt.plugin=function(t,n){console&&console.warn&&(console.warn(t+`: postcss.plugin was deprecated. Migration guide:
39
39
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),j.env.LANG&&j.env.LANG.startsWith("cn")&&console.warn(t+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
40
40
  https://www.w3ctech.com/topic/2226`));function r(...a){let l=n(...a);return l.postcssPlugin=t,l.postcssVersion=new Zp().version,l}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(a,l,u){return Tt([r(u)]).process(a,l)},r};Tt.stringify=Mk;Tt.parse=kk;Tt.fromJSON=Pk;Tt.list=Nk;Tt.comment=i=>new $E(i);Tt.atRule=i=>new UE(i);Tt.decl=i=>new DE(i);Tt.rule=i=>new qE(i);Tt.root=i=>new zE(i);Tt.document=i=>new FE(i);Tt.CssSyntaxError=Ck;Tt.Declaration=DE;Tt.Container=Rk;Tt.Processor=Zp;Tt.Document=FE;Tt.Comment=$E;Tt.Warning=Ik;Tt.AtRule=UE;Tt.Result=Lk;Tt.Input=Bk;Tt.Rule=qE;Tt.Root=zE;Tt.Node=Hk;Ak.registerPostcss(Tt);WE.exports=Tt;Tt.default=Tt});var Xp=Y((ij,KE)=>{A();var jk=l2(),Dk=u2(),{klona:Fk}=f2(),{isPlainObject:$k}=p2(),VE=b2(),Uk=w2(),{parse:qk}=GE(),zk=["img","audio","video","picture","svg","object","map","iframe","embed"],Wk=["script","style"];function Wa(i,t){i&&Object.keys(i).forEach(function(n){t(i[n],n)})}function Mi(i,t){return{}.hasOwnProperty.call(i,t)}function JE(i,t){let n=[];return Wa(i,function(r){t(r)&&n.push(r)}),n}function Gk(i){for(let t in i)if(Mi(i,t))return!1;return!0}function Vk(i){return i.map(function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")}).join(", ")}KE.exports=Ga;var Jk=/^[^\0\t\n\f\r /<=>]+$/;function Ga(i,t,n){let r="",o="";function a(k,B){let N=this;this.tag=k,this.attribs=B||{},this.tagPosition=r.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(S.length){let W=S[S.length-1];W.text+=N.text}},this.updateParentNodeMediaChildren=function(){S.length&&zk.includes(this.tag)&&S[S.length-1].mediaChildren.push(this.tag)}}t=Object.assign({},Ga.defaults,t),t.parser=Object.assign({},Kk,t.parser),Wk.forEach(function(k){t.allowedTags&&t.allowedTags.indexOf(k)>-1&&!t.allowVulnerableTags&&console.warn(`
@@ -44,10 +44,10 @@ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
44
44
  Or, to disable this warning, add the \`allowVulnerableTags\` option
45
45
  and ensure you are accounting for this risk.
46
46
 
47
- `)});let l=t.nonTextTags||["script","style","textarea","option"],u,d;t.allowedAttributes&&(u={},d={},Wa(t.allowedAttributes,function(k,B){u[B]=[];let N=[];k.forEach(function(W){typeof W=="string"&&W.indexOf("*")>=0?N.push(Dk(W).replace(/\\\*/g,".*")):u[B].push(W)}),d[B]=new RegExp("^("+N.join("|")+")$")}));let f={};Wa(t.allowedClasses,function(k,B){u&&(Mi(u,B)||(u[B]=[]),u[B].push("class")),f[B]=k});let m={},p;Wa(t.transformTags,function(k,B){let N;typeof k=="function"?N=k:typeof k=="string"&&(N=Ga.simpleTransform(k)),B==="*"?p=N:m[B]=N});let E,S,v,y,b,w,O=!1;C();let T=new jk.Parser({onopentag:function(k,B){if(t.enforceHtmlBoundary&&k==="html"&&C(),b){w++;return}let N=new a(k,B);S.push(N);let W=!1,ye=!!N.text,be;if(Mi(m,k)&&(be=m[k](k,B),N.attribs=B=be.attribs,be.text!==void 0&&(N.innerText=be.text),k!==be.tagName&&(N.name=k=be.tagName,y[E]=be.tagName)),p&&(be=p(k,B),N.attribs=B=be.attribs,k!==be.tagName&&(N.name=k=be.tagName,y[E]=be.tagName)),(t.allowedTags&&t.allowedTags.indexOf(k)===-1||t.disallowedTagsMode==="recursiveEscape"&&!Gk(v)||t.nestingLimit!=null&&E>=t.nestingLimit)&&(W=!0,v[E]=!0,t.disallowedTagsMode==="discard"&&l.indexOf(k)!==-1&&(b=!0,w=1),v[E]=!0),E++,W){if(t.disallowedTagsMode==="discard")return;o=r,r=""}r+="<"+k,(!u||Mi(u,k)||u["*"])&&Wa(B,function(fe,re){if(!Jk.test(re)){delete N.attribs[re];return}let he,Ae=!1;if(!u||Mi(u,k)&&u[k].indexOf(re)!==-1||u["*"]&&u["*"].indexOf(re)!==-1||Mi(d,k)&&d[k].test(re)||d["*"]&&d["*"].test(re))Ae=!0;else if(u&&u[k]){for(let ue of u[k])if($k(ue)&&ue.name&&ue.name===re){Ae=!0;let xe="";if(ue.multiple===!0){let Re=fe.split(" ");for(let Se of Re)ue.values.indexOf(Se)!==-1&&(xe===""?xe=Se:xe+=" "+Se)}else ue.values.indexOf(fe)>=0&&(xe=fe);fe=xe}}if(Ae){if(t.allowedSchemesAppliedToAttributes.indexOf(re)!==-1&&P(k,fe)){delete N.attribs[re];return}if(k==="iframe"&&re==="src"){let ue=!0;try{if(fe=fe.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),fe.startsWith("relative:"))throw new Error("relative: exploit attempt");let xe="relative://relative-site";for(let V=0;V<100;V++)xe+=`/${V}`;let Re=new URL(fe,xe);if(Re&&Re.hostname==="relative-site"&&Re.protocol==="relative:")ue=Mi(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){let V=(t.allowedIframeHostnames||[]).find(function(ne){return ne===Re.hostname}),ee=(t.allowedIframeDomains||[]).find(function(ne){return Re.hostname===ne||Re.hostname.endsWith(`.${ne}`)});ue=V||ee}}catch(xe){ue=!1}if(!ue){delete N.attribs[re];return}}if(re==="srcset")try{if(he=Uk(fe),he.forEach(function(ue){P("srcset",ue.url)&&(ue.evil=!0)}),he=JE(he,function(ue){return!ue.evil}),he.length)fe=Vk(JE(he,function(ue){return!ue.evil})),N.attribs[re]=fe;else{delete N.attribs[re];return}}catch(ue){delete N.attribs[re];return}if(re==="class"){let ue=f[k],xe=f["*"];if(ue&&xe?fe=U(fe,VE(ue,xe)):fe=U(fe,ue||xe),!fe.length){delete N.attribs[re];return}}if(re==="style")try{let ue=qk(k+" {"+fe+"}"),xe=D(ue,t.allowedStyles);if(fe=I(xe),fe.length===0){delete N.attribs[re];return}}catch(ue){delete N.attribs[re];return}r+=" "+re,fe&&fe.length&&(r+='="'+_(fe,!0)+'"')}else delete N.attribs[re]}),t.selfClosing.indexOf(k)!==-1?r+=" />":(r+=">",N.innerText&&!ye&&!t.textFilter&&(r+=_(N.innerText),O=!0)),W&&(r=o+_(r),o="")},ontext:function(k){if(b)return;let B=S[S.length-1],N;if(B&&(N=B.tag,k=B.innerText!==void 0?B.innerText:k),t.disallowedTagsMode==="discard"&&(N==="script"||N==="style"))r+=k;else{let W=_(k,!1);t.textFilter&&!O?r+=t.textFilter(W,N):O||(r+=W)}if(S.length){let W=S[S.length-1];W.text+=k}},onclosetag:function(k){if(b)if(w--,!w)b=!1;else return;let B=S.pop();if(!B)return;b=t.enforceHtmlBoundary?k==="html":!1,E--;let N=v[E];if(N){if(delete v[E],t.disallowedTagsMode==="discard"){B.updateParentNodeText();return}o=r,r=""}if(y[E]&&(k=y[E],delete y[E]),t.exclusiveFilter&&t.exclusiveFilter(B)){r=r.substr(0,B.tagPosition);return}if(B.updateParentNodeMediaChildren(),B.updateParentNodeText(),t.selfClosing.indexOf(k)!==-1){N&&(r=o,o="");return}r+="</"+k+">",N&&(r=o+_(r),o="")}},t.parser);return T.write(i),T.end(),r;function C(){r="",E=0,S=[],v={},y={},b=!1,w=0}function _(k,B){return typeof k!="string"&&(k=k+""),t.parser.decodeEntities&&(k=k.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),B&&(k=k.replace(/"/g,"&quot;"))),k=k.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),B&&(k=k.replace(/"/g,"&quot;")),k}function P(k,B){B=B.replace(/[\x00-\x20]+/g,""),B=B.replace(/<!--.*?-->/g,"");let N=B.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!N)return B.match(/^[/\\]{2}/)?!t.allowProtocolRelative:!1;let W=N[1].toLowerCase();return Mi(t.allowedSchemesByTag,k)?t.allowedSchemesByTag[k].indexOf(W)===-1:!t.allowedSchemes||t.allowedSchemes.indexOf(W)===-1}function D(k,B){if(!B)return k;let N=Fk(k),W=k.nodes[0],ye;return B[W.selector]&&B["*"]?ye=VE(B[W.selector],B["*"]):ye=B[W.selector]||B["*"],ye&&(N.nodes[0].nodes=W.nodes.reduce(q(ye),[])),N}function I(k){return k.nodes[0].nodes.reduce(function(B,N){return B.push(N.prop+":"+N.value),B},[]).join(";")}function q(k){return function(B,N){return Mi(k,N.prop)&&k[N.prop].some(function(ye){return ye.test(N.value)})&&B.push(N),B}}function U(k,B){return B?(k=k.split(/\s+/),k.filter(function(N){return B.indexOf(N)!==-1}).join(" ")):k}}var Kk={decodeEntities:!0};Ga.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1};Ga.simpleTransform=function(i,t,n){return n=n===void 0?!0:n,t=t||{},function(r,o){let a;if(n)for(a in t)o[a]=t[a];else o=t;return{tagName:i,attribs:o}}}});var Dt=Y((ZE,fd)=>{A();(function(i,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof fd=="object"&&fd.exports?fd.exports=t():i.log=t()})(ZE,function(){"use strict";var i=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function o(v,y){var b=v[y];if(typeof b.bind=="function")return b.bind(v);try{return Function.prototype.bind.call(b,v)}catch(w){return function(){return Function.prototype.apply.apply(b,[v,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(v){return v==="debug"&&(v="log"),typeof console===t?!1:v==="trace"&&n?a:console[v]!==void 0?o(console,v):console.log!==void 0?o(console,"log"):i}function u(v,y){for(var b=0;b<r.length;b++){var w=r[b];this[w]=b<v?i:this.methodFactory(w,v,y)}this.log=this.debug}function d(v,y,b){return function(){typeof console!==t&&(u.call(this,y,b),this[v].apply(this,arguments))}}function f(v,y,b){return l(v)||d.apply(this,arguments)}function m(v,y,b){var w=this,O;y=y??"WARN";var T="loglevel";typeof v=="string"?T+=":"+v:typeof v=="symbol"&&(T=void 0);function C(I){var q=(r[I]||"silent").toUpperCase();if(!(typeof window===t||!T)){try{window.localStorage[T]=q;return}catch(U){}try{window.document.cookie=encodeURIComponent(T)+"="+q+";"}catch(U){}}}function _(){var I;if(!(typeof window===t||!T)){try{I=window.localStorage[T]}catch(k){}if(typeof I===t)try{var q=window.document.cookie,U=q.indexOf(encodeURIComponent(T)+"=");U!==-1&&(I=/^([^;]+)/.exec(q.slice(U))[1])}catch(k){}return w.levels[I]===void 0&&(I=void 0),I}}function P(){if(!(typeof window===t||!T)){try{window.localStorage.removeItem(T);return}catch(I){}try{window.document.cookie=encodeURIComponent(T)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(I){}}}w.name=v,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=b||f,w.getLevel=function(){return O},w.setLevel=function(I,q){if(typeof I=="string"&&w.levels[I.toUpperCase()]!==void 0&&(I=w.levels[I.toUpperCase()]),typeof I=="number"&&I>=0&&I<=w.levels.SILENT){if(O=I,q!==!1&&C(I),u.call(w,I,v),typeof console===t&&I<w.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+I},w.setDefaultLevel=function(I){y=I,_()||w.setLevel(I,!1)},w.resetLevel=function(){w.setLevel(y,!1),P()},w.enableAll=function(I){w.setLevel(w.levels.TRACE,I)},w.disableAll=function(I){w.setLevel(w.levels.SILENT,I)};var D=_();D==null&&(D=y),w.setLevel(D,!1)}var p=new m,E={};p.getLogger=function(y){if(typeof y!="symbol"&&typeof y!="string"||y==="")throw new TypeError("You must supply a name when creating a logger.");var b=E[y];return b||(b=E[y]=new m(y,p.getLevel(),p.methodFactory)),b};var S=typeof window!==t?window.log:void 0;return p.noConflict=function(){return typeof window!==t&&window.log===p&&(window.log=S),p},p.getLoggers=function(){return E},p.default=p,p})});var to=Y((dj,QE)=>{A();function Qp(i,t,n){var r,o,a,l,u;t==null&&(t=100);function d(){var m=Date.now()-l;m<t&&m>=0?r=setTimeout(d,t-m):(r=null,n||(u=i.apply(a,o),a=o=null))}var f=function(){a=this,o=arguments,l=Date.now();var m=n&&!r;return r||(r=setTimeout(d,t)),m&&(u=i.apply(a,o),a=o=null),u};return f.clear=function(){r&&(clearTimeout(r),r=null)},f.flush=function(){r&&(u=i.apply(a,o),a=o=null,clearTimeout(r),r=null)},f}Qp.debounce=Qp;QE.exports=Qp});var m4=Y((Qj,g4)=>{A();"use strict";var l8={},c8=l8.hasOwnProperty,u8=function(t,n){if(!t)return n;var r={};for(var o in n)r[o]=c8.call(t,o)?t[o]:n[o];return r},d8=/[ -,\.\/:-@\[-\^`\{-~]/,f8=/[ -,\.\/:-@\[\]\^`\{-~]/,h8=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,s0=function i(t,n){n=u8(n,i.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",o=n.isIdentifier,a=t.charAt(0),l="",u=0,d=t.length;u<d;){var f=t.charAt(u++),m=f.charCodeAt(),p=void 0;if(m<32||m>126){if(m>=55296&&m<=56319&&u<d){var E=t.charCodeAt(u++);(E&64512)==56320?m=((m&1023)<<10)+(E&1023)+65536:u--}p="\\"+m.toString(16).toUpperCase()+" "}else n.escapeEverything?d8.test(f)?p="\\"+f:p="\\"+m.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?p="\\"+m.toString(16).toUpperCase()+" ":f=="\\"||!o&&(f=='"'&&r==f||f=="'"&&r==f)||o&&f8.test(f)?p="\\"+f:p=f;l+=p}return o&&(/^-[-\d]/.test(l)?l="\\-"+l.slice(1):/\d/.test(a)&&(l="\\3"+a+" "+l.slice(1))),l=l.replace(h8,function(S,v,y){return v&&v.length%2?S:(v||"")+y}),!o&&n.wrap?r+l+r:l};s0.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};s0.version="3.0.0";g4.exports=s0});var Ed=Y((qs,Ja)=>{A();(function(){var i,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,m=2,p=4,E=1,S=2,v=1,y=2,b=4,w=8,O=16,T=32,C=64,_=128,P=256,D=512,I=30,q="...",U=800,k=16,B=1,N=2,W=3,ye=1/0,be=9007199254740991,fe=17976931348623157e292,re=0/0,he=4294967295,Ae=he-1,ue=he>>>1,xe=[["ary",_],["bind",v],["bindKey",y],["curry",w],["curryRight",O],["flip",D],["partial",T],["partialRight",C],["rearg",P]],Re="[object Arguments]",Se="[object Array]",V="[object AsyncFunction]",ee="[object Boolean]",ne="[object Date]",ae="[object DOMException]",bt="[object Error]",Ft="[object Function]",Mt="[object GeneratorFunction]",Et="[object Map]",On="[object Number]",Bn="[object Null]",It="[object Object]",Kt="[object Promise]",zr="[object Proxy]",xn="[object RegExp]",Oe="[object Set]",pe="[object String]",le="[object Symbol]",_e="[object Undefined]",Ie="[object WeakMap]",z="[object WeakSet]",X="[object ArrayBuffer]",oe="[object DataView]",ve="[object Float32Array]",Ce="[object Float64Array]",ft="[object Int8Array]",$e="[object Int16Array]",Ye="[object Int32Array]",je="[object Uint8Array]",Xe="[object Uint8ClampedArray]",et="[object Uint16Array]",kn="[object Uint32Array]",ho=/\b__p \+= '';/g,ul=/\b(__p \+=) '' \+/g,Kd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dl=/&(?:amp|lt|gt|quot|#39);/g,Zs=/[&<>"']/g,Yd=RegExp(dl.source),fl=RegExp(Zs.source),Zd=/<%-([\s\S]+?)%>/g,hl=/<%([\s\S]+?)%>/g,pl=/<%=([\s\S]+?)%>/g,Xd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qd=/^\w*$/,gl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xs=/[\\^$.*+?()[\]{}|]/g,ef=RegExp(Xs.source),Zo=/^\s+/,tf=/\s/,ml=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,li=/\{\n\/\* \[wrapped with (.+)\] \*/,po=/,? & /,yl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,U3=/[()=,{}\[\]\/\s]/,q3=/\\(\\)?/g,z3=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cg=/\w*$/,W3=/^[-+]0x[0-9a-f]+$/i,G3=/^0b[01]+$/i,V3=/^\[object .+?Constructor\]$/,J3=/^0o[0-7]+$/i,K3=/^(?:0|[1-9]\d*)$/,Y3=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bl=/($^)/,Z3=/['\n\r\u2028\u2029\\]/g,vl="\\ud800-\\udfff",X3="\\u0300-\\u036f",Q3="\\ufe20-\\ufe2f",eO="\\u20d0-\\u20ff",ug=X3+Q3+eO,dg="\\u2700-\\u27bf",fg="a-z\\xdf-\\xf6\\xf8-\\xff",tO="\\xac\\xb1\\xd7\\xf7",nO="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rO="\\u2000-\\u206f",iO=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hg="A-Z\\xc0-\\xd6\\xd8-\\xde",pg="\\ufe0e\\ufe0f",gg=tO+nO+rO+iO,nf="['\u2019]",oO="["+vl+"]",mg="["+gg+"]",wl="["+ug+"]",yg="\\d+",sO="["+dg+"]",bg="["+fg+"]",vg="[^"+vl+gg+yg+dg+fg+hg+"]",rf="\\ud83c[\\udffb-\\udfff]",aO="(?:"+wl+"|"+rf+")",wg="[^"+vl+"]",of="(?:\\ud83c[\\udde6-\\uddff]){2}",sf="[\\ud800-\\udbff][\\udc00-\\udfff]",Xo="["+hg+"]",Eg="\\u200d",Sg="(?:"+bg+"|"+vg+")",lO="(?:"+Xo+"|"+vg+")",Og="(?:"+nf+"(?:d|ll|m|re|s|t|ve))?",xg="(?:"+nf+"(?:D|LL|M|RE|S|T|VE))?",_g=aO+"?",Tg="["+pg+"]?",cO="(?:"+Eg+"(?:"+[wg,of,sf].join("|")+")"+Tg+_g+")*",uO="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dO="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cg=Tg+_g+cO,fO="(?:"+[sO,of,sf].join("|")+")"+Cg,hO="(?:"+[wg+wl+"?",wl,of,sf,oO].join("|")+")",pO=RegExp(nf,"g"),gO=RegExp(wl,"g"),af=RegExp(rf+"(?="+rf+")|"+hO+Cg,"g"),mO=RegExp([Xo+"?"+bg+"+"+Og+"(?="+[mg,Xo,"$"].join("|")+")",lO+"+"+xg+"(?="+[mg,Xo+Sg,"$"].join("|")+")",Xo+"?"+Sg+"+"+Og,Xo+"+"+xg,dO,uO,yg,fO].join("|"),"g"),yO=RegExp("["+Eg+vl+ug+pg+"]"),bO=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vO=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wO=-1,Lt={};Lt[ve]=Lt[Ce]=Lt[ft]=Lt[$e]=Lt[Ye]=Lt[je]=Lt[Xe]=Lt[et]=Lt[kn]=!0,Lt[Re]=Lt[Se]=Lt[X]=Lt[ee]=Lt[oe]=Lt[ne]=Lt[bt]=Lt[Ft]=Lt[Et]=Lt[On]=Lt[It]=Lt[xn]=Lt[Oe]=Lt[pe]=Lt[Ie]=!1;var Pt={};Pt[Re]=Pt[Se]=Pt[X]=Pt[oe]=Pt[ee]=Pt[ne]=Pt[ve]=Pt[Ce]=Pt[ft]=Pt[$e]=Pt[Ye]=Pt[Et]=Pt[On]=Pt[It]=Pt[xn]=Pt[Oe]=Pt[pe]=Pt[le]=Pt[je]=Pt[Xe]=Pt[et]=Pt[kn]=!0,Pt[bt]=Pt[Ft]=Pt[Ie]=!1;var EO={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},SO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},OO={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xO={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_O=parseFloat,TO=parseInt,Ag=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,CO=typeof self=="object"&&self&&self.Object===Object&&self,en=Ag||CO||Function("return this")(),lf=typeof qs=="object"&&qs&&!qs.nodeType&&qs,go=lf&&typeof Ja=="object"&&Ja&&!Ja.nodeType&&Ja,Rg=go&&go.exports===lf,cf=Rg&&Ag.process,pr=function(){try{var G=go&&go.require&&go.require("util").types;return G||cf&&cf.binding&&cf.binding("util")}catch(te){}}(),Mg=pr&&pr.isArrayBuffer,Pg=pr&&pr.isDate,Ig=pr&&pr.isMap,Lg=pr&&pr.isRegExp,Bg=pr&&pr.isSet,kg=pr&&pr.isTypedArray;function Zn(G,te,Q){switch(Q.length){case 0:return G.call(te);case 1:return G.call(te,Q[0]);case 2:return G.call(te,Q[0],Q[1]);case 3:return G.call(te,Q[0],Q[1],Q[2])}return G.apply(te,Q)}function AO(G,te,Q,Pe){for(var Ze=-1,vt=G==null?0:G.length;++Ze<vt;){var Yt=G[Ze];te(Pe,Yt,Q(Yt),G)}return Pe}function gr(G,te){for(var Q=-1,Pe=G==null?0:G.length;++Q<Pe&&te(G[Q],Q,G)!==!1;);return G}function RO(G,te){for(var Q=G==null?0:G.length;Q--&&te(G[Q],Q,G)!==!1;);return G}function Ng(G,te){for(var Q=-1,Pe=G==null?0:G.length;++Q<Pe;)if(!te(G[Q],Q,G))return!1;return!0}function Hi(G,te){for(var Q=-1,Pe=G==null?0:G.length,Ze=0,vt=[];++Q<Pe;){var Yt=G[Q];te(Yt,Q,G)&&(vt[Ze++]=Yt)}return vt}function El(G,te){var Q=G==null?0:G.length;return!!Q&&Qo(G,te,0)>-1}function uf(G,te,Q){for(var Pe=-1,Ze=G==null?0:G.length;++Pe<Ze;)if(Q(te,G[Pe]))return!0;return!1}function Ht(G,te){for(var Q=-1,Pe=G==null?0:G.length,Ze=Array(Pe);++Q<Pe;)Ze[Q]=te(G[Q],Q,G);return Ze}function ji(G,te){for(var Q=-1,Pe=te.length,Ze=G.length;++Q<Pe;)G[Ze+Q]=te[Q];return G}function df(G,te,Q,Pe){var Ze=-1,vt=G==null?0:G.length;for(Pe&&vt&&(Q=G[++Ze]);++Ze<vt;)Q=te(Q,G[Ze],Ze,G);return Q}function MO(G,te,Q,Pe){var Ze=G==null?0:G.length;for(Pe&&Ze&&(Q=G[--Ze]);Ze--;)Q=te(Q,G[Ze],Ze,G);return Q}function ff(G,te){for(var Q=-1,Pe=G==null?0:G.length;++Q<Pe;)if(te(G[Q],Q,G))return!0;return!1}var PO=hf("length");function IO(G){return G.split("")}function LO(G){return G.match(yl)||[]}function Hg(G,te,Q){var Pe;return Q(G,function(Ze,vt,Yt){if(te(Ze,vt,Yt))return Pe=vt,!1}),Pe}function Sl(G,te,Q,Pe){for(var Ze=G.length,vt=Q+(Pe?1:-1);Pe?vt--:++vt<Ze;)if(te(G[vt],vt,G))return vt;return-1}function Qo(G,te,Q){return te===te?WO(G,te,Q):Sl(G,jg,Q)}function BO(G,te,Q,Pe){for(var Ze=Q-1,vt=G.length;++Ze<vt;)if(Pe(G[Ze],te))return Ze;return-1}function jg(G){return G!==G}function Dg(G,te){var Q=G==null?0:G.length;return Q?gf(G,te)/Q:re}function hf(G){return function(te){return te==null?i:te[G]}}function pf(G){return function(te){return G==null?i:G[te]}}function Fg(G,te,Q,Pe,Ze){return Ze(G,function(vt,Yt,Rt){Q=Pe?(Pe=!1,vt):te(Q,vt,Yt,Rt)}),Q}function kO(G,te){var Q=G.length;for(G.sort(te);Q--;)G[Q]=G[Q].value;return G}function gf(G,te){for(var Q,Pe=-1,Ze=G.length;++Pe<Ze;){var vt=te(G[Pe]);vt!==i&&(Q=Q===i?vt:Q+vt)}return Q}function mf(G,te){for(var Q=-1,Pe=Array(G);++Q<G;)Pe[Q]=te(Q);return Pe}function NO(G,te){return Ht(te,function(Q){return[Q,G[Q]]})}function $g(G){return G&&G.slice(0,Wg(G)+1).replace(Zo,"")}function Xn(G){return function(te){return G(te)}}function yf(G,te){return Ht(te,function(Q){return G[Q]})}function Qs(G,te){return G.has(te)}function Ug(G,te){for(var Q=-1,Pe=G.length;++Q<Pe&&Qo(te,G[Q],0)>-1;);return Q}function qg(G,te){for(var Q=G.length;Q--&&Qo(te,G[Q],0)>-1;);return Q}function HO(G,te){for(var Q=G.length,Pe=0;Q--;)G[Q]===te&&++Pe;return Pe}var jO=pf(EO),DO=pf(SO);function FO(G){return"\\"+xO[G]}function $O(G,te){return G==null?i:G[te]}function es(G){return yO.test(G)}function UO(G){return bO.test(G)}function qO(G){for(var te,Q=[];!(te=G.next()).done;)Q.push(te.value);return Q}function bf(G){var te=-1,Q=Array(G.size);return G.forEach(function(Pe,Ze){Q[++te]=[Ze,Pe]}),Q}function zg(G,te){return function(Q){return G(te(Q))}}function Di(G,te){for(var Q=-1,Pe=G.length,Ze=0,vt=[];++Q<Pe;){var Yt=G[Q];(Yt===te||Yt===d)&&(G[Q]=d,vt[Ze++]=Q)}return vt}function Ol(G){var te=-1,Q=Array(G.size);return G.forEach(function(Pe){Q[++te]=Pe}),Q}function zO(G){var te=-1,Q=Array(G.size);return G.forEach(function(Pe){Q[++te]=[Pe,Pe]}),Q}function WO(G,te,Q){for(var Pe=Q-1,Ze=G.length;++Pe<Ze;)if(G[Pe]===te)return Pe;return-1}function GO(G,te,Q){for(var Pe=Q+1;Pe--;)if(G[Pe]===te)return Pe;return Pe}function ts(G){return es(G)?JO(G):PO(G)}function Pr(G){return es(G)?KO(G):IO(G)}function Wg(G){for(var te=G.length;te--&&tf.test(G.charAt(te)););return te}var VO=pf(OO);function JO(G){for(var te=af.lastIndex=0;af.test(G);)++te;return te}function KO(G){return G.match(af)||[]}function YO(G){return G.match(mO)||[]}var ZO=function G(te){te=te==null?en:Fi.defaults(en.Object(),te,Fi.pick(en,vO));var Q=te.Array,Pe=te.Date,Ze=te.Error,vt=te.Function,Yt=te.Math,Rt=te.Object,vf=te.RegExp,XO=te.String,mr=te.TypeError,xl=Q.prototype,QO=vt.prototype,ns=Rt.prototype,_l=te["__core-js_shared__"],Tl=QO.toString,xt=ns.hasOwnProperty,ex=0,Gg=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Cl=ns.toString,tx=Tl.call(Rt),nx=en._,rx=vf("^"+Tl.call(xt).replace(Xs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Al=Rg?te.Buffer:i,$i=te.Symbol,Rl=te.Uint8Array,Vg=Al?Al.allocUnsafe:i,Ml=zg(Rt.getPrototypeOf,Rt),Jg=Rt.create,Kg=ns.propertyIsEnumerable,Pl=xl.splice,Yg=$i?$i.isConcatSpreadable:i,ea=$i?$i.iterator:i,mo=$i?$i.toStringTag:i,Il=function(){try{var s=Eo(Rt,"defineProperty");return s({},"",{}),s}catch(c){}}(),ix=te.clearTimeout!==en.clearTimeout&&te.clearTimeout,ox=Pe&&Pe.now!==en.Date.now&&Pe.now,sx=te.setTimeout!==en.setTimeout&&te.setTimeout,Ll=Yt.ceil,Bl=Yt.floor,wf=Rt.getOwnPropertySymbols,ax=Al?Al.isBuffer:i,Zg=te.isFinite,lx=xl.join,cx=zg(Rt.keys,Rt),Zt=Yt.max,mn=Yt.min,ux=Pe.now,dx=te.parseInt,Xg=Yt.random,fx=xl.reverse,Ef=Eo(te,"DataView"),ta=Eo(te,"Map"),Sf=Eo(te,"Promise"),rs=Eo(te,"Set"),na=Eo(te,"WeakMap"),ra=Eo(Rt,"create"),kl=na&&new na,is={},hx=So(Ef),px=So(ta),gx=So(Sf),mx=So(rs),yx=So(na),Nl=$i?$i.prototype:i,ia=Nl?Nl.valueOf:i,Qg=Nl?Nl.toString:i;function M(s){if(Ut(s)&&!Qe(s)&&!(s instanceof ut)){if(s instanceof yr)return s;if(xt.call(s,"__wrapped__"))return ey(s)}return new yr(s)}var os=function(){function s(){}return function(c){if(!$t(c))return{};if(Jg)return Jg(c);s.prototype=c;var g=new s;return s.prototype=i,g}}();function Hl(){}function yr(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=i}M.templateSettings={escape:Zd,evaluate:hl,interpolate:pl,variable:"",imports:{_:M}},M.prototype=Hl.prototype,M.prototype.constructor=M,yr.prototype=os(Hl.prototype),yr.prototype.constructor=yr;function ut(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=he,this.__views__=[]}function bx(){var s=new ut(this.__wrapped__);return s.__actions__=Nn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Nn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Nn(this.__views__),s}function vx(){if(this.__filtered__){var s=new ut(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function wx(){var s=this.__wrapped__.value(),c=this.__dir__,g=Qe(s),x=c<0,R=g?s.length:0,L=I_(0,R,this.__views__),H=L.start,F=L.end,J=F-H,ie=x?F:H-1,se=this.__iteratees__,ce=se.length,Te=0,ke=mn(J,this.__takeCount__);if(!g||!x&&R==J&&ke==J)return Om(s,this.__actions__);var We=[];e:for(;J--&&Te<ke;){ie+=c;for(var nt=-1,Ge=s[ie];++nt<ce;){var at=se[nt],ht=at.iteratee,tr=at.type,Cn=ht(Ge);if(tr==N)Ge=Cn;else if(!Cn){if(tr==B)continue e;break e}}We[Te++]=Ge}return We}ut.prototype=os(Hl.prototype),ut.prototype.constructor=ut;function yo(s){var c=-1,g=s==null?0:s.length;for(this.clear();++c<g;){var x=s[c];this.set(x[0],x[1])}}function Ex(){this.__data__=ra?ra(null):{},this.size=0}function Sx(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function Ox(s){var c=this.__data__;if(ra){var g=c[s];return g===l?i:g}return xt.call(c,s)?c[s]:i}function xx(s){var c=this.__data__;return ra?c[s]!==i:xt.call(c,s)}function _x(s,c){var g=this.__data__;return this.size+=this.has(s)?0:1,g[s]=ra&&c===i?l:c,this}yo.prototype.clear=Ex,yo.prototype.delete=Sx,yo.prototype.get=Ox,yo.prototype.has=xx,yo.prototype.set=_x;function ci(s){var c=-1,g=s==null?0:s.length;for(this.clear();++c<g;){var x=s[c];this.set(x[0],x[1])}}function Tx(){this.__data__=[],this.size=0}function Cx(s){var c=this.__data__,g=jl(c,s);if(g<0)return!1;var x=c.length-1;return g==x?c.pop():Pl.call(c,g,1),--this.size,!0}function Ax(s){var c=this.__data__,g=jl(c,s);return g<0?i:c[g][1]}function Rx(s){return jl(this.__data__,s)>-1}function Mx(s,c){var g=this.__data__,x=jl(g,s);return x<0?(++this.size,g.push([s,c])):g[x][1]=c,this}ci.prototype.clear=Tx,ci.prototype.delete=Cx,ci.prototype.get=Ax,ci.prototype.has=Rx,ci.prototype.set=Mx;function ui(s){var c=-1,g=s==null?0:s.length;for(this.clear();++c<g;){var x=s[c];this.set(x[0],x[1])}}function Px(){this.size=0,this.__data__={hash:new yo,map:new(ta||ci),string:new yo}}function Ix(s){var c=Yl(this,s).delete(s);return this.size-=c?1:0,c}function Lx(s){return Yl(this,s).get(s)}function Bx(s){return Yl(this,s).has(s)}function kx(s,c){var g=Yl(this,s),x=g.size;return g.set(s,c),this.size+=g.size==x?0:1,this}ui.prototype.clear=Px,ui.prototype.delete=Ix,ui.prototype.get=Lx,ui.prototype.has=Bx,ui.prototype.set=kx;function bo(s){var c=-1,g=s==null?0:s.length;for(this.__data__=new ui;++c<g;)this.add(s[c])}function Nx(s){return this.__data__.set(s,l),this}function Hx(s){return this.__data__.has(s)}bo.prototype.add=bo.prototype.push=Nx,bo.prototype.has=Hx;function Ir(s){var c=this.__data__=new ci(s);this.size=c.size}function jx(){this.__data__=new ci,this.size=0}function Dx(s){var c=this.__data__,g=c.delete(s);return this.size=c.size,g}function Fx(s){return this.__data__.get(s)}function $x(s){return this.__data__.has(s)}function Ux(s,c){var g=this.__data__;if(g instanceof ci){var x=g.__data__;if(!ta||x.length<n-1)return x.push([s,c]),this.size=++g.size,this;g=this.__data__=new ui(x)}return g.set(s,c),this.size=g.size,this}Ir.prototype.clear=jx,Ir.prototype.delete=Dx,Ir.prototype.get=Fx,Ir.prototype.has=$x,Ir.prototype.set=Ux;function em(s,c){var g=Qe(s),x=!g&&Oo(s),R=!g&&!x&&Gi(s),L=!g&&!x&&!R&&cs(s),H=g||x||R||L,F=H?mf(s.length,XO):[],J=F.length;for(var ie in s)(c||xt.call(s,ie))&&!(H&&(ie=="length"||R&&(ie=="offset"||ie=="parent")||L&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||pi(ie,J)))&&F.push(ie);return F}function tm(s){var c=s.length;return c?s[Lf(0,c-1)]:i}function qx(s,c){return Zl(Nn(s),vo(c,0,s.length))}function zx(s){return Zl(Nn(s))}function Of(s,c,g){(g!==i&&!Lr(s[c],g)||g===i&&!(c in s))&&di(s,c,g)}function oa(s,c,g){var x=s[c];(!(xt.call(s,c)&&Lr(x,g))||g===i&&!(c in s))&&di(s,c,g)}function jl(s,c){for(var g=s.length;g--;)if(Lr(s[g][0],c))return g;return-1}function Wx(s,c,g,x){return Ui(s,function(R,L,H){c(x,R,g(R),H)}),x}function nm(s,c){return s&&Gr(c,tn(c),s)}function Gx(s,c){return s&&Gr(c,jn(c),s)}function di(s,c,g){c=="__proto__"&&Il?Il(s,c,{configurable:!0,enumerable:!0,value:g,writable:!0}):s[c]=g}function xf(s,c){for(var g=-1,x=c.length,R=Q(x),L=s==null;++g<x;)R[g]=L?i:ih(s,c[g]);return R}function vo(s,c,g){return s===s&&(g!==i&&(s=s<=g?s:g),c!==i&&(s=s>=c?s:c)),s}function br(s,c,g,x,R,L){var H,F=c&f,J=c&m,ie=c&p;if(g&&(H=R?g(s,x,R,L):g(s)),H!==i)return H;if(!$t(s))return s;var se=Qe(s);if(se){if(H=B_(s),!F)return Nn(s,H)}else{var ce=yn(s),Te=ce==Ft||ce==Mt;if(Gi(s))return Tm(s,F);if(ce==It||ce==Re||Te&&!R){if(H=J||Te?{}:Wm(s),!F)return J?O_(s,Gx(H,s)):S_(s,nm(H,s))}else{if(!Pt[ce])return R?s:{};H=k_(s,ce,F)}}L||(L=new Ir);var ke=L.get(s);if(ke)return ke;L.set(s,H),wy(s)?s.forEach(function(Ge){H.add(br(Ge,c,g,Ge,s,L))}):by(s)&&s.forEach(function(Ge,at){H.set(at,br(Ge,c,g,at,s,L))});var We=ie?J?zf:qf:J?jn:tn,nt=se?i:We(s);return gr(nt||s,function(Ge,at){nt&&(at=Ge,Ge=s[at]),oa(H,at,br(Ge,c,g,at,s,L))}),H}function Vx(s){var c=tn(s);return function(g){return rm(g,s,c)}}function rm(s,c,g){var x=g.length;if(s==null)return!x;for(s=Rt(s);x--;){var R=g[x],L=c[R],H=s[R];if(H===i&&!(R in s)||!L(H))return!1}return!0}function im(s,c,g){if(typeof s!="function")throw new mr(o);return fa(function(){s.apply(i,g)},c)}function sa(s,c,g,x){var R=-1,L=El,H=!0,F=s.length,J=[],ie=c.length;if(!F)return J;g&&(c=Ht(c,Xn(g))),x?(L=uf,H=!1):c.length>=n&&(L=Qs,H=!1,c=new bo(c));e:for(;++R<F;){var se=s[R],ce=g==null?se:g(se);if(se=x||se!==0?se:0,H&&ce===ce){for(var Te=ie;Te--;)if(c[Te]===ce)continue e;J.push(se)}else L(c,ce,x)||J.push(se)}return J}var Ui=Pm(Wr),om=Pm(Tf,!0);function Jx(s,c){var g=!0;return Ui(s,function(x,R,L){return g=!!c(x,R,L),g}),g}function Dl(s,c,g){for(var x=-1,R=s.length;++x<R;){var L=s[x],H=c(L);if(H!=null&&(F===i?H===H&&!er(H):g(H,F)))var F=H,J=L}return J}function Kx(s,c,g,x){var R=s.length;for(g=tt(g),g<0&&(g=-g>R?0:R+g),x=x===i||x>R?R:tt(x),x<0&&(x+=R),x=g>x?0:Sy(x);g<x;)s[g++]=c;return s}function sm(s,c){var g=[];return Ui(s,function(x,R,L){c(x,R,L)&&g.push(x)}),g}function cn(s,c,g,x,R){var L=-1,H=s.length;for(g||(g=H_),R||(R=[]);++L<H;){var F=s[L];c>0&&g(F)?c>1?cn(F,c-1,g,x,R):ji(R,F):x||(R[R.length]=F)}return R}var _f=Im(),am=Im(!0);function Wr(s,c){return s&&_f(s,c,tn)}function Tf(s,c){return s&&am(s,c,tn)}function Fl(s,c){return Hi(c,function(g){return gi(s[g])})}function wo(s,c){c=zi(c,s);for(var g=0,x=c.length;s!=null&&g<x;)s=s[Vr(c[g++])];return g&&g==x?s:i}function lm(s,c,g){var x=c(s);return Qe(s)?x:ji(x,g(s))}function _n(s){return s==null?s===i?_e:Bn:mo&&mo in Rt(s)?P_(s):z_(s)}function Cf(s,c){return s>c}function Yx(s,c){return s!=null&&xt.call(s,c)}function Zx(s,c){return s!=null&&c in Rt(s)}function Xx(s,c,g){return s>=mn(c,g)&&s<Zt(c,g)}function Af(s,c,g){for(var x=g?uf:El,R=s[0].length,L=s.length,H=L,F=Q(L),J=1/0,ie=[];H--;){var se=s[H];H&&c&&(se=Ht(se,Xn(c))),J=mn(se.length,J),F[H]=!g&&(c||R>=120&&se.length>=120)?new bo(H&&se):i}se=s[0];var ce=-1,Te=F[0];e:for(;++ce<R&&ie.length<J;){var ke=se[ce],We=c?c(ke):ke;if(ke=g||ke!==0?ke:0,!(Te?Qs(Te,We):x(ie,We,g))){for(H=L;--H;){var nt=F[H];if(!(nt?Qs(nt,We):x(s[H],We,g)))continue e}Te&&Te.push(We),ie.push(ke)}}return ie}function Qx(s,c,g,x){return Wr(s,function(R,L,H){c(x,g(R),L,H)}),x}function aa(s,c,g){c=zi(c,s),s=Km(s,c);var x=s==null?s:s[Vr(wr(c))];return x==null?i:Zn(x,s,g)}function cm(s){return Ut(s)&&_n(s)==Re}function e_(s){return Ut(s)&&_n(s)==X}function t_(s){return Ut(s)&&_n(s)==ne}function la(s,c,g,x,R){return s===c?!0:s==null||c==null||!Ut(s)&&!Ut(c)?s!==s&&c!==c:n_(s,c,g,x,la,R)}function n_(s,c,g,x,R,L){var H=Qe(s),F=Qe(c),J=H?Se:yn(s),ie=F?Se:yn(c);J=J==Re?It:J,ie=ie==Re?It:ie;var se=J==It,ce=ie==It,Te=J==ie;if(Te&&Gi(s)){if(!Gi(c))return!1;H=!0,se=!1}if(Te&&!se)return L||(L=new Ir),H||cs(s)?Um(s,c,g,x,R,L):R_(s,c,J,g,x,R,L);if(!(g&E)){var ke=se&&xt.call(s,"__wrapped__"),We=ce&&xt.call(c,"__wrapped__");if(ke||We){var nt=ke?s.value():s,Ge=We?c.value():c;return L||(L=new Ir),R(nt,Ge,g,x,L)}}return Te?(L||(L=new Ir),M_(s,c,g,x,R,L)):!1}function r_(s){return Ut(s)&&yn(s)==Et}function Rf(s,c,g,x){var R=g.length,L=R,H=!x;if(s==null)return!L;for(s=Rt(s);R--;){var F=g[R];if(H&&F[2]?F[1]!==s[F[0]]:!(F[0]in s))return!1}for(;++R<L;){F=g[R];var J=F[0],ie=s[J],se=F[1];if(H&&F[2]){if(ie===i&&!(J in s))return!1}else{var ce=new Ir;if(x)var Te=x(ie,se,J,s,c,ce);if(!(Te===i?la(se,ie,E|S,x,ce):Te))return!1}}return!0}function um(s){if(!$t(s)||D_(s))return!1;var c=gi(s)?rx:V3;return c.test(So(s))}function i_(s){return Ut(s)&&_n(s)==xn}function o_(s){return Ut(s)&&yn(s)==Oe}function s_(s){return Ut(s)&&rc(s.length)&&!!Lt[_n(s)]}function dm(s){return typeof s=="function"?s:s==null?Dn:typeof s=="object"?Qe(s)?pm(s[0],s[1]):hm(s):Ly(s)}function Mf(s){if(!da(s))return cx(s);var c=[];for(var g in Rt(s))xt.call(s,g)&&g!="constructor"&&c.push(g);return c}function a_(s){if(!$t(s))return q_(s);var c=da(s),g=[];for(var x in s)x=="constructor"&&(c||!xt.call(s,x))||g.push(x);return g}function Pf(s,c){return s<c}function fm(s,c){var g=-1,x=Hn(s)?Q(s.length):[];return Ui(s,function(R,L,H){x[++g]=c(R,L,H)}),x}function hm(s){var c=Gf(s);return c.length==1&&c[0][2]?Vm(c[0][0],c[0][1]):function(g){return g===s||Rf(g,s,c)}}function pm(s,c){return Jf(s)&&Gm(c)?Vm(Vr(s),c):function(g){var x=ih(g,s);return x===i&&x===c?oh(g,s):la(c,x,E|S)}}function $l(s,c,g,x,R){s!==c&&_f(c,function(L,H){if(R||(R=new Ir),$t(L))l_(s,c,H,g,$l,x,R);else{var F=x?x(Yf(s,H),L,H+"",s,c,R):i;F===i&&(F=L),Of(s,H,F)}},jn)}function l_(s,c,g,x,R,L,H){var F=Yf(s,g),J=Yf(c,g),ie=H.get(J);if(ie){Of(s,g,ie);return}var se=L?L(F,J,g+"",s,c,H):i,ce=se===i;if(ce){var Te=Qe(J),ke=!Te&&Gi(J),We=!Te&&!ke&&cs(J);se=J,Te||ke||We?Qe(F)?se=F:Wt(F)?se=Nn(F):ke?(ce=!1,se=Tm(J,!0)):We?(ce=!1,se=Cm(J,!0)):se=[]:ha(J)||Oo(J)?(se=F,Oo(F)?se=Oy(F):(!$t(F)||gi(F))&&(se=Wm(J))):ce=!1}ce&&(H.set(J,se),R(se,J,x,L,H),H.delete(J)),Of(s,g,se)}function gm(s,c){var g=s.length;if(!!g)return c+=c<0?g:0,pi(c,g)?s[c]:i}function mm(s,c,g){c.length?c=Ht(c,function(L){return Qe(L)?function(H){return wo(H,L.length===1?L[0]:L)}:L}):c=[Dn];var x=-1;c=Ht(c,Xn(Ue()));var R=fm(s,function(L,H,F){var J=Ht(c,function(ie){return ie(L)});return{criteria:J,index:++x,value:L}});return kO(R,function(L,H){return E_(L,H,g)})}function c_(s,c){return ym(s,c,function(g,x){return oh(s,x)})}function ym(s,c,g){for(var x=-1,R=c.length,L={};++x<R;){var H=c[x],F=wo(s,H);g(F,H)&&ca(L,zi(H,s),F)}return L}function u_(s){return function(c){return wo(c,s)}}function If(s,c,g,x){var R=x?BO:Qo,L=-1,H=c.length,F=s;for(s===c&&(c=Nn(c)),g&&(F=Ht(s,Xn(g)));++L<H;)for(var J=0,ie=c[L],se=g?g(ie):ie;(J=R(F,se,J,x))>-1;)F!==s&&Pl.call(F,J,1),Pl.call(s,J,1);return s}function bm(s,c){for(var g=s?c.length:0,x=g-1;g--;){var R=c[g];if(g==x||R!==L){var L=R;pi(R)?Pl.call(s,R,1):Nf(s,R)}}return s}function Lf(s,c){return s+Bl(Xg()*(c-s+1))}function d_(s,c,g,x){for(var R=-1,L=Zt(Ll((c-s)/(g||1)),0),H=Q(L);L--;)H[x?L:++R]=s,s+=g;return H}function Bf(s,c){var g="";if(!s||c<1||c>be)return g;do c%2&&(g+=s),c=Bl(c/2),c&&(s+=s);while(c);return g}function rt(s,c){return Zf(Jm(s,c,Dn),s+"")}function f_(s){return tm(us(s))}function h_(s,c){var g=us(s);return Zl(g,vo(c,0,g.length))}function ca(s,c,g,x){if(!$t(s))return s;c=zi(c,s);for(var R=-1,L=c.length,H=L-1,F=s;F!=null&&++R<L;){var J=Vr(c[R]),ie=g;if(J==="__proto__"||J==="constructor"||J==="prototype")return s;if(R!=H){var se=F[J];ie=x?x(se,J,F):i,ie===i&&(ie=$t(se)?se:pi(c[R+1])?[]:{})}oa(F,J,ie),F=F[J]}return s}var vm=kl?function(s,c){return kl.set(s,c),s}:Dn,p_=Il?function(s,c){return Il(s,"toString",{configurable:!0,enumerable:!1,value:ah(c),writable:!0})}:Dn;function g_(s){return Zl(us(s))}function vr(s,c,g){var x=-1,R=s.length;c<0&&(c=-c>R?0:R+c),g=g>R?R:g,g<0&&(g+=R),R=c>g?0:g-c>>>0,c>>>=0;for(var L=Q(R);++x<R;)L[x]=s[x+c];return L}function m_(s,c){var g;return Ui(s,function(x,R,L){return g=c(x,R,L),!g}),!!g}function Ul(s,c,g){var x=0,R=s==null?x:s.length;if(typeof c=="number"&&c===c&&R<=ue){for(;x<R;){var L=x+R>>>1,H=s[L];H!==null&&!er(H)&&(g?H<=c:H<c)?x=L+1:R=L}return R}return kf(s,c,Dn,g)}function kf(s,c,g,x){var R=0,L=s==null?0:s.length;if(L===0)return 0;c=g(c);for(var H=c!==c,F=c===null,J=er(c),ie=c===i;R<L;){var se=Bl((R+L)/2),ce=g(s[se]),Te=ce!==i,ke=ce===null,We=ce===ce,nt=er(ce);if(H)var Ge=x||We;else ie?Ge=We&&(x||Te):F?Ge=We&&Te&&(x||!ke):J?Ge=We&&Te&&!ke&&(x||!nt):ke||nt?Ge=!1:Ge=x?ce<=c:ce<c;Ge?R=se+1:L=se}return mn(L,Ae)}function wm(s,c){for(var g=-1,x=s.length,R=0,L=[];++g<x;){var H=s[g],F=c?c(H):H;if(!g||!Lr(F,J)){var J=F;L[R++]=H===0?0:H}}return L}function Em(s){return typeof s=="number"?s:er(s)?re:+s}function Qn(s){if(typeof s=="string")return s;if(Qe(s))return Ht(s,Qn)+"";if(er(s))return Qg?Qg.call(s):"";var c=s+"";return c=="0"&&1/s==-ye?"-0":c}function qi(s,c,g){var x=-1,R=El,L=s.length,H=!0,F=[],J=F;if(g)H=!1,R=uf;else if(L>=n){var ie=c?null:C_(s);if(ie)return Ol(ie);H=!1,R=Qs,J=new bo}else J=c?[]:F;e:for(;++x<L;){var se=s[x],ce=c?c(se):se;if(se=g||se!==0?se:0,H&&ce===ce){for(var Te=J.length;Te--;)if(J[Te]===ce)continue e;c&&J.push(ce),F.push(se)}else R(J,ce,g)||(J!==F&&J.push(ce),F.push(se))}return F}function Nf(s,c){return c=zi(c,s),s=Km(s,c),s==null||delete s[Vr(wr(c))]}function Sm(s,c,g,x){return ca(s,c,g(wo(s,c)),x)}function ql(s,c,g,x){for(var R=s.length,L=x?R:-1;(x?L--:++L<R)&&c(s[L],L,s););return g?vr(s,x?0:L,x?L+1:R):vr(s,x?L+1:0,x?R:L)}function Om(s,c){var g=s;return g instanceof ut&&(g=g.value()),df(c,function(x,R){return R.func.apply(R.thisArg,ji([x],R.args))},g)}function Hf(s,c,g){var x=s.length;if(x<2)return x?qi(s[0]):[];for(var R=-1,L=Q(x);++R<x;)for(var H=s[R],F=-1;++F<x;)F!=R&&(L[R]=sa(L[R]||H,s[F],c,g));return qi(cn(L,1),c,g)}function xm(s,c,g){for(var x=-1,R=s.length,L=c.length,H={};++x<R;){var F=x<L?c[x]:i;g(H,s[x],F)}return H}function jf(s){return Wt(s)?s:[]}function Df(s){return typeof s=="function"?s:Dn}function zi(s,c){return Qe(s)?s:Jf(s,c)?[s]:Qm(St(s))}var y_=rt;function Wi(s,c,g){var x=s.length;return g=g===i?x:g,!c&&g>=x?s:vr(s,c,g)}var _m=ix||function(s){return en.clearTimeout(s)};function Tm(s,c){if(c)return s.slice();var g=s.length,x=Vg?Vg(g):new s.constructor(g);return s.copy(x),x}function Ff(s){var c=new s.constructor(s.byteLength);return new Rl(c).set(new Rl(s)),c}function b_(s,c){var g=c?Ff(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.byteLength)}function v_(s){var c=new s.constructor(s.source,cg.exec(s));return c.lastIndex=s.lastIndex,c}function w_(s){return ia?Rt(ia.call(s)):{}}function Cm(s,c){var g=c?Ff(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.length)}function Am(s,c){if(s!==c){var g=s!==i,x=s===null,R=s===s,L=er(s),H=c!==i,F=c===null,J=c===c,ie=er(c);if(!F&&!ie&&!L&&s>c||L&&H&&J&&!F&&!ie||x&&H&&J||!g&&J||!R)return 1;if(!x&&!L&&!ie&&s<c||ie&&g&&R&&!x&&!L||F&&g&&R||!H&&R||!J)return-1}return 0}function E_(s,c,g){for(var x=-1,R=s.criteria,L=c.criteria,H=R.length,F=g.length;++x<H;){var J=Am(R[x],L[x]);if(J){if(x>=F)return J;var ie=g[x];return J*(ie=="desc"?-1:1)}}return s.index-c.index}function Rm(s,c,g,x){for(var R=-1,L=s.length,H=g.length,F=-1,J=c.length,ie=Zt(L-H,0),se=Q(J+ie),ce=!x;++F<J;)se[F]=c[F];for(;++R<H;)(ce||R<L)&&(se[g[R]]=s[R]);for(;ie--;)se[F++]=s[R++];return se}function Mm(s,c,g,x){for(var R=-1,L=s.length,H=-1,F=g.length,J=-1,ie=c.length,se=Zt(L-F,0),ce=Q(se+ie),Te=!x;++R<se;)ce[R]=s[R];for(var ke=R;++J<ie;)ce[ke+J]=c[J];for(;++H<F;)(Te||R<L)&&(ce[ke+g[H]]=s[R++]);return ce}function Nn(s,c){var g=-1,x=s.length;for(c||(c=Q(x));++g<x;)c[g]=s[g];return c}function Gr(s,c,g,x){var R=!g;g||(g={});for(var L=-1,H=c.length;++L<H;){var F=c[L],J=x?x(g[F],s[F],F,g,s):i;J===i&&(J=s[F]),R?di(g,F,J):oa(g,F,J)}return g}function S_(s,c){return Gr(s,Vf(s),c)}function O_(s,c){return Gr(s,qm(s),c)}function zl(s,c){return function(g,x){var R=Qe(g)?AO:Wx,L=c?c():{};return R(g,s,Ue(x,2),L)}}function ss(s){return rt(function(c,g){var x=-1,R=g.length,L=R>1?g[R-1]:i,H=R>2?g[2]:i;for(L=s.length>3&&typeof L=="function"?(R--,L):i,H&&Tn(g[0],g[1],H)&&(L=R<3?i:L,R=1),c=Rt(c);++x<R;){var F=g[x];F&&s(c,F,x,L)}return c})}function Pm(s,c){return function(g,x){if(g==null)return g;if(!Hn(g))return s(g,x);for(var R=g.length,L=c?R:-1,H=Rt(g);(c?L--:++L<R)&&x(H[L],L,H)!==!1;);return g}}function Im(s){return function(c,g,x){for(var R=-1,L=Rt(c),H=x(c),F=H.length;F--;){var J=H[s?F:++R];if(g(L[J],J,L)===!1)break}return c}}function x_(s,c,g){var x=c&v,R=ua(s);function L(){var H=this&&this!==en&&this instanceof L?R:s;return H.apply(x?g:this,arguments)}return L}function Lm(s){return function(c){c=St(c);var g=es(c)?Pr(c):i,x=g?g[0]:c.charAt(0),R=g?Wi(g,1).join(""):c.slice(1);return x[s]()+R}}function as(s){return function(c){return df(Py(My(c).replace(pO,"")),s,"")}}function ua(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var g=os(s.prototype),x=s.apply(g,c);return $t(x)?x:g}}function __(s,c,g){var x=ua(s);function R(){for(var L=arguments.length,H=Q(L),F=L,J=ls(R);F--;)H[F]=arguments[F];var ie=L<3&&H[0]!==J&&H[L-1]!==J?[]:Di(H,J);if(L-=ie.length,L<g)return jm(s,c,Wl,R.placeholder,i,H,ie,i,i,g-L);var se=this&&this!==en&&this instanceof R?x:s;return Zn(se,this,H)}return R}function Bm(s){return function(c,g,x){var R=Rt(c);if(!Hn(c)){var L=Ue(g,3);c=tn(c),g=function(F){return L(R[F],F,R)}}var H=s(c,g,x);return H>-1?R[L?c[H]:H]:i}}function km(s){return hi(function(c){var g=c.length,x=g,R=yr.prototype.thru;for(s&&c.reverse();x--;){var L=c[x];if(typeof L!="function")throw new mr(o);if(R&&!H&&Kl(L)=="wrapper")var H=new yr([],!0)}for(x=H?x:g;++x<g;){L=c[x];var F=Kl(L),J=F=="wrapper"?Wf(L):i;J&&Kf(J[0])&&J[1]==(_|w|T|P)&&!J[4].length&&J[9]==1?H=H[Kl(J[0])].apply(H,J[3]):H=L.length==1&&Kf(L)?H[F]():H.thru(L)}return function(){var ie=arguments,se=ie[0];if(H&&ie.length==1&&Qe(se))return H.plant(se).value();for(var ce=0,Te=g?c[ce].apply(this,ie):se;++ce<g;)Te=c[ce].call(this,Te);return Te}})}function Wl(s,c,g,x,R,L,H,F,J,ie){var se=c&_,ce=c&v,Te=c&y,ke=c&(w|O),We=c&D,nt=Te?i:ua(s);function Ge(){for(var at=arguments.length,ht=Q(at),tr=at;tr--;)ht[tr]=arguments[tr];if(ke)var Cn=ls(Ge),nr=HO(ht,Cn);if(x&&(ht=Rm(ht,x,R,ke)),L&&(ht=Mm(ht,L,H,ke)),at-=nr,ke&&at<ie){var Gt=Di(ht,Cn);return jm(s,c,Wl,Ge.placeholder,g,ht,Gt,F,J,ie-at)}var Br=ce?g:this,yi=Te?Br[s]:s;return at=ht.length,F?ht=W_(ht,F):We&&at>1&&ht.reverse(),se&&J<at&&(ht.length=J),this&&this!==en&&this instanceof Ge&&(yi=nt||ua(yi)),yi.apply(Br,ht)}return Ge}function Nm(s,c){return function(g,x){return Qx(g,s,c(x),{})}}function Gl(s,c){return function(g,x){var R;if(g===i&&x===i)return c;if(g!==i&&(R=g),x!==i){if(R===i)return x;typeof g=="string"||typeof x=="string"?(g=Qn(g),x=Qn(x)):(g=Em(g),x=Em(x)),R=s(g,x)}return R}}function $f(s){return hi(function(c){return c=Ht(c,Xn(Ue())),rt(function(g){var x=this;return s(c,function(R){return Zn(R,x,g)})})})}function Vl(s,c){c=c===i?" ":Qn(c);var g=c.length;if(g<2)return g?Bf(c,s):c;var x=Bf(c,Ll(s/ts(c)));return es(c)?Wi(Pr(x),0,s).join(""):x.slice(0,s)}function T_(s,c,g,x){var R=c&v,L=ua(s);function H(){for(var F=-1,J=arguments.length,ie=-1,se=x.length,ce=Q(se+J),Te=this&&this!==en&&this instanceof H?L:s;++ie<se;)ce[ie]=x[ie];for(;J--;)ce[ie++]=arguments[++F];return Zn(Te,R?g:this,ce)}return H}function Hm(s){return function(c,g,x){return x&&typeof x!="number"&&Tn(c,g,x)&&(g=x=i),c=mi(c),g===i?(g=c,c=0):g=mi(g),x=x===i?c<g?1:-1:mi(x),d_(c,g,x,s)}}function Jl(s){return function(c,g){return typeof c=="string"&&typeof g=="string"||(c=Er(c),g=Er(g)),s(c,g)}}function jm(s,c,g,x,R,L,H,F,J,ie){var se=c&w,ce=se?H:i,Te=se?i:H,ke=se?L:i,We=se?i:L;c|=se?T:C,c&=~(se?C:T),c&b||(c&=~(v|y));var nt=[s,c,R,ke,ce,We,Te,F,J,ie],Ge=g.apply(i,nt);return Kf(s)&&Ym(Ge,nt),Ge.placeholder=x,Zm(Ge,s,c)}function Uf(s){var c=Yt[s];return function(g,x){if(g=Er(g),x=x==null?0:mn(tt(x),292),x&&Zg(g)){var R=(St(g)+"e").split("e"),L=c(R[0]+"e"+(+R[1]+x));return R=(St(L)+"e").split("e"),+(R[0]+"e"+(+R[1]-x))}return c(g)}}var C_=rs&&1/Ol(new rs([,-0]))[1]==ye?function(s){return new rs(s)}:uh;function Dm(s){return function(c){var g=yn(c);return g==Et?bf(c):g==Oe?zO(c):NO(c,s(c))}}function fi(s,c,g,x,R,L,H,F){var J=c&y;if(!J&&typeof s!="function")throw new mr(o);var ie=x?x.length:0;if(ie||(c&=~(T|C),x=R=i),H=H===i?H:Zt(tt(H),0),F=F===i?F:tt(F),ie-=R?R.length:0,c&C){var se=x,ce=R;x=R=i}var Te=J?i:Wf(s),ke=[s,c,g,x,R,se,ce,L,H,F];if(Te&&U_(ke,Te),s=ke[0],c=ke[1],g=ke[2],x=ke[3],R=ke[4],F=ke[9]=ke[9]===i?J?0:s.length:Zt(ke[9]-ie,0),!F&&c&(w|O)&&(c&=~(w|O)),!c||c==v)var We=x_(s,c,g);else c==w||c==O?We=__(s,c,F):(c==T||c==(v|T))&&!R.length?We=T_(s,c,g,x):We=Wl.apply(i,ke);var nt=Te?vm:Ym;return Zm(nt(We,ke),s,c)}function Fm(s,c,g,x){return s===i||Lr(s,ns[g])&&!xt.call(x,g)?c:s}function $m(s,c,g,x,R,L){return $t(s)&&$t(c)&&(L.set(c,s),$l(s,c,i,$m,L),L.delete(c)),s}function A_(s){return ha(s)?i:s}function Um(s,c,g,x,R,L){var H=g&E,F=s.length,J=c.length;if(F!=J&&!(H&&J>F))return!1;var ie=L.get(s),se=L.get(c);if(ie&&se)return ie==c&&se==s;var ce=-1,Te=!0,ke=g&S?new bo:i;for(L.set(s,c),L.set(c,s);++ce<F;){var We=s[ce],nt=c[ce];if(x)var Ge=H?x(nt,We,ce,c,s,L):x(We,nt,ce,s,c,L);if(Ge!==i){if(Ge)continue;Te=!1;break}if(ke){if(!ff(c,function(at,ht){if(!Qs(ke,ht)&&(We===at||R(We,at,g,x,L)))return ke.push(ht)})){Te=!1;break}}else if(!(We===nt||R(We,nt,g,x,L))){Te=!1;break}}return L.delete(s),L.delete(c),Te}function R_(s,c,g,x,R,L,H){switch(g){case oe:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case X:return!(s.byteLength!=c.byteLength||!L(new Rl(s),new Rl(c)));case ee:case ne:case On:return Lr(+s,+c);case bt:return s.name==c.name&&s.message==c.message;case xn:case pe:return s==c+"";case Et:var F=bf;case Oe:var J=x&E;if(F||(F=Ol),s.size!=c.size&&!J)return!1;var ie=H.get(s);if(ie)return ie==c;x|=S,H.set(s,c);var se=Um(F(s),F(c),x,R,L,H);return H.delete(s),se;case le:if(ia)return ia.call(s)==ia.call(c)}return!1}function M_(s,c,g,x,R,L){var H=g&E,F=qf(s),J=F.length,ie=qf(c),se=ie.length;if(J!=se&&!H)return!1;for(var ce=J;ce--;){var Te=F[ce];if(!(H?Te in c:xt.call(c,Te)))return!1}var ke=L.get(s),We=L.get(c);if(ke&&We)return ke==c&&We==s;var nt=!0;L.set(s,c),L.set(c,s);for(var Ge=H;++ce<J;){Te=F[ce];var at=s[Te],ht=c[Te];if(x)var tr=H?x(ht,at,Te,c,s,L):x(at,ht,Te,s,c,L);if(!(tr===i?at===ht||R(at,ht,g,x,L):tr)){nt=!1;break}Ge||(Ge=Te=="constructor")}if(nt&&!Ge){var Cn=s.constructor,nr=c.constructor;Cn!=nr&&"constructor"in s&&"constructor"in c&&!(typeof Cn=="function"&&Cn instanceof Cn&&typeof nr=="function"&&nr instanceof nr)&&(nt=!1)}return L.delete(s),L.delete(c),nt}function hi(s){return Zf(Jm(s,i,ry),s+"")}function qf(s){return lm(s,tn,Vf)}function zf(s){return lm(s,jn,qm)}var Wf=kl?function(s){return kl.get(s)}:uh;function Kl(s){for(var c=s.name+"",g=is[c],x=xt.call(is,c)?g.length:0;x--;){var R=g[x],L=R.func;if(L==null||L==s)return R.name}return c}function ls(s){var c=xt.call(M,"placeholder")?M:s;return c.placeholder}function Ue(){var s=M.iteratee||lh;return s=s===lh?dm:s,arguments.length?s(arguments[0],arguments[1]):s}function Yl(s,c){var g=s.__data__;return j_(c)?g[typeof c=="string"?"string":"hash"]:g.map}function Gf(s){for(var c=tn(s),g=c.length;g--;){var x=c[g],R=s[x];c[g]=[x,R,Gm(R)]}return c}function Eo(s,c){var g=$O(s,c);return um(g)?g:i}function P_(s){var c=xt.call(s,mo),g=s[mo];try{s[mo]=i;var x=!0}catch(L){}var R=Cl.call(s);return x&&(c?s[mo]=g:delete s[mo]),R}var Vf=wf?function(s){return s==null?[]:(s=Rt(s),Hi(wf(s),function(c){return Kg.call(s,c)}))}:dh,qm=wf?function(s){for(var c=[];s;)ji(c,Vf(s)),s=Ml(s);return c}:dh,yn=_n;(Ef&&yn(new Ef(new ArrayBuffer(1)))!=oe||ta&&yn(new ta)!=Et||Sf&&yn(Sf.resolve())!=Kt||rs&&yn(new rs)!=Oe||na&&yn(new na)!=Ie)&&(yn=function(s){var c=_n(s),g=c==It?s.constructor:i,x=g?So(g):"";if(x)switch(x){case hx:return oe;case px:return Et;case gx:return Kt;case mx:return Oe;case yx:return Ie}return c});function I_(s,c,g){for(var x=-1,R=g.length;++x<R;){var L=g[x],H=L.size;switch(L.type){case"drop":s+=H;break;case"dropRight":c-=H;break;case"take":c=mn(c,s+H);break;case"takeRight":s=Zt(s,c-H);break}}return{start:s,end:c}}function L_(s){var c=s.match(li);return c?c[1].split(po):[]}function zm(s,c,g){c=zi(c,s);for(var x=-1,R=c.length,L=!1;++x<R;){var H=Vr(c[x]);if(!(L=s!=null&&g(s,H)))break;s=s[H]}return L||++x!=R?L:(R=s==null?0:s.length,!!R&&rc(R)&&pi(H,R)&&(Qe(s)||Oo(s)))}function B_(s){var c=s.length,g=new s.constructor(c);return c&&typeof s[0]=="string"&&xt.call(s,"index")&&(g.index=s.index,g.input=s.input),g}function Wm(s){return typeof s.constructor=="function"&&!da(s)?os(Ml(s)):{}}function k_(s,c,g){var x=s.constructor;switch(c){case X:return Ff(s);case ee:case ne:return new x(+s);case oe:return b_(s,g);case ve:case Ce:case ft:case $e:case Ye:case je:case Xe:case et:case kn:return Cm(s,g);case Et:return new x;case On:case pe:return new x(s);case xn:return v_(s);case Oe:return new x;case le:return w_(s)}}function N_(s,c){var g=c.length;if(!g)return s;var x=g-1;return c[x]=(g>1?"& ":"")+c[x],c=c.join(g>2?", ":" "),s.replace(ml,`{
47
+ `)});let l=t.nonTextTags||["script","style","textarea","option"],u,d;t.allowedAttributes&&(u={},d={},Wa(t.allowedAttributes,function(k,B){u[B]=[];let N=[];k.forEach(function(W){typeof W=="string"&&W.indexOf("*")>=0?N.push(Dk(W).replace(/\\\*/g,".*")):u[B].push(W)}),d[B]=new RegExp("^("+N.join("|")+")$")}));let f={};Wa(t.allowedClasses,function(k,B){u&&(Mi(u,B)||(u[B]=[]),u[B].push("class")),f[B]=k});let m={},p;Wa(t.transformTags,function(k,B){let N;typeof k=="function"?N=k:typeof k=="string"&&(N=Ga.simpleTransform(k)),B==="*"?p=N:m[B]=N});let E,S,v,y,b,w,O=!1;C();let T=new jk.Parser({onopentag:function(k,B){if(t.enforceHtmlBoundary&&k==="html"&&C(),b){w++;return}let N=new a(k,B);S.push(N);let W=!1,ye=!!N.text,be;if(Mi(m,k)&&(be=m[k](k,B),N.attribs=B=be.attribs,be.text!==void 0&&(N.innerText=be.text),k!==be.tagName&&(N.name=k=be.tagName,y[E]=be.tagName)),p&&(be=p(k,B),N.attribs=B=be.attribs,k!==be.tagName&&(N.name=k=be.tagName,y[E]=be.tagName)),(t.allowedTags&&t.allowedTags.indexOf(k)===-1||t.disallowedTagsMode==="recursiveEscape"&&!Gk(v)||t.nestingLimit!=null&&E>=t.nestingLimit)&&(W=!0,v[E]=!0,t.disallowedTagsMode==="discard"&&l.indexOf(k)!==-1&&(b=!0,w=1),v[E]=!0),E++,W){if(t.disallowedTagsMode==="discard")return;o=r,r=""}r+="<"+k,(!u||Mi(u,k)||u["*"])&&Wa(B,function(fe,re){if(!Jk.test(re)){delete N.attribs[re];return}let he,Ae=!1;if(!u||Mi(u,k)&&u[k].indexOf(re)!==-1||u["*"]&&u["*"].indexOf(re)!==-1||Mi(d,k)&&d[k].test(re)||d["*"]&&d["*"].test(re))Ae=!0;else if(u&&u[k]){for(let ue of u[k])if($k(ue)&&ue.name&&ue.name===re){Ae=!0;let xe="";if(ue.multiple===!0){let Re=fe.split(" ");for(let Se of Re)ue.values.indexOf(Se)!==-1&&(xe===""?xe=Se:xe+=" "+Se)}else ue.values.indexOf(fe)>=0&&(xe=fe);fe=xe}}if(Ae){if(t.allowedSchemesAppliedToAttributes.indexOf(re)!==-1&&I(k,fe)){delete N.attribs[re];return}if(k==="iframe"&&re==="src"){let ue=!0;try{if(fe=fe.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),fe.startsWith("relative:"))throw new Error("relative: exploit attempt");let xe="relative://relative-site";for(let V=0;V<100;V++)xe+=`/${V}`;let Re=new URL(fe,xe);if(Re&&Re.hostname==="relative-site"&&Re.protocol==="relative:")ue=Mi(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){let V=(t.allowedIframeHostnames||[]).find(function(ne){return ne===Re.hostname}),ee=(t.allowedIframeDomains||[]).find(function(ne){return Re.hostname===ne||Re.hostname.endsWith(`.${ne}`)});ue=V||ee}}catch(xe){ue=!1}if(!ue){delete N.attribs[re];return}}if(re==="srcset")try{if(he=Uk(fe),he.forEach(function(ue){I("srcset",ue.url)&&(ue.evil=!0)}),he=JE(he,function(ue){return!ue.evil}),he.length)fe=Vk(JE(he,function(ue){return!ue.evil})),N.attribs[re]=fe;else{delete N.attribs[re];return}}catch(ue){delete N.attribs[re];return}if(re==="class"){let ue=f[k],xe=f["*"];if(ue&&xe?fe=F(fe,VE(ue,xe)):fe=F(fe,ue||xe),!fe.length){delete N.attribs[re];return}}if(re==="style")try{let ue=qk(k+" {"+fe+"}"),xe=D(ue,t.allowedStyles);if(fe=P(xe),fe.length===0){delete N.attribs[re];return}}catch(ue){delete N.attribs[re];return}r+=" "+re,fe&&fe.length&&(r+='="'+_(fe,!0)+'"')}else delete N.attribs[re]}),t.selfClosing.indexOf(k)!==-1?r+=" />":(r+=">",N.innerText&&!ye&&!t.textFilter&&(r+=_(N.innerText),O=!0)),W&&(r=o+_(r),o="")},ontext:function(k){if(b)return;let B=S[S.length-1],N;if(B&&(N=B.tag,k=B.innerText!==void 0?B.innerText:k),t.disallowedTagsMode==="discard"&&(N==="script"||N==="style"))r+=k;else{let W=_(k,!1);t.textFilter&&!O?r+=t.textFilter(W,N):O||(r+=W)}if(S.length){let W=S[S.length-1];W.text+=k}},onclosetag:function(k){if(b)if(w--,!w)b=!1;else return;let B=S.pop();if(!B)return;b=t.enforceHtmlBoundary?k==="html":!1,E--;let N=v[E];if(N){if(delete v[E],t.disallowedTagsMode==="discard"){B.updateParentNodeText();return}o=r,r=""}if(y[E]&&(k=y[E],delete y[E]),t.exclusiveFilter&&t.exclusiveFilter(B)){r=r.substr(0,B.tagPosition);return}if(B.updateParentNodeMediaChildren(),B.updateParentNodeText(),t.selfClosing.indexOf(k)!==-1){N&&(r=o,o="");return}r+="</"+k+">",N&&(r=o+_(r),o="")}},t.parser);return T.write(i),T.end(),r;function C(){r="",E=0,S=[],v={},y={},b=!1,w=0}function _(k,B){return typeof k!="string"&&(k=k+""),t.parser.decodeEntities&&(k=k.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),B&&(k=k.replace(/"/g,"&quot;"))),k=k.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),B&&(k=k.replace(/"/g,"&quot;")),k}function I(k,B){B=B.replace(/[\x00-\x20]+/g,""),B=B.replace(/<!--.*?-->/g,"");let N=B.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!N)return B.match(/^[/\\]{2}/)?!t.allowProtocolRelative:!1;let W=N[1].toLowerCase();return Mi(t.allowedSchemesByTag,k)?t.allowedSchemesByTag[k].indexOf(W)===-1:!t.allowedSchemes||t.allowedSchemes.indexOf(W)===-1}function D(k,B){if(!B)return k;let N=Fk(k),W=k.nodes[0],ye;return B[W.selector]&&B["*"]?ye=VE(B[W.selector],B["*"]):ye=B[W.selector]||B["*"],ye&&(N.nodes[0].nodes=W.nodes.reduce(q(ye),[])),N}function P(k){return k.nodes[0].nodes.reduce(function(B,N){return B.push(N.prop+":"+N.value),B},[]).join(";")}function q(k){return function(B,N){return Mi(k,N.prop)&&k[N.prop].some(function(ye){return ye.test(N.value)})&&B.push(N),B}}function F(k,B){return B?(k=k.split(/\s+/),k.filter(function(N){return B.indexOf(N)!==-1}).join(" ")):k}}var Kk={decodeEntities:!0};Ga.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1};Ga.simpleTransform=function(i,t,n){return n=n===void 0?!0:n,t=t||{},function(r,o){let a;if(n)for(a in t)o[a]=t[a];else o=t;return{tagName:i,attribs:o}}}});var Dt=Y((ZE,fd)=>{A();(function(i,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof fd=="object"&&fd.exports?fd.exports=t():i.log=t()})(ZE,function(){"use strict";var i=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function o(v,y){var b=v[y];if(typeof b.bind=="function")return b.bind(v);try{return Function.prototype.bind.call(b,v)}catch(w){return function(){return Function.prototype.apply.apply(b,[v,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(v){return v==="debug"&&(v="log"),typeof console===t?!1:v==="trace"&&n?a:console[v]!==void 0?o(console,v):console.log!==void 0?o(console,"log"):i}function u(v,y){for(var b=0;b<r.length;b++){var w=r[b];this[w]=b<v?i:this.methodFactory(w,v,y)}this.log=this.debug}function d(v,y,b){return function(){typeof console!==t&&(u.call(this,y,b),this[v].apply(this,arguments))}}function f(v,y,b){return l(v)||d.apply(this,arguments)}function m(v,y,b){var w=this,O;y=y??"WARN";var T="loglevel";typeof v=="string"?T+=":"+v:typeof v=="symbol"&&(T=void 0);function C(P){var q=(r[P]||"silent").toUpperCase();if(!(typeof window===t||!T)){try{window.localStorage[T]=q;return}catch(F){}try{window.document.cookie=encodeURIComponent(T)+"="+q+";"}catch(F){}}}function _(){var P;if(!(typeof window===t||!T)){try{P=window.localStorage[T]}catch(k){}if(typeof P===t)try{var q=window.document.cookie,F=q.indexOf(encodeURIComponent(T)+"=");F!==-1&&(P=/^([^;]+)/.exec(q.slice(F))[1])}catch(k){}return w.levels[P]===void 0&&(P=void 0),P}}function I(){if(!(typeof window===t||!T)){try{window.localStorage.removeItem(T);return}catch(P){}try{window.document.cookie=encodeURIComponent(T)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(P){}}}w.name=v,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=b||f,w.getLevel=function(){return O},w.setLevel=function(P,q){if(typeof P=="string"&&w.levels[P.toUpperCase()]!==void 0&&(P=w.levels[P.toUpperCase()]),typeof P=="number"&&P>=0&&P<=w.levels.SILENT){if(O=P,q!==!1&&C(P),u.call(w,P,v),typeof console===t&&P<w.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+P},w.setDefaultLevel=function(P){y=P,_()||w.setLevel(P,!1)},w.resetLevel=function(){w.setLevel(y,!1),I()},w.enableAll=function(P){w.setLevel(w.levels.TRACE,P)},w.disableAll=function(P){w.setLevel(w.levels.SILENT,P)};var D=_();D==null&&(D=y),w.setLevel(D,!1)}var p=new m,E={};p.getLogger=function(y){if(typeof y!="symbol"&&typeof y!="string"||y==="")throw new TypeError("You must supply a name when creating a logger.");var b=E[y];return b||(b=E[y]=new m(y,p.getLevel(),p.methodFactory)),b};var S=typeof window!==t?window.log:void 0;return p.noConflict=function(){return typeof window!==t&&window.log===p&&(window.log=S),p},p.getLoggers=function(){return E},p.default=p,p})});var to=Y((dj,QE)=>{A();function Qp(i,t,n){var r,o,a,l,u;t==null&&(t=100);function d(){var m=Date.now()-l;m<t&&m>=0?r=setTimeout(d,t-m):(r=null,n||(u=i.apply(a,o),a=o=null))}var f=function(){a=this,o=arguments,l=Date.now();var m=n&&!r;return r||(r=setTimeout(d,t)),m&&(u=i.apply(a,o),a=o=null),u};return f.clear=function(){r&&(clearTimeout(r),r=null)},f.flush=function(){r&&(u=i.apply(a,o),a=o=null,clearTimeout(r),r=null)},f}Qp.debounce=Qp;QE.exports=Qp});var m4=Y((Qj,g4)=>{A();"use strict";var l8={},c8=l8.hasOwnProperty,u8=function(t,n){if(!t)return n;var r={};for(var o in n)r[o]=c8.call(t,o)?t[o]:n[o];return r},d8=/[ -,\.\/:-@\[-\^`\{-~]/,f8=/[ -,\.\/:-@\[\]\^`\{-~]/,h8=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,s0=function i(t,n){n=u8(n,i.options),n.quotes!="single"&&n.quotes!="double"&&(n.quotes="single");for(var r=n.quotes=="double"?'"':"'",o=n.isIdentifier,a=t.charAt(0),l="",u=0,d=t.length;u<d;){var f=t.charAt(u++),m=f.charCodeAt(),p=void 0;if(m<32||m>126){if(m>=55296&&m<=56319&&u<d){var E=t.charCodeAt(u++);(E&64512)==56320?m=((m&1023)<<10)+(E&1023)+65536:u--}p="\\"+m.toString(16).toUpperCase()+" "}else n.escapeEverything?d8.test(f)?p="\\"+f:p="\\"+m.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(f)?p="\\"+m.toString(16).toUpperCase()+" ":f=="\\"||!o&&(f=='"'&&r==f||f=="'"&&r==f)||o&&f8.test(f)?p="\\"+f:p=f;l+=p}return o&&(/^-[-\d]/.test(l)?l="\\-"+l.slice(1):/\d/.test(a)&&(l="\\3"+a+" "+l.slice(1))),l=l.replace(h8,function(S,v,y){return v&&v.length%2?S:(v||"")+y}),!o&&n.wrap?r+l+r:l};s0.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};s0.version="3.0.0";g4.exports=s0});var Ed=Y((qs,Ja)=>{A();(function(){var i,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,m=2,p=4,E=1,S=2,v=1,y=2,b=4,w=8,O=16,T=32,C=64,_=128,I=256,D=512,P=30,q="...",F=800,k=16,B=1,N=2,W=3,ye=1/0,be=9007199254740991,fe=17976931348623157e292,re=0/0,he=4294967295,Ae=he-1,ue=he>>>1,xe=[["ary",_],["bind",v],["bindKey",y],["curry",w],["curryRight",O],["flip",D],["partial",T],["partialRight",C],["rearg",I]],Re="[object Arguments]",Se="[object Array]",V="[object AsyncFunction]",ee="[object Boolean]",ne="[object Date]",ae="[object DOMException]",bt="[object Error]",Ft="[object Function]",Mt="[object GeneratorFunction]",Et="[object Map]",On="[object Number]",Bn="[object Null]",It="[object Object]",Kt="[object Promise]",zr="[object Proxy]",xn="[object RegExp]",Oe="[object Set]",pe="[object String]",le="[object Symbol]",_e="[object Undefined]",Ie="[object WeakMap]",z="[object WeakSet]",X="[object ArrayBuffer]",oe="[object DataView]",ve="[object Float32Array]",Ce="[object Float64Array]",ft="[object Int8Array]",$e="[object Int16Array]",Ye="[object Int32Array]",je="[object Uint8Array]",Xe="[object Uint8ClampedArray]",et="[object Uint16Array]",kn="[object Uint32Array]",ho=/\b__p \+= '';/g,ul=/\b(__p \+=) '' \+/g,Kd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dl=/&(?:amp|lt|gt|quot|#39);/g,Zs=/[&<>"']/g,Yd=RegExp(dl.source),fl=RegExp(Zs.source),Zd=/<%-([\s\S]+?)%>/g,hl=/<%([\s\S]+?)%>/g,pl=/<%=([\s\S]+?)%>/g,Xd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qd=/^\w*$/,gl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xs=/[\\^$.*+?()[\]{}|]/g,ef=RegExp(Xs.source),Zo=/^\s+/,tf=/\s/,ml=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,li=/\{\n\/\* \[wrapped with (.+)\] \*/,po=/,? & /,yl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,U3=/[()=,{}\[\]\/\s]/,q3=/\\(\\)?/g,z3=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cg=/\w*$/,W3=/^[-+]0x[0-9a-f]+$/i,G3=/^0b[01]+$/i,V3=/^\[object .+?Constructor\]$/,J3=/^0o[0-7]+$/i,K3=/^(?:0|[1-9]\d*)$/,Y3=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bl=/($^)/,Z3=/['\n\r\u2028\u2029\\]/g,vl="\\ud800-\\udfff",X3="\\u0300-\\u036f",Q3="\\ufe20-\\ufe2f",eO="\\u20d0-\\u20ff",ug=X3+Q3+eO,dg="\\u2700-\\u27bf",fg="a-z\\xdf-\\xf6\\xf8-\\xff",tO="\\xac\\xb1\\xd7\\xf7",nO="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rO="\\u2000-\\u206f",iO=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hg="A-Z\\xc0-\\xd6\\xd8-\\xde",pg="\\ufe0e\\ufe0f",gg=tO+nO+rO+iO,nf="['\u2019]",oO="["+vl+"]",mg="["+gg+"]",wl="["+ug+"]",yg="\\d+",sO="["+dg+"]",bg="["+fg+"]",vg="[^"+vl+gg+yg+dg+fg+hg+"]",rf="\\ud83c[\\udffb-\\udfff]",aO="(?:"+wl+"|"+rf+")",wg="[^"+vl+"]",of="(?:\\ud83c[\\udde6-\\uddff]){2}",sf="[\\ud800-\\udbff][\\udc00-\\udfff]",Xo="["+hg+"]",Eg="\\u200d",Sg="(?:"+bg+"|"+vg+")",lO="(?:"+Xo+"|"+vg+")",Og="(?:"+nf+"(?:d|ll|m|re|s|t|ve))?",xg="(?:"+nf+"(?:D|LL|M|RE|S|T|VE))?",_g=aO+"?",Tg="["+pg+"]?",cO="(?:"+Eg+"(?:"+[wg,of,sf].join("|")+")"+Tg+_g+")*",uO="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",dO="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cg=Tg+_g+cO,fO="(?:"+[sO,of,sf].join("|")+")"+Cg,hO="(?:"+[wg+wl+"?",wl,of,sf,oO].join("|")+")",pO=RegExp(nf,"g"),gO=RegExp(wl,"g"),af=RegExp(rf+"(?="+rf+")|"+hO+Cg,"g"),mO=RegExp([Xo+"?"+bg+"+"+Og+"(?="+[mg,Xo,"$"].join("|")+")",lO+"+"+xg+"(?="+[mg,Xo+Sg,"$"].join("|")+")",Xo+"?"+Sg+"+"+Og,Xo+"+"+xg,dO,uO,yg,fO].join("|"),"g"),yO=RegExp("["+Eg+vl+ug+pg+"]"),bO=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vO=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wO=-1,Lt={};Lt[ve]=Lt[Ce]=Lt[ft]=Lt[$e]=Lt[Ye]=Lt[je]=Lt[Xe]=Lt[et]=Lt[kn]=!0,Lt[Re]=Lt[Se]=Lt[X]=Lt[ee]=Lt[oe]=Lt[ne]=Lt[bt]=Lt[Ft]=Lt[Et]=Lt[On]=Lt[It]=Lt[xn]=Lt[Oe]=Lt[pe]=Lt[Ie]=!1;var Pt={};Pt[Re]=Pt[Se]=Pt[X]=Pt[oe]=Pt[ee]=Pt[ne]=Pt[ve]=Pt[Ce]=Pt[ft]=Pt[$e]=Pt[Ye]=Pt[Et]=Pt[On]=Pt[It]=Pt[xn]=Pt[Oe]=Pt[pe]=Pt[le]=Pt[je]=Pt[Xe]=Pt[et]=Pt[kn]=!0,Pt[bt]=Pt[Ft]=Pt[Ie]=!1;var EO={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},SO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},OO={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xO={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_O=parseFloat,TO=parseInt,Ag=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,CO=typeof self=="object"&&self&&self.Object===Object&&self,en=Ag||CO||Function("return this")(),lf=typeof qs=="object"&&qs&&!qs.nodeType&&qs,go=lf&&typeof Ja=="object"&&Ja&&!Ja.nodeType&&Ja,Rg=go&&go.exports===lf,cf=Rg&&Ag.process,pr=function(){try{var G=go&&go.require&&go.require("util").types;return G||cf&&cf.binding&&cf.binding("util")}catch(te){}}(),Mg=pr&&pr.isArrayBuffer,Pg=pr&&pr.isDate,Ig=pr&&pr.isMap,Lg=pr&&pr.isRegExp,Bg=pr&&pr.isSet,kg=pr&&pr.isTypedArray;function Zn(G,te,Q){switch(Q.length){case 0:return G.call(te);case 1:return G.call(te,Q[0]);case 2:return G.call(te,Q[0],Q[1]);case 3:return G.call(te,Q[0],Q[1],Q[2])}return G.apply(te,Q)}function AO(G,te,Q,Pe){for(var Ze=-1,vt=G==null?0:G.length;++Ze<vt;){var Yt=G[Ze];te(Pe,Yt,Q(Yt),G)}return Pe}function gr(G,te){for(var Q=-1,Pe=G==null?0:G.length;++Q<Pe&&te(G[Q],Q,G)!==!1;);return G}function RO(G,te){for(var Q=G==null?0:G.length;Q--&&te(G[Q],Q,G)!==!1;);return G}function Ng(G,te){for(var Q=-1,Pe=G==null?0:G.length;++Q<Pe;)if(!te(G[Q],Q,G))return!1;return!0}function Hi(G,te){for(var Q=-1,Pe=G==null?0:G.length,Ze=0,vt=[];++Q<Pe;){var Yt=G[Q];te(Yt,Q,G)&&(vt[Ze++]=Yt)}return vt}function El(G,te){var Q=G==null?0:G.length;return!!Q&&Qo(G,te,0)>-1}function uf(G,te,Q){for(var Pe=-1,Ze=G==null?0:G.length;++Pe<Ze;)if(Q(te,G[Pe]))return!0;return!1}function Ht(G,te){for(var Q=-1,Pe=G==null?0:G.length,Ze=Array(Pe);++Q<Pe;)Ze[Q]=te(G[Q],Q,G);return Ze}function ji(G,te){for(var Q=-1,Pe=te.length,Ze=G.length;++Q<Pe;)G[Ze+Q]=te[Q];return G}function df(G,te,Q,Pe){var Ze=-1,vt=G==null?0:G.length;for(Pe&&vt&&(Q=G[++Ze]);++Ze<vt;)Q=te(Q,G[Ze],Ze,G);return Q}function MO(G,te,Q,Pe){var Ze=G==null?0:G.length;for(Pe&&Ze&&(Q=G[--Ze]);Ze--;)Q=te(Q,G[Ze],Ze,G);return Q}function ff(G,te){for(var Q=-1,Pe=G==null?0:G.length;++Q<Pe;)if(te(G[Q],Q,G))return!0;return!1}var PO=hf("length");function IO(G){return G.split("")}function LO(G){return G.match(yl)||[]}function Hg(G,te,Q){var Pe;return Q(G,function(Ze,vt,Yt){if(te(Ze,vt,Yt))return Pe=vt,!1}),Pe}function Sl(G,te,Q,Pe){for(var Ze=G.length,vt=Q+(Pe?1:-1);Pe?vt--:++vt<Ze;)if(te(G[vt],vt,G))return vt;return-1}function Qo(G,te,Q){return te===te?WO(G,te,Q):Sl(G,jg,Q)}function BO(G,te,Q,Pe){for(var Ze=Q-1,vt=G.length;++Ze<vt;)if(Pe(G[Ze],te))return Ze;return-1}function jg(G){return G!==G}function Dg(G,te){var Q=G==null?0:G.length;return Q?gf(G,te)/Q:re}function hf(G){return function(te){return te==null?i:te[G]}}function pf(G){return function(te){return G==null?i:G[te]}}function Fg(G,te,Q,Pe,Ze){return Ze(G,function(vt,Yt,Rt){Q=Pe?(Pe=!1,vt):te(Q,vt,Yt,Rt)}),Q}function kO(G,te){var Q=G.length;for(G.sort(te);Q--;)G[Q]=G[Q].value;return G}function gf(G,te){for(var Q,Pe=-1,Ze=G.length;++Pe<Ze;){var vt=te(G[Pe]);vt!==i&&(Q=Q===i?vt:Q+vt)}return Q}function mf(G,te){for(var Q=-1,Pe=Array(G);++Q<G;)Pe[Q]=te(Q);return Pe}function NO(G,te){return Ht(te,function(Q){return[Q,G[Q]]})}function $g(G){return G&&G.slice(0,Wg(G)+1).replace(Zo,"")}function Xn(G){return function(te){return G(te)}}function yf(G,te){return Ht(te,function(Q){return G[Q]})}function Qs(G,te){return G.has(te)}function Ug(G,te){for(var Q=-1,Pe=G.length;++Q<Pe&&Qo(te,G[Q],0)>-1;);return Q}function qg(G,te){for(var Q=G.length;Q--&&Qo(te,G[Q],0)>-1;);return Q}function HO(G,te){for(var Q=G.length,Pe=0;Q--;)G[Q]===te&&++Pe;return Pe}var jO=pf(EO),DO=pf(SO);function FO(G){return"\\"+xO[G]}function $O(G,te){return G==null?i:G[te]}function es(G){return yO.test(G)}function UO(G){return bO.test(G)}function qO(G){for(var te,Q=[];!(te=G.next()).done;)Q.push(te.value);return Q}function bf(G){var te=-1,Q=Array(G.size);return G.forEach(function(Pe,Ze){Q[++te]=[Ze,Pe]}),Q}function zg(G,te){return function(Q){return G(te(Q))}}function Di(G,te){for(var Q=-1,Pe=G.length,Ze=0,vt=[];++Q<Pe;){var Yt=G[Q];(Yt===te||Yt===d)&&(G[Q]=d,vt[Ze++]=Q)}return vt}function Ol(G){var te=-1,Q=Array(G.size);return G.forEach(function(Pe){Q[++te]=Pe}),Q}function zO(G){var te=-1,Q=Array(G.size);return G.forEach(function(Pe){Q[++te]=[Pe,Pe]}),Q}function WO(G,te,Q){for(var Pe=Q-1,Ze=G.length;++Pe<Ze;)if(G[Pe]===te)return Pe;return-1}function GO(G,te,Q){for(var Pe=Q+1;Pe--;)if(G[Pe]===te)return Pe;return Pe}function ts(G){return es(G)?JO(G):PO(G)}function Pr(G){return es(G)?KO(G):IO(G)}function Wg(G){for(var te=G.length;te--&&tf.test(G.charAt(te)););return te}var VO=pf(OO);function JO(G){for(var te=af.lastIndex=0;af.test(G);)++te;return te}function KO(G){return G.match(af)||[]}function YO(G){return G.match(mO)||[]}var ZO=function G(te){te=te==null?en:Fi.defaults(en.Object(),te,Fi.pick(en,vO));var Q=te.Array,Pe=te.Date,Ze=te.Error,vt=te.Function,Yt=te.Math,Rt=te.Object,vf=te.RegExp,XO=te.String,mr=te.TypeError,xl=Q.prototype,QO=vt.prototype,ns=Rt.prototype,_l=te["__core-js_shared__"],Tl=QO.toString,xt=ns.hasOwnProperty,ex=0,Gg=function(){var s=/[^.]+$/.exec(_l&&_l.keys&&_l.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Cl=ns.toString,tx=Tl.call(Rt),nx=en._,rx=vf("^"+Tl.call(xt).replace(Xs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Al=Rg?te.Buffer:i,$i=te.Symbol,Rl=te.Uint8Array,Vg=Al?Al.allocUnsafe:i,Ml=zg(Rt.getPrototypeOf,Rt),Jg=Rt.create,Kg=ns.propertyIsEnumerable,Pl=xl.splice,Yg=$i?$i.isConcatSpreadable:i,ea=$i?$i.iterator:i,mo=$i?$i.toStringTag:i,Il=function(){try{var s=Eo(Rt,"defineProperty");return s({},"",{}),s}catch(c){}}(),ix=te.clearTimeout!==en.clearTimeout&&te.clearTimeout,ox=Pe&&Pe.now!==en.Date.now&&Pe.now,sx=te.setTimeout!==en.setTimeout&&te.setTimeout,Ll=Yt.ceil,Bl=Yt.floor,wf=Rt.getOwnPropertySymbols,ax=Al?Al.isBuffer:i,Zg=te.isFinite,lx=xl.join,cx=zg(Rt.keys,Rt),Zt=Yt.max,mn=Yt.min,ux=Pe.now,dx=te.parseInt,Xg=Yt.random,fx=xl.reverse,Ef=Eo(te,"DataView"),ta=Eo(te,"Map"),Sf=Eo(te,"Promise"),rs=Eo(te,"Set"),na=Eo(te,"WeakMap"),ra=Eo(Rt,"create"),kl=na&&new na,is={},hx=So(Ef),px=So(ta),gx=So(Sf),mx=So(rs),yx=So(na),Nl=$i?$i.prototype:i,ia=Nl?Nl.valueOf:i,Qg=Nl?Nl.toString:i;function M(s){if(Ut(s)&&!Qe(s)&&!(s instanceof ut)){if(s instanceof yr)return s;if(xt.call(s,"__wrapped__"))return ey(s)}return new yr(s)}var os=function(){function s(){}return function(c){if(!$t(c))return{};if(Jg)return Jg(c);s.prototype=c;var g=new s;return s.prototype=i,g}}();function Hl(){}function yr(s,c){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=i}M.templateSettings={escape:Zd,evaluate:hl,interpolate:pl,variable:"",imports:{_:M}},M.prototype=Hl.prototype,M.prototype.constructor=M,yr.prototype=os(Hl.prototype),yr.prototype.constructor=yr;function ut(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=he,this.__views__=[]}function bx(){var s=new ut(this.__wrapped__);return s.__actions__=Nn(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Nn(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Nn(this.__views__),s}function vx(){if(this.__filtered__){var s=new ut(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function wx(){var s=this.__wrapped__.value(),c=this.__dir__,g=Qe(s),x=c<0,R=g?s.length:0,L=I_(0,R,this.__views__),H=L.start,$=L.end,J=$-H,ie=x?$:H-1,se=this.__iteratees__,ce=se.length,Te=0,ke=mn(J,this.__takeCount__);if(!g||!x&&R==J&&ke==J)return Om(s,this.__actions__);var We=[];e:for(;J--&&Te<ke;){ie+=c;for(var nt=-1,Ge=s[ie];++nt<ce;){var at=se[nt],ht=at.iteratee,tr=at.type,Cn=ht(Ge);if(tr==N)Ge=Cn;else if(!Cn){if(tr==B)continue e;break e}}We[Te++]=Ge}return We}ut.prototype=os(Hl.prototype),ut.prototype.constructor=ut;function yo(s){var c=-1,g=s==null?0:s.length;for(this.clear();++c<g;){var x=s[c];this.set(x[0],x[1])}}function Ex(){this.__data__=ra?ra(null):{},this.size=0}function Sx(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}function Ox(s){var c=this.__data__;if(ra){var g=c[s];return g===l?i:g}return xt.call(c,s)?c[s]:i}function xx(s){var c=this.__data__;return ra?c[s]!==i:xt.call(c,s)}function _x(s,c){var g=this.__data__;return this.size+=this.has(s)?0:1,g[s]=ra&&c===i?l:c,this}yo.prototype.clear=Ex,yo.prototype.delete=Sx,yo.prototype.get=Ox,yo.prototype.has=xx,yo.prototype.set=_x;function ci(s){var c=-1,g=s==null?0:s.length;for(this.clear();++c<g;){var x=s[c];this.set(x[0],x[1])}}function Tx(){this.__data__=[],this.size=0}function Cx(s){var c=this.__data__,g=jl(c,s);if(g<0)return!1;var x=c.length-1;return g==x?c.pop():Pl.call(c,g,1),--this.size,!0}function Ax(s){var c=this.__data__,g=jl(c,s);return g<0?i:c[g][1]}function Rx(s){return jl(this.__data__,s)>-1}function Mx(s,c){var g=this.__data__,x=jl(g,s);return x<0?(++this.size,g.push([s,c])):g[x][1]=c,this}ci.prototype.clear=Tx,ci.prototype.delete=Cx,ci.prototype.get=Ax,ci.prototype.has=Rx,ci.prototype.set=Mx;function ui(s){var c=-1,g=s==null?0:s.length;for(this.clear();++c<g;){var x=s[c];this.set(x[0],x[1])}}function Px(){this.size=0,this.__data__={hash:new yo,map:new(ta||ci),string:new yo}}function Ix(s){var c=Yl(this,s).delete(s);return this.size-=c?1:0,c}function Lx(s){return Yl(this,s).get(s)}function Bx(s){return Yl(this,s).has(s)}function kx(s,c){var g=Yl(this,s),x=g.size;return g.set(s,c),this.size+=g.size==x?0:1,this}ui.prototype.clear=Px,ui.prototype.delete=Ix,ui.prototype.get=Lx,ui.prototype.has=Bx,ui.prototype.set=kx;function bo(s){var c=-1,g=s==null?0:s.length;for(this.__data__=new ui;++c<g;)this.add(s[c])}function Nx(s){return this.__data__.set(s,l),this}function Hx(s){return this.__data__.has(s)}bo.prototype.add=bo.prototype.push=Nx,bo.prototype.has=Hx;function Ir(s){var c=this.__data__=new ci(s);this.size=c.size}function jx(){this.__data__=new ci,this.size=0}function Dx(s){var c=this.__data__,g=c.delete(s);return this.size=c.size,g}function Fx(s){return this.__data__.get(s)}function $x(s){return this.__data__.has(s)}function Ux(s,c){var g=this.__data__;if(g instanceof ci){var x=g.__data__;if(!ta||x.length<n-1)return x.push([s,c]),this.size=++g.size,this;g=this.__data__=new ui(x)}return g.set(s,c),this.size=g.size,this}Ir.prototype.clear=jx,Ir.prototype.delete=Dx,Ir.prototype.get=Fx,Ir.prototype.has=$x,Ir.prototype.set=Ux;function em(s,c){var g=Qe(s),x=!g&&Oo(s),R=!g&&!x&&Gi(s),L=!g&&!x&&!R&&cs(s),H=g||x||R||L,$=H?mf(s.length,XO):[],J=$.length;for(var ie in s)(c||xt.call(s,ie))&&!(H&&(ie=="length"||R&&(ie=="offset"||ie=="parent")||L&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||pi(ie,J)))&&$.push(ie);return $}function tm(s){var c=s.length;return c?s[Lf(0,c-1)]:i}function qx(s,c){return Zl(Nn(s),vo(c,0,s.length))}function zx(s){return Zl(Nn(s))}function Of(s,c,g){(g!==i&&!Lr(s[c],g)||g===i&&!(c in s))&&di(s,c,g)}function oa(s,c,g){var x=s[c];(!(xt.call(s,c)&&Lr(x,g))||g===i&&!(c in s))&&di(s,c,g)}function jl(s,c){for(var g=s.length;g--;)if(Lr(s[g][0],c))return g;return-1}function Wx(s,c,g,x){return Ui(s,function(R,L,H){c(x,R,g(R),H)}),x}function nm(s,c){return s&&Gr(c,tn(c),s)}function Gx(s,c){return s&&Gr(c,jn(c),s)}function di(s,c,g){c=="__proto__"&&Il?Il(s,c,{configurable:!0,enumerable:!0,value:g,writable:!0}):s[c]=g}function xf(s,c){for(var g=-1,x=c.length,R=Q(x),L=s==null;++g<x;)R[g]=L?i:ih(s,c[g]);return R}function vo(s,c,g){return s===s&&(g!==i&&(s=s<=g?s:g),c!==i&&(s=s>=c?s:c)),s}function br(s,c,g,x,R,L){var H,$=c&f,J=c&m,ie=c&p;if(g&&(H=R?g(s,x,R,L):g(s)),H!==i)return H;if(!$t(s))return s;var se=Qe(s);if(se){if(H=B_(s),!$)return Nn(s,H)}else{var ce=yn(s),Te=ce==Ft||ce==Mt;if(Gi(s))return Tm(s,$);if(ce==It||ce==Re||Te&&!R){if(H=J||Te?{}:Wm(s),!$)return J?O_(s,Gx(H,s)):S_(s,nm(H,s))}else{if(!Pt[ce])return R?s:{};H=k_(s,ce,$)}}L||(L=new Ir);var ke=L.get(s);if(ke)return ke;L.set(s,H),wy(s)?s.forEach(function(Ge){H.add(br(Ge,c,g,Ge,s,L))}):by(s)&&s.forEach(function(Ge,at){H.set(at,br(Ge,c,g,at,s,L))});var We=ie?J?zf:qf:J?jn:tn,nt=se?i:We(s);return gr(nt||s,function(Ge,at){nt&&(at=Ge,Ge=s[at]),oa(H,at,br(Ge,c,g,at,s,L))}),H}function Vx(s){var c=tn(s);return function(g){return rm(g,s,c)}}function rm(s,c,g){var x=g.length;if(s==null)return!x;for(s=Rt(s);x--;){var R=g[x],L=c[R],H=s[R];if(H===i&&!(R in s)||!L(H))return!1}return!0}function im(s,c,g){if(typeof s!="function")throw new mr(o);return fa(function(){s.apply(i,g)},c)}function sa(s,c,g,x){var R=-1,L=El,H=!0,$=s.length,J=[],ie=c.length;if(!$)return J;g&&(c=Ht(c,Xn(g))),x?(L=uf,H=!1):c.length>=n&&(L=Qs,H=!1,c=new bo(c));e:for(;++R<$;){var se=s[R],ce=g==null?se:g(se);if(se=x||se!==0?se:0,H&&ce===ce){for(var Te=ie;Te--;)if(c[Te]===ce)continue e;J.push(se)}else L(c,ce,x)||J.push(se)}return J}var Ui=Pm(Wr),om=Pm(Tf,!0);function Jx(s,c){var g=!0;return Ui(s,function(x,R,L){return g=!!c(x,R,L),g}),g}function Dl(s,c,g){for(var x=-1,R=s.length;++x<R;){var L=s[x],H=c(L);if(H!=null&&($===i?H===H&&!er(H):g(H,$)))var $=H,J=L}return J}function Kx(s,c,g,x){var R=s.length;for(g=tt(g),g<0&&(g=-g>R?0:R+g),x=x===i||x>R?R:tt(x),x<0&&(x+=R),x=g>x?0:Sy(x);g<x;)s[g++]=c;return s}function sm(s,c){var g=[];return Ui(s,function(x,R,L){c(x,R,L)&&g.push(x)}),g}function cn(s,c,g,x,R){var L=-1,H=s.length;for(g||(g=H_),R||(R=[]);++L<H;){var $=s[L];c>0&&g($)?c>1?cn($,c-1,g,x,R):ji(R,$):x||(R[R.length]=$)}return R}var _f=Im(),am=Im(!0);function Wr(s,c){return s&&_f(s,c,tn)}function Tf(s,c){return s&&am(s,c,tn)}function Fl(s,c){return Hi(c,function(g){return gi(s[g])})}function wo(s,c){c=zi(c,s);for(var g=0,x=c.length;s!=null&&g<x;)s=s[Vr(c[g++])];return g&&g==x?s:i}function lm(s,c,g){var x=c(s);return Qe(s)?x:ji(x,g(s))}function _n(s){return s==null?s===i?_e:Bn:mo&&mo in Rt(s)?P_(s):z_(s)}function Cf(s,c){return s>c}function Yx(s,c){return s!=null&&xt.call(s,c)}function Zx(s,c){return s!=null&&c in Rt(s)}function Xx(s,c,g){return s>=mn(c,g)&&s<Zt(c,g)}function Af(s,c,g){for(var x=g?uf:El,R=s[0].length,L=s.length,H=L,$=Q(L),J=1/0,ie=[];H--;){var se=s[H];H&&c&&(se=Ht(se,Xn(c))),J=mn(se.length,J),$[H]=!g&&(c||R>=120&&se.length>=120)?new bo(H&&se):i}se=s[0];var ce=-1,Te=$[0];e:for(;++ce<R&&ie.length<J;){var ke=se[ce],We=c?c(ke):ke;if(ke=g||ke!==0?ke:0,!(Te?Qs(Te,We):x(ie,We,g))){for(H=L;--H;){var nt=$[H];if(!(nt?Qs(nt,We):x(s[H],We,g)))continue e}Te&&Te.push(We),ie.push(ke)}}return ie}function Qx(s,c,g,x){return Wr(s,function(R,L,H){c(x,g(R),L,H)}),x}function aa(s,c,g){c=zi(c,s),s=Km(s,c);var x=s==null?s:s[Vr(wr(c))];return x==null?i:Zn(x,s,g)}function cm(s){return Ut(s)&&_n(s)==Re}function e_(s){return Ut(s)&&_n(s)==X}function t_(s){return Ut(s)&&_n(s)==ne}function la(s,c,g,x,R){return s===c?!0:s==null||c==null||!Ut(s)&&!Ut(c)?s!==s&&c!==c:n_(s,c,g,x,la,R)}function n_(s,c,g,x,R,L){var H=Qe(s),$=Qe(c),J=H?Se:yn(s),ie=$?Se:yn(c);J=J==Re?It:J,ie=ie==Re?It:ie;var se=J==It,ce=ie==It,Te=J==ie;if(Te&&Gi(s)){if(!Gi(c))return!1;H=!0,se=!1}if(Te&&!se)return L||(L=new Ir),H||cs(s)?Um(s,c,g,x,R,L):R_(s,c,J,g,x,R,L);if(!(g&E)){var ke=se&&xt.call(s,"__wrapped__"),We=ce&&xt.call(c,"__wrapped__");if(ke||We){var nt=ke?s.value():s,Ge=We?c.value():c;return L||(L=new Ir),R(nt,Ge,g,x,L)}}return Te?(L||(L=new Ir),M_(s,c,g,x,R,L)):!1}function r_(s){return Ut(s)&&yn(s)==Et}function Rf(s,c,g,x){var R=g.length,L=R,H=!x;if(s==null)return!L;for(s=Rt(s);R--;){var $=g[R];if(H&&$[2]?$[1]!==s[$[0]]:!($[0]in s))return!1}for(;++R<L;){$=g[R];var J=$[0],ie=s[J],se=$[1];if(H&&$[2]){if(ie===i&&!(J in s))return!1}else{var ce=new Ir;if(x)var Te=x(ie,se,J,s,c,ce);if(!(Te===i?la(se,ie,E|S,x,ce):Te))return!1}}return!0}function um(s){if(!$t(s)||D_(s))return!1;var c=gi(s)?rx:V3;return c.test(So(s))}function i_(s){return Ut(s)&&_n(s)==xn}function o_(s){return Ut(s)&&yn(s)==Oe}function s_(s){return Ut(s)&&rc(s.length)&&!!Lt[_n(s)]}function dm(s){return typeof s=="function"?s:s==null?Dn:typeof s=="object"?Qe(s)?pm(s[0],s[1]):hm(s):Ly(s)}function Mf(s){if(!da(s))return cx(s);var c=[];for(var g in Rt(s))xt.call(s,g)&&g!="constructor"&&c.push(g);return c}function a_(s){if(!$t(s))return q_(s);var c=da(s),g=[];for(var x in s)x=="constructor"&&(c||!xt.call(s,x))||g.push(x);return g}function Pf(s,c){return s<c}function fm(s,c){var g=-1,x=Hn(s)?Q(s.length):[];return Ui(s,function(R,L,H){x[++g]=c(R,L,H)}),x}function hm(s){var c=Gf(s);return c.length==1&&c[0][2]?Vm(c[0][0],c[0][1]):function(g){return g===s||Rf(g,s,c)}}function pm(s,c){return Jf(s)&&Gm(c)?Vm(Vr(s),c):function(g){var x=ih(g,s);return x===i&&x===c?oh(g,s):la(c,x,E|S)}}function $l(s,c,g,x,R){s!==c&&_f(c,function(L,H){if(R||(R=new Ir),$t(L))l_(s,c,H,g,$l,x,R);else{var $=x?x(Yf(s,H),L,H+"",s,c,R):i;$===i&&($=L),Of(s,H,$)}},jn)}function l_(s,c,g,x,R,L,H){var $=Yf(s,g),J=Yf(c,g),ie=H.get(J);if(ie){Of(s,g,ie);return}var se=L?L($,J,g+"",s,c,H):i,ce=se===i;if(ce){var Te=Qe(J),ke=!Te&&Gi(J),We=!Te&&!ke&&cs(J);se=J,Te||ke||We?Qe($)?se=$:Wt($)?se=Nn($):ke?(ce=!1,se=Tm(J,!0)):We?(ce=!1,se=Cm(J,!0)):se=[]:ha(J)||Oo(J)?(se=$,Oo($)?se=Oy($):(!$t($)||gi($))&&(se=Wm(J))):ce=!1}ce&&(H.set(J,se),R(se,J,x,L,H),H.delete(J)),Of(s,g,se)}function gm(s,c){var g=s.length;if(!!g)return c+=c<0?g:0,pi(c,g)?s[c]:i}function mm(s,c,g){c.length?c=Ht(c,function(L){return Qe(L)?function(H){return wo(H,L.length===1?L[0]:L)}:L}):c=[Dn];var x=-1;c=Ht(c,Xn(Ue()));var R=fm(s,function(L,H,$){var J=Ht(c,function(ie){return ie(L)});return{criteria:J,index:++x,value:L}});return kO(R,function(L,H){return E_(L,H,g)})}function c_(s,c){return ym(s,c,function(g,x){return oh(s,x)})}function ym(s,c,g){for(var x=-1,R=c.length,L={};++x<R;){var H=c[x],$=wo(s,H);g($,H)&&ca(L,zi(H,s),$)}return L}function u_(s){return function(c){return wo(c,s)}}function If(s,c,g,x){var R=x?BO:Qo,L=-1,H=c.length,$=s;for(s===c&&(c=Nn(c)),g&&($=Ht(s,Xn(g)));++L<H;)for(var J=0,ie=c[L],se=g?g(ie):ie;(J=R($,se,J,x))>-1;)$!==s&&Pl.call($,J,1),Pl.call(s,J,1);return s}function bm(s,c){for(var g=s?c.length:0,x=g-1;g--;){var R=c[g];if(g==x||R!==L){var L=R;pi(R)?Pl.call(s,R,1):Nf(s,R)}}return s}function Lf(s,c){return s+Bl(Xg()*(c-s+1))}function d_(s,c,g,x){for(var R=-1,L=Zt(Ll((c-s)/(g||1)),0),H=Q(L);L--;)H[x?L:++R]=s,s+=g;return H}function Bf(s,c){var g="";if(!s||c<1||c>be)return g;do c%2&&(g+=s),c=Bl(c/2),c&&(s+=s);while(c);return g}function rt(s,c){return Zf(Jm(s,c,Dn),s+"")}function f_(s){return tm(us(s))}function h_(s,c){var g=us(s);return Zl(g,vo(c,0,g.length))}function ca(s,c,g,x){if(!$t(s))return s;c=zi(c,s);for(var R=-1,L=c.length,H=L-1,$=s;$!=null&&++R<L;){var J=Vr(c[R]),ie=g;if(J==="__proto__"||J==="constructor"||J==="prototype")return s;if(R!=H){var se=$[J];ie=x?x(se,J,$):i,ie===i&&(ie=$t(se)?se:pi(c[R+1])?[]:{})}oa($,J,ie),$=$[J]}return s}var vm=kl?function(s,c){return kl.set(s,c),s}:Dn,p_=Il?function(s,c){return Il(s,"toString",{configurable:!0,enumerable:!1,value:ah(c),writable:!0})}:Dn;function g_(s){return Zl(us(s))}function vr(s,c,g){var x=-1,R=s.length;c<0&&(c=-c>R?0:R+c),g=g>R?R:g,g<0&&(g+=R),R=c>g?0:g-c>>>0,c>>>=0;for(var L=Q(R);++x<R;)L[x]=s[x+c];return L}function m_(s,c){var g;return Ui(s,function(x,R,L){return g=c(x,R,L),!g}),!!g}function Ul(s,c,g){var x=0,R=s==null?x:s.length;if(typeof c=="number"&&c===c&&R<=ue){for(;x<R;){var L=x+R>>>1,H=s[L];H!==null&&!er(H)&&(g?H<=c:H<c)?x=L+1:R=L}return R}return kf(s,c,Dn,g)}function kf(s,c,g,x){var R=0,L=s==null?0:s.length;if(L===0)return 0;c=g(c);for(var H=c!==c,$=c===null,J=er(c),ie=c===i;R<L;){var se=Bl((R+L)/2),ce=g(s[se]),Te=ce!==i,ke=ce===null,We=ce===ce,nt=er(ce);if(H)var Ge=x||We;else ie?Ge=We&&(x||Te):$?Ge=We&&Te&&(x||!ke):J?Ge=We&&Te&&!ke&&(x||!nt):ke||nt?Ge=!1:Ge=x?ce<=c:ce<c;Ge?R=se+1:L=se}return mn(L,Ae)}function wm(s,c){for(var g=-1,x=s.length,R=0,L=[];++g<x;){var H=s[g],$=c?c(H):H;if(!g||!Lr($,J)){var J=$;L[R++]=H===0?0:H}}return L}function Em(s){return typeof s=="number"?s:er(s)?re:+s}function Qn(s){if(typeof s=="string")return s;if(Qe(s))return Ht(s,Qn)+"";if(er(s))return Qg?Qg.call(s):"";var c=s+"";return c=="0"&&1/s==-ye?"-0":c}function qi(s,c,g){var x=-1,R=El,L=s.length,H=!0,$=[],J=$;if(g)H=!1,R=uf;else if(L>=n){var ie=c?null:C_(s);if(ie)return Ol(ie);H=!1,R=Qs,J=new bo}else J=c?[]:$;e:for(;++x<L;){var se=s[x],ce=c?c(se):se;if(se=g||se!==0?se:0,H&&ce===ce){for(var Te=J.length;Te--;)if(J[Te]===ce)continue e;c&&J.push(ce),$.push(se)}else R(J,ce,g)||(J!==$&&J.push(ce),$.push(se))}return $}function Nf(s,c){return c=zi(c,s),s=Km(s,c),s==null||delete s[Vr(wr(c))]}function Sm(s,c,g,x){return ca(s,c,g(wo(s,c)),x)}function ql(s,c,g,x){for(var R=s.length,L=x?R:-1;(x?L--:++L<R)&&c(s[L],L,s););return g?vr(s,x?0:L,x?L+1:R):vr(s,x?L+1:0,x?R:L)}function Om(s,c){var g=s;return g instanceof ut&&(g=g.value()),df(c,function(x,R){return R.func.apply(R.thisArg,ji([x],R.args))},g)}function Hf(s,c,g){var x=s.length;if(x<2)return x?qi(s[0]):[];for(var R=-1,L=Q(x);++R<x;)for(var H=s[R],$=-1;++$<x;)$!=R&&(L[R]=sa(L[R]||H,s[$],c,g));return qi(cn(L,1),c,g)}function xm(s,c,g){for(var x=-1,R=s.length,L=c.length,H={};++x<R;){var $=x<L?c[x]:i;g(H,s[x],$)}return H}function jf(s){return Wt(s)?s:[]}function Df(s){return typeof s=="function"?s:Dn}function zi(s,c){return Qe(s)?s:Jf(s,c)?[s]:Qm(St(s))}var y_=rt;function Wi(s,c,g){var x=s.length;return g=g===i?x:g,!c&&g>=x?s:vr(s,c,g)}var _m=ix||function(s){return en.clearTimeout(s)};function Tm(s,c){if(c)return s.slice();var g=s.length,x=Vg?Vg(g):new s.constructor(g);return s.copy(x),x}function Ff(s){var c=new s.constructor(s.byteLength);return new Rl(c).set(new Rl(s)),c}function b_(s,c){var g=c?Ff(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.byteLength)}function v_(s){var c=new s.constructor(s.source,cg.exec(s));return c.lastIndex=s.lastIndex,c}function w_(s){return ia?Rt(ia.call(s)):{}}function Cm(s,c){var g=c?Ff(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.length)}function Am(s,c){if(s!==c){var g=s!==i,x=s===null,R=s===s,L=er(s),H=c!==i,$=c===null,J=c===c,ie=er(c);if(!$&&!ie&&!L&&s>c||L&&H&&J&&!$&&!ie||x&&H&&J||!g&&J||!R)return 1;if(!x&&!L&&!ie&&s<c||ie&&g&&R&&!x&&!L||$&&g&&R||!H&&R||!J)return-1}return 0}function E_(s,c,g){for(var x=-1,R=s.criteria,L=c.criteria,H=R.length,$=g.length;++x<H;){var J=Am(R[x],L[x]);if(J){if(x>=$)return J;var ie=g[x];return J*(ie=="desc"?-1:1)}}return s.index-c.index}function Rm(s,c,g,x){for(var R=-1,L=s.length,H=g.length,$=-1,J=c.length,ie=Zt(L-H,0),se=Q(J+ie),ce=!x;++$<J;)se[$]=c[$];for(;++R<H;)(ce||R<L)&&(se[g[R]]=s[R]);for(;ie--;)se[$++]=s[R++];return se}function Mm(s,c,g,x){for(var R=-1,L=s.length,H=-1,$=g.length,J=-1,ie=c.length,se=Zt(L-$,0),ce=Q(se+ie),Te=!x;++R<se;)ce[R]=s[R];for(var ke=R;++J<ie;)ce[ke+J]=c[J];for(;++H<$;)(Te||R<L)&&(ce[ke+g[H]]=s[R++]);return ce}function Nn(s,c){var g=-1,x=s.length;for(c||(c=Q(x));++g<x;)c[g]=s[g];return c}function Gr(s,c,g,x){var R=!g;g||(g={});for(var L=-1,H=c.length;++L<H;){var $=c[L],J=x?x(g[$],s[$],$,g,s):i;J===i&&(J=s[$]),R?di(g,$,J):oa(g,$,J)}return g}function S_(s,c){return Gr(s,Vf(s),c)}function O_(s,c){return Gr(s,qm(s),c)}function zl(s,c){return function(g,x){var R=Qe(g)?AO:Wx,L=c?c():{};return R(g,s,Ue(x,2),L)}}function ss(s){return rt(function(c,g){var x=-1,R=g.length,L=R>1?g[R-1]:i,H=R>2?g[2]:i;for(L=s.length>3&&typeof L=="function"?(R--,L):i,H&&Tn(g[0],g[1],H)&&(L=R<3?i:L,R=1),c=Rt(c);++x<R;){var $=g[x];$&&s(c,$,x,L)}return c})}function Pm(s,c){return function(g,x){if(g==null)return g;if(!Hn(g))return s(g,x);for(var R=g.length,L=c?R:-1,H=Rt(g);(c?L--:++L<R)&&x(H[L],L,H)!==!1;);return g}}function Im(s){return function(c,g,x){for(var R=-1,L=Rt(c),H=x(c),$=H.length;$--;){var J=H[s?$:++R];if(g(L[J],J,L)===!1)break}return c}}function x_(s,c,g){var x=c&v,R=ua(s);function L(){var H=this&&this!==en&&this instanceof L?R:s;return H.apply(x?g:this,arguments)}return L}function Lm(s){return function(c){c=St(c);var g=es(c)?Pr(c):i,x=g?g[0]:c.charAt(0),R=g?Wi(g,1).join(""):c.slice(1);return x[s]()+R}}function as(s){return function(c){return df(Py(My(c).replace(pO,"")),s,"")}}function ua(s){return function(){var c=arguments;switch(c.length){case 0:return new s;case 1:return new s(c[0]);case 2:return new s(c[0],c[1]);case 3:return new s(c[0],c[1],c[2]);case 4:return new s(c[0],c[1],c[2],c[3]);case 5:return new s(c[0],c[1],c[2],c[3],c[4]);case 6:return new s(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new s(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var g=os(s.prototype),x=s.apply(g,c);return $t(x)?x:g}}function __(s,c,g){var x=ua(s);function R(){for(var L=arguments.length,H=Q(L),$=L,J=ls(R);$--;)H[$]=arguments[$];var ie=L<3&&H[0]!==J&&H[L-1]!==J?[]:Di(H,J);if(L-=ie.length,L<g)return jm(s,c,Wl,R.placeholder,i,H,ie,i,i,g-L);var se=this&&this!==en&&this instanceof R?x:s;return Zn(se,this,H)}return R}function Bm(s){return function(c,g,x){var R=Rt(c);if(!Hn(c)){var L=Ue(g,3);c=tn(c),g=function($){return L(R[$],$,R)}}var H=s(c,g,x);return H>-1?R[L?c[H]:H]:i}}function km(s){return hi(function(c){var g=c.length,x=g,R=yr.prototype.thru;for(s&&c.reverse();x--;){var L=c[x];if(typeof L!="function")throw new mr(o);if(R&&!H&&Kl(L)=="wrapper")var H=new yr([],!0)}for(x=H?x:g;++x<g;){L=c[x];var $=Kl(L),J=$=="wrapper"?Wf(L):i;J&&Kf(J[0])&&J[1]==(_|w|T|I)&&!J[4].length&&J[9]==1?H=H[Kl(J[0])].apply(H,J[3]):H=L.length==1&&Kf(L)?H[$]():H.thru(L)}return function(){var ie=arguments,se=ie[0];if(H&&ie.length==1&&Qe(se))return H.plant(se).value();for(var ce=0,Te=g?c[ce].apply(this,ie):se;++ce<g;)Te=c[ce].call(this,Te);return Te}})}function Wl(s,c,g,x,R,L,H,$,J,ie){var se=c&_,ce=c&v,Te=c&y,ke=c&(w|O),We=c&D,nt=Te?i:ua(s);function Ge(){for(var at=arguments.length,ht=Q(at),tr=at;tr--;)ht[tr]=arguments[tr];if(ke)var Cn=ls(Ge),nr=HO(ht,Cn);if(x&&(ht=Rm(ht,x,R,ke)),L&&(ht=Mm(ht,L,H,ke)),at-=nr,ke&&at<ie){var Gt=Di(ht,Cn);return jm(s,c,Wl,Ge.placeholder,g,ht,Gt,$,J,ie-at)}var Br=ce?g:this,yi=Te?Br[s]:s;return at=ht.length,$?ht=W_(ht,$):We&&at>1&&ht.reverse(),se&&J<at&&(ht.length=J),this&&this!==en&&this instanceof Ge&&(yi=nt||ua(yi)),yi.apply(Br,ht)}return Ge}function Nm(s,c){return function(g,x){return Qx(g,s,c(x),{})}}function Gl(s,c){return function(g,x){var R;if(g===i&&x===i)return c;if(g!==i&&(R=g),x!==i){if(R===i)return x;typeof g=="string"||typeof x=="string"?(g=Qn(g),x=Qn(x)):(g=Em(g),x=Em(x)),R=s(g,x)}return R}}function $f(s){return hi(function(c){return c=Ht(c,Xn(Ue())),rt(function(g){var x=this;return s(c,function(R){return Zn(R,x,g)})})})}function Vl(s,c){c=c===i?" ":Qn(c);var g=c.length;if(g<2)return g?Bf(c,s):c;var x=Bf(c,Ll(s/ts(c)));return es(c)?Wi(Pr(x),0,s).join(""):x.slice(0,s)}function T_(s,c,g,x){var R=c&v,L=ua(s);function H(){for(var $=-1,J=arguments.length,ie=-1,se=x.length,ce=Q(se+J),Te=this&&this!==en&&this instanceof H?L:s;++ie<se;)ce[ie]=x[ie];for(;J--;)ce[ie++]=arguments[++$];return Zn(Te,R?g:this,ce)}return H}function Hm(s){return function(c,g,x){return x&&typeof x!="number"&&Tn(c,g,x)&&(g=x=i),c=mi(c),g===i?(g=c,c=0):g=mi(g),x=x===i?c<g?1:-1:mi(x),d_(c,g,x,s)}}function Jl(s){return function(c,g){return typeof c=="string"&&typeof g=="string"||(c=Er(c),g=Er(g)),s(c,g)}}function jm(s,c,g,x,R,L,H,$,J,ie){var se=c&w,ce=se?H:i,Te=se?i:H,ke=se?L:i,We=se?i:L;c|=se?T:C,c&=~(se?C:T),c&b||(c&=~(v|y));var nt=[s,c,R,ke,ce,We,Te,$,J,ie],Ge=g.apply(i,nt);return Kf(s)&&Ym(Ge,nt),Ge.placeholder=x,Zm(Ge,s,c)}function Uf(s){var c=Yt[s];return function(g,x){if(g=Er(g),x=x==null?0:mn(tt(x),292),x&&Zg(g)){var R=(St(g)+"e").split("e"),L=c(R[0]+"e"+(+R[1]+x));return R=(St(L)+"e").split("e"),+(R[0]+"e"+(+R[1]-x))}return c(g)}}var C_=rs&&1/Ol(new rs([,-0]))[1]==ye?function(s){return new rs(s)}:uh;function Dm(s){return function(c){var g=yn(c);return g==Et?bf(c):g==Oe?zO(c):NO(c,s(c))}}function fi(s,c,g,x,R,L,H,$){var J=c&y;if(!J&&typeof s!="function")throw new mr(o);var ie=x?x.length:0;if(ie||(c&=~(T|C),x=R=i),H=H===i?H:Zt(tt(H),0),$=$===i?$:tt($),ie-=R?R.length:0,c&C){var se=x,ce=R;x=R=i}var Te=J?i:Wf(s),ke=[s,c,g,x,R,se,ce,L,H,$];if(Te&&U_(ke,Te),s=ke[0],c=ke[1],g=ke[2],x=ke[3],R=ke[4],$=ke[9]=ke[9]===i?J?0:s.length:Zt(ke[9]-ie,0),!$&&c&(w|O)&&(c&=~(w|O)),!c||c==v)var We=x_(s,c,g);else c==w||c==O?We=__(s,c,$):(c==T||c==(v|T))&&!R.length?We=T_(s,c,g,x):We=Wl.apply(i,ke);var nt=Te?vm:Ym;return Zm(nt(We,ke),s,c)}function Fm(s,c,g,x){return s===i||Lr(s,ns[g])&&!xt.call(x,g)?c:s}function $m(s,c,g,x,R,L){return $t(s)&&$t(c)&&(L.set(c,s),$l(s,c,i,$m,L),L.delete(c)),s}function A_(s){return ha(s)?i:s}function Um(s,c,g,x,R,L){var H=g&E,$=s.length,J=c.length;if($!=J&&!(H&&J>$))return!1;var ie=L.get(s),se=L.get(c);if(ie&&se)return ie==c&&se==s;var ce=-1,Te=!0,ke=g&S?new bo:i;for(L.set(s,c),L.set(c,s);++ce<$;){var We=s[ce],nt=c[ce];if(x)var Ge=H?x(nt,We,ce,c,s,L):x(We,nt,ce,s,c,L);if(Ge!==i){if(Ge)continue;Te=!1;break}if(ke){if(!ff(c,function(at,ht){if(!Qs(ke,ht)&&(We===at||R(We,at,g,x,L)))return ke.push(ht)})){Te=!1;break}}else if(!(We===nt||R(We,nt,g,x,L))){Te=!1;break}}return L.delete(s),L.delete(c),Te}function R_(s,c,g,x,R,L,H){switch(g){case oe:if(s.byteLength!=c.byteLength||s.byteOffset!=c.byteOffset)return!1;s=s.buffer,c=c.buffer;case X:return!(s.byteLength!=c.byteLength||!L(new Rl(s),new Rl(c)));case ee:case ne:case On:return Lr(+s,+c);case bt:return s.name==c.name&&s.message==c.message;case xn:case pe:return s==c+"";case Et:var $=bf;case Oe:var J=x&E;if($||($=Ol),s.size!=c.size&&!J)return!1;var ie=H.get(s);if(ie)return ie==c;x|=S,H.set(s,c);var se=Um($(s),$(c),x,R,L,H);return H.delete(s),se;case le:if(ia)return ia.call(s)==ia.call(c)}return!1}function M_(s,c,g,x,R,L){var H=g&E,$=qf(s),J=$.length,ie=qf(c),se=ie.length;if(J!=se&&!H)return!1;for(var ce=J;ce--;){var Te=$[ce];if(!(H?Te in c:xt.call(c,Te)))return!1}var ke=L.get(s),We=L.get(c);if(ke&&We)return ke==c&&We==s;var nt=!0;L.set(s,c),L.set(c,s);for(var Ge=H;++ce<J;){Te=$[ce];var at=s[Te],ht=c[Te];if(x)var tr=H?x(ht,at,Te,c,s,L):x(at,ht,Te,s,c,L);if(!(tr===i?at===ht||R(at,ht,g,x,L):tr)){nt=!1;break}Ge||(Ge=Te=="constructor")}if(nt&&!Ge){var Cn=s.constructor,nr=c.constructor;Cn!=nr&&"constructor"in s&&"constructor"in c&&!(typeof Cn=="function"&&Cn instanceof Cn&&typeof nr=="function"&&nr instanceof nr)&&(nt=!1)}return L.delete(s),L.delete(c),nt}function hi(s){return Zf(Jm(s,i,ry),s+"")}function qf(s){return lm(s,tn,Vf)}function zf(s){return lm(s,jn,qm)}var Wf=kl?function(s){return kl.get(s)}:uh;function Kl(s){for(var c=s.name+"",g=is[c],x=xt.call(is,c)?g.length:0;x--;){var R=g[x],L=R.func;if(L==null||L==s)return R.name}return c}function ls(s){var c=xt.call(M,"placeholder")?M:s;return c.placeholder}function Ue(){var s=M.iteratee||lh;return s=s===lh?dm:s,arguments.length?s(arguments[0],arguments[1]):s}function Yl(s,c){var g=s.__data__;return j_(c)?g[typeof c=="string"?"string":"hash"]:g.map}function Gf(s){for(var c=tn(s),g=c.length;g--;){var x=c[g],R=s[x];c[g]=[x,R,Gm(R)]}return c}function Eo(s,c){var g=$O(s,c);return um(g)?g:i}function P_(s){var c=xt.call(s,mo),g=s[mo];try{s[mo]=i;var x=!0}catch(L){}var R=Cl.call(s);return x&&(c?s[mo]=g:delete s[mo]),R}var Vf=wf?function(s){return s==null?[]:(s=Rt(s),Hi(wf(s),function(c){return Kg.call(s,c)}))}:dh,qm=wf?function(s){for(var c=[];s;)ji(c,Vf(s)),s=Ml(s);return c}:dh,yn=_n;(Ef&&yn(new Ef(new ArrayBuffer(1)))!=oe||ta&&yn(new ta)!=Et||Sf&&yn(Sf.resolve())!=Kt||rs&&yn(new rs)!=Oe||na&&yn(new na)!=Ie)&&(yn=function(s){var c=_n(s),g=c==It?s.constructor:i,x=g?So(g):"";if(x)switch(x){case hx:return oe;case px:return Et;case gx:return Kt;case mx:return Oe;case yx:return Ie}return c});function I_(s,c,g){for(var x=-1,R=g.length;++x<R;){var L=g[x],H=L.size;switch(L.type){case"drop":s+=H;break;case"dropRight":c-=H;break;case"take":c=mn(c,s+H);break;case"takeRight":s=Zt(s,c-H);break}}return{start:s,end:c}}function L_(s){var c=s.match(li);return c?c[1].split(po):[]}function zm(s,c,g){c=zi(c,s);for(var x=-1,R=c.length,L=!1;++x<R;){var H=Vr(c[x]);if(!(L=s!=null&&g(s,H)))break;s=s[H]}return L||++x!=R?L:(R=s==null?0:s.length,!!R&&rc(R)&&pi(H,R)&&(Qe(s)||Oo(s)))}function B_(s){var c=s.length,g=new s.constructor(c);return c&&typeof s[0]=="string"&&xt.call(s,"index")&&(g.index=s.index,g.input=s.input),g}function Wm(s){return typeof s.constructor=="function"&&!da(s)?os(Ml(s)):{}}function k_(s,c,g){var x=s.constructor;switch(c){case X:return Ff(s);case ee:case ne:return new x(+s);case oe:return b_(s,g);case ve:case Ce:case ft:case $e:case Ye:case je:case Xe:case et:case kn:return Cm(s,g);case Et:return new x;case On:case pe:return new x(s);case xn:return v_(s);case Oe:return new x;case le:return w_(s)}}function N_(s,c){var g=c.length;if(!g)return s;var x=g-1;return c[x]=(g>1?"& ":"")+c[x],c=c.join(g>2?", ":" "),s.replace(ml,`{
48
48
  /* [wrapped with `+c+`] */
49
- `)}function H_(s){return Qe(s)||Oo(s)||!!(Yg&&s&&s[Yg])}function pi(s,c){var g=typeof s;return c=c??be,!!c&&(g=="number"||g!="symbol"&&K3.test(s))&&s>-1&&s%1==0&&s<c}function Tn(s,c,g){if(!$t(g))return!1;var x=typeof c;return(x=="number"?Hn(g)&&pi(c,g.length):x=="string"&&c in g)?Lr(g[c],s):!1}function Jf(s,c){if(Qe(s))return!1;var g=typeof s;return g=="number"||g=="symbol"||g=="boolean"||s==null||er(s)?!0:Qd.test(s)||!Xd.test(s)||c!=null&&s in Rt(c)}function j_(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function Kf(s){var c=Kl(s),g=M[c];if(typeof g!="function"||!(c in ut.prototype))return!1;if(s===g)return!0;var x=Wf(g);return!!x&&s===x[0]}function D_(s){return!!Gg&&Gg in s}var F_=_l?gi:fh;function da(s){var c=s&&s.constructor,g=typeof c=="function"&&c.prototype||ns;return s===g}function Gm(s){return s===s&&!$t(s)}function Vm(s,c){return function(g){return g==null?!1:g[s]===c&&(c!==i||s in Rt(g))}}function $_(s){var c=tc(s,function(x){return g.size===u&&g.clear(),x}),g=c.cache;return c}function U_(s,c){var g=s[1],x=c[1],R=g|x,L=R<(v|y|_),H=x==_&&g==w||x==_&&g==P&&s[7].length<=c[8]||x==(_|P)&&c[7].length<=c[8]&&g==w;if(!(L||H))return s;x&v&&(s[2]=c[2],R|=g&v?0:b);var F=c[3];if(F){var J=s[3];s[3]=J?Rm(J,F,c[4]):F,s[4]=J?Di(s[3],d):c[4]}return F=c[5],F&&(J=s[5],s[5]=J?Mm(J,F,c[6]):F,s[6]=J?Di(s[5],d):c[6]),F=c[7],F&&(s[7]=F),x&_&&(s[8]=s[8]==null?c[8]:mn(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=R,s}function q_(s){var c=[];if(s!=null)for(var g in Rt(s))c.push(g);return c}function z_(s){return Cl.call(s)}function Jm(s,c,g){return c=Zt(c===i?s.length-1:c,0),function(){for(var x=arguments,R=-1,L=Zt(x.length-c,0),H=Q(L);++R<L;)H[R]=x[c+R];R=-1;for(var F=Q(c+1);++R<c;)F[R]=x[R];return F[c]=g(H),Zn(s,this,F)}}function Km(s,c){return c.length<2?s:wo(s,vr(c,0,-1))}function W_(s,c){for(var g=s.length,x=mn(c.length,g),R=Nn(s);x--;){var L=c[x];s[x]=pi(L,g)?R[L]:i}return s}function Yf(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var Ym=Xm(vm),fa=sx||function(s,c){return en.setTimeout(s,c)},Zf=Xm(p_);function Zm(s,c,g){var x=c+"";return Zf(s,N_(x,G_(L_(x),g)))}function Xm(s){var c=0,g=0;return function(){var x=ux(),R=k-(x-g);if(g=x,R>0){if(++c>=U)return arguments[0]}else c=0;return s.apply(i,arguments)}}function Zl(s,c){var g=-1,x=s.length,R=x-1;for(c=c===i?x:c;++g<c;){var L=Lf(g,R),H=s[L];s[L]=s[g],s[g]=H}return s.length=c,s}var Qm=$_(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(gl,function(g,x,R,L){c.push(R?L.replace(q3,"$1"):x||g)}),c});function Vr(s){if(typeof s=="string"||er(s))return s;var c=s+"";return c=="0"&&1/s==-ye?"-0":c}function So(s){if(s!=null){try{return Tl.call(s)}catch(c){}try{return s+""}catch(c){}}return""}function G_(s,c){return gr(xe,function(g){var x="_."+g[0];c&g[1]&&!El(s,x)&&s.push(x)}),s.sort()}function ey(s){if(s instanceof ut)return s.clone();var c=new yr(s.__wrapped__,s.__chain__);return c.__actions__=Nn(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function V_(s,c,g){(g?Tn(s,c,g):c===i)?c=1:c=Zt(tt(c),0);var x=s==null?0:s.length;if(!x||c<1)return[];for(var R=0,L=0,H=Q(Ll(x/c));R<x;)H[L++]=vr(s,R,R+=c);return H}function J_(s){for(var c=-1,g=s==null?0:s.length,x=0,R=[];++c<g;){var L=s[c];L&&(R[x++]=L)}return R}function K_(){var s=arguments.length;if(!s)return[];for(var c=Q(s-1),g=arguments[0],x=s;x--;)c[x-1]=arguments[x];return ji(Qe(g)?Nn(g):[g],cn(c,1))}var Y_=rt(function(s,c){return Wt(s)?sa(s,cn(c,1,Wt,!0)):[]}),Z_=rt(function(s,c){var g=wr(c);return Wt(g)&&(g=i),Wt(s)?sa(s,cn(c,1,Wt,!0),Ue(g,2)):[]}),X_=rt(function(s,c){var g=wr(c);return Wt(g)&&(g=i),Wt(s)?sa(s,cn(c,1,Wt,!0),i,g):[]});function Q_(s,c,g){var x=s==null?0:s.length;return x?(c=g||c===i?1:tt(c),vr(s,c<0?0:c,x)):[]}function eT(s,c,g){var x=s==null?0:s.length;return x?(c=g||c===i?1:tt(c),c=x-c,vr(s,0,c<0?0:c)):[]}function tT(s,c){return s&&s.length?ql(s,Ue(c,3),!0,!0):[]}function nT(s,c){return s&&s.length?ql(s,Ue(c,3),!0):[]}function rT(s,c,g,x){var R=s==null?0:s.length;return R?(g&&typeof g!="number"&&Tn(s,c,g)&&(g=0,x=R),Kx(s,c,g,x)):[]}function ty(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var R=g==null?0:tt(g);return R<0&&(R=Zt(x+R,0)),Sl(s,Ue(c,3),R)}function ny(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var R=x-1;return g!==i&&(R=tt(g),R=g<0?Zt(x+R,0):mn(R,x-1)),Sl(s,Ue(c,3),R,!0)}function ry(s){var c=s==null?0:s.length;return c?cn(s,1):[]}function iT(s){var c=s==null?0:s.length;return c?cn(s,ye):[]}function oT(s,c){var g=s==null?0:s.length;return g?(c=c===i?1:tt(c),cn(s,c)):[]}function sT(s){for(var c=-1,g=s==null?0:s.length,x={};++c<g;){var R=s[c];x[R[0]]=R[1]}return x}function iy(s){return s&&s.length?s[0]:i}function aT(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var R=g==null?0:tt(g);return R<0&&(R=Zt(x+R,0)),Qo(s,c,R)}function lT(s){var c=s==null?0:s.length;return c?vr(s,0,-1):[]}var cT=rt(function(s){var c=Ht(s,jf);return c.length&&c[0]===s[0]?Af(c):[]}),uT=rt(function(s){var c=wr(s),g=Ht(s,jf);return c===wr(g)?c=i:g.pop(),g.length&&g[0]===s[0]?Af(g,Ue(c,2)):[]}),dT=rt(function(s){var c=wr(s),g=Ht(s,jf);return c=typeof c=="function"?c:i,c&&g.pop(),g.length&&g[0]===s[0]?Af(g,i,c):[]});function fT(s,c){return s==null?"":lx.call(s,c)}function wr(s){var c=s==null?0:s.length;return c?s[c-1]:i}function hT(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var R=x;return g!==i&&(R=tt(g),R=R<0?Zt(x+R,0):mn(R,x-1)),c===c?GO(s,c,R):Sl(s,jg,R,!0)}function pT(s,c){return s&&s.length?gm(s,tt(c)):i}var gT=rt(oy);function oy(s,c){return s&&s.length&&c&&c.length?If(s,c):s}function mT(s,c,g){return s&&s.length&&c&&c.length?If(s,c,Ue(g,2)):s}function yT(s,c,g){return s&&s.length&&c&&c.length?If(s,c,i,g):s}var bT=hi(function(s,c){var g=s==null?0:s.length,x=xf(s,c);return bm(s,Ht(c,function(R){return pi(R,g)?+R:R}).sort(Am)),x});function vT(s,c){var g=[];if(!(s&&s.length))return g;var x=-1,R=[],L=s.length;for(c=Ue(c,3);++x<L;){var H=s[x];c(H,x,s)&&(g.push(H),R.push(x))}return bm(s,R),g}function Xf(s){return s==null?s:fx.call(s)}function wT(s,c,g){var x=s==null?0:s.length;return x?(g&&typeof g!="number"&&Tn(s,c,g)?(c=0,g=x):(c=c==null?0:tt(c),g=g===i?x:tt(g)),vr(s,c,g)):[]}function ET(s,c){return Ul(s,c)}function ST(s,c,g){return kf(s,c,Ue(g,2))}function OT(s,c){var g=s==null?0:s.length;if(g){var x=Ul(s,c);if(x<g&&Lr(s[x],c))return x}return-1}function xT(s,c){return Ul(s,c,!0)}function _T(s,c,g){return kf(s,c,Ue(g,2),!0)}function TT(s,c){var g=s==null?0:s.length;if(g){var x=Ul(s,c,!0)-1;if(Lr(s[x],c))return x}return-1}function CT(s){return s&&s.length?wm(s):[]}function AT(s,c){return s&&s.length?wm(s,Ue(c,2)):[]}function RT(s){var c=s==null?0:s.length;return c?vr(s,1,c):[]}function MT(s,c,g){return s&&s.length?(c=g||c===i?1:tt(c),vr(s,0,c<0?0:c)):[]}function PT(s,c,g){var x=s==null?0:s.length;return x?(c=g||c===i?1:tt(c),c=x-c,vr(s,c<0?0:c,x)):[]}function IT(s,c){return s&&s.length?ql(s,Ue(c,3),!1,!0):[]}function LT(s,c){return s&&s.length?ql(s,Ue(c,3)):[]}var BT=rt(function(s){return qi(cn(s,1,Wt,!0))}),kT=rt(function(s){var c=wr(s);return Wt(c)&&(c=i),qi(cn(s,1,Wt,!0),Ue(c,2))}),NT=rt(function(s){var c=wr(s);return c=typeof c=="function"?c:i,qi(cn(s,1,Wt,!0),i,c)});function HT(s){return s&&s.length?qi(s):[]}function jT(s,c){return s&&s.length?qi(s,Ue(c,2)):[]}function DT(s,c){return c=typeof c=="function"?c:i,s&&s.length?qi(s,i,c):[]}function Qf(s){if(!(s&&s.length))return[];var c=0;return s=Hi(s,function(g){if(Wt(g))return c=Zt(g.length,c),!0}),mf(c,function(g){return Ht(s,hf(g))})}function sy(s,c){if(!(s&&s.length))return[];var g=Qf(s);return c==null?g:Ht(g,function(x){return Zn(c,i,x)})}var FT=rt(function(s,c){return Wt(s)?sa(s,c):[]}),$T=rt(function(s){return Hf(Hi(s,Wt))}),UT=rt(function(s){var c=wr(s);return Wt(c)&&(c=i),Hf(Hi(s,Wt),Ue(c,2))}),qT=rt(function(s){var c=wr(s);return c=typeof c=="function"?c:i,Hf(Hi(s,Wt),i,c)}),zT=rt(Qf);function WT(s,c){return xm(s||[],c||[],oa)}function GT(s,c){return xm(s||[],c||[],ca)}var VT=rt(function(s){var c=s.length,g=c>1?s[c-1]:i;return g=typeof g=="function"?(s.pop(),g):i,sy(s,g)});function ay(s){var c=M(s);return c.__chain__=!0,c}function JT(s,c){return c(s),s}function Xl(s,c){return c(s)}var KT=hi(function(s){var c=s.length,g=c?s[0]:0,x=this.__wrapped__,R=function(L){return xf(L,s)};return c>1||this.__actions__.length||!(x instanceof ut)||!pi(g)?this.thru(R):(x=x.slice(g,+g+(c?1:0)),x.__actions__.push({func:Xl,args:[R],thisArg:i}),new yr(x,this.__chain__).thru(function(L){return c&&!L.length&&L.push(i),L}))});function YT(){return ay(this)}function ZT(){return new yr(this.value(),this.__chain__)}function XT(){this.__values__===i&&(this.__values__=Ey(this.value()));var s=this.__index__>=this.__values__.length,c=s?i:this.__values__[this.__index__++];return{done:s,value:c}}function QT(){return this}function eC(s){for(var c,g=this;g instanceof Hl;){var x=ey(g);x.__index__=0,x.__values__=i,c?R.__wrapped__=x:c=x;var R=x;g=g.__wrapped__}return R.__wrapped__=s,c}function tC(){var s=this.__wrapped__;if(s instanceof ut){var c=s;return this.__actions__.length&&(c=new ut(this)),c=c.reverse(),c.__actions__.push({func:Xl,args:[Xf],thisArg:i}),new yr(c,this.__chain__)}return this.thru(Xf)}function nC(){return Om(this.__wrapped__,this.__actions__)}var rC=zl(function(s,c,g){xt.call(s,g)?++s[g]:di(s,g,1)});function iC(s,c,g){var x=Qe(s)?Ng:Jx;return g&&Tn(s,c,g)&&(c=i),x(s,Ue(c,3))}function oC(s,c){var g=Qe(s)?Hi:sm;return g(s,Ue(c,3))}var sC=Bm(ty),aC=Bm(ny);function lC(s,c){return cn(Ql(s,c),1)}function cC(s,c){return cn(Ql(s,c),ye)}function uC(s,c,g){return g=g===i?1:tt(g),cn(Ql(s,c),g)}function ly(s,c){var g=Qe(s)?gr:Ui;return g(s,Ue(c,3))}function cy(s,c){var g=Qe(s)?RO:om;return g(s,Ue(c,3))}var dC=zl(function(s,c,g){xt.call(s,g)?s[g].push(c):di(s,g,[c])});function fC(s,c,g,x){s=Hn(s)?s:us(s),g=g&&!x?tt(g):0;var R=s.length;return g<0&&(g=Zt(R+g,0)),ic(s)?g<=R&&s.indexOf(c,g)>-1:!!R&&Qo(s,c,g)>-1}var hC=rt(function(s,c,g){var x=-1,R=typeof c=="function",L=Hn(s)?Q(s.length):[];return Ui(s,function(H){L[++x]=R?Zn(c,H,g):aa(H,c,g)}),L}),pC=zl(function(s,c,g){di(s,g,c)});function Ql(s,c){var g=Qe(s)?Ht:fm;return g(s,Ue(c,3))}function gC(s,c,g,x){return s==null?[]:(Qe(c)||(c=c==null?[]:[c]),g=x?i:g,Qe(g)||(g=g==null?[]:[g]),mm(s,c,g))}var mC=zl(function(s,c,g){s[g?0:1].push(c)},function(){return[[],[]]});function yC(s,c,g){var x=Qe(s)?df:Fg,R=arguments.length<3;return x(s,Ue(c,4),g,R,Ui)}function bC(s,c,g){var x=Qe(s)?MO:Fg,R=arguments.length<3;return x(s,Ue(c,4),g,R,om)}function vC(s,c){var g=Qe(s)?Hi:sm;return g(s,nc(Ue(c,3)))}function wC(s){var c=Qe(s)?tm:f_;return c(s)}function EC(s,c,g){(g?Tn(s,c,g):c===i)?c=1:c=tt(c);var x=Qe(s)?qx:h_;return x(s,c)}function SC(s){var c=Qe(s)?zx:g_;return c(s)}function OC(s){if(s==null)return 0;if(Hn(s))return ic(s)?ts(s):s.length;var c=yn(s);return c==Et||c==Oe?s.size:Mf(s).length}function xC(s,c,g){var x=Qe(s)?ff:m_;return g&&Tn(s,c,g)&&(c=i),x(s,Ue(c,3))}var _C=rt(function(s,c){if(s==null)return[];var g=c.length;return g>1&&Tn(s,c[0],c[1])?c=[]:g>2&&Tn(c[0],c[1],c[2])&&(c=[c[0]]),mm(s,cn(c,1),[])}),ec=ox||function(){return en.Date.now()};function TC(s,c){if(typeof c!="function")throw new mr(o);return s=tt(s),function(){if(--s<1)return c.apply(this,arguments)}}function uy(s,c,g){return c=g?i:c,c=s&&c==null?s.length:c,fi(s,_,i,i,i,i,c)}function dy(s,c){var g;if(typeof c!="function")throw new mr(o);return s=tt(s),function(){return--s>0&&(g=c.apply(this,arguments)),s<=1&&(c=i),g}}var eh=rt(function(s,c,g){var x=v;if(g.length){var R=Di(g,ls(eh));x|=T}return fi(s,x,c,g,R)}),fy=rt(function(s,c,g){var x=v|y;if(g.length){var R=Di(g,ls(fy));x|=T}return fi(c,x,s,g,R)});function hy(s,c,g){c=g?i:c;var x=fi(s,w,i,i,i,i,i,c);return x.placeholder=hy.placeholder,x}function py(s,c,g){c=g?i:c;var x=fi(s,O,i,i,i,i,i,c);return x.placeholder=py.placeholder,x}function gy(s,c,g){var x,R,L,H,F,J,ie=0,se=!1,ce=!1,Te=!0;if(typeof s!="function")throw new mr(o);c=Er(c)||0,$t(g)&&(se=!!g.leading,ce="maxWait"in g,L=ce?Zt(Er(g.maxWait)||0,c):L,Te="trailing"in g?!!g.trailing:Te);function ke(Gt){var Br=x,yi=R;return x=R=i,ie=Gt,H=s.apply(yi,Br),H}function We(Gt){return ie=Gt,F=fa(at,c),se?ke(Gt):H}function nt(Gt){var Br=Gt-J,yi=Gt-ie,By=c-Br;return ce?mn(By,L-yi):By}function Ge(Gt){var Br=Gt-J,yi=Gt-ie;return J===i||Br>=c||Br<0||ce&&yi>=L}function at(){var Gt=ec();if(Ge(Gt))return ht(Gt);F=fa(at,nt(Gt))}function ht(Gt){return F=i,Te&&x?ke(Gt):(x=R=i,H)}function tr(){F!==i&&_m(F),ie=0,x=J=R=F=i}function Cn(){return F===i?H:ht(ec())}function nr(){var Gt=ec(),Br=Ge(Gt);if(x=arguments,R=this,J=Gt,Br){if(F===i)return We(J);if(ce)return _m(F),F=fa(at,c),ke(J)}return F===i&&(F=fa(at,c)),H}return nr.cancel=tr,nr.flush=Cn,nr}var CC=rt(function(s,c){return im(s,1,c)}),AC=rt(function(s,c,g){return im(s,Er(c)||0,g)});function RC(s){return fi(s,D)}function tc(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new mr(o);var g=function(){var x=arguments,R=c?c.apply(this,x):x[0],L=g.cache;if(L.has(R))return L.get(R);var H=s.apply(this,x);return g.cache=L.set(R,H)||L,H};return g.cache=new(tc.Cache||ui),g}tc.Cache=ui;function nc(s){if(typeof s!="function")throw new mr(o);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function MC(s){return dy(2,s)}var PC=y_(function(s,c){c=c.length==1&&Qe(c[0])?Ht(c[0],Xn(Ue())):Ht(cn(c,1),Xn(Ue()));var g=c.length;return rt(function(x){for(var R=-1,L=mn(x.length,g);++R<L;)x[R]=c[R].call(this,x[R]);return Zn(s,this,x)})}),th=rt(function(s,c){var g=Di(c,ls(th));return fi(s,T,i,c,g)}),my=rt(function(s,c){var g=Di(c,ls(my));return fi(s,C,i,c,g)}),IC=hi(function(s,c){return fi(s,P,i,i,i,c)});function LC(s,c){if(typeof s!="function")throw new mr(o);return c=c===i?c:tt(c),rt(s,c)}function BC(s,c){if(typeof s!="function")throw new mr(o);return c=c==null?0:Zt(tt(c),0),rt(function(g){var x=g[c],R=Wi(g,0,c);return x&&ji(R,x),Zn(s,this,R)})}function kC(s,c,g){var x=!0,R=!0;if(typeof s!="function")throw new mr(o);return $t(g)&&(x="leading"in g?!!g.leading:x,R="trailing"in g?!!g.trailing:R),gy(s,c,{leading:x,maxWait:c,trailing:R})}function NC(s){return uy(s,1)}function HC(s,c){return th(Df(c),s)}function jC(){if(!arguments.length)return[];var s=arguments[0];return Qe(s)?s:[s]}function DC(s){return br(s,p)}function FC(s,c){return c=typeof c=="function"?c:i,br(s,p,c)}function $C(s){return br(s,f|p)}function UC(s,c){return c=typeof c=="function"?c:i,br(s,f|p,c)}function qC(s,c){return c==null||rm(s,c,tn(c))}function Lr(s,c){return s===c||s!==s&&c!==c}var zC=Jl(Cf),WC=Jl(function(s,c){return s>=c}),Oo=cm(function(){return arguments}())?cm:function(s){return Ut(s)&&xt.call(s,"callee")&&!Kg.call(s,"callee")},Qe=Q.isArray,GC=Mg?Xn(Mg):e_;function Hn(s){return s!=null&&rc(s.length)&&!gi(s)}function Wt(s){return Ut(s)&&Hn(s)}function VC(s){return s===!0||s===!1||Ut(s)&&_n(s)==ee}var Gi=ax||fh,JC=Pg?Xn(Pg):t_;function KC(s){return Ut(s)&&s.nodeType===1&&!ha(s)}function YC(s){if(s==null)return!0;if(Hn(s)&&(Qe(s)||typeof s=="string"||typeof s.splice=="function"||Gi(s)||cs(s)||Oo(s)))return!s.length;var c=yn(s);if(c==Et||c==Oe)return!s.size;if(da(s))return!Mf(s).length;for(var g in s)if(xt.call(s,g))return!1;return!0}function ZC(s,c){return la(s,c)}function XC(s,c,g){g=typeof g=="function"?g:i;var x=g?g(s,c):i;return x===i?la(s,c,i,g):!!x}function nh(s){if(!Ut(s))return!1;var c=_n(s);return c==bt||c==ae||typeof s.message=="string"&&typeof s.name=="string"&&!ha(s)}function QC(s){return typeof s=="number"&&Zg(s)}function gi(s){if(!$t(s))return!1;var c=_n(s);return c==Ft||c==Mt||c==V||c==zr}function yy(s){return typeof s=="number"&&s==tt(s)}function rc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=be}function $t(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function Ut(s){return s!=null&&typeof s=="object"}var by=Ig?Xn(Ig):r_;function eA(s,c){return s===c||Rf(s,c,Gf(c))}function tA(s,c,g){return g=typeof g=="function"?g:i,Rf(s,c,Gf(c),g)}function nA(s){return vy(s)&&s!=+s}function rA(s){if(F_(s))throw new Ze(r);return um(s)}function iA(s){return s===null}function oA(s){return s==null}function vy(s){return typeof s=="number"||Ut(s)&&_n(s)==On}function ha(s){if(!Ut(s)||_n(s)!=It)return!1;var c=Ml(s);if(c===null)return!0;var g=xt.call(c,"constructor")&&c.constructor;return typeof g=="function"&&g instanceof g&&Tl.call(g)==tx}var rh=Lg?Xn(Lg):i_;function sA(s){return yy(s)&&s>=-be&&s<=be}var wy=Bg?Xn(Bg):o_;function ic(s){return typeof s=="string"||!Qe(s)&&Ut(s)&&_n(s)==pe}function er(s){return typeof s=="symbol"||Ut(s)&&_n(s)==le}var cs=kg?Xn(kg):s_;function aA(s){return s===i}function lA(s){return Ut(s)&&yn(s)==Ie}function cA(s){return Ut(s)&&_n(s)==z}var uA=Jl(Pf),dA=Jl(function(s,c){return s<=c});function Ey(s){if(!s)return[];if(Hn(s))return ic(s)?Pr(s):Nn(s);if(ea&&s[ea])return qO(s[ea]());var c=yn(s),g=c==Et?bf:c==Oe?Ol:us;return g(s)}function mi(s){if(!s)return s===0?s:0;if(s=Er(s),s===ye||s===-ye){var c=s<0?-1:1;return c*fe}return s===s?s:0}function tt(s){var c=mi(s),g=c%1;return c===c?g?c-g:c:0}function Sy(s){return s?vo(tt(s),0,he):0}function Er(s){if(typeof s=="number")return s;if(er(s))return re;if($t(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=$t(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=$g(s);var g=G3.test(s);return g||J3.test(s)?TO(s.slice(2),g?2:8):W3.test(s)?re:+s}function Oy(s){return Gr(s,jn(s))}function fA(s){return s?vo(tt(s),-be,be):s===0?s:0}function St(s){return s==null?"":Qn(s)}var hA=ss(function(s,c){if(da(c)||Hn(c)){Gr(c,tn(c),s);return}for(var g in c)xt.call(c,g)&&oa(s,g,c[g])}),xy=ss(function(s,c){Gr(c,jn(c),s)}),oc=ss(function(s,c,g,x){Gr(c,jn(c),s,x)}),pA=ss(function(s,c,g,x){Gr(c,tn(c),s,x)}),gA=hi(xf);function mA(s,c){var g=os(s);return c==null?g:nm(g,c)}var yA=rt(function(s,c){s=Rt(s);var g=-1,x=c.length,R=x>2?c[2]:i;for(R&&Tn(c[0],c[1],R)&&(x=1);++g<x;)for(var L=c[g],H=jn(L),F=-1,J=H.length;++F<J;){var ie=H[F],se=s[ie];(se===i||Lr(se,ns[ie])&&!xt.call(s,ie))&&(s[ie]=L[ie])}return s}),bA=rt(function(s){return s.push(i,$m),Zn(_y,i,s)});function vA(s,c){return Hg(s,Ue(c,3),Wr)}function wA(s,c){return Hg(s,Ue(c,3),Tf)}function EA(s,c){return s==null?s:_f(s,Ue(c,3),jn)}function SA(s,c){return s==null?s:am(s,Ue(c,3),jn)}function OA(s,c){return s&&Wr(s,Ue(c,3))}function xA(s,c){return s&&Tf(s,Ue(c,3))}function _A(s){return s==null?[]:Fl(s,tn(s))}function TA(s){return s==null?[]:Fl(s,jn(s))}function ih(s,c,g){var x=s==null?i:wo(s,c);return x===i?g:x}function CA(s,c){return s!=null&&zm(s,c,Yx)}function oh(s,c){return s!=null&&zm(s,c,Zx)}var AA=Nm(function(s,c,g){c!=null&&typeof c.toString!="function"&&(c=Cl.call(c)),s[c]=g},ah(Dn)),RA=Nm(function(s,c,g){c!=null&&typeof c.toString!="function"&&(c=Cl.call(c)),xt.call(s,c)?s[c].push(g):s[c]=[g]},Ue),MA=rt(aa);function tn(s){return Hn(s)?em(s):Mf(s)}function jn(s){return Hn(s)?em(s,!0):a_(s)}function PA(s,c){var g={};return c=Ue(c,3),Wr(s,function(x,R,L){di(g,c(x,R,L),x)}),g}function IA(s,c){var g={};return c=Ue(c,3),Wr(s,function(x,R,L){di(g,R,c(x,R,L))}),g}var LA=ss(function(s,c,g){$l(s,c,g)}),_y=ss(function(s,c,g,x){$l(s,c,g,x)}),BA=hi(function(s,c){var g={};if(s==null)return g;var x=!1;c=Ht(c,function(L){return L=zi(L,s),x||(x=L.length>1),L}),Gr(s,zf(s),g),x&&(g=br(g,f|m|p,A_));for(var R=c.length;R--;)Nf(g,c[R]);return g});function kA(s,c){return Ty(s,nc(Ue(c)))}var NA=hi(function(s,c){return s==null?{}:c_(s,c)});function Ty(s,c){if(s==null)return{};var g=Ht(zf(s),function(x){return[x]});return c=Ue(c),ym(s,g,function(x,R){return c(x,R[0])})}function HA(s,c,g){c=zi(c,s);var x=-1,R=c.length;for(R||(R=1,s=i);++x<R;){var L=s==null?i:s[Vr(c[x])];L===i&&(x=R,L=g),s=gi(L)?L.call(s):L}return s}function jA(s,c,g){return s==null?s:ca(s,c,g)}function DA(s,c,g,x){return x=typeof x=="function"?x:i,s==null?s:ca(s,c,g,x)}var Cy=Dm(tn),Ay=Dm(jn);function FA(s,c,g){var x=Qe(s),R=x||Gi(s)||cs(s);if(c=Ue(c,4),g==null){var L=s&&s.constructor;R?g=x?new L:[]:$t(s)?g=gi(L)?os(Ml(s)):{}:g={}}return(R?gr:Wr)(s,function(H,F,J){return c(g,H,F,J)}),g}function $A(s,c){return s==null?!0:Nf(s,c)}function UA(s,c,g){return s==null?s:Sm(s,c,Df(g))}function qA(s,c,g,x){return x=typeof x=="function"?x:i,s==null?s:Sm(s,c,Df(g),x)}function us(s){return s==null?[]:yf(s,tn(s))}function zA(s){return s==null?[]:yf(s,jn(s))}function WA(s,c,g){return g===i&&(g=c,c=i),g!==i&&(g=Er(g),g=g===g?g:0),c!==i&&(c=Er(c),c=c===c?c:0),vo(Er(s),c,g)}function GA(s,c,g){return c=mi(c),g===i?(g=c,c=0):g=mi(g),s=Er(s),Xx(s,c,g)}function VA(s,c,g){if(g&&typeof g!="boolean"&&Tn(s,c,g)&&(c=g=i),g===i&&(typeof c=="boolean"?(g=c,c=i):typeof s=="boolean"&&(g=s,s=i)),s===i&&c===i?(s=0,c=1):(s=mi(s),c===i?(c=s,s=0):c=mi(c)),s>c){var x=s;s=c,c=x}if(g||s%1||c%1){var R=Xg();return mn(s+R*(c-s+_O("1e-"+((R+"").length-1))),c)}return Lf(s,c)}var JA=as(function(s,c,g){return c=c.toLowerCase(),s+(g?Ry(c):c)});function Ry(s){return sh(St(s).toLowerCase())}function My(s){return s=St(s),s&&s.replace(Y3,jO).replace(gO,"")}function KA(s,c,g){s=St(s),c=Qn(c);var x=s.length;g=g===i?x:vo(tt(g),0,x);var R=g;return g-=c.length,g>=0&&s.slice(g,R)==c}function YA(s){return s=St(s),s&&fl.test(s)?s.replace(Zs,DO):s}function ZA(s){return s=St(s),s&&ef.test(s)?s.replace(Xs,"\\$&"):s}var XA=as(function(s,c,g){return s+(g?"-":"")+c.toLowerCase()}),QA=as(function(s,c,g){return s+(g?" ":"")+c.toLowerCase()}),eR=Lm("toLowerCase");function tR(s,c,g){s=St(s),c=tt(c);var x=c?ts(s):0;if(!c||x>=c)return s;var R=(c-x)/2;return Vl(Bl(R),g)+s+Vl(Ll(R),g)}function nR(s,c,g){s=St(s),c=tt(c);var x=c?ts(s):0;return c&&x<c?s+Vl(c-x,g):s}function rR(s,c,g){s=St(s),c=tt(c);var x=c?ts(s):0;return c&&x<c?Vl(c-x,g)+s:s}function iR(s,c,g){return g||c==null?c=0:c&&(c=+c),dx(St(s).replace(Zo,""),c||0)}function oR(s,c,g){return(g?Tn(s,c,g):c===i)?c=1:c=tt(c),Bf(St(s),c)}function sR(){var s=arguments,c=St(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var aR=as(function(s,c,g){return s+(g?"_":"")+c.toLowerCase()});function lR(s,c,g){return g&&typeof g!="number"&&Tn(s,c,g)&&(c=g=i),g=g===i?he:g>>>0,g?(s=St(s),s&&(typeof c=="string"||c!=null&&!rh(c))&&(c=Qn(c),!c&&es(s))?Wi(Pr(s),0,g):s.split(c,g)):[]}var cR=as(function(s,c,g){return s+(g?" ":"")+sh(c)});function uR(s,c,g){return s=St(s),g=g==null?0:vo(tt(g),0,s.length),c=Qn(c),s.slice(g,g+c.length)==c}function dR(s,c,g){var x=M.templateSettings;g&&Tn(s,c,g)&&(c=i),s=St(s),c=oc({},c,x,Fm);var R=oc({},c.imports,x.imports,Fm),L=tn(R),H=yf(R,L),F,J,ie=0,se=c.interpolate||bl,ce="__p += '",Te=vf((c.escape||bl).source+"|"+se.source+"|"+(se===pl?z3:bl).source+"|"+(c.evaluate||bl).source+"|$","g"),ke="//# sourceURL="+(xt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wO+"]")+`
50
- `;s.replace(Te,function(Ge,at,ht,tr,Cn,nr){return ht||(ht=tr),ce+=s.slice(ie,nr).replace(Z3,FO),at&&(F=!0,ce+=`' +
49
+ `)}function H_(s){return Qe(s)||Oo(s)||!!(Yg&&s&&s[Yg])}function pi(s,c){var g=typeof s;return c=c??be,!!c&&(g=="number"||g!="symbol"&&K3.test(s))&&s>-1&&s%1==0&&s<c}function Tn(s,c,g){if(!$t(g))return!1;var x=typeof c;return(x=="number"?Hn(g)&&pi(c,g.length):x=="string"&&c in g)?Lr(g[c],s):!1}function Jf(s,c){if(Qe(s))return!1;var g=typeof s;return g=="number"||g=="symbol"||g=="boolean"||s==null||er(s)?!0:Qd.test(s)||!Xd.test(s)||c!=null&&s in Rt(c)}function j_(s){var c=typeof s;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?s!=="__proto__":s===null}function Kf(s){var c=Kl(s),g=M[c];if(typeof g!="function"||!(c in ut.prototype))return!1;if(s===g)return!0;var x=Wf(g);return!!x&&s===x[0]}function D_(s){return!!Gg&&Gg in s}var F_=_l?gi:fh;function da(s){var c=s&&s.constructor,g=typeof c=="function"&&c.prototype||ns;return s===g}function Gm(s){return s===s&&!$t(s)}function Vm(s,c){return function(g){return g==null?!1:g[s]===c&&(c!==i||s in Rt(g))}}function $_(s){var c=tc(s,function(x){return g.size===u&&g.clear(),x}),g=c.cache;return c}function U_(s,c){var g=s[1],x=c[1],R=g|x,L=R<(v|y|_),H=x==_&&g==w||x==_&&g==I&&s[7].length<=c[8]||x==(_|I)&&c[7].length<=c[8]&&g==w;if(!(L||H))return s;x&v&&(s[2]=c[2],R|=g&v?0:b);var $=c[3];if($){var J=s[3];s[3]=J?Rm(J,$,c[4]):$,s[4]=J?Di(s[3],d):c[4]}return $=c[5],$&&(J=s[5],s[5]=J?Mm(J,$,c[6]):$,s[6]=J?Di(s[5],d):c[6]),$=c[7],$&&(s[7]=$),x&_&&(s[8]=s[8]==null?c[8]:mn(s[8],c[8])),s[9]==null&&(s[9]=c[9]),s[0]=c[0],s[1]=R,s}function q_(s){var c=[];if(s!=null)for(var g in Rt(s))c.push(g);return c}function z_(s){return Cl.call(s)}function Jm(s,c,g){return c=Zt(c===i?s.length-1:c,0),function(){for(var x=arguments,R=-1,L=Zt(x.length-c,0),H=Q(L);++R<L;)H[R]=x[c+R];R=-1;for(var $=Q(c+1);++R<c;)$[R]=x[R];return $[c]=g(H),Zn(s,this,$)}}function Km(s,c){return c.length<2?s:wo(s,vr(c,0,-1))}function W_(s,c){for(var g=s.length,x=mn(c.length,g),R=Nn(s);x--;){var L=c[x];s[x]=pi(L,g)?R[L]:i}return s}function Yf(s,c){if(!(c==="constructor"&&typeof s[c]=="function")&&c!="__proto__")return s[c]}var Ym=Xm(vm),fa=sx||function(s,c){return en.setTimeout(s,c)},Zf=Xm(p_);function Zm(s,c,g){var x=c+"";return Zf(s,N_(x,G_(L_(x),g)))}function Xm(s){var c=0,g=0;return function(){var x=ux(),R=k-(x-g);if(g=x,R>0){if(++c>=F)return arguments[0]}else c=0;return s.apply(i,arguments)}}function Zl(s,c){var g=-1,x=s.length,R=x-1;for(c=c===i?x:c;++g<c;){var L=Lf(g,R),H=s[L];s[L]=s[g],s[g]=H}return s.length=c,s}var Qm=$_(function(s){var c=[];return s.charCodeAt(0)===46&&c.push(""),s.replace(gl,function(g,x,R,L){c.push(R?L.replace(q3,"$1"):x||g)}),c});function Vr(s){if(typeof s=="string"||er(s))return s;var c=s+"";return c=="0"&&1/s==-ye?"-0":c}function So(s){if(s!=null){try{return Tl.call(s)}catch(c){}try{return s+""}catch(c){}}return""}function G_(s,c){return gr(xe,function(g){var x="_."+g[0];c&g[1]&&!El(s,x)&&s.push(x)}),s.sort()}function ey(s){if(s instanceof ut)return s.clone();var c=new yr(s.__wrapped__,s.__chain__);return c.__actions__=Nn(s.__actions__),c.__index__=s.__index__,c.__values__=s.__values__,c}function V_(s,c,g){(g?Tn(s,c,g):c===i)?c=1:c=Zt(tt(c),0);var x=s==null?0:s.length;if(!x||c<1)return[];for(var R=0,L=0,H=Q(Ll(x/c));R<x;)H[L++]=vr(s,R,R+=c);return H}function J_(s){for(var c=-1,g=s==null?0:s.length,x=0,R=[];++c<g;){var L=s[c];L&&(R[x++]=L)}return R}function K_(){var s=arguments.length;if(!s)return[];for(var c=Q(s-1),g=arguments[0],x=s;x--;)c[x-1]=arguments[x];return ji(Qe(g)?Nn(g):[g],cn(c,1))}var Y_=rt(function(s,c){return Wt(s)?sa(s,cn(c,1,Wt,!0)):[]}),Z_=rt(function(s,c){var g=wr(c);return Wt(g)&&(g=i),Wt(s)?sa(s,cn(c,1,Wt,!0),Ue(g,2)):[]}),X_=rt(function(s,c){var g=wr(c);return Wt(g)&&(g=i),Wt(s)?sa(s,cn(c,1,Wt,!0),i,g):[]});function Q_(s,c,g){var x=s==null?0:s.length;return x?(c=g||c===i?1:tt(c),vr(s,c<0?0:c,x)):[]}function eT(s,c,g){var x=s==null?0:s.length;return x?(c=g||c===i?1:tt(c),c=x-c,vr(s,0,c<0?0:c)):[]}function tT(s,c){return s&&s.length?ql(s,Ue(c,3),!0,!0):[]}function nT(s,c){return s&&s.length?ql(s,Ue(c,3),!0):[]}function rT(s,c,g,x){var R=s==null?0:s.length;return R?(g&&typeof g!="number"&&Tn(s,c,g)&&(g=0,x=R),Kx(s,c,g,x)):[]}function ty(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var R=g==null?0:tt(g);return R<0&&(R=Zt(x+R,0)),Sl(s,Ue(c,3),R)}function ny(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var R=x-1;return g!==i&&(R=tt(g),R=g<0?Zt(x+R,0):mn(R,x-1)),Sl(s,Ue(c,3),R,!0)}function ry(s){var c=s==null?0:s.length;return c?cn(s,1):[]}function iT(s){var c=s==null?0:s.length;return c?cn(s,ye):[]}function oT(s,c){var g=s==null?0:s.length;return g?(c=c===i?1:tt(c),cn(s,c)):[]}function sT(s){for(var c=-1,g=s==null?0:s.length,x={};++c<g;){var R=s[c];x[R[0]]=R[1]}return x}function iy(s){return s&&s.length?s[0]:i}function aT(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var R=g==null?0:tt(g);return R<0&&(R=Zt(x+R,0)),Qo(s,c,R)}function lT(s){var c=s==null?0:s.length;return c?vr(s,0,-1):[]}var cT=rt(function(s){var c=Ht(s,jf);return c.length&&c[0]===s[0]?Af(c):[]}),uT=rt(function(s){var c=wr(s),g=Ht(s,jf);return c===wr(g)?c=i:g.pop(),g.length&&g[0]===s[0]?Af(g,Ue(c,2)):[]}),dT=rt(function(s){var c=wr(s),g=Ht(s,jf);return c=typeof c=="function"?c:i,c&&g.pop(),g.length&&g[0]===s[0]?Af(g,i,c):[]});function fT(s,c){return s==null?"":lx.call(s,c)}function wr(s){var c=s==null?0:s.length;return c?s[c-1]:i}function hT(s,c,g){var x=s==null?0:s.length;if(!x)return-1;var R=x;return g!==i&&(R=tt(g),R=R<0?Zt(x+R,0):mn(R,x-1)),c===c?GO(s,c,R):Sl(s,jg,R,!0)}function pT(s,c){return s&&s.length?gm(s,tt(c)):i}var gT=rt(oy);function oy(s,c){return s&&s.length&&c&&c.length?If(s,c):s}function mT(s,c,g){return s&&s.length&&c&&c.length?If(s,c,Ue(g,2)):s}function yT(s,c,g){return s&&s.length&&c&&c.length?If(s,c,i,g):s}var bT=hi(function(s,c){var g=s==null?0:s.length,x=xf(s,c);return bm(s,Ht(c,function(R){return pi(R,g)?+R:R}).sort(Am)),x});function vT(s,c){var g=[];if(!(s&&s.length))return g;var x=-1,R=[],L=s.length;for(c=Ue(c,3);++x<L;){var H=s[x];c(H,x,s)&&(g.push(H),R.push(x))}return bm(s,R),g}function Xf(s){return s==null?s:fx.call(s)}function wT(s,c,g){var x=s==null?0:s.length;return x?(g&&typeof g!="number"&&Tn(s,c,g)?(c=0,g=x):(c=c==null?0:tt(c),g=g===i?x:tt(g)),vr(s,c,g)):[]}function ET(s,c){return Ul(s,c)}function ST(s,c,g){return kf(s,c,Ue(g,2))}function OT(s,c){var g=s==null?0:s.length;if(g){var x=Ul(s,c);if(x<g&&Lr(s[x],c))return x}return-1}function xT(s,c){return Ul(s,c,!0)}function _T(s,c,g){return kf(s,c,Ue(g,2),!0)}function TT(s,c){var g=s==null?0:s.length;if(g){var x=Ul(s,c,!0)-1;if(Lr(s[x],c))return x}return-1}function CT(s){return s&&s.length?wm(s):[]}function AT(s,c){return s&&s.length?wm(s,Ue(c,2)):[]}function RT(s){var c=s==null?0:s.length;return c?vr(s,1,c):[]}function MT(s,c,g){return s&&s.length?(c=g||c===i?1:tt(c),vr(s,0,c<0?0:c)):[]}function PT(s,c,g){var x=s==null?0:s.length;return x?(c=g||c===i?1:tt(c),c=x-c,vr(s,c<0?0:c,x)):[]}function IT(s,c){return s&&s.length?ql(s,Ue(c,3),!1,!0):[]}function LT(s,c){return s&&s.length?ql(s,Ue(c,3)):[]}var BT=rt(function(s){return qi(cn(s,1,Wt,!0))}),kT=rt(function(s){var c=wr(s);return Wt(c)&&(c=i),qi(cn(s,1,Wt,!0),Ue(c,2))}),NT=rt(function(s){var c=wr(s);return c=typeof c=="function"?c:i,qi(cn(s,1,Wt,!0),i,c)});function HT(s){return s&&s.length?qi(s):[]}function jT(s,c){return s&&s.length?qi(s,Ue(c,2)):[]}function DT(s,c){return c=typeof c=="function"?c:i,s&&s.length?qi(s,i,c):[]}function Qf(s){if(!(s&&s.length))return[];var c=0;return s=Hi(s,function(g){if(Wt(g))return c=Zt(g.length,c),!0}),mf(c,function(g){return Ht(s,hf(g))})}function sy(s,c){if(!(s&&s.length))return[];var g=Qf(s);return c==null?g:Ht(g,function(x){return Zn(c,i,x)})}var FT=rt(function(s,c){return Wt(s)?sa(s,c):[]}),$T=rt(function(s){return Hf(Hi(s,Wt))}),UT=rt(function(s){var c=wr(s);return Wt(c)&&(c=i),Hf(Hi(s,Wt),Ue(c,2))}),qT=rt(function(s){var c=wr(s);return c=typeof c=="function"?c:i,Hf(Hi(s,Wt),i,c)}),zT=rt(Qf);function WT(s,c){return xm(s||[],c||[],oa)}function GT(s,c){return xm(s||[],c||[],ca)}var VT=rt(function(s){var c=s.length,g=c>1?s[c-1]:i;return g=typeof g=="function"?(s.pop(),g):i,sy(s,g)});function ay(s){var c=M(s);return c.__chain__=!0,c}function JT(s,c){return c(s),s}function Xl(s,c){return c(s)}var KT=hi(function(s){var c=s.length,g=c?s[0]:0,x=this.__wrapped__,R=function(L){return xf(L,s)};return c>1||this.__actions__.length||!(x instanceof ut)||!pi(g)?this.thru(R):(x=x.slice(g,+g+(c?1:0)),x.__actions__.push({func:Xl,args:[R],thisArg:i}),new yr(x,this.__chain__).thru(function(L){return c&&!L.length&&L.push(i),L}))});function YT(){return ay(this)}function ZT(){return new yr(this.value(),this.__chain__)}function XT(){this.__values__===i&&(this.__values__=Ey(this.value()));var s=this.__index__>=this.__values__.length,c=s?i:this.__values__[this.__index__++];return{done:s,value:c}}function QT(){return this}function eC(s){for(var c,g=this;g instanceof Hl;){var x=ey(g);x.__index__=0,x.__values__=i,c?R.__wrapped__=x:c=x;var R=x;g=g.__wrapped__}return R.__wrapped__=s,c}function tC(){var s=this.__wrapped__;if(s instanceof ut){var c=s;return this.__actions__.length&&(c=new ut(this)),c=c.reverse(),c.__actions__.push({func:Xl,args:[Xf],thisArg:i}),new yr(c,this.__chain__)}return this.thru(Xf)}function nC(){return Om(this.__wrapped__,this.__actions__)}var rC=zl(function(s,c,g){xt.call(s,g)?++s[g]:di(s,g,1)});function iC(s,c,g){var x=Qe(s)?Ng:Jx;return g&&Tn(s,c,g)&&(c=i),x(s,Ue(c,3))}function oC(s,c){var g=Qe(s)?Hi:sm;return g(s,Ue(c,3))}var sC=Bm(ty),aC=Bm(ny);function lC(s,c){return cn(Ql(s,c),1)}function cC(s,c){return cn(Ql(s,c),ye)}function uC(s,c,g){return g=g===i?1:tt(g),cn(Ql(s,c),g)}function ly(s,c){var g=Qe(s)?gr:Ui;return g(s,Ue(c,3))}function cy(s,c){var g=Qe(s)?RO:om;return g(s,Ue(c,3))}var dC=zl(function(s,c,g){xt.call(s,g)?s[g].push(c):di(s,g,[c])});function fC(s,c,g,x){s=Hn(s)?s:us(s),g=g&&!x?tt(g):0;var R=s.length;return g<0&&(g=Zt(R+g,0)),ic(s)?g<=R&&s.indexOf(c,g)>-1:!!R&&Qo(s,c,g)>-1}var hC=rt(function(s,c,g){var x=-1,R=typeof c=="function",L=Hn(s)?Q(s.length):[];return Ui(s,function(H){L[++x]=R?Zn(c,H,g):aa(H,c,g)}),L}),pC=zl(function(s,c,g){di(s,g,c)});function Ql(s,c){var g=Qe(s)?Ht:fm;return g(s,Ue(c,3))}function gC(s,c,g,x){return s==null?[]:(Qe(c)||(c=c==null?[]:[c]),g=x?i:g,Qe(g)||(g=g==null?[]:[g]),mm(s,c,g))}var mC=zl(function(s,c,g){s[g?0:1].push(c)},function(){return[[],[]]});function yC(s,c,g){var x=Qe(s)?df:Fg,R=arguments.length<3;return x(s,Ue(c,4),g,R,Ui)}function bC(s,c,g){var x=Qe(s)?MO:Fg,R=arguments.length<3;return x(s,Ue(c,4),g,R,om)}function vC(s,c){var g=Qe(s)?Hi:sm;return g(s,nc(Ue(c,3)))}function wC(s){var c=Qe(s)?tm:f_;return c(s)}function EC(s,c,g){(g?Tn(s,c,g):c===i)?c=1:c=tt(c);var x=Qe(s)?qx:h_;return x(s,c)}function SC(s){var c=Qe(s)?zx:g_;return c(s)}function OC(s){if(s==null)return 0;if(Hn(s))return ic(s)?ts(s):s.length;var c=yn(s);return c==Et||c==Oe?s.size:Mf(s).length}function xC(s,c,g){var x=Qe(s)?ff:m_;return g&&Tn(s,c,g)&&(c=i),x(s,Ue(c,3))}var _C=rt(function(s,c){if(s==null)return[];var g=c.length;return g>1&&Tn(s,c[0],c[1])?c=[]:g>2&&Tn(c[0],c[1],c[2])&&(c=[c[0]]),mm(s,cn(c,1),[])}),ec=ox||function(){return en.Date.now()};function TC(s,c){if(typeof c!="function")throw new mr(o);return s=tt(s),function(){if(--s<1)return c.apply(this,arguments)}}function uy(s,c,g){return c=g?i:c,c=s&&c==null?s.length:c,fi(s,_,i,i,i,i,c)}function dy(s,c){var g;if(typeof c!="function")throw new mr(o);return s=tt(s),function(){return--s>0&&(g=c.apply(this,arguments)),s<=1&&(c=i),g}}var eh=rt(function(s,c,g){var x=v;if(g.length){var R=Di(g,ls(eh));x|=T}return fi(s,x,c,g,R)}),fy=rt(function(s,c,g){var x=v|y;if(g.length){var R=Di(g,ls(fy));x|=T}return fi(c,x,s,g,R)});function hy(s,c,g){c=g?i:c;var x=fi(s,w,i,i,i,i,i,c);return x.placeholder=hy.placeholder,x}function py(s,c,g){c=g?i:c;var x=fi(s,O,i,i,i,i,i,c);return x.placeholder=py.placeholder,x}function gy(s,c,g){var x,R,L,H,$,J,ie=0,se=!1,ce=!1,Te=!0;if(typeof s!="function")throw new mr(o);c=Er(c)||0,$t(g)&&(se=!!g.leading,ce="maxWait"in g,L=ce?Zt(Er(g.maxWait)||0,c):L,Te="trailing"in g?!!g.trailing:Te);function ke(Gt){var Br=x,yi=R;return x=R=i,ie=Gt,H=s.apply(yi,Br),H}function We(Gt){return ie=Gt,$=fa(at,c),se?ke(Gt):H}function nt(Gt){var Br=Gt-J,yi=Gt-ie,By=c-Br;return ce?mn(By,L-yi):By}function Ge(Gt){var Br=Gt-J,yi=Gt-ie;return J===i||Br>=c||Br<0||ce&&yi>=L}function at(){var Gt=ec();if(Ge(Gt))return ht(Gt);$=fa(at,nt(Gt))}function ht(Gt){return $=i,Te&&x?ke(Gt):(x=R=i,H)}function tr(){$!==i&&_m($),ie=0,x=J=R=$=i}function Cn(){return $===i?H:ht(ec())}function nr(){var Gt=ec(),Br=Ge(Gt);if(x=arguments,R=this,J=Gt,Br){if($===i)return We(J);if(ce)return _m($),$=fa(at,c),ke(J)}return $===i&&($=fa(at,c)),H}return nr.cancel=tr,nr.flush=Cn,nr}var CC=rt(function(s,c){return im(s,1,c)}),AC=rt(function(s,c,g){return im(s,Er(c)||0,g)});function RC(s){return fi(s,D)}function tc(s,c){if(typeof s!="function"||c!=null&&typeof c!="function")throw new mr(o);var g=function(){var x=arguments,R=c?c.apply(this,x):x[0],L=g.cache;if(L.has(R))return L.get(R);var H=s.apply(this,x);return g.cache=L.set(R,H)||L,H};return g.cache=new(tc.Cache||ui),g}tc.Cache=ui;function nc(s){if(typeof s!="function")throw new mr(o);return function(){var c=arguments;switch(c.length){case 0:return!s.call(this);case 1:return!s.call(this,c[0]);case 2:return!s.call(this,c[0],c[1]);case 3:return!s.call(this,c[0],c[1],c[2])}return!s.apply(this,c)}}function MC(s){return dy(2,s)}var PC=y_(function(s,c){c=c.length==1&&Qe(c[0])?Ht(c[0],Xn(Ue())):Ht(cn(c,1),Xn(Ue()));var g=c.length;return rt(function(x){for(var R=-1,L=mn(x.length,g);++R<L;)x[R]=c[R].call(this,x[R]);return Zn(s,this,x)})}),th=rt(function(s,c){var g=Di(c,ls(th));return fi(s,T,i,c,g)}),my=rt(function(s,c){var g=Di(c,ls(my));return fi(s,C,i,c,g)}),IC=hi(function(s,c){return fi(s,I,i,i,i,c)});function LC(s,c){if(typeof s!="function")throw new mr(o);return c=c===i?c:tt(c),rt(s,c)}function BC(s,c){if(typeof s!="function")throw new mr(o);return c=c==null?0:Zt(tt(c),0),rt(function(g){var x=g[c],R=Wi(g,0,c);return x&&ji(R,x),Zn(s,this,R)})}function kC(s,c,g){var x=!0,R=!0;if(typeof s!="function")throw new mr(o);return $t(g)&&(x="leading"in g?!!g.leading:x,R="trailing"in g?!!g.trailing:R),gy(s,c,{leading:x,maxWait:c,trailing:R})}function NC(s){return uy(s,1)}function HC(s,c){return th(Df(c),s)}function jC(){if(!arguments.length)return[];var s=arguments[0];return Qe(s)?s:[s]}function DC(s){return br(s,p)}function FC(s,c){return c=typeof c=="function"?c:i,br(s,p,c)}function $C(s){return br(s,f|p)}function UC(s,c){return c=typeof c=="function"?c:i,br(s,f|p,c)}function qC(s,c){return c==null||rm(s,c,tn(c))}function Lr(s,c){return s===c||s!==s&&c!==c}var zC=Jl(Cf),WC=Jl(function(s,c){return s>=c}),Oo=cm(function(){return arguments}())?cm:function(s){return Ut(s)&&xt.call(s,"callee")&&!Kg.call(s,"callee")},Qe=Q.isArray,GC=Mg?Xn(Mg):e_;function Hn(s){return s!=null&&rc(s.length)&&!gi(s)}function Wt(s){return Ut(s)&&Hn(s)}function VC(s){return s===!0||s===!1||Ut(s)&&_n(s)==ee}var Gi=ax||fh,JC=Pg?Xn(Pg):t_;function KC(s){return Ut(s)&&s.nodeType===1&&!ha(s)}function YC(s){if(s==null)return!0;if(Hn(s)&&(Qe(s)||typeof s=="string"||typeof s.splice=="function"||Gi(s)||cs(s)||Oo(s)))return!s.length;var c=yn(s);if(c==Et||c==Oe)return!s.size;if(da(s))return!Mf(s).length;for(var g in s)if(xt.call(s,g))return!1;return!0}function ZC(s,c){return la(s,c)}function XC(s,c,g){g=typeof g=="function"?g:i;var x=g?g(s,c):i;return x===i?la(s,c,i,g):!!x}function nh(s){if(!Ut(s))return!1;var c=_n(s);return c==bt||c==ae||typeof s.message=="string"&&typeof s.name=="string"&&!ha(s)}function QC(s){return typeof s=="number"&&Zg(s)}function gi(s){if(!$t(s))return!1;var c=_n(s);return c==Ft||c==Mt||c==V||c==zr}function yy(s){return typeof s=="number"&&s==tt(s)}function rc(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=be}function $t(s){var c=typeof s;return s!=null&&(c=="object"||c=="function")}function Ut(s){return s!=null&&typeof s=="object"}var by=Ig?Xn(Ig):r_;function eA(s,c){return s===c||Rf(s,c,Gf(c))}function tA(s,c,g){return g=typeof g=="function"?g:i,Rf(s,c,Gf(c),g)}function nA(s){return vy(s)&&s!=+s}function rA(s){if(F_(s))throw new Ze(r);return um(s)}function iA(s){return s===null}function oA(s){return s==null}function vy(s){return typeof s=="number"||Ut(s)&&_n(s)==On}function ha(s){if(!Ut(s)||_n(s)!=It)return!1;var c=Ml(s);if(c===null)return!0;var g=xt.call(c,"constructor")&&c.constructor;return typeof g=="function"&&g instanceof g&&Tl.call(g)==tx}var rh=Lg?Xn(Lg):i_;function sA(s){return yy(s)&&s>=-be&&s<=be}var wy=Bg?Xn(Bg):o_;function ic(s){return typeof s=="string"||!Qe(s)&&Ut(s)&&_n(s)==pe}function er(s){return typeof s=="symbol"||Ut(s)&&_n(s)==le}var cs=kg?Xn(kg):s_;function aA(s){return s===i}function lA(s){return Ut(s)&&yn(s)==Ie}function cA(s){return Ut(s)&&_n(s)==z}var uA=Jl(Pf),dA=Jl(function(s,c){return s<=c});function Ey(s){if(!s)return[];if(Hn(s))return ic(s)?Pr(s):Nn(s);if(ea&&s[ea])return qO(s[ea]());var c=yn(s),g=c==Et?bf:c==Oe?Ol:us;return g(s)}function mi(s){if(!s)return s===0?s:0;if(s=Er(s),s===ye||s===-ye){var c=s<0?-1:1;return c*fe}return s===s?s:0}function tt(s){var c=mi(s),g=c%1;return c===c?g?c-g:c:0}function Sy(s){return s?vo(tt(s),0,he):0}function Er(s){if(typeof s=="number")return s;if(er(s))return re;if($t(s)){var c=typeof s.valueOf=="function"?s.valueOf():s;s=$t(c)?c+"":c}if(typeof s!="string")return s===0?s:+s;s=$g(s);var g=G3.test(s);return g||J3.test(s)?TO(s.slice(2),g?2:8):W3.test(s)?re:+s}function Oy(s){return Gr(s,jn(s))}function fA(s){return s?vo(tt(s),-be,be):s===0?s:0}function St(s){return s==null?"":Qn(s)}var hA=ss(function(s,c){if(da(c)||Hn(c)){Gr(c,tn(c),s);return}for(var g in c)xt.call(c,g)&&oa(s,g,c[g])}),xy=ss(function(s,c){Gr(c,jn(c),s)}),oc=ss(function(s,c,g,x){Gr(c,jn(c),s,x)}),pA=ss(function(s,c,g,x){Gr(c,tn(c),s,x)}),gA=hi(xf);function mA(s,c){var g=os(s);return c==null?g:nm(g,c)}var yA=rt(function(s,c){s=Rt(s);var g=-1,x=c.length,R=x>2?c[2]:i;for(R&&Tn(c[0],c[1],R)&&(x=1);++g<x;)for(var L=c[g],H=jn(L),$=-1,J=H.length;++$<J;){var ie=H[$],se=s[ie];(se===i||Lr(se,ns[ie])&&!xt.call(s,ie))&&(s[ie]=L[ie])}return s}),bA=rt(function(s){return s.push(i,$m),Zn(_y,i,s)});function vA(s,c){return Hg(s,Ue(c,3),Wr)}function wA(s,c){return Hg(s,Ue(c,3),Tf)}function EA(s,c){return s==null?s:_f(s,Ue(c,3),jn)}function SA(s,c){return s==null?s:am(s,Ue(c,3),jn)}function OA(s,c){return s&&Wr(s,Ue(c,3))}function xA(s,c){return s&&Tf(s,Ue(c,3))}function _A(s){return s==null?[]:Fl(s,tn(s))}function TA(s){return s==null?[]:Fl(s,jn(s))}function ih(s,c,g){var x=s==null?i:wo(s,c);return x===i?g:x}function CA(s,c){return s!=null&&zm(s,c,Yx)}function oh(s,c){return s!=null&&zm(s,c,Zx)}var AA=Nm(function(s,c,g){c!=null&&typeof c.toString!="function"&&(c=Cl.call(c)),s[c]=g},ah(Dn)),RA=Nm(function(s,c,g){c!=null&&typeof c.toString!="function"&&(c=Cl.call(c)),xt.call(s,c)?s[c].push(g):s[c]=[g]},Ue),MA=rt(aa);function tn(s){return Hn(s)?em(s):Mf(s)}function jn(s){return Hn(s)?em(s,!0):a_(s)}function PA(s,c){var g={};return c=Ue(c,3),Wr(s,function(x,R,L){di(g,c(x,R,L),x)}),g}function IA(s,c){var g={};return c=Ue(c,3),Wr(s,function(x,R,L){di(g,R,c(x,R,L))}),g}var LA=ss(function(s,c,g){$l(s,c,g)}),_y=ss(function(s,c,g,x){$l(s,c,g,x)}),BA=hi(function(s,c){var g={};if(s==null)return g;var x=!1;c=Ht(c,function(L){return L=zi(L,s),x||(x=L.length>1),L}),Gr(s,zf(s),g),x&&(g=br(g,f|m|p,A_));for(var R=c.length;R--;)Nf(g,c[R]);return g});function kA(s,c){return Ty(s,nc(Ue(c)))}var NA=hi(function(s,c){return s==null?{}:c_(s,c)});function Ty(s,c){if(s==null)return{};var g=Ht(zf(s),function(x){return[x]});return c=Ue(c),ym(s,g,function(x,R){return c(x,R[0])})}function HA(s,c,g){c=zi(c,s);var x=-1,R=c.length;for(R||(R=1,s=i);++x<R;){var L=s==null?i:s[Vr(c[x])];L===i&&(x=R,L=g),s=gi(L)?L.call(s):L}return s}function jA(s,c,g){return s==null?s:ca(s,c,g)}function DA(s,c,g,x){return x=typeof x=="function"?x:i,s==null?s:ca(s,c,g,x)}var Cy=Dm(tn),Ay=Dm(jn);function FA(s,c,g){var x=Qe(s),R=x||Gi(s)||cs(s);if(c=Ue(c,4),g==null){var L=s&&s.constructor;R?g=x?new L:[]:$t(s)?g=gi(L)?os(Ml(s)):{}:g={}}return(R?gr:Wr)(s,function(H,$,J){return c(g,H,$,J)}),g}function $A(s,c){return s==null?!0:Nf(s,c)}function UA(s,c,g){return s==null?s:Sm(s,c,Df(g))}function qA(s,c,g,x){return x=typeof x=="function"?x:i,s==null?s:Sm(s,c,Df(g),x)}function us(s){return s==null?[]:yf(s,tn(s))}function zA(s){return s==null?[]:yf(s,jn(s))}function WA(s,c,g){return g===i&&(g=c,c=i),g!==i&&(g=Er(g),g=g===g?g:0),c!==i&&(c=Er(c),c=c===c?c:0),vo(Er(s),c,g)}function GA(s,c,g){return c=mi(c),g===i?(g=c,c=0):g=mi(g),s=Er(s),Xx(s,c,g)}function VA(s,c,g){if(g&&typeof g!="boolean"&&Tn(s,c,g)&&(c=g=i),g===i&&(typeof c=="boolean"?(g=c,c=i):typeof s=="boolean"&&(g=s,s=i)),s===i&&c===i?(s=0,c=1):(s=mi(s),c===i?(c=s,s=0):c=mi(c)),s>c){var x=s;s=c,c=x}if(g||s%1||c%1){var R=Xg();return mn(s+R*(c-s+_O("1e-"+((R+"").length-1))),c)}return Lf(s,c)}var JA=as(function(s,c,g){return c=c.toLowerCase(),s+(g?Ry(c):c)});function Ry(s){return sh(St(s).toLowerCase())}function My(s){return s=St(s),s&&s.replace(Y3,jO).replace(gO,"")}function KA(s,c,g){s=St(s),c=Qn(c);var x=s.length;g=g===i?x:vo(tt(g),0,x);var R=g;return g-=c.length,g>=0&&s.slice(g,R)==c}function YA(s){return s=St(s),s&&fl.test(s)?s.replace(Zs,DO):s}function ZA(s){return s=St(s),s&&ef.test(s)?s.replace(Xs,"\\$&"):s}var XA=as(function(s,c,g){return s+(g?"-":"")+c.toLowerCase()}),QA=as(function(s,c,g){return s+(g?" ":"")+c.toLowerCase()}),eR=Lm("toLowerCase");function tR(s,c,g){s=St(s),c=tt(c);var x=c?ts(s):0;if(!c||x>=c)return s;var R=(c-x)/2;return Vl(Bl(R),g)+s+Vl(Ll(R),g)}function nR(s,c,g){s=St(s),c=tt(c);var x=c?ts(s):0;return c&&x<c?s+Vl(c-x,g):s}function rR(s,c,g){s=St(s),c=tt(c);var x=c?ts(s):0;return c&&x<c?Vl(c-x,g)+s:s}function iR(s,c,g){return g||c==null?c=0:c&&(c=+c),dx(St(s).replace(Zo,""),c||0)}function oR(s,c,g){return(g?Tn(s,c,g):c===i)?c=1:c=tt(c),Bf(St(s),c)}function sR(){var s=arguments,c=St(s[0]);return s.length<3?c:c.replace(s[1],s[2])}var aR=as(function(s,c,g){return s+(g?"_":"")+c.toLowerCase()});function lR(s,c,g){return g&&typeof g!="number"&&Tn(s,c,g)&&(c=g=i),g=g===i?he:g>>>0,g?(s=St(s),s&&(typeof c=="string"||c!=null&&!rh(c))&&(c=Qn(c),!c&&es(s))?Wi(Pr(s),0,g):s.split(c,g)):[]}var cR=as(function(s,c,g){return s+(g?" ":"")+sh(c)});function uR(s,c,g){return s=St(s),g=g==null?0:vo(tt(g),0,s.length),c=Qn(c),s.slice(g,g+c.length)==c}function dR(s,c,g){var x=M.templateSettings;g&&Tn(s,c,g)&&(c=i),s=St(s),c=oc({},c,x,Fm);var R=oc({},c.imports,x.imports,Fm),L=tn(R),H=yf(R,L),$,J,ie=0,se=c.interpolate||bl,ce="__p += '",Te=vf((c.escape||bl).source+"|"+se.source+"|"+(se===pl?z3:bl).source+"|"+(c.evaluate||bl).source+"|$","g"),ke="//# sourceURL="+(xt.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wO+"]")+`
50
+ `;s.replace(Te,function(Ge,at,ht,tr,Cn,nr){return ht||(ht=tr),ce+=s.slice(ie,nr).replace(Z3,FO),at&&($=!0,ce+=`' +
51
51
  __e(`+at+`) +
52
52
  '`),Cn&&(J=!0,ce+=`';
53
53
  `+Cn+`;
@@ -59,11 +59,11 @@ __p += '`),ht&&(ce+=`' +
59
59
  }
60
60
  `;else if(U3.test(We))throw new Ze(a);ce=(J?ce.replace(ho,""):ce).replace(ul,"$1").replace(Kd,"$1;"),ce="function("+(We||"obj")+`) {
61
61
  `+(We?"":`obj || (obj = {});
62
- `)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(J?`, __j = Array.prototype.join;
62
+ `)+"var __t, __p = ''"+($?", __e = _.escape":"")+(J?`, __j = Array.prototype.join;
63
63
  function print() { __p += __j.call(arguments, '') }
64
64
  `:`;
65
65
  `)+ce+`return __p
66
- }`;var nt=Iy(function(){return vt(L,ke+"return "+ce).apply(i,H)});if(nt.source=ce,nh(nt))throw nt;return nt}function fR(s){return St(s).toLowerCase()}function hR(s){return St(s).toUpperCase()}function pR(s,c,g){if(s=St(s),s&&(g||c===i))return $g(s);if(!s||!(c=Qn(c)))return s;var x=Pr(s),R=Pr(c),L=Ug(x,R),H=qg(x,R)+1;return Wi(x,L,H).join("")}function gR(s,c,g){if(s=St(s),s&&(g||c===i))return s.slice(0,Wg(s)+1);if(!s||!(c=Qn(c)))return s;var x=Pr(s),R=qg(x,Pr(c))+1;return Wi(x,0,R).join("")}function mR(s,c,g){if(s=St(s),s&&(g||c===i))return s.replace(Zo,"");if(!s||!(c=Qn(c)))return s;var x=Pr(s),R=Ug(x,Pr(c));return Wi(x,R).join("")}function yR(s,c){var g=I,x=q;if($t(c)){var R="separator"in c?c.separator:R;g="length"in c?tt(c.length):g,x="omission"in c?Qn(c.omission):x}s=St(s);var L=s.length;if(es(s)){var H=Pr(s);L=H.length}if(g>=L)return s;var F=g-ts(x);if(F<1)return x;var J=H?Wi(H,0,F).join(""):s.slice(0,F);if(R===i)return J+x;if(H&&(F+=J.length-F),rh(R)){if(s.slice(F).search(R)){var ie,se=J;for(R.global||(R=vf(R.source,St(cg.exec(R))+"g")),R.lastIndex=0;ie=R.exec(se);)var ce=ie.index;J=J.slice(0,ce===i?F:ce)}}else if(s.indexOf(Qn(R),F)!=F){var Te=J.lastIndexOf(R);Te>-1&&(J=J.slice(0,Te))}return J+x}function bR(s){return s=St(s),s&&Yd.test(s)?s.replace(dl,VO):s}var vR=as(function(s,c,g){return s+(g?" ":"")+c.toUpperCase()}),sh=Lm("toUpperCase");function Py(s,c,g){return s=St(s),c=g?i:c,c===i?UO(s)?YO(s):LO(s):s.match(c)||[]}var Iy=rt(function(s,c){try{return Zn(s,i,c)}catch(g){return nh(g)?g:new Ze(g)}}),wR=hi(function(s,c){return gr(c,function(g){g=Vr(g),di(s,g,eh(s[g],s))}),s});function ER(s){var c=s==null?0:s.length,g=Ue();return s=c?Ht(s,function(x){if(typeof x[1]!="function")throw new mr(o);return[g(x[0]),x[1]]}):[],rt(function(x){for(var R=-1;++R<c;){var L=s[R];if(Zn(L[0],this,x))return Zn(L[1],this,x)}})}function SR(s){return Vx(br(s,f))}function ah(s){return function(){return s}}function OR(s,c){return s==null||s!==s?c:s}var xR=km(),_R=km(!0);function Dn(s){return s}function lh(s){return dm(typeof s=="function"?s:br(s,f))}function TR(s){return hm(br(s,f))}function CR(s,c){return pm(s,br(c,f))}var AR=rt(function(s,c){return function(g){return aa(g,s,c)}}),RR=rt(function(s,c){return function(g){return aa(s,g,c)}});function ch(s,c,g){var x=tn(c),R=Fl(c,x);g==null&&!($t(c)&&(R.length||!x.length))&&(g=c,c=s,s=this,R=Fl(c,tn(c)));var L=!($t(g)&&"chain"in g)||!!g.chain,H=gi(s);return gr(R,function(F){var J=c[F];s[F]=J,H&&(s.prototype[F]=function(){var ie=this.__chain__;if(L||ie){var se=s(this.__wrapped__),ce=se.__actions__=Nn(this.__actions__);return ce.push({func:J,args:arguments,thisArg:s}),se.__chain__=ie,se}return J.apply(s,ji([this.value()],arguments))})}),s}function MR(){return en._===this&&(en._=nx),this}function uh(){}function PR(s){return s=tt(s),rt(function(c){return gm(c,s)})}var IR=$f(Ht),LR=$f(Ng),BR=$f(ff);function Ly(s){return Jf(s)?hf(Vr(s)):u_(s)}function kR(s){return function(c){return s==null?i:wo(s,c)}}var NR=Hm(),HR=Hm(!0);function dh(){return[]}function fh(){return!1}function jR(){return{}}function DR(){return""}function FR(){return!0}function $R(s,c){if(s=tt(s),s<1||s>be)return[];var g=he,x=mn(s,he);c=Ue(c),s-=he;for(var R=mf(x,c);++g<s;)c(g);return R}function UR(s){return Qe(s)?Ht(s,Vr):er(s)?[s]:Nn(Qm(St(s)))}function qR(s){var c=++ex;return St(s)+c}var zR=Gl(function(s,c){return s+c},0),WR=Uf("ceil"),GR=Gl(function(s,c){return s/c},1),VR=Uf("floor");function JR(s){return s&&s.length?Dl(s,Dn,Cf):i}function KR(s,c){return s&&s.length?Dl(s,Ue(c,2),Cf):i}function YR(s){return Dg(s,Dn)}function ZR(s,c){return Dg(s,Ue(c,2))}function XR(s){return s&&s.length?Dl(s,Dn,Pf):i}function QR(s,c){return s&&s.length?Dl(s,Ue(c,2),Pf):i}var eM=Gl(function(s,c){return s*c},1),tM=Uf("round"),nM=Gl(function(s,c){return s-c},0);function rM(s){return s&&s.length?gf(s,Dn):0}function iM(s,c){return s&&s.length?gf(s,Ue(c,2)):0}return M.after=TC,M.ary=uy,M.assign=hA,M.assignIn=xy,M.assignInWith=oc,M.assignWith=pA,M.at=gA,M.before=dy,M.bind=eh,M.bindAll=wR,M.bindKey=fy,M.castArray=jC,M.chain=ay,M.chunk=V_,M.compact=J_,M.concat=K_,M.cond=ER,M.conforms=SR,M.constant=ah,M.countBy=rC,M.create=mA,M.curry=hy,M.curryRight=py,M.debounce=gy,M.defaults=yA,M.defaultsDeep=bA,M.defer=CC,M.delay=AC,M.difference=Y_,M.differenceBy=Z_,M.differenceWith=X_,M.drop=Q_,M.dropRight=eT,M.dropRightWhile=tT,M.dropWhile=nT,M.fill=rT,M.filter=oC,M.flatMap=lC,M.flatMapDeep=cC,M.flatMapDepth=uC,M.flatten=ry,M.flattenDeep=iT,M.flattenDepth=oT,M.flip=RC,M.flow=xR,M.flowRight=_R,M.fromPairs=sT,M.functions=_A,M.functionsIn=TA,M.groupBy=dC,M.initial=lT,M.intersection=cT,M.intersectionBy=uT,M.intersectionWith=dT,M.invert=AA,M.invertBy=RA,M.invokeMap=hC,M.iteratee=lh,M.keyBy=pC,M.keys=tn,M.keysIn=jn,M.map=Ql,M.mapKeys=PA,M.mapValues=IA,M.matches=TR,M.matchesProperty=CR,M.memoize=tc,M.merge=LA,M.mergeWith=_y,M.method=AR,M.methodOf=RR,M.mixin=ch,M.negate=nc,M.nthArg=PR,M.omit=BA,M.omitBy=kA,M.once=MC,M.orderBy=gC,M.over=IR,M.overArgs=PC,M.overEvery=LR,M.overSome=BR,M.partial=th,M.partialRight=my,M.partition=mC,M.pick=NA,M.pickBy=Ty,M.property=Ly,M.propertyOf=kR,M.pull=gT,M.pullAll=oy,M.pullAllBy=mT,M.pullAllWith=yT,M.pullAt=bT,M.range=NR,M.rangeRight=HR,M.rearg=IC,M.reject=vC,M.remove=vT,M.rest=LC,M.reverse=Xf,M.sampleSize=EC,M.set=jA,M.setWith=DA,M.shuffle=SC,M.slice=wT,M.sortBy=_C,M.sortedUniq=CT,M.sortedUniqBy=AT,M.split=lR,M.spread=BC,M.tail=RT,M.take=MT,M.takeRight=PT,M.takeRightWhile=IT,M.takeWhile=LT,M.tap=JT,M.throttle=kC,M.thru=Xl,M.toArray=Ey,M.toPairs=Cy,M.toPairsIn=Ay,M.toPath=UR,M.toPlainObject=Oy,M.transform=FA,M.unary=NC,M.union=BT,M.unionBy=kT,M.unionWith=NT,M.uniq=HT,M.uniqBy=jT,M.uniqWith=DT,M.unset=$A,M.unzip=Qf,M.unzipWith=sy,M.update=UA,M.updateWith=qA,M.values=us,M.valuesIn=zA,M.without=FT,M.words=Py,M.wrap=HC,M.xor=$T,M.xorBy=UT,M.xorWith=qT,M.zip=zT,M.zipObject=WT,M.zipObjectDeep=GT,M.zipWith=VT,M.entries=Cy,M.entriesIn=Ay,M.extend=xy,M.extendWith=oc,ch(M,M),M.add=zR,M.attempt=Iy,M.camelCase=JA,M.capitalize=Ry,M.ceil=WR,M.clamp=WA,M.clone=DC,M.cloneDeep=$C,M.cloneDeepWith=UC,M.cloneWith=FC,M.conformsTo=qC,M.deburr=My,M.defaultTo=OR,M.divide=GR,M.endsWith=KA,M.eq=Lr,M.escape=YA,M.escapeRegExp=ZA,M.every=iC,M.find=sC,M.findIndex=ty,M.findKey=vA,M.findLast=aC,M.findLastIndex=ny,M.findLastKey=wA,M.floor=VR,M.forEach=ly,M.forEachRight=cy,M.forIn=EA,M.forInRight=SA,M.forOwn=OA,M.forOwnRight=xA,M.get=ih,M.gt=zC,M.gte=WC,M.has=CA,M.hasIn=oh,M.head=iy,M.identity=Dn,M.includes=fC,M.indexOf=aT,M.inRange=GA,M.invoke=MA,M.isArguments=Oo,M.isArray=Qe,M.isArrayBuffer=GC,M.isArrayLike=Hn,M.isArrayLikeObject=Wt,M.isBoolean=VC,M.isBuffer=Gi,M.isDate=JC,M.isElement=KC,M.isEmpty=YC,M.isEqual=ZC,M.isEqualWith=XC,M.isError=nh,M.isFinite=QC,M.isFunction=gi,M.isInteger=yy,M.isLength=rc,M.isMap=by,M.isMatch=eA,M.isMatchWith=tA,M.isNaN=nA,M.isNative=rA,M.isNil=oA,M.isNull=iA,M.isNumber=vy,M.isObject=$t,M.isObjectLike=Ut,M.isPlainObject=ha,M.isRegExp=rh,M.isSafeInteger=sA,M.isSet=wy,M.isString=ic,M.isSymbol=er,M.isTypedArray=cs,M.isUndefined=aA,M.isWeakMap=lA,M.isWeakSet=cA,M.join=fT,M.kebabCase=XA,M.last=wr,M.lastIndexOf=hT,M.lowerCase=QA,M.lowerFirst=eR,M.lt=uA,M.lte=dA,M.max=JR,M.maxBy=KR,M.mean=YR,M.meanBy=ZR,M.min=XR,M.minBy=QR,M.stubArray=dh,M.stubFalse=fh,M.stubObject=jR,M.stubString=DR,M.stubTrue=FR,M.multiply=eM,M.nth=pT,M.noConflict=MR,M.noop=uh,M.now=ec,M.pad=tR,M.padEnd=nR,M.padStart=rR,M.parseInt=iR,M.random=VA,M.reduce=yC,M.reduceRight=bC,M.repeat=oR,M.replace=sR,M.result=HA,M.round=tM,M.runInContext=G,M.sample=wC,M.size=OC,M.snakeCase=aR,M.some=xC,M.sortedIndex=ET,M.sortedIndexBy=ST,M.sortedIndexOf=OT,M.sortedLastIndex=xT,M.sortedLastIndexBy=_T,M.sortedLastIndexOf=TT,M.startCase=cR,M.startsWith=uR,M.subtract=nM,M.sum=rM,M.sumBy=iM,M.template=dR,M.times=$R,M.toFinite=mi,M.toInteger=tt,M.toLength=Sy,M.toLower=fR,M.toNumber=Er,M.toSafeInteger=fA,M.toString=St,M.toUpper=hR,M.trim=pR,M.trimEnd=gR,M.trimStart=mR,M.truncate=yR,M.unescape=bR,M.uniqueId=qR,M.upperCase=vR,M.upperFirst=sh,M.each=ly,M.eachRight=cy,M.first=iy,ch(M,function(){var s={};return Wr(M,function(c,g){xt.call(M.prototype,g)||(s[g]=c)}),s}(),{chain:!1}),M.VERSION=t,gr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){M[s].placeholder=M}),gr(["drop","take"],function(s,c){ut.prototype[s]=function(g){g=g===i?1:Zt(tt(g),0);var x=this.__filtered__&&!c?new ut(this):this.clone();return x.__filtered__?x.__takeCount__=mn(g,x.__takeCount__):x.__views__.push({size:mn(g,he),type:s+(x.__dir__<0?"Right":"")}),x},ut.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),gr(["filter","map","takeWhile"],function(s,c){var g=c+1,x=g==B||g==W;ut.prototype[s]=function(R){var L=this.clone();return L.__iteratees__.push({iteratee:Ue(R,3),type:g}),L.__filtered__=L.__filtered__||x,L}}),gr(["head","last"],function(s,c){var g="take"+(c?"Right":"");ut.prototype[s]=function(){return this[g](1).value()[0]}}),gr(["initial","tail"],function(s,c){var g="drop"+(c?"":"Right");ut.prototype[s]=function(){return this.__filtered__?new ut(this):this[g](1)}}),ut.prototype.compact=function(){return this.filter(Dn)},ut.prototype.find=function(s){return this.filter(s).head()},ut.prototype.findLast=function(s){return this.reverse().find(s)},ut.prototype.invokeMap=rt(function(s,c){return typeof s=="function"?new ut(this):this.map(function(g){return aa(g,s,c)})}),ut.prototype.reject=function(s){return this.filter(nc(Ue(s)))},ut.prototype.slice=function(s,c){s=tt(s);var g=this;return g.__filtered__&&(s>0||c<0)?new ut(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),c!==i&&(c=tt(c),g=c<0?g.dropRight(-c):g.take(c-s)),g)},ut.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ut.prototype.toArray=function(){return this.take(he)},Wr(ut.prototype,function(s,c){var g=/^(?:filter|find|map|reject)|While$/.test(c),x=/^(?:head|last)$/.test(c),R=M[x?"take"+(c=="last"?"Right":""):c],L=x||/^find/.test(c);!R||(M.prototype[c]=function(){var H=this.__wrapped__,F=x?[1]:arguments,J=H instanceof ut,ie=F[0],se=J||Qe(H),ce=function(at){var ht=R.apply(M,ji([at],F));return x&&Te?ht[0]:ht};se&&g&&typeof ie=="function"&&ie.length!=1&&(J=se=!1);var Te=this.__chain__,ke=!!this.__actions__.length,We=L&&!Te,nt=J&&!ke;if(!L&&se){H=nt?H:new ut(this);var Ge=s.apply(H,F);return Ge.__actions__.push({func:Xl,args:[ce],thisArg:i}),new yr(Ge,Te)}return We&&nt?s.apply(this,F):(Ge=this.thru(ce),We?x?Ge.value()[0]:Ge.value():Ge)})}),gr(["pop","push","shift","sort","splice","unshift"],function(s){var c=xl[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",x=/^(?:pop|shift)$/.test(s);M.prototype[s]=function(){var R=arguments;if(x&&!this.__chain__){var L=this.value();return c.apply(Qe(L)?L:[],R)}return this[g](function(H){return c.apply(Qe(H)?H:[],R)})}}),Wr(ut.prototype,function(s,c){var g=M[c];if(g){var x=g.name+"";xt.call(is,x)||(is[x]=[]),is[x].push({name:c,func:g})}}),is[Wl(i,y).name]=[{name:"wrapper",func:i}],ut.prototype.clone=bx,ut.prototype.reverse=vx,ut.prototype.value=wx,M.prototype.at=KT,M.prototype.chain=YT,M.prototype.commit=ZT,M.prototype.next=XT,M.prototype.plant=eC,M.prototype.reverse=tC,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=nC,M.prototype.first=M.prototype.head,ea&&(M.prototype[ea]=QT),M},Fi=ZO();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(en._=Fi,define(function(){return Fi})):go?((go.exports=Fi)._=Fi,lf._=Fi):en._=Fi}).call(qs)});var w0=Y((S9,v0)=>{A();var T4=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);T4?(y0=new Uint8Array(16),v0.exports=function(){return T4(y0),y0}):(b0=new Array(16),v0.exports=function(){for(var t=0,n;t<16;t++)(t&3)==0&&(n=Math.random()*4294967296),b0[t]=n>>>((t&3)<<3)&255;return b0});var y0,b0});var E0=Y((O9,A4)=>{A();var C4=[];for(Xa=0;Xa<256;++Xa)C4[Xa]=(Xa+256).toString(16).substr(1);var Xa;function T8(i,t){var n=t||0,r=C4;return[r[i[n++]],r[i[n++]],r[i[n++]],r[i[n++]],"-",r[i[n++]],r[i[n++]],"-",r[i[n++]],r[i[n++]],"-",r[i[n++]],r[i[n++]],"-",r[i[n++]],r[i[n++]],r[i[n++]],r[i[n++]],r[i[n++]],r[i[n++]]].join("")}A4.exports=T8});var P4=Y((x9,M4)=>{A();var C8=w0(),A8=E0(),R4,S0,O0=0,x0=0;function R8(i,t,n){var r=t&&n||0,o=t||[];i=i||{};var a=i.node||R4,l=i.clockseq!==void 0?i.clockseq:S0;if(a==null||l==null){var u=C8();a==null&&(a=R4=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),l==null&&(l=S0=(u[6]<<8|u[7])&16383)}var d=i.msecs!==void 0?i.msecs:new Date().getTime(),f=i.nsecs!==void 0?i.nsecs:x0+1,m=d-O0+(f-x0)/1e4;if(m<0&&i.clockseq===void 0&&(l=l+1&16383),(m<0||d>O0)&&i.nsecs===void 0&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");O0=d,x0=f,S0=l,d+=122192928e5;var p=((d&268435455)*1e4+f)%4294967296;o[r++]=p>>>24&255,o[r++]=p>>>16&255,o[r++]=p>>>8&255,o[r++]=p&255;var E=d/4294967296*1e4&268435455;o[r++]=E>>>8&255,o[r++]=E&255,o[r++]=E>>>24&15|16,o[r++]=E>>>16&255,o[r++]=l>>>8|128,o[r++]=l&255;for(var S=0;S<6;++S)o[r+S]=a[S];return t||A8(o)}M4.exports=R8});var L4=Y((_9,I4)=>{A();var M8=w0(),P8=E0();function I8(i,t,n){var r=t&&n||0;typeof i=="string"&&(t=i==="binary"?new Array(16):null,i=null),i=i||{};var o=i.random||(i.rng||M8)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var a=0;a<16;++a)t[r+a]=o[a];return t||P8(o)}I4.exports=I8});var T0=Y((T9,k4)=>{A();var L8=P4(),B4=L4(),_0=B4;_0.v1=L8;_0.v4=B4;k4.exports=_0});var j4=Y(Ws=>{A();"use strict";var A0;Object.defineProperty(Ws,"__esModule",{value:!0});Ws.MediaOverlayNode=Ws.timeStrToSeconds=void 0;var Li=Yr(),io=Rn(),k8=_s();function N8(i){if(!i)return 0;i=i.replace("npt=","");let t=0,n=0,r=0;try{let o=i.indexOf("min");if(o>0){let a=i.substr(0,o);n=parseFloat(a)}else{let a=i.indexOf("ms");if(a>0){let l=i.substr(0,a);r=parseFloat(l)/1e3}else{let l=i.indexOf("s");if(l>0){let u=i.substr(0,l);r=parseFloat(u)}else{let u=i.indexOf("h");if(u>0){let d=i.substr(0,u);t=parseFloat(d)}else{let d=i.split(":");d.length===1?r=parseFloat(d[0]):d.length===2?(n=parseFloat(d[0]),r=parseFloat(d[1])):d.length===3?(t=parseFloat(d[0]),n=parseFloat(d[1]),r=parseFloat(d[2])):(console.log("SMIL TIME CLOCK SYNTAX PARSING ERROR ??"),console.log(i))}}}}}catch(o){return console.log(o),console.log("SMIL TIME CLOCK SYNTAX PARSING ERROR!"),console.log(i),0}return t*3600+n*60+r}Ws.timeStrToSeconds=N8;var Uo=A0=class{constructor(){this.initialized=!1}};Li.__decorate([(0,io.JsonProperty)("text"),Li.__metadata("design:type",String)],Uo.prototype,"Text",void 0);Li.__decorate([(0,io.JsonProperty)("audio"),Li.__metadata("design:type",String)],Uo.prototype,"Audio",void 0);Li.__decorate([(0,io.JsonProperty)("role"),(0,io.JsonConverter)(k8.JsonStringConverter),(0,io.JsonElementType)(String),Li.__metadata("design:type",Array)],Uo.prototype,"Role",void 0);Li.__decorate([(0,io.JsonProperty)("narration"),(0,io.JsonElementType)(A0),Li.__metadata("design:type",Array)],Uo.prototype,"Children",void 0);Uo=A0=Li.__decorate([(0,io.JsonObject)()],Uo);Ws.MediaOverlayNode=Uo});var U4=Y(h=>{A();"use strict";var e;h.browser=Object.create(null);e=Object.create(null);e[0]=new RegExp("(Rival IQ, rivaliq.com)");e[1]="Rival IQ";e[2]=0;e[3]=0;e[4]=0;h.browser[0]=e;e=Object.create(null);e[0]=new RegExp("(ESPN)[%20| ]+Radio/(\\d+)\\.(\\d+)\\.(\\d+) CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[1]=e;e=Object.create(null);e[0]=new RegExp("(Antenna)/(\\d+) CFNetwork");e[1]="AntennaPod";e[2]=0;e[3]=0;e[4]=0;h.browser[2]=e;e=Object.create(null);e[0]=new RegExp("(TopPodcasts)Pro/(\\d+) CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[3]=e;e=Object.create(null);e[0]=new RegExp("(MusicDownloader)Lite/(\\d+)\\.(\\d+)\\.(\\d+) CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[4]=e;e=Object.create(null);e[0]=new RegExp("^(.*)-iPad/(\\d+)\\.?(\\d+)?.?(\\d+)?.?(\\d+)? CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[5]=e;e=Object.create(null);e[0]=new RegExp("^(.*)-iPhone/(\\d+)\\.?(\\d+)?.?(\\d+)?.?(\\d+)? CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[6]=e;e=Object.create(null);e[0]=new RegExp("^(.*)/(\\d+)\\.?(\\d+)?.?(\\d+)?.?(\\d+)? CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[7]=e;e=Object.create(null);e[0]=new RegExp("(espn\\.go)");e[1]="ESPN";e[2]=0;e[3]=0;e[4]=0;h.browser[8]=e;e=Object.create(null);e[0]=new RegExp("(espnradio\\.com)");e[1]="ESPN";e[2]=0;e[3]=0;e[4]=0;h.browser[9]=e;e=Object.create(null);e[0]=new RegExp("ESPN APP$");e[1]="ESPN";e[2]=0;e[3]=0;e[4]=0;h.browser[10]=e;e=Object.create(null);e[0]=new RegExp("(audioboom\\.com)");e[1]="AudioBoom";e[2]=0;e[3]=0;e[4]=0;h.browser[11]=e;e=Object.create(null);e[0]=new RegExp(" (Rivo) RHYTHM");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[12]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)(?:/(\\d+)\\.(\\d+)\\.?(\\d+)?)?");e[1]="CFNetwork";e[2]=0;e[3]=0;e[4]=0;h.browser[13]=e;e=Object.create(null);e[0]=new RegExp("(Pingdom.com_bot_version_)(\\d+)\\.(\\d+)");e[1]="PingdomBot";e[2]=0;e[3]=0;e[4]=0;h.browser[14]=e;e=Object.create(null);e[0]=new RegExp("(PingdomTMS)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="PingdomBot";e[2]=0;e[3]=0;e[4]=0;h.browser[15]=e;e=Object.create(null);e[0]=new RegExp("(NewRelicPinger)/(\\d+)\\.(\\d+)");e[1]="NewRelicPingerBot";e[2]=0;e[3]=0;e[4]=0;h.browser[16]=e;e=Object.create(null);e[0]=new RegExp("(\\(StatusCake\\))");e[1]="StatusCakeBot";e[2]=0;e[3]=0;e[4]=0;h.browser[17]=e;e=Object.create(null);e[0]=new RegExp("(facebookexternalhit)/(\\d+)\\.(\\d+)");e[1]="FacebookBot";e[2]=0;e[3]=0;e[4]=0;h.browser[18]=e;e=Object.create(null);e[0]=new RegExp("Google.*/\\+/web/snippet");e[1]="GooglePlusBot";e[2]=0;e[3]=0;e[4]=0;h.browser[19]=e;e=Object.create(null);e[0]=new RegExp("via ggpht.com GoogleImageProxy");e[1]="GmailImageProxy";e[2]=0;e[3]=0;e[4]=0;h.browser[20]=e;e=Object.create(null);e[0]=new RegExp("(Twitterbot)/(\\d+)\\.(\\d+)");e[1]="TwitterBot";e[2]=0;e[3]=0;e[4]=0;h.browser[21]=e;e=Object.create(null);e[0]=new RegExp("/((?:Ant-)?Nutch|[A-z]+[Bb]ot|[A-z]+[Ss]pider|Axtaris|fetchurl|Isara|ShopSalad|Tailsweep)[ \\-](\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[22]=e;e=Object.create(null);e[0]=new RegExp("\\b(008|Altresium|Argus|BaiduMobaider|BoardReader|DNSGroup|DataparkSearch|EDI|Goodzer|Grub|INGRID|Infohelfer|LinkedInBot|LOOQ|Nutch|PathDefender|Peew|PostPost|Steeler|Twitterbot|VSE|WebCrunch|WebZIP|Y!J-BR[A-Z]|YahooSeeker|envolk|sproose|wminer)/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[23]=e;e=Object.create(null);e[0]=new RegExp("(MSIE) (\\d+)\\.(\\d+)([a-z]\\d?)?;.* MSIECrawler");e[1]="MSIECrawler";e[2]=0;e[3]=0;e[4]=0;h.browser[24]=e;e=Object.create(null);e[0]=new RegExp("(DAVdroid)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[25]=e;e=Object.create(null);e[0]=new RegExp("(Google-HTTP-Java-Client|Apache-HttpClient|http%20client|Python-urllib|HttpMonitor|TLSProber|WinHTTP|JNLP|okhttp)(?:[ /](\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[26]=e;e=Object.create(null);e[0]=new RegExp("(Pinterest(?:bot)?)/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?[;\\s\\(]+\\+https://www.pinterest.com/bot.html");e[1]="Pinterestbot";e[2]=0;e[3]=0;e[4]=0;h.browser[27]=e;e=Object.create(null);e[0]=new RegExp("(1470\\.net crawler|50\\.nu|8bo Crawler Bot|Aboundex|Accoona-[A-z]+-Agent|AdsBot-Google(?:-[a-z]+)?|altavista|AppEngine-Google|archive.*?\\.org_bot|archiver|Ask Jeeves|[Bb]ai[Dd]u[Ss]pider(?:-[A-Za-z]+)*|bingbot|BingPreview|blitzbot|BlogBridge|Bloglovin|BoardReader(?: [A-Za-z]+)*|boitho.com-dc|BotSeer|\\b\\w*favicon\\w*\\b|\\bYeti(?:-[a-z]+)?|Catchpoint(?: bot)?|[Cc]harlotte|Checklinks|clumboot|Comodo HTTP\\(S\\) Crawler|Comodo-Webinspector-Crawler|ConveraCrawler|CRAWL-E|CrawlConvera|Daumoa(?:-feedfetcher)?|Feed Seeker Bot|Feedbin|findlinks|Flamingo_SearchEngine|FollowSite Bot|furlbot|Genieo|gigabot|GomezAgent|gonzo1|(?:[a-zA-Z]+-)?Googlebot(?:-[a-zA-Z]+)?|Google SketchUp|grub-client|gsa-crawler|heritrix|HiddenMarket|holmes|HooWWWer|htdig|ia_archiver|ICC-Crawler|Icarus6j|ichiro(?:/mobile)?|IconSurf|IlTrovatore(?:-Setaccio)?|InfuzApp|Innovazion Crawler|InternetArchive|IP2[a-z]+Bot|jbot\\b|KaloogaBot|Kraken|Kurzor|larbin|LEIA|LesnikBot|Linguee Bot|LinkAider|LinkedInBot|Lite Bot|Llaut|lycos|Mail\\.RU_Bot|masscan|masidani_bot|Mediapartners-Google|Microsoft .*? Bot|mogimogi|mozDex|MJ12bot|msnbot(?:-media *)?|msrbot|Mtps Feed Aggregation System|netresearch|Netvibes|NewsGator[^/]*|^NING|Nutch[^/]*|Nymesis|ObjectsSearch|Orbiter|OOZBOT|PagePeeker|PagesInventory|PaxleFramework|Peeplo Screenshot Bot|PlantyNet_WebRobot|Pompos|Qwantify|Read%20Later|Reaper|RedCarpet|Retreiver|Riddler|Rival IQ|scooter|Scrapy|Scrubby|searchsight|seekbot|semanticdiscovery|Simpy|SimplePie|SEOstats|SimpleRSS|SiteCon|Slackbot-LinkExpanding|Slack-ImgProxy|Slurp|snappy|Speedy Spider|Squrl Java|Stringer|TheUsefulbot|ThumbShotsBot|Thumbshots\\.ru|Tiny Tiny RSS|TwitterBot|WhatsApp|URL2PNG|Vagabondo|VoilaBot|^vortex|Votay bot|^voyager|WASALive.Bot|Web-sniffer|WebThumb|WeSEE:[A-z]+|WhatWeb|WIRE|WordPress|Wotbox|www\\.almaden\\.ibm\\.com|Xenu(?:.s)? Link Sleuth|Xerka [A-z]+Bot|yacy(?:bot)?|Yahoo[a-z]*Seeker|Yahoo! Slurp|Yandex\\w+|YodaoBot(?:-[A-z]+)?|YottaaMonitor|Yowedo|^Zao|^Zao-Crawler|ZeBot_www\\.ze\\.bz|ZooShot|ZyBorg)(?:[ /]v?(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[28]=e;e=Object.create(null);e[0]=new RegExp("(?:\\/[A-Za-z0-9\\.]+)? *([A-Za-z0-9 \\-_\\!\\[\\]:]*(?:[Aa]rchiver|[Ii]ndexer|[Ss]craper|[Bb]ot|[Ss]pider|[Cc]rawl[a-z]*))/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[29]=e;e=Object.create(null);e[0]=new RegExp("(?:\\/[A-Za-z0-9\\.]+)? *([A-Za-z0-9 _\\!\\[\\]:]*(?:[Aa]rchiver|[Ii]ndexer|[Ss]craper|[Bb]ot|[Ss]pider|[Cc]rawl[a-z]*)) (\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[30]=e;e=Object.create(null);e[0]=new RegExp("((?:[A-z0-9]+|[A-z\\-]+ ?)?(?: the )?(?:[Ss][Pp][Ii][Dd][Ee][Rr]|[Ss]crape|[A-Za-z0-9-]*(?:[^C][^Uu])[Bb]ot|[Cc][Rr][Aa][Ww][Ll])[A-z0-9]*)(?:(?:[ /]| v)(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[31]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/(\\d+)\\.(\\d+)\\.(\\d+) \\(");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[32]=e;e=Object.create(null);e[0]=new RegExp("(Chimera|SeaMonkey|Camino)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+[a-z]*)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[33]=e;e=Object.create(null);e[0]=new RegExp("\\[FB.*;(FBAV)/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]="Facebook";e[2]=0;e[3]=0;e[4]=0;h.browser[34]=e;e=Object.create(null);e[0]=new RegExp("\\[(Pinterest)/[^\\]]+\\]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[35]=e;e=Object.create(null);e[0]=new RegExp("(Pinterest)(?: for Android(?: Tablet)?)?/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[36]=e;e=Object.create(null);e[0]=new RegExp("(PaleMoon)/(\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]="Pale Moon";e[2]=0;e[3]=0;e[4]=0;h.browser[37]=e;e=Object.create(null);e[0]=new RegExp("(Fennec)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+[a-z]*)");e[1]="Firefox Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[38]=e;e=Object.create(null);e[0]=new RegExp("(Fennec)/(\\d+)\\.(\\d+)(pre)");e[1]="Firefox Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[39]=e;e=Object.create(null);e[0]=new RegExp("(Fennec)/(\\d+)\\.(\\d+)");e[1]="Firefox Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[40]=e;e=Object.create(null);e[0]=new RegExp("(?:Mobile|Tablet);.*(Firefox)/(\\d+)\\.(\\d+)");e[1]="Firefox Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[41]=e;e=Object.create(null);e[0]=new RegExp("(Namoroka|Shiretoko|Minefield)/(\\d+)\\.(\\d+)\\.(\\d+(?:pre)?)");e[1]="Firefox ($1)";e[2]=0;e[3]=0;e[4]=0;h.browser[42]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)(a\\d+[a-z]*)");e[1]="Firefox Alpha";e[2]=0;e[3]=0;e[4]=0;h.browser[43]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)(b\\d+[a-z]*)");e[1]="Firefox Beta";e[2]=0;e[3]=0;e[4]=0;h.browser[44]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)-(?:\\d+\\.\\d+)?/(\\d+)\\.(\\d+)(a\\d+[a-z]*)");e[1]="Firefox Alpha";e[2]=0;e[3]=0;e[4]=0;h.browser[45]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)-(?:\\d+\\.\\d+)?/(\\d+)\\.(\\d+)(b\\d+[a-z]*)");e[1]="Firefox Beta";e[2]=0;e[3]=0;e[4]=0;h.browser[46]=e;e=Object.create(null);e[0]=new RegExp("(Namoroka|Shiretoko|Minefield)/(\\d+)\\.(\\d+)([ab]\\d+[a-z]*)?");e[1]="Firefox ($1)";e[2]=0;e[3]=0;e[4]=0;h.browser[47]=e;e=Object.create(null);e[0]=new RegExp("(Firefox).*Tablet browser (\\d+)\\.(\\d+)\\.(\\d+)");e[1]="MicroB";e[2]=0;e[3]=0;e[4]=0;h.browser[48]=e;e=Object.create(null);e[0]=new RegExp("(MozillaDeveloperPreview)/(\\d+)\\.(\\d+)([ab]\\d+[a-z]*)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[49]=e;e=Object.create(null);e[0]=new RegExp("(FxiOS)/(\\d+)\\.(\\d+)(\\.(\\d+))?(\\.(\\d+))?");e[1]="Firefox iOS";e[2]=0;e[3]=0;e[4]=0;h.browser[50]=e;e=Object.create(null);e[0]=new RegExp("(Flock)/(\\d+)\\.(\\d+)(b\\d+?)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[51]=e;e=Object.create(null);e[0]=new RegExp("(RockMelt)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[52]=e;e=Object.create(null);e[0]=new RegExp("(Navigator)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Netscape";e[2]=0;e[3]=0;e[4]=0;h.browser[53]=e;e=Object.create(null);e[0]=new RegExp("(Navigator)/(\\d+)\\.(\\d+)([ab]\\d+)");e[1]="Netscape";e[2]=0;e[3]=0;e[4]=0;h.browser[54]=e;e=Object.create(null);e[0]=new RegExp("(Netscape6)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+)?");e[1]="Netscape";e[2]=0;e[3]=0;e[4]=0;h.browser[55]=e;e=Object.create(null);e[0]=new RegExp("(MyIBrow)/(\\d+)\\.(\\d+)");e[1]="My Internet Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[56]=e;e=Object.create(null);e[0]=new RegExp("(UC? ?Browser|UCWEB|U3)[ /]?(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="UC Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[57]=e;e=Object.create(null);e[0]=new RegExp("(Opera Tablet).*Version/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[58]=e;e=Object.create(null);e[0]=new RegExp("(Opera Mini)(?:/att)?/?(\\d+)?(?:\\.(\\d+))?(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[59]=e;e=Object.create(null);e[0]=new RegExp("(Opera)/.+Opera Mobi.+Version/(\\d+)\\.(\\d+)");e[1]="Opera Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[60]=e;e=Object.create(null);e[0]=new RegExp("(Opera)/(\\d+)\\.(\\d+).+Opera Mobi");e[1]="Opera Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[61]=e;e=Object.create(null);e[0]=new RegExp("Opera Mobi.+(Opera)(?:/|\\s+)(\\d+)\\.(\\d+)");e[1]="Opera Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[62]=e;e=Object.create(null);e[0]=new RegExp("Opera Mobi");e[1]="Opera Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[63]=e;e=Object.create(null);e[0]=new RegExp("(Opera)/9.80.*Version/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[64]=e;e=Object.create(null);e[0]=new RegExp("(?:Mobile Safari).*(OPR)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Opera Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[65]=e;e=Object.create(null);e[0]=new RegExp("(?:Chrome).*(OPR)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Opera";e[2]=0;e[3]=0;e[4]=0;h.browser[66]=e;e=Object.create(null);e[0]=new RegExp("(Coast)/(\\d+).(\\d+).(\\d+)");e[1]="Opera Coast";e[2]=0;e[3]=0;e[4]=0;h.browser[67]=e;e=Object.create(null);e[0]=new RegExp("(OPiOS)/(\\d+).(\\d+).(\\d+)");e[1]="Opera Mini";e[2]=0;e[3]=0;e[4]=0;h.browser[68]=e;e=Object.create(null);e[0]=new RegExp("Chrome/.+( MMS)/(\\d+).(\\d+).(\\d+)");e[1]="Opera Neon";e[2]=0;e[3]=0;e[4]=0;h.browser[69]=e;e=Object.create(null);e[0]=new RegExp("(hpw|web)OS/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="webOS Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[70]=e;e=Object.create(null);e[0]=new RegExp("(luakit)");e[1]="LuaKit";e[2]=0;e[3]=0;e[4]=0;h.browser[71]=e;e=Object.create(null);e[0]=new RegExp("(Snowshoe)/(\\d+)\\.(\\d+).(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[72]=e;e=Object.create(null);e[0]=new RegExp("Gecko/\\d+ (Lightning)/(\\d+)\\.(\\d+)\\.?((?:[ab]?\\d+[a-z]*)|(?:\\d*))");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[73]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)\\.(\\d+(?:pre)?) \\(Swiftfox\\)");e[1]="Swiftfox";e[2]=0;e[3]=0;e[4]=0;h.browser[74]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)([ab]\\d+[a-z]*)? \\(Swiftfox\\)");e[1]="Swiftfox";e[2]=0;e[3]=0;e[4]=0;h.browser[75]=e;e=Object.create(null);e[0]=new RegExp("(rekonq)/(\\d+)\\.(\\d+)\\.?(\\d+)? Safari");e[1]="Rekonq";e[2]=0;e[3]=0;e[4]=0;h.browser[76]=e;e=Object.create(null);e[0]=new RegExp("rekonq");e[1]="Rekonq";e[2]=0;e[3]=0;e[4]=0;h.browser[77]=e;e=Object.create(null);e[0]=new RegExp("(conkeror|Conkeror)/(\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]="Conkeror";e[2]=0;e[3]=0;e[4]=0;h.browser[78]=e;e=Object.create(null);e[0]=new RegExp("(konqueror)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Konqueror";e[2]=0;e[3]=0;e[4]=0;h.browser[79]=e;e=Object.create(null);e[0]=new RegExp("(WeTab)-Browser");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[80]=e;e=Object.create(null);e[0]=new RegExp("(Comodo_Dragon)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Comodo Dragon";e[2]=0;e[3]=0;e[4]=0;h.browser[81]=e;e=Object.create(null);e[0]=new RegExp("(Symphony) (\\d+).(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[82]=e;e=Object.create(null);e[0]=new RegExp("PLAYSTATION 3.+WebKit");e[1]="NetFront NX";e[2]=0;e[3]=0;e[4]=0;h.browser[83]=e;e=Object.create(null);e[0]=new RegExp("PLAYSTATION 3");e[1]="NetFront";e[2]=0;e[3]=0;e[4]=0;h.browser[84]=e;e=Object.create(null);e[0]=new RegExp("(PlayStation Portable)");e[1]="NetFront";e[2]=0;e[3]=0;e[4]=0;h.browser[85]=e;e=Object.create(null);e[0]=new RegExp("(PlayStation Vita)");e[1]="NetFront NX";e[2]=0;e[3]=0;e[4]=0;h.browser[86]=e;e=Object.create(null);e[0]=new RegExp("AppleWebKit.+ (NX)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="NetFront NX";e[2]=0;e[3]=0;e[4]=0;h.browser[87]=e;e=Object.create(null);e[0]=new RegExp("(Nintendo 3DS)");e[1]="NetFront NX";e[2]=0;e[3]=0;e[4]=0;h.browser[88]=e;e=Object.create(null);e[0]=new RegExp("(Silk)/(\\d+)\\.(\\d+)(?:\\.([0-9\\-]+))?");e[1]="Amazon Silk";e[2]=0;e[3]=0;e[4]=0;h.browser[89]=e;e=Object.create(null);e[0]=new RegExp("(Puffin)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[90]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone .*(Edge)/(\\d+)\\.(\\d+)");e[1]="Edge Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[91]=e;e=Object.create(null);e[0]=new RegExp("(SamsungBrowser)/(\\d+)\\.(\\d+)");e[1]="Samsung Internet";e[2]=0;e[3]=0;e[4]=0;h.browser[92]=e;e=Object.create(null);e[0]=new RegExp("(SznProhlizec)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Seznam.cz";e[2]=0;e[3]=0;e[4]=0;h.browser[93]=e;e=Object.create(null);e[0]=new RegExp("(coc_coc_browser)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Coc Coc";e[2]=0;e[3]=0;e[4]=0;h.browser[94]=e;e=Object.create(null);e[0]=new RegExp("(baidubrowser)[/\\s](\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]="Baidu Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[95]=e;e=Object.create(null);e[0]=new RegExp("(FlyFlow)/(\\d+)\\.(\\d+)");e[1]="Baidu Explorer";e[2]=0;e[3]=0;e[4]=0;h.browser[96]=e;e=Object.create(null);e[0]=new RegExp("(MxBrowser)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Maxthon";e[2]=0;e[3]=0;e[4]=0;h.browser[97]=e;e=Object.create(null);e[0]=new RegExp("(Crosswalk)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[98]=e;e=Object.create(null);e[0]=new RegExp("; wv\\).+(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Chrome Mobile WebView";e[2]=0;e[3]=0;e[4]=0;h.browser[99]=e;e=Object.create(null);e[0]=new RegExp("(CrMo)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Chrome Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[100]=e;e=Object.create(null);e[0]=new RegExp("(CriOS)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Chrome Mobile iOS";e[2]=0;e[3]=0;e[4]=0;h.browser[101]=e;e=Object.create(null);e[0]=new RegExp("(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+) Mobile(?:[ /]|$)");e[1]="Chrome Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[102]=e;e=Object.create(null);e[0]=new RegExp(" Mobile .*(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Chrome Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[103]=e;e=Object.create(null);e[0]=new RegExp("(chromeframe)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Chrome Frame";e[2]=0;e[3]=0;e[4]=0;h.browser[104]=e;e=Object.create(null);e[0]=new RegExp("(SLP Browser)/(\\d+)\\.(\\d+)");e[1]="Tizen Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[105]=e;e=Object.create(null);e[0]=new RegExp("(SE 2\\.X) MetaSr (\\d+)\\.(\\d+)");e[1]="Sogou Explorer";e[2]=0;e[3]=0;e[4]=0;h.browser[106]=e;e=Object.create(null);e[0]=new RegExp("(MQQBrowser/Mini)(?:(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]="QQ Browser Mini";e[2]=0;e[3]=0;e[4]=0;h.browser[107]=e;e=Object.create(null);e[0]=new RegExp("(MQQBrowser)(?:/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]="QQ Browser Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[108]=e;e=Object.create(null);e[0]=new RegExp("(QQBrowser)(?:/(\\d+)(?:\\.(\\d+)\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]="QQ Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[109]=e;e=Object.create(null);e[0]=new RegExp("(Rackspace Monitoring)/(\\d+)\\.(\\d+)");e[1]="RackspaceBot";e[2]=0;e[3]=0;e[4]=0;h.browser[110]=e;e=Object.create(null);e[0]=new RegExp("(PyAMF)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[111]=e;e=Object.create(null);e[0]=new RegExp("(YaBrowser)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Yandex Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[112]=e;e=Object.create(null);e[0]=new RegExp("(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+).* MRCHROME");e[1]="Mail.ru Chromium Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[113]=e;e=Object.create(null);e[0]=new RegExp("(AOL) (\\d+)\\.(\\d+); AOLBuild (\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[114]=e;e=Object.create(null);e[0]=new RegExp("(PodCruncher|Downcast)[ /]?(\\d+)\\.?(\\d+)?\\.?(\\d+)?\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[115]=e;e=Object.create(null);e[0]=new RegExp(" (BoxNotes)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[116]=e;e=Object.create(null);e[0]=new RegExp("(Slack_SSB)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Slack Desktop Client";e[2]=0;e[3]=0;e[4]=0;h.browser[117]=e;e=Object.create(null);e[0]=new RegExp("(HipChat)/?(\\d+)?");e[1]="HipChat Desktop Client";e[2]=0;e[3]=0;e[4]=0;h.browser[118]=e;e=Object.create(null);e[0]=new RegExp("\\b(MobileIron|FireWeb|Jasmine|ANTGalio|Midori|Fresco|Lobo|PaleMoon|Maxthon|Lynx|OmniWeb|Dillo|Camino|Demeter|Fluid|Fennec|Epiphany|Shiira|Sunrise|Spotify|Flock|Netscape|Lunascape|WebPilot|NetFront|Netfront|Konqueror|SeaMonkey|Kazehakase|Vienna|Iceape|Iceweasel|IceWeasel|Iron|K-Meleon|Sleipnir|Galeon|GranParadiso|Opera Mini|iCab|NetNewsWire|ThunderBrowse|Iris|UP\\.Browser|Bunjalloo|Google Earth|Raven for Mac|Openwave|MacOutlook|Electron)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[119]=e;e=Object.create(null);e[0]=new RegExp("Microsoft Office Outlook 12\\.\\d+\\.\\d+|MSOffice 12");e[1]="Outlook";e[2]="2007";e[3]=0;e[4]=0;h.browser[120]=e;e=Object.create(null);e[0]=new RegExp("Microsoft Outlook 14\\.\\d+\\.\\d+|MSOffice 14");e[1]="Outlook";e[2]="2010";e[3]=0;e[4]=0;h.browser[121]=e;e=Object.create(null);e[0]=new RegExp("Microsoft Outlook 15\\.\\d+\\.\\d+");e[1]="Outlook";e[2]="2013";e[3]=0;e[4]=0;h.browser[122]=e;e=Object.create(null);e[0]=new RegExp("Microsoft Outlook (?:Mail )?16\\.\\d+\\.\\d+");e[1]="Outlook";e[2]="2016";e[3]=0;e[4]=0;h.browser[123]=e;e=Object.create(null);e[0]=new RegExp("Outlook-Express\\/7\\.0.*");e[1]="Windows Live Mail";e[2]=0;e[3]=0;e[4]=0;h.browser[124]=e;e=Object.create(null);e[0]=new RegExp("(Airmail) (\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[125]=e;e=Object.create(null);e[0]=new RegExp("(Thunderbird)/(\\d+)\\.(\\d+)(?:\\.(\\d+(?:pre)?))?");e[1]="Thunderbird";e[2]=0;e[3]=0;e[4]=0;h.browser[126]=e;e=Object.create(null);e[0]=new RegExp("(Postbox)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Postbox";e[2]=0;e[3]=0;e[4]=0;h.browser[127]=e;e=Object.create(null);e[0]=new RegExp("(Barca(?:Pro)?)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Barca";e[2]=0;e[3]=0;e[4]=0;h.browser[128]=e;e=Object.create(null);e[0]=new RegExp("(Lotus-Notes)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Lotus Notes";e[2]=0;e[3]=0;e[4]=0;h.browser[129]=e;e=Object.create(null);e[0]=new RegExp("(Vivaldi)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[130]=e;e=Object.create(null);e[0]=new RegExp("(Edge)/(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[131]=e;e=Object.create(null);e[0]=new RegExp("(brave)/(\\d+)\\.(\\d+)\\.(\\d+) Chrome");e[1]="Brave";e[2]=0;e[3]=0;e[4]=0;h.browser[132]=e;e=Object.create(null);e[0]=new RegExp("(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)[\\d.]* Iron[^/]");e[1]="Iron";e[2]=0;e[3]=0;e[4]=0;h.browser[133]=e;e=Object.create(null);e[0]=new RegExp("\\b(Dolphin)(?: |HDCN/|/INT\\-)(\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[134]=e;e=Object.create(null);e[0]=new RegExp("(HeadlessChrome)(?:/(\\d+)\\.(\\d+)\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[135]=e;e=Object.create(null);e[0]=new RegExp("(Evolution)/(\\d+)\\.(\\d+)\\.(\\d+\\.\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[136]=e;e=Object.create(null);e[0]=new RegExp("(RCM CardDAV plugin)/(\\d+)\\.(\\d+)\\.(\\d+(?:-dev)?)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[137]=e;e=Object.create(null);e[0]=new RegExp("(bingbot|Bolt|AdobeAIR|Jasmine|IceCat|Skyfire|Midori|Maxthon|Lynx|Arora|IBrowse|Dillo|Camino|Shiira|Fennec|Phoenix|Flock|Netscape|Lunascape|Epiphany|WebPilot|Opera Mini|Opera|NetFront|Netfront|Konqueror|Googlebot|SeaMonkey|Kazehakase|Vienna|Iceape|Iceweasel|IceWeasel|Iron|K-Meleon|Sleipnir|Galeon|GranParadiso|iCab|iTunes|MacAppStore|NetNewsWire|Space Bison|Stainless|Orca|Dolfin|BOLT|Minimo|Tizen Browser|Polaris|Abrowser|Planetweb|ICE Browser|mDolphin|qutebrowser|Otter|QupZilla|MailBar|kmail2|YahooMobileMail|ExchangeWebServices|ExchangeServicesClient|Dragon|Outlook-iOS-Android)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[138]=e;e=Object.create(null);e[0]=new RegExp("(Chromium|Chrome)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[139]=e;e=Object.create(null);e[0]=new RegExp("(IEMobile)[ /](\\d+)\\.(\\d+)");e[1]="IE Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[140]=e;e=Object.create(null);e[0]=new RegExp("(BacaBerita App)\\/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[141]=e;e=Object.create(null);e[0]=new RegExp("^(bPod|Pocket Casts|Player FM)$");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[142]=e;e=Object.create(null);e[0]=new RegExp("^(AlexaMediaPlayer|VLC)/(\\d+)\\.(\\d+)\\.([^.\\s]+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[143]=e;e=Object.create(null);e[0]=new RegExp("^(AntennaPod|WMPlayer|Zune|Podkicker|Radio|ExoPlayerDemo|Overcast|PocketTunes|NSPlayer|okhttp|DoggCatcher|QuickNews|QuickTime|Peapod|Podcasts|GoldenPod|VLC|Spotify|Miro|MediaGo|Juice|iPodder|gPodder|Banshee)/(\\d+)\\.(\\d+)\\.?(\\d+)?\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[144]=e;e=Object.create(null);e[0]=new RegExp("^(Peapod|Liferea)/([^.\\s]+)\\.([^.\\s]+)?\\.?([^.\\s]+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[145]=e;e=Object.create(null);e[0]=new RegExp("^(bPod|Player FM) BMID/(\\S+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[146]=e;e=Object.create(null);e[0]=new RegExp("^(Podcast ?Addict)/v(\\d+) ");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[147]=e;e=Object.create(null);e[0]=new RegExp("^(Podcast ?Addict) ");e[1]="PodcastAddict";e[2]=0;e[3]=0;e[4]=0;h.browser[148]=e;e=Object.create(null);e[0]=new RegExp("(Replay) AV");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[149]=e;e=Object.create(null);e[0]=new RegExp("(VOX) Music Player");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[150]=e;e=Object.create(null);e[0]=new RegExp("(CITA) RSS Aggregator/(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[151]=e;e=Object.create(null);e[0]=new RegExp("(Pocket Casts)$");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[152]=e;e=Object.create(null);e[0]=new RegExp("(Player FM)$");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[153]=e;e=Object.create(null);e[0]=new RegExp("(LG Player|Doppler|FancyMusic|MediaMonkey|Clementine) (\\d+)\\.(\\d+)\\.?([^.\\s]+)?\\.?([^.\\s]+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[154]=e;e=Object.create(null);e[0]=new RegExp("(philpodder)/(\\d+)\\.(\\d+)\\.?([^.\\s]+)?\\.?([^.\\s]+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[155]=e;e=Object.create(null);e[0]=new RegExp("(Player FM|Pocket Casts|DoggCatcher|Spotify|MediaMonkey|MediaGo|BashPodder)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[156]=e;e=Object.create(null);e[0]=new RegExp("(QuickTime)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[157]=e;e=Object.create(null);e[0]=new RegExp("(Kinoma)(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[158]=e;e=Object.create(null);e[0]=new RegExp("(Fancy) Cloud Music (\\d+)\\.(\\d+)");e[1]="FancyMusic";e[2]=0;e[3]=0;e[4]=0;h.browser[159]=e;e=Object.create(null);e[0]=new RegExp("EspnDownloadManager");e[1]="ESPN";e[2]=0;e[3]=0;e[4]=0;h.browser[160]=e;e=Object.create(null);e[0]=new RegExp("(ESPN) Radio (\\d+)\\.(\\d+)\\.?(\\d+)? ?[rv:]?(\\d+)? ");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[161]=e;e=Object.create(null);e[0]=new RegExp("(podracer|jPodder) v ?(\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[162]=e;e=Object.create(null);e[0]=new RegExp("(ZDM)/(\\d+)\\.(\\d+)[; ]?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[163]=e;e=Object.create(null);e[0]=new RegExp("(Zune|BeyondPod) (\\d+)\\.?(\\d+)?[\\);]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[164]=e;e=Object.create(null);e[0]=new RegExp("(WMPlayer)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[165]=e;e=Object.create(null);e[0]=new RegExp("^(Lavf)");e[1]="WMPlayer";e[2]=0;e[3]=0;e[4]=0;h.browser[166]=e;e=Object.create(null);e[0]=new RegExp("^(RSSRadio)[ /]?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[167]=e;e=Object.create(null);e[0]=new RegExp("(RSS_Radio) (\\d+)\\.(\\d+)");e[1]="RSSRadio";e[2]=0;e[3]=0;e[4]=0;h.browser[168]=e;e=Object.create(null);e[0]=new RegExp("(Podkicker) \\S+/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Podkicker";e[2]=0;e[3]=0;e[4]=0;h.browser[169]=e;e=Object.create(null);e[0]=new RegExp("^(HTC) Streaming Player \\S+ / \\S+ / \\S+ / (\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[170]=e;e=Object.create(null);e[0]=new RegExp("^(Stitcher)/iOS");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[171]=e;e=Object.create(null);e[0]=new RegExp("^(Stitcher)/Android");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[172]=e;e=Object.create(null);e[0]=new RegExp("^(VLC) .*version (\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[173]=e;e=Object.create(null);e[0]=new RegExp(" (VLC) for");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[174]=e;e=Object.create(null);e[0]=new RegExp("(vlc)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="VLC";e[2]=0;e[3]=0;e[4]=0;h.browser[175]=e;e=Object.create(null);e[0]=new RegExp("^(foobar)\\S+/([^.\\s]+)\\.([^.\\s]+)?\\.?([^.\\s]+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[176]=e;e=Object.create(null);e[0]=new RegExp("^(Clementine)\\S+ ([^.\\s]+)\\.([^.\\s]+)?\\.?([^.\\s]+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[177]=e;e=Object.create(null);e[0]=new RegExp("(amarok)/([^.\\s]+)\\.([^.\\s]+)?\\.?([^.\\s]+)?");e[1]="Amarok";e[2]=0;e[3]=0;e[4]=0;h.browser[178]=e;e=Object.create(null);e[0]=new RegExp("(Custom)-Feed Reader");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[179]=e;e=Object.create(null);e[0]=new RegExp("(iRider|Crazy Browser|SkipStone|iCab|Lunascape|Sleipnir|Maemo Browser) (\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[180]=e;e=Object.create(null);e[0]=new RegExp("(iCab|Lunascape|Opera|Android|Jasmine|Polaris|Microsoft SkyDriveSync|The Bat!) (\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[181]=e;e=Object.create(null);e[0]=new RegExp("(Kindle)/(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[182]=e;e=Object.create(null);e[0]=new RegExp("(Android) Donut");e[1]=0;e[2]="1";e[3]="2";e[4]=0;h.browser[183]=e;e=Object.create(null);e[0]=new RegExp("(Android) Eclair");e[1]=0;e[2]="2";e[3]="1";e[4]=0;h.browser[184]=e;e=Object.create(null);e[0]=new RegExp("(Android) Froyo");e[1]=0;e[2]="2";e[3]="2";e[4]=0;h.browser[185]=e;e=Object.create(null);e[0]=new RegExp("(Android) Gingerbread");e[1]=0;e[2]="2";e[3]="3";e[4]=0;h.browser[186]=e;e=Object.create(null);e[0]=new RegExp("(Android) Honeycomb");e[1]=0;e[2]="3";e[3]=0;e[4]=0;h.browser[187]=e;e=Object.create(null);e[0]=new RegExp("(MSIE) (\\d+)\\.(\\d+).*XBLWP7");e[1]="IE Large Screen";e[2]=0;e[3]=0;e[4]=0;h.browser[188]=e;e=Object.create(null);e[0]=new RegExp("(Nextcloud)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[189]=e;e=Object.create(null);e[0]=new RegExp("(mirall)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[190]=e;e=Object.create(null);e[0]=new RegExp("(ownCloud-android)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Owncloud";e[2]=0;e[3]=0;e[4]=0;h.browser[191]=e;e=Object.create(null);e[0]=new RegExp("(Obigo)InternetBrowser");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[192]=e;e=Object.create(null);e[0]=new RegExp("(Obigo)\\-Browser");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[193]=e;e=Object.create(null);e[0]=new RegExp("(Obigo|OBIGO)[^\\d]*(\\d+)(?:.(\\d+))?");e[1]="Obigo";e[2]=0;e[3]=0;e[4]=0;h.browser[194]=e;e=Object.create(null);e[0]=new RegExp("(MAXTHON|Maxthon) (\\d+)\\.(\\d+)");e[1]="Maxthon";e[2]=0;e[3]=0;e[4]=0;h.browser[195]=e;e=Object.create(null);e[0]=new RegExp("(Maxthon|MyIE2|Uzbl|Shiira)");e[1]=0;e[2]="0";e[3]=0;e[4]=0;h.browser[196]=e;e=Object.create(null);e[0]=new RegExp("(BrowseX) \\((\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[197]=e;e=Object.create(null);e[0]=new RegExp("(NCSA_Mosaic)/(\\d+)\\.(\\d+)");e[1]="NCSA Mosaic";e[2]=0;e[3]=0;e[4]=0;h.browser[198]=e;e=Object.create(null);e[0]=new RegExp("(POLARIS)/(\\d+)\\.(\\d+)");e[1]="Polaris";e[2]=0;e[3]=0;e[4]=0;h.browser[199]=e;e=Object.create(null);e[0]=new RegExp("(Embider)/(\\d+)\\.(\\d+)");e[1]="Polaris";e[2]=0;e[3]=0;e[4]=0;h.browser[200]=e;e=Object.create(null);e[0]=new RegExp("(BonEcho)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+)?");e[1]="Bon Echo";e[2]=0;e[3]=0;e[4]=0;h.browser[201]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPhone|iPad).+Version/(\\d+)\\.(\\d+)(?:\\.(\\d+))?.*[ +]Safari");e[1]="Mobile Safari";e[2]=0;e[3]=0;e[4]=0;h.browser[202]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+))?.* AppleNews\\/\\d+\\.\\d+\\.\\d+?");e[1]="Mobile Safari UI/WKWebView";e[2]=0;e[3]=0;e[4]=0;h.browser[203]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPhone|iPad).+Version/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Mobile Safari UI/WKWebView";e[2]=0;e[3]=0;e[4]=0;h.browser[204]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+))?.*Mobile.*[ +]Safari");e[1]="Mobile Safari";e[2]=0;e[3]=0;e[4]=0;h.browser[205]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+))?.*Mobile");e[1]="Mobile Safari UI/WKWebView";e[2]=0;e[3]=0;e[4]=0;h.browser[206]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPhone|iPad).* Safari");e[1]="Mobile Safari";e[2]=0;e[3]=0;e[4]=0;h.browser[207]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPhone|iPad)");e[1]="Mobile Safari UI/WKWebView";e[2]=0;e[3]=0;e[4]=0;h.browser[208]=e;e=Object.create(null);e[0]=new RegExp("(AvantGo) (\\d+).(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[209]=e;e=Object.create(null);e[0]=new RegExp("(OneBrowser)/(\\d+).(\\d+)");e[1]="ONE Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[210]=e;e=Object.create(null);e[0]=new RegExp("(Avant)");e[1]=0;e[2]="1";e[3]=0;e[4]=0;h.browser[211]=e;e=Object.create(null);e[0]=new RegExp("(QtCarBrowser)");e[1]=0;e[2]="1";e[3]=0;e[4]=0;h.browser[212]=e;e=Object.create(null);e[0]=new RegExp("^(iBrowser/Mini)(\\d+).(\\d+)");e[1]="iBrowser Mini";e[2]=0;e[3]=0;e[4]=0;h.browser[213]=e;e=Object.create(null);e[0]=new RegExp("^(iBrowser|iRAPP)/(\\d+).(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[214]=e;e=Object.create(null);e[0]=new RegExp("^(Nokia)");e[1]="Nokia Services (WAP) Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[215]=e;e=Object.create(null);e[0]=new RegExp("(NokiaBrowser)/(\\d+)\\.(\\d+).(\\d+)\\.(\\d+)");e[1]="Nokia Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[216]=e;e=Object.create(null);e[0]=new RegExp("(NokiaBrowser)/(\\d+)\\.(\\d+).(\\d+)");e[1]="Nokia Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[217]=e;e=Object.create(null);e[0]=new RegExp("(NokiaBrowser)/(\\d+)\\.(\\d+)");e[1]="Nokia Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[218]=e;e=Object.create(null);e[0]=new RegExp("(BrowserNG)/(\\d+)\\.(\\d+).(\\d+)");e[1]="Nokia Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[219]=e;e=Object.create(null);e[0]=new RegExp("(Series60)/5\\.0");e[1]="Nokia Browser";e[2]="7";e[3]="0";e[4]=0;h.browser[220]=e;e=Object.create(null);e[0]=new RegExp("(Series60)/(\\d+)\\.(\\d+)");e[1]="Nokia OSS Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[221]=e;e=Object.create(null);e[0]=new RegExp("(S40OviBrowser)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Ovi Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[222]=e;e=Object.create(null);e[0]=new RegExp("(Nokia)[EN]?(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[223]=e;e=Object.create(null);e[0]=new RegExp("(PlayBook).+RIM Tablet OS (\\d+)\\.(\\d+)\\.(\\d+)");e[1]="BlackBerry WebKit";e[2]=0;e[3]=0;e[4]=0;h.browser[224]=e;e=Object.create(null);e[0]=new RegExp("(Black[bB]erry|BB10).+Version/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="BlackBerry WebKit";e[2]=0;e[3]=0;e[4]=0;h.browser[225]=e;e=Object.create(null);e[0]=new RegExp("(Black[bB]erry)\\s?(\\d+)");e[1]="BlackBerry";e[2]=0;e[3]=0;e[4]=0;h.browser[226]=e;e=Object.create(null);e[0]=new RegExp("(OmniWeb)/v(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[227]=e;e=Object.create(null);e[0]=new RegExp("(Blazer)/(\\d+)\\.(\\d+)");e[1]="Palm Blazer";e[2]=0;e[3]=0;e[4]=0;h.browser[228]=e;e=Object.create(null);e[0]=new RegExp("(Pre)/(\\d+)\\.(\\d+)");e[1]="Palm Pre";e[2]=0;e[3]=0;e[4]=0;h.browser[229]=e;e=Object.create(null);e[0]=new RegExp("(ELinks)/(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[230]=e;e=Object.create(null);e[0]=new RegExp("(ELinks) \\((\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[231]=e;e=Object.create(null);e[0]=new RegExp("(Links) \\((\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[232]=e;e=Object.create(null);e[0]=new RegExp("(QtWeb) Internet Browser/(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[233]=e;e=Object.create(null);e[0]=new RegExp("(PhantomJS)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[234]=e;e=Object.create(null);e[0]=new RegExp("(AppleWebKit)/(\\d+)\\.?(\\d+)?\\+ .* Safari");e[1]="WebKit Nightly";e[2]=0;e[3]=0;e[4]=0;h.browser[235]=e;e=Object.create(null);e[0]=new RegExp("(Version)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?.*Safari/");e[1]="Safari";e[2]=0;e[3]=0;e[4]=0;h.browser[236]=e;e=Object.create(null);e[0]=new RegExp("(Safari)/\\d+");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[237]=e;e=Object.create(null);e[0]=new RegExp("(OLPC)/Update(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[238]=e;e=Object.create(null);e[0]=new RegExp("(OLPC)/Update()\\.(\\d+)");e[1]=0;e[2]="0";e[3]=0;e[4]=0;h.browser[239]=e;e=Object.create(null);e[0]=new RegExp("(SEMC\\-Browser)/(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[240]=e;e=Object.create(null);e[0]=new RegExp("(Teleca)");e[1]="Teleca Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[241]=e;e=Object.create(null);e[0]=new RegExp("(Phantom)/V(\\d+)\\.(\\d+)");e[1]="Phantom Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[242]=e;e=Object.create(null);e[0]=new RegExp("(Trident)/(7)\\.(0)");e[1]="IE";e[2]="11";e[3]=0;e[4]=0;h.browser[243]=e;e=Object.create(null);e[0]=new RegExp("(Trident)/(6)\\.(0)");e[1]="IE";e[2]="10";e[3]=0;e[4]=0;h.browser[244]=e;e=Object.create(null);e[0]=new RegExp("(Trident)/(5)\\.(0)");e[1]="IE";e[2]="9";e[3]=0;e[4]=0;h.browser[245]=e;e=Object.create(null);e[0]=new RegExp("(Trident)/(4)\\.(0)");e[1]="IE";e[2]="8";e[3]=0;e[4]=0;h.browser[246]=e;e=Object.create(null);e[0]=new RegExp("(Espial)/(\\d+)(?:\\.(\\d+))?(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[247]=e;e=Object.create(null);e[0]=new RegExp("(AppleWebKit)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Apple Mail";e[2]=0;e[3]=0;e[4]=0;h.browser[248]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[249]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)(pre|[ab]\\d+[a-z]*)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[250]=e;e=Object.create(null);e[0]=new RegExp("([MS]?IE) (\\d+)\\.(\\d+)");e[1]="IE";e[2]=0;e[3]=0;e[4]=0;h.browser[251]=e;e=Object.create(null);e[0]=new RegExp("(python-requests)/(\\d+)\\.(\\d+)");e[1]="Python Requests";e[2]=0;e[3]=0;e[4]=0;h.browser[252]=e;e=Object.create(null);e[0]=new RegExp("\\b(Windows-Update-Agent|Microsoft-CryptoAPI|SophosUpdateManager|SophosAgent|Debian APT-HTTP|Ubuntu APT-HTTP|libcurl-agent|libwww-perl|urlgrabber|curl|Wget|OpenBSD ftp|jupdate)(?:[ /](\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[253]=e;e=Object.create(null);e[0]=new RegExp("(Java)[/ ]{0,1}\\d+\\.(\\d+)\\.(\\d+)[_-]*([a-zA-Z0-9]+)*");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[254]=e;e=Object.create(null);e[0]=new RegExp("^(Roku)/DVP-(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[255]=e;e=Object.create(null);e[0]=new RegExp("(Kurio)\\/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Kurio App";e[2]=0;e[3]=0;e[4]=0;h.browser[256]=e;e=Object.create(null);e[0]=new RegExp("^(Box(?: Sync)?)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[257]=e;e=Object.create(null);e[0]=new RegExp("(Wget)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+[a-z]*)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[258]=e;e=Object.create(null);e[0]=new RegExp("(curl)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="cURL";e[2]=0;e[3]=0;e[4]=0;h.browser[259]=e;h.browser.length=260;h.device=Object.create(null);e=Object.create(null);e[0]=new RegExp("(Rival IQ, rivaliq.com)");e[1]="Spider";e[2]=0;e[3]=0;e[4]=0;h.device[0]=e;e=Object.create(null);e[0]=new RegExp("(?:(?:iPhone|Windows CE|Windows Phone|Android).*(?:(?:Bot|Yeti)-Mobile|YRSpider|BingPreview|bots?/\\d|(?:bot|spider)\\.html)|AdsBot-Google-Mobile.*iPhone)");e[1]="Spider";e[2]=0;e[3]=0;e[4]=0;h.device[1]=e;e=Object.create(null);e[0]=new RegExp("(?:DoCoMo|\\bMOT\\b|\\bLG\\b|Nokia|Samsung|SonyEricsson).*(?:(?:Bot|Yeti)-Mobile|bots?/\\d|(?:bot|crawler)\\.html|(?:jump|google|Wukong)bot|ichiro/mobile|/spider|YahooSeeker)");e[1]="Spider";e[2]=0;e[3]=0;e[4]=0;h.device[2]=e;e=Object.create(null);e[0]=new RegExp("\\bSmartWatch *\\( *([^;]+) *; *([^;]+) *;");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[3]=e;e=Object.create(null);e[0]=new RegExp("Android Application[^\\-]+ - (Sony) ?(Ericsson)? (.+) \\w+ - ");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[4]=e;e=Object.create(null);e[0]=new RegExp("Android Application[^\\-]+ - (?:HTC|HUAWEI|LGE|LENOVO|MEDION|TCT) (HTC|HUAWEI|LG|LENOVO|MEDION|ALCATEL)[ _\\-](.+) \\w+ - ");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[5]=e;e=Object.create(null);e[0]=new RegExp("Android Application[^\\-]+ - ([^ ]+) (.+) \\w+ - ");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[6]=e;e=Object.create(null);e[0]=new RegExp("; *([BLRQ]C\\d{4}[A-Z]+) +Build/");e[1]="3Q $1";e[2]=0;e[3]=0;e[4]=0;h.device[7]=e;e=Object.create(null);e[0]=new RegExp("; *(?:3Q_)([^;/]+) +Build");e[1]="3Q $1";e[2]=0;e[3]=0;e[4]=0;h.device[8]=e;e=Object.create(null);e[0]=new RegExp("Android [34].*; *(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700(?: Lite| 3G)?|A701|B1-A71|A1-\\d{3}|B1-\\d{3}|V360|V370|W500|W500P|W501|W501P|W510|W511|W700|Slider SL101|DA22[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[9]=e;e=Object.create(null);e[0]=new RegExp("; *Acer Iconia Tab ([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[10]=e;e=Object.create(null);e[0]=new RegExp("; *(Z1[1235]0|E320[^/]*|S500|S510|Liquid[^;/]*|Iconia A\\d+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[11]=e;e=Object.create(null);e[0]=new RegExp("; *(Acer |ACER )([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[12]=e;e=Object.create(null);e[0]=new RegExp("; *(Advent )?(Vega(?:Bean|Comb)?).* Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[13]=e;e=Object.create(null);e[0]=new RegExp("; *(Ainol )?((?:NOVO|[Nn]ovo)[^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[14]=e;e=Object.create(null);e[0]=new RegExp("; *AIRIS[ _\\-]?([^/;\\)]+) *(?:;|\\)|Build)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[15]=e;e=Object.create(null);e[0]=new RegExp("; *(OnePAD[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[16]=e;e=Object.create(null);e[0]=new RegExp("; *Airpad[ \\-]([^;/]+) Build");e[1]="Airpad $1";e[2]=0;e[3]=0;e[4]=0;h.device[17]=e;e=Object.create(null);e[0]=new RegExp("; *(one ?touch) (EVO7|T10|T20) Build");e[1]="Alcatel One Touch $2";e[2]=0;e[3]=0;e[4]=0;h.device[18]=e;e=Object.create(null);e[0]=new RegExp("; *(?:alcatel[ _])?(?:(?:one[ _]?touch[ _])|ot[ \\-])([^;/]+);? Build");e[1]="Alcatel One Touch $1";e[2]=0;e[3]=0;e[4]=0;h.device[19]=e;e=Object.create(null);e[0]=new RegExp("; *(TCL)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[20]=e;e=Object.create(null);e[0]=new RegExp("; *(Vodafone Smart II|Optimus_Madrid) Build");e[1]="Alcatel $1";e[2]=0;e[3]=0;e[4]=0;h.device[21]=e;e=Object.create(null);e[0]=new RegExp("; *BASE_Lutea_3 Build");e[1]="Alcatel One Touch 998";e[2]=0;e[3]=0;e[4]=0;h.device[22]=e;e=Object.create(null);e[0]=new RegExp("; *BASE_Varia Build");e[1]="Alcatel One Touch 918D";e[2]=0;e[3]=0;e[4]=0;h.device[23]=e;e=Object.create(null);e[0]=new RegExp("; *((?:FINE|Fine)\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[24]=e;e=Object.create(null);e[0]=new RegExp("; *(ALLVIEW[ _]?|Allview[ _]?)((?:Speed|SPEED).*) Build/");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[25]=e;e=Object.create(null);e[0]=new RegExp("; *(ALLVIEW[ _]?|Allview[ _]?)?(AX1_Shine|AX2_Frenzy) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[26]=e;e=Object.create(null);e[0]=new RegExp("; *(ALLVIEW[ _]?|Allview[ _]?)([^;/]*) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[27]=e;e=Object.create(null);e[0]=new RegExp("; *(A13-MID) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[28]=e;e=Object.create(null);e[0]=new RegExp("; *(Allwinner)[ _\\-]?([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[29]=e;e=Object.create(null);e[0]=new RegExp("; *(A651|A701B?|A702|A703|A705|A706|A707|A711|A712|A713|A717|A722|A785|A801|A802|A803|A901|A902|A1002|A1003|A1006|A1007|A9701|A9703|Q710|Q80) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[30]=e;e=Object.create(null);e[0]=new RegExp("; *(?:AMOI|Amoi)[ _]([^;/]+) Build");e[1]="Amoi $1";e[2]=0;e[3]=0;e[4]=0;h.device[31]=e;e=Object.create(null);e[0]=new RegExp("^(?:AMOI|Amoi)[ _]([^;/]+) Linux");e[1]="Amoi $1";e[2]=0;e[3]=0;e[4]=0;h.device[32]=e;e=Object.create(null);e[0]=new RegExp("; *(MW(?:0[789]|10)[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[33]=e;e=Object.create(null);e[0]=new RegExp("; *(G7|M1013|M1015G|M11[CG]?|M-?12[B]?|M15|M19[G]?|M30[ACQ]?|M31[GQ]|M32|M33[GQ]|M36|M37|M38|M701T|M710|M712B|M713|M715G|M716G|M71(?:G|GS|T)?|M72[T]?|M73[T]?|M75[GT]?|M77G|M79T|M7L|M7LN|M81|M810|M81T|M82|M92|M92KS|M92S|M717G|M721|M722G|M723|M725G|M739|M785|M791|M92SK|M93D) Build");e[1]="Aoson $1";e[2]=0;e[3]=0;e[4]=0;h.device[34]=e;e=Object.create(null);e[0]=new RegExp("; *Aoson ([^;/]+) Build");e[1]="Aoson $1";e[2]=0;e[3]=0;e[4]=0;h.device[35]=e;e=Object.create(null);e[0]=new RegExp("; *[Aa]panda[ _\\-]([^;/]+) Build");e[1]="Apanda $1";e[2]=0;e[3]=0;e[4]=0;h.device[36]=e;e=Object.create(null);e[0]=new RegExp("; *(?:ARCHOS|Archos) ?(GAMEPAD.*?)(?: Build|[;/\\(\\)\\-])");e[1]="Archos $1";e[2]=0;e[3]=0;e[4]=0;h.device[37]=e;e=Object.create(null);e[0]=new RegExp("ARCHOS; GOGI; ([^;]+);");e[1]="Archos $1";e[2]=0;e[3]=0;e[4]=0;h.device[38]=e;e=Object.create(null);e[0]=new RegExp("(?:ARCHOS|Archos)[ _]?(.*?)(?: Build|[;/\\(\\)\\-]|$)");e[1]="Archos $1";e[2]=0;e[3]=0;e[4]=0;h.device[39]=e;e=Object.create(null);e[0]=new RegExp("; *(AN(?:7|8|9|10|13)[A-Z0-9]{1,4}) Build");e[1]="Archos $1";e[2]=0;e[3]=0;e[4]=0;h.device[40]=e;e=Object.create(null);e[0]=new RegExp("; *(A28|A32|A43|A70(?:BHT|CHT|HB|S|X)|A101(?:B|C|IT)|A7EB|A7EB-WK|101G9|80G9) Build");e[1]="Archos $1";e[2]=0;e[3]=0;e[4]=0;h.device[41]=e;e=Object.create(null);e[0]=new RegExp("; *(PAD-FMD[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[42]=e;e=Object.create(null);e[0]=new RegExp("; *(BioniQ) ?([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[43]=e;e=Object.create(null);e[0]=new RegExp("; *(AN\\d[^;/]+|ARCHM\\d+) Build");e[1]="Arnova $1";e[2]=0;e[3]=0;e[4]=0;h.device[44]=e;e=Object.create(null);e[0]=new RegExp("; *(?:ARNOVA|Arnova) ?([^;/]+) Build");e[1]="Arnova $1";e[2]=0;e[3]=0;e[4]=0;h.device[45]=e;e=Object.create(null);e[0]=new RegExp("; *(?:ASSISTANT )?(AP)-?([1789]\\d{2}[A-Z]{0,2}|80104) Build");e[1]="Assistant $1-$2";e[2]=0;e[3]=0;e[4]=0;h.device[46]=e;e=Object.create(null);e[0]=new RegExp("; *(ME17\\d[^;/]*|ME3\\d{2}[^;/]+|K00[A-Z]|Nexus 10|Nexus 7(?: 2013)?|PadFone[^;/]*|Transformer[^;/]*|TF\\d{3}[^;/]*|eeepc) Build");e[1]="Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[47]=e;e=Object.create(null);e[0]=new RegExp("; *ASUS[ _]*([^;/]+) Build");e[1]="Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[48]=e;e=Object.create(null);e[0]=new RegExp("; *Garmin-Asus ([^;/]+) Build");e[1]="Garmin-Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[49]=e;e=Object.create(null);e[0]=new RegExp("; *(Garminfone) Build");e[1]="Garmin $1";e[2]=0;e[3]=0;e[4]=0;h.device[50]=e;e=Object.create(null);e[0]=new RegExp("; (@TAB-[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[51]=e;e=Object.create(null);e[0]=new RegExp("; *(T-(?:07|[^0]\\d)[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[52]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Axioo[ _\\-]([^;/]+)|(picopad)[ _\\-]([^;/]+)) Build");e[1]="Axioo $1$2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[53]=e;e=Object.create(null);e[0]=new RegExp("; *(V(?:100|700|800)[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[54]=e;e=Object.create(null);e[0]=new RegExp("; *(IBAK\\-[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[55]=e;e=Object.create(null);e[0]=new RegExp("; *(HY5001|HY6501|X12|X21|I5) Build");e[1]="Bedove $1";e[2]=0;e[3]=0;e[4]=0;h.device[56]=e;e=Object.create(null);e[0]=new RegExp("; *(JC-[^;/]*) Build");e[1]="Benss $1";e[2]=0;e[3]=0;e[4]=0;h.device[57]=e;e=Object.create(null);e[0]=new RegExp("; *(BB) ([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[58]=e;e=Object.create(null);e[0]=new RegExp("; *(BlackBird)[ _](I8.*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[59]=e;e=Object.create(null);e[0]=new RegExp("; *(BlackBird)[ _](.*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[60]=e;e=Object.create(null);e[0]=new RegExp("; *([0-9]+BP[EM][^;/]*|Endeavour[^;/]+) Build");e[1]="Blaupunkt $1";e[2]=0;e[3]=0;e[4]=0;h.device[61]=e;e=Object.create(null);e[0]=new RegExp("; *((?:BLU|Blu)[ _\\-])([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[62]=e;e=Object.create(null);e[0]=new RegExp("; *(?:BMOBILE )?(Blu|BLU|DASH [^;/]+|VIVO 4\\.3|TANK 4\\.5) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[63]=e;e=Object.create(null);e[0]=new RegExp("; *(TOUCH\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[64]=e;e=Object.create(null);e[0]=new RegExp("; *(AX5\\d+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[65]=e;e=Object.create(null);e[0]=new RegExp("; *([Bb]q) ([^;/]+);? Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[66]=e;e=Object.create(null);e[0]=new RegExp("; *(Maxwell [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[67]=e;e=Object.create(null);e[0]=new RegExp("; *((?:B-Tab|B-TAB) ?\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[68]=e;e=Object.create(null);e[0]=new RegExp("; *(Broncho) ([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[69]=e;e=Object.create(null);e[0]=new RegExp("; *CAPTIVA ([^;/]+) Build");e[1]="Captiva $1";e[2]=0;e[3]=0;e[4]=0;h.device[70]=e;e=Object.create(null);e[0]=new RegExp("; *(C771|CAL21|IS11CA) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[71]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Cat|CAT) ([^;/]+) Build");e[1]="Cat $1";e[2]=0;e[3]=0;e[4]=0;h.device[72]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Cat)(Nova.*) Build");e[1]="Cat $1";e[2]=0;e[3]=0;e[4]=0;h.device[73]=e;e=Object.create(null);e[0]=new RegExp("; *(INM8002KP|ADM8000KP_[AB]) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[74]=e;e=Object.create(null);e[0]=new RegExp("; *(?:[Cc]elkon[ _\\*]|CELKON[ _\\*])([^;/\\)]+) ?(?:Build|;|\\))");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[75]=e;e=Object.create(null);e[0]=new RegExp("Build/(?:[Cc]elkon)+_?([^;/_\\)]+)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[76]=e;e=Object.create(null);e[0]=new RegExp("; *(CT)-?(\\d+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[77]=e;e=Object.create(null);e[0]=new RegExp("; *(A19|A19Q|A105|A107[^;/\\)]*) ?(?:Build|;|\\))");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[78]=e;e=Object.create(null);e[0]=new RegExp("; *(TPC[0-9]{4,5}) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[79]=e;e=Object.create(null);e[0]=new RegExp("; *(Cloudfone)[ _](Excite)([^ ][^;/]+) Build");e[1]="$1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[80]=e;e=Object.create(null);e[0]=new RegExp("; *(Excite|ICE)[ _](\\d+[^;/]+) Build");e[1]="Cloudfone $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[81]=e;e=Object.create(null);e[0]=new RegExp("; *(Cloudfone|CloudPad)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[82]=e;e=Object.create(null);e[0]=new RegExp("; *((?:Aquila|Clanga|Rapax)[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[83]=e;e=Object.create(null);e[0]=new RegExp("; *(?:CFW-|Kyros )?(MID[0-9]{4}(?:[ABC]|SR|TV)?)(\\(3G\\)-4G| GB 8K| 3G| 8K| GB)? *(?:Build|[;\\)])");e[1]="CobyKyros $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[84]=e;e=Object.create(null);e[0]=new RegExp("; *([^;/]*)Coolpad[ _]([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[85]=e;e=Object.create(null);e[0]=new RegExp("; *(CUBE[ _])?([KU][0-9]+ ?GT.*|A5300) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[86]=e;e=Object.create(null);e[0]=new RegExp("; *CUBOT ([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[87]=e;e=Object.create(null);e[0]=new RegExp("; *(BOBBY) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[88]=e;e=Object.create(null);e[0]=new RegExp("; *(Dslide [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[89]=e;e=Object.create(null);e[0]=new RegExp("; *(XCD)[ _]?(28|35) Build");e[1]="Dell $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[90]=e;e=Object.create(null);e[0]=new RegExp("; *(001DL) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[91]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Dell|DELL) (Streak) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[92]=e;e=Object.create(null);e[0]=new RegExp("; *(101DL|GS01|Streak Pro[^;/]*) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[93]=e;e=Object.create(null);e[0]=new RegExp("; *([Ss]treak ?7) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[94]=e;e=Object.create(null);e[0]=new RegExp("; *(Mini-3iX) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[95]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Dell|DELL)[ _](Aero|Venue|Thunder|Mini.*|Streak[ _]Pro) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[96]=e;e=Object.create(null);e[0]=new RegExp("; *Dell[ _]([^;/]+) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[97]=e;e=Object.create(null);e[0]=new RegExp("; *Dell ([^;/]+) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[98]=e;e=Object.create(null);e[0]=new RegExp("; *(TA[CD]-\\d+[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[99]=e;e=Object.create(null);e[0]=new RegExp("; *(iP[789]\\d{2}(?:-3G)?|IP10\\d{2}(?:-8GB)?) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[100]=e;e=Object.create(null);e[0]=new RegExp("; *(AirTab)[ _\\-]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[101]=e;e=Object.create(null);e[0]=new RegExp("; *(F\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[102]=e;e=Object.create(null);e[0]=new RegExp("; *(HT-03A) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[103]=e;e=Object.create(null);e[0]=new RegExp("; *(HT\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[104]=e;e=Object.create(null);e[0]=new RegExp("; *(L\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[105]=e;e=Object.create(null);e[0]=new RegExp("; *(N\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[106]=e;e=Object.create(null);e[0]=new RegExp("; *(P\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[107]=e;e=Object.create(null);e[0]=new RegExp("; *(SC\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[108]=e;e=Object.create(null);e[0]=new RegExp("; *(SH\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[109]=e;e=Object.create(null);e[0]=new RegExp("; *(SO\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[110]=e;e=Object.create(null);e[0]=new RegExp("; *(T\\-0[12][^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[111]=e;e=Object.create(null);e[0]=new RegExp("; *(DOOV)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[112]=e;e=Object.create(null);e[0]=new RegExp("; *(Enot|ENOT)[ -]?([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[113]=e;e=Object.create(null);e[0]=new RegExp("; *[^;/]+ Build/(?:CROSS|Cross)+[ _\\-]([^\\)]+)");e[1]="CROSS $1";e[2]=0;e[3]=0;e[4]=0;h.device[114]=e;e=Object.create(null);e[0]=new RegExp("; *(CROSS|Cross)[ _\\-]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[115]=e;e=Object.create(null);e[0]=new RegExp("; *Explay[_ ](.+?)(?:[\\)]| Build)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[116]=e;e=Object.create(null);e[0]=new RegExp("; *(IQ.*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[117]=e;e=Object.create(null);e[0]=new RegExp("; *(Fly|FLY)[ _](IQ[^;]+|F[34]\\d+[^;]*);? Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[118]=e;e=Object.create(null);e[0]=new RegExp("; *(M532|Q572|FJL21) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[119]=e;e=Object.create(null);e[0]=new RegExp("; *(G1) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[120]=e;e=Object.create(null);e[0]=new RegExp("; *(Geeksphone) ([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[121]=e;e=Object.create(null);e[0]=new RegExp("; *(G[^F]?FIVE) ([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[122]=e;e=Object.create(null);e[0]=new RegExp("; *(Gionee)[ _\\-]([^;/]+)(?:/[^;/]+)? Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[123]=e;e=Object.create(null);e[0]=new RegExp("; *(GN\\d+[A-Z]?|INFINITY_PASSION|Ctrl_V1) Build");e[1]="Gionee $1";e[2]=0;e[3]=0;e[4]=0;h.device[124]=e;e=Object.create(null);e[0]=new RegExp("; *(E3) Build/JOP40D");e[1]="Gionee $1";e[2]=0;e[3]=0;e[4]=0;h.device[125]=e;e=Object.create(null);e[0]=new RegExp("\\sGIONEE[-\\s_](\\w*)");e[1]="Gionee $1";e[2]=0;e[3]=0;e[4]=0;h.device[126]=e;e=Object.create(null);e[0]=new RegExp("; *((?:FONE|QUANTUM|INSIGNIA) \\d+[^;/]*|PLAYTAB) Build");e[1]="GoClever $1";e[2]=0;e[3]=0;e[4]=0;h.device[127]=e;e=Object.create(null);e[0]=new RegExp("; *GOCLEVER ([^;/]+) Build");e[1]="GoClever $1";e[2]=0;e[3]=0;e[4]=0;h.device[128]=e;e=Object.create(null);e[0]=new RegExp("; *(Glass \\d+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[129]=e;e=Object.create(null);e[0]=new RegExp("; *(Pixel \\w+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[130]=e;e=Object.create(null);e[0]=new RegExp("; *(GSmart)[ -]([^/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[131]=e;e=Object.create(null);e[0]=new RegExp("; *(imx5[13]_[^/]+) Build");e[1]="Freescale $1";e[2]=0;e[3]=0;e[4]=0;h.device[132]=e;e=Object.create(null);e[0]=new RegExp("; *Haier[ _\\-]([^/]+) Build");e[1]="Haier $1";e[2]=0;e[3]=0;e[4]=0;h.device[133]=e;e=Object.create(null);e[0]=new RegExp("; *(PAD1016) Build");e[1]="Haipad $1";e[2]=0;e[3]=0;e[4]=0;h.device[134]=e;e=Object.create(null);e[0]=new RegExp("; *(M701|M7|M8|M9) Build");e[1]="Haipad $1";e[2]=0;e[3]=0;e[4]=0;h.device[135]=e;e=Object.create(null);e[0]=new RegExp("; *(SN\\d+T[^;\\)/]*)(?: Build|[;\\)])");e[1]="Hannspree $1";e[2]=0;e[3]=0;e[4]=0;h.device[136]=e;e=Object.create(null);e[0]=new RegExp("Build/HCL ME Tablet ([^;\\)]+)[\\);]");e[1]="HCLme $1";e[2]=0;e[3]=0;e[4]=0;h.device[137]=e;e=Object.create(null);e[0]=new RegExp("; *([^;\\/]+) Build/HCL");e[1]="HCLme $1";e[2]=0;e[3]=0;e[4]=0;h.device[138]=e;e=Object.create(null);e[0]=new RegExp("; *(MID-?\\d{4}C[EM]) Build");e[1]="Hena $1";e[2]=0;e[3]=0;e[4]=0;h.device[139]=e;e=Object.create(null);e[0]=new RegExp("; *(EG\\d{2,}|HS-[^;/]+|MIRA[^;/]+) Build");e[1]="Hisense $1";e[2]=0;e[3]=0;e[4]=0;h.device[140]=e;e=Object.create(null);e[0]=new RegExp("; *(andromax[^;/]+) Build");e[1]="Hisense $1";e[2]=0;e[3]=0;e[4]=0;h.device[141]=e;e=Object.create(null);e[0]=new RegExp("; *(?:AMAZE[ _](S\\d+)|(S\\d+)[ _]AMAZE) Build");e[1]="AMAZE $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[142]=e;e=Object.create(null);e[0]=new RegExp("; *(PlayBook) Build");e[1]="HP $1";e[2]=0;e[3]=0;e[4]=0;h.device[143]=e;e=Object.create(null);e[0]=new RegExp("; *HP ([^/]+) Build");e[1]="HP $1";e[2]=0;e[3]=0;e[4]=0;h.device[144]=e;e=Object.create(null);e[0]=new RegExp("; *([^/]+_tenderloin) Build");e[1]="HP TouchPad";e[2]=0;e[3]=0;e[4]=0;h.device[145]=e;e=Object.create(null);e[0]=new RegExp("; *(HUAWEI |Huawei-)?([UY][^;/]+) Build/(?:Huawei|HUAWEI)([UY][^\\);]+)\\)");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[146]=e;e=Object.create(null);e[0]=new RegExp("; *([^;/]+) Build[/ ]Huawei(MT1-U06|[A-Z]+\\d+[^\\);]+)[^\\);]*\\)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[147]=e;e=Object.create(null);e[0]=new RegExp("; *(S7|M860) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[148]=e;e=Object.create(null);e[0]=new RegExp("; *((?:HUAWEI|Huawei)[ \\-]?)(MediaPad) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[149]=e;e=Object.create(null);e[0]=new RegExp("; *((?:HUAWEI[ _]?|Huawei[ _])?Ascend[ _])([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[150]=e;e=Object.create(null);e[0]=new RegExp("; *((?:HUAWEI|Huawei)[ _\\-]?)((?:G700-|MT-)[^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[151]=e;e=Object.create(null);e[0]=new RegExp("; *((?:HUAWEI|Huawei)[ _\\-]?)([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[152]=e;e=Object.create(null);e[0]=new RegExp("; *(MediaPad[^;]+|SpringBoard) Build/Huawei");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[153]=e;e=Object.create(null);e[0]=new RegExp("; *([^;]+) Build/(?:Huawei|HUAWEI)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[154]=e;e=Object.create(null);e[0]=new RegExp("; *([Uu])([89]\\d{3}) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[155]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Ideos |IDEOS )(S7) Build");e[1]="Huawei Ideos$1";e[2]=0;e[3]=0;e[4]=0;h.device[156]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Ideos |IDEOS )([^;/]+\\s*|\\s*)Build");e[1]="Huawei Ideos$1";e[2]=0;e[3]=0;e[4]=0;h.device[157]=e;e=Object.create(null);e[0]=new RegExp("; *(Orange Daytona|Pulse|Pulse Mini|Vodafone 858|C8500|C8600|C8650|C8660|Nexus 6P|ATH-.+?) Build[/ ]");e[1]="Huawei $1";e[2]=0;e[3]=0;e[4]=0;h.device[158]=e;e=Object.create(null);e[0]=new RegExp("; *HTC[ _]([^;]+); Windows Phone");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[159]=e;e=Object.create(null);e[0]=new RegExp("; *(?:HTC[ _/])+([^ _/]+)(?:[/\\\\]1\\.0 | V|/| +)\\d+\\.\\d[\\d\\.]*(?: *Build|\\))");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[160]=e;e=Object.create(null);e[0]=new RegExp("; *(?:HTC[ _/])+([^ _/]+)(?:[ _/]([^ _/]+))?(?:[/\\\\]1\\.0 | V|/| +)\\d+\\.\\d[\\d\\.]*(?: *Build|\\))");e[1]="HTC $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[161]=e;e=Object.create(null);e[0]=new RegExp("; *(?:HTC[ _/])+([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ _/]+))?)?(?:[/\\\\]1\\.0 | V|/| +)\\d+\\.\\d[\\d\\.]*(?: *Build|\\))");e[1]="HTC $1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[162]=e;e=Object.create(null);e[0]=new RegExp("; *(?:HTC[ _/])+([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ _/]+))?)?)?(?:[/\\\\]1\\.0 | V|/| +)\\d+\\.\\d[\\d\\.]*(?: *Build|\\))");e[1]="HTC $1 $2 $3 $4";e[2]=0;e[3]=0;e[4]=0;h.device[163]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(?:HTC|htc)(?:_blocked)*[ _/])+([^ _/;]+)(?: *Build|[;\\)]| - )");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[164]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(?:HTC|htc)(?:_blocked)*[ _/])+([^ _/]+)(?:[ _/]([^ _/;\\)]+))?(?: *Build|[;\\)]| - )");e[1]="HTC $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[165]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(?:HTC|htc)(?:_blocked)*[ _/])+([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ _/;\\)]+))?)?(?: *Build|[;\\)]| - )");e[1]="HTC $1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[166]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(?:HTC|htc)(?:_blocked)*[ _/])+([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ /;]+))?)?)?(?: *Build|[;\\)]| - )");e[1]="HTC $1 $2 $3 $4";e[2]=0;e[3]=0;e[4]=0;h.device[167]=e;e=Object.create(null);e[0]=new RegExp("HTC Streaming Player [^\\/]*/[^\\/]*/ htc_([^/]+) /");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[168]=e;e=Object.create(null);e[0]=new RegExp("(?:[;,] *|^)(?:htccn_chs-)?HTC[ _-]?([^;]+?)(?: *Build|clay|Android|-?Mozilla| Opera| Profile| UNTRUSTED|[;/\\(\\)]|$)");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[169]=e;e=Object.create(null);e[0]=new RegExp("; *(A6277|ADR6200|ADR6300|ADR6350|ADR6400[A-Z]*|ADR6425[A-Z]*|APX515CKT|ARIA|Desire[^_ ]*|Dream|EndeavorU|Eris|Evo|Flyer|HD2|Hero|HERO200|Hero CDMA|HTL21|Incredible|Inspire[A-Z0-9]*|Legend|Liberty|Nexus ?(?:One|HD2)|One|One S C2|One[ _]?(?:S|V|X\\+?)\\w*|PC36100|PG06100|PG86100|S31HT|Sensation|Wildfire)(?: Build|[/;\\(\\)])");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[170]=e;e=Object.create(null);e[0]=new RegExp("; *(ADR6200|ADR6400L|ADR6425LVW|Amaze|DesireS?|EndeavorU|Eris|EVO|Evo\\d[A-Z]+|HD2|IncredibleS?|Inspire[A-Z0-9]*|Inspire[A-Z0-9]*|Sensation[A-Z0-9]*|Wildfire)[ _-](.+?)(?:[/;\\)]|Build|MIUI|1\\.0)");e[1]="HTC $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[171]=e;e=Object.create(null);e[0]=new RegExp("; *HYUNDAI (T\\d[^/]*) Build");e[1]="Hyundai $1";e[2]=0;e[3]=0;e[4]=0;h.device[172]=e;e=Object.create(null);e[0]=new RegExp("; *HYUNDAI ([^;/]+) Build");e[1]="Hyundai $1";e[2]=0;e[3]=0;e[4]=0;h.device[173]=e;e=Object.create(null);e[0]=new RegExp("; *(X700|Hold X|MB-6900) Build");e[1]="Hyundai $1";e[2]=0;e[3]=0;e[4]=0;h.device[174]=e;e=Object.create(null);e[0]=new RegExp("; *(?:iBall[ _\\-])?(Andi)[ _]?(\\d[^;/]*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[175]=e;e=Object.create(null);e[0]=new RegExp("; *(IBall)(?:[ _]([^;/]+)|) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[176]=e;e=Object.create(null);e[0]=new RegExp("; *(NT-\\d+[^ ;/]*|Net[Tt]AB [^;/]+|Mercury [A-Z]+|iconBIT)(?: S/N:[^;/]+)? Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[177]=e;e=Object.create(null);e[0]=new RegExp("; *(IMO)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[178]=e;e=Object.create(null);e[0]=new RegExp("; *i-?mobile[ _]([^/]+) Build/");e[1]="i-mobile $1";e[2]=0;e[3]=0;e[4]=0;h.device[179]=e;e=Object.create(null);e[0]=new RegExp("; *(i-(?:style|note)[^/]*) Build/");e[1]="i-mobile $1";e[2]=0;e[3]=0;e[4]=0;h.device[180]=e;e=Object.create(null);e[0]=new RegExp("; *(ImPAD) ?(\\d+(?:.)*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[181]=e;e=Object.create(null);e[0]=new RegExp("; *(Infinix)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[182]=e;e=Object.create(null);e[0]=new RegExp("; *(Informer)[ \\-]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[183]=e;e=Object.create(null);e[0]=new RegExp("; *(TAB) ?([78][12]4) Build");e[1]="Intenso $1";e[2]=0;e[3]=0;e[4]=0;h.device[184]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Intex[ _])?(AQUA|Aqua)([ _\\.\\-])([^;/]+) *(?:Build|;)");e[1]="$1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[185]=e;e=Object.create(null);e[0]=new RegExp("; *(?:INTEX|Intex)(?:[_ ]([^\\ _;/]+))(?:[_ ]([^\\ _;/]+))? *(?:Build|;)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[186]=e;e=Object.create(null);e[0]=new RegExp("; *([iI]Buddy)[ _]?(Connect)(?:_|\\?_| )?([^;/]*) *(?:Build|;)");e[1]="$1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[187]=e;e=Object.create(null);e[0]=new RegExp("; *(I-Buddy)[ _]([^;/]+) *(?:Build|;)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[188]=e;e=Object.create(null);e[0]=new RegExp("; *(iOCEAN) ([^/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[189]=e;e=Object.create(null);e[0]=new RegExp("; *(TP\\d+(?:\\.\\d+)?\\-\\d[^;/]+) Build");e[1]="ionik $1";e[2]=0;e[3]=0;e[4]=0;h.device[190]=e;e=Object.create(null);e[0]=new RegExp("; *(M702pro) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[191]=e;e=Object.create(null);e[0]=new RegExp("; *(DE88Plus|MD70) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[192]=e;e=Object.create(null);e[0]=new RegExp("; *IVIO[_\\-]([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[193]=e;e=Object.create(null);e[0]=new RegExp("; *(TPC-\\d+|JAY-TECH) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[194]=e;e=Object.create(null);e[0]=new RegExp("; *(JY-[^;/]+|G[234]S?) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[195]=e;e=Object.create(null);e[0]=new RegExp("; *(JXD)[ _\\-]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[196]=e;e=Object.create(null);e[0]=new RegExp("; *Karbonn[ _]?([^;/]+) *(?:Build|;)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[197]=e;e=Object.create(null);e[0]=new RegExp("; *([^;]+) Build/Karbonn");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[198]=e;e=Object.create(null);e[0]=new RegExp("; *(A11|A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2|Titanium S\\d) +Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[199]=e;e=Object.create(null);e[0]=new RegExp("; *(IS01|IS03|IS05|IS\\d{2}SH) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[200]=e;e=Object.create(null);e[0]=new RegExp("; *(IS04) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[201]=e;e=Object.create(null);e[0]=new RegExp("; *(IS06|IS\\d{2}PT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[202]=e;e=Object.create(null);e[0]=new RegExp("; *(IS11S) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[203]=e;e=Object.create(null);e[0]=new RegExp("; *(IS11CA) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[204]=e;e=Object.create(null);e[0]=new RegExp("; *(IS11LG) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[205]=e;e=Object.create(null);e[0]=new RegExp("; *(IS11N) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[206]=e;e=Object.create(null);e[0]=new RegExp("; *(IS11PT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[207]=e;e=Object.create(null);e[0]=new RegExp("; *(IS12F) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[208]=e;e=Object.create(null);e[0]=new RegExp("; *(IS12M) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[209]=e;e=Object.create(null);e[0]=new RegExp("; *(IS12S) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[210]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW11F) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[211]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW11HT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[212]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW11K) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[213]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW11M) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[214]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW11SC) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[215]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW12HT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[216]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW13HT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[217]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW?[0-9]{2}[A-Z]{0,2}) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[218]=e;e=Object.create(null);e[0]=new RegExp("; *(INFOBAR [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[219]=e;e=Object.create(null);e[0]=new RegExp("; *(JOYPAD|Joypad)[ _]([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[220]=e;e=Object.create(null);e[0]=new RegExp("; *(Vox|VOX|Arc|K080) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[221]=e;e=Object.create(null);e[0]=new RegExp("\\b(Kobo Touch)\\b");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[222]=e;e=Object.create(null);e[0]=new RegExp("; *(K-Touch)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[223]=e;e=Object.create(null);e[0]=new RegExp("; *((?:EV|KM)-S\\d+[A-Z]?) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[224]=e;e=Object.create(null);e[0]=new RegExp("; *(Zio|Hydro|Torque|Event|EVENT|Echo|Milano|Rise|URBANO PROGRESSO|WX04K|WX06K|WX10K|KYL21|101K|C5[12]\\d{2}) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[225]=e;e=Object.create(null);e[0]=new RegExp("; *(?:LAVA[ _])?IRIS[ _\\-]?([^/;\\)]+) *(?:;|\\)|Build)");e[1]="Iris $1";e[2]=0;e[3]=0;e[4]=0;h.device[226]=e;e=Object.create(null);e[0]=new RegExp("; *LAVA[ _]([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[227]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(Aspire A1)|(?:LEMON|Lemon)[ _]([^;/]+))_? Build");e[1]="Lemon $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[228]=e;e=Object.create(null);e[0]=new RegExp("; *(TAB-1012) Build/");e[1]="Lenco $1";e[2]=0;e[3]=0;e[4]=0;h.device[229]=e;e=Object.create(null);e[0]=new RegExp("; Lenco ([^;/]+) Build/");e[1]="Lenco $1";e[2]=0;e[3]=0;e[4]=0;h.device[230]=e;e=Object.create(null);e[0]=new RegExp("; *(A1_07|A2107A-H|S2005A-H|S1-37AH0) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[231]=e;e=Object.create(null);e[0]=new RegExp("; *(Idea[Tp]ab)[ _]([^;/]+);? Build");e[1]="Lenovo $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[232]=e;e=Object.create(null);e[0]=new RegExp("; *(Idea(?:Tab|pad)) ?([^;/]+) Build");e[1]="Lenovo $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[233]=e;e=Object.create(null);e[0]=new RegExp("; *(ThinkPad) ?(Tablet) Build/");e[1]="Lenovo $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[234]=e;e=Object.create(null);e[0]=new RegExp("; *(?:LNV-)?(?:=?[Ll]enovo[ _\\-]?|LENOVO[ _])+(.+?)(?:Build|[;/\\)])");e[1]="Lenovo $1";e[2]=0;e[3]=0;e[4]=0;h.device[235]=e;e=Object.create(null);e[0]=new RegExp("[;,] (?:Vodafone )?(SmartTab) ?(II) ?(\\d+) Build/");e[1]="Lenovo $1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[236]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Ideapad )?K1 Build/");e[1]="Lenovo Ideapad K1";e[2]=0;e[3]=0;e[4]=0;h.device[237]=e;e=Object.create(null);e[0]=new RegExp("; *(3GC101|3GW10[01]|A390) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[238]=e;e=Object.create(null);e[0]=new RegExp("\\b(?:Lenovo|LENOVO)+[ _\\-]?([^,;:/ ]+)");e[1]="Lenovo $1";e[2]=0;e[3]=0;e[4]=0;h.device[239]=e;e=Object.create(null);e[0]=new RegExp("; *(MFC\\d+)[A-Z]{2}([^;,/]*),? Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[240]=e;e=Object.create(null);e[0]=new RegExp("; *(E[34][0-9]{2}|LS[6-8][0-9]{2}|VS[6-9][0-9]+[^;/]+|Nexus 4|Nexus 5X?|GT540f?|Optimus (?:2X|G|4X HD)|OptimusX4HD) *(?:Build|;)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[241]=e;e=Object.create(null);e[0]=new RegExp("[;:] *(L-\\d+[A-Z]|LGL\\d+[A-Z]?)(?:/V\\d+)? *(?:Build|[;\\)])");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[242]=e;e=Object.create(null);e[0]=new RegExp("; *(LG-)([A-Z]{1,2}\\d{2,}[^,;/\\)\\(]*?)(?:Build| V\\d+|[,;/\\)\\(]|$)");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[243]=e;e=Object.create(null);e[0]=new RegExp("; *(LG[ \\-]|LG)([^;/]+)[;/]? Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[244]=e;e=Object.create(null);e[0]=new RegExp("^(LG)-([^;/]+)/ Mozilla/.*; Android");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[245]=e;e=Object.create(null);e[0]=new RegExp("(Web0S); Linux/(SmartTV)");e[1]="LG $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[246]=e;e=Object.create(null);e[0]=new RegExp("; *((?:SMB|smb)[^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[247]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Malata|MALATA) ([^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[248]=e;e=Object.create(null);e[0]=new RegExp("; *(MS[45][0-9]{3}|MID0[568][NS]?|MID[1-9]|MID[78]0[1-9]|MID970[1-9]|MID100[1-9]) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[249]=e;e=Object.create(null);e[0]=new RegExp("; *(M1052|M806|M9000|M9100|M9701|MID100|MID120|MID125|MID130|MID135|MID140|MID701|MID710|MID713|MID727|MID728|MID731|MID732|MID733|MID735|MID736|MID737|MID760|MID800|MID810|MID820|MID830|MID833|MID835|MID860|MID900|MID930|MID933|MID960|MID980) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[250]=e;e=Object.create(null);e[0]=new RegExp("; *(GenxDroid7|MSD7.*|AX\\d.*|Tab 701|Tab 722) Build/");e[1]="Maxx $1";e[2]=0;e[3]=0;e[4]=0;h.device[251]=e;e=Object.create(null);e[0]=new RegExp("; *(M-PP[^;/]+|PhonePad ?\\d{2,}[^;/]+) Build");e[1]="Mediacom $1";e[2]=0;e[3]=0;e[4]=0;h.device[252]=e;e=Object.create(null);e[0]=new RegExp("; *(M-MP[^;/]+|SmartPad ?\\d{2,}[^;/]+) Build");e[1]="Mediacom $1";e[2]=0;e[3]=0;e[4]=0;h.device[253]=e;e=Object.create(null);e[0]=new RegExp("; *(?:MD_)?LIFETAB[ _]([^;/]+) Build");e[1]="Medion Lifetab $1";e[2]=0;e[3]=0;e[4]=0;h.device[254]=e;e=Object.create(null);e[0]=new RegExp("; *MEDION ([^;/]+) Build");e[1]="Medion $1";e[2]=0;e[3]=0;e[4]=0;h.device[255]=e;e=Object.create(null);e[0]=new RegExp("; *(M030|M031|M035|M040|M065|m9) Build");e[1]="Meizu $1";e[2]=0;e[3]=0;e[4]=0;h.device[256]=e;e=Object.create(null);e[0]=new RegExp("; *(?:meizu_|MEIZU )(.+?) *(?:Build|[;\\)])");e[1]="Meizu $1";e[2]=0;e[3]=0;e[4]=0;h.device[257]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Micromax[ _](A111|A240)|(A111|A240)) Build");e[1]="Micromax $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[258]=e;e=Object.create(null);e[0]=new RegExp("; *Micromax[ _](A\\d{2,3}[^;/]*) Build");e[1]="Micromax $1";e[2]=0;e[3]=0;e[4]=0;h.device[259]=e;e=Object.create(null);e[0]=new RegExp("; *(A\\d{2}|A[12]\\d{2}|A90S|A110Q) Build");e[1]="Micromax $1";e[2]=0;e[3]=0;e[4]=0;h.device[260]=e;e=Object.create(null);e[0]=new RegExp("; *Micromax[ _](P\\d{3}[^;/]*) Build");e[1]="Micromax $1";e[2]=0;e[3]=0;e[4]=0;h.device[261]=e;e=Object.create(null);e[0]=new RegExp("; *(P\\d{3}|P\\d{3}\\(Funbook\\)) Build");e[1]="Micromax $1";e[2]=0;e[3]=0;e[4]=0;h.device[262]=e;e=Object.create(null);e[0]=new RegExp("; *(MITO)[ _\\-]?([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[263]=e;e=Object.create(null);e[0]=new RegExp("; *(Cynus)[ _](F5|T\\d|.+?) *(?:Build|[;/\\)])");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[264]=e;e=Object.create(null);e[0]=new RegExp("; *(MODECOM )?(FreeTab) ?([^;/]+) Build");e[1]="$1$2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[265]=e;e=Object.create(null);e[0]=new RegExp("; *(MODECOM )([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[266]=e;e=Object.create(null);e[0]=new RegExp("; *(MZ\\d{3}\\+?|MZ\\d{3} 4G|Xoom|XOOM[^;/]*) Build");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[267]=e;e=Object.create(null);e[0]=new RegExp("; *(Milestone )(XT[^;/]*) Build");e[1]="Motorola $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[268]=e;e=Object.create(null);e[0]=new RegExp("; *(Motoroi ?x|Droid X|DROIDX) Build");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[269]=e;e=Object.create(null);e[0]=new RegExp("; *(Droid[^;/]*|DROID[^;/]*|Milestone[^;/]*|Photon|Triumph|Devour|Titanium) Build");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[270]=e;e=Object.create(null);e[0]=new RegExp("; *(A555|A85[34][^;/]*|A95[356]|ME[58]\\d{2}\\+?|ME600|ME632|ME722|MB\\d{3}\\+?|MT680|MT710|MT870|MT887|MT917|WX435|WX453|WX44[25]|XT\\d{3,4}[A-Z\\+]*|CL[iI]Q|CL[iI]Q XT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[271]=e;e=Object.create(null);e[0]=new RegExp("; *(Motorola MOT-|Motorola[ _\\-]|MOT\\-?)([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[272]=e;e=Object.create(null);e[0]=new RegExp("; *(Moto[_ ]?|MOT\\-)([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[273]=e;e=Object.create(null);e[0]=new RegExp("; *((?:MP[DQ]C|MPG\\d{1,4}|MP\\d{3,4}|MID(?:(?:10[234]|114|43|7[247]|8[24]|7)C|8[01]1))[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[274]=e;e=Object.create(null);e[0]=new RegExp("; *(?:MSI[ _])?(Primo\\d+|Enjoy[ _\\-][^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[275]=e;e=Object.create(null);e[0]=new RegExp("; *Multilaser[ _]([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[276]=e;e=Object.create(null);e[0]=new RegExp("; *(My)[_]?(Pad)[ _]([^;/]+) Build");e[1]="$1$2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[277]=e;e=Object.create(null);e[0]=new RegExp("; *(My)\\|?(Phone)[ _]([^;/]+) Build");e[1]="$1$2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[278]=e;e=Object.create(null);e[0]=new RegExp("; *(A\\d+)[ _](Duo)? Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[279]=e;e=Object.create(null);e[0]=new RegExp("; *(myTab[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[280]=e;e=Object.create(null);e[0]=new RegExp("; *(NABI2?-)([^;/]+) Build/");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[281]=e;e=Object.create(null);e[0]=new RegExp("; *(N-\\d+[CDE]) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[282]=e;e=Object.create(null);e[0]=new RegExp("; ?(NEC-)(.*) Build/");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[283]=e;e=Object.create(null);e[0]=new RegExp("; *(LT-NA7) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[284]=e;e=Object.create(null);e[0]=new RegExp("; *(NXM\\d+[A-z0-9_]*|Next\\d[A-z0-9_ \\-]*|NEXT\\d[A-z0-9_ \\-]*|Nextbook [A-z0-9_ ]*|DATAM803HC|M805)(?: Build|[\\);])");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[285]=e;e=Object.create(null);e[0]=new RegExp("; *(Nokia)([ _\\-]*)([^;/]*) Build");e[1]="$1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[286]=e;e=Object.create(null);e[0]=new RegExp("; *(Nook ?|Barnes & Noble Nook |BN )([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[287]=e;e=Object.create(null);e[0]=new RegExp("; *(NOOK )?(BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[288]=e;e=Object.create(null);e[0]=new RegExp("; Build/(Nook)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[289]=e;e=Object.create(null);e[0]=new RegExp("; *(OP110|OliPad[^;/]+) Build");e[1]="Olivetti $1";e[2]=0;e[3]=0;e[4]=0;h.device[290]=e;e=Object.create(null);e[0]=new RegExp("; *OMEGA[ _\\-](MID[^;/]+) Build");e[1]="Omega $1";e[2]=0;e[3]=0;e[4]=0;h.device[291]=e;e=Object.create(null);e[0]=new RegExp("^(MID7500|MID\\d+) Mozilla/5\\.0 \\(iPad;");e[1]="Omega $1";e[2]=0;e[3]=0;e[4]=0;h.device[292]=e;e=Object.create(null);e[0]=new RegExp("; *((?:CIUS|cius)[^;/]*) Build");e[1]="Openpeak $1";e[2]=0;e[3]=0;e[4]=0;h.device[293]=e;e=Object.create(null);e[0]=new RegExp("; *(Find ?(?:5|7a)|R8[012]\\d{1,2}|T703\\d{0,1}|U70\\d{1,2}T?|X90\\d{1,2}) Build");e[1]="Oppo $1";e[2]=0;e[3]=0;e[4]=0;h.device[294]=e;e=Object.create(null);e[0]=new RegExp("; *OPPO ?([^;/]+) Build/");e[1]="Oppo $1";e[2]=0;e[3]=0;e[4]=0;h.device[295]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Odys\\-|ODYS\\-|ODYS )([^;/]+) Build");e[1]="Odys $1";e[2]=0;e[3]=0;e[4]=0;h.device[296]=e;e=Object.create(null);e[0]=new RegExp("; *(SELECT) ?(7) Build");e[1]="Odys $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[297]=e;e=Object.create(null);e[0]=new RegExp("; *(PEDI)_(PLUS)_(W) Build");e[1]="Odys $1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[298]=e;e=Object.create(null);e[0]=new RegExp("; *(AEON|BRAVIO|FUSION|FUSION2IN1|Genio|EOS10|IEOS[^;/]*|IRON|Loox|LOOX|LOOX Plus|Motion|NOON|NOON_PRO|NEXT|OPOS|PEDI[^;/]*|PRIME[^;/]*|STUDYTAB|TABLO|Tablet-PC-4|UNO_X8|XELIO[^;/]*|Xelio ?\\d+ ?[Pp]ro|XENO10|XPRESS PRO) Build");e[1]="Odys $1";e[2]=0;e[3]=0;e[4]=0;h.device[299]=e;e=Object.create(null);e[0]=new RegExp("; (ONE [a-zA-Z]\\d+) Build/");e[1]="OnePlus $1";e[2]=0;e[3]=0;e[4]=0;h.device[300]=e;e=Object.create(null);e[0]=new RegExp("; (ONEPLUS [a-zA-Z]\\d+) Build/");e[1]="OnePlus $1";e[2]=0;e[3]=0;e[4]=0;h.device[301]=e;e=Object.create(null);e[0]=new RegExp("; *(TP-\\d+) Build/");e[1]="Orion $1";e[2]=0;e[3]=0;e[4]=0;h.device[302]=e;e=Object.create(null);e[0]=new RegExp("; *(G100W?) Build/");e[1]="PackardBell $1";e[2]=0;e[3]=0;e[4]=0;h.device[303]=e;e=Object.create(null);e[0]=new RegExp("; *(Panasonic)[_ ]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[304]=e;e=Object.create(null);e[0]=new RegExp("; *(FZ-A1B|JT-B1) Build");e[1]="Panasonic $1";e[2]=0;e[3]=0;e[4]=0;h.device[305]=e;e=Object.create(null);e[0]=new RegExp("; *(dL1|DL1) Build");e[1]="Panasonic $1";e[2]=0;e[3]=0;e[4]=0;h.device[306]=e;e=Object.create(null);e[0]=new RegExp("; *(SKY[ _])?(IM\\-[AT]\\d{3}[^;/]+).* Build/");e[1]="Pantech $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[307]=e;e=Object.create(null);e[0]=new RegExp("; *((?:ADR8995|ADR910L|ADR930L|ADR930VW|PTL21|P8000)(?: 4G)?) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[308]=e;e=Object.create(null);e[0]=new RegExp("; *Pantech([^;/]+).* Build/");e[1]="Pantech $1";e[2]=0;e[3]=0;e[4]=0;h.device[309]=e;e=Object.create(null);e[0]=new RegExp("; *(papyre)[ _\\-]([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[310]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Touchlet )?(X10\\.[^;/]+) Build/");e[1]="Pearl $1";e[2]=0;e[3]=0;e[4]=0;h.device[311]=e;e=Object.create(null);e[0]=new RegExp("; PHICOMM (i800) Build/");e[1]="Phicomm $1";e[2]=0;e[3]=0;e[4]=0;h.device[312]=e;e=Object.create(null);e[0]=new RegExp("; PHICOMM ([^;/]+) Build/");e[1]="Phicomm $1";e[2]=0;e[3]=0;e[4]=0;h.device[313]=e;e=Object.create(null);e[0]=new RegExp("; *(FWS\\d{3}[^;/]+) Build/");e[1]="Phicomm $1";e[2]=0;e[3]=0;e[4]=0;h.device[314]=e;e=Object.create(null);e[0]=new RegExp("; *(D633|D822|D833|T539|T939|V726|W335|W336|W337|W3568|W536|W5510|W626|W632|W6350|W6360|W6500|W732|W736|W737|W7376|W820|W832|W8355|W8500|W8510|W930) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[315]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Philips|PHILIPS)[ _]([^;/]+) Build");e[1]="Philips $1";e[2]=0;e[3]=0;e[4]=0;h.device[316]=e;e=Object.create(null);e[0]=new RegExp("Android 4\\..*; *(M[12356789]|U[12368]|S[123])\\ ?(pro)? Build");e[1]="Pipo $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[317]=e;e=Object.create(null);e[0]=new RegExp("; *(MOMO[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[318]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Polaroid[ _])?((?:MIDC\\d{3,}|PMID\\d{2,}|PTAB\\d{3,})[^;/]*)(\\/[^;/]*)? Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[319]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Polaroid )(Tablet) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[320]=e;e=Object.create(null);e[0]=new RegExp("; *(POMP)[ _\\-](.+?) *(?:Build|[;/\\)])");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[321]=e;e=Object.create(null);e[0]=new RegExp("; *(TB07STA|TB10STA|TB07FTA|TB10FTA) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[322]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Positivo )?((?:YPY|Ypy)[^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[323]=e;e=Object.create(null);e[0]=new RegExp("; *(MOB-[^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[324]=e;e=Object.create(null);e[0]=new RegExp("; *POV[ _\\-]([^;/]+) Build/");e[1]="POV $1";e[2]=0;e[3]=0;e[4]=0;h.device[325]=e;e=Object.create(null);e[0]=new RegExp("; *((?:TAB-PLAYTAB|TAB-PROTAB|PROTAB|PlayTabPro|Mobii[ _\\-]|TAB-P)[^;/]*) Build/");e[1]="POV $1";e[2]=0;e[3]=0;e[4]=0;h.device[326]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Prestigio )?((?:PAP|PMP)\\d[^;/]+) Build/");e[1]="Prestigio $1";e[2]=0;e[3]=0;e[4]=0;h.device[327]=e;e=Object.create(null);e[0]=new RegExp("; *(PLT[0-9]{4}.*) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[328]=e;e=Object.create(null);e[0]=new RegExp("; *(A2|A5|A8|A900)_?(Classic)? Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[329]=e;e=Object.create(null);e[0]=new RegExp("; *(Q[Mm]obile)_([^_]+)_([^_]+) Build");e[1]="Qmobile $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[330]=e;e=Object.create(null);e[0]=new RegExp("; *(Q\\-?[Mm]obile)[_ ](A[^;/]+) Build");e[1]="Qmobile $2";e[2]=0;e[3]=0;e[4]=0;h.device[331]=e;e=Object.create(null);e[0]=new RegExp("; *(Q\\-Smart)[ _]([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[332]=e;e=Object.create(null);e[0]=new RegExp("; *(Q\\-?[Mm]obile)[ _\\-](S[^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[333]=e;e=Object.create(null);e[0]=new RegExp("; *(TA1013) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[334]=e;e=Object.create(null);e[0]=new RegExp("; (RCT\\w+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[335]=e;e=Object.create(null);e[0]=new RegExp("; *(RK\\d+),? Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[336]=e;e=Object.create(null);e[0]=new RegExp(" Build/(RK\\d+)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[337]=e;e=Object.create(null);e[0]=new RegExp("; *(SAMSUNG |Samsung )?((?:Galaxy (?:Note II|S\\d)|GT-I9082|GT-I9205|GT-N7\\d{3}|SM-N9005)[^;/]*)\\/?[^;/]* Build/");e[1]="Samsung $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[338]=e;e=Object.create(null);e[0]=new RegExp("; *(Google )?(Nexus [Ss](?: 4G)?) Build/");e[1]="Samsung $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[339]=e;e=Object.create(null);e[0]=new RegExp("; *(SAMSUNG |Samsung )([^\\/]*)\\/[^ ]* Build/");e[1]="Samsung $2";e[2]=0;e[3]=0;e[4]=0;h.device[340]=e;e=Object.create(null);e[0]=new RegExp("; *(Galaxy(?: Ace| Nexus| S ?II+|Nexus S| with MCR 1.2| Mini Plus 4G)?) Build/");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[341]=e;e=Object.create(null);e[0]=new RegExp("; *(SAMSUNG[ _\\-] *)+([^;/]+) Build");e[1]="Samsung $2";e[2]=0;e[3]=0;e[4]=0;h.device[342]=e;e=Object.create(null);e[0]=new RegExp("; *(SAMSUNG-)?(GT\\-[BINPS]\\d{4}[^\\/]*)(\\/[^ ]*) Build");e[1]="Samsung $1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[343]=e;e=Object.create(null);e[0]=new RegExp("(?:; *|^)((?:GT\\-[BIiNPS]\\d{4}|I9\\d{2}0[A-Za-z\\+]?\\b)[^;/\\)]*?)(?:Build|Linux|MIUI|[;/\\)])");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[344]=e;e=Object.create(null);e[0]=new RegExp("; (SAMSUNG-)([A-Za-z0-9\\-]+).* Build/");e[1]="Samsung $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[345]=e;e=Object.create(null);e[0]=new RegExp("; *((?:SCH|SGH|SHV|SHW|SPH|SC|SM)\\-[A-Za-z0-9 ]+)(/?[^ ]*)? Build");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[346]=e;e=Object.create(null);e[0]=new RegExp(" ((?:SCH)\\-[A-Za-z0-9 ]+)(/?[^ ]*)? Build");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[347]=e;e=Object.create(null);e[0]=new RegExp("; *(Behold ?(?:2|II)|YP\\-G[^;/]+|EK-GC100|SCL21|I9300) Build");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[348]=e;e=Object.create(null);e[0]=new RegExp("; *(SH\\-?\\d\\d[^;/]+|SBM\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[349]=e;e=Object.create(null);e[0]=new RegExp("; *(SHARP[ -])([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[350]=e;e=Object.create(null);e[0]=new RegExp("; *(SPX[_\\-]\\d[^;/]*) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[351]=e;e=Object.create(null);e[0]=new RegExp("; *(SX7\\-PEARL\\.GmbH) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[352]=e;e=Object.create(null);e[0]=new RegExp("; *(SP[T]?\\-\\d{2}[^;/]*) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[353]=e;e=Object.create(null);e[0]=new RegExp("; *(SK\\-.*) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[354]=e;e=Object.create(null);e[0]=new RegExp("; *(?:SKYTEX|SX)-([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[355]=e;e=Object.create(null);e[0]=new RegExp("; *(IMAGINE [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[356]=e;e=Object.create(null);e[0]=new RegExp("; *(SmartQ) ?([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[357]=e;e=Object.create(null);e[0]=new RegExp("; *(WF7C|WF10C|SBT[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[358]=e;e=Object.create(null);e[0]=new RegExp("; *(SBM(?:003SH|005SH|006SH|007SH|102SH)) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[359]=e;e=Object.create(null);e[0]=new RegExp("; *(003P|101P|101P11C|102P) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[360]=e;e=Object.create(null);e[0]=new RegExp("; *(00\\dZ) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[361]=e;e=Object.create(null);e[0]=new RegExp("; HTC(X06HT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[362]=e;e=Object.create(null);e[0]=new RegExp("; *(001HT|X06HT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[363]=e;e=Object.create(null);e[0]=new RegExp("; *(201M) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[364]=e;e=Object.create(null);e[0]=new RegExp("; *(ST\\d{4}.*)Build/ST");e[1]="Trekstor $1";e[2]=0;e[3]=0;e[4]=0;h.device[365]=e;e=Object.create(null);e[0]=new RegExp("; *(ST\\d{4}.*) Build/");e[1]="Trekstor $1";e[2]=0;e[3]=0;e[4]=0;h.device[366]=e;e=Object.create(null);e[0]=new RegExp("; *(Sony ?Ericsson ?)([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[367]=e;e=Object.create(null);e[0]=new RegExp("; *((?:SK|ST|E|X|LT|MK|MT|WT)\\d{2}[a-z0-9]*(?:-o)?|R800i|U20i) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[368]=e;e=Object.create(null);e[0]=new RegExp("; *(Xperia (?:A8|Arc|Acro|Active|Live with Walkman|Mini|Neo|Play|Pro|Ray|X\\d+)[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[369]=e;e=Object.create(null);e[0]=new RegExp("; Sony (Tablet[^;/]+) Build");e[1]="Sony $1";e[2]=0;e[3]=0;e[4]=0;h.device[370]=e;e=Object.create(null);e[0]=new RegExp("; Sony ([^;/]+) Build");e[1]="Sony $1";e[2]=0;e[3]=0;e[4]=0;h.device[371]=e;e=Object.create(null);e[0]=new RegExp("; *(Sony)([A-Za-z0-9\\-]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[372]=e;e=Object.create(null);e[0]=new RegExp("; *(Xperia [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[373]=e;e=Object.create(null);e[0]=new RegExp("; *(C(?:1[0-9]|2[0-9]|53|55|6[0-9])[0-9]{2}|D[25]\\d{3}|D6[56]\\d{2}) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[374]=e;e=Object.create(null);e[0]=new RegExp("; *(SGP\\d{3}|SGPT\\d{2}) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[375]=e;e=Object.create(null);e[0]=new RegExp("; *(NW-Z1000Series) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[376]=e;e=Object.create(null);e[0]=new RegExp("PLAYSTATION 3");e[1]="PlayStation 3";e[2]=0;e[3]=0;e[4]=0;h.device[377]=e;e=Object.create(null);e[0]=new RegExp("(PlayStation (?:Portable|Vita|\\d+))");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[378]=e;e=Object.create(null);e[0]=new RegExp("; *((?:CSL_Spice|Spice|SPICE|CSL)[ _\\-]?)?([Mm][Ii])([ _\\-])?(\\d{3}[^;/]*) Build/");e[1]="$1$2$3$4";e[2]=0;e[3]=0;e[4]=0;h.device[379]=e;e=Object.create(null);e[0]=new RegExp("; *(Sprint )(.+?) *(?:Build|[;/])");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[380]=e;e=Object.create(null);e[0]=new RegExp("\\b(Sprint)[: ]([^;,/ ]+)");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[381]=e;e=Object.create(null);e[0]=new RegExp("; *(TAGI[ ]?)(MID) ?([^;/]+) Build/");e[1]="$1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[382]=e;e=Object.create(null);e[0]=new RegExp("; *(Oyster500|Opal 800) Build");e[1]="Tecmobile $1";e[2]=0;e[3]=0;e[4]=0;h.device[383]=e;e=Object.create(null);e[0]=new RegExp("; *(TECNO[ _])([^;/]+) Build/");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[384]=e;e=Object.create(null);e[0]=new RegExp("; *Android for (Telechips|Techvision) ([^ ]+) ");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[385]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Hub2) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[386]=e;e=Object.create(null);e[0]=new RegExp("; *(PAD) ?(100[12]) Build/");e[1]="Terra $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[387]=e;e=Object.create(null);e[0]=new RegExp("; *(T[BM]-\\d{3}[^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[388]=e;e=Object.create(null);e[0]=new RegExp("; *(tolino [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[389]=e;e=Object.create(null);e[0]=new RegExp("; *Build/.* (TOLINO_BROWSER)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[390]=e;e=Object.create(null);e[0]=new RegExp("; *(?:CJ[ -])?(ThL|THL)[ -]([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[391]=e;e=Object.create(null);e[0]=new RegExp("; *(T100|T200|T5|W100|W200|W8s) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[392]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile[ _]G2[ _]Touch) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[393]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile[ _]G2) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[394]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile myTouch Q) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[395]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile myTouch) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[396]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile_Espresso) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[397]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile G1) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[398]=e;e=Object.create(null);e[0]=new RegExp("\\b(T-Mobile ?)?(myTouch)[ _]?([34]G)[ _]?([^\\/]*) (?:Mozilla|Build)");e[1]="$1$2 $3 $4";e[2]=0;e[3]=0;e[4]=0;h.device[399]=e;e=Object.create(null);e[0]=new RegExp("\\b(T-Mobile)_([^_]+)_(.*) Build");e[1]="$1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[400]=e;e=Object.create(null);e[0]=new RegExp("\\b(T-Mobile)[_ ]?(.*?)Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[401]=e;e=Object.create(null);e[0]=new RegExp(" (ATP[0-9]{4}) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[402]=e;e=Object.create(null);e[0]=new RegExp(" *(TOOKY)[ _\\-]([^;/]+) ?(?:Build|;)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[403]=e;e=Object.create(null);e[0]=new RegExp("\\b(TOSHIBA_AC_AND_AZ|TOSHIBA_FOLIO_AND_A|FOLIO_AND_A)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[404]=e;e=Object.create(null);e[0]=new RegExp("; *([Ff]olio ?100) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[405]=e;e=Object.create(null);e[0]=new RegExp("; *(AT[0-9]{2,3}(?:\\-A|LE\\-A|PE\\-A|SE|a)?|AT7-A|AT1S0|Hikari-iFrame/WDPF-[^;/]+|THRiVE|Thrive) Build/");e[1]="Toshiba $1";e[2]=0;e[3]=0;e[4]=0;h.device[406]=e;e=Object.create(null);e[0]=new RegExp("; *(TM-MID\\d+[^;/]+|TOUCHMATE|MID-750) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[407]=e;e=Object.create(null);e[0]=new RegExp("; *(TM-SM\\d+[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[408]=e;e=Object.create(null);e[0]=new RegExp("; *(A10 [Bb]asic2?) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[409]=e;e=Object.create(null);e[0]=new RegExp("; *(TREQ[ _\\-])([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[410]=e;e=Object.create(null);e[0]=new RegExp("; *(X-?5|X-?3) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[411]=e;e=Object.create(null);e[0]=new RegExp("; *(A502\\+?|A936|A603|X1|X2) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[412]=e;e=Object.create(null);e[0]=new RegExp("(TOUCH(?:TAB|PAD).+?) Build/");e[1]="Versus $1";e[2]=0;e[3]=0;e[4]=0;h.device[413]=e;e=Object.create(null);e[0]=new RegExp("(VERTU) ([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[414]=e;e=Object.create(null);e[0]=new RegExp("; *(Videocon)[ _\\-]([^;/]+) *(?:Build|;)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[415]=e;e=Object.create(null);e[0]=new RegExp(" (VT\\d{2}[A-Za-z]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[416]=e;e=Object.create(null);e[0]=new RegExp("; *((?:ViewPad|ViewPhone|VSD)[^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[417]=e;e=Object.create(null);e[0]=new RegExp("; *(ViewSonic-)([^;/]+) Build/");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[418]=e;e=Object.create(null);e[0]=new RegExp("; *(GTablet.*) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[419]=e;e=Object.create(null);e[0]=new RegExp("; *([Vv]ivo)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[420]=e;e=Object.create(null);e[0]=new RegExp("(Vodafone) (.*) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[421]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Walton[ _\\-])?(Primo[ _\\-][^;/]+) Build");e[1]="Walton $1";e[2]=0;e[3]=0;e[4]=0;h.device[422]=e;e=Object.create(null);e[0]=new RegExp("; *(?:WIKO[ \\-])?(CINK\\+?|BARRY|BLOOM|DARKFULL|DARKMOON|DARKNIGHT|DARKSIDE|FIZZ|HIGHWAY|IGGY|OZZY|RAINBOW|STAIRWAY|SUBLIM|WAX|CINK [^;/]+) Build/");e[1]="Wiko $1";e[2]=0;e[3]=0;e[4]=0;h.device[423]=e;e=Object.create(null);e[0]=new RegExp("; *WellcoM-([^;/]+) Build");e[1]="Wellcom $1";e[2]=0;e[3]=0;e[4]=0;h.device[424]=e;e=Object.create(null);e[0]=new RegExp("(?:(WeTab)-Browser|; (wetab) Build)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[425]=e;e=Object.create(null);e[0]=new RegExp("; *(AT-AS[^;/]+) Build");e[1]="Wolfgang $1";e[2]=0;e[3]=0;e[4]=0;h.device[426]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Woxter|Wxt) ([^;/]+) Build");e[1]="Woxter $1";e[2]=0;e[3]=0;e[4]=0;h.device[427]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Xenta |Luna )?(TAB[234][0-9]{2}|TAB0[78]-\\d{3}|TAB0?9-\\d{3}|TAB1[03]-\\d{3}|SMP\\d{2}-\\d{3}) Build/");e[1]="Yarvik $1";e[2]=0;e[3]=0;e[4]=0;h.device[428]=e;e=Object.create(null);e[0]=new RegExp("; *([A-Z]{2,4})(M\\d{3,}[A-Z]{2})([^;\\)\\/]*)(?: Build|[;\\)])");e[1]="Yifang $1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[429]=e;e=Object.create(null);e[0]=new RegExp("; *((MI|HM|MI-ONE|Redmi)[ -](NOTE |Note )?[^;/]*) (Build|MIUI)/");e[1]="XiaoMi $1";e[2]=0;e[3]=0;e[4]=0;h.device[430]=e;e=Object.create(null);e[0]=new RegExp("; *XOLO[ _]([^;/]*tab.*) Build");e[1]="Xolo $1";e[2]=0;e[3]=0;e[4]=0;h.device[431]=e;e=Object.create(null);e[0]=new RegExp("; *XOLO[ _]([^;/]+) Build");e[1]="Xolo $1";e[2]=0;e[3]=0;e[4]=0;h.device[432]=e;e=Object.create(null);e[0]=new RegExp("; *(q\\d0{2,3}[a-z]?) Build");e[1]="Xolo $1";e[2]=0;e[3]=0;e[4]=0;h.device[433]=e;e=Object.create(null);e[0]=new RegExp("; *(PAD ?[79]\\d+[^;/]*|TelePAD\\d+[^;/]) Build");e[1]="Xoro $1";e[2]=0;e[3]=0;e[4]=0;h.device[434]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(?:ZOPO|Zopo)[ _]([^;/]+)|(ZP ?(?:\\d{2}[^;/]+|C2))|(C[2379])) Build");e[1]="$1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[435]=e;e=Object.create(null);e[0]=new RegExp("; *(ZiiLABS) (Zii[^;/]*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[436]=e;e=Object.create(null);e[0]=new RegExp("; *(Zii)_([^;/]*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[437]=e;e=Object.create(null);e[0]=new RegExp("; *(ARIZONA|(?:ATLAS|Atlas) W|D930|Grand (?:[SX][^;]*|Era|Memo[^;]*)|JOE|(?:Kis|KIS)\\b[^;]*|Libra|Light [^;]*|N8[056][01]|N850L|N8000|N9[15]\\d{2}|N9810|NX501|Optik|(?:Vip )Racer[^;]*|RacerII|RACERII|San Francisco[^;]*|V9[AC]|V55|V881|Z[679][0-9]{2}[A-z]?) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[438]=e;e=Object.create(null);e[0]=new RegExp("; *([A-Z]\\d+)_USA_[^;]* Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[439]=e;e=Object.create(null);e[0]=new RegExp("; *(SmartTab\\d+)[^;]* Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[440]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Blade|BLADE|ZTE-BLADE)([^;/]*) Build");e[1]="ZTE Blade$1";e[2]=0;e[3]=0;e[4]=0;h.device[441]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Skate|SKATE|ZTE-SKATE)([^;/]*) Build");e[1]="ZTE Skate$1";e[2]=0;e[3]=0;e[4]=0;h.device[442]=e;e=Object.create(null);e[0]=new RegExp("; *(Orange |Optimus )(Monte Carlo|San Francisco) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[443]=e;e=Object.create(null);e[0]=new RegExp("; *(?:ZXY-ZTE_|ZTE\\-U |ZTE[\\- _]|ZTE-C[_ ])([^;/]+) Build");e[1]="ZTE $1";e[2]=0;e[3]=0;e[4]=0;h.device[444]=e;e=Object.create(null);e[0]=new RegExp("; (BASE) (lutea|Lutea 2|Tab[^;]*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[445]=e;e=Object.create(null);e[0]=new RegExp("; (Avea inTouch 2|soft stone|tmn smart a7|Movistar[ _]Link) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[446]=e;e=Object.create(null);e[0]=new RegExp("; *(vp9plus)\\)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[447]=e;e=Object.create(null);e[0]=new RegExp("; ?(Cloud[ _]Z5|z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[448]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFOT|Kindle Fire) Build\\b");e[1]="Kindle Fire";e[2]=0;e[3]=0;e[4]=0;h.device[449]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFOTE|Amazon Kindle Fire2) Build\\b");e[1]="Kindle Fire 2";e[2]=0;e[3]=0;e[4]=0;h.device[450]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFTT) Build\\b");e[1]="Kindle Fire HD";e[2]=0;e[3]=0;e[4]=0;h.device[451]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFJWI) Build\\b");e[1]='Kindle Fire HD 8.9" WiFi';e[2]=0;e[3]=0;e[4]=0;h.device[452]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFJWA) Build\\b");e[1]='Kindle Fire HD 8.9" 4G';e[2]=0;e[3]=0;e[4]=0;h.device[453]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFSOWI) Build\\b");e[1]='Kindle Fire HD 7" WiFi';e[2]=0;e[3]=0;e[4]=0;h.device[454]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFTHWI) Build\\b");e[1]='Kindle Fire HDX 7" WiFi';e[2]=0;e[3]=0;e[4]=0;h.device[455]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFTHWA) Build\\b");e[1]='Kindle Fire HDX 7" 4G';e[2]=0;e[3]=0;e[4]=0;h.device[456]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFAPWI) Build\\b");e[1]='Kindle Fire HDX 8.9" WiFi';e[2]=0;e[3]=0;e[4]=0;h.device[457]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFAPWA) Build\\b");e[1]='Kindle Fire HDX 8.9" 4G';e[2]=0;e[3]=0;e[4]=0;h.device[458]=e;e=Object.create(null);e[0]=new RegExp("; ?Amazon ([^;/]+) Build\\b");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[459]=e;e=Object.create(null);e[0]=new RegExp("; ?(Kindle) Build\\b");e[1]="Kindle";e[2]=0;e[3]=0;e[4]=0;h.device[460]=e;e=Object.create(null);e[0]=new RegExp("; ?(Silk)/(\\d+)\\.(\\d+)(?:\\.([0-9\\-]+))? Build\\b");e[1]="Kindle Fire";e[2]=0;e[3]=0;e[4]=0;h.device[461]=e;e=Object.create(null);e[0]=new RegExp(" (Kindle)/(\\d+\\.\\d+)");e[1]="Kindle";e[2]=0;e[3]=0;e[4]=0;h.device[462]=e;e=Object.create(null);e[0]=new RegExp(" (Silk|Kindle)/(\\d+)\\.");e[1]="Kindle";e[2]=0;e[3]=0;e[4]=0;h.device[463]=e;e=Object.create(null);e[0]=new RegExp("(sprd)\\-([^/]+)/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[464]=e;e=Object.create(null);e[0]=new RegExp("; *(H\\d{2}00\\+?) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[465]=e;e=Object.create(null);e[0]=new RegExp("; *(iphone|iPhone5) Build/");e[1]="Xianghe $1";e[2]=0;e[3]=0;e[4]=0;h.device[466]=e;e=Object.create(null);e[0]=new RegExp("; *(e\\d{4}[a-z]?_?v\\d+|v89_[^;/]+)[^;/]+ Build/");e[1]="Xianghe $1";e[2]=0;e[3]=0;e[4]=0;h.device[467]=e;e=Object.create(null);e[0]=new RegExp("\\bUSCC[_\\-]?([^ ;/\\)]+)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[468]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:ALCATEL)[^;]*; *([^;,\\)]+)");e[1]="Alcatel $1";e[2]=0;e[3]=0;e[4]=0;h.device[469]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?|WpsLondonTest; ?)?(?:ASUS|Asus)[^;]*; *([^;,\\)]+)");e[1]="Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[470]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:DELL|Dell)[^;]*; *([^;,\\)]+)");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[471]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?|WpsLondonTest; ?)?(?:HTC|Htc|HTC_blocked[^;]*)[^;]*; *(?:HTC)?([^;,\\)]+)");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[472]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:HUAWEI)[^;]*; *(?:HUAWEI )?([^;,\\)]+)");e[1]="Huawei $1";e[2]=0;e[3]=0;e[4]=0;h.device[473]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:LG|Lg)[^;]*; *(?:LG[ \\-])?([^;,\\)]+)");e[1]="LG $1";e[2]=0;e[3]=0;e[4]=0;h.device[474]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:rv:11; )?(?:NOKIA|Nokia)[^;]*; *(?:NOKIA ?|Nokia ?|LUMIA ?|[Ll]umia ?)*(\\d{3,}[^;\\)]*)");e[1]="Lumia $1";e[2]=0;e[3]=0;e[4]=0;h.device[475]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:NOKIA|Nokia)[^;]*; *(RM-\\d{3,})");e[1]="Nokia $1";e[2]=0;e[3]=0;e[4]=0;h.device[476]=e;e=Object.create(null);e[0]=new RegExp("(?:Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)]|WPDesktop;) ?(?:ARM; ?Touch; ?|Touch; ?)?(?:NOKIA|Nokia)[^;]*; *(?:NOKIA ?|Nokia ?|LUMIA ?|[Ll]umia ?)*([^;\\)]+)");e[1]="Nokia $1";e[2]=0;e[3]=0;e[4]=0;h.device[477]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:Microsoft(?: Corporation)?)[^;]*; *([^;,\\)]+)");e[1]="Microsoft $1";e[2]=0;e[3]=0;e[4]=0;h.device[478]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?|WpsLondonTest; ?)?(?:SAMSUNG)[^;]*; *(?:SAMSUNG )?([^;,\\.\\)]+)");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[479]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?|WpsLondonTest; ?)?(?:TOSHIBA|FujitsuToshibaMobileCommun)[^;]*; *([^;,\\)]+)");e[1]="Toshiba $1";e[2]=0;e[3]=0;e[4]=0;h.device[480]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?|WpsLondonTest; ?)?([^;]+); *([^;,\\)]+)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[481]=e;e=Object.create(null);e[0]=new RegExp("(?:^|; )SAMSUNG\\-([A-Za-z0-9\\-]+).* Bada/");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[482]=e;e=Object.create(null);e[0]=new RegExp("\\(Mobile; ALCATEL ?(One|ONE) ?(Touch|TOUCH) ?([^;/]+)(?:/[^;]+)?; rv:[^\\)]+\\) Gecko/[^\\/]+ Firefox/");e[1]="Alcatel $1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[483]=e;e=Object.create(null);e[0]=new RegExp("\\(Mobile; (?:ZTE([^;]+)|(OpenC)); rv:[^\\)]+\\) Gecko/[^\\/]+ Firefox/");e[1]="ZTE $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[484]=e;e=Object.create(null);e[0]=new RegExp("Nokia(N[0-9]+)([A-z_\\-][A-z0-9_\\-]*)");e[1]="Nokia $1";e[2]=0;e[3]=0;e[4]=0;h.device[485]=e;e=Object.create(null);e[0]=new RegExp("(?:NOKIA|Nokia)(?:\\-| *)(?:([A-Za-z0-9]+)\\-[0-9a-f]{32}|([A-Za-z0-9\\-]+)(?:UCBrowser)|([A-Za-z0-9\\-]+))");e[1]="Nokia $1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[486]=e;e=Object.create(null);e[0]=new RegExp("Lumia ([A-Za-z0-9\\-]+)");e[1]="Lumia $1";e[2]=0;e[3]=0;e[4]=0;h.device[487]=e;e=Object.create(null);e[0]=new RegExp("\\(Symbian; U; S60 V5; [A-z]{2}\\-[A-z]{2}; (SonyEricsson|Samsung|Nokia|LG)([^;/]+)\\)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[488]=e;e=Object.create(null);e[0]=new RegExp("\\(Symbian(?:/3)?; U; ([^;]+);");e[1]="Nokia $1";e[2]=0;e[3]=0;e[4]=0;h.device[489]=e;e=Object.create(null);e[0]=new RegExp("BB10; ([A-Za-z0-9\\- ]+)\\)");e[1]="BlackBerry $1";e[2]=0;e[3]=0;e[4]=0;h.device[490]=e;e=Object.create(null);e[0]=new RegExp("Play[Bb]ook.+RIM Tablet OS");e[1]="BlackBerry Playbook";e[2]=0;e[3]=0;e[4]=0;h.device[491]=e;e=Object.create(null);e[0]=new RegExp("Black[Bb]erry ([0-9]+);");e[1]="BlackBerry $1";e[2]=0;e[3]=0;e[4]=0;h.device[492]=e;e=Object.create(null);e[0]=new RegExp("Black[Bb]erry([0-9]+)");e[1]="BlackBerry $1";e[2]=0;e[3]=0;e[4]=0;h.device[493]=e;e=Object.create(null);e[0]=new RegExp("Black[Bb]erry;");e[1]="BlackBerry";e[2]=0;e[3]=0;e[4]=0;h.device[494]=e;e=Object.create(null);e[0]=new RegExp("(Pre|Pixi)/\\d+\\.\\d+");e[1]="Palm $1";e[2]=0;e[3]=0;e[4]=0;h.device[495]=e;e=Object.create(null);e[0]=new RegExp("Palm([0-9]+)");e[1]="Palm $1";e[2]=0;e[3]=0;e[4]=0;h.device[496]=e;e=Object.create(null);e[0]=new RegExp("Treo([A-Za-z0-9]+)");e[1]="Palm Treo $1";e[2]=0;e[3]=0;e[4]=0;h.device[497]=e;e=Object.create(null);e[0]=new RegExp("webOS.*(P160U(?:NA)?)/(\\d+).(\\d+)");e[1]="HP Veer";e[2]=0;e[3]=0;e[4]=0;h.device[498]=e;e=Object.create(null);e[0]=new RegExp("(Touch[Pp]ad)/\\d+\\.\\d+");e[1]="HP TouchPad";e[2]=0;e[3]=0;e[4]=0;h.device[499]=e;e=Object.create(null);e[0]=new RegExp("HPiPAQ([A-Za-z0-9]+)/\\d+.\\d+");e[1]="HP iPAQ $1";e[2]=0;e[3]=0;e[4]=0;h.device[500]=e;e=Object.create(null);e[0]=new RegExp("PDA; (PalmOS)/sony/model ([a-z]+)/Revision");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[501]=e;e=Object.create(null);e[0]=new RegExp("(Apple\\s?TV)");e[1]="AppleTV";e[2]=0;e[3]=0;e[4]=0;h.device[502]=e;e=Object.create(null);e[0]=new RegExp("(QtCarBrowser)");e[1]="Tesla Model S";e[2]=0;e[3]=0;e[4]=0;h.device[503]=e;e=Object.create(null);e[0]=new RegExp("(iPhone|iPad|iPod)(\\d+,\\d+)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[504]=e;e=Object.create(null);e[0]=new RegExp("(iPad)(?:;| Simulator;)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[505]=e;e=Object.create(null);e[0]=new RegExp("(iPod)(?:;| touch;| Simulator;)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[506]=e;e=Object.create(null);e[0]=new RegExp("(iPhone)(?:;| Simulator;)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[507]=e;e=Object.create(null);e[0]=new RegExp("iPhone");e[1]="iPhone";e[2]=0;e[3]=0;e[4]=0;h.device[508]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/\\d.*\\(((?:Mac|iMac|PowerMac|PowerBook)[^\\d]*)(\\d+)(?:,|%2C)(\\d+)");e[1]="$1$2,$3";e[2]=0;e[3]=0;e[4]=0;h.device[509]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/\\d+\\.\\d+\\.\\d+ \\(x86_64\\)");e[1]="Mac";e[2]=0;e[3]=0;e[4]=0;h.device[510]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/\\d");e[1]="iOS-Device";e[2]=0;e[3]=0;e[4]=0;h.device[511]=e;e=Object.create(null);e[0]=new RegExp("acer_([A-Za-z0-9]+)_");e[1]="Acer $1";e[2]=0;e[3]=0;e[4]=0;h.device[512]=e;e=Object.create(null);e[0]=new RegExp("(?:ALCATEL|Alcatel)-([A-Za-z0-9\\-]+)");e[1]="Alcatel $1";e[2]=0;e[3]=0;e[4]=0;h.device[513]=e;e=Object.create(null);e[0]=new RegExp("(?:Amoi|AMOI)\\-([A-Za-z0-9]+)");e[1]="Amoi $1";e[2]=0;e[3]=0;e[4]=0;h.device[514]=e;e=Object.create(null);e[0]=new RegExp("(?:; |\\/|^)((?:Transformer (?:Pad|Prime) |Transformer |PadFone[ _]?)[A-Za-z0-9]*)");e[1]="Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[515]=e;e=Object.create(null);e[0]=new RegExp("(?:asus.*?ASUS|Asus|ASUS|asus)[\\- ;]*((?:Transformer (?:Pad|Prime) |Transformer |Padfone |Nexus[ _])?[A-Za-z0-9]+)");e[1]="Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[516]=e;e=Object.create(null);e[0]=new RegExp("\\bBIRD[ \\-\\.]([A-Za-z0-9]+)");e[1]="Bird $1";e[2]=0;e[3]=0;e[4]=0;h.device[517]=e;e=Object.create(null);e[0]=new RegExp("\\bDell ([A-Za-z0-9]+)");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[518]=e;e=Object.create(null);e[0]=new RegExp("DoCoMo/2\\.0 ([A-Za-z0-9]+)");e[1]="DoCoMo $1";e[2]=0;e[3]=0;e[4]=0;h.device[519]=e;e=Object.create(null);e[0]=new RegExp("([A-Za-z0-9]+)_W;FOMA");e[1]="DoCoMo $1";e[2]=0;e[3]=0;e[4]=0;h.device[520]=e;e=Object.create(null);e[0]=new RegExp("([A-Za-z0-9]+);FOMA");e[1]="DoCoMo $1";e[2]=0;e[3]=0;e[4]=0;h.device[521]=e;e=Object.create(null);e[0]=new RegExp("\\b(?:HTC/|HTC/[a-z0-9]+/)?HTC[ _\\-;]? *(.*?)(?:-?Mozilla|fingerPrint|[;/\\(\\)]|$)");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[522]=e;e=Object.create(null);e[0]=new RegExp("Huawei([A-Za-z0-9]+)");e[1]="Huawei $1";e[2]=0;e[3]=0;e[4]=0;h.device[523]=e;e=Object.create(null);e[0]=new RegExp("HUAWEI-([A-Za-z0-9]+)");e[1]="Huawei $1";e[2]=0;e[3]=0;e[4]=0;h.device[524]=e;e=Object.create(null);e[0]=new RegExp("vodafone([A-Za-z0-9]+)");e[1]="Huawei Vodafone $1";e[2]=0;e[3]=0;e[4]=0;h.device[525]=e;e=Object.create(null);e[0]=new RegExp("i\\-mate ([A-Za-z0-9]+)");e[1]="i-mate $1";e[2]=0;e[3]=0;e[4]=0;h.device[526]=e;e=Object.create(null);e[0]=new RegExp("Kyocera\\-([A-Za-z0-9]+)");e[1]="Kyocera $1";e[2]=0;e[3]=0;e[4]=0;h.device[527]=e;e=Object.create(null);e[0]=new RegExp("KWC\\-([A-Za-z0-9]+)");e[1]="Kyocera $1";e[2]=0;e[3]=0;e[4]=0;h.device[528]=e;e=Object.create(null);e[0]=new RegExp("Lenovo[_\\-]([A-Za-z0-9]+)");e[1]="Lenovo $1";e[2]=0;e[3]=0;e[4]=0;h.device[529]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/[0-9]+\\.[0-9]+\\.[0-9]+ \\([^;]*; *(LG)E *; *([^;]*) *;[^;]*;[^;]*;\\)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[530]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/1\\.1\\.1.*CE-HTML/1\\.\\d;(Vendor/)*(THOM[^;]*?)[;\\s](?:.*SW-Version/.*)*(LF[^;]+);?");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[531]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)(?:/1\\.1\\.1)?(?: ?\\(;;;;;\\))?; *CE-HTML(?:/1\\.\\d)?; *([^ ]+) ([^;]+);");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[532]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/1\\.1\\.1 \\(;;;;;\\) Maple_2011");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[533]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/[0-9]+\\.[0-9]+\\.[0-9]+ \\([^;]*; *(?:CUS:([^;]*)|([^;]+)) *; *([^;]*) *;.*;");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[534]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/[0-9]+\\.[0-9]+\\.[0-9]+");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[535]=e;e=Object.create(null);e[0]=new RegExp('LGE; (?:Media\\/)?([^;]*);[^;]*;[^;]*;?\\); "?LG NetCast(\\.TV|\\.Media|)-\\d+');e[1]="NetCast$2";e[2]=0;e[3]=0;e[4]=0;h.device[536]=e;e=Object.create(null);e[0]=new RegExp("InettvBrowser/[0-9]+\\.[0-9A-Z]+ \\([^;]*;(Sony)([^;]*);[^;]*;[^\\)]*\\)");e[1]="Inettv";e[2]=0;e[3]=0;e[4]=0;h.device[537]=e;e=Object.create(null);e[0]=new RegExp("InettvBrowser/[0-9]+\\.[0-9A-Z]+ \\([^;]*;([^;]*);[^;]*;[^\\)]*\\)");e[1]="Inettv";e[2]=0;e[3]=0;e[4]=0;h.device[538]=e;e=Object.create(null);e[0]=new RegExp("(?:InettvBrowser|TSBNetTV|NETTV|HBBTV)");e[1]="Inettv";e[2]=0;e[3]=0;e[4]=0;h.device[539]=e;e=Object.create(null);e[0]=new RegExp("Series60/\\d\\.\\d (LG)[\\-]?([A-Za-z0-9 \\-]+)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[540]=e;e=Object.create(null);e[0]=new RegExp("\\b(?:LGE[ \\-]LG\\-(?:AX)?|LGE |LGE?-LG|LGE?[ \\-]|LG[ /\\-]|lg[\\-])([A-Za-z0-9]+)\\b");e[1]="LG $1";e[2]=0;e[3]=0;e[4]=0;h.device[541]=e;e=Object.create(null);e[0]=new RegExp("(?:^LG[\\-]?|^LGE[\\-/]?)([A-Za-z]+[0-9]+[A-Za-z]*)");e[1]="LG $1";e[2]=0;e[3]=0;e[4]=0;h.device[542]=e;e=Object.create(null);e[0]=new RegExp("^LG([0-9]+[A-Za-z]*)");e[1]="LG $1";e[2]=0;e[3]=0;e[4]=0;h.device[543]=e;e=Object.create(null);e[0]=new RegExp("(KIN\\.[^ ]+) (\\d+)\\.(\\d+)");e[1]="Microsoft $1";e[2]=0;e[3]=0;e[4]=0;h.device[544]=e;e=Object.create(null);e[0]=new RegExp("(?:MSIE|XBMC).*\\b(Xbox)\\b");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[545]=e;e=Object.create(null);e[0]=new RegExp("; ARM; Trident/6\\.0; Touch[\\);]");e[1]="Microsoft Surface RT";e[2]=0;e[3]=0;e[4]=0;h.device[546]=e;e=Object.create(null);e[0]=new RegExp("Motorola\\-([A-Za-z0-9]+)");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[547]=e;e=Object.create(null);e[0]=new RegExp("MOTO\\-([A-Za-z0-9]+)");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[548]=e;e=Object.create(null);e[0]=new RegExp("MOT\\-([A-z0-9][A-z0-9\\-]*)");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[549]=e;e=Object.create(null);e[0]=new RegExp("Nintendo WiiU");e[1]="Nintendo Wii U";e[2]=0;e[3]=0;e[4]=0;h.device[550]=e;e=Object.create(null);e[0]=new RegExp("Nintendo (DS|3DS|DSi|Wii);");e[1]="Nintendo $1";e[2]=0;e[3]=0;e[4]=0;h.device[551]=e;e=Object.create(null);e[0]=new RegExp("(?:Pantech|PANTECH)[ _-]?([A-Za-z0-9\\-]+)");e[1]="Pantech $1";e[2]=0;e[3]=0;e[4]=0;h.device[552]=e;e=Object.create(null);e[0]=new RegExp("Philips([A-Za-z0-9]+)");e[1]="Philips $1";e[2]=0;e[3]=0;e[4]=0;h.device[553]=e;e=Object.create(null);e[0]=new RegExp("Philips ([A-Za-z0-9]+)");e[1]="Philips $1";e[2]=0;e[3]=0;e[4]=0;h.device[554]=e;e=Object.create(null);e[0]=new RegExp("(SMART-TV); .* Tizen ");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[555]=e;e=Object.create(null);e[0]=new RegExp("SymbianOS/9\\.\\d.* Samsung[/\\-]([A-Za-z0-9 \\-]+)");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[556]=e;e=Object.create(null);e[0]=new RegExp("(Samsung)(SGH)(i[0-9]+)");e[1]="$1 $2$3";e[2]=0;e[3]=0;e[4]=0;h.device[557]=e;e=Object.create(null);e[0]=new RegExp("SAMSUNG-ANDROID-MMS/([^;/]+)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[558]=e;e=Object.create(null);e[0]=new RegExp("SAMSUNG(?:; |[ -/])([A-Za-z0-9\\-]+)");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[559]=e;e=Object.create(null);e[0]=new RegExp("(Dreamcast)");e[1]="Sega $1";e[2]=0;e[3]=0;e[4]=0;h.device[560]=e;e=Object.create(null);e[0]=new RegExp("^SIE-([A-Za-z0-9]+)");e[1]="Siemens $1";e[2]=0;e[3]=0;e[4]=0;h.device[561]=e;e=Object.create(null);e[0]=new RegExp("Softbank/[12]\\.0/([A-Za-z0-9]+)");e[1]="Softbank $1";e[2]=0;e[3]=0;e[4]=0;h.device[562]=e;e=Object.create(null);e[0]=new RegExp("SonyEricsson ?([A-Za-z0-9\\-]+)");e[1]="Ericsson $1";e[2]=0;e[3]=0;e[4]=0;h.device[563]=e;e=Object.create(null);e[0]=new RegExp("Android [^;]+; ([^ ]+) (Sony)/");e[1]="$2 $1";e[2]=0;e[3]=0;e[4]=0;h.device[564]=e;e=Object.create(null);e[0]=new RegExp("(Sony)(?:BDP\\/|\\/)?([^ /;\\)]+)[ /;\\)]");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[565]=e;e=Object.create(null);e[0]=new RegExp("Puffin/[\\d\\.]+IT");e[1]="iPad";e[2]=0;e[3]=0;e[4]=0;h.device[566]=e;e=Object.create(null);e[0]=new RegExp("Puffin/[\\d\\.]+IP");e[1]="iPhone";e[2]=0;e[3]=0;e[4]=0;h.device[567]=e;e=Object.create(null);e[0]=new RegExp("Puffin/[\\d\\.]+AT");e[1]="Generic Tablet";e[2]=0;e[3]=0;e[4]=0;h.device[568]=e;e=Object.create(null);e[0]=new RegExp("Puffin/[\\d\\.]+AP");e[1]="Generic Smartphone";e[2]=0;e[3]=0;e[4]=0;h.device[569]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+\\.[\\d]+; [A-Za-z]{2}\\-[A-Za-z]{0,2}; WOWMobile (.+) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[570]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+\\.[\\d]+\\-update1; [A-Za-z]{2}\\-[A-Za-z]{0,2} *; *(.+?) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[571]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+(?:\\.[\\d]+){1,2}; *[A-Za-z]{2}[_\\-][A-Za-z]{0,2}\\-? *; *(.+?) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[572]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+(?:\\.[\\d]+){1,2}; *[A-Za-z]{0,2}\\- *; *(.+?) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[573]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+(?:\\.[\\d]+){1,2}; *[a-z]{0,2}[_\\-]?[A-Za-z]{0,2};? Build[/ ]");e[1]="Generic Smartphone";e[2]=0;e[3]=0;e[4]=0;h.device[574]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+(?:\\.[\\d]+){1,2}; *\\-?[A-Za-z]{2}; *(.+?) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[575]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+(?:\\.[\\d]+){1,2}(?:;.*)?; *(.+?) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[576]=e;e=Object.create(null);e[0]=new RegExp("(GoogleTV)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[577]=e;e=Object.create(null);e[0]=new RegExp("(WebTV)/\\d+.\\d+");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[578]=e;e=Object.create(null);e[0]=new RegExp("^(Roku)/DVP-\\d+\\.\\d+");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[579]=e;e=Object.create(null);e[0]=new RegExp("(Android 3\\.\\d|Opera Tablet|Tablet; .+Firefox/|Android.*(?:Tab|Pad))");e[1]="Generic Tablet";e[2]=0;e[3]=0;e[4]=0;h.device[580]=e;e=Object.create(null);e[0]=new RegExp("(Symbian|\\bS60(Version|V\\d)|\\bS60\\b|\\((Series 60|Windows Mobile|Palm OS|Bada); Opera Mini|Windows CE|Opera Mobi|BREW|Brew|Mobile; .+Firefox/|iPhone OS|Android|MobileSafari|Windows *Phone|\\(webOS/|PalmOS)");e[1]="Generic Smartphone";e[2]=0;e[3]=0;e[4]=0;h.device[581]=e;e=Object.create(null);e[0]=new RegExp("(hiptop|avantgo|plucker|xiino|blazer|elaine)");e[1]="Generic Smartphone";e[2]=0;e[3]=0;e[4]=0;h.device[582]=e;e=Object.create(null);e[0]=new RegExp("(bot|zao|borg|DBot|oegp|silk|Xenu|zeal|^NING|CCBot|crawl|htdig|lycos|slurp|teoma|voila|yahoo|Sogou|CiBra|Nutch|^Java/|^JNLP/|Daumoa|Genieo|ichiro|larbin|pompos|Scrapy|snappy|speedy|spider|msnbot|msrbot|vortex|^vortex|crawler|favicon|indexer|Riddler|scooter|scraper|scrubby|WhatWeb|WinHTTP|bingbot|BingPreview|openbot|gigabot|furlbot|polybot|seekbot|^voyager|archiver|Icarus6j|mogimogi|Netvibes|blitzbot|altavista|charlotte|findlinks|Retreiver|TLSProber|WordPress|SeznamBot|ProoXiBot|wsr\\-agent|Squrl Java|EtaoSpider|PaperLiBot|SputnikBot|A6\\-Indexer|netresearch|searchsight|baiduspider|YisouSpider|ICC\\-Crawler|http%20client|Python-urllib|dataparksearch|converacrawler|Screaming Frog|AppEngine-Google|YahooCacheSystem|fast\\-webcrawler|Sogou Pic Spider|semanticdiscovery|Innovazion Crawler|facebookexternalhit|Google.*/\\+/web/snippet|Google-HTTP-Java-Client|BlogBridge|IlTrovatore-Setaccio|InternetArchive|GomezAgent|WebThumbnail|heritrix|NewsGator|PagePeeker|Reaper|ZooShot|holmes|NL-Crawler|Pingdom|StatusCake|WhatsApp|masscan|Google Web Preview|Qwantify)");e[1]="Spider";e[2]=0;e[3]=0;e[4]=0;h.device[583]=e;e=Object.create(null);e[0]=new RegExp("^(1207|3gso|4thp|501i|502i|503i|504i|505i|506i|6310|6590|770s|802s|a wa|acer|acs\\-|airn|alav|asus|attw|au\\-m|aur |aus |abac|acoo|aiko|alco|alca|amoi|anex|anny|anyw|aptu|arch|argo|bmobile|bell|bird|bw\\-n|bw\\-u|beck|benq|bilb|blac|c55/|cdm\\-|chtm|capi|comp|cond|dall|dbte|dc\\-s|dica|ds\\-d|ds12|dait|devi|dmob|doco|dopo|dorado|el(?:38|39|48|49|50|55|58|68)|el[3456]\\d{2}dual|erk0|esl8|ex300|ez40|ez60|ez70|ezos|ezze|elai|emul|eric|ezwa|fake|fly\\-|fly_|g\\-mo|g1 u|g560|gf\\-5|grun|gene|go.w|good|grad|hcit|hd\\-m|hd\\-p|hd\\-t|hei\\-|hp i|hpip|hs\\-c|htc |htc\\-|htca|htcg)");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[584]=e;e=Object.create(null);e[0]=new RegExp("^(htcp|htcs|htct|htc_|haie|hita|huaw|hutc|i\\-20|i\\-go|i\\-ma|i\\-mobile|i230|iac|iac\\-|iac/|ig01|im1k|inno|iris|jata|kddi|kgt|kgt/|kpt |kwc\\-|klon|lexi|lg g|lg\\-a|lg\\-b|lg\\-c|lg\\-d|lg\\-f|lg\\-g|lg\\-k|lg\\-l|lg\\-m|lg\\-o|lg\\-p|lg\\-s|lg\\-t|lg\\-u|lg\\-w|lg/k|lg/l|lg/u|lg50|lg54|lge\\-|lge/|leno|m1\\-w|m3ga|m50/|maui|mc01|mc21|mcca|medi|meri|mio8|mioa|mo01|mo02|mode|modo|mot |mot\\-|mt50|mtp1|mtv |mate|maxo|merc|mits|mobi|motv|mozz|n100|n101|n102|n202|n203|n300|n302|n500|n502|n505|n700|n701|n710|nec\\-|nem\\-|newg|neon)");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[585]=e;e=Object.create(null);e[0]=new RegExp("^(netf|noki|nzph|o2 x|o2\\-x|opwv|owg1|opti|oran|ot\\-s|p800|pand|pg\\-1|pg\\-2|pg\\-3|pg\\-6|pg\\-8|pg\\-c|pg13|phil|pn\\-2|pt\\-g|palm|pana|pire|pock|pose|psio|qa\\-a|qc\\-2|qc\\-3|qc\\-5|qc\\-7|qc07|qc12|qc21|qc32|qc60|qci\\-|qwap|qtek|r380|r600|raks|rim9|rove|s55/|sage|sams|sc01|sch\\-|scp\\-|sdk/|se47|sec\\-|sec0|sec1|semc|sgh\\-|shar|sie\\-|sk\\-0|sl45|slid|smb3|smt5|sp01|sph\\-|spv |spv\\-|sy01|samm|sany|sava|scoo|send|siem|smar|smit|soft|sony|t\\-mo|t218|t250|t600|t610|t618|tcl\\-|tdg\\-|telm|tim\\-|ts70|tsm\\-|tsm3|tsm5|tx\\-9|tagt)");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[586]=e;e=Object.create(null);e[0]=new RegExp("^(talk|teli|topl|tosh|up.b|upg1|utst|v400|v750|veri|vk\\-v|vk40|vk50|vk52|vk53|vm40|vx98|virg|vertu|vite|voda|vulc|w3c |w3c\\-|wapj|wapp|wapu|wapm|wig |wapi|wapr|wapv|wapy|wapa|waps|wapt|winc|winw|wonu|x700|xda2|xdag|yas\\-|your|zte\\-|zeto|aste|audi|avan|blaz|brew|brvw|bumb|ccwa|cell|cldc|cmd\\-|dang|eml2|fetc|hipt|http|ibro|idea|ikom|ipaq|jbro|jemu|jigs|keji|kyoc|kyok|libw|m\\-cr|midp|mmef|moto|mwbp|mywa|newt|nok6|o2im|pant|pdxg|play|pluc|port|prox|rozo|sama|seri|smal|symb|treo|upsi|vx52|vx53|vx60|vx61|vx70|vx80|vx81|vx83|vx85|wap\\-|webc|whit|wmlb|xda\\-|xda_)");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[587]=e;e=Object.create(null);e[0]=new RegExp("^(Ice)$");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[588]=e;e=Object.create(null);e[0]=new RegExp("(wap[\\-\\ ]browser|maui|netfront|obigo|teleca|up\\.browser|midp|Opera Mini)");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[589]=e;h.device.length=590;h.os=Object.create(null);e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+ \\( ;(LG)E ;NetCast 4.0");e[1]=0;e[2]="2013";e[3]=0;e[4]=0;h.os[0]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+ \\( ;(LG)E ;NetCast 3.0");e[1]=0;e[2]="2012";e[3]=0;e[4]=0;h.os[1]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/1.1.1 \\(;;;;;\\) Maple_2011");e[1]="Samsung";e[2]="2011";e[3]=0;e[4]=0;h.os[2]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+ \\(;(Samsung);SmartTV([0-9]{4});.*FXPDEUC");e[1]=0;e[2]=0;e[3]="UE40F7000";e[4]=0;h.os[3]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+ \\(;(Samsung);SmartTV([0-9]{4});.*MST12DEUC");e[1]=0;e[2]=0;e[3]="UE32F4500";e[4]=0;h.os[4]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/1.1.1 \\(; (Philips);.*NETTV/4");e[1]=0;e[2]="2013";e[3]=0;e[4]=0;h.os[5]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/1.1.1 \\(; (Philips);.*NETTV/3");e[1]=0;e[2]="2012";e[3]=0;e[4]=0;h.os[6]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/1.1.1 \\(; (Philips);.*NETTV/2");e[1]=0;e[2]="2011";e[3]=0;e[4]=0;h.os[7]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+.*(firetv)-firefox-plugin (\\d+).(\\d+).(\\d+)");e[1]="FireHbbTV";e[2]=0;e[3]=0;e[4]=0;h.os[8]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+ \\(.*; ?([a-zA-Z]+) ?;.*(201[1-9]).*\\)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[9]=e;e=Object.create(null);e[0]=new RegExp("(Windows Phone) (?:OS[ /])?(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[10]=e;e=Object.create(null);e[0]=new RegExp("(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone)[ +]+(\\d+)[_\\.](\\d+)(?:[_\\.](\\d+))?.*Outlook-iOS-Android");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[11]=e;e=Object.create(null);e[0]=new RegExp("(Android)[ \\-/](\\d+)\\.(\\d+)(?:[.\\-]([a-z0-9]+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[12]=e;e=Object.create(null);e[0]=new RegExp("(Android) Donut");e[1]=0;e[2]="1";e[3]="2";e[4]=0;h.os[13]=e;e=Object.create(null);e[0]=new RegExp("(Android) Eclair");e[1]=0;e[2]="2";e[3]="1";e[4]=0;h.os[14]=e;e=Object.create(null);e[0]=new RegExp("(Android) Froyo");e[1]=0;e[2]="2";e[3]="2";e[4]=0;h.os[15]=e;e=Object.create(null);e[0]=new RegExp("(Android) Gingerbread");e[1]=0;e[2]="2";e[3]="3";e[4]=0;h.os[16]=e;e=Object.create(null);e[0]=new RegExp("(Android) Honeycomb");e[1]=0;e[2]="3";e[3]=0;e[4]=0;h.os[17]=e;e=Object.create(null);e[0]=new RegExp("^UCWEB.*; (Adr) (\\d+)\\.(\\d+)(?:[.\\-]([a-z0-9]+))?;");e[1]="Android";e[2]=0;e[3]=0;e[4]=0;h.os[18]=e;e=Object.create(null);e[0]=new RegExp("^UCWEB.*; (iPad|iPh|iPd) OS (\\d+)_(\\d+)(?:_(\\d+))?;");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[19]=e;e=Object.create(null);e[0]=new RegExp("^UCWEB.*; (wds) (\\d+)\\.(\\d+)(?:\\.(\\d+))?;");e[1]="Windows Phone";e[2]=0;e[3]=0;e[4]=0;h.os[20]=e;e=Object.create(null);e[0]=new RegExp("^(JUC).*; ?U; ?(?:Android)?(\\d+)\\.(\\d+)(?:[\\.\\-]([a-z0-9]+))?");e[1]="Android";e[2]=0;e[3]=0;e[4]=0;h.os[21]=e;e=Object.create(null);e[0]=new RegExp("(Silk-Accelerated=[a-z]{4,5})");e[1]="Android";e[2]=0;e[3]=0;e[4]=0;h.os[22]=e;e=Object.create(null);e[0]=new RegExp("(XBLWP7)");e[1]="Windows Phone";e[2]=0;e[3]=0;e[4]=0;h.os[23]=e;e=Object.create(null);e[0]=new RegExp("(Windows ?Mobile)");e[1]="Windows Mobile";e[2]=0;e[3]=0;e[4]=0;h.os[24]=e;e=Object.create(null);e[0]=new RegExp("(Windows (?:NT 5\\.2|NT 5\\.1))");e[1]="Windows";e[2]="XP";e[3]=0;e[4]=0;h.os[25]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.1)");e[1]="Windows";e[2]="7";e[3]=0;e[4]=0;h.os[26]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.0)");e[1]="Windows";e[2]="Vista";e[3]=0;e[4]=0;h.os[27]=e;e=Object.create(null);e[0]=new RegExp("(Win 9x 4\\.90)");e[1]="Windows";e[2]="ME";e[3]=0;e[4]=0;h.os[28]=e;e=Object.create(null);e[0]=new RegExp("(Windows 98|Windows XP|Windows ME|Windows 95|Windows CE|Windows 7|Windows NT 4\\.0|Windows Vista|Windows 2000|Windows 3.1)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[29]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.2; ARM;)");e[1]="Windows";e[2]="RT";e[3]=0;e[4]=0;h.os[30]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.2)");e[1]="Windows";e[2]="8";e[3]=0;e[4]=0;h.os[31]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.3; ARM;)");e[1]="Windows";e[2]="RT 8.1";e[3]=0;e[4]=0;h.os[32]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.3)");e[1]="Windows";e[2]="8.1";e[3]=0;e[4]=0;h.os[33]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.4)");e[1]="Windows";e[2]="10";e[3]=0;e[4]=0;h.os[34]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 10\\.0)");e[1]="Windows";e[2]="10";e[3]=0;e[4]=0;h.os[35]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 5\\.0)");e[1]="Windows";e[2]="2000";e[3]=0;e[4]=0;h.os[36]=e;e=Object.create(null);e[0]=new RegExp("(WinNT4.0)");e[1]="Windows";e[2]="NT 4.0";e[3]=0;e[4]=0;h.os[37]=e;e=Object.create(null);e[0]=new RegExp("(Windows ?CE)");e[1]="Windows";e[2]="CE";e[3]=0;e[4]=0;h.os[38]=e;e=Object.create(null);e[0]=new RegExp("Win ?(95|98|3.1|NT|ME|2000)");e[1]="Windows";e[2]="$1";e[3]=0;e[4]=0;h.os[39]=e;e=Object.create(null);e[0]=new RegExp("Win16");e[1]="Windows";e[2]="3.1";e[3]=0;e[4]=0;h.os[40]=e;e=Object.create(null);e[0]=new RegExp("Win32");e[1]="Windows";e[2]="95";e[3]=0;e[4]=0;h.os[41]=e;e=Object.create(null);e[0]=new RegExp("^Box.*Windows/([\\d.]+);");e[1]="Windows";e[2]="$1";e[3]=0;e[4]=0;h.os[42]=e;e=Object.create(null);e[0]=new RegExp("(Tizen)[/ ](\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[43]=e;e=Object.create(null);e[0]=new RegExp("((?:Mac[ +]?|; )OS[ +]X)[\\s+/](?:(\\d+)[_.](\\d+)(?:[_.](\\d+))?|Mach-O)");e[1]="Mac OS X";e[2]=0;e[3]=0;e[4]=0;h.os[44]=e;e=Object.create(null);e[0]=new RegExp(" (Dar)(win)/(9).(\\d+).*\\((?:i386|x86_64|Power Macintosh)\\)");e[1]="Mac OS X";e[2]="10";e[3]="5";e[4]=0;h.os[45]=e;e=Object.create(null);e[0]=new RegExp(" (Dar)(win)/(10).(\\d+).*\\((?:i386|x86_64)\\)");e[1]="Mac OS X";e[2]="10";e[3]="6";e[4]=0;h.os[46]=e;e=Object.create(null);e[0]=new RegExp(" (Dar)(win)/(11).(\\d+).*\\((?:i386|x86_64)\\)");e[1]="Mac OS X";e[2]="10";e[3]="7";e[4]=0;h.os[47]=e;e=Object.create(null);e[0]=new RegExp(" (Dar)(win)/(12).(\\d+).*\\((?:i386|x86_64)\\)");e[1]="Mac OS X";e[2]="10";e[3]="8";e[4]=0;h.os[48]=e;e=Object.create(null);e[0]=new RegExp(" (Dar)(win)/(13).(\\d+).*\\((?:i386|x86_64)\\)");e[1]="Mac OS X";e[2]="10";e[3]="9";e[4]=0;h.os[49]=e;e=Object.create(null);e[0]=new RegExp("Mac_PowerPC");e[1]="Mac OS";e[2]=0;e[3]=0;e[4]=0;h.os[50]=e;e=Object.create(null);e[0]=new RegExp("(?:PPC|Intel) (Mac OS X)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[51]=e;e=Object.create(null);e[0]=new RegExp("^Box.*;(Darwin)/(10)\\.(1\\d)(?:\\.(\\d+))?");e[1]="Mac OS X";e[2]=0;e[3]=0;e[4]=0;h.os[52]=e;e=Object.create(null);e[0]=new RegExp("(Apple\\s?TV)(?:/(\\d+)\\.(\\d+))?");e[1]="ATV OS X";e[2]=0;e[3]=0;e[4]=0;h.os[53]=e;e=Object.create(null);e[0]=new RegExp("(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(\\d+)[_\\.](\\d+)(?:[_\\.](\\d+))?");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[54]=e;e=Object.create(null);e[0]=new RegExp("(iPhone|iPad|iPod); Opera");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[55]=e;e=Object.create(null);e[0]=new RegExp("(iPhone|iPad|iPod).*Mac OS X.*Version/(\\d+)\\.(\\d+)");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[56]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(5)48\\.0\\.3.* Darwin/11\\.0\\.0");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[57]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(5)48\\.(0)\\.4.* Darwin/(1)1\\.0\\.0");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[58]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(5)48\\.(1)\\.4");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[59]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(4)85\\.1(3)\\.9");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[60]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(6)09\\.(1)\\.4");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[61]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(6)(0)9");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[62]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/6(7)2\\.(1)\\.13");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[63]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/6(7)2\\.(1)\\.(1)4");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[64]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/6(7)(2)\\.1\\.15");e[1]="iOS";e[2]="7";e[3]="1";e[4]=0;h.os[65]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/6(7)2\\.(0)\\.(?:2|8)");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[66]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/709\\.1");e[1]="iOS";e[2]="8";e[3]="0.b5";e[4]=0;h.os[67]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/711\\.(\\d)");e[1]="iOS";e[2]="8";e[3]=0;e[4]=0;h.os[68]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/(720)\\.(\\d)");e[1]="Mac OS X";e[2]="10";e[3]="10";e[4]=0;h.os[69]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/(760)\\.(\\d)");e[1]="Mac OS X";e[2]="10";e[3]="11";e[4]=0;h.os[70]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/758\\.(\\d)");e[1]="iOS";e[2]="9";e[3]=0;e[4]=0;h.os[71]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/808\\.(\\d)");e[1]="iOS";e[2]="10";e[3]=0;e[4]=0;h.os[72]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/16\\.\\d+.*\\(x86_64\\)");e[1]="Mac OS X";e[2]="10";e[3]="12";e[4]=0;h.os[73]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/15\\.\\d+.*\\(x86_64\\)");e[1]="Mac OS X";e[2]="10";e[3]="11";e[4]=0;h.os[74]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/(9)\\.\\d+");e[1]="iOS";e[2]="1";e[3]=0;e[4]=0;h.os[75]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/(10)\\.\\d+");e[1]="iOS";e[2]="4";e[3]=0;e[4]=0;h.os[76]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/(11)\\.\\d+");e[1]="iOS";e[2]="5";e[3]=0;e[4]=0;h.os[77]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/(13)\\.\\d+");e[1]="iOS";e[2]="6";e[3]=0;e[4]=0;h.os[78]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/6.* Darwin/(14)\\.\\d+");e[1]="iOS";e[2]="7";e[3]=0;e[4]=0;h.os[79]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/7.* Darwin/(14)\\.\\d+");e[1]="iOS";e[2]="8";e[3]="0";e[4]=0;h.os[80]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/7.* Darwin/(15)\\.\\d+");e[1]="iOS";e[2]="9";e[3]="0";e[4]=0;h.os[81]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/16\\.5\\.\\d+");e[1]="iOS";e[2]="10";e[3]="3";e[4]=0;h.os[82]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/16\\.6\\.\\d+");e[1]="iOS";e[2]="10";e[3]="3";e[4]="2";h.os[83]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/16\\.7\\.\\d+");e[1]="iOS";e[2]="10";e[3]="3";e[4]="3";h.os[84]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/(16)\\.\\d+");e[1]="iOS";e[2]="10";e[3]=0;e[4]=0;h.os[85]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/17\\.0\\.\\d+");e[1]="iOS";e[2]="11";e[3]="0";e[4]=0;h.os[86]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/17\\.2\\.\\d+");e[1]="iOS";e[2]="11";e[3]="1";e[4]=0;h.os[87]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/17\\.3\\.\\d+");e[1]="iOS";e[2]="11";e[3]="2";e[4]=0;h.os[88]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/(17)\\.\\d+");e[1]="iOS";e[2]="11";e[3]=0;e[4]=0;h.os[89]=e;e=Object.create(null);e[0]=new RegExp("\\b(iOS[ /]|iOS; |iPhone(?:/| v|[ _]OS[/,]|; | OS : |\\d,\\d/|\\d,\\d; )|iPad/)(\\d{1,2})[_\\.](\\d{1,2})(?:[_\\.](\\d+))?");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[90]=e;e=Object.create(null);e[0]=new RegExp("\\((iOS);");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[91]=e;e=Object.create(null);e[0]=new RegExp("(tvOS)/(\\d+).(\\d+)");e[1]="tvOS";e[2]=0;e[3]=0;e[4]=0;h.os[92]=e;e=Object.create(null);e[0]=new RegExp("(CrOS) [a-z0-9_]+ (\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Chrome OS";e[2]=0;e[3]=0;e[4]=0;h.os[93]=e;e=Object.create(null);e[0]=new RegExp("([Dd]ebian)");e[1]="Debian";e[2]=0;e[3]=0;e[4]=0;h.os[94]=e;e=Object.create(null);e[0]=new RegExp("(Linux Mint)(?:/(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[95]=e;e=Object.create(null);e[0]=new RegExp("(Mandriva)(?: Linux)?/(?:[\\d.-]+m[a-z]{2}(\\d+).(\\d))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[96]=e;e=Object.create(null);e[0]=new RegExp("(Symbian[Oo][Ss])[/ ](\\d+)\\.(\\d+)");e[1]="Symbian OS";e[2]=0;e[3]=0;e[4]=0;h.os[97]=e;e=Object.create(null);e[0]=new RegExp("(Symbian/3).+NokiaBrowser/7\\.3");e[1]="Symbian^3 Anna";e[2]=0;e[3]=0;e[4]=0;h.os[98]=e;e=Object.create(null);e[0]=new RegExp("(Symbian/3).+NokiaBrowser/7\\.4");e[1]="Symbian^3 Belle";e[2]=0;e[3]=0;e[4]=0;h.os[99]=e;e=Object.create(null);e[0]=new RegExp("(Symbian/3)");e[1]="Symbian^3";e[2]=0;e[3]=0;e[4]=0;h.os[100]=e;e=Object.create(null);e[0]=new RegExp("\\b(Series 60|SymbOS|S60Version|S60V\\d|S60\\b)");e[1]="Symbian OS";e[2]=0;e[3]=0;e[4]=0;h.os[101]=e;e=Object.create(null);e[0]=new RegExp("(MeeGo)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[102]=e;e=Object.create(null);e[0]=new RegExp("Symbian [Oo][Ss]");e[1]="Symbian OS";e[2]=0;e[3]=0;e[4]=0;h.os[103]=e;e=Object.create(null);e[0]=new RegExp("Series40;");e[1]="Nokia Series 40";e[2]=0;e[3]=0;e[4]=0;h.os[104]=e;e=Object.create(null);e[0]=new RegExp("Series30Plus;");e[1]="Nokia Series 30 Plus";e[2]=0;e[3]=0;e[4]=0;h.os[105]=e;e=Object.create(null);e[0]=new RegExp("(BB10);.+Version/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="BlackBerry OS";e[2]=0;e[3]=0;e[4]=0;h.os[106]=e;e=Object.create(null);e[0]=new RegExp("(Black[Bb]erry)[0-9a-z]+/(\\d+)\\.(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="BlackBerry OS";e[2]=0;e[3]=0;e[4]=0;h.os[107]=e;e=Object.create(null);e[0]=new RegExp("(Black[Bb]erry).+Version/(\\d+)\\.(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="BlackBerry OS";e[2]=0;e[3]=0;e[4]=0;h.os[108]=e;e=Object.create(null);e[0]=new RegExp("(RIM Tablet OS) (\\d+)\\.(\\d+)\\.(\\d+)");e[1]="BlackBerry Tablet OS";e[2]=0;e[3]=0;e[4]=0;h.os[109]=e;e=Object.create(null);e[0]=new RegExp("(Play[Bb]ook)");e[1]="BlackBerry Tablet OS";e[2]=0;e[3]=0;e[4]=0;h.os[110]=e;e=Object.create(null);e[0]=new RegExp("(Black[Bb]erry)");e[1]="BlackBerry OS";e[2]=0;e[3]=0;e[4]=0;h.os[111]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/18.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="1";e[3]="0";e[4]="1";h.os[112]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/18.1 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="1";e[3]="1";e[4]=0;h.os[113]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/26.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="1";e[3]="2";e[4]=0;h.os[114]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/28.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="1";e[3]="3";e[4]=0;h.os[115]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/30.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="1";e[3]="4";e[4]=0;h.os[116]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/32.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="2";e[3]="0";e[4]=0;h.os[117]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/34.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="2";e[3]="1";e[4]=0;h.os[118]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]=0;e[3]=0;e[4]=0;h.os[119]=e;e=Object.create(null);e[0]=new RegExp("(BREW)[ /](\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[120]=e;e=Object.create(null);e[0]=new RegExp("(BREW);");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[121]=e;e=Object.create(null);e[0]=new RegExp("(Brew MP|BMP)[ /](\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Brew MP";e[2]=0;e[3]=0;e[4]=0;h.os[122]=e;e=Object.create(null);e[0]=new RegExp("BMP;");e[1]="Brew MP";e[2]=0;e[3]=0;e[4]=0;h.os[123]=e;e=Object.create(null);e[0]=new RegExp("(GoogleTV)(?: (\\d+)\\.(\\d+)(?:\\.(\\d+))?|/[\\da-z]+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[124]=e;e=Object.create(null);e[0]=new RegExp("(WebTV)/(\\d+).(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[125]=e;e=Object.create(null);e[0]=new RegExp("(CrKey)(?:[/](\\d+)\\.(\\d+)(?:\\.(\\d+))?)?");e[1]="Chromecast";e[2]=0;e[3]=0;e[4]=0;h.os[126]=e;e=Object.create(null);e[0]=new RegExp("(hpw|web)OS/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="webOS";e[2]=0;e[3]=0;e[4]=0;h.os[127]=e;e=Object.create(null);e[0]=new RegExp("(VRE);");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[128]=e;e=Object.create(null);e[0]=new RegExp("(Fedora|Red Hat|PCLinuxOS|Puppy|Ubuntu|Kindle|Bada|Lubuntu|BackTrack|Slackware|(?:Free|Open|Net|\\b)BSD)[/ ](\\d+)\\.(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[129]=e;e=Object.create(null);e[0]=new RegExp("(Linux)[ /](\\d+)\\.(\\d+)(?:\\.(\\d+))?.*gentoo");e[1]="Gentoo";e[2]=0;e[3]=0;e[4]=0;h.os[130]=e;e=Object.create(null);e[0]=new RegExp("\\((Bada);");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[131]=e;e=Object.create(null);e[0]=new RegExp("(Windows|Android|WeTab|Maemo|Web0S)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[132]=e;e=Object.create(null);e[0]=new RegExp("(Ubuntu|Kubuntu|Arch Linux|CentOS|Slackware|Gentoo|openSUSE|SUSE|Red Hat|Fedora|PCLinuxOS|Mageia|(?:Free|Open|Net|\\b)BSD)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[133]=e;e=Object.create(null);e[0]=new RegExp("(Linux)(?:[ /](\\d+)\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[134]=e;e=Object.create(null);e[0]=new RegExp("SunOS");e[1]="Solaris";e[2]=0;e[3]=0;e[4]=0;h.os[135]=e;e=Object.create(null);e[0]=new RegExp("^(Roku)/DVP-(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[136]=e;e=Object.create(null);e[0]=new RegExp("(iOS) (\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[137]=e;h.os.length=138});var q4=Y((AD,j8)=>{j8.exports=[{name:"nodejs",version:"0.2.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.3.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.4.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.5.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.6.0",date:"2011-11-04",lts:!1,security:!1},{name:"nodejs",version:"0.7.0",date:"2012-01-17",lts:!1,security:!1},{name:"nodejs",version:"0.8.0",date:"2012-06-22",lts:!1,security:!1},{name:"nodejs",version:"0.9.0",date:"2012-07-20",lts:!1,security:!1},{name:"nodejs",version:"0.10.0",date:"2013-03-11",lts:!1,security:!1},{name:"nodejs",version:"0.11.0",date:"2013-03-28",lts:!1,security:!1},{name:"nodejs",version:"0.12.0",date:"2015-02-06",lts:!1,security:!1},{name:"iojs",version:"1.0.0",date:"2015-01-14"},{name:"iojs",version:"1.1.0",date:"2015-02-03"},{name:"iojs",version:"1.2.0",date:"2015-02-11"},{name:"iojs",version:"1.3.0",date:"2015-02-20"},{name:"iojs",version:"1.5.0",date:"2015-03-06"},{name:"iojs",version:"1.6.0",date:"2015-03-20"},{name:"iojs",version:"2.0.0",date:"2015-05-04"},{name:"iojs",version:"2.1.0",date:"2015-05-24"},{name:"iojs",version:"2.2.0",date:"2015-06-01"},{name:"iojs",version:"2.3.0",date:"2015-06-13"},{name:"iojs",version:"2.4.0",date:"2015-07-17"},{name:"iojs",version:"2.5.0",date:"2015-07-28"},{name:"iojs",version:"3.0.0",date:"2015-08-04"},{name:"iojs",version:"3.1.0",date:"2015-08-19"},{name:"iojs",version:"3.2.0",date:"2015-08-25"},{name:"iojs",version:"3.3.0",date:"2015-09-02"},{name:"nodejs",version:"4.0.0",date:"2015-09-08",lts:!1,security:!1},{name:"nodejs",version:"4.1.0",date:"2015-09-17",lts:!1,security:!1},{name:"nodejs",version:"4.2.0",date:"2015-10-12",lts:"Argon",security:!1},{name:"nodejs",version:"4.3.0",date:"2016-02-09",lts:"Argon",security:!1},{name:"nodejs",version:"4.4.0",date:"2016-03-08",lts:"Argon",security:!1},{name:"nodejs",version:"4.5.0",date:"2016-08-16",lts:"Argon",security:!1},{name:"nodejs",version:"4.6.0",date:"2016-09-27",lts:"Argon",security:!0},{name:"nodejs",version:"4.7.0",date:"2016-12-06",lts:"Argon",security:!1},{name:"nodejs",version:"4.8.0",date:"2017-02-21",lts:"Argon",security:!1},{name:"nodejs",version:"4.9.0",date:"2018-03-28",lts:"Argon",security:!0},{name:"nodejs",version:"5.0.0",date:"2015-10-29",lts:!1,security:!1},{name:"nodejs",version:"5.1.0",date:"2015-11-17",lts:!1,security:!1},{name:"nodejs",version:"5.2.0",date:"2015-12-09",lts:!1,security:!1},{name:"nodejs",version:"5.3.0",date:"2015-12-15",lts:!1,security:!1},{name:"nodejs",version:"5.4.0",date:"2016-01-06",lts:!1,security:!1},{name:"nodejs",version:"5.5.0",date:"2016-01-21",lts:!1,security:!1},{name:"nodejs",version:"5.6.0",date:"2016-02-09",lts:!1,security:!1},{name:"nodejs",version:"5.7.0",date:"2016-02-23",lts:!1,security:!1},{name:"nodejs",version:"5.8.0",date:"2016-03-09",lts:!1,security:!1},{name:"nodejs",version:"5.9.0",date:"2016-03-16",lts:!1,security:!1},{name:"nodejs",version:"5.10.0",date:"2016-04-01",lts:!1,security:!1},{name:"nodejs",version:"5.11.0",date:"2016-04-21",lts:!1,security:!1},{name:"nodejs",version:"5.12.0",date:"2016-06-23",lts:!1,security:!1},{name:"nodejs",version:"6.0.0",date:"2016-04-26",lts:!1,security:!1},{name:"nodejs",version:"6.1.0",date:"2016-05-05",lts:!1,security:!1},{name:"nodejs",version:"6.2.0",date:"2016-05-17",lts:!1,security:!1},{name:"nodejs",version:"6.3.0",date:"2016-07-06",lts:!1,security:!1},{name:"nodejs",version:"6.4.0",date:"2016-08-12",lts:!1,security:!1},{name:"nodejs",version:"6.5.0",date:"2016-08-26",lts:!1,security:!1},{name:"nodejs",version:"6.6.0",date:"2016-09-14",lts:!1,security:!1},{name:"nodejs",version:"6.7.0",date:"2016-09-27",lts:!1,security:!0},{name:"nodejs",version:"6.8.0",date:"2016-10-12",lts:!1,security:!1},{name:"nodejs",version:"6.9.0",date:"2016-10-18",lts:"Boron",security:!1},{name:"nodejs",version:"6.10.0",date:"2017-02-21",lts:"Boron",security:!1},{name:"nodejs",version:"6.11.0",date:"2017-06-06",lts:"Boron",security:!1},{name:"nodejs",version:"6.12.0",date:"2017-11-06",lts:"Boron",security:!1},{name:"nodejs",version:"6.13.0",date:"2018-02-10",lts:"Boron",security:!1},{name:"nodejs",version:"6.14.0",date:"2018-03-28",lts:"Boron",security:!0},{name:"nodejs",version:"6.15.0",date:"2018-11-27",lts:"Boron",security:!0},{name:"nodejs",version:"6.16.0",date:"2018-12-26",lts:"Boron",security:!1},{name:"nodejs",version:"6.17.0",date:"2019-02-28",lts:"Boron",security:!0},{name:"nodejs",version:"7.0.0",date:"2016-10-25",lts:!1,security:!1},{name:"nodejs",version:"7.1.0",date:"2016-11-08",lts:!1,security:!1},{name:"nodejs",version:"7.2.0",date:"2016-11-22",lts:!1,security:!1},{name:"nodejs",version:"7.3.0",date:"2016-12-20",lts:!1,security:!1},{name:"nodejs",version:"7.4.0",date:"2017-01-04",lts:!1,security:!1},{name:"nodejs",version:"7.5.0",date:"2017-01-31",lts:!1,security:!1},{name:"nodejs",version:"7.6.0",date:"2017-02-21",lts:!1,security:!1},{name:"nodejs",version:"7.7.0",date:"2017-02-28",lts:!1,security:!1},{name:"nodejs",version:"7.8.0",date:"2017-03-29",lts:!1,security:!1},{name:"nodejs",version:"7.9.0",date:"2017-04-11",lts:!1,security:!1},{name:"nodejs",version:"7.10.0",date:"2017-05-02",lts:!1,security:!1},{name:"nodejs",version:"8.0.0",date:"2017-05-30",lts:!1,security:!1},{name:"nodejs",version:"8.1.0",date:"2017-06-08",lts:!1,security:!1},{name:"nodejs",version:"8.2.0",date:"2017-07-19",lts:!1,security:!1},{name:"nodejs",version:"8.3.0",date:"2017-08-08",lts:!1,security:!1},{name:"nodejs",version:"8.4.0",date:"2017-08-15",lts:!1,security:!1},{name:"nodejs",version:"8.5.0",date:"2017-09-12",lts:!1,security:!1},{name:"nodejs",version:"8.6.0",date:"2017-09-26",lts:!1,security:!1},{name:"nodejs",version:"8.7.0",date:"2017-10-11",lts:!1,security:!1},{name:"nodejs",version:"8.8.0",date:"2017-10-24",lts:!1,security:!1},{name:"nodejs",version:"8.9.0",date:"2017-10-31",lts:"Carbon",security:!1},{name:"nodejs",version:"8.10.0",date:"2018-03-06",lts:"Carbon",security:!1},{name:"nodejs",version:"8.11.0",date:"2018-03-28",lts:"Carbon",security:!0},{name:"nodejs",version:"8.12.0",date:"2018-09-10",lts:"Carbon",security:!1},{name:"nodejs",version:"8.13.0",date:"2018-11-20",lts:"Carbon",security:!1},{name:"nodejs",version:"8.14.0",date:"2018-11-27",lts:"Carbon",security:!0},{name:"nodejs",version:"8.15.0",date:"2018-12-26",lts:"Carbon",security:!1},{name:"nodejs",version:"8.16.0",date:"2019-04-16",lts:"Carbon",security:!1},{name:"nodejs",version:"8.17.0",date:"2019-12-17",lts:"Carbon",security:!0},{name:"nodejs",version:"9.0.0",date:"2017-10-31",lts:!1,security:!1},{name:"nodejs",version:"9.1.0",date:"2017-11-07",lts:!1,security:!1},{name:"nodejs",version:"9.2.0",date:"2017-11-14",lts:!1,security:!1},{name:"nodejs",version:"9.3.0",date:"2017-12-12",lts:!1,security:!1},{name:"nodejs",version:"9.4.0",date:"2018-01-10",lts:!1,security:!1},{name:"nodejs",version:"9.5.0",date:"2018-01-31",lts:!1,security:!1},{name:"nodejs",version:"9.6.0",date:"2018-02-21",lts:!1,security:!1},{name:"nodejs",version:"9.7.0",date:"2018-03-01",lts:!1,security:!1},{name:"nodejs",version:"9.8.0",date:"2018-03-07",lts:!1,security:!1},{name:"nodejs",version:"9.9.0",date:"2018-03-21",lts:!1,security:!1},{name:"nodejs",version:"9.10.0",date:"2018-03-28",lts:!1,security:!0},{name:"nodejs",version:"9.11.0",date:"2018-04-04",lts:!1,security:!1},{name:"nodejs",version:"10.0.0",date:"2018-04-24",lts:!1,security:!1},{name:"nodejs",version:"10.1.0",date:"2018-05-08",lts:!1,security:!1},{name:"nodejs",version:"10.2.0",date:"2018-05-23",lts:!1,security:!1},{name:"nodejs",version:"10.3.0",date:"2018-05-29",lts:!1,security:!1},{name:"nodejs",version:"10.4.0",date:"2018-06-06",lts:!1,security:!1},{name:"nodejs",version:"10.5.0",date:"2018-06-20",lts:!1,security:!1},{name:"nodejs",version:"10.6.0",date:"2018-07-04",lts:!1,security:!1},{name:"nodejs",version:"10.7.0",date:"2018-07-18",lts:!1,security:!1},{name:"nodejs",version:"10.8.0",date:"2018-08-01",lts:!1,security:!1},{name:"nodejs",version:"10.9.0",date:"2018-08-15",lts:!1,security:!1},{name:"nodejs",version:"10.10.0",date:"2018-09-06",lts:!1,security:!1},{name:"nodejs",version:"10.11.0",date:"2018-09-19",lts:!1,security:!1},{name:"nodejs",version:"10.12.0",date:"2018-10-10",lts:!1,security:!1},{name:"nodejs",version:"10.13.0",date:"2018-10-30",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.14.0",date:"2018-11-27",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.15.0",date:"2018-12-26",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.16.0",date:"2019-05-28",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.17.0",date:"2019-10-22",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.18.0",date:"2019-12-17",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.19.0",date:"2020-02-05",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.20.0",date:"2020-03-26",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.21.0",date:"2020-06-02",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.22.0",date:"2020-07-21",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.23.0",date:"2020-10-27",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.24.0",date:"2021-02-23",lts:"Dubnium",security:!0},{name:"nodejs",version:"11.0.0",date:"2018-10-23",lts:!1,security:!1},{name:"nodejs",version:"11.1.0",date:"2018-10-30",lts:!1,security:!1},{name:"nodejs",version:"11.2.0",date:"2018-11-15",lts:!1,security:!1},{name:"nodejs",version:"11.3.0",date:"2018-11-27",lts:!1,security:!0},{name:"nodejs",version:"11.4.0",date:"2018-12-07",lts:!1,security:!1},{name:"nodejs",version:"11.5.0",date:"2018-12-18",lts:!1,security:!1},{name:"nodejs",version:"11.6.0",date:"2018-12-26",lts:!1,security:!1},{name:"nodejs",version:"11.7.0",date:"2019-01-17",lts:!1,security:!1},{name:"nodejs",version:"11.8.0",date:"2019-01-24",lts:!1,security:!1},{name:"nodejs",version:"11.9.0",date:"2019-01-30",lts:!1,security:!1},{name:"nodejs",version:"11.10.0",date:"2019-02-14",lts:!1,security:!1},{name:"nodejs",version:"11.11.0",date:"2019-03-05",lts:!1,security:!1},{name:"nodejs",version:"11.12.0",date:"2019-03-14",lts:!1,security:!1},{name:"nodejs",version:"11.13.0",date:"2019-03-28",lts:!1,security:!1},{name:"nodejs",version:"11.14.0",date:"2019-04-10",lts:!1,security:!1},{name:"nodejs",version:"11.15.0",date:"2019-04-30",lts:!1,security:!1},{name:"nodejs",version:"12.0.0",date:"2019-04-23",lts:!1,security:!1},{name:"nodejs",version:"12.1.0",date:"2019-04-29",lts:!1,security:!1},{name:"nodejs",version:"12.2.0",date:"2019-05-07",lts:!1,security:!1},{name:"nodejs",version:"12.3.0",date:"2019-05-21",lts:!1,security:!1},{name:"nodejs",version:"12.4.0",date:"2019-06-04",lts:!1,security:!1},{name:"nodejs",version:"12.5.0",date:"2019-06-26",lts:!1,security:!1},{name:"nodejs",version:"12.6.0",date:"2019-07-03",lts:!1,security:!1},{name:"nodejs",version:"12.7.0",date:"2019-07-23",lts:!1,security:!1},{name:"nodejs",version:"12.8.0",date:"2019-08-06",lts:!1,security:!1},{name:"nodejs",version:"12.9.0",date:"2019-08-20",lts:!1,security:!1},{name:"nodejs",version:"12.10.0",date:"2019-09-04",lts:!1,security:!1},{name:"nodejs",version:"12.11.0",date:"2019-09-25",lts:!1,security:!1},{name:"nodejs",version:"12.12.0",date:"2019-10-11",lts:!1,security:!1},{name:"nodejs",version:"12.13.0",date:"2019-10-21",lts:"Erbium",security:!1},{name:"nodejs",version:"12.14.0",date:"2019-12-17",lts:"Erbium",security:!0},{name:"nodejs",version:"12.15.0",date:"2020-02-05",lts:"Erbium",security:!0},{name:"nodejs",version:"12.16.0",date:"2020-02-11",lts:"Erbium",security:!1},{name:"nodejs",version:"12.17.0",date:"2020-05-26",lts:"Erbium",security:!1},{name:"nodejs",version:"12.18.0",date:"2020-06-02",lts:"Erbium",security:!0},{name:"nodejs",version:"12.19.0",date:"2020-10-06",lts:"Erbium",security:!1},{name:"nodejs",version:"12.20.0",date:"2020-11-24",lts:"Erbium",security:!1},{name:"nodejs",version:"12.21.0",date:"2021-02-23",lts:"Erbium",security:!0},{name:"nodejs",version:"13.0.0",date:"2019-10-22",lts:!1,security:!1},{name:"nodejs",version:"13.1.0",date:"2019-11-05",lts:!1,security:!1},{name:"nodejs",version:"13.2.0",date:"2019-11-21",lts:!1,security:!1},{name:"nodejs",version:"13.3.0",date:"2019-12-03",lts:!1,security:!1},{name:"nodejs",version:"13.4.0",date:"2019-12-17",lts:!1,security:!0},{name:"nodejs",version:"13.5.0",date:"2019-12-18",lts:!1,security:!1},{name:"nodejs",version:"13.6.0",date:"2020-01-07",lts:!1,security:!1},{name:"nodejs",version:"13.7.0",date:"2020-01-21",lts:!1,security:!1},{name:"nodejs",version:"13.8.0",date:"2020-02-05",lts:!1,security:!0},{name:"nodejs",version:"13.9.0",date:"2020-02-18",lts:!1,security:!1},{name:"nodejs",version:"13.10.0",date:"2020-03-04",lts:!1,security:!1},{name:"nodejs",version:"13.11.0",date:"2020-03-12",lts:!1,security:!1},{name:"nodejs",version:"13.12.0",date:"2020-03-26",lts:!1,security:!1},{name:"nodejs",version:"13.13.0",date:"2020-04-14",lts:!1,security:!1},{name:"nodejs",version:"13.14.0",date:"2020-04-29",lts:!1,security:!1},{name:"nodejs",version:"14.0.0",date:"2020-04-21",lts:!1,security:!1},{name:"nodejs",version:"14.1.0",date:"2020-04-29",lts:!1,security:!1},{name:"nodejs",version:"14.2.0",date:"2020-05-05",lts:!1,security:!1},{name:"nodejs",version:"14.3.0",date:"2020-05-19",lts:!1,security:!1},{name:"nodejs",version:"14.4.0",date:"2020-06-02",lts:!1,security:!0},{name:"nodejs",version:"14.5.0",date:"2020-06-30",lts:!1,security:!1},{name:"nodejs",version:"14.6.0",date:"2020-07-20",lts:!1,security:!1},{name:"nodejs",version:"14.7.0",date:"2020-07-29",lts:!1,security:!1},{name:"nodejs",version:"14.8.0",date:"2020-08-11",lts:!1,security:!1},{name:"nodejs",version:"14.9.0",date:"2020-08-27",lts:!1,security:!1},{name:"nodejs",version:"14.10.0",date:"2020-09-08",lts:!1,security:!1},{name:"nodejs",version:"14.11.0",date:"2020-09-15",lts:!1,security:!0},{name:"nodejs",version:"14.12.0",date:"2020-09-22",lts:!1,security:!1},{name:"nodejs",version:"14.13.0",date:"2020-09-29",lts:!1,security:!1},{name:"nodejs",version:"14.14.0",date:"2020-10-15",lts:!1,security:!1},{name:"nodejs",version:"14.15.0",date:"2020-10-27",lts:"Fermium",security:!1},{name:"nodejs",version:"14.16.0",date:"2021-02-23",lts:"Fermium",security:!0},{name:"nodejs",version:"15.0.0",date:"2020-10-20",lts:!1,security:!1},{name:"nodejs",version:"15.1.0",date:"2020-11-04",lts:!1,security:!1},{name:"nodejs",version:"15.2.0",date:"2020-11-10",lts:!1,security:!1},{name:"nodejs",version:"15.3.0",date:"2020-11-24",lts:!1,security:!1},{name:"nodejs",version:"15.4.0",date:"2020-12-09",lts:!1,security:!1},{name:"nodejs",version:"15.5.0",date:"2020-12-22",lts:!1,security:!1},{name:"nodejs",version:"15.6.0",date:"2021-01-14",lts:!1,security:!1},{name:"nodejs",version:"15.7.0",date:"2021-01-25",lts:!1,security:!1},{name:"nodejs",version:"15.8.0",date:"2021-02-02",lts:!1,security:!1},{name:"nodejs",version:"15.9.0",date:"2021-02-18",lts:!1,security:!1},{name:"nodejs",version:"15.10.0",date:"2021-02-23",lts:!1,security:!0}]});var W4=Y((RD,z4)=>{A();z4.exports={A:"ie",B:"edge",C:"firefox",D:"chrome",E:"safari",F:"opera",G:"ios_saf",H:"op_mini",I:"android",J:"bb",K:"op_mob",L:"and_chr",M:"and_ff",N:"ie_mob",O:"and_uc",P:"samsung",Q:"and_qq",R:"baidu",S:"kaios"}});var V4=Y((MD,G4)=>{A();G4.exports.browsers=W4()});var K4=Y((PD,J4)=>{A();J4.exports={"0":"43","1":"44","2":"45","3":"46","4":"47","5":"48","6":"49","7":"50","8":"51","9":"52",A:"10",B:"11",C:"12",D:"7",E:"8",F:"9",G:"15",H:"91",I:"4",J:"6",K:"13",L:"14",M:"16",N:"17",O:"18",P:"89",Q:"62",R:"79",S:"80",T:"81",U:"83",V:"84",W:"85",X:"86",Y:"87",Z:"88",a:"90",b:"5",c:"19",d:"20",e:"21",f:"22",g:"23",h:"24",i:"25",j:"26",k:"27",l:"28",m:"29",n:"30",o:"31",p:"32",q:"33",r:"34",s:"35",t:"36",u:"37",v:"38",w:"39",x:"40",y:"41",z:"42",AB:"53",BB:"54",CB:"55",DB:"56",EB:"57",FB:"58",GB:"60",HB:"63",IB:"64",JB:"65",KB:"66",LB:"67",MB:"68",NB:"69",OB:"70",PB:"71",QB:"72",RB:"73",SB:"74",TB:"75",UB:"76",VB:"11.1",WB:"12.1",XB:"3",YB:"59",ZB:"61",aB:"77",bB:"78",cB:"3.2",dB:"10.1",eB:"11.5",fB:"4.2-4.3",gB:"5.5",hB:"2",iB:"82",jB:"3.5",kB:"3.6",lB:"92",mB:"93",nB:"94",oB:"3.1",pB:"5.1",qB:"6.1",rB:"7.1",sB:"9.1",tB:"13.1",uB:"14.1",vB:"TP",wB:"9.5-9.6",xB:"10.0-10.1",yB:"10.5",zB:"10.6","0B":"11.6","1B":"4.0-4.1","2B":"5.0-5.1","3B":"6.0-6.1","4B":"7.0-7.1","5B":"8.1-8.4","6B":"9.0-9.2","7B":"9.3","8B":"10.0-10.2","9B":"10.3",AC:"11.0-11.2",BC:"11.3-11.4",CC:"12.0-12.1",DC:"12.2-12.4",EC:"13.0-13.1",FC:"13.2",GC:"13.3",HC:"13.4-13.7",IC:"14.0-14.4",JC:"14.5-14.6",KC:"all",LC:"2.1",MC:"2.2",NC:"2.3",OC:"4.1",PC:"4.4",QC:"4.4.3-4.4.4",RC:"12.12",SC:"5.0-5.4",TC:"6.2-6.4",UC:"7.2-7.4",VC:"8.2",WC:"9.2",XC:"11.1-11.2",YC:"12.0",ZC:"13.0",aC:"14.0",bC:"10.4",cC:"7.12",dC:"2.5"}});var Z4=Y((ID,Y4)=>{A();Y4.exports.browserVersions=K4()});var Q4=Y((LD,X4)=>{A();X4.exports={A:{A:{J:.0131217,D:.00621152,E:.0199047,F:.0928884,A:.0132698,B:.849265,gB:.009298},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","gB","J","D","E","F","A","B","","",""],E:"IE",F:{gB:962323200,J:998870400,D:1161129600,E:1237420800,F:1300060800,A:1346716800,B:1381968e3}},B:{A:{C:.008408,K:.004267,L:.004204,G:.004204,M:.008408,N:.033632,O:.092488,R:0,S:.004298,T:.00944,U:.00415,V:.008408,W:.008408,X:.012612,Y:.012612,Z:.016816,P:.079876,a:3.01006,H:.2102},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","K","L","G","M","N","O","R","S","T","U","V","W","X","Y","Z","P","a","H","","",""],E:"Edge",F:{C:1438128e3,K:1447286400,L:1470096e3,G:1491868800,M:1508198400,N:1525046400,O:1542067200,R:1579046400,S:1581033600,T:1586736e3,U:1590019200,V:1594857600,W:1598486400,X:1602201600,Y:1605830400,Z:161136e4,P:1614816e3,a:1618358400,H:1622073600},D:{C:"ms",K:"ms",L:"ms",G:"ms",M:"ms",N:"ms",O:"ms"}},C:{A:{"0":.058856,"1":.004204,"2":.004204,"3":.004525,"4":.004271,"5":.008408,"6":.004538,"7":.004267,"8":.004204,"9":.071468,hB:.012813,XB:.004271,I:.02102,b:.004879,J:.020136,D:.005725,E:.004525,F:.00533,A:.004283,B:.008408,C:.004471,K:.004486,L:.00453,G:.008542,M:.004417,N:.004425,O:.008542,c:.004443,d:.004283,e:.008542,f:.013698,g:.008542,h:.008786,i:.017084,j:.004317,k:.004393,l:.004418,m:.008834,n:.008542,o:.008928,p:.004471,q:.009284,r:.004707,s:.009076,t:.004425,u:.004783,v:.004271,w:.004783,x:.00487,y:.005029,z:.0047,AB:.004335,BB:.004204,CB:.004204,DB:.012612,EB:.004425,FB:.004204,YB:.004204,GB:.008408,ZB:.00472,Q:.004425,HB:.02102,IB:.00415,JB:.004267,KB:.008408,LB:.004267,MB:.012612,NB:.00415,OB:.004204,PB:.004425,QB:.008408,RB:.00415,SB:.00415,TB:.008542,UB:.004298,aB:.004204,bB:.14714,R:.008408,S:.008408,T:.012612,iB:.016816,U:.012612,V:.025224,W:.02102,X:.033632,Y:.071468,Z:2.3122,P:.029428,a:0,H:0,jB:.008786,kB:.00487},B:"moz",C:["hB","XB","jB","kB","I","b","J","D","E","F","A","B","C","K","L","G","M","N","O","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","YB","GB","ZB","Q","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","aB","bB","R","S","T","iB","U","V","W","X","Y","Z","P","a","H",""],E:"Firefox",F:{"0":1450137600,"1":1453852800,"2":1457395200,"3":1461628800,"4":1465257600,"5":1470096e3,"6":1474329600,"7":1479168e3,"8":1485216e3,"9":1488844800,hB:1161648e3,XB:1213660800,jB:124632e4,kB:1264032e3,I:1300752e3,b:1308614400,J:1313452800,D:1317081600,E:1317081600,F:1320710400,A:1324339200,B:1327968e3,C:1331596800,K:1335225600,L:1338854400,G:1342483200,M:1346112e3,N:1349740800,O:1353628800,c:1357603200,d:1361232e3,e:1364860800,f:1368489600,g:1372118400,h:1375747200,i:1379376e3,j:1386633600,k:1391472e3,l:1395100800,m:1398729600,n:1402358400,o:1405987200,p:1409616e3,q:1413244800,r:1417392e3,s:1421107200,t:1424736e3,u:1428278400,v:1431475200,w:1435881600,x:1439251200,y:144288e4,z:1446508800,AB:149256e4,BB:1497312e3,CB:1502150400,DB:1506556800,EB:1510617600,FB:1516665600,YB:1520985600,GB:1525824e3,ZB:1529971200,Q:1536105600,HB:1540252800,IB:1544486400,JB:154872e4,KB:1552953600,LB:1558396800,MB:1562630400,NB:1567468800,OB:1571788800,PB:1575331200,QB:1578355200,RB:1581379200,SB:1583798400,TB:1586304e3,UB:1588636800,aB:1591056e3,bB:1593475200,R:1595894400,S:1598313600,T:1600732800,iB:1603152e3,U:1605571200,V:1607990400,W:1611619200,X:1614038400,Y:1616457600,Z:1618790400,P:1622505600,a:null,H:null}},D:{A:{"0":.008408,"1":.004465,"2":.004642,"3":.004891,"4":.008408,"5":.02102,"6":.214404,"7":.004204,"8":.016816,"9":.004204,I:.004706,b:.004879,J:.004879,D:.005591,E:.005591,F:.005591,A:.004534,B:.004464,C:.010424,K:.0083,L:.004706,G:.015087,M:.004393,N:.004393,O:.008652,c:.008542,d:.004393,e:.004317,f:.012612,g:.008786,h:.008408,i:.004461,j:.004298,k:.004326,l:.0047,m:.004538,n:.008542,o:.008596,p:.004566,q:.004204,r:.008408,s:.012612,t:.004335,u:.004464,v:.025224,w:.004464,x:.012612,y:.0236,z:.004403,AB:.058856,BB:.008408,CB:.012612,DB:.04204,EB:.008408,FB:.008408,YB:.008408,GB:.016816,ZB:.121916,Q:.008408,HB:.02102,IB:.025224,JB:.02102,KB:.02102,LB:.033632,MB:.029428,NB:.067264,OB:.071468,PB:.025224,QB:.058856,RB:.02102,SB:.113508,TB:.092488,UB:.067264,aB:.029428,bB:.075672,R:.18918,S:.1051,T:.079876,U:.130324,V:.100896,W:.243832,X:.16816,Y:.311096,Z:.344728,P:1.0468,a:21.4866,H:.790352,lB:.025224,mB:.004204,nB:0},B:"webkit",C:["","","","I","b","J","D","E","F","A","B","C","K","L","G","M","N","O","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","YB","GB","ZB","Q","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","aB","bB","R","S","T","U","V","W","X","Y","Z","P","a","H","lB","mB","nB"],E:"Chrome",F:{"0":143208e4,"1":1437523200,"2":1441152e3,"3":1444780800,"4":1449014400,"5":1453248e3,"6":1456963200,"7":1460592e3,"8":1464134400,"9":1469059200,I:1264377600,b:1274745600,J:1283385600,D:1287619200,E:1291248e3,F:1296777600,A:1299542400,B:1303862400,C:1307404800,K:1312243200,L:1316131200,G:1316131200,M:1319500800,N:1323734400,O:1328659200,c:1332892800,d:133704e4,e:1340668800,f:1343692800,g:1348531200,h:1352246400,i:1357862400,j:1361404800,k:1364428800,l:1369094400,m:1374105600,n:1376956800,o:1384214400,p:1389657600,q:1392940800,r:1397001600,s:1400544e3,t:1405468800,u:1409011200,v:141264e4,w:1416268800,x:1421798400,y:1425513600,z:1429401600,AB:1472601600,BB:1476230400,CB:1480550400,DB:1485302400,EB:1489017600,FB:149256e4,YB:1496707200,GB:1500940800,ZB:1504569600,Q:1508198400,HB:1512518400,IB:1516752e3,JB:1520294400,KB:1523923200,LB:1527552e3,MB:1532390400,NB:1536019200,OB:1539648e3,PB:1543968e3,QB:154872e4,RB:1552348800,SB:1555977600,TB:1559606400,UB:1564444800,aB:1568073600,bB:1571702400,R:1575936e3,S:1580860800,T:1586304e3,U:1589846400,V:1594684800,W:1598313600,X:1601942400,Y:1605571200,Z:1611014400,P:1614556800,a:1618272e3,H:1621987200,lB:null,mB:null,nB:null}},E:{A:{I:0,b:.008542,J:.004656,D:.004465,E:.218608,F:.004891,A:.004425,B:.008408,C:.012612,K:.088284,L:2.26175,G:0,oB:0,cB:.008692,pB:.109304,qB:.00456,rB:.004283,sB:.02102,dB:.02102,VB:.058856,WB:.088284,tB:.395176,uB:.748312,vB:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","oB","cB","I","b","pB","J","qB","D","rB","E","F","sB","A","dB","B","VB","C","WB","K","tB","L","uB","G","vB",""],E:"Safari",F:{oB:1205798400,cB:1226534400,I:1244419200,b:1275868800,pB:131112e4,J:1343174400,qB:13824e5,D:13824e5,rB:1410998400,E:1413417600,F:1443657600,sB:1458518400,A:1474329600,dB:1490572800,B:1505779200,VB:1522281600,C:1537142400,WB:1553472e3,K:1568851200,tB:1585008e3,L:1600214400,uB:1619395200,G:null,vB:null}},F:{A:{"0":.008542,"1":.004227,"2":.004725,"3":.008408,"4":.008942,"5":.004707,"6":.004827,"7":.004707,"8":.004707,"9":.004326,F:.0082,B:.016581,C:.004317,G:.00685,M:.00685,N:.00685,O:.005014,c:.006015,d:.004879,e:.006597,f:.006597,g:.013434,h:.006702,i:.006015,j:.005595,k:.004393,l:.008652,m:.004879,n:.004879,o:.004711,p:.005152,q:.005014,r:.009758,s:.004879,t:.008408,u:.004283,v:.004367,w:.004534,x:.008408,y:.004227,z:.004418,AB:.008922,BB:.014349,CB:.004425,DB:.00472,EB:.004425,FB:.004425,GB:.00472,Q:.004532,HB:.004566,IB:.02283,JB:.00867,KB:.004656,LB:.004642,MB:.004298,NB:.00944,OB:.00415,PB:.004271,QB:.004298,RB:.096692,SB:.008408,TB:.433012,UB:.437216,wB:.00685,xB:0,yB:.008392,zB:.004706,VB:.006229,eB:.004879,"0B":.008786,WB:.00472},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","F","wB","xB","yB","zB","B","VB","eB","0B","C","WB","G","M","N","O","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","GB","Q","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","","",""],E:"Opera",F:{"0":1486425600,"1":1490054400,"2":1494374400,"3":1498003200,"4":1502236800,"5":1506470400,"6":1510099200,"7":1515024e3,"8":1517961600,"9":1521676800,F:1150761600,wB:1223424e3,xB:1251763200,yB:1267488e3,zB:1277942400,B:1292457600,VB:1302566400,eB:1309219200,"0B":1323129600,C:1323129600,WB:1352073600,G:1372723200,M:1377561600,N:1381104e3,O:1386288e3,c:1390867200,d:1393891200,e:1399334400,f:1401753600,g:1405987200,h:1409616e3,i:1413331200,j:1417132800,k:1422316800,l:1425945600,m:1430179200,n:1433808e3,o:1438646400,p:1442448e3,q:1445904e3,r:1449100800,s:1454371200,t:1457308800,u:146232e4,v:1465344e3,w:1470096e3,x:1474329600,y:1477267200,z:1481587200,AB:1525910400,BB:1530144e3,CB:1534982400,DB:1537833600,EB:1543363200,FB:1548201600,GB:1554768e3,Q:1561593600,HB:1566259200,IB:1570406400,JB:1573689600,KB:1578441600,LB:1583971200,MB:1587513600,NB:1592956800,OB:1595894400,PB:1600128e3,QB:1603238400,RB:161352e4,SB:1612224e3,TB:1616544e3,UB:1619568e3},D:{F:"o",B:"o",C:"o",wB:"o",xB:"o",yB:"o",zB:"o",VB:"o",eB:"o","0B":"o",WB:"o"}},G:{A:{E:.00144955,cB:0,"1B":0,fB:.00289911,"2B":.00869732,"3B":.0449361,"4B":.0304406,"5B":.0202937,"6B":.0217433,"7B":.147854,"8B":.0347893,"9B":.149304,AC:.0855236,BC:.0739272,CC:.0768263,DC:.246424,EC:.0666794,FC:.0333397,GC:.172497,HC:.572573,IC:10.1498,JC:1.93225},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","cB","1B","fB","2B","3B","4B","E","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","HC","IC","JC","","",""],E:"Safari on iOS",F:{cB:1270252800,"1B":1283904e3,fB:1299628800,"2B":1331078400,"3B":1359331200,"4B":1394409600,E:1410912e3,"5B":1413763200,"6B":1442361600,"7B":1458518400,"8B":1473724800,"9B":1490572800,AC:1505779200,BC:1522281600,CC:1537142400,DC:1553472e3,EC:1568851200,FC:1572220800,GC:1580169600,HC:1585008e3,IC:1600214400,JC:1619395200}},H:{A:{KC:1.18546},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","KC","","",""],E:"Opera Mini",F:{KC:1426464e3}},I:{A:{XB:0,I:.0263634,H:0,LC:0,MC:0,NC:0,OC:.0301296,fB:.0979213,PC:0,QC:.43688},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","LC","MC","NC","XB","I","OC","fB","PC","QC","H","","",""],E:"Android Browser",F:{LC:1256515200,MC:1274313600,NC:1291593600,XB:1298332800,I:1318896e3,OC:1341792e3,fB:1374624e3,PC:1386547200,QC:1401667200,H:1621987200}},J:{A:{D:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","A","","",""],E:"Blackberry Browser",F:{D:1325376e3,A:1359504e3}},K:{A:{A:0,B:0,C:0,Q:.0111391,VB:0,eB:0,WB:0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","VB","eB","C","WB","Q","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752e3,VB:1314835200,eB:1318291200,C:1330300800,WB:1349740800,Q:1613433600},D:{Q:"webkit"}},L:{A:{H:38.7167},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","H","","",""],E:"Chrome for Android",F:{H:1621987200}},M:{A:{P:.278256},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","P","","",""],E:"Firefox for Android",F:{P:1622505600}},N:{A:{A:.0115934,B:.022664},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456e3}},O:{A:{RC:1.36809},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","RC","","",""],E:"UC Browser for Android",F:{RC:1471392e3},D:{RC:"webkit"}},P:{A:{I:.309232,SC:.0103543,TC:.010304,UC:.0824619,VC:.0103584,WC:.0721541,dB:.0412309,XC:.164924,YC:.113385,ZC:.412309,aC:2.19555},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","I","SC","TC","UC","VC","WC","dB","XC","YC","ZC","aC","","",""],E:"Samsung Internet",F:{I:1461024e3,SC:1481846400,TC:1509408e3,UC:1528329600,VC:1546128e3,WC:1554163200,dB:1567900800,XC:1582588800,YC:1593475200,ZC:1605657600,aC:1618531200}},Q:{A:{bC:.185504},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","bC","","",""],E:"QQ Browser",F:{bC:1589846400}},R:{A:{cC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","cC","","",""],E:"Baidu Browser",F:{cC:1491004800}},S:{A:{dC:.098549},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","dC","","",""],E:"KaiOS Browser",F:{dC:1527811200}}}});var rS=Y((BD,nS)=>{A();var{browsers:D8}=V4(),B0=Z4().browserVersions,eS=Q4();function tS(i){return Object.keys(i).reduce((t,n)=>(t[B0[n]]=i[n],t),{})}nS.exports.agents=Object.keys(eS).reduce((i,t)=>{let n=eS[t];return i[D8[t]]=Object.keys(n).reduce((r,o)=>(o==="A"?r.usage_global=tS(n[o]):o==="C"?r.versions=n[o].reduce((a,l)=>(l===""?a.push(null):a.push(B0[l]),a),[]):o==="D"?r.prefix_exceptions=tS(n[o]):o==="E"?r.browser=n[o]:o==="F"?r.release_date=Object.keys(n[o]).reduce((a,l)=>(a[B0[l]]=n[o][l],a),{}):r.prefix=n[o],r),{}),i},{})});var iS=Y((kD,F8)=>{F8.exports={"v0.8":{start:"2012-06-25",end:"2014-07-31"},"v0.10":{start:"2013-03-11",end:"2016-10-31"},"v0.12":{start:"2015-02-06",end:"2016-12-31"},v4:{start:"2015-09-08",lts:"2015-10-12",maintenance:"2017-04-01",end:"2018-04-30",codename:"Argon"},v5:{start:"2015-10-29",maintenance:"2016-04-30",end:"2016-06-30"},v6:{start:"2016-04-26",lts:"2016-10-18",maintenance:"2018-04-30",end:"2019-04-30",codename:"Boron"},v7:{start:"2016-10-25",maintenance:"2017-04-30",end:"2017-06-30"},v8:{start:"2017-05-30",lts:"2017-10-31",maintenance:"2019-01-01",end:"2019-12-31",codename:"Carbon"},v9:{start:"2017-10-01",maintenance:"2018-04-01",end:"2018-06-30"},v10:{start:"2018-04-24",lts:"2018-10-30",maintenance:"2020-05-19",end:"2021-04-30",codename:"Dubnium"},v11:{start:"2018-10-23",maintenance:"2019-04-22",end:"2019-06-01"},v12:{start:"2019-04-23",lts:"2019-10-21",maintenance:"2020-11-30",end:"2022-04-30",codename:"Erbium"},v13:{start:"2019-10-22",maintenance:"2020-04-01",end:"2020-06-01"},v14:{start:"2020-04-21",lts:"2020-10-27",maintenance:"2021-10-19",end:"2023-04-30",codename:"Fermium"},v15:{start:"2020-10-20",maintenance:"2021-04-01",end:"2021-06-01"},v16:{start:"2021-04-20",lts:"2021-10-26",maintenance:"2022-10-18",end:"2024-04-30",codename:""}}});var sS=Y((ND,oS)=>{A();oS.exports={"0.20":"39","0.21":"41","0.22":"41","0.23":"41","0.24":"41","0.25":"42","0.26":"42","0.27":"43","0.28":"43","0.29":"43","0.30":"44","0.31":"45","0.32":"45","0.33":"45","0.34":"45","0.35":"45","0.36":"47","0.37":"49","1.0":"49","1.1":"50","1.2":"51","1.3":"52","1.4":"53","1.5":"54","1.6":"56","1.7":"58","1.8":"59","2.0":"61","2.1":"61","3.0":"66","3.1":"66","4.0":"69","4.1":"69","4.2":"69","5.0":"73","6.0":"76","6.1":"76","7.0":"78","7.1":"78","7.2":"78","7.3":"78","8.0":"80","8.1":"80","8.2":"80","8.3":"80","8.4":"80","8.5":"80","9.0":"83","9.1":"83","9.2":"83","9.3":"83","9.4":"83","10.0":"85","10.1":"85","10.2":"85","10.3":"85","10.4":"85","11.0":"87","11.1":"87","11.2":"87","11.3":"87","11.4":"87","12.0":"89","13.0":"91","13.1":"91","14.0":"92"}});var N0=Y((HD,aS)=>{A();function k0(i){this.name="BrowserslistError",this.message=i,this.browserslist=!0,Error.captureStackTrace&&Error.captureStackTrace(this,k0)}k0.prototype=Error.prototype;aS.exports=k0});var cS=Y((jD,lS)=>{A();var Sd=N0();function tl(){}lS.exports={loadQueries:function(){throw new Sd("Sharable configs are not supported in client-side build of Browserslist")},getStat:function(t){return t.stats},loadConfig:function(t){if(t.config)throw new Sd("Browserslist config are not supported in client-side build")},loadCountry:function(){throw new Sd("Country statistics are not supported in client-side build of Browserslist")},loadFeature:function(){throw new Sd("Supports queries are not available in client-side build of Browserslist")},currentNode:function(t,n){return t(["maintained node versions"],n)[0]},parseConfig:tl,readConfig:tl,findConfig:tl,clearCaches:tl,oldDataWarning:tl}});var AS=Y((DD,CS)=>{A();var Od=q4(),Bi=rS().agents,H0=iS(),xd=ka(),qr=sS(),Jn=N0(),Pn=cS(),$8=365.259641*24*60*60*1e3,uS=37,j0=1,dS=2;function fS(i,t){return(i+".").indexOf(t+".")===0}function U8(i){var t=i.slice(1);return Od.some(function(n){return fS(n.version,t)})}function hS(i){return i.filter(function(t){return typeof t=="string"})}function _d(i){var t=i;return i.split(".").length===3&&(t=i.split(".").slice(0,-1).join(".")),t}function oo(i){return function(n){return i+" "+n}}function pS(i){return parseInt(i.split(".")[0])}function D0(i,t){if(i.length===0)return[];var n=gS(i.map(pS)),r=n[n.length-t];if(!r)return i;for(var o=[],a=i.length-1;a>=0&&!(r>pS(i[a]));a--)o.unshift(i[a]);return o}function gS(i){for(var t=[],n=0;n<i.length;n++)t.indexOf(i[n])===-1&&t.push(i[n]);return t}function Td(i,t,n){for(var r in n)i[t+" "+r]=n[r]}function mS(i,t){return t=parseFloat(t),i===">"?function(n){return parseFloat(n)>t}:i===">="?function(n){return parseFloat(n)>=t}:i==="<"?function(n){return parseFloat(n)<t}:function(n){return parseFloat(n)<=t}}function q8(i,t){return t=t.split(".").map(so),t[1]=t[1]||0,t[2]=t[2]||0,i===">"?function(n){return n=n.split(".").map(so),nl(n,t)>0}:i===">="?function(n){return n=n.split(".").map(so),nl(n,t)>=0}:i==="<"?function(n){return n=n.split(".").map(so),nl(t,n)>0}:function(n){return n=n.split(".").map(so),nl(t,n)>=0}}function so(i){return parseInt(i)}function Cd(i,t){return i<t?-1:i>t?1:0}function nl(i,t){return Cd(parseInt(i[0]),parseInt(t[0]))||Cd(parseInt(i[1]||"0"),parseInt(t[1]||"0"))||Cd(parseInt(i[2]||"0"),parseInt(t[2]||"0"))}function yS(i,t){switch(t=t.split(".").map(so),typeof t[1]=="undefined"&&(t[1]="x"),i){case"<=":return function(n){return n=n.split(".").map(so),bS(n,t)<=0};default:case">=":return function(n){return n=n.split(".").map(so),bS(n,t)>=0}}}function bS(i,t){return i[0]!==t[0]?i[0]<t[0]?-1:1:t[1]==="x"?0:i[1]!==t[1]?i[1]<t[1]?-1:1:0}function z8(i,t){return i.versions.indexOf(t)!==-1?t:ze.versionAliases[i.name][t]?ze.versionAliases[i.name][t]:!1}function Ad(i,t){var n=z8(i,t);return n||(i.versions.length===1?i.versions[0]:!1)}function vS(i,t){return i=i/1e3,Object.keys(Bi).reduce(function(n,r){var o=zo(r,t);if(!o)return n;var a=Object.keys(o.releaseDate).filter(function(l){return o.releaseDate[l]>=i});return n.concat(a.map(oo(o.name)))},[])}function wS(i){return{name:i.name,versions:i.versions,released:i.released,releaseDate:i.releaseDate}}function W8(i,t){i.versions=i.versions.map(function(o){return t[o]||o}),i.released=i.versions.map(function(o){return t[o]||o});var n={};for(var r in i.releaseDate)n[t[r]||r]=i.releaseDate[r];return i.releaseDate=n,i}function zo(i,t){if(i=i.toLowerCase(),i=ze.aliases[i]||i,t.mobileToDesktop&&ze.desktopNames[i]){var n=ze.data[ze.desktopNames[i]];if(i==="android")return G8(wS(ze.data[i]),n);var r=wS(n);return r.name=i,i==="op_mob"&&(r=W8(r,{"10.0-10.1":"10"})),r}return ze.data[i]}function ES(i,t){var n=uS,r=t[t.length-1];return i.filter(function(o){return/^(?:[2-4]\.|[34]$)/.test(o)}).concat(t.slice(n-r-1))}function G8(i,t){return i.released=ES(i.released,t.released),i.versions=ES(i.versions,t.versions),i}function Gs(i,t){var n=zo(i,t);if(!n)throw new Jn("Unknown browser "+i);return n}function SS(i){return new Jn("Unknown browser query `"+i+"`. Maybe you are using old Browserslist or made typo in query.")}function Rd(i,t,n){if(n.mobileToDesktop)return i;var r=ze.data.android.released,o=r[r.length-1],a=o-uS-t;return a>0?i.slice(-1):i.slice(a-1)}function Vs(i,t){return Array.isArray(i)?i=xS(i.map(OS)):i=OS(i),i.reduce(function(n,r,o){var a=r.queryString,l=a.indexOf("not ")===0;if(l){if(o===0)throw new Jn("Write any browsers query (for instance, `defaults`) before `"+a+"`");a=a.slice(4)}for(var u=0;u<TS.length;u++){var d=TS[u],f=a.match(d.regexp);if(f){var m=[t].concat(f.slice(1)),p=d.select.apply(ze,m).map(function(S){var v=S.split(" ");return v[1]==="0"?v[0]+" "+zo(v[0],t).versions[0]:S});switch(r.type){case dS:return l?n.filter(function(S){return p.indexOf(S)===-1}):n.filter(function(S){return p.indexOf(S)!==-1});case j0:default:if(l){var E={};return p.forEach(function(S){E[S]=!0}),n.filter(function(S){return!E[S]})}return n.concat(p)}}}throw SS(a)},[])}var F0={};function ze(i,t){if(typeof t=="undefined"&&(t={}),typeof t.path=="undefined"&&(t.path=xd.resolve?xd.resolve("."):"."),typeof i=="undefined"||i===null){var n=ze.loadConfig(t);n?i=n:i=ze.defaults}if(!(typeof i=="string"||Array.isArray(i)))throw new Jn("Browser queries must be an array or string. Got "+typeof i+".");var r={ignoreUnknownVersions:t.ignoreUnknownVersions,dangerousExtend:t.dangerousExtend,mobileToDesktop:t.mobileToDesktop,path:t.path,env:t.env};Pn.oldDataWarning(ze.data);var o=Pn.getStat(t,ze.data);if(o){r.customUsage={};for(var a in o)Td(r.customUsage,a,o[a])}var l=JSON.stringify([i,r]);if(F0[l])return F0[l];var u=gS(Vs(i,r)).sort(function(d,f){if(d=d.split(" "),f=f.split(" "),d[0]===f[0]){var m=d[1].split("-")[0],p=f[1].split("-")[0];return nl(p.split("."),m.split("."))}else return Cd(d[0],f[0])});return j.env.BROWSERSLIST_DISABLE_CACHE||(F0[l]=u),u}function OS(i){var t=[];do i=V8(i,t);while(i);return t}function V8(i,t){var n=/^(?:,\s*|\s+or\s+)(.*)/i,r=/^\s+and\s+(.*)/i;return J8(i,function(o,a,l){return r.test(o)?(t.unshift({type:dS,queryString:o.match(r)[1]}),!0):n.test(o)?(t.unshift({type:j0,queryString:o.match(n)[1]}),!0):a===l?(t.unshift({type:j0,queryString:o.trim()}),!0):!1})}function J8(i,t){for(var n=1,r=i.length;n<=r;n++){var o=i.substr(-n,n);if(t(o,n,r))return i.slice(0,-n)}return""}function xS(i){return Array.isArray(i)?i.reduce(function(t,n){return t.concat(xS(n))},[]):[i]}ze.cache={};ze.data={};ze.usage={global:{},custom:null};ze.defaults=["> 0.5%","last 2 versions","Firefox ESR","not dead"];ze.aliases={fx:"firefox",ff:"firefox",ios:"ios_saf",explorer:"ie",blackberry:"bb",explorermobile:"ie_mob",operamini:"op_mini",operamobile:"op_mob",chromeandroid:"and_chr",firefoxandroid:"and_ff",ucandroid:"and_uc",qqandroid:"and_qq"};ze.desktopNames={and_chr:"chrome",and_ff:"firefox",ie_mob:"ie",op_mob:"opera",android:"chrome"};ze.versionAliases={};ze.clearCaches=Pn.clearCaches;ze.parseConfig=Pn.parseConfig;ze.readConfig=Pn.readConfig;ze.findConfig=Pn.findConfig;ze.loadConfig=Pn.loadConfig;ze.coverage=function(i,t){var n;if(typeof t=="undefined")n=ze.usage.global;else if(t==="my stats"){var r={};r.path=xd.resolve?xd.resolve("."):".";var o=Pn.getStat(r);if(!o)throw new Jn("Custom usage statistics was not provided");n={};for(var a in o)Td(n,a,o[a])}else if(typeof t=="string")t.length>2?t=t.toLowerCase():t=t.toUpperCase(),Pn.loadCountry(ze.usage,t,ze.data),n=ze.usage[t];else{"dataByBrowser"in t&&(t=t.dataByBrowser),n={};for(var l in t)for(var u in t[l])n[l+" "+u]=t[l][u]}return i.reduce(function(d,f){var m=n[f];return m===void 0&&(m=n[f.replace(/ \S+$/," 0")]),d+(m||0)},0)};function $0(i,t){var n=Od.filter(function(o){return o.name==="nodejs"}),r=n.filter(function(o){return fS(o.version,t)});if(r.length===0){if(i.ignoreUnknownVersions)return[];throw new Jn("Unknown version "+t+" of Node.js")}return["node "+r[r.length-1].version]}function U0(i,t,n,r){return t=parseInt(t),n=parseInt(n||"01")-1,r=parseInt(r||"01"),vS(Date.UTC(t,n,r,0,0,0),i)}function _S(i,t,n){t=parseFloat(t);var r=ze.usage.global;if(n)if(n.match(/^my\s+stats$/)){if(!i.customUsage)throw new Jn("Custom usage statistics was not provided");r=i.customUsage}else{var o;n.length===2?o=n.toUpperCase():o=n.toLowerCase(),Pn.loadCountry(ze.usage,o,ze.data),r=ze.usage[o]}for(var a=Object.keys(r).sort(function(m,p){return r[p]-r[m]}),l=0,u=[],d,f=0;f<=a.length&&(d=a[f],!(r[d]===0||(l+=r[d],u.push(d),l>=t)));f++);return u}var TS=[{regexp:/^last\s+(\d+)\s+major\s+versions?$/i,select:function(i,t){return Object.keys(Bi).reduce(function(n,r){var o=zo(r,i);if(!o)return n;var a=D0(o.released,t);return a=a.map(oo(o.name)),o.name==="android"&&(a=Rd(a,t,i)),n.concat(a)},[])}},{regexp:/^last\s+(\d+)\s+versions?$/i,select:function(i,t){return Object.keys(Bi).reduce(function(n,r){var o=zo(r,i);if(!o)return n;var a=o.released.slice(-t);return a=a.map(oo(o.name)),o.name==="android"&&(a=Rd(a,t,i)),n.concat(a)},[])}},{regexp:/^last\s+(\d+)\s+electron\s+major\s+versions?$/i,select:function(i,t){var n=D0(Object.keys(qr),t);return n.map(function(r){return"chrome "+qr[r]})}},{regexp:/^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i,select:function(i,t,n){var r=Gs(n,i),o=D0(r.released,t),a=o.map(oo(r.name));return r.name==="android"&&(a=Rd(a,t,i)),a}},{regexp:/^last\s+(\d+)\s+electron\s+versions?$/i,select:function(i,t){return Object.keys(qr).slice(-t).map(function(n){return"chrome "+qr[n]})}},{regexp:/^last\s+(\d+)\s+(\w+)\s+versions?$/i,select:function(i,t,n){var r=Gs(n,i),o=r.released.slice(-t).map(oo(r.name));return r.name==="android"&&(o=Rd(o,t,i)),o}},{regexp:/^unreleased\s+versions$/i,select:function(i){return Object.keys(Bi).reduce(function(t,n){var r=zo(n,i);if(!r)return t;var o=r.versions.filter(function(a){return r.released.indexOf(a)===-1});return o=o.map(oo(r.name)),t.concat(o)},[])}},{regexp:/^unreleased\s+electron\s+versions?$/i,select:function(){return[]}},{regexp:/^unreleased\s+(\w+)\s+versions?$/i,select:function(i,t){var n=Gs(t,i);return n.versions.filter(function(r){return n.released.indexOf(r)===-1}).map(oo(n.name))}},{regexp:/^last\s+(\d*.?\d+)\s+years?$/i,select:function(i,t){return vS(Date.now()-$8*t,i)}},{regexp:/^since (\d+)$/i,select:U0},{regexp:/^since (\d+)-(\d+)$/i,select:U0},{regexp:/^since (\d+)-(\d+)-(\d+)$/i,select:U0},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/,select:function(i,t,n){n=parseFloat(n);var r=ze.usage.global;return Object.keys(r).reduce(function(o,a){return t===">"?r[a]>n&&o.push(a):t==="<"?r[a]<n&&o.push(a):t==="<="?r[a]<=n&&o.push(a):r[a]>=n&&o.push(a),o},[])}},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/,select:function(i,t,n){if(n=parseFloat(n),!i.customUsage)throw new Jn("Custom usage statistics was not provided");var r=i.customUsage;return Object.keys(r).reduce(function(o,a){return t===">"?r[a]>n&&o.push(a):t==="<"?r[a]<n&&o.push(a):t==="<="?r[a]<=n&&o.push(a):r[a]>=n&&o.push(a),o},[])}},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/,select:function(i,t,n,r){n=parseFloat(n);var o=Pn.loadStat(i,r,ze.data);if(o){i.customUsage={};for(var a in o)Td(i.customUsage,a,o[a])}if(!i.customUsage)throw new Jn("Custom usage statistics was not provided");var l=i.customUsage;return Object.keys(l).reduce(function(u,d){return t===">"?l[d]>n&&u.push(d):t==="<"?l[d]<n&&u.push(d):t==="<="?l[d]<=n&&u.push(d):l[d]>=n&&u.push(d),u},[])}},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/,select:function(i,t,n,r){n=parseFloat(n),r.length===2?r=r.toUpperCase():r=r.toLowerCase(),Pn.loadCountry(ze.usage,r,ze.data);var o=ze.usage[r];return Object.keys(o).reduce(function(a,l){return t===">"?o[l]>n&&a.push(l):t==="<"?o[l]<n&&a.push(l):t==="<="?o[l]<=n&&a.push(l):o[l]>=n&&a.push(l),a},[])}},{regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%$/,select:_S},{regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/,select:_S},{regexp:/^supports\s+([\w-]+)$/,select:function(i,t){Pn.loadFeature(ze.cache,t);var n=ze.cache[t];return Object.keys(n).reduce(function(r,o){var a=n[o];return(a.indexOf("y")>=0||a.indexOf("a")>=0)&&r.push(o),r},[])}},{regexp:/^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(i,t,n){var r=_d(t),o=_d(n);if(!qr[r])throw new Jn("Unknown version "+t+" of electron");if(!qr[o])throw new Jn("Unknown version "+n+" of electron");return t=parseFloat(t),n=parseFloat(n),Object.keys(qr).filter(function(a){var l=parseFloat(a);return l>=t&&l<=n}).map(function(a){return"chrome "+qr[a]})}},{regexp:/^node\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(i,t,n){var r=Od.filter(function(o){return o.name==="nodejs"}).map(function(o){return o.version});return r.filter(yS(">=",t)).filter(yS("<=",n)).map(function(o){return"node "+o})}},{regexp:/^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(i,t,n,r){var o=Gs(t,i);n=parseFloat(Ad(o,n)||n),r=parseFloat(Ad(o,r)||r);function a(l){var u=parseFloat(l);return u>=n&&u<=r}return o.released.filter(a).map(oo(o.name))}},{regexp:/^electron\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(i,t,n){var r=_d(n);return Object.keys(qr).filter(mS(t,r)).map(function(o){return"chrome "+qr[o]})}},{regexp:/^node\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(i,t,n){var r=Od.filter(function(o){return o.name==="nodejs"}).map(function(o){return o.version});return r.filter(q8(t,n)).map(function(o){return"node "+o})}},{regexp:/^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/,select:function(i,t,n,r){var o=Gs(t,i),a=ze.versionAliases[o.name][r];return a&&(r=a),o.released.filter(mS(n,r)).map(function(l){return o.name+" "+l})}},{regexp:/^(firefox|ff|fx)\s+esr$/i,select:function(){return["firefox 78"]}},{regexp:/(operamini|op_mini)\s+all/i,select:function(){return["op_mini all"]}},{regexp:/^electron\s+([\d.]+)$/i,select:function(i,t){var n=_d(t),r=qr[n];if(!r)throw new Jn("Unknown version "+t+" of electron");return["chrome "+r]}},{regexp:/^node\s+(\d+)$/i,select:$0},{regexp:/^node\s+(\d+\.\d+)$/i,select:$0},{regexp:/^node\s+(\d+\.\d+\.\d+)$/i,select:$0},{regexp:/^current\s+node$/i,select:function(i){return[Pn.currentNode(Vs,i)]}},{regexp:/^maintained\s+node\s+versions$/i,select:function(i){var t=Date.now(),n=Object.keys(H0).filter(function(r){return t<Date.parse(H0[r].end)&&t>Date.parse(H0[r].start)&&U8(r)}).map(function(r){return"node "+r.slice(1)});return Vs(n,i)}},{regexp:/^phantomjs\s+1.9$/i,select:function(){return["safari 5"]}},{regexp:/^phantomjs\s+2.1$/i,select:function(){return["safari 6"]}},{regexp:/^(\w+)\s+(tp|[\d.]+)$/i,select:function(i,t,n){/^tp$/i.test(n)&&(n="TP");var r=Gs(t,i),o=Ad(r,n);if(o)n=o;else if(n.indexOf(".")===-1?o=n+".0":o=n.replace(/\.0$/,""),o=Ad(r,o),o)n=o;else{if(i.ignoreUnknownVersions)return[];throw new Jn("Unknown version "+n+" of "+t)}return[r.name+" "+n]}},{regexp:/^browserslist config$/i,select:function(i){return ze(void 0,i)}},{regexp:/^extends (.+)$/i,select:function(i,t){return Vs(Pn.loadQueries(i,t),i)}},{regexp:/^defaults$/i,select:function(i){return Vs(ze.defaults,i)}},{regexp:/^dead$/i,select:function(i){var t=["ie <= 10","ie_mob <= 11","bb <= 10","op_mob <= 12.1","samsung 4"];return Vs(t,i)}},{regexp:/^(\w+)$/i,select:function(i,t){throw zo(t,i)?new Jn("Specify versions in Browserslist query for browser "+t):SS(t)}}];(function(){for(var i in Bi){var t=Bi[i];ze.data[i]={name:i,versions:hS(Bi[i].versions),released:hS(Bi[i].versions.slice(0,-3)),releaseDate:Bi[i].release_date},Td(ze.usage.global,i,t.usage_global),ze.versionAliases[i]={};for(var n=0;n<t.versions.length;n++){var r=t.versions[n];if(!!r&&r.indexOf("-")!==-1)for(var o=r.split("-"),a=0;a<o.length;a++)ze.versionAliases[i][o[a]]=r}}ze.versionAliases.op_mob["59"]="58"})();CS.exports=ze});var g3=Y(Ee=>{A();"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var K8=U4(),Y8=AS();function RS(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var MS=RS(K8),Z8=RS(Y8);(function(i){i[i.RegExp=0]="RegExp",i[i.Family=1]="Family",i[i.Major=2]="Major",i[i.Minor=3]="Minor",i[i.Patch=4]="Patch"})(Ee.BrowserRegExpSourceProp||(Ee.BrowserRegExpSourceProp={}));var ki="\\d",Md=`${ki}+`,Ni=`(${Md})`,ai="\\";function Pd(i,t=!1){let n=i.join("|");return t||i.length>1?`(${n})`:n}function PS(i){return i.map(t=>`(${t.regExpString})`).join("|")}function IS(i){return i.toString().includes(Ni)}function q0(i){return i.toString().split(Ni).length-1}function Wo(i){return i.toString().replace(/^\/|\/$/g,"")}function LS(i,t,n){let r=typeof i=="string"?i:Wo(i);return(typeof n=="number"&&n<t.length?t.slice(0,n):t).reduce((l,u)=>l.replace(Ni,u),r)}function Id(i){return Array.from(i.toString()).map(Number)}function Ld(i,t,n){return n==="["&&t!==ai?!0:n==="]"&&t!==ai?!1:i}function z0(i,t){let n=i[t];switch(n){case"+":case"*":case"?":return n;case"(":{let d=i[t+1],f=i[t+2];if(d!=="?"||f!=="="&&f!=="!")return"";break}case"{":break;default:return""}let r=i.length,o="",a=0,l=!1,u="";for(let d=t;d<r&&(n=i[d],o=i[d-1],l=Ld(l,o,n),!l&&o!==ai&&(n==="("||n==="{")&&a++,a>0&&(u+=n),!(!l&&o!==ai&&a>0&&(n===")"||n==="}")&&(a--,a===0)));d++);return u}(function(i){i[i.Major=0]="Major",i[i.Minor=1]="Minor",i[i.Patch=2]="Patch"})(Ee.SemverPart||(Ee.SemverPart={}));var Bd={bb:"BlackBerry",and_chr:"Chrome",ChromeAndroid:"Chrome",FirefoxAndroid:"Firefox",ff:"Firefox",ie_mob:"ExplorerMobile",ie:"Explorer",and_ff:"Firefox",ios_saf:"iOS",op_mini:"OperaMini",op_mob:"OperaMobile",and_qq:"QQAndroid",and_uc:"UCAndroid"},BS=new RegExp(`(${Object.keys(Bd).join("|")})`);function kS(i){let t=BS.exec(i);if(Array.isArray(t)){let[n]=t;return i.replace(n,Bd[n])}return i}function W0(i,t,n=0){let r=i.length;for(let o=n;o<r;o++)if(i[o]!==t[o])return!1;return!0}function kd(i){return typeof i=="number"?i:i.length===1?i[0]:[i[0],i[i.length-1]]}function Js(i){return(Array.isArray(i)?i[0]:i)==="all"}function NS(i){return i.filter(Boolean).filter((t,n,r)=>r&&!r.some((o,a)=>a>n&&W0(t,o)))}function G0(i,t){let n=i+Number(!t);return n===0?ki:n===9?"9":n>9?"":`[${n}-9]`}function HS(i){return i===ki}function jS(i){let t=[],n=0,r=0;return i.filter((o,a)=>a>0&&(n=o.filter(HS).length,r=t.filter(HS).length,n<=r)?!1:(t=o,!0))}function DS(i){if(i===0)return[Md];let t=Id(i),n=t.length,r=`${ki}{${n+1},}`,o=n-1;if(i/Math.pow(10,o)===t[0])return[`${G0(t[0],!0)}${ki.repeat(o)}`,r];let l=jS(t.map((u,d)=>{let f=n-d-1,m=d<=0,p=" ";return t.map((E,S)=>S<f?E.toString():p?S>f?ki:(p=G0(E,m),p):"")})).map(u=>u.join(""));return l.push(r),l}function Go(i,t,n){if(t<i)return"";let r=typeof n=="number"&&n>0?"0".repeat(n):"";return i===t?`${r}${i}`:i===0&&t===9?`${r}${ki}`:`${r}[${i}-${t}]`}function FS(i,t){let n=[],r=i,o=1;do o*=10,r<o&&(n.push([r,Math.min(o-1,t)]),r=o);while(o<=t);return n}function $S(i,t){let n=i.length;if(n!==t.length||i[0]!==t[0])return null;let r=i[0].toString(),o=0,a=0,l="",u="";for(let d=1;d<n;d++)o=i[d],a=t[d],o===a?r+=o:(l+=o,u+=a);return[r,parseInt(l,10),parseInt(u,10)]}function US(i,t,n){let r=n.length,o=[],a=0,l=0,u=0;for(let d=i;d<=t;d++)for(o.push(d.toString()),u+=Math.floor(Math.log10(d)+1)+1;u>l;){if(a>=r)return n;l+=n[a++].length+1}return o}function Nd(i,t,n=0){let r=Id(i),o=r.length;if(i<10&&t<10||i===t){let m=n-o;return[Go(i,t,m)]}let a=Id(t);if(o!==a.length){let m=FS(i,t);return[].concat(...m.map(([E,S])=>Nd(E,S,n)))}let l=$S(r,a);if(Array.isArray(l)){let[m,p,E]=l,S=o-m.length,v=Nd(p,E,S);return[`${m}${Pd(v)}`]}let u=Array.from({length:o-1}),d=Go(r[0]+1,a[0]-1);return[...u.map((m,p)=>{let E=o-p-1,S=Number(p>0);return r.map((v,y)=>y<E?v:y>E?Go(0,9):Go(v+S,9)).join("")}),...d?[`${d}${ki.repeat(o-1)}`]:[],...u.map((m,p)=>{let E=o-p-1,S=Number(p>0);return a.map((v,y)=>y<E?v:y>E?Go(0,9):Go(0,v-S)).join("")})]}function qS(i,t){return US(i,t,Nd(i,t))}function V0(i,t=1/0){if(Js(i))return Md;let n=t===1/0?DS(i):qS(i,t);return Pd(n)}function J0(i){let t=Array.isArray(i)?i:i.toString().split(".");if(Js(t[0]))return[t[0],0,0];for(;t.length<3;)t.push("0");return t.map(n=>{let r=typeof n=="number"?n:parseInt(n,10);return isNaN(r)?0:r})}function K0(i,t,n){let[r,o,a]=i,[l,u,d]=t,{ignoreMinor:f,ignorePatch:m,allowHigherVersions:p}=n;if(Js(l))return!0;let E=!f,S=E&&!m;return p?S&&a<d||E&&o<u?!1:r>=l:S&&a!==d||E&&o!==u?!1:r===l}function zS(i,t){let{ignoreMinor:n,ignorePatch:r,allowZeroSubversions:o}=t,a=n?1:r?2:3;if(o)for(let l=a-1;l>0&&!(i[l]!==0||a===1);l--)a--;return a}function WS(i,t){let{ignoreMinor:n,ignorePatch:r,allowHigherVersions:o}=t,a=Js(i[0])?0:n?1:r?2:1/0;return o?NS(i.map((d,f)=>{let m=2-f,p=Number(f>0),E=0;return i.map((S,v)=>v>=a?Ni:(E=Array.isArray(S)?S[0]:S,v<m?E.toString():v>m?Ni:V0(E+p)))})):[i.map((u,d)=>d>=a?Ni:Array.isArray(u)?V0(u[0],u[1]):u.toString())]}function Y0(i){return i.filter((t,n)=>!i.includes(t,n+1))}function GS(i,t,n,r){let o=jt(Fe({},r),{allowHigherVersions:!0});return(!i||n.some(a=>K0(a,i,o)))&&(!t||n.some(a=>K0(t,a,o)))}function VS(i,t){return Boolean(i||IS(t))}function ao(i,t,n){let r=t instanceof RegExp,o=null;switch(!0){case r:{let a=t.toString();o=l=>new RegExp(`(^|[^\\w])${l.replace(/ /g,"\\s*")}([^\\w]|$)`).test(a);break}case i:o=a=>a===t;break;default:o=a=>t.includes(a)}return n.some(o)}function JS(i){let t=Wo(i);switch(!0){case t.includes("Fennec"):return[null,[31,0,0]];case t.includes("Minefield"):return[[3,0,0],[4,0,0]];case t.includes("Namoroka"):return[[3,6,0],[3,6,0]];case t.includes("Shiretoko"):return[[3,0,0],[3,5,0]];case t.includes("CrMo"):return[[16,0,0],[16,0,0]];case t.includes("Opera)\\/9.8"):return[null,[12,15,0]];default:return[null,null]}}var KS=[...QS(MS.default.os),...XS(MS.default.browser)];function YS(i,t){let n=[];return KS.forEach(({family:r,regExp:o,fixedVersion:a,minVersion:l,maxVersion:u})=>{let d=i.get(r);d&&GS(l,u,d,t)&&VS(a,o)&&n.push({family:r,regExp:o,requestVersions:d,resultFixedVersion:a,resultMinVersion:l,resultMaxVersion:u})}),n}function ZS(i,t){let n=i||t,r=Wo(t);switch(!0){case/[^\w]?([A-Z]\w+iOS)[^\w]?/.test(r):case/iPhone.*Outlook-iOS-Android|UCWEB.*iPad\|iPh/.test(r):case r.includes("(iPhone|iPad|iPod).*Mac OS X.*Version"):case/YaBrowser|MRCHROME|Chrome.*\(OPR\)/.test(r):case/\(Chrome\).* Mobile|Mobile \.\*\(Chrome\)|; wv\\\)\.\+\(Chrome\)/.test(r):case r.includes("(?:Mobile|Tablet);.*(Firefox)"):case r.includes("(?:Mobile Safari).*(OPR)"):case/Opera.*\) \(\\d/.test(r):case/bingbot|^\\b\(/.test(r):return[];case ao(!1,n,["Chrome Mobile","Chromium"]):return[{family:"chrome"}];case ao(!0,n,["Samsung Internet"]):return[{family:"samsung"}];case ao(!0,n,["Firefox Mobile","Firefox ($1)"]):return[{family:"firefox"}];case ao(!0,n,["IE"]):return[{family:"explorer"}];case ao(!0,n,["IE Mobile"]):return[{family:"explorermobile"}];case ao(!0,n,["BlackBerry WebKit"]):return[{family:"blackberry"}];case ao(!0,n,["Opera Mobile"]):return[{family:"operamobile"}];case n===t:{let o=/\(([\s\w\d_\-/!|]+)\)/i.exec(r);if(Array.isArray(o)){let a=o[1],l=a.split("|"),u=new Map;return Y0(l.map(f=>{let m=f.replace(/[^\d\w]/g,"").toLowerCase();return u.has(m)?u.get(m).push(f):u.set(m,[f]),m})).map(f=>({family:f,regExp:new RegExp(r.replace(a,u.get(f).join("|")))}))}return[]}case typeof i=="string":return[{family:i.toLowerCase()}];default:return[]}}function Z0(i){let{[Ee.BrowserRegExpSourceProp.RegExp]:t,[Ee.BrowserRegExpSourceProp.Family]:n,[Ee.BrowserRegExpSourceProp.Major]:r,[Ee.BrowserRegExpSourceProp.Minor]:o,[Ee.BrowserRegExpSourceProp.Patch]:a}=i,l=ZS(n,t),u=r===0?null:J0([r,o,a]),d=u,f=u;return l.map(E=>{var S=E,{regExp:m=t}=S,p=Vi(S,["regExp"]);return u||([d,f]=JS(m)),Fe({regExp:m,fixedVersion:u,minVersion:d,maxVersion:f},p)})}function XS(i){let t=i.length,n=[];for(let r=0;r<t;r++)n.push(...Z0(i[r]));return n}function QS(i){let t=i.length,n=[];for(let r=0;r<t;r++)i[r][Ee.BrowserRegExpSourceProp.Family]==="iOS"&&n.push(...Z0(i[r]));return n}function e3(i){return[].concat(...i.map(t=>{let[n,...r]=t.split(/ |-/),o=(Bd[n]||n).toLowerCase();return r.map(a=>({family:o,version:J0(a)}))}))}function t3(i={}){let{browsers:t,env:n,path:r}=i,o=Array.isArray(t)?t.map(kS):t,a=Z8.default(o,{env:n,path:r});return e3(a)}function n3(i){let t=new Map;return i.forEach(({family:n,version:r})=>{let o=t.get(n);if(o){let a=r.join(".");o.every(l=>l.join(".")!==a)&&o.push(r);return}t.set(n,[r])}),t.forEach(n=>{n.sort((r,o)=>{for(let a in r)if(r[a]!==o[a])return r[a]-o[a];return 0})}),t}function r3(i){if(i.length<2)return i;let t=i.length+1,n=[],r=null,o=i[0],a=[o[Ee.SemverPart.Major]],l=[o[Ee.SemverPart.Minor]],u=[o[Ee.SemverPart.Patch]],d=null;for(let f=1;f<t;f++){r=i[f-1],o=i[f]||[];for(let m=Ee.SemverPart.Major;m<=Ee.SemverPart.Patch;m++){if((m===d||d===null)&&r[m]+1===o[m]&&W0(r,o,m+1)){d=m,m===Ee.SemverPart.Major?a.push(o[Ee.SemverPart.Major]):a=o[Ee.SemverPart.Major],m===Ee.SemverPart.Minor?l.push(o[Ee.SemverPart.Minor]):l=o[Ee.SemverPart.Minor],m===Ee.SemverPart.Patch?u.push(o[Ee.SemverPart.Patch]):u=o[Ee.SemverPart.Patch];break}if(d===m||r[m]!==o[m]){n.push([kd(a),kd(l),kd(u)]),a=[o[Ee.SemverPart.Major]],l=[o[Ee.SemverPart.Minor]],u=[o[Ee.SemverPart.Patch]],d=null;break}}}return n}function i3(i){let t=new Map;return i.forEach((n,r)=>{t.set(r,r3(n))}),t}var o3=/^\([\s\w\d_\-/!]+\)$/,s3=/[/.$*+?[{}|()]/;function a3(i){let t=i.length,n=!1,r=!1,o="",a="",l="",u="",d="",f="";for(let m=0;m<t;m++)o=i[m],a=i[m-1],l=i[m+1],r=Ld(r,a,o),!r&&a!==ai&&o==="("&&(n&&(f+=d),n=!0,d=""),r&&o===ai&&s3.test(l)&&(m++,o=l),n?d+=o:f+=o,!r&&a!==ai&&o===")"&&n&&(n=!1,u=z0(i,m+1),d+=u,(d===Ni||o3.test(d))&&(d=d.substr(1,d.length-2)),f+=d,m+=u.length);return f}function l3(i,t){let n=typeof i=="string"?i:Wo(i),r=n.length,o=typeof t=="number"?t:q0(n),a=0,l=!1,u=0,d="",f="",m="",p="";for(let E=0;E<r;E++)if(d=n[E],f=n[E-1],l=Ld(l,f,d),!l&&f!==ai&&d==="("&&(a++,m=""),(a>0||u>0)&&(p+=d,m+=d),!l&&f!==ai&&d===")"&&a>0&&(a--,m===Ni&&u++,a===0&&u===0&&(p=""),a===0&&u>=o)){p+=z0(n,++E);break}return p}function c3(i,t,n){let r=1,o=typeof i=="string"?i:Wo(i),a=q0(o),l=t.map(m=>{let p=zS(m,n);return r=Math.max(r,p),a>=p?m:null}).filter(Boolean);if(!l.length)return null;let u=l3(o,r),d=Pd(Y0([].concat(...l.map(m=>WS(m,n).map(p=>LS(u,p,r))))));return o.replace(u,d)}function u3(i,t,n){let r=[];return i.forEach(f=>{var m=f,{family:o,regExp:a,resultFixedVersion:l,requestVersions:u}=m,d=Vi(m,["family","regExp","resultFixedVersion","requestVersions"]);let p=Wo(a),E=null,S="";l?(E=a,S=p):(S=c3(p,t.get(o),n),E=new RegExp(S)),S&&E&&r.push(Fe({family:o,sourceRegExp:a,sourceRegExpString:p,regExp:E,regExpString:S,resultFixedVersion:l,requestVersions:u,requestVersionsStrings:u.map(v=>Js(v)?String(v[0]):v.join("."))},d))}),r}function d3(i){return i.map(r=>{var o=r,{regExpString:t}=o,n=Vi(o,["regExpString"]);let a=a3(t),l=new RegExp(a);return jt(Fe({},n),{regExp:l,regExpString:a})})}var X8=[{test(i){let t=i.get("chrome"),n=i.get("edge");if(!(t&&n))return!1;let o=t[0][0],a=n[0][0];return o<74&&a<=18},patch(i){let{family:t,regExpString:n,resultMinVersion:r}=i;if(t!=="chrome"||r&&r[0]>=74||n.includes("HeadlessChrome"))return i;let o=`${n}([\\d.]+$|.*Safari\\/(?![\\d.]+ Edge\\/[\\d.]+$))`,a=new RegExp(o);return jt(Fe({},i),{regExp:a,regExpString:o})}},{test(i){return i.has("safari")},patch(i){let{family:t,regExpString:n}=i;if(t!=="safari")return i;let r=n.replace(/\.\*(Safari\\\/)/," $1"),o=new RegExp(r);return jt(Fe({},i),{regExp:o,regExpString:r})}}];function f3(i,t){let n=new Map;return i.map(r=>X8.reduce((o,a)=>(n.has(a)||n.set(a,a.test(t)),n.get(a)?a.patch(o):o),r))}var h3={ignoreMinor:!1,ignorePatch:!0,allowZeroSubversions:!1,allowHigherVersions:!1};function p3(i={}){let S=i,{browsers:t,env:n,path:r}=S,o=Vi(S,["browsers","env","path"]),a=Fe(Fe({},h3),o),l=t3({browsers:t,env:n,path:r}),u=n3(l),d=i3(u),f=YS(u,a),m=u3(f,d,a),p=f3(m,u);return d3(p)}function Q8(i={}){let t=p3(i),n=PS(t);return new RegExp(n)}Ee.BRACED_NUMBER_PATTERN=Ni;Ee.BROWSERS_REGEXPS=KS;Ee.BROWSERS_SHIRTNAMES=Bd;Ee.BROWSERS_SHIRTNAMES_REGEXP=BS;Ee.CHARCLASS_UNESCAPES=s3;Ee.DIGIT_PATTERN=ki;Ee.ESCAPE_SYMBOL=ai;Ee.NUMBER_PATTERN=Md;Ee.OPTIMIZABLE_GROUP=o3;Ee.applyVersionsToRegExp=c3;Ee.applyVersionsToRegExps=u3;Ee.browserVersionsToRanges=i3;Ee.capturePostfix=z0;Ee.compareArrays=W0;Ee.compareSemvers=K0;Ee.defaultOptions=h3;Ee.enumOrRange=US;Ee.extractIOSRegExp=QS;Ee.familyMatched=ao;Ee.fixBrowserFamily=ZS;Ee.fixBrowserRegExp=Z0;Ee.fixBrowsersRegExps=XS;Ee.getBrowsersList=t3;Ee.getMinMaxVersions=JS;Ee.getNumberPatternsCount=q0;Ee.getNumberPatternsPart=l3;Ee.getRegExpsForBrowsers=YS;Ee.getRequiredSemverPartsCount=zS;Ee.getUserAgentRegExp=Q8;Ee.getUserAgentRegExps=p3;Ee.hasNumberPattern=IS;Ee.hasVersion=VS;Ee.isAllVersion=Js;Ee.joinParts=Pd;Ee.joinVersionedBrowsersRegExps=PS;Ee.mergeBrowserVersions=n3;Ee.normalizeBrowserFamily=kS;Ee.numberToDigits=Id;Ee.numbersToRanges=kd;Ee.optimize=a3;Ee.optimizeAll=d3;Ee.optimizeRaysNumberPatterns=jS;Ee.parseBrowsersList=e3;Ee.patchRegExps=f3;Ee.rangeToRegExp=V0;Ee.rangedSemverToRegExp=WS;Ee.rayRangeDigitPattern=G0;Ee.rayToNumberPatterns=DS;Ee.regExpToString=Wo;Ee.replaceNumberPatterns=LS;Ee.segmentRangeNumberPattern=Go;Ee.segmentToNumberPatterns=Nd;Ee.segmentToNumberPatternsOrEnum=qS;Ee.semverify=J0;Ee.skipSquareBraces=Ld;Ee.someSemverMatched=GS;Ee.splitCommonDiff=$S;Ee.splitToDecadeRanges=FS;Ee.uniq=Y0;Ee.uniqItems=NS;Ee.versionsListToRanges=r3});var m3=Y((rl,X0)=>{A();(function(i,t){typeof rl=="object"&&typeof X0=="object"?X0.exports=t():typeof define=="function"&&define.amd?define([],t):typeof rl=="object"?rl.devtoolsDetector=t():i.devtoolsDetector=t()})(typeof self!="undefined"?self:rl,function(){return function(i){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return i[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=i,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:a})},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=3)}([function(i,t,n){"use strict";n.d(t,"j",function(){return m}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return E}),n.d(t,"d",function(){return S}),n.d(t,"i",function(){return v}),n.d(t,"g",function(){return y}),n.d(t,"c",function(){return b}),n.d(t,"h",function(){return w}),t.a=function(){for(var T,C=[],_=0;_<arguments.length;_++)C[_]=arguments[_];return(f==null?void 0:f.document)?(T=f.document).createElement.apply(T,C):{}},n.d(t,"b",function(){return O});var r,o,a,l,u,d=n(1),f=Object(d.a)(),m=((r=f==null?void 0:f.navigator)===null||r===void 0?void 0:r.userAgent)||"unknown",p="InstallTrigger"in((f==null?void 0:f.window)||{})||/firefox/i.test(m),E=/trident/i.test(m)||/msie/i.test(m),S=/edge/i.test(m),v=/webkit/i.test(m)&&!S,y=/IqiyiApp/.test(m),b=((o=f==null?void 0:f.window)===null||o===void 0?void 0:o.chrome)!==void 0||/chrome/i.test(m)||/CriOS/i.test(m),w=(((l=(a=f==null?void 0:f.window)===null||a===void 0?void 0:a.safari)===null||l===void 0?void 0:l.pushNotification)||!1).toString()==="[object SafariRemoteNotification]"||/safari/i.test(m)&&!b,O=typeof((u=f.document)===null||u===void 0?void 0:u.createElement)=="function"},function(i,t,n){"use strict";(function(r){t.c=function(){return typeof performance!="undefined"?performance.now():Date.now()},t.b=function(l){l===void 0&&(l={});for(var u=l.includes,d=u===void 0?[]:u,f=l.excludes,m=f===void 0?[]:f,p=!1,E=!1,S=0,v=d;S<v.length;S++){var y=v[S];if(y===!0){p=!0;break}}for(var b=0,w=m;b<w.length;b++){var y=w[b];if(y===!0){E=!0;break}}return p&&!E},t.d=function(l,u,d){var f=a.a[l];return f===void 0?!1:Object(o.compare)(f,u,d)},t.a=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:r!==void 0?r:this};var o=n(8),a=(n.n(o),n(4))}).call(t,n(7))},function(i,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"c",function(){return l}),n.d(t,"a",function(){return u});var r=n(0);function o(d){if(console){if(!r.f&&!r.d)return console[d];if(d==="log"||d==="clear")return function(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];console[d].apply(console,f)}}return function(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m]}}var a=o("log"),l=o("table"),u=o("clear")},function(i,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addListener=function(p){m.addListener(p)},t.removeListener=function(p){m.removeListener(p)},t.isLaunch=function(){return m.isLaunch()},t.launch=function(){m.launch()},t.stop=function(){m.stop()},t.setDetectDelay=function(p){m.setDetectDelay(p)};var r=n(6),o=n(9);n.d(t,"DevtoolsDetector",function(){return r.a}),n.d(t,"checkers",function(){return o});var a=n(1);n.d(t,"match",function(){return a.b}),n.d(t,"specificVersionMatch",function(){return a.d});var l=n(0);n.d(t,"userAgent",function(){return l.j}),n.d(t,"isFirefox",function(){return l.e}),n.d(t,"isIE",function(){return l.f}),n.d(t,"isEdge",function(){return l.d}),n.d(t,"isWebkit",function(){return l.i}),n.d(t,"isIqiyiApp",function(){return l.g}),n.d(t,"isChrome",function(){return l.c}),n.d(t,"isSafari",function(){return l.h}),n.d(t,"createElement",function(){return l.a}),n.d(t,"inBrowser",function(){return l.b});var u=n(2);n.d(t,"log",function(){return u.b}),n.d(t,"table",function(){return u.c}),n.d(t,"clear",function(){return u.a});var d=n(4);n.d(t,"versionMap",function(){return d.a});var f=n(5);n.d(t,"isMac",function(){return f.d}),n.d(t,"isIpad",function(){return f.b}),n.d(t,"isIphone",function(){return f.c}),n.d(t,"isAndroid",function(){return f.a}),n.d(t,"isWindows",function(){return f.e});var m=new r.a({checkers:[o.erudaChecker,o.elementIdChecker,o.regToStringChecker,o.functionToStringChecker,o.depRegToStringChecker,o.dateToStringChecker,o.performanceChecker,o.debuggerChecker]});t.default=m},function(i,t,n){"use strict";n.d(t,"a",function(){return r});for(var r={},o=0,a=(n(0).j||"").match(/\w+\/(\d|\.)+(\s|$)/gi)||[];o<a.length;o++){var l=a[o].split("/"),u=l[0],d=l[1];r[u]=d}},function(i,t,n){"use strict";n.d(t,"d",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return l}),n.d(t,"a",function(){return u}),n.d(t,"e",function(){return d});var r=n(0),o=/macintosh/i.test(r.j),a=/ipad/i.test(r.j)||o&&navigator.maxTouchPoints>1,l=/iphone/i.test(r.j),u=/android/i.test(r.j),d=/windows/i.test(r.j)},function(i,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=this&&this.__awaiter||function(u,d,f,m){return new(f||(f=Promise))(function(p,E){function S(b){try{y(m.next(b))}catch(w){E(w)}}function v(b){try{y(m.throw(b))}catch(w){E(w)}}function y(b){b.done?p(b.value):function(w){return w instanceof f?w:new f(function(O){O(w)})}(b.value).then(S,v)}y((m=m.apply(u,d||[])).next())})},a=this&&this.__generator||function(u,d){var f,m,p,E,S={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return E={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function v(y){return function(b){return function(w){if(f)throw new TypeError("Generator is already executing.");for(;S;)try{if(f=1,m&&(p=2&w[0]?m.return:w[0]?m.throw||((p=m.return)&&p.call(m),0):m.next)&&!(p=p.call(m,w[1])).done)return p;switch(m=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return S.label++,{value:w[1],done:!1};case 5:S.label++,m=w[1],w=[0];continue;case 7:w=S.ops.pop(),S.trys.pop();continue;default:if(!(p=(p=S.trys).length>0&&p[p.length-1])&&(w[0]===6||w[0]===2)){S=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){S.label=w[1];break}if(w[0]===6&&S.label<p[1]){S.label=p[1],p=w;break}if(p&&S.label<p[2]){S.label=p[2],S.ops.push(w);break}p[2]&&S.ops.pop(),S.trys.pop();continue}w=d.call(u,S)}catch(O){w=[6,O],m=0}finally{f=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([y,b])}}},l=function(){function u(d){var f=d.checkers;this._listeners=[],this._isOpen=!1,this._detectLoopStopped=!0,this._detectLoopDelay=500,this._checkers=f.slice()}return u.prototype.launch=function(){r.b&&(this._detectLoopDelay<=0&&this.setDetectDelay(500),this._detectLoopStopped&&(this._detectLoopStopped=!1,this._detectLoop()))},u.prototype.stop=function(){this._detectLoopStopped||(this._detectLoopStopped=!0,clearTimeout(this._timer))},u.prototype.isLaunch=function(){return!this._detectLoopStopped},u.prototype.setDetectDelay=function(d){this._detectLoopDelay=d},u.prototype.addListener=function(d){this._listeners.push(d)},u.prototype.removeListener=function(d){this._listeners=this._listeners.filter(function(f){return f!==d})},u.prototype._broadcast=function(d){for(var f=0,m=this._listeners;f<m.length;f++){var p=m[f];try{p(d.isOpen,d)}catch(E){}}},u.prototype._detectLoop=function(){return o(this,void 0,void 0,function(){var d,f,m,p,E,S=this;return a(this,function(v){switch(v.label){case 0:d=!1,f="",m=0,p=this._checkers,v.label=1;case 1:return m<p.length?[4,(E=p[m]).isEnable()]:[3,6];case 2:return v.sent()?(f=E.name,[4,E.isOpen()]):[3,4];case 3:d=v.sent(),v.label=4;case 4:if(d)return[3,6];v.label=5;case 5:return m++,[3,1];case 6:return d!=this._isOpen&&(this._isOpen=d,this._broadcast({isOpen:d,checkerName:f})),this._detectLoopDelay>0&&!this._detectLoopStopped?this._timer=setTimeout(function(){return S._detectLoop()},this._detectLoopDelay):this.stop(),[2]}})})},u}()},function(i,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(r){typeof window=="object"&&(n=window)}i.exports=n},function(i,t,n){var r,o,a;(function(l,u){o=[],(a=typeof(r=u)=="function"?r.apply(t,o):r)===void 0||(i.exports=a)})(0,function(){var l=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function u(S){var v=S.replace(/^v/,"").replace(/\+.*$/,""),y=function(w,O){return w.indexOf(O)===-1?w.length:w.indexOf(O)}(v,"-"),b=v.substring(0,y).split(".");return b.push(v.substring(y+1)),b}function d(S){return isNaN(Number(S))?S:Number(S)}function f(S){if(typeof S!="string")throw new TypeError("Invalid argument expected string");if(!l.test(S))throw new Error("Invalid argument not valid semver ('"+S+"' received)")}function m(S,v){[S,v].forEach(f);for(var y=u(S),b=u(v),w=0;w<Math.max(y.length-1,b.length-1);w++){var O=parseInt(y[w]||0,10),T=parseInt(b[w]||0,10);if(O>T)return 1;if(T>O)return-1}var C=y[y.length-1],_=b[b.length-1];if(C&&_){var P=C.split(".").map(d),D=_.split(".").map(d);for(w=0;w<Math.max(P.length,D.length);w++){if(P[w]===void 0||typeof D[w]=="string"&&typeof P[w]=="number")return-1;if(D[w]===void 0||typeof P[w]=="string"&&typeof D[w]=="number"||P[w]>D[w])return 1;if(D[w]>P[w])return-1}}else if(C||_)return C?-1:1;return 0}var p=[">",">=","=","<","<="],E={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return m.validate=function(S){return typeof S=="string"&&l.test(S)},m.compare=function(S,v,y){(function(w){if(typeof w!="string")throw new TypeError("Invalid operator type, expected string but got "+typeof w);if(p.indexOf(w)===-1)throw new TypeError("Invalid operator, expected one of "+p.join("|"))})(y);var b=m(S,v);return E[y].indexOf(b)>-1},m})},function(i,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10);n.d(t,"depRegToStringChecker",function(){return r.a});var o=n(11);n.d(t,"elementIdChecker",function(){return o.a});var a=n(12);n.d(t,"functionToStringChecker",function(){return a.a});var l=n(13);n.d(t,"regToStringChecker",function(){return l.a});var u=n(14);n.d(t,"debuggerChecker",function(){return u.a});var d=n(15);n.d(t,"dateToStringChecker",function(){return d.a});var f=n(16);n.d(t,"performanceChecker",function(){return f.a});var m=n(17);n.d(t,"erudaChecker",function(){return m.a})},function(i,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(0),o=n(2),a=n(1),l=this&&this.__awaiter||function(p,E,S,v){return new(S||(S=Promise))(function(y,b){function w(C){try{T(v.next(C))}catch(_){b(_)}}function O(C){try{T(v.throw(C))}catch(_){b(_)}}function T(C){C.done?y(C.value):function(_){return _ instanceof S?_:new S(function(P){P(_)})}(C.value).then(w,O)}T((v=v.apply(p,E||[])).next())})},u=this&&this.__generator||function(p,E){var S,v,y,b,w={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return b={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function O(T){return function(C){return function(_){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,v&&(y=2&_[0]?v.return:_[0]?v.throw||((y=v.return)&&y.call(v),0):v.next)&&!(y=y.call(v,_[1])).done)return y;switch(v=0,y&&(_=[2&_[0],y.value]),_[0]){case 0:case 1:y=_;break;case 4:return w.label++,{value:_[1],done:!1};case 5:w.label++,v=_[1],_=[0];continue;case 7:_=w.ops.pop(),w.trys.pop();continue;default:if(!(y=(y=w.trys).length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){w=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){w.label=_[1];break}if(_[0]===6&&w.label<y[1]){w.label=y[1],y=_;break}if(y&&w.label<y[2]){w.label=y[2],w.ops.push(_);break}y[2]&&w.ops.pop(),w.trys.pop();continue}_=E.call(p,w)}catch(P){_=[6,P],v=0}finally{S=y=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([T,C])}}},d=/ /,f=!1;d.toString=function(){return f=!0,m.name};var m={name:"dep-reg-to-string",isOpen:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return f=!1,Object(o.c)({dep:d}),Object(o.a)(),[2,f]})})},isEnable:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return[2,Object(a.b)({includes:[!0],excludes:[r.e,r.f]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(0),o=n(2),a=n(1),l=this&&this.__awaiter||function(p,E,S,v){return new(S||(S=Promise))(function(y,b){function w(C){try{T(v.next(C))}catch(_){b(_)}}function O(C){try{T(v.throw(C))}catch(_){b(_)}}function T(C){C.done?y(C.value):function(_){return _ instanceof S?_:new S(function(P){P(_)})}(C.value).then(w,O)}T((v=v.apply(p,E||[])).next())})},u=this&&this.__generator||function(p,E){var S,v,y,b,w={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return b={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function O(T){return function(C){return function(_){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,v&&(y=2&_[0]?v.return:_[0]?v.throw||((y=v.return)&&y.call(v),0):v.next)&&!(y=y.call(v,_[1])).done)return y;switch(v=0,y&&(_=[2&_[0],y.value]),_[0]){case 0:case 1:y=_;break;case 4:return w.label++,{value:_[1],done:!1};case 5:w.label++,v=_[1],_=[0];continue;case 7:_=w.ops.pop(),w.trys.pop();continue;default:if(!(y=(y=w.trys).length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){w=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){w.label=_[1];break}if(_[0]===6&&w.label<y[1]){w.label=y[1],y=_;break}if(y&&w.label<y[2]){w.label=y[2],w.ops.push(_);break}y[2]&&w.ops.pop(),w.trys.pop();continue}_=E.call(p,w)}catch(P){_=[6,P],v=0}finally{S=y=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([T,C])}}},d=Object(r.a)("div"),f=!1;Object.defineProperty(d,"id",{get:function(){return f=!0,m.name},configurable:!0});var m={name:"element-id",isOpen:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return f=!1,Object(o.b)(d),Object(o.a)(),[2,f]})})},isEnable:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return[2,Object(a.b)({includes:[!0],excludes:[r.f,r.d,r.e]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(0),o=n(2),a=n(5),l=n(1),u=this&&this.__awaiter||function(E,S,v,y){return new(v||(v=Promise))(function(b,w){function O(_){try{C(y.next(_))}catch(P){w(P)}}function T(_){try{C(y.throw(_))}catch(P){w(P)}}function C(_){_.done?b(_.value):function(P){return P instanceof v?P:new v(function(D){D(P)})}(_.value).then(O,T)}C((y=y.apply(E,S||[])).next())})},d=this&&this.__generator||function(E,S){var v,y,b,w,O={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return w={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function T(C){return function(_){return function(P){if(v)throw new TypeError("Generator is already executing.");for(;O;)try{if(v=1,y&&(b=2&P[0]?y.return:P[0]?y.throw||((b=y.return)&&b.call(y),0):y.next)&&!(b=b.call(y,P[1])).done)return b;switch(y=0,b&&(P=[2&P[0],b.value]),P[0]){case 0:case 1:b=P;break;case 4:return O.label++,{value:P[1],done:!1};case 5:O.label++,y=P[1],P=[0];continue;case 7:P=O.ops.pop(),O.trys.pop();continue;default:if(!(b=(b=O.trys).length>0&&b[b.length-1])&&(P[0]===6||P[0]===2)){O=0;continue}if(P[0]===3&&(!b||P[1]>b[0]&&P[1]<b[3])){O.label=P[1];break}if(P[0]===6&&O.label<b[1]){O.label=b[1],b=P;break}if(b&&O.label<b[2]){O.label=b[2],O.ops.push(P);break}b[2]&&O.ops.pop(),O.trys.pop();continue}P=S.call(E,O)}catch(D){P=[6,D],y=0}finally{v=b=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([C,_])}}};function f(){}var m=0;f.toString=function(){return m++,""};var p={name:"function-to-string",isOpen:function(){return u(this,void 0,void 0,function(){return d(this,function(E){return m=0,Object(o.b)(f),Object(o.a)(),[2,m===2]})})},isEnable:function(){return u(this,void 0,void 0,function(){return d(this,function(E){return[2,Object(l.b)({includes:[!0],excludes:[r.g,r.e,(a.b||a.c)&&r.c]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(2),o=n(0),a=n(1),l=this&&this.__awaiter||function(p,E,S,v){return new(S||(S=Promise))(function(y,b){function w(C){try{T(v.next(C))}catch(_){b(_)}}function O(C){try{T(v.throw(C))}catch(_){b(_)}}function T(C){C.done?y(C.value):function(_){return _ instanceof S?_:new S(function(P){P(_)})}(C.value).then(w,O)}T((v=v.apply(p,E||[])).next())})},u=this&&this.__generator||function(p,E){var S,v,y,b,w={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return b={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function O(T){return function(C){return function(_){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,v&&(y=2&_[0]?v.return:_[0]?v.throw||((y=v.return)&&y.call(v),0):v.next)&&!(y=y.call(v,_[1])).done)return y;switch(v=0,y&&(_=[2&_[0],y.value]),_[0]){case 0:case 1:y=_;break;case 4:return w.label++,{value:_[1],done:!1};case 5:w.label++,v=_[1],_=[0];continue;case 7:_=w.ops.pop(),w.trys.pop();continue;default:if(!(y=(y=w.trys).length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){w=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){w.label=_[1];break}if(_[0]===6&&w.label<y[1]){w.label=y[1],y=_;break}if(y&&w.label<y[2]){w.label=y[2],w.ops.push(_);break}y[2]&&w.ops.pop(),w.trys.pop();continue}_=E.call(p,w)}catch(P){_=[6,P],v=0}finally{S=y=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([T,C])}}},d=/ /,f=!1;d.toString=function(){return f=!0,m.name};var m={name:"reg-to-string",isOpen:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return f=!1,Object(r.b)(d),Object(r.a)(),[2,f]})})},isEnable:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return[2,Object(a.b)({includes:[!0],excludes:[o.i]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(1),o=this&&this.__awaiter||function(u,d,f,m){return new(f||(f=Promise))(function(p,E){function S(b){try{y(m.next(b))}catch(w){E(w)}}function v(b){try{y(m.throw(b))}catch(w){E(w)}}function y(b){b.done?p(b.value):function(w){return w instanceof f?w:new f(function(O){O(w)})}(b.value).then(S,v)}y((m=m.apply(u,d||[])).next())})},a=this&&this.__generator||function(u,d){var f,m,p,E,S={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return E={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function v(y){return function(b){return function(w){if(f)throw new TypeError("Generator is already executing.");for(;S;)try{if(f=1,m&&(p=2&w[0]?m.return:w[0]?m.throw||((p=m.return)&&p.call(m),0):m.next)&&!(p=p.call(m,w[1])).done)return p;switch(m=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return S.label++,{value:w[1],done:!1};case 5:S.label++,m=w[1],w=[0];continue;case 7:w=S.ops.pop(),S.trys.pop();continue;default:if(!(p=(p=S.trys).length>0&&p[p.length-1])&&(w[0]===6||w[0]===2)){S=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){S.label=w[1];break}if(w[0]===6&&S.label<p[1]){S.label=p[1],p=w;break}if(p&&S.label<p[2]){S.label=p[2],S.ops.push(w);break}p[2]&&S.ops.pop(),S.trys.pop();continue}w=d.call(u,S)}catch(O){w=[6,O],m=0}finally{f=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([y,b])}}},l={name:"debugger-checker",isOpen:function(){return o(this,void 0,void 0,function(){var u;return a(this,function(d){return u=Object(r.c)(),function(){}.constructor("debugger")(),[2,Object(r.c)()-u>100]})})},isEnable:function(){return o(this,void 0,void 0,function(){return a(this,function(u){return[2,!0]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(0),o=n(2),a=n(1),l=n(3),u=this&&this.__awaiter||function(E,S,v,y){return new(v||(v=Promise))(function(b,w){function O(_){try{C(y.next(_))}catch(P){w(P)}}function T(_){try{C(y.throw(_))}catch(P){w(P)}}function C(_){_.done?b(_.value):function(P){return P instanceof v?P:new v(function(D){D(P)})}(_.value).then(O,T)}C((y=y.apply(E,S||[])).next())})},d=this&&this.__generator||function(E,S){var v,y,b,w,O={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return w={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function T(C){return function(_){return function(P){if(v)throw new TypeError("Generator is already executing.");for(;O;)try{if(v=1,y&&(b=2&P[0]?y.return:P[0]?y.throw||((b=y.return)&&b.call(y),0):y.next)&&!(b=b.call(y,P[1])).done)return b;switch(y=0,b&&(P=[2&P[0],b.value]),P[0]){case 0:case 1:b=P;break;case 4:return O.label++,{value:P[1],done:!1};case 5:O.label++,y=P[1],P=[0];continue;case 7:P=O.ops.pop(),O.trys.pop();continue;default:if(!(b=(b=O.trys).length>0&&b[b.length-1])&&(P[0]===6||P[0]===2)){O=0;continue}if(P[0]===3&&(!b||P[1]>b[0]&&P[1]<b[3])){O.label=P[1];break}if(P[0]===6&&O.label<b[1]){O.label=b[1],b=P;break}if(b&&O.label<b[2]){O.label=b[2],O.ops.push(P);break}b[2]&&O.ops.pop(),O.trys.pop();continue}P=S.call(E,O)}catch(D){P=[6,D],y=0}finally{v=b=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([C,_])}}},f=new Date,m=0;f.toString=function(){return m++,""};var p={name:"date-to-string",isOpen:function(){return u(this,void 0,void 0,function(){return d(this,function(E){return m=0,Object(o.b)(f),Object(o.a)(),[2,m===2]})})},isEnable:function(){return u(this,void 0,void 0,function(){return d(this,function(E){return[2,Object(a.b)({includes:[r.c],excludes:[(l.isIpad||l.isIphone)&&r.c]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(0),o=n(2),a=n(1),l=this&&this.__awaiter||function(p,E,S,v){return new(S||(S=Promise))(function(y,b){function w(C){try{T(v.next(C))}catch(_){b(_)}}function O(C){try{T(v.throw(C))}catch(_){b(_)}}function T(C){C.done?y(C.value):function(_){return _ instanceof S?_:new S(function(P){P(_)})}(C.value).then(w,O)}T((v=v.apply(p,E||[])).next())})},u=this&&this.__generator||function(p,E){var S,v,y,b,w={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return b={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function O(T){return function(C){return function(_){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,v&&(y=2&_[0]?v.return:_[0]?v.throw||((y=v.return)&&y.call(v),0):v.next)&&!(y=y.call(v,_[1])).done)return y;switch(v=0,y&&(_=[2&_[0],y.value]),_[0]){case 0:case 1:y=_;break;case 4:return w.label++,{value:_[1],done:!1};case 5:w.label++,v=_[1],_=[0];continue;case 7:_=w.ops.pop(),w.trys.pop();continue;default:if(!(y=(y=w.trys).length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){w=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){w.label=_[1];break}if(_[0]===6&&w.label<y[1]){w.label=y[1],y=_;break}if(y&&w.label<y[2]){w.label=y[2],w.ops.push(_);break}y[2]&&w.ops.pop(),w.trys.pop();continue}_=E.call(p,w)}catch(P){_=[6,P],v=0}finally{S=y=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([T,C])}}},d=null,f=0,m={name:"performance",isOpen:function(){return l(this,void 0,void 0,function(){var p,E;return u(this,function(S){return d===null&&(d=function(){for(var v=function(){for(var w={},O=0;O<500;O++)w["".concat(O)]="".concat(O);return w}(),y=[],b=0;b<50;b++)y.push(v);return y}()),p=function(){var v=Object(a.c)();return Object(o.c)(d),Object(a.c)()-v}(),E=function(){var v=Object(a.c)();return Object(o.b)(d),Object(a.c)()-v}(),f=Math.max(f,E),Object(o.a)(),p===0?[2,!1]:f===0?[2,!1]:[2,p>10*f]})})},isEnable:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return[2,Object(a.b)({includes:[r.c],excludes:[]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return a});var r=this&&this.__awaiter||function(l,u,d,f){return new(d||(d=Promise))(function(m,p){function E(y){try{v(f.next(y))}catch(b){p(b)}}function S(y){try{v(f.throw(y))}catch(b){p(b)}}function v(y){y.done?m(y.value):function(b){return b instanceof d?b:new d(function(w){w(b)})}(y.value).then(E,S)}v((f=f.apply(l,u||[])).next())})},o=this&&this.__generator||function(l,u){var d,f,m,p,E={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return p={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function S(v){return function(y){return function(b){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,f&&(m=2&b[0]?f.return:b[0]?f.throw||((m=f.return)&&m.call(f),0):f.next)&&!(m=m.call(f,b[1])).done)return m;switch(f=0,m&&(b=[2&b[0],m.value]),b[0]){case 0:case 1:m=b;break;case 4:return E.label++,{value:b[1],done:!1};case 5:E.label++,f=b[1],b=[0];continue;case 7:b=E.ops.pop(),E.trys.pop();continue;default:if(!(m=(m=E.trys).length>0&&m[m.length-1])&&(b[0]===6||b[0]===2)){E=0;continue}if(b[0]===3&&(!m||b[1]>m[0]&&b[1]<m[3])){E.label=b[1];break}if(b[0]===6&&E.label<m[1]){E.label=m[1],m=b;break}if(m&&E.label<m[2]){E.label=m[2],E.ops.push(b);break}m[2]&&E.ops.pop(),E.trys.pop();continue}b=u.call(l,E)}catch(w){b=[6,w],f=0}finally{d=m=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([v,y])}}},a={name:"eruda",isOpen:function(){var l;return r(this,void 0,void 0,function(){return o(this,function(u){return typeof eruda!="undefined"?[2,((l=eruda==null?void 0:eruda._devTools)===null||l===void 0?void 0:l._isShow)===!0]:[2,!1]})})},isEnable:function(){return r(this,void 0,void 0,function(){return o(this,function(l){return[2,!0]})})}}}])})});var b3=Y(()=>{A()});var v3=Y((il,eg)=>{A();(function(i,t){if(typeof il=="object"&&typeof eg=="object")eg.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else if(typeof il=="object")il.JsCrypto=t();else{var n=t();for(var r in i.JsCrypto=i.JsCrypto||{},n)i.JsCrypto[r]=n[r]}})(il,function(){return function(){"use strict";var i={9691:function(o,a,l){l.d(a,{AES:function(){return q}});var u,d=l(9456),f=l(787),m=l(5693),p=l(9109),E=(u=function(U,k){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,N){B.__proto__=N}||function(B,N){for(var W in N)Object.prototype.hasOwnProperty.call(N,W)&&(B[W]=N[W])})(U,k)},function(U,k){function B(){this.constructor=U}u(U,k),U.prototype=k===null?Object.create(k):(B.prototype=k.prototype,new B)}),S=function(){return(S=Object.assign||function(U){for(var k,B=1,N=arguments.length;B<N;B++)for(var W in k=arguments[B])Object.prototype.hasOwnProperty.call(k,W)&&(U[W]=k[W]);return U}).apply(this,arguments)},v=[],y=[],b=[],w=[],O=[],T=[],C=[],_=[],P=[],D=[];(function(){for(var U=[],k=0;k<256;k++)U[k]=k<128?k<<1:k<<1^283;var B=0,N=0;for(k=0;k<256;k++){var W=N^N<<1^N<<2^N<<3^N<<4;W=W>>>8^255&W^99,v[B]=W,y[W]=B;var ye=U[B],be=U[ye],fe=U[be],re=257*U[W]^16843008*W;b[B]=re<<24|re>>>8,w[B]=re<<16|re>>>16,O[B]=re<<8|re>>>24,T[B]=re,re=16843009*fe^65537*be^257*ye^16843008*B,C[W]=re<<24|re>>>8,_[W]=re<<16|re>>>16,P[W]=re<<8|re>>>24,D[W]=re,B?(B=ye^U[U[U[fe^ye]]],N^=U[U[N]]):B=N=1}})();var I=[0,1,2,4,8,16,32,64,128,27,54],q=function(U){function k(B){var N=U.call(this,B)||this;return N.u=0,N.h=[],N.v=[],N.O=B,N.A(),N}return E(k,U),k.prototype.A=function(){var B;if(!this.u||this.k!==this.H){for(var N=this.k=this.H,W=N.words,ye=N.nSigBytes/4,be=4*((this.u=ye+6)+1),fe=this.h=[],re=0;re<be;re++)re<ye?fe[re]=W[re]:(B=fe[re-1],re%ye?ye>6&&re%ye==4&&(B=v[B>>>24]<<24|v[B>>>16&255]<<16|v[B>>>8&255]<<8|v[255&B]):(B=v[(B=B<<8|B>>>24)>>>24]<<24|v[B>>>16&255]<<16|v[B>>>8&255]<<8|v[255&B],B^=I[re/ye|0]<<24),fe[re]=fe[re-ye]^B);this.v=[];for(var he=0;he<be;he++)re=be-he,B=he%4?fe[re]:fe[re-4],this.v[he]=he<4||re<=4?B:C[v[B>>>24]]^_[v[B>>>16&255]]^P[v[B>>>8&255]]^D[v[255&B]]}},k.prototype.encryptBlock=function(B,N){this.B(B,N,this.h,b,w,O,T,v)},k.prototype.decryptBlock=function(B,N){var W=B[N+1];B[N+1]=B[N+3],B[N+3]=W,this.B(B,N,this.v,C,_,P,D,y),W=B[N+1],B[N+1]=B[N+3],B[N+3]=W},k.prototype.B=function(B,N,W,ye,be,fe,re,he){for(var Ae=this.u,ue=B[N]^W[0],xe=B[N+1]^W[1],Re=B[N+2]^W[2],Se=B[N+3]^W[3],V=4,ee=1;ee<Ae;ee++){var ne=ye[ue>>>24]^be[xe>>>16&255]^fe[Re>>>8&255]^re[255&Se]^W[V++],ae=ye[xe>>>24]^be[Re>>>16&255]^fe[Se>>>8&255]^re[255&ue]^W[V++],bt=ye[Re>>>24]^be[Se>>>16&255]^fe[ue>>>8&255]^re[255&xe]^W[V++],Ft=ye[Se>>>24]^be[ue>>>16&255]^fe[xe>>>8&255]^re[255&Re]^W[V++];ue=ne,xe=ae,Re=bt,Se=Ft}var Mt=(he[ue>>>24]<<24|he[xe>>>16&255]<<16|he[Re>>>8&255]<<8|he[255&Se])^W[V++],Et=(he[xe>>>24]<<24|he[Re>>>16&255]<<16|he[Se>>>8&255]<<8|he[255&ue])^W[V++],On=(he[Re>>>24]<<24|he[Se>>>16&255]<<16|he[ue>>>8&255]<<8|he[255&xe])^W[V++],Bn=(he[Se>>>24]<<24|he[ue>>>16&255]<<16|he[xe>>>8&255]<<8|he[255&Re])^W[V++];B[N]=Mt,B[N+1]=Et,B[N+2]=On,B[N+3]=Bn},k.createEncryptor=function(B,N){return new k(S(S({},N=N===void 0?{}:N),{key:B,transformMode:d.t.ENC_TRANSFORM_MODE}))},k.createDecryptor=function(B,N){return new k(S(S({},N=N===void 0?{}:N),{key:B,transformMode:d.t.DEC_TRANSFORM_MODE}))},k.encrypt=function(B,N,W){if(typeof N=="string")return m.E.encrypt(k,B,N,W);if(N.nSigBytes%4!=0)throw new Error("Key size must be multiple of 32bit/4byte/1word");return p.D.encrypt(k,B,N,W)},k.decrypt=function(B,N,W){if(typeof N=="string")return m.E.decrypt(k,B,N,W);if(N.nSigBytes%4!=0)throw new Error("Key size must be multiple of 32bit/4byte/1word");return p.D.decrypt(k,B,N,W)},k.keySize=8,k}(f.G)},3967:function(o,a,l){l.d(a,{CBCMAC:function(){return p}});var u=l(4768),d=l(3354),f=l(9691),m=l(3664);function p(E,S,v,y,b,w){var O=w&&w.Cipher?w.Cipher:f.AES,T=typeof v=="string"?u.d.parse(v):v,C=y||new d.e([0,0]),_=typeof S=="string"?u.d.parse(S):S,P=typeof E=="string"?u.d.parse(E):E,D=b||16;return m.K.mac(O,T,C,_,P,D)}},9910:function(o,a,l){l.d(a,{DES:function(){return T}});var u,d=l(787),f=l(9456),m=l(5693),p=l(9109),E=(u=function(C,_){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,D){P.__proto__=D}||function(P,D){for(var I in D)Object.prototype.hasOwnProperty.call(D,I)&&(P[I]=D[I])})(C,_)},function(C,_){function P(){this.constructor=C}u(C,_),C.prototype=_===null?Object.create(_):(P.prototype=_.prototype,new P)}),S=function(){return(S=Object.assign||function(C){for(var _,P=1,D=arguments.length;P<D;P++)for(var I in _=arguments[P])Object.prototype.hasOwnProperty.call(_,I)&&(C[I]=_[I]);return C}).apply(this,arguments)},v=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],y=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],b=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],w=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],O=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],T=function(C){function _(P){var D=C.call(this,P)||this;return D.N=2,D.I=[],D.U=[],D.L=0,D.F=0,D.O=P,D.A(),D}return E(_,C),_.prototype.A=function(){for(var P=this.H.words,D=[],I=0;I<56;I++){var q=v[I]-1;D[I]=P[q>>>5]>>>31-q%32&1}for(var U=this.I=[],k=0;k<16;k++){var B=U[k]=[],N=b[k];for(I=0;I<24;I++)B[I/6|0]|=D[(y[I]-1+N)%28]<<31-I%6,B[4+(I/6|0)]|=D[28+(y[I+24]-1+N)%28]<<31-I%6;for(B[0]=B[0]<<1|B[0]>>>31,I=1;I<7;I++)B[I]=B[I]>>>4*(I-1)+3;B[7]=B[7]<<5|B[7]>>>27}for(this.U=[],I=0;I<16;I++)this.U[I]=U[15-I]},_.prototype.encryptBlock=function(P,D){this.R(P,D,this.I)},_.prototype.decryptBlock=function(P,D){this.R(P,D,this.U)},_.prototype.R=function(P,D,I){this.L=P[D],this.F=P[D+1],this.X(4,252645135),this.X(16,65535),this.Z(2,858993459),this.Z(8,16711935),this.X(1,1431655765);for(var q=0;q<16;q++){for(var U=I[q],k=this.L,B=this.F,N=0,W=0;W<8;W++){var ye=(B^U[W])&O[W];N|=w[W][ye>>>0]}this.L=B,this.F=k^N}var be=this.L;this.L=this.F,this.F=be,this.X(1,1431655765),this.Z(8,16711935),this.Z(2,858993459),this.X(16,65535),this.X(4,252645135),P[D]=this.L,P[D+1]=this.F},_.prototype.X=function(P,D){var I=(this.L>>>P^this.F)&D;this.F^=I,this.L^=I<<P},_.prototype.Z=function(P,D){var I=(this.F>>>P^this.L)&D;this.L^=I,this.F^=I<<P},_.createEncryptor=function(P,D){return new _(S(S({},D=D===void 0?{}:D),{key:P,transformMode:f.t.ENC_TRANSFORM_MODE}))},_.createDecryptor=function(P,D){return new _(S(S({},D=D===void 0?{}:D),{key:P,transformMode:f.t.DEC_TRANSFORM_MODE}))},_.encrypt=function(P,D,I){return typeof D=="string"?m.E.encrypt(_,P,D,I):p.D.encrypt(_,P,D,I)},_.decrypt=function(P,D,I){return typeof D=="string"?m.E.decrypt(_,P,D,I):p.D.decrypt(_,P,D,I)},_.keySize=2,_.ivSize=2,_}(d.G)},6739:function(o,a,l){l.d(a,{DES3:function(){return b}});var u,d=l(9109),f=l(787),m=l(9456),p=l(9910),E=l(3354),S=l(5693),v=(u=function(w,O){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(T[_]=C[_])})(w,O)},function(w,O){function T(){this.constructor=w}u(w,O),w.prototype=O===null?Object.create(O):(T.prototype=O.prototype,new T)}),y=function(){return(y=Object.assign||function(w){for(var O,T=1,C=arguments.length;T<C;T++)for(var _ in O=arguments[T])Object.prototype.hasOwnProperty.call(O,_)&&(w[_]=O[_]);return w}).apply(this,arguments)},b=function(w){function O(T){var C=w.call(this,T)||this;C.N=2,C.O=T;var _=C.J();return C.Y=_[0],C.$=_[1],C.nn=_[2],C}return v(O,w),O.prototype.J=function(){var T=this.H.words;if(T.length!==2&&T.length!==4&&T.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var C=T.slice(0,2),_=T.length<4?T.slice(0,2):T.slice(2,4),P=T.length<6?T.slice(0,2):T.slice(4,6);return[p.DES.createEncryptor(new E.e(C)),p.DES.createEncryptor(new E.e(_)),p.DES.createEncryptor(new E.e(P))]},O.prototype.A=function(){var T=this.J();this.Y=T[0],this.$=T[1],this.nn=T[2]},O.prototype.encryptBlock=function(T,C){this.Y.encryptBlock(T,C),this.$.decryptBlock(T,C),this.nn.encryptBlock(T,C)},O.prototype.decryptBlock=function(T,C){this.nn.decryptBlock(T,C),this.$.encryptBlock(T,C),this.Y.decryptBlock(T,C)},O.createEncryptor=function(T,C){return new O(y(y({},C=C===void 0?{}:C),{key:T,transformMode:m.t.ENC_TRANSFORM_MODE}))},O.createDecryptor=function(T,C){return new O(y(y({},C=C===void 0?{}:C),{key:T,transformMode:m.t.DEC_TRANSFORM_MODE}))},O.encrypt=function(T,C,_){return typeof C=="string"?S.E.encrypt(O,T,C,_):d.D.encrypt(O,T,C,_)},O.decrypt=function(T,C,_){return typeof C=="string"?S.E.decrypt(O,T,C,_):d.D.decrypt(O,T,C,_)},O.keySize=6,O.ivSize=2,O}(f.G)},7753:function(o,a,l){l.d(a,{GMAC:function(){return p}});var u=l(4768),d=l(3354),f=l(9691),m=l(5607);function p(E,S,v,y,b){var w=typeof E=="string"?u.d.parse(E):E,O=v||new d.e([0,0,0,0]),T=b&&b.Cipher?b.Cipher:f.AES,C=typeof S=="string"?u.d.parse(S):S,_=y||16;return m.V.mac(T,C,O,w,void 0,_)}},6367:function(o,a,l){l.d(a,{Hmac:function(){return d}});var u=l(4768),d=function(){function f(m,p){this.tn=m,typeof p=="string"&&(p=u.d.parse(p));var E=m.blockSize,S=4*E;p.nSigBytes>S&&(p=m.finalize(p)),p.clamp();for(var v=this.rn=p.clone(),y=this.en=p.clone(),b=v.words,w=y.words,O=0;O<E;O++)b[O]^=1549556828,w[O]^=909522486;y.nSigBytes=S,v.nSigBytes=S,this.reset()}return f.prototype.reset=function(){this.tn.reset(),this.tn.update(this.en)},f.prototype.update=function(m){return this.tn.update(m),this},f.prototype.finalize=function(m){var p=this.tn.finalize(m);return this.tn.reset(),this.tn.finalize(this.rn.clone().concat(p))},f}()},3027:function(o,a,l){l.d(a,{HmacMD5:function(){return f}});var u=l(6367),d=l(670);function f(m,p){return new u.Hmac(new d.MD5,p).finalize(m)}},149:function(o,a,l){l.d(a,{HmacSHA1:function(){return f}});var u=l(6367),d=l(3173);function f(m,p){return new u.Hmac(new d.SHA1,p).finalize(m)}},4105:function(o,a,l){l.d(a,{HmacSHA224:function(){return f}});var u=l(6367),d=l(766);function f(m,p){return new u.Hmac(new d.SHA224,p).finalize(m)}},980:function(o,a,l){l.d(a,{HmacSHA256:function(){return f}});var u=l(6367),d=l(5561);function f(m,p){return new u.Hmac(new d.SHA256,p).finalize(m)}},5838:function(o,a,l){l.d(a,{HmacSHA384:function(){return f}});var u=l(6367),d=l(6324);function f(m,p){return new u.Hmac(new d.SHA384,p).finalize(m)}},9902:function(o,a,l){l.d(a,{HmacSHA512:function(){return f}});var u=l(6367),d=l(7491);function f(m,p){return new u.Hmac(new d.SHA512,p).finalize(m)}},670:function(o,a,l){l.d(a,{MD5:function(){return b}});var u,d=l(3354),f=l(1868),m=(u=function(w,O){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(T[_]=C[_])})(w,O)},function(w,O){function T(){this.constructor=w}u(w,O),w.prototype=O===null?Object.create(O):(T.prototype=O.prototype,new T)}),p=[];function E(w,O,T,C,_,P,D){var I=w+(O&T|~O&C)+_+D;return(I<<P|I>>>32-P)+O}function S(w,O,T,C,_,P,D){var I=w+(O&C|T&~C)+_+D;return(I<<P|I>>>32-P)+O}function v(w,O,T,C,_,P,D){var I=w+(O^T^C)+_+D;return(I<<P|I>>>32-P)+O}function y(w,O,T,C,_,P,D){var I=w+(T^(O|~C))+_+D;return(I<<P|I>>>32-P)+O}(function(){for(var w=0;w<64;w++)p[w]=4294967296*Math.abs(Math.sin(w+1))|0})();var b=function(w){function O(T){var C=w.call(this,T)||this;return C.on=new d.e([1732584193,4023233417,2562383102,271733878]),T&&T.hash!==void 0&&(C.on=T.hash.clone()),C}return m(O,w),O.prototype.A=function(){this.on=new d.e([1732584193,4023233417,2562383102,271733878])},O.prototype.un=function(T,C){for(var _=0;_<16;_++){var P=C+_,D=T[P];T[P]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8)}var I=this.on.words,q=T[C],U=T[C+1],k=T[C+2],B=T[C+3],N=T[C+4],W=T[C+5],ye=T[C+6],be=T[C+7],fe=T[C+8],re=T[C+9],he=T[C+10],Ae=T[C+11],ue=T[C+12],xe=T[C+13],Re=T[C+14],Se=T[C+15],V=I[0],ee=I[1],ne=I[2],ae=I[3];V=E(V,ee,ne,ae,q,7,p[0]),ae=E(ae,V,ee,ne,U,12,p[1]),ne=E(ne,ae,V,ee,k,17,p[2]),ee=E(ee,ne,ae,V,B,22,p[3]),V=E(V,ee,ne,ae,N,7,p[4]),ae=E(ae,V,ee,ne,W,12,p[5]),ne=E(ne,ae,V,ee,ye,17,p[6]),ee=E(ee,ne,ae,V,be,22,p[7]),V=E(V,ee,ne,ae,fe,7,p[8]),ae=E(ae,V,ee,ne,re,12,p[9]),ne=E(ne,ae,V,ee,he,17,p[10]),ee=E(ee,ne,ae,V,Ae,22,p[11]),V=E(V,ee,ne,ae,ue,7,p[12]),ae=E(ae,V,ee,ne,xe,12,p[13]),ne=E(ne,ae,V,ee,Re,17,p[14]),V=S(V,ee=E(ee,ne,ae,V,Se,22,p[15]),ne,ae,U,5,p[16]),ae=S(ae,V,ee,ne,ye,9,p[17]),ne=S(ne,ae,V,ee,Ae,14,p[18]),ee=S(ee,ne,ae,V,q,20,p[19]),V=S(V,ee,ne,ae,W,5,p[20]),ae=S(ae,V,ee,ne,he,9,p[21]),ne=S(ne,ae,V,ee,Se,14,p[22]),ee=S(ee,ne,ae,V,N,20,p[23]),V=S(V,ee,ne,ae,re,5,p[24]),ae=S(ae,V,ee,ne,Re,9,p[25]),ne=S(ne,ae,V,ee,B,14,p[26]),ee=S(ee,ne,ae,V,fe,20,p[27]),V=S(V,ee,ne,ae,xe,5,p[28]),ae=S(ae,V,ee,ne,k,9,p[29]),ne=S(ne,ae,V,ee,be,14,p[30]),V=v(V,ee=S(ee,ne,ae,V,ue,20,p[31]),ne,ae,W,4,p[32]),ae=v(ae,V,ee,ne,fe,11,p[33]),ne=v(ne,ae,V,ee,Ae,16,p[34]),ee=v(ee,ne,ae,V,Re,23,p[35]),V=v(V,ee,ne,ae,U,4,p[36]),ae=v(ae,V,ee,ne,N,11,p[37]),ne=v(ne,ae,V,ee,be,16,p[38]),ee=v(ee,ne,ae,V,he,23,p[39]),V=v(V,ee,ne,ae,xe,4,p[40]),ae=v(ae,V,ee,ne,q,11,p[41]),ne=v(ne,ae,V,ee,B,16,p[42]),ee=v(ee,ne,ae,V,ye,23,p[43]),V=v(V,ee,ne,ae,re,4,p[44]),ae=v(ae,V,ee,ne,ue,11,p[45]),ne=v(ne,ae,V,ee,Se,16,p[46]),V=y(V,ee=v(ee,ne,ae,V,k,23,p[47]),ne,ae,q,6,p[48]),ae=y(ae,V,ee,ne,be,10,p[49]),ne=y(ne,ae,V,ee,Re,15,p[50]),ee=y(ee,ne,ae,V,W,21,p[51]),V=y(V,ee,ne,ae,ue,6,p[52]),ae=y(ae,V,ee,ne,B,10,p[53]),ne=y(ne,ae,V,ee,he,15,p[54]),ee=y(ee,ne,ae,V,U,21,p[55]),V=y(V,ee,ne,ae,fe,6,p[56]),ae=y(ae,V,ee,ne,Se,10,p[57]),ne=y(ne,ae,V,ee,ye,15,p[58]),ee=y(ee,ne,ae,V,xe,21,p[59]),V=y(V,ee,ne,ae,N,6,p[60]),ae=y(ae,V,ee,ne,Ae,10,p[61]),ne=y(ne,ae,V,ee,k,15,p[62]),ee=y(ee,ne,ae,V,re,21,p[63]),I[0]=I[0]+V|0,I[1]=I[1]+ee|0,I[2]=I[2]+ne|0,I[3]=I[3]+ae|0},O.prototype.fn=function(){var T=this.cn,C=T.words,_=8*this.sn,P=8*T.nSigBytes;C[P>>>5]|=128<<24-P%32;var D=Math.floor(_/4294967296),I=_;C[15+(P+64>>>9<<4)]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),C[14+(P+64>>>9<<4)]=16711935&(I<<8|I>>>24)|4278255360&(I<<24|I>>>8),T.nSigBytes=4*(C.length+1),this.an();for(var q=this.on,U=q.words,k=0;k<4;k++){var B=U[k];U[k]=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8)}return q},O.prototype.clone=function(){return new O({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},O.hash=function(T){return new O().finalize(T)},O}(f.P)},4615:function(o,a,l){l.d(a,{RC4:function(){return S}});var u,d=l(30),f=l(5693),m=l(9109),p=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),E=function(){return(E=Object.assign||function(v){for(var y,b=1,w=arguments.length;b<w;b++)for(var O in y=arguments[b])Object.prototype.hasOwnProperty.call(y,O)&&(v[O]=y[O]);return v}).apply(this,arguments)},S=function(v){function y(b){var w=v.call(this,b)||this;return w.S=[],w.i=0,w.j=0,w.O=b,w.A(),w}return p(y,v),y.prototype.A=function(){var b=this.H,w=b.words,O=b.nSigBytes;this.S=[];for(var T=0;T<256;T++)this.S[T]=T;T=0;for(var C=0;T<256;T++){var _=T%O,P=w[_>>>2]>>>24-_%4*8&255;C=(C+this.S[T]+P)%256;var D=this.S[T];this.S[T]=this.S[C],this.S[C]=D}this.i=this.j=0},y.prototype.un=function(b,w){b[w]^=this.generateKeyStreamWord()},y.prototype.generateKeyStreamWord=function(){for(var b=this.S,w=this.i,O=this.j,T=0,C=0;C<4;C++){O=(O+b[w=(w+1)%256])%256;var _=b[w];b[w]=b[O],b[O]=_,T|=b[(b[w]+b[O])%256]<<24-8*C}return this.i=w,this.j=O,T},y.createEncryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.createDecryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.encrypt=function(b,w,O){return typeof w=="string"?f.E.encrypt(y,b,w,O):m.D.encrypt(y,b,w,O)},y.decrypt=function(b,w,O){return typeof w=="string"?f.E.decrypt(y,b,w,O):m.D.decrypt(y,b,w,O)},y.ivSize=0,y.keySize=8,y}(d.q)},9639:function(o,a,l){l.d(a,{RC4Drop:function(){return S}});var u,d=l(5693),f=l(9109),m=l(4615),p=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),E=function(){return(E=Object.assign||function(v){for(var y,b=1,w=arguments.length;b<w;b++)for(var O in y=arguments[b])Object.prototype.hasOwnProperty.call(y,O)&&(v[O]=y[O]);return v}).apply(this,arguments)},S=function(v){function y(b){var w=v.call(this,b)||this;return w.drop=192,w.O=b,b&&typeof b.drop=="number"&&(w.drop=b.drop),w.A(),w}return p(y,v),y.prototype.A=function(){v.prototype.A.call(this);for(var b=this.drop;b>0;b--)this.generateKeyStreamWord()},y.createEncryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.createDecryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.encrypt=function(b,w,O){return typeof w=="string"?d.E.encrypt(y,b,w,O):f.D.encrypt(y,b,w,O)},y.decrypt=function(b,w,O){return typeof w=="string"?d.E.decrypt(y,b,w,O):f.D.decrypt(y,b,w,O)},y}(m.RC4)},7104:function(o,a,l){l.d(a,{RIPEMD160:function(){return D}});var u,d=l(1868),f=l(3354),m=(u=function(I,q){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var B in k)Object.prototype.hasOwnProperty.call(k,B)&&(U[B]=k[B])})(I,q)},function(I,q){function U(){this.constructor=I}u(I,q),I.prototype=q===null?Object.create(q):(U.prototype=q.prototype,new U)}),p=new f.e([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),E=new f.e([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),S=new f.e([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),v=new f.e([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=new f.e([0,1518500249,1859775393,2400959708,2840853838]),b=new f.e([1352829926,1548603684,1836072691,2053994217,0]);function w(I,q,U){return I^q^U}function O(I,q,U){return I&q|~I&U}function T(I,q,U){return(I|~q)^U}function C(I,q,U){return I&U|q&~U}function _(I,q,U){return I^(q|~U)}function P(I,q){return I<<q|I>>>32-q}var D=function(I){function q(U){var k=I.call(this,U)||this;return k.on=new f.e([1732584193,4023233417,2562383102,271733878,3285377520]),k.O=U,U&&U.hash!==void 0&&(k.on=U.hash.clone()),k}return m(q,I),q.prototype.A=function(){this.on=new f.e([1732584193,4023233417,2562383102,271733878,3285377520])},q.prototype.un=function(U,k){for(var B=0;B<16;B++){var N=k+B,W=U[N];U[N]=16711935&(W<<8|W>>>24)|4278255360&(W<<24|W>>>8)}var ye,be,fe,re,he,Ae,ue,xe,Re,Se,V,ee=this.on.words,ne=y.words,ae=b.words,bt=p.words,Ft=E.words,Mt=S.words,Et=v.words;for(Ae=ye=ee[0],ue=be=ee[1],xe=fe=ee[2],Re=re=ee[3],Se=he=ee[4],B=0;B<80;B+=1)V=ye+U[k+bt[B]]|0,V+=B<16?w(be,fe,re)+ne[0]:B<32?O(be,fe,re)+ne[1]:B<48?T(be,fe,re)+ne[2]:B<64?C(be,fe,re)+ne[3]:_(be,fe,re)+ne[4],V=(V=P(V|=0,Mt[B]))+he|0,ye=he,he=re,re=P(fe,10),fe=be,be=V,V=Ae+U[k+Ft[B]]|0,V+=B<16?_(ue,xe,Re)+ae[0]:B<32?C(ue,xe,Re)+ae[1]:B<48?T(ue,xe,Re)+ae[2]:B<64?O(ue,xe,Re)+ae[3]:w(ue,xe,Re)+ae[4],V=(V=P(V|=0,Et[B]))+Se|0,Ae=Se,Se=Re,Re=P(xe,10),xe=ue,ue=V;V=ee[1]+fe+Re|0,ee[1]=ee[2]+re+Se|0,ee[2]=ee[3]+he+Ae|0,ee[3]=ee[4]+ye+ue|0,ee[4]=ee[0]+be+xe|0,ee[0]=V},q.prototype.fn=function(){var U=this.cn,k=U.words,B=8*this.sn,N=8*U.nSigBytes;k[N>>>5]|=128<<24-N%32,k[14+(N+64>>>9<<4)]=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8),U.nSigBytes=4*(k.length+1),this.an();for(var W=this.on,ye=W.words,be=0;be<5;be++){var fe=ye[be];ye[be]=16711935&(fe<<8|fe>>>24)|4278255360&(fe<<24|fe>>>8)}return W},q.prototype.clone=function(){return new q({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},q.hash=function(U,k){return new q(k).finalize(U)},q}(d.P)},5187:function(o,a,l){l.d(a,{Rabbit:function(){return S}});var u,d=l(30),f=l(5693),m=l(9109),p=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),E=function(){return(E=Object.assign||function(v){for(var y,b=1,w=arguments.length;b<w;b++)for(var O in y=arguments[b])Object.prototype.hasOwnProperty.call(y,O)&&(v[O]=y[O]);return v}).apply(this,arguments)},S=function(v){function y(b){var w=v.call(this,b)||this;return w.N=4,w.S=[],w.C=[],w.G=[],w.hn=[],w.vn=[],w.wn=0,w.O=b,w.A(),w}return p(y,v),y.prototype.A=function(){for(var b=this.H.words,w=this.ln,O=0;O<4;O++)b[O]=16711935&(b[O]<<8|b[O]>>>24)|4278255360&(b[O]<<24|b[O]>>>8);var T=this.hn=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],C=this.vn=[b[2]<<16|b[2]>>>16,4294901760&b[0]|65535&b[1],b[3]<<16|b[3]>>>16,4294901760&b[1]|65535&b[2],b[0]<<16|b[0]>>>16,4294901760&b[2]|65535&b[3],b[1]<<16|b[1]>>>16,4294901760&b[3]|65535&b[0]];for(this.wn=0,O=0;O<4;O++)this.nextState();for(O=0;O<8;O++)C[O]^=T[O+4&7];if(w){var _=w.words,P=_[0],D=_[1],I=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),q=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),U=I>>>16|4294901760&q,k=q<<16|65535&I;for(C[0]^=I,C[1]^=U,C[2]^=q,C[3]^=k,C[4]^=I,C[5]^=U,C[6]^=q,C[7]^=k,O=0;O<4;O++)this.nextState()}},y.prototype.un=function(b,w){var O=this.hn;this.nextState(),this.S[0]=O[0]^O[5]>>>16^O[3]<<16,this.S[1]=O[2]^O[7]>>>16^O[5]<<16,this.S[2]=O[4]^O[1]>>>16^O[7]<<16,this.S[3]=O[6]^O[3]>>>16^O[1]<<16;for(var T=0;T<4;T++)this.S[T]=16711935&(this.S[T]<<8|this.S[T]>>>24)|4278255360&(this.S[T]<<24|this.S[T]>>>8),b[w+T]^=this.S[T]},y.prototype.nextState=function(){for(var b=this.hn,w=this.vn,O=0;O<8;O++)this.C[O]=w[O];for(w[0]=w[0]+1295307597+this.wn|0,w[1]=w[1]+3545052371+(w[0]>>>0<this.C[0]>>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0<this.C[1]>>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0<this.C[2]>>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0<this.C[3]>>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0<this.C[4]>>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0<this.C[5]>>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0<this.C[6]>>>0?1:0)|0,this.wn=w[7]>>>0<this.C[7]>>>0?1:0,O=0;O<8;O++){var T=b[O]+w[O],C=65535&T,_=T>>>16,P=((C*C>>>17)+C*_>>>15)+_*_,D=((4294901760&T)*T|0)+((65535&T)*T|0);this.G[O]=P^D}var I=this.G;b[0]=I[0]+(I[7]<<16|I[7]>>>16)+(I[6]<<16|I[6]>>>16)|0,b[1]=I[1]+(I[0]<<8|I[0]>>>24)+I[7]|0,b[2]=I[2]+(I[1]<<16|I[1]>>>16)+(I[0]<<16|I[0]>>>16)|0,b[3]=I[3]+(I[2]<<8|I[2]>>>24)+I[1]|0,b[4]=I[4]+(I[3]<<16|I[3]>>>16)+(I[2]<<16|I[2]>>>16)|0,b[5]=I[5]+(I[4]<<8|I[4]>>>24)+I[3]|0,b[6]=I[6]+(I[5]<<16|I[5]>>>16)+(I[4]<<16|I[4]>>>16)|0,b[7]=I[7]+(I[6]<<8|I[6]>>>24)+I[5]|0},y.createEncryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.createDecryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.encrypt=function(b,w,O){return typeof w=="string"?f.E.encrypt(y,b,w,O):m.D.encrypt(y,b,w,O)},y.decrypt=function(b,w,O){return typeof w=="string"?f.E.decrypt(y,b,w,O):m.D.decrypt(y,b,w,O)},y.ivSize=4,y}(d.q)},3173:function(o,a,l){l.d(a,{SHA1:function(){return E}});var u,d=l(1868),f=l(3354),m=(u=function(S,v){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&(y[w]=b[w])})(S,v)},function(S,v){function y(){this.constructor=S}u(S,v),S.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}),p=[],E=function(S){function v(y){var b=S.call(this,y)||this;return b.on=new f.e([1732584193,4023233417,2562383102,271733878,3285377520]),b.O=y,y&&y.hash!==void 0&&(b.on=y.hash.clone()),b}return m(v,S),v.prototype.A=function(){this.on=new f.e([1732584193,4023233417,2562383102,271733878,3285377520])},v.prototype.un=function(y,b){for(var w=this.on.words,O=w[0],T=w[1],C=w[2],_=w[3],P=w[4],D=0;D<80;D++){if(D<16)p[D]=0|y[b+D];else{var I=p[D-3]^p[D-8]^p[D-14]^p[D-16];p[D]=I<<1|I>>>31}var q=(O<<5|O>>>27)+P+p[D];q+=D<20?1518500249+(T&C|~T&_):D<40?1859775393+(T^C^_):D<60?(T&C|T&_|C&_)-1894007588:(T^C^_)-899497514,P=_,_=C,C=T<<30|T>>>2,T=O,O=q}w[0]=w[0]+O|0,w[1]=w[1]+T|0,w[2]=w[2]+C|0,w[3]=w[3]+_|0,w[4]=w[4]+P|0},v.prototype.fn=function(){var y=this.cn.words,b=8*this.sn,w=8*this.cn.nSigBytes;return y[w>>>5]|=128<<24-w%32,y[14+(w+64>>>9<<4)]=Math.floor(b/4294967296),y[15+(w+64>>>9<<4)]=b,this.cn.nSigBytes=4*y.length,this.an(),this.on},v.prototype.clone=function(){return new v({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},v.hash=function(y,b){return new v(b).finalize(y)},v}(d.P)},766:function(o,a,l){l.d(a,{SHA224:function(){return p}});var u,d=l(3354),f=l(5561),m=(u=function(E,S){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])})(E,S)},function(E,S){function v(){this.constructor=E}u(E,S),E.prototype=S===null?Object.create(S):(v.prototype=S.prototype,new v)}),p=function(E){function S(v){var y=E.call(this,v)||this;return y.on=new d.e([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),y.O=v,v&&v.hash!==void 0&&(y.on=v.hash.clone()),y}return m(S,E),S.prototype.A=function(){this.on=new d.e([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},S.prototype.fn=function(){var v=E.prototype.fn.call(this);return v.nSigBytes-=4,v},S.prototype.clone=function(){return new S({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},S.hash=function(v,y){return new S(y).finalize(v)},S}(f.SHA256)},5561:function(o,a,l){l.d(a,{SHA256:function(){return b}});var u,d=l(1868),f=l(3354),m=(u=function(w,O){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(T[_]=C[_])})(w,O)},function(w,O){function T(){this.constructor=w}u(w,O),w.prototype=O===null?Object.create(O):(T.prototype=O.prototype,new T)}),p=[],E=[];function S(w){for(var O=Math.sqrt(w),T=2;T<=O;T++)if(!(w%T))return!1;return!0}function v(w){return 4294967296*(w-(0|w))|0}(function(){for(var w=2,O=0;O<64;)S(w)&&(O<8&&(p[O]=v(Math.pow(w,.5))),E[O]=v(Math.pow(w,1/3)),O++),w++})();var y=[],b=function(w){function O(T){var C=w.call(this,T)||this;return C.on=new f.e(p.slice(0)),C.O=T,T&&T.hash!==void 0&&(C.on=T.hash.clone()),C}return m(O,w),O.prototype.A=function(){this.on=new f.e(p.slice(0))},O.prototype.un=function(T,C){for(var _=this.on.words,P=_[0],D=_[1],I=_[2],q=_[3],U=_[4],k=_[5],B=_[6],N=_[7],W=0;W<64;W++){if(W<16)y[W]=0|T[C+W];else{var ye=y[W-15],be=(ye<<25|ye>>>7)^(ye<<14|ye>>>18)^ye>>>3,fe=y[W-2],re=(fe<<15|fe>>>17)^(fe<<13|fe>>>19)^fe>>>10;y[W]=be+y[W-7]+re+y[W-16]}var he=P&D^P&I^D&I,Ae=(P<<30|P>>>2)^(P<<19|P>>>13)^(P<<10|P>>>22),ue=N+((U<<26|U>>>6)^(U<<21|U>>>11)^(U<<7|U>>>25))+(U&k^~U&B)+E[W]+y[W];N=B,B=k,k=U,U=q+ue|0,q=I,I=D,D=P,P=ue+(Ae+he)|0}_[0]=_[0]+P|0,_[1]=_[1]+D|0,_[2]=_[2]+I|0,_[3]=_[3]+q|0,_[4]=_[4]+U|0,_[5]=_[5]+k|0,_[6]=_[6]+B|0,_[7]=_[7]+N|0},O.prototype.fn=function(){var T=this.cn.words,C=8*this.sn,_=8*this.cn.nSigBytes;return T[_>>>5]|=128<<24-_%32,T[14+(_+64>>>9<<4)]=Math.floor(C/4294967296),T[15+(_+64>>>9<<4)]=C,this.cn.nSigBytes=4*T.length,this.an(),this.on},O.prototype.clone=function(){return new O({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},O.hash=function(T,C){return new O(C).finalize(T)},O}(d.P)},3408:function(o,a,l){l.d(a,{SHA3:function(){return b}});var u,d=l(6957),f=l(1868),m=l(3354),p=(u=function(w,O){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(T[_]=C[_])})(w,O)},function(w,O){function T(){this.constructor=w}u(w,O),w.prototype=O===null?Object.create(O):(T.prototype=O.prototype,new T)}),E=[],S=[],v=[];(function(){for(var w=1,O=0,T=0;T<24;T++){E[w+5*O]=(T+1)*(T+2)/2%64;var C=(2*w+3*O)%5;w=O%5,O=C}for(var _=0;_<5;_++)for(var P=0;P<5;P++)S[_+5*P]=P+(2*_+3*P)%5*5;for(var D=1,I=0;I<24;I++){for(var q=0,U=0,k=0;k<7;k++){if(1&D){var B=(1<<k)-1;B<32?U^=1<<B:q^=1<<B-32}128&D?D=D<<1^113:D<<=1}v[I]=new d.r(q,U)}})();var y=[];(function(){for(var w=0;w<25;w++)y[w]=new d.r(0,0)})();var b=function(w){function O(T){var C=w.call(this,T)||this;if(C.N=32,C.bn=[],C.dn=512,C.O=T,T){if(T.outputLength!==void 0){if(![224,256,384,512].includes(T.outputLength))throw new Error("Unsupported output length.");C.dn=T.outputLength}T.state!==void 0&&(C.bn=T.state.map(function(P){return P.clone()}))}if(C.bn.length===0)for(var _=0;_<25;_++)C.bn[_]=new d.r(0,0);return C.N=(1600-2*C.dn)/32,C}return p(O,w),O.prototype.A=function(){this.bn=[];for(var T=0;T<25;T++)this.bn[T]=new d.r(0,0);this.N=(1600-2*this.dn)/32},O.prototype.un=function(T,C){for(var _=this.bn,P=this.N/2,D=0;D<P;D++){var I=T[C+2*D],q=T[C+2*D+1];I=16711935&(I<<8|I>>>24)|4278255360&(I<<24|I>>>8),q=16711935&(q<<8|q>>>24)|4278255360&(q<<24|q>>>8),_[D].high^=q,_[D].low^=I}for(var U=0;U<24;U++){for(var k=0;k<5;k++){for(var B=0,N=0,W=0;W<5;W++)B^=(ne=_[k+5*W]).high,N^=ne.low;var ye=y[k];ye.high=B,ye.low=N}for(k=0;k<5;k++){var be=y[(k+4)%5],fe=y[(k+1)%5],re=fe.high,he=fe.low;for(B=be.high^(re<<1|he>>>31),N=be.low^(he<<1|re>>>31),W=0;W<5;W++)(ne=_[k+5*W]).high^=B,ne.low^=N}for(var Ae=1;Ae<25;Ae++){B=void 0,N=void 0;var ue=_[Ae].high,xe=_[Ae].low,Re=E[Ae];Re<32?(B=ue<<Re|xe>>>32-Re,N=xe<<Re|ue>>>32-Re):(B=xe<<Re-32|ue>>>64-Re,N=ue<<Re-32|xe>>>64-Re);var Se=y[S[Ae]];Se.high=B,Se.low=N}var V=y[0],ee=_[0];for(V.high=ee.high,V.low=ee.low,k=0;k<5;k++)for(W=0;W<5;W++){var ne=_[Ae=k+5*W],ae=y[Ae],bt=y[(k+1)%5+5*W],Ft=y[(k+2)%5+5*W];ne.high=ae.high^~bt.high&Ft.high,ne.low=ae.low^~bt.low&Ft.low}var Mt=_[0],Et=v[U];Mt.high^=Et.high,Mt.low^=Et.low}},O.prototype.fn=function(){var T=this.cn,C=T.words,_=8*T.nSigBytes,P=32*this.blockSize;C[_>>>5]|=1<<24-_%32,C[(Math.ceil((_+1)/P)*P>>>5)-1]|=128,T.nSigBytes=4*C.length,this.an();for(var D=this.bn,I=this.dn/8,q=I/8,U=[],k=0;k<q;k++){var B=D[k],N=B.high,W=B.low;N=16711935&(N<<8|N>>>24)|4278255360&(N<<24|N>>>8),W=16711935&(W<<8|W>>>24)|4278255360&(W<<24|W>>>8),U.push(W),U.push(N)}return new m.e(U,I)},O.prototype.clone=function(){return new O({outputLength:this.dn,state:this.bn,blockSize:this.N,data:this.cn,nBytes:this.sn})},O.hash=function(T,C){return new O(C).finalize(T)},O}(f.P)},6324:function(o,a,l){l.d(a,{SHA384:function(){return p}});var u,d=l(6957),f=l(7491),m=(u=function(E,S){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])})(E,S)},function(E,S){function v(){this.constructor=E}u(E,S),E.prototype=S===null?Object.create(S):(v.prototype=S.prototype,new v)}),p=function(E){function S(v){var y=E.call(this,v)||this;return y.on=new d.m([new d.r(3418070365,3238371032),new d.r(1654270250,914150663),new d.r(2438529370,812702999),new d.r(355462360,4144912697),new d.r(1731405415,4290775857),new d.r(2394180231,1750603025),new d.r(3675008525,1694076839),new d.r(1203062813,3204075428)]),y.O=v,v&&v.hash!==void 0&&(y.on=v.hash.clone()),y}return m(S,E),S.prototype.A=function(){this.on=new d.m([new d.r(3418070365,3238371032),new d.r(1654270250,914150663),new d.r(2438529370,812702999),new d.r(355462360,4144912697),new d.r(1731405415,4290775857),new d.r(2394180231,1750603025),new d.r(3675008525,1694076839),new d.r(1203062813,3204075428)])},S.prototype.fn=function(){var v=E.prototype.fn.call(this);return v.nSigBytes-=16,v},S.prototype.clone=function(){return new S({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},S.hash=function(v,y){return new S(y).finalize(v)},S}(f.SHA512)},7491:function(o,a,l){l.d(a,{SHA512:function(){return S}});var u,d=l(1868),f=l(6957),m=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),p=[new f.r(1116352408,3609767458),new f.r(1899447441,602891725),new f.r(3049323471,3964484399),new f.r(3921009573,2173295548),new f.r(961987163,4081628472),new f.r(1508970993,3053834265),new f.r(2453635748,2937671579),new f.r(2870763221,3664609560),new f.r(3624381080,2734883394),new f.r(310598401,1164996542),new f.r(607225278,1323610764),new f.r(1426881987,3590304994),new f.r(1925078388,4068182383),new f.r(2162078206,991336113),new f.r(2614888103,633803317),new f.r(3248222580,3479774868),new f.r(3835390401,2666613458),new f.r(4022224774,944711139),new f.r(264347078,2341262773),new f.r(604807628,2007800933),new f.r(770255983,1495990901),new f.r(1249150122,1856431235),new f.r(1555081692,3175218132),new f.r(1996064986,2198950837),new f.r(2554220882,3999719339),new f.r(2821834349,766784016),new f.r(2952996808,2566594879),new f.r(3210313671,3203337956),new f.r(3336571891,1034457026),new f.r(3584528711,2466948901),new f.r(113926993,3758326383),new f.r(338241895,168717936),new f.r(666307205,1188179964),new f.r(773529912,1546045734),new f.r(1294757372,1522805485),new f.r(1396182291,2643833823),new f.r(1695183700,2343527390),new f.r(1986661051,1014477480),new f.r(2177026350,1206759142),new f.r(2456956037,344077627),new f.r(2730485921,1290863460),new f.r(2820302411,3158454273),new f.r(3259730800,3505952657),new f.r(3345764771,106217008),new f.r(3516065817,3606008344),new f.r(3600352804,1432725776),new f.r(4094571909,1467031594),new f.r(275423344,851169720),new f.r(430227734,3100823752),new f.r(506948616,1363258195),new f.r(659060556,3750685593),new f.r(883997877,3785050280),new f.r(958139571,3318307427),new f.r(1322822218,3812723403),new f.r(1537002063,2003034995),new f.r(1747873779,3602036899),new f.r(1955562222,1575990012),new f.r(2024104815,1125592928),new f.r(2227730452,2716904306),new f.r(2361852424,442776044),new f.r(2428436474,593698344),new f.r(2756734187,3733110249),new f.r(3204031479,2999351573),new f.r(3329325298,3815920427),new f.r(3391569614,3928383900),new f.r(3515267271,566280711),new f.r(3940187606,3454069534),new f.r(4118630271,4000239992),new f.r(116418474,1914138554),new f.r(174292421,2731055270),new f.r(289380356,3203993006),new f.r(460393269,320620315),new f.r(685471733,587496836),new f.r(852142971,1086792851),new f.r(1017036298,365543100),new f.r(1126000580,2618297676),new f.r(1288033470,3409855158),new f.r(1501505948,4234509866),new f.r(1607167915,987167468),new f.r(1816402316,1246189591)],E=[];(function(){for(var v=0;v<80;v++)E[v]=new f.r(0,0)})();var S=function(v){function y(b){var w=v.call(this,b)||this;return w.N=32,w.on=new f.m([new f.r(1779033703,4089235720),new f.r(3144134277,2227873595),new f.r(1013904242,4271175723),new f.r(2773480762,1595750129),new f.r(1359893119,2917565137),new f.r(2600822924,725511199),new f.r(528734635,4215389547),new f.r(1541459225,327033209)]),w.O=b,b&&b.hash!==void 0&&(w.on=b.hash.clone()),w}return m(y,v),y.prototype.A=function(){this.on=new f.m([new f.r(1779033703,4089235720),new f.r(3144134277,2227873595),new f.r(1013904242,4271175723),new f.r(2773480762,1595750129),new f.r(1359893119,2917565137),new f.r(2600822924,725511199),new f.r(528734635,4215389547),new f.r(1541459225,327033209)])},y.prototype.un=function(b,w){for(var O=this.on.words,T=O[0],C=O[1],_=O[2],P=O[3],D=O[4],I=O[5],q=O[6],U=O[7],k=T.high,B=T.low,N=C.high,W=C.low,ye=_.high,be=_.low,fe=P.high,re=P.low,he=D.high,Ae=D.low,ue=I.high,xe=I.low,Re=q.high,Se=q.low,V=U.high,ee=U.low,ne=k,ae=B,bt=N,Ft=W,Mt=ye,Et=be,On=fe,Bn=re,It=he,Kt=Ae,zr=ue,xn=xe,Oe=Re,pe=Se,le=V,_e=ee,Ie=0;Ie<80;Ie++){var z=void 0,X=void 0,oe=E[Ie];if(Ie<16)X=oe.high=0|b[w+2*Ie],z=oe.low=0|b[w+2*Ie+1];else{var ve=E[Ie-15],Ce=ve.high,ft=ve.low,$e=(Ce>>>1|ft<<31)^(Ce>>>8|ft<<24)^Ce>>>7,Ye=(ft>>>1|Ce<<31)^(ft>>>8|Ce<<24)^(ft>>>7|Ce<<25),je=E[Ie-2],Xe=je.high,et=je.low,kn=(Xe>>>19|et<<13)^(Xe<<3|et>>>29)^Xe>>>6,ho=(et>>>19|Xe<<13)^(et<<3|Xe>>>29)^(et>>>6|Xe<<26),ul=E[Ie-7],Kd=ul.high,dl=ul.low,Zs=E[Ie-16],Yd=Zs.high,fl=Zs.low;X=(X=(X=$e+Kd+((z=Ye+dl)>>>0<Ye>>>0?1:0))+kn+((z+=ho)>>>0<ho>>>0?1:0))+Yd+((z+=fl)>>>0<fl>>>0?1:0),oe.high=X,oe.low=z}var Zd=It&zr^~It&Oe,hl=Kt&xn^~Kt&pe,pl=ne&bt^ne&Mt^bt&Mt,Xd=ae&Ft^ae&Et^Ft&Et,Qd=(ne>>>28|ae<<4)^(ne<<30|ae>>>2)^(ne<<25|ae>>>7),gl=(ae>>>28|ne<<4)^(ae<<30|ne>>>2)^(ae<<25|ne>>>7),Xs=(It>>>14|Kt<<18)^(It>>>18|Kt<<14)^(It<<23|Kt>>>9),ef=(Kt>>>14|It<<18)^(Kt>>>18|It<<14)^(Kt<<23|It>>>9),Zo=p[Ie],tf=Zo.high,ml=Zo.low,li=_e+ef,po=le+Xs+(li>>>0<_e>>>0?1:0),yl=gl+Xd;le=Oe,_e=pe,Oe=zr,pe=xn,zr=It,xn=Kt,It=On+(po=(po=(po=po+Zd+((li+=hl)>>>0<hl>>>0?1:0))+tf+((li+=ml)>>>0<ml>>>0?1:0))+X+((li+=z)>>>0<z>>>0?1:0))+((Kt=Bn+li|0)>>>0<Bn>>>0?1:0)|0,On=Mt,Bn=Et,Mt=bt,Et=Ft,bt=ne,Ft=ae,ne=po+(Qd+pl+(yl>>>0<gl>>>0?1:0))+((ae=li+yl|0)>>>0<li>>>0?1:0)|0}B=T.low=B+ae,T.high=k+ne+(B>>>0<ae>>>0?1:0),W=C.low=W+Ft,C.high=N+bt+(W>>>0<Ft>>>0?1:0),be=_.low=be+Et,_.high=ye+Mt+(be>>>0<Et>>>0?1:0),re=P.low=re+Bn,P.high=fe+On+(re>>>0<Bn>>>0?1:0),Ae=D.low=Ae+Kt,D.high=he+It+(Ae>>>0<Kt>>>0?1:0),xe=I.low=xe+xn,I.high=ue+zr+(xe>>>0<xn>>>0?1:0),Se=q.low=Se+pe,q.high=Re+Oe+(Se>>>0<pe>>>0?1:0),ee=U.low=ee+_e,U.high=V+le+(ee>>>0<_e>>>0?1:0)},y.prototype.fn=function(){var b=this.cn,w=b.words,O=8*this.sn,T=8*b.nSigBytes;return w[T>>>5]|=128<<24-T%32,w[30+(T+128>>>10<<5)]=Math.floor(O/4294967296),w[31+(T+128>>>10<<5)]=O,b.nSigBytes=4*w.length,this.an(),this.on.to32()},y.prototype.clone=function(){return new y({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},y.hash=function(b,w){return new y(w).finalize(b)},y}(d.P)},3354:function(o,a,l){l.d(a,{e:function(){return f}});var u=l(5720),d=l(9054),f=function(){function m(p,E){if(Array.isArray(p)||!p)return this.yn=Array.isArray(p)?p:[],void(this.pn=typeof E=="number"?E:4*this.yn.length);if(p instanceof m)return this.yn=p.words.slice(),void(this.pn=p.nSigBytes);var S;try{p instanceof ArrayBuffer?S=new Uint8Array(p):(p instanceof Uint8Array||p instanceof Int8Array||p instanceof Uint8ClampedArray||p instanceof Int16Array||p instanceof Uint16Array||p instanceof Int32Array||p instanceof Uint32Array||p instanceof Float32Array||p instanceof Float64Array)&&(S=new Uint8Array(p.buffer,p.byteOffset,p.byteLength))}catch(w){throw new Error("Invalid argument")}if(!S)throw new Error("Invalid argument");for(var v=S.byteLength,y=[],b=0;b<v;b++)y[b>>>2]|=S[b]<<24-b%4*8;this.yn=y,this.pn=v}return Object.defineProperty(m.prototype,"nSigBytes",{get:function(){return this.pn},set:function(p){this.pn=p},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"words",{get:function(){return this.yn},enumerable:!1,configurable:!0}),m.prototype.toString=function(p){return p?p.stringify(this):u.p.stringify(this)},m.prototype.toUint8Array=function(){for(var p=this.yn,E=this.pn,S=new Uint8Array(E),v=0;v<E;v++)S[v]=p[v>>>2]>>>24-v%4*8&255;return S},m.prototype.concat=function(p){var E=p.words.slice(),S=p.nSigBytes;if(this.clamp(),this.pn%4)for(var v=0;v<S;v++){var y=E[v>>>2]>>>24-v%4*8&255;this.yn[this.pn+v>>>2]|=y<<24-(this.pn+v)%4*8}else for(v=0;v<S;v+=4)this.yn[this.pn+v>>>2]=E[v>>>2];return this.pn+=S,this},m.prototype.clamp=function(){var p=this.pn;this.yn[p>>>2]&=4294967295<<32-p%4*8,this.yn.length=Math.ceil(p/4)},m.prototype.clone=function(){return new m(this.yn.slice(),this.pn)},m.random=function(p){for(var E=[],S=0;S<p;S+=4)E.push((0,d.M)());return new m(E,p)},m}()},6957:function(o,a,l){l.d(a,{r:function(){return f},m:function(){return m}});var u=l(5720),d=l(3354),f=function(){function p(E,S){this.high=E,this.low=S}return p.prototype.clone=function(){return new p(this.high,this.low)},p}(),m=function(){function p(E,S){this.yn=E||[],this.pn=typeof S=="number"?S:8*this.yn.length}return Object.defineProperty(p.prototype,"nSigBytes",{get:function(){return this.pn},set:function(E){this.pn=E},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"words",{get:function(){return this.yn},enumerable:!1,configurable:!0}),p.prototype.to32=function(){for(var E=[],S=0;S<this.yn.length;S++){var v=this.yn[S];E.push(v.high),E.push(v.low)}return new d.e(E,this.pn)},p.prototype.toString=function(E){return E?E.stringify(this.to32()):u.p.stringify(this.to32())},p.prototype.clone=function(){for(var E=this.yn.slice(),S=0;S<E.length;S++)E[S]=E[S].clone();return new p(E,this.pn)},p}()},7211:function(o,a,l){l.d(a,{C:function(){return f}});var u=l(3354),d=l(4768),f=function(){function m(p){this.On=0,this.N=0,this.O=p,this.cn=p&&p.data!==void 0?p.data.clone():new u.e,this.sn=p&&typeof p.nBytes=="number"?p.nBytes:0}return Object.defineProperty(m.prototype,"blockSize",{get:function(){return this.N},enumerable:!1,configurable:!0}),m.prototype.reset=function(p,E){this.cn=p!==void 0?p.clone():new u.e,this.sn=typeof E=="number"?E:0},m.prototype.jn=function(p){var E=typeof p=="string"?d.d.parse(p):p;this.cn.concat(E),this.sn+=E.nSigBytes},m.prototype.an=function(p){var E,S=this.cn.words,v=this.cn.nSigBytes,y=this.N,b=v/(4*this.N),w=(b=p?Math.ceil(b):Math.max((0|b)-this.On,0))*y,O=Math.min(4*w,v);if(w){for(var T=0;T<w;T+=y)this.un(S,T);E=S.splice(0,w),this.cn.nSigBytes-=O}return new u.e(E,O)},m.prototype.un=function(p,E){throw new Error("Not implemented")},m}()},1868:function(o,a,l){l.d(a,{P:function(){return m}});var u,d=l(7211),f=(u=function(p,E){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,v){S.__proto__=v}||function(S,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(S[y]=v[y])})(p,E)},function(p,E){function S(){this.constructor=p}u(p,E),p.prototype=E===null?Object.create(E):(S.prototype=E.prototype,new S)}),m=function(p){function E(S){var v=p.call(this,S)||this;return v.N=16,v.O=S,S&&typeof S.blockSize=="number"&&(v.N=S.blockSize),v.reset(S?S.data:void 0,S?S.nBytes:void 0),v}return f(E,p),Object.defineProperty(E.prototype,"blockSize",{get:function(){return this.N},enumerable:!1,configurable:!0}),E.prototype.reset=function(S,v){p.prototype.reset.call(this,S,v),this.A()},E.prototype.update=function(S){return this.jn(S),this.an(),this},E.prototype.finalize=function(S){return S&&this.jn(S),this.fn()},E.prototype.A=function(){throw new Error("Not implemented")},E.prototype.fn=function(){throw new Error("Not implemented")},E}(d.C)},787:function(o,a,l){l.d(a,{G:function(){return S}});var u,d=l(9456),f=l(4344),m=l(7919),p=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),E=function(){return(E=Object.assign||function(v){for(var y,b=1,w=arguments.length;b<w;b++)for(var O in y=arguments[b])Object.prototype.hasOwnProperty.call(y,O)&&(v[O]=y[O]);return v}).apply(this,arguments)},S=function(v){function y(b){var w=v.call(this,b)||this;return w.N=4,w._n=f.n,w.mn=m.l,w.O=b,w._n=b.mode!==void 0?b.mode:w._n,w.mn=b.padding!==void 0?b.padding:w.mn,w.reset(b==null?void 0:b.data,b==null?void 0:b.nBytes),w}return p(y,v),Object.defineProperty(y.prototype,"mode",{get:function(){return this.An},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"padding",{get:function(){return this.mn},enumerable:!1,configurable:!0}),y.prototype.reset=function(b,w){var O;v.prototype.reset.call(this,b,w),this.gn===d.t.ENC_TRANSFORM_MODE?O=this._n.createEncryptor:(O=this._n.createDecryptor,this.On=1),this._n&&this.En===O?this.An=new this._n({cipher:this,iv:this.ln}):(this.An=O.call(this._n,{cipher:this,iv:this.ln}),this.En=O)},y.prototype.un=function(b,w){var O;(O=this.An)===null||O===void 0||O.processBlock(b,w)},y.prototype.fn=function(){var b,w=this.mn;return this.gn===d.t.ENC_TRANSFORM_MODE?(w.pad(this.cn,this.blockSize),b=this.an(!0)):(b=this.an(!0),w.unpad(b)),b},y.prototype.encryptBlock=function(b,w){throw new Error("Not implemented")},y.prototype.decryptBlock=function(b,w){throw new Error("Not implemented")},y.createEncryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b,transformMode:d.t.ENC_TRANSFORM_MODE}))},y.createDecryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b,transformMode:d.t.DEC_TRANSFORM_MODE}))},y}(d.t)},9456:function(o,a,l){l.d(a,{t:function(){return p}});var u,d=l(7211),f=(u=function(E,S){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])})(E,S)},function(E,S){function v(){this.constructor=E}u(E,S),E.prototype=S===null?Object.create(S):(v.prototype=S.prototype,new v)}),m=function(){return(m=Object.assign||function(E){for(var S,v=1,y=arguments.length;v<y;v++)for(var b in S=arguments[v])Object.prototype.hasOwnProperty.call(S,b)&&(E[b]=S[b]);return E}).apply(this,arguments)},p=function(E){function S(v){var y=E.call(this,v)||this;return y.gn=1,y.O=v,y.H=v.key,y.ln=v.iv!==void 0?v.iv:y.ln,y.gn=v.transformMode!==void 0?v.transformMode:y.gn,y}return f(S,E),Object.defineProperty(S.prototype,"iv",{get:function(){return this.ln},enumerable:!1,configurable:!0}),S.prototype.reset=function(v,y){E.prototype.reset.call(this,v,y),this.A()},S.prototype.process=function(v){return this.jn(v),this.an()},S.prototype.finalize=function(v){return v&&this.jn(v),this.fn()},S.prototype.A=function(){throw new Error("Not implemented")},S.prototype.un=function(v,y){throw new Error("Not implemented")},S.prototype.fn=function(){throw new Error("Not implemented")},S.createEncryptor=function(v,y){return new S(m(m({},y=y===void 0?{}:y),{key:v,transformMode:S.ENC_TRANSFORM_MODE}))},S.createDecryptor=function(v,y){return new S(m(m({},y=y===void 0?{}:y),{key:v,transformMode:S.DEC_TRANSFORM_MODE}))},S.ENC_TRANSFORM_MODE=1,S.DEC_TRANSFORM_MODE=2,S.keySize=4,S.ivSize=4,S}(d.C)},2505:function(o,a,l){l.d(a,{Q:function(){return d}});var u=l(1232),d=function(){function f(m){this.formatter=u.w,m&&(this.cipherText=m.cipherText,this.key=m.key,this.iv=m.iv,this.salt=m.salt,this.Algorithm=m.Algorithm,this.mode=m.mode,this.padding=m.padding,this.blockSize=m.blockSize,this.formatter=m.formatter||u.w)}return f.prototype.toString=function(m){return(m||this.formatter).stringify(this)},f}()},5693:function(o,a,l){l.d(a,{E:function(){return E}});var u=l(9109),d=l(2214),f=l(2505),m=l(1232),p=function(){return(p=Object.assign||function(S){for(var v,y=1,b=arguments.length;y<b;y++)for(var w in v=arguments[y])Object.prototype.hasOwnProperty.call(v,w)&&(S[w]=v[w]);return S}).apply(this,arguments)},E={encrypt:function(S,v,y,b){var w=b?p({},b):{},O=b&&b.KDF?b.KDF:d.s,T={};b&&b.kdfHasher&&(T.kdfHasher=b.kdfHasher),b&&b.kdfIterations&&(T.kdfIterations=b.kdfIterations),b&&b.kdfModule&&(T.kdfModule=b.kdfModule);var C=O.execute(y,S.keySize,S.ivSize,w.kdfSalt,T);w.iv=C.iv;var _=u.D.encrypt(S,v,C.key,w);return new f.Q(p(p({},_),{key:C.key,iv:C.iv,salt:C.salt}))},decrypt:function(S,v,y,b){var w=b?p({},b):{},O=w.KDF?w.KDF:d.s,T=w.formatter?w.formatter:m.w,C=(0,u.W)(v,T),_={};b&&b.kdfHasher&&(_.kdfHasher=b.kdfHasher),b&&b.kdfIterations&&(_.kdfIterations=b.kdfIterations),b&&b.kdfModule&&(_.kdfModule=b.kdfModule);var P=O.execute(y,S.keySize,S.ivSize,C.salt,_);return w.iv=P.iv,u.D.decrypt(S,C,P.key,w)}}},9109:function(o,a,l){l.d(a,{W:function(){return f},D:function(){return m}});var u=l(1232),d=l(2505);function f(p,E){return typeof p=="string"?E.parse(p):p}var m={encrypt:function(p,E,S,v){var y=p.createEncryptor(S,v),b=y.finalize(E);return new d.Q({cipherText:b,key:S,iv:y.iv,Algorithm:p,mode:y.mode,padding:y.padding,blockSize:y.blockSize,formatter:(v==null?void 0:v.formatter)||u.w})},decrypt:function(p,E,S,v){var y=p.createDecryptor(S,v),b=f(E,(v==null?void 0:v.formatter)||u.w);return y.finalize(b.cipherText||"")}}},30:function(o,a,l){l.d(a,{q:function(){return m}});var u,d=l(9456),f=(u=function(p,E){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,v){S.__proto__=v}||function(S,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(S[y]=v[y])})(p,E)},function(p,E){function S(){this.constructor=p}u(p,E),p.prototype=E===null?Object.create(E):(S.prototype=E.prototype,new S)}),m=function(p){function E(S){var v=p.call(this,S)||this;return v.N=1,v}return f(E,p),E.prototype.fn=function(){return this.an(!0)},E}(d.t)},1232:function(o,a,l){l.d(a,{w:function(){return m}});var u=l(2505),d=l(3354),f=l(1773),m={stringify:function(p){var E=p.cipherText,S=p.salt;return E?S?new d.e([1398893684,1701076831]).concat(S).concat(E).toString(f.D):E.toString(f.D):""},parse:function(p){var E,S=f.D.parse(p),v=S.words;return v[0]===1398893684&&v[1]===1701076831&&(E=new d.e(v.slice(2,4)),v.splice(0,4),S.nSigBytes-=16),new u.Q({cipherText:S,salt:E})}}},2214:function(o,a,l){l.d(a,{s:function(){return p}});var u=l(3354),d=l(2505),f=l(7008),m=function(){return(m=Object.assign||function(E){for(var S,v=1,y=arguments.length;v<y;v++)for(var b in S=arguments[v])Object.prototype.hasOwnProperty.call(S,b)&&(E[b]=S[b]);return E}).apply(this,arguments)},p={execute:function(E,S,v,y,b){y||(y=u.e.random(8));var w=b&&b.kdfModule||f.E,O=b?{Hasher:b.kdfHasher,iterations:b.kdfIterations}:{},T=w.getKey(E,y,m(m({},O),{keySize:S+v})),C=new u.e(T.words.slice(S),4*v);return T.nSigBytes=4*S,new d.Q({key:T,iv:C,salt:y})}}},7008:function(o,a,l){l.d(a,{E:function(){return S}});var u,d=l(5561),f=l(6367),m=l(3354),p=l(9541),E=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),S=function(v){function y(b){var w=v.call(this,b)||this;return w.Sn=4,w.Mn=d.SHA256,w.kn=1e4,b&&(w.Sn=b.keySize!==void 0?b.keySize:w.Sn,w.Mn=b.Hasher!==void 0?b.Hasher:w.Mn,w.kn=b.iterations!==void 0?b.iterations:w.kn),w}return E(y,v),y.prototype.compute=function(b,w){for(var O=new f.Hmac(new this.Mn,b),T=new m.e,C=new m.e([1]),_=T.words,P=C.words,D=this.Sn,I=this.kn;_.length<D;){var q=O.update(w).finalize(C);O.reset();for(var U=q.words,k=U.length,B=q,N=1;N<I;N++){B=O.finalize(B),O.reset();for(var W=B.words,ye=0;ye<k;ye++)U[ye]^=W[ye]}T.concat(q),P[0]++}return T.nSigBytes=4*D,T},y.getKey=function(b,w,O){return new y(O).compute(b,w)},y}(p._)},9541:function(o,a,l){l.d(a,{_:function(){return u}});var u=function(){function d(f){this.O=f}return d.prototype.compute=function(f,m){throw new Error("Not implemented")},d.getKey=function(f,m,p){throw new Error("Not implemented")},d}()},1863:function(o,a,l){l.d(a,{T:function(){return u}});var u=function(){function d(f){this.O=f,this.Hn=f.cipher,this.ln=f.iv}return d.prototype.processBlock=function(f,m){},d.createEncryptor=function(f){throw new Error("Not implemented yet")},d.createDecryptor=function(f){throw new Error("Not implemented yet")},d}()},4344:function(o,a,l){l.d(a,{n:function(){return m}});var u,d=l(1863),f=(u=function(p,E){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,v){S.__proto__=v}||function(S,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(S[y]=v[y])})(p,E)},function(p,E){function S(){this.constructor=p}u(p,E),p.prototype=E===null?Object.create(E):(S.prototype=E.prototype,new S)}),m=function(p){function E(S){var v=p.call(this,S)||this;return v.Cn=[],v}return f(E,p),E.prototype.xorBlock=function(S,v,y){var b,w=this.ln;w?(b=w.words,this.ln=void 0):b=this.Cn;for(var O=0;O<y;O++)S[v+O]^=b[O]},E.createEncryptor=function(S){return new E.Encryptor(S)},E.createDecryptor=function(S){return new E.Decryptor(S)},E.Encryptor=function(S){function v(){return S!==null&&S.apply(this,arguments)||this}return f(v,S),v.prototype.processBlock=function(y,b){var w=this.Hn,O=w.blockSize;this.xorBlock(y,b,O),w.encryptBlock(y,b),this.Cn=y.slice(b,b+O)},v}(E),E.Decryptor=function(S){function v(){return S!==null&&S.apply(this,arguments)||this}return f(v,S),v.prototype.processBlock=function(y,b){var w=this.Hn,O=w.blockSize,T=y.slice(b,b+O);w.decryptBlock(y,b),this.xorBlock(y,b,O),this.Cn=T},v}(E),E}(d.T)},4055:function(o,a,l){l.d(a,{I4:function(){return d},z6:function(){return f},ur:function(){return m}});var u=l(3354);function d(p){var E=p.nSigBytes%16;if(E!==0){for(var S=16-E,v=[],y=Math.floor(S/4),b=0;b<y;b++)v.push(0);S%4>0&&v.push(0),p.concat(new u.e(v,S))}}function f(p,E){return new u.e(p.words.slice(),E)}function m(p,E){for(var S=p.nSigBytes-E,v=[],y=0;y<E;y++){var b=y>>>2,w=S+y,O=w>>>2,T=p.words[O]>>>24-w%4*8&255;v[b]=0|v[b]|T<<24-y%4*8}var C=new u.e(v,E);return C.clamp(),C}},7919:function(o,a,l){l.d(a,{l:function(){return d}});var u=l(3354),d={pad:function(f,m){for(var p=4*m,E=p-f.nSigBytes%p,S=E<<24|E<<16|E<<8|E,v=[],y=0;y<E;y+=4)v.push(S);var b=new u.e(v,E);f.concat(b)},unpad:function(f){var m=255&f.words[f.nSigBytes-1>>>2];f.nSigBytes-=m}}},1756:function(o,a,l){l.d(a,{w:function(){return m}});var u,d=typeof navigator!="undefined"&&navigator.userAgent?navigator.userAgent.toLowerCase():"",f=(u=parseInt((/msie (\d+)/.exec(d)||[])[1],10),isNaN(u)?(u=parseInt((/trident\/.*; rv:(\d+)/.exec(d)||[])[1],10),!isNaN(u)&&u):u);function m(p,E){return f!==!1&&(!E||(p==="<"?f<E:p==="<="?f<=E:p===">"?f>E:p===">="?f>=E:f===E))}},1773:function(o,a,l){l.d(a,{D:function(){return p}});for(var u=l(3354),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f=[],m=0;m<d.length;m++)f[d.charCodeAt(m)]=m;var p={stringify:function(E){var S=E.words,v=E.nSigBytes;E.clamp();for(var y=[],b=0;b<v;b+=3)for(var w=(S[b>>>2]>>>24-b%4*8&255)<<16|(S[b+1>>>2]>>>24-(b+1)%4*8&255)<<8|S[b+2>>>2]>>>24-(b+2)%4*8&255,O=0;O<4&&b+.75*O<v;O++)y.push(d.charAt(w>>>6*(3-O)&63));var T=d.charAt(64);if(T)for(;y.length%4;)y.push(T);return y.join("")},parse:function(E){var S=E.length,v=d.charAt(64);if(v){var y=E.indexOf(v);y!==-1&&(S=y)}for(var b=[],w=0,O=0;O<S;O++)if(O%4){var T=f[E.charCodeAt(O-1)]<<O%4*2|f[E.charCodeAt(O)]>>>6-O%4*2;b[w>>>2]|=T<<24-w%4*8,w++}return new u.e(b,w)}}},5720:function(o,a,l){l.d(a,{p:function(){return d}});var u=l(3354),d={stringify:function(f){for(var m=f.nSigBytes,p=f.words,E=[],S=0;S<m;S++){var v=p[S>>>2]>>>24-S%4*8&255;E.push((v>>>4).toString(16)),E.push((15&v).toString(16))}return E.join("")},parse:function(f){var m=f.length;if(m%2!=0)throw new Error("Hex string count must be even");if(!/^[a-fA-F0-9]+$/.test(f))throw new Error("Invalid Hex string: "+f);for(var p=[],E=0;E<m;E+=2)p[E>>>3]|=parseInt(f.substr(E,2),16)<<24-E%8*4;return new u.e(p,m/2)}}},8702:function(o,a,l){l.d(a,{m:function(){return d}});var u=l(3354),d={stringify:function(f){for(var m=f.nSigBytes,p=f.words,E=[],S=0;S<m;S++){var v=p[S>>>2]>>>24-S%4*8&255;E.push(String.fromCharCode(v))}return E.join("")},parse:function(f){for(var m=f.length,p=[],E=0;E<m;E++)p[E>>>2]|=(255&f.charCodeAt(E))<<24-E%4*8;return new u.e(p,m)}}},4768:function(o,a,l){l.d(a,{d:function(){return d}});var u=l(8702),d={stringify:function(f){try{return decodeURIComponent(escape(u.m.stringify(f)))}catch(m){throw new Error("Malformed UTF-8 data")}},parse:function(f){return u.m.parse(unescape(encodeURIComponent(f)))}}},2688:function(o,a,l){l.d(a,{Base64:function(){return f.D},EvpKDF:function(){return D},Hex:function(){return E.p},Latin1:function(){return p.m},OpenSSLKDF:function(){return O.s},PBKDF2:function(){return T.E},Utf16:function(){return w},Utf16BE:function(){return S},Utf16LE:function(){return b},Utf8:function(){return m.d},Word32Array:function(){return u.e},Word64:function(){return d.r},Word64Array:function(){return d.m}}),l(9054);var u=l(3354),d=l(6957),f=(l(1756),l(1773)),m=l(4768),p=l(8702),E=l(5720),S={stringify:function(I){for(var q=I.words,U=I.nSigBytes,k=[],B=0;B<U;B+=2){var N=q[B>>>2]>>>16-B%4*8&65535;k.push(String.fromCharCode(N))}return k.join("")},parse:function(I){for(var q=I.length,U=[],k=0;k<q;k++)U[k>>>1]|=I.charCodeAt(k)<<16-k%2*16;return new u.e(U,2*q)}};function v(I){return I<<8&4278255360|I>>>8&16711935}var y,b={stringify:function(I){for(var q=I.words,U=I.nSigBytes,k=[],B=0;B<U;B+=2){var N=v(q[B>>>2]>>>16-B%4*8&65535);k.push(String.fromCharCode(N))}return k.join("")},parse:function(I){for(var q=I.length,U=[],k=0;k<q;k++)U[k>>>1]|=v(I.charCodeAt(k)<<16-k%2*16);return new u.e(U,2*q)}},w=S,O=l(2214),T=l(7008),C=l(670),_=l(9541),P=(y=function(I,q){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var B in k)Object.prototype.hasOwnProperty.call(k,B)&&(U[B]=k[B])})(I,q)},function(I,q){function U(){this.constructor=I}y(I,q),I.prototype=q===null?Object.create(q):(U.prototype=q.prototype,new U)}),D=function(I){function q(U){var k=I.call(this,U)||this;return k.Sn=4,k.Mn=C.MD5,k.kn=1,U&&(k.Sn=U.keySize!==void 0?U.keySize:k.Sn,k.Mn=U.Hasher!==void 0?U.Hasher:k.Mn,k.kn=U.iterations!==void 0?U.iterations:k.kn),k}return P(q,I),q.prototype.compute=function(U,k){for(var B,N=new this.Mn,W=new u.e,ye=W.words,be=this.Sn,fe=this.kn;ye.length<be;){B&&N.update(B),B=N.update(U).finalize(k),N.reset();for(var re=1;re<fe;re++)B=N.finalize(B),N.reset();W.concat(B)}return W.nSigBytes=4*be,W},q.getKey=function(U,k,B){return new q(B).compute(U,k)},q}(_._)},9054:function(o,a,l){l.d(a,{M:function(){return d}});var u=l(1756),d=function(){if(typeof window!="undefined"){var f=window.crypto||window.msCrypto;if(!f){if((0,u.w)("<",11))return console.warn("IE <= 10 uses insecure random generator. Please consider to use IE11 or another modern browser"),function(){return Math.floor(512*Math.random())%256};throw new Error("Crypto module not found")}return function(){return f.getRandomValues(new Uint32Array(1))[0]}}return l.g!==void 0&&l.g.crypto?function(){return l.g.crypto.randomBytes(4).readInt32LE()}:function(){return b3().randomBytes(4).readInt32LE()}}()},3664:function(o,a,l){l.d(a,{K:function(){return E}});var u,d=l(1863),f=l(3354),m=l(4055),p=(u=function(S,v){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&(y[w]=b[w])})(S,v)},function(S,v){function y(){this.constructor=S}u(S,v),S.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}),E=function(S){function v(y){var b=S.call(this,y)||this;b.Bn=1;var w=y.cipher,O=y.iv;if(w.blockSize!==4)throw new Error("In CCM, cipher block size must be 128bit");if(O&&(O.nSigBytes>13||O.nSigBytes<7))throw new Error("Byte size of iv must be between 7 and 13");return b.Nn=O||new f.e([0,0],8),b.In=15-b.Nn.nSigBytes,b}return p(v,S),v.getB0=function(y,b,w,O){if(w.nSigBytes+O.nSigBytes!==15)throw new Error("LEN(Q)+LEN(N) must be 15");var T=255&(0|(y?1:0)<<6|(b-2)/2<<3|w.nSigBytes-1),C=O.clone().concat(w);return new f.e([T<<24],1).concat(C)},v.formatAssociatedDataAndPayload=function(y,b){var w,O=y.nSigBytes;if(O===0)w=new f.e([0],0);else if(O<Math.pow(2,16)-Math.pow(2,8))w=new f.e([O<<16],2);else{if(!(O<Math.pow(2,32)))throw new Error("LEN(A) larger than 2**32-1 is not supported");w=new f.e([4294836224],2).concat(new f.e([O],4))}for(var T=Math.floor(y.nSigBytes/4),C=0;C<T;C++)w.concat(new f.e([y.words[C]],4));y.nSigBytes%4&&(w.concat(new f.e([y.words[T]],y.nSigBytes%4)),w.concat(new f.e([0],4-y.nSigBytes%4))),w.nSigBytes%16&&w.concat(new f.e([0],16-w.nSigBytes%16));var _=Math.floor(b.nSigBytes/4);for(C=0;C<_;C++)w.concat(new f.e([b.words[C]],4));return b.nSigBytes%4&&(w.concat(new f.e([b.words[_]],b.nSigBytes%4)),w.concat(new f.e([0],4-b.nSigBytes%4))),w.nSigBytes%16&&w.concat(new f.e([0],16-w.nSigBytes%16)),w},v.genCtr=function(y,b,w){if(b.nSigBytes+y!==15)throw new Error("LEN(Q)+LEN(N) must be 15");for(var O=new f.e([(y-1&7)<<24],1),T=new f.e([],0),C=Math.floor(y/4),_=0;_<C-1;_++)T.concat(new f.e([0],4));return y%4?y>4?(T.concat(new f.e([0],y%4)),T.concat(new f.e([w],4))):T.concat(new f.e([w<<32-8*y],y)):T.concat(new f.e([w],4)),O.concat(b).concat(T)},v.mac=function(y,b,w,O,T,C){var _=new y({key:b,iv:w});if(_.blockSize!==4)throw new Error("In CCM, cipher block size must be 128bit");if(w&&(w.nSigBytes>13||w.nSigBytes<7))throw new Error("Byte size of iv must be between 7 and 13");var P=w||new f.e([0,0],8),D=(O==null?void 0:O.clone())||new f.e,I=D.nSigBytes,q=(T==null?void 0:T.clone())||new f.e,U=q.nSigBytes;if(U>>>0>4294967295)throw new Error("Byte length of Payload(plainText) larger than 2^32-1 (4,294,967,295byte) is not supported at this time.");var k=15-P.nSigBytes,B=(0,m.ur)(new f.e([0,U],8),k),N=C||16,W=v.getB0(Boolean(I),N,B,P),ye=v.formatAssociatedDataAndPayload(D,q),be=W.words.slice();_.encryptBlock(be,0);for(var fe=ye.nSigBytes/16,re=ye.words,he=be,Ae=0;Ae<fe;Ae++){var ue=[re[4*Ae]^he[0],re[4*Ae+1]^he[1],re[4*Ae+2]^he[2],re[4*Ae+3]^he[3]];_.encryptBlock(ue,0),he=ue}var xe=new f.e(he,N),Re=v.genCtr(k,P,0);for(_.encryptBlock(Re.words,0),Ae=0;Ae<4;Ae++)xe.words[Ae]^=Re.words[Ae];return xe.clamp(),xe},v.combineCipherTextAndAuthTag=function(y,b){return y.clone().concat(b)},v.splitCipherTextAndAuthTag=function(y,b){var w=b||16;return{cipherText:(0,m.z6)(y,y.nSigBytes-w),authTag:(0,m.ur)(y,w)}},v.createEncryptor=function(y){return new v.Encryptor(y)},v.createDecryptor=function(y){return new v.Decryptor(y)},v.Encryptor=function(y){function b(){return y!==null&&y.apply(this,arguments)||this}return p(b,y),b.prototype.processBlock=function(w,O){var T=this.Hn,C=T.blockSize,_=v.genCtr(this.In,this.Nn,this.Bn);T.encryptBlock(_.words,0);for(var P=0;P<C;P++)w[O+P]^=_.words[P];this.Bn++},b}(v),v.Decryptor=function(y){function b(){return y!==null&&y.apply(this,arguments)||this}return p(b,y),b.prototype.processBlock=function(w,O){var T=this.Hn,C=T.blockSize,_=v.genCtr(this.In,this.Nn,this.Bn);T.encryptBlock(_.words,0);for(var P=0;P<C;P++)w[O+P]^=_.words[P];this.Bn++},b}(v),v}(d.T)},5607:function(o,a,l){l.d(a,{V:function(){return E}});var u,d=l(1863),f=l(3354),m=l(4055),p=(u=function(S,v){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&(y[w]=b[w])})(S,v)},function(S,v){function y(){this.constructor=S}u(S,v),S.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}),E=function(S){function v(y){var b=S.call(this,y)||this;if(b.zn=[],b.Dn=[],b.Un=[],y.cipher.blockSize!==4)throw new Error("In GCM block cipher mode, cipher block size must be 128bit");var w=y.cipher,O=y.iv,T=[0,0,0,0];return w.encryptBlock(T,0),b.zn=T,b.Dn=v.getJ0(T,O==null?void 0:O.words),b.Un=b.Dn.slice(),b}return p(v,S),v.getJ0=function(y,b){var w;if(b&&b.length!==0)if(b.length===3)w=[b[0],b[1],b[2],1];else{for(var O=b.length%4>0?4-b.length%4:0,T=b.slice(),C=0;C<O+2;C++)T.push(0);T.push(0),T.push(32*b.length),w=v.GHASH(y,T)}else w=[0,0,0,1];return w},v.inc32=function(y){var b=y.slice(),w=b[3]>>>0,O=w+1>>>0<w;if(b[3]=b[3]+1|0,O){var T=b[2]>>>0,C=T+1>>>0<T;b[2]=b[2]+1|0,C&&(b[1]=b[1]+1|0)}return b},v.mul=function(y,b){for(var w=[3774873600,0,0,0],O=[0,0,0,0],T=b.slice(),C=0;C<128;C++){(y[C>>>5]>>>31-C%32&1)>0&&(O[0]=O[0]^T[0],O[1]=O[1]^T[1],O[2]=O[2]^T[2],O[3]=O[3]^T[3]);var _=(1&T[3])>>>0,P=(1&T[0])>>>0,D=(1&T[1])>>>0,I=(1&T[2])>>>0;T[0]=T[0]>>>1,T[1]=T[1]>>>1|(P?2147483648:0),T[2]=T[2]>>>1|(D?2147483648:0),T[3]=T[3]>>>1|(I?2147483648:0),_>0&&(T[0]^=w[0],T[1]^=w[1],T[2]^=w[2],T[3]^=w[3])}return O},v.GHASH=function(y,b){if(y.length%4!=0)throw new Error("Length of 32bit word array 'H' must be multiple of 4(128bit)");if(b.length%4!=0)throw new Error("Length of 32bit word array 'X' must be multiple of 4(128bit)");for(var w=b.length,O=[0,0,0,0],T=0;T<w;T+=4)O[0]=O[0]^b[T],O[1]=O[1]^b[T+1],O[2]=O[2]^b[T+2],O[3]=O[3]^b[T+3],O=v.mul(O,y);return O},v.GCTR=function(y,b,w){if(w.nSigBytes===0)return w.clone();if(b.length!==4)throw new Error("Initial Counter Block size must be 128bit");for(var O=w.words,T=Math.ceil(w.nSigBytes/16),C=[b.slice()],_=1;_<T;_++){var P=v.inc32(C[_-1]);C.push(P)}var D=new f.e;for(_=0;_<T;_++){y.encryptBlock(C[_],0);var I=w.nSigBytes%16;if(_<T-1||I===0){var q=O[4*_]^C[_][0],U=O[4*_+1]^C[_][1],k=O[4*_+2]^C[_][2],B=O[4*_+3]^C[_][3],N=new f.e([q,U,k,B]);D.concat(N)}else{for(var W=[],ye=0,be=Math.floor(I/4),fe=0;fe<be;fe++){var re=O[4*_+fe]^C[_][fe];W.push(re),ye+=4}var he=I%4;if(he>0){var Ae=O[4*_+be]<<32-8*he^C[_][be];W.push(Ae),ye+=he}var ue=new f.e(W,ye);D.concat(ue)}}return D.nSigBytes=w.nSigBytes,D.clamp(),D},v.mac=function(y,b,w,O,T,C){var _=new y({key:b,iv:w}),P=[0,0,0,0];_.encryptBlock(P,0);var D=v.getJ0(P,w.words),I=(O==null?void 0:O.clone())||new f.e,q=[0,8*I.nSigBytes],U=(T==null?void 0:T.clone())||new f.e,k=[0,8*U.nSigBytes],B=C||16;(0,m.I4)(I),(0,m.I4)(U);var N=I.words.concat(U.words).concat(q).concat(k),W=v.GHASH(P,N),ye=v.GCTR(_,D,new f.e(W));return(0,m.z6)(ye,B)},v.createEncryptor=function(y){return new v.Encryptor(y)},v.createDecryptor=function(y){return new v.Decryptor(y)},v.Encryptor=function(y){function b(){return y!==null&&y.apply(this,arguments)||this}return p(b,y),b.prototype.processBlock=function(w,O){var T=this.Hn.blockSize;this.Un=v.inc32(this.Un);for(var C=new f.e(w.slice(O,O+T)),_=v.GCTR(this.Hn,this.Un,C),P=0;P<T;P++)w[O+P]=_.words[P]},b}(v),v.Decryptor=function(y){function b(){return y!==null&&y.apply(this,arguments)||this}return p(b,y),b.prototype.processBlock=function(w,O){var T=this.Hn.blockSize;this.Un=v.inc32(this.Un);for(var C=new f.e(w.slice(O,O+T)),_=v.GCTR(this.Hn,this.Un,C),P=0;P<T;P++)w[O+P]=_.words[P]},b}(v),v}(d.T)}},t={};function n(o){var a=t[o];if(a!==void 0)return a.exports;var l=t[o]={exports:{}};return i[o](l,l.exports,n),l.exports}n.d=function(o,a){for(var l in a)n.o(a,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:a[l]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(o){if(typeof window=="object")return window}}(),n.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},n.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"Ln",{value:!0})};var r={};return function(){n.r(r),n.d(r,{AES:function(){return q.AES},Base64:function(){return a.Base64},CBCMAC:function(){return w.CBCMAC},CipherParams:function(){return d.Q},DES:function(){return U.DES},DES3:function(){return k.DES3},EvpKDF:function(){return a.EvpKDF},GMAC:function(){return b.GMAC},Hex:function(){return a.Hex},Hmac:function(){return f.Hmac},HmacMD5:function(){return m.HmacMD5},HmacSHA1:function(){return p.HmacSHA1},HmacSHA224:function(){return E.HmacSHA224},HmacSHA256:function(){return S.HmacSHA256},HmacSHA384:function(){return v.HmacSHA384},HmacSHA512:function(){return y.HmacSHA512},Latin1:function(){return a.Latin1},MD5:function(){return O.MD5},OpenSSLKDF:function(){return a.OpenSSLKDF},PBKDF2:function(){return a.PBKDF2},PasswordBasedCipher:function(){return u.E},RC4:function(){return W.RC4},RC4Drop:function(){return ye.RC4Drop},RIPEMD160:function(){return B.RIPEMD160},Rabbit:function(){return N.Rabbit},SHA1:function(){return T.SHA1},SHA224:function(){return C.SHA224},SHA256:function(){return _.SHA256},SHA3:function(){return I.SHA3},SHA384:function(){return P.SHA384},SHA512:function(){return D.SHA512},SerializableCipher:function(){return l.D},Utf16:function(){return a.Utf16},Utf16BE:function(){return a.Utf16BE},Utf16LE:function(){return a.Utf16LE},Utf8:function(){return a.Utf8},Word32Array:function(){return a.Word32Array},Word64:function(){return a.Word64},Word64Array:function(){return a.Word64Array},formatter:function(){return xn},mode:function(){return Kt},pad:function(){return zr}});var o,a=n(2688),l=n(9109),u=n(5693),d=n(2505),f=n(6367),m=n(3027),p=n(149),E=n(4105),S=n(980),v=n(5838),y=n(9902),b=n(7753),w=n(3967),O=n(670),T=n(3173),C=n(766),_=n(5561),P=n(6324),D=n(7491),I=n(3408),q=n(9691),U=n(9910),k=n(6739),B=n(7104),N=n(5187),W=n(4615),ye=n(9639),be=n(4344),fe=n(1863),re=(o=function(Oe,pe){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,_e){le.__proto__=_e}||function(le,_e){for(var Ie in _e)Object.prototype.hasOwnProperty.call(_e,Ie)&&(le[Ie]=_e[Ie])})(Oe,pe)},function(Oe,pe){function le(){this.constructor=Oe}o(Oe,pe),Oe.prototype=pe===null?Object.create(pe):(le.prototype=pe.prototype,new le)}),he=function(Oe){function pe(le){var _e=Oe.call(this,le)||this;return _e.Cn=[],_e}return re(pe,Oe),pe.prototype.generateKeyStreamAndEncrypt=function(le,_e,Ie,z){var X,oe=this.ln;oe?(X=oe.words.slice(0),this.ln=void 0):X=this.Cn,z.encryptBlock(X,0);for(var ve=0;ve<Ie;ve++)le[_e+ve]^=X[ve]},pe.createEncryptor=function(le){return new pe.Encryptor(le)},pe.createDecryptor=function(le){return new pe.Decryptor(le)},pe.Encryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return re(_e,le),_e.prototype.processBlock=function(Ie,z){this.generateKeyStreamAndEncrypt(Ie,z,this.Hn.blockSize,this.Hn),this.Cn=Ie.slice(z,z+this.Hn.blockSize)},_e}(pe),pe.Decryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return re(_e,le),_e.prototype.processBlock=function(Ie,z){var X=Ie.slice(z,z+this.Hn.blockSize);this.generateKeyStreamAndEncrypt(Ie,z,this.Hn.blockSize,this.Hn),this.Cn=X},_e}(pe),pe}(fe.T),Ae=function(){var Oe=function(pe,le){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Ie){_e.__proto__=Ie}||function(_e,Ie){for(var z in Ie)Object.prototype.hasOwnProperty.call(Ie,z)&&(_e[z]=Ie[z])})(pe,le)};return function(pe,le){function _e(){this.constructor=pe}Oe(pe,le),pe.prototype=le===null?Object.create(le):(_e.prototype=le.prototype,new _e)}}(),ue=function(Oe){function pe(le){var _e=Oe.call(this,le)||this;return _e.Fn=[],_e}return Ae(pe,Oe),pe.createEncryptor=function(le){return new pe.Encryptor(le)},pe.createDecryptor=function(le){return new pe.Decryptor(le)},pe.Encryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return Ae(_e,le),_e.prototype.processBlock=function(Ie,z){var X=this.Hn,oe=X.blockSize,ve=this.ln,Ce=this.Fn;ve&&(Ce=this.Fn=ve.words.slice(0),this.ln=void 0);var ft=Ce.slice(0);X.encryptBlock(ft,0),Ce[oe-1]=Ce[oe-1]+1|0;for(var $e=0;$e<oe;$e++)Ie[z+$e]^=ft[$e]},_e}(pe),pe.Decryptor=pe.Encryptor,pe}(fe.T),xe=function(){var Oe=function(pe,le){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Ie){_e.__proto__=Ie}||function(_e,Ie){for(var z in Ie)Object.prototype.hasOwnProperty.call(Ie,z)&&(_e[z]=Ie[z])})(pe,le)};return function(pe,le){function _e(){this.constructor=pe}Oe(pe,le),pe.prototype=le===null?Object.create(le):(_e.prototype=le.prototype,new _e)}}(),Re=function(Oe){function pe(le){return Oe.call(this,le)||this}return xe(pe,Oe),pe.createEncryptor=function(le){return new pe.Encryptor(le)},pe.createDecryptor=function(le){return new pe.Decryptor(le)},pe.Encryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return xe(_e,le),_e.prototype.processBlock=function(Ie,z){this.Hn.encryptBlock(Ie,z)},_e}(pe),pe.Decryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return xe(_e,le),_e.prototype.processBlock=function(Ie,z){this.Hn.decryptBlock(Ie,z)},_e}(pe),pe}(fe.T),Se=function(){var Oe=function(pe,le){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Ie){_e.__proto__=Ie}||function(_e,Ie){for(var z in Ie)Object.prototype.hasOwnProperty.call(Ie,z)&&(_e[z]=Ie[z])})(pe,le)};return function(pe,le){function _e(){this.constructor=pe}Oe(pe,le),pe.prototype=le===null?Object.create(le):(_e.prototype=le.prototype,new _e)}}(),V=function(Oe){function pe(le){var _e=Oe.call(this,le)||this;return _e.xn=[],_e}return Se(pe,Oe),pe.createEncryptor=function(le){return new pe.Encryptor(le)},pe.createDecryptor=function(le){return new pe.Decryptor(le)},pe.Encryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return Se(_e,le),_e.prototype.processBlock=function(Ie,z){var X=this.Hn,oe=X.blockSize,ve=this.ln,Ce=this.xn;ve&&(Ce=this.xn=ve.words.slice(0),this.ln=void 0),X.encryptBlock(Ce,0);for(var ft=0;ft<oe;ft++)Ie[z+ft]^=Ce[ft]},_e}(pe),pe.Decryptor=pe.Encryptor,pe}(fe.T),ee=n(5607),ne=n(3664),ae={pad:function(Oe,pe){var le=Oe.nSigBytes,_e=4*pe,Ie=_e-le%_e,z=le+Ie-1;Oe.clamp(),Oe.words[z>>>2]|=Ie<<24-z%4*8,Oe.nSigBytes+=Ie},unpad:function(Oe){var pe=255&Oe.words[Oe.nSigBytes-1>>>2];Oe.nSigBytes-=pe}},bt=n(3354),Ft={pad:function(Oe,pe){var le=4*pe,_e=le-Oe.nSigBytes%le;Oe.concat(bt.e.random(_e-1)).concat(new bt.e([_e<<24],1))},unpad:function(Oe){var pe=255&Oe.words[Oe.nSigBytes-1>>>2];Oe.nSigBytes-=pe}},Mt={pad:function(Oe,pe){var le=4*pe;Oe.clamp(),Oe.nSigBytes+=le-(Oe.nSigBytes%le||le)},unpad:function(Oe){for(var pe=Oe.words,le=Oe.nSigBytes-1;le>=0;le--)if(pe[le>>>2]>>>24-le%4*8&255){Oe.nSigBytes=le+1;break}}},Et={pad:function(Oe,pe){Oe.concat(new bt.e([2147483648],1)),Mt.pad(Oe,pe)},unpad:function(Oe){Mt.unpad(Oe),Oe.nSigBytes-=1}},On=n(7919),Bn={pad:function(Oe,pe){},unpad:function(Oe){}},It=n(1232),Kt={CBC:be.n,CFB:he,CTR:ue,ECB:Re,OFB:V,GCM:ee.V,CCM:ne.K},zr={AnsiX923:ae,ISO10126:Ft,ISO97971:Et,Pkcs7:On.l,NoPadding:Bn,Zero:Mt},xn={OpenSSLFormatter:It.w}}(),r}()})});var R3=Y((_F,rg)=>{A();"use strict";var oN=Object.prototype.hasOwnProperty,In="~";function ol(){}Object.create&&(ol.prototype=Object.create(null),new ol().__proto__||(In=!1));function sN(i,t,n){this.fn=i,this.context=t,this.once=n||!1}function A3(i,t,n,r,o){if(typeof n!="function")throw new TypeError("The listener must be a function");var a=new sN(n,r||i,o),l=In?In+t:t;return i._events[l]?i._events[l].fn?i._events[l]=[i._events[l],a]:i._events[l].push(a):(i._events[l]=a,i._eventsCount++),i}function qd(i,t){--i._eventsCount==0?i._events=new ol:delete i._events[t]}function Sn(){this._events=new ol,this._eventsCount=0}Sn.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)oN.call(n,r)&&t.push(In?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Sn.prototype.listeners=function(t){var n=In?In+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,l=new Array(a);o<a;o++)l[o]=r[o].fn;return l};Sn.prototype.listenerCount=function(t){var n=In?In+t:t,r=this._events[n];return r?r.fn?1:r.length:0};Sn.prototype.emit=function(t,n,r,o,a,l){var u=In?In+t:t;if(!this._events[u])return!1;var d=this._events[u],f=arguments.length,m,p;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),f){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,n),!0;case 3:return d.fn.call(d.context,n,r),!0;case 4:return d.fn.call(d.context,n,r,o),!0;case 5:return d.fn.call(d.context,n,r,o,a),!0;case 6:return d.fn.call(d.context,n,r,o,a,l),!0}for(p=1,m=new Array(f-1);p<f;p++)m[p-1]=arguments[p];d.fn.apply(d.context,m)}else{var E=d.length,S;for(p=0;p<E;p++)switch(d[p].once&&this.removeListener(t,d[p].fn,void 0,!0),f){case 1:d[p].fn.call(d[p].context);break;case 2:d[p].fn.call(d[p].context,n);break;case 3:d[p].fn.call(d[p].context,n,r);break;case 4:d[p].fn.call(d[p].context,n,r,o);break;default:if(!m)for(S=1,m=new Array(f-1);S<f;S++)m[S-1]=arguments[S];d[p].fn.apply(d[p].context,m)}}return!0};Sn.prototype.on=function(t,n,r){return A3(this,t,n,r,!1)};Sn.prototype.once=function(t,n,r){return A3(this,t,n,r,!0)};Sn.prototype.removeListener=function(t,n,r,o){var a=In?In+t:t;if(!this._events[a])return this;if(!n)return qd(this,a),this;var l=this._events[a];if(l.fn)l.fn===n&&(!o||l.once)&&(!r||l.context===r)&&qd(this,a);else{for(var u=0,d=[],f=l.length;u<f;u++)(l[u].fn!==n||o&&!l[u].once||r&&l[u].context!==r)&&d.push(l[u]);d.length?this._events[a]=d.length===1?d[0]:d:qd(this,a)}return this};Sn.prototype.removeAllListeners=function(t){var n;return t?(n=In?In+t:t,this._events[n]&&qd(this,n)):(this._events=new ol,this._eventsCount=0),this};Sn.prototype.off=Sn.prototype.removeListener;Sn.prototype.addListener=Sn.prototype.on;Sn.prefixed=In;Sn.EventEmitter=Sn;typeof rg!="undefined"&&(rg.exports=Sn)});var pN={};dM(pN,{Link:()=>sl,default:()=>fN,load:()=>hN});A();A();A();var Kv=Je(Vv()),Yv=Je(Rn());A();var Jv=Je(Rn());function Cs(i,t){return Jv.TaJson.deserialize(i,t)}var Yi=class extends Kv.Publication{static async fromUrl(t,n){let o=await(await fetch(t.href,n)).json(),a=Cs(o,Yi);return a.manifestUrl=t,a}get readingOrder(){return this.Spine??[]}get resources(){return this.Resources??[]}get tableOfContents(){return this.sample?.isSampleRead&&this.positions?.length>0?this.limitedTOC():this.TOC}limitedTOC(){function t(r){for(let o=0;o<r.Children.length;o++){let a=r.Children[o];a.Href=void 0,a.Children&&t(a)}}return this.TOC.map(r=>{if(r.Href){let o=this.positionsByHref(this.getRelativeHref(r.Href));if(o?.length>0){let a=o[0],l=Math.round(a.locations.totalProgression?a.locations.totalProgression:0*100);this.sample?.limit&&(l<=this.sample?.limit||(r.Href=void 0,r.Children&&t(r)))}}return r})}get landmarks(){return this.Landmarks}get pageList(){return this.PageList}get isFixedLayout(){return this.Metadata.Rendition?.Layout==="fixed"}get isReflowable(){return!this.isFixedLayout}get layout(){return this.isFixedLayout?"fixed":"reflowable"}get hasMediaOverlays(){return this.readingOrder?this.readingOrder.filter(t=>t.Properties?.MediaOverlay).length>0:!1}getStartLink(){if(this.readingOrder!==void 0&&this.readingOrder.length>0)return this.readingOrder[0]}getPreviousSpineItem(t){let n=this.getSpineIndex(t);if(n!==void 0&&this.readingOrder!==void 0&&n>0)return this.readingOrder[n-1]}getNextSpineItem(t){let n=this.getSpineIndex(t);if(n!==void 0&&this.readingOrder!==void 0&&n<this.readingOrder.length-1)return this.readingOrder[n+1]}getSpineItem(t){let n=this.getSpineIndex(t);if(n!==void 0&&this.readingOrder!==void 0)return this.readingOrder[n]}getSpineIndex(t){return this.readingOrder?.findIndex(n=>n.Href&&this.getAbsoluteHref(n.Href)===t)}getAbsoluteHref(t){return new URL(t,this.manifestUrl.href).href}getRelativeHref(t){let n=this.manifestUrl.href.replace("/manifest.json",""),r=t.replace(n,"");return r.indexOf("#")>0&&(r=r.slice(0,r.indexOf("#"))),r.charAt(0)==="/"&&(r=r.substring(1)),r}getTOCItemAbsolute(t){let n=this.getAbsoluteHref(t),r=(a,l)=>{for(let u=0;u<l.length;u++){let d=l[u];if(d.Href){let f=d.Href.indexOf("#")!==-1?d.Href.slice(0,d.Href.indexOf("#")):d.Href;if(this.getAbsoluteHref(f)===a)return d}if(d.Children){let f=r(a,d.Children);if(f!==void 0)return f}}},o=r(n,this.tableOfContents);return o===void 0&&this.readingOrder!==void 0&&(o=r(n,this.readingOrder)),o}getTOCItem(t){let n=(o,a)=>{for(let l=0;l<a.length;l++){let u=a[l];if(u.Href&&this.getAbsoluteHref(u.Href)===o)return u;if(u.Children){let d=n(o,u.Children);if(d!==void 0)return d}}},r=n(t,this.tableOfContents);if(r===void 0&&this.readingOrder!==void 0&&(r=n(t,this.readingOrder)),r===void 0&&t.indexOf("#")!==-1){let o=t.slice(0,t.indexOf("#"));r=n(o,this.tableOfContents),r===void 0&&this.readingOrder!==void 0&&(r=n(o,this.readingOrder))}return r}positionsByHref(t){let n=decodeURI(t)??"";return this.positions?.filter(r=>n.includes(r.href))}async autoGeneratePositions(t,n=AL){let r=0,o=0,a=[];if(this.readingOrder!==void 0)for(let u of this.readingOrder)if(this.isFixedLayout){let d={href:u.Href,locations:{progression:0,position:r+1},type:u.TypeLink};a.push(d),r=r+1}else{let d=this.getAbsoluteHref(u.Href),f=await n(d,t);u.contentLength=f,o+=f;let p=Math.max(1,Math.ceil(f/1024));for(let E=0;E<p;E++){let S={href:u.Href,locations:{progression:E/p,position:r+(E+1)},type:u.TypeLink};a.push(S)}r=r+p}var l=0;if(this.isReflowable&&this.readingOrder!==void 0)for(let u of this.readingOrder){if(!u.contentLength){console.error("Link is missing contentLength",u);return}u.contentWeight=100/o*u.contentLength,l=l+u.contentWeight}for(let u of a){let d=a.filter(m=>m.href===decodeURI(u.href)),f=Math.ceil((u.locations.progression?u.locations.progression:0)*(d.length-1));u.locations.position&&(u.locations.totalProgression=(u.locations.position-1)/a.length),u.locations.remainingPositions=Math.abs(f-(d.length-1)),u.locations.position&&(u.locations.totalRemainingPositions=Math.abs(u.locations.position-1-(a.length-1)))}this.positions=a}async fetchPositionsFromService(t,n){let o=await(await fetch(t,n)).json();this.positions=o.positions}async fetchWeightsFromService(t,n){if(this.isFixedLayout){console.warn("Not fetching weights from service for fixed layout publication.");return}let o=await(await fetch(t,n)).json();this.readingOrder!==void 0&&this.readingOrder.forEach(a=>{a.contentWeight=o[a.Href]})}};Yi=ac([(0,Yv.JsonObject)()],Yi);var AL=async(i,t)=>(await(await fetch(i,t)).blob()).size;A();A();var As=class{json(){return JSON.stringify(this)}},Zv=class extends As{constructor(t,n,r){super();this.value=t,this.ref=n,this.name=r}toString(){return this.value}},Xv=class extends As{constructor(t,n,r){super();this.value=t,this.ref=n,this.name=r}toString(){return this.value}toJson(){return JSON.parse(this.value)}},Qv=class extends As{constructor(t,n,r,o){super();this.value=t,this.values=n,this.ref=r,this.name=o}toString(){return this.values[this.value]}},ew=class extends As{constructor(t,n,r,o,a,l,u){super();this.countDecimals=function(t){return t%1!=0?t.toString().split(".")[1].length:1};this.value=t,this.min=n,this.max=r,this.step=o,this.suffix=a,this.ref=l,this.name=u}toString(){return this.value.toString()+this.suffix}increment(){let t=this.countDecimals(this.max);parseFloat(this.value.toFixed(t))<this.max&&(this.value=parseFloat(this.value.toFixed(t))+this.step)}decrement(){let t=this.countDecimals(this.min);parseFloat(this.value.toFixed(t))>this.min&&(this.value=parseFloat(this.value.toFixed(t))-this.step)}},xa=class extends As{constructor(t,n,r,o,a){super();this.value=r,this.onValue=t,this.offValue=n,this.ref=o,this.name=a}toString(){return this.value?this.onValue:this.offValue}switch(){this.value=!this.value}},xi=class{constructor(){this.properties=[]}addIncremental(t,n,r,o,a,l,u){this.properties.push(new ew(t,n,r,o,a,l,u))}addStringable(t,n,r){this.properties.push(new Zv(t,n,r))}addJSONable(t,n,r){this.properties.push(new Xv(t,n,r))}addSwitchable(t,n,r,o,a){this.properties.push(new xa(t,n,r,o,a))}addEnumerable(t,n,r,o){this.properties.push(new Qv(t,n,r,o))}getByRef(t){let n=this.properties.filter(r=>r.ref===t);return n.length>0?n[0]:null}getByKey(t){let n=this.properties.filter(r=>r.key===t);return n.length>0?n[0]:null}};A();var cr=class{},K=cr;K.FONT_SIZE_REF="fontSize",K.FONT_FAMILY_REF="fontFamily",K.FONT_OVERRIDE_REF="fontOverride",K.APPEARANCE_REF="appearance",K.SCROLL_REF="scroll",K.TEXT_ALIGNMENT_REF="textAlign",K.COLUMN_COUNT_REF="colCount",K.WORD_SPACING_REF="wordSpacing",K.LETTER_SPACING_REF="letterSpacing",K.PAGE_MARGINS_REF="pageMargins",K.LINE_HEIGHT_REF="lineHeight",K.FONT_SIZE_KEY="--USER__"+cr.FONT_SIZE_REF,K.FONT_FAMILY_KEY="--USER__"+cr.FONT_FAMILY_REF,K.FONT_OVERRIDE_KEY="--USER__"+cr.FONT_OVERRIDE_REF,K.APPEARANCE_KEY="--USER__"+cr.APPEARANCE_REF,K.SCROLL_KEY="--USER__"+cr.SCROLL_REF,K.TEXT_ALIGNMENT_KEY="--USER__"+cr.TEXT_ALIGNMENT_REF,K.COLUMN_COUNT_KEY="--USER__"+cr.COLUMN_COUNT_REF,K.WORD_SPACING_KEY="--USER__"+cr.WORD_SPACING_REF,K.LETTER_SPACING_KEY="--USER__"+cr.LETTER_SPACING_REF,K.PAGE_MARGINS_KEY="--USER__"+cr.PAGE_MARGINS_REF,K.LINE_HEIGHT_KEY="--USER__"+cr.LINE_HEIGHT_REF;A();function de(i,t){return i.querySelector(t)}function dt(i,t){let n=de(i,t);if(n&&n instanceof HTMLElement)return n;throw new Error("required element "+t+" not found")}function Qt(i,t){if(i===null)throw new Error("parent element is null");return i.querySelector(t)}function _i(i,t){let n=Qt(i,t);if(n)return n;throw new Error("required element "+t+" not found in iframe")}function hn(i,t,n){i.setAttribute(t,n)}A();A();var YE=Je(Xp());var Va=class{constructor(t){this.getScrollingElement=t=>t.scrollingElement?t.scrollingElement:t.body;this.navigator=t}async handleFootnote(t,n){let r=t.getAttribute("href");if(r&&r.indexOf("#")>0){let a=function(u){let d=document.location.href;return new URL(u,d).href},o=r.substring(r.indexOf("#")+1),l=a(r);l&&(l=l.substring(0,l.indexOf("#")),n.preventDefault(),n.stopPropagation(),await fetch(l,this.navigator.requestConfig).then(u=>u.text()).then(async u=>{let m=new DOMParser().parseFromString(u,"text/html").querySelector("#"+o);m&&(n.preventDefault(),n.stopPropagation(),this.showPopup(m,n))}))}}async hidePopover(){let t=this.navigator.iframes[0].contentDocument?.getElementById("d2-popover");t&&t.parentElement?.removeChild(t);let n=dt(document,"#iframe-wrapper");n.style.overflow="auto"}async showPopover(t,n){let r=t.getAttribute("href"),o=t.getAttribute("src");function a(l){let u=document.location.href;return new URL(l,u).href}if(r){let l=a(r);if(l){n.preventDefault(),n.stopPropagation();let u=this.navigator.iframes[0].contentDocument?.getElementById("d2-popover");u&&u.parentElement?.removeChild(u);let d=document.createElement("div");d.id="d2-popover",d.className="d2-popover is-active";let f=dt(document,"#iframe-wrapper");f.style.overflow="hidden",d.style.top=f.scrollTop+"px",d.style.height=f.clientHeight*.9+"px";let m=document.createElement("div");m.className="d2-popover-wrapper",d.appendChild(m);let p=document.createElement("div");p.className="d2-popover-content",m.appendChild(p),await fetch(l,this.navigator.requestConfig).then(v=>v.text()).then(async v=>{p.innerHTML=v;let y=this.navigator.iframes[0].contentDocument;y&&y.body.appendChild(d)});let E=this.navigator.iframes[0].contentWindow;if(!E)return;let S=this;E.onclick=function(v){n.target!==v.target&&d.parentElement&&(S.hidePopover(),E&&(E.onclick=null))}}}else if(o&&a(o)){n.preventDefault(),n.stopPropagation();let u=this.navigator.iframes[0].contentDocument?.getElementById("d2-popover");u&&u.parentElement?.removeChild(u);let d=document.createElement("div");d.id="d2-popover",d.className="d2-popover is-active";let f=dt(document,"#iframe-wrapper");f.style.overflow="hidden",d.style.top=f.scrollTop+"px",d.style.height=f.clientHeight*.9+"px";let m=document.createElement("div");m.className="d2-popover-wrapper",d.appendChild(m);let p=document.createElement("img");p.className="d2-popover-content",m.appendChild(p),p.src=o;let E=this.navigator.iframes[0].contentDocument;E&&E.body.appendChild(d);let S=this.navigator.iframes[0].contentWindow;if(!S)return;let v=this;S.onclick=function(y){n.target!==y.target&&d.parentElement&&(v.hidePopover(),S&&(S.onclick=null))}}}showPopup(t,n){let r=this.navigator.iframes[0].contentDocument?.getElementById("d2-popup");r&&r.parentElement?.removeChild(r);let o=document.createElement("aside");o.id="d2-popup",o.className="d2-popup is-active";let a=document.createElement("div");a.className="d2-popup-wrapper",o.appendChild(a);let l=document.createElement("div");l.className="d2-popup-content",a.appendChild(l);let u=document.createElement("p");l.appendChild(u),typeof t=="string"?u.innerHTML=t:u.innerHTML=(0,YE.default)(t.innerHTML,{allowedTags:[],allowedAttributes:{}});let d=this.navigator.view?.isPaginated(),f=this.navigator.iframes[0].contentDocument;if(!f)return;let m=this.getScrollingElement(f),p=d?m.scrollLeft:0,E=d?m.scrollTop:0,S=n.x+p,v=n.y+E;o.style.top=v+"px",d&&(o.style.left=S+"px"),f.body.appendChild(o);let y=this.navigator.iframes[0].contentWindow;!y||(y.onclick=function(b){n.target!==b.target&&o.parentElement&&(o.style.display="none",o.parentElement.removeChild(o),y&&(y.onclick=null))})}};var hd=Je(Dt());function Z(i,t,n){i&&i.addEventListener(t,n,!0)}function we(i,t,n){i&&i.removeEventListener(t,n,!0)}var pd=class{constructor(t){this.onInternalLink=()=>{};this.onClickThrough=()=>{};this.checkForLink=t=>{let n=t.target;for(;n&&n.tagName.toLowerCase()!=="body";){if(n.tagName.toLowerCase()==="a"&&n.href)return n;n=n.parentElement}return null};this.linkInPublication=(t,n)=>t.some(r=>!r.Rel?.includes("external")&&this.navigator.publication.getRelativeHref(n).includes(r.Href));this.isReadingOrderInternal=t=>(hd.default.log("clickedLink: ",t),this.linkInPublication(this.navigator.publication.readingOrder,t.href));this.isResourceInternal=t=>(hd.default.log("clickedLink: ",t),this.linkInPublication(this.navigator.publication.resources,t.href));this.handleLinks=async t=>{hd.default.log("R2 Click Handler");let n=this.checkForLink(t);if(n){let r=window.location.protocol===n.protocol&&window.location.port===n.port&&window.location.hostname===n.hostname,o=this.isReadingOrderInternal(n),a=this.isResourceInternal(n);a||await this.popup.hidePopover();let l=n.href.indexOf("#");if(!o&&!a)window.open(n.href,n.target??"_blank"),t.preventDefault(),t.stopPropagation();else if(t.target.href=n.href,(r||o)&&l!==-1){let u=t.target;u?u.getAttribute("epub:type")==="noteref"?await this.popup.handleFootnote(u,t):a&&!o?await this.popup.showPopover(u,t):this.onInternalLink(t):this.onInternalLink(t)}else(r||o)&&l===-1&&this.onInternalLink(t)}else this.onClickThrough(t)};this.navigator=t,this.popup=new Va(this.navigator)}setupEvents(t){if(t!==null)t.addEventListener("dblclick",async n=>{let r=n.target;n.target&&r.tagName.toLowerCase()==="img"&&await this.popup.showPopover(r,n)},!0),t.addEventListener("click",this.handleLinks.bind(this));else throw"cannot setup events for null"}};A();A();function XE(){return dt(document,"#iframe-wrapper").clientWidth}function $r(){return dt(document,"#iframe-wrapper").clientHeight}var e4=Je(to()),gd=class{constructor(t){this.layout="reflowable";this.USERSETTINGS="userSetting";this.sideMargin=20;this.height=0;this.attributes={margin:0};this.hasFixedScrollWidth=!1;this.store=t,this.scrollMode?(this.name="readium-scroll-on",this.label="Scrolling"):(this.name="readium-scroll-off",this.label="Paginated")}setMode(t){if(this.scrollMode=t,t){this.name="readium-scroll-on",this.label="Scrolling";let n=this.iframe.contentDocument;if(n){let r=Qt(n,"head");if(r){let a=de(r,"meta[name=viewport]");a&&a.remove()}let o=Qt(n,"html");o&&o.style.setProperty("--USER__scroll","readium-scroll-on")}this.setSize(),this.setIframeHeight(this.iframe)}else{this.height=$r()-40-this.attributes.margin,this.name="readium-scroll-off",this.label="Paginated",this.checkForFixedScrollWidth();let n=this.iframe.contentDocument;if(n){let r=Qt(n,"html");r&&r.style.setProperty("--USER__scroll","readium-scroll-off")}this.setSize()}this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate()}start(){if(this.scrollMode){let t=this.iframe.contentDocument;if(t){let n=Qt(t,"head");if(n){let r=de(n,"meta[name=viewport]");r&&r.remove()}}this.setSize(),this.setIframeHeight(this.iframe)}else{this.iframe.height="0",this.iframe.width="0",this.setSize();let t=document.createElement("meta");t.name="viewport",t.content="width=device-width, initial-scale=1, maximum-scale=1",this.checkForFixedScrollWidth()}}stop(){if(this.iframe.height="0",this.iframe.width="0",this.iframe.contentDocument){let n=Qt(this.iframe.contentDocument,"body"),r=Array.prototype.slice.call(n.querySelectorAll("img"));for(let o of r)o.style.maxWidth=""}}getCurrentPosition(){let t=dt(document,"#iframe-wrapper");if(this.scrollMode)return t.scrollTop/this.scrollingElement.scrollHeight;{let n=this.getColumnWidth(),r=this.getLeftColumnsWidth(),o=this.getRightColumnsWidth(),a=r+n+o;return r/a}}goToProgression(t){let n=dt(document,"#iframe-wrapper");if(this.scrollMode)n.scrollTop=this.scrollingElement.scrollHeight*t;else{let r=this.getColumnWidth(),o=this.getLeftColumnsWidth(),a=this.getRightColumnsWidth(),l=o+r+a,u=t*l,d=Math.round(u/r)*r;d>=l&&(d=d-r),this.setLeftColumnsWidth(d)}}goToCssSelector(t,n){let r=this.iframe.contentDocument;if(r){let o=r.querySelector(t);this.goToElement(o,n)}}goToFragment(t,n){let r=this.iframe.contentDocument;if(r){let o=r.getElementById(t);this.goToElement(o,n)}}snap(t,n){if(t&&!this.scrollMode){let r=t.style.height;t.style.height="0";let o=this.getColumnWidth(),a=this.getLeftColumnsWidth()+t.getBoundingClientRect().left,l=Math.floor(a/o)*o;t.style.height=r,this.setLeftColumnsWidth(l),this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate(0)}}goToElement(t,n){if(this.scrollMode)t&&t.scrollIntoView({block:"center"});else if(t){let r=t.style.height;t.style.height="0";let o=t.getBoundingClientRect().left,a=this.getColumnWidth(),l=this.scrollingElement.scrollLeft-a,u=Math.ceil(o/a)*a+l;if(n){let d=this.getLeftColumnsWidth();u=Math.ceil(o/a)*a+d}t.style.height=r,this.setLeftColumnsWidth(u),this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate(200)}}atStart(){return this.scrollMode?dt(document,"#iframe-wrapper").scrollTop===0:this.getLeftColumnsWidth()<=0}atEnd(){if(this.scrollMode){let t=dt(document,"#iframe-wrapper");return Math.ceil(this.scrollingElement.scrollHeight-t.scrollTop)-1<=$r()}else return Math.floor(this.getRightColumnsWidth())<=0}goToPreviousPage(){let t=dt(document,"#iframe-wrapper");if(this.scrollMode){let n=t.scrollTop,r=this.getScreenHeight()-40,o=n-r;o>=0?t.scrollTop=o:t.scrollTop=0}else{let n=this.getLeftColumnsWidth(),r=this.getColumnWidth(),o=n-r;o>=0?this.setLeftColumnsWidth(o):this.setLeftColumnsWidth(0),this.delegate.checkResourcePosition()}this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate()}goToNextPage(){let t=dt(document,"#iframe-wrapper");if(this.scrollMode){let n=t.scrollTop,r=this.getScreenHeight()-40,o=this.scrollingElement.scrollHeight,a=n+r;a<o?t.scrollTop=a:t.scrollTop=o}else{let n=this.getLeftColumnsWidth(),r=this.getColumnWidth(),o=this.scrollWidth,a=n+r;a<o?this.setLeftColumnsWidth(a):this.setLeftColumnsWidth(o),this.delegate.checkResourcePosition()}this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate()}getCurrentPage(){return this.scrollMode?0:this.getCurrentPosition()*this.getPageCount()+1}getPageCount(){if(this.scrollMode)return 0;{let t=this.getColumnWidth();return this.scrollWidth/t}}isPaginated(){if(this.iframe){let t=this.iframe.contentDocument;if(t){let n=Qt(t,"html");if(n)return!(n.style.getPropertyValue("--USER__scroll")==="readium-scroll-on")}}return!this.scrollMode}isScrollMode(){if(this.iframe){let t=this.iframe.contentDocument;if(t){let n=Qt(t,"html");if(n)return n.style.getPropertyValue("--USER__scroll")==="readium-scroll-on"}}return this.scrollMode}async getProperty(t){let n=await this.store.get(this.USERSETTINGS);if(n){let r=JSON.parse(n);return r=r.filter(o=>o.name===t),r.length===0?null:r[0]}return null}getScreenHeight(){return dt(document,"#iframe-wrapper").clientHeight}setIframeHeight(t){(0,e4.debounce)(r=>{if(r){let o=r.contentWindow.document.body,a=r.contentWindow.document.documentElement,l=Math.max(o?.scrollHeight,o?.offsetHeight,a?.clientHeight,a?.scrollHeight,a?.offsetHeight);if(l){let u=$r()-this.attributes.margin;r.height=Math.max(u,l)+"px"}}},200)(t)}checkForFixedScrollWidth(){let t=this.iframe.contentDocument;if(t){let n=Qt(t,"body"),r=n?.scrollWidth;this.hasFixedScrollWidth=n?.scrollWidth===r}}setSize(){if(this.iframe.width=XE()+"px",this.scrollMode){let t=this.iframe.contentWindow?.document?.documentElement;this.iframe.height=t?.offsetHeight+"px"}else{let t=this.iframe.contentDocument;t&&t.documentElement&&(t.documentElement.style.height=this.height+"px"),this.iframe.height=this.height+"px"}}getLeftColumnsWidth(){return Math.ceil(this.scrollingElement.scrollLeft)}getRightColumnsWidth(){let t=this.getColumnWidth(),n=this.scrollWidth-t;if(this.hasFixedScrollWidth){let r=this.getLeftColumnsWidth();n=Math.max(0,n-r)}return n}getColumnWidth(){return this.scrollingElement.clientWidth}setLeftColumnsWidth(t){this.scrollingElement.scrollLeft=t}get scrollingElement(){return this.iframe.contentDocument?.scrollingElement?this.iframe.contentDocument?.scrollingElement:this.iframe.contentDocument?.body?this.iframe.contentDocument?.body:document.createElement("body")}get scrollWidth(){let t=this.scrollingElement?.scrollWidth,n=this.getColumnWidth();return Math.floor(t/n)*n}};A();var md=class{constructor(){this.layout="fixed";this.sideMargin=20;this.height=0;this.attributes={margin:0}}start(){}stop(){}getCurrentPosition(){return 0}getScreenHeight(){return dt(document,"#iframe-wrapper").clientHeight}goToProgression(t){}goToCssSelector(t,n){}goToFragment(t,n){}snap(t,n){}getCurrentPage(){return 0}getPageCount(){return 1}setSize(){}isPaginated(){return!0}isScrollMode(){return!1}atEnd(){return!0}atStart(){return!0}};var dr=Je(Dt()),wt=class{constructor(t,n,r,o,a){this.USERSETTINGS="userSetting";this.fontSize=100;this.fontOverride=!1;this.fontFamily=0;this.appearance=0;this.verticalScroll=!0;this.textAlignment=0;this.columnCount=0;this.wordSpacing=0;this.letterSpacing=0;this.pageMargins=2;this.lineHeight=1;this.settingsChangeCallback=()=>{};this.settingsColumnsChangeCallback=()=>{};this.viewChangeCallback=()=>{};this.store=t,this.view=a==="fixed"?new md:new gd(this.store),this.headerMenu=n,this.api=r,this.injectables=o,this.injectables?.forEach(l=>{l.type==="style"&&(l.fontFamily&&this.addFont(l.fontFamily),l.appearance&&this.addAppearance(l.appearance))})}async isPaginated(){return!await this.getPropertyAndFallback("verticalScroll",K.SCROLL_KEY)}async isScrollMode(){return!await this.isPaginated()}static async create(t){let n=new this(t.store,t.headerMenu,t.api,t.injectables,t.layout);if(await n.initialise(),t.initialUserSettings){n.userProperties||(n.userProperties=n.getUserSettings());let r=t.initialUserSettings;if(r.verticalScroll!==void 0){n.verticalScroll=this.parseScrollSetting(r.verticalScroll);let o=n.userProperties.getByRef(K.SCROLL_REF);o&&(o.value=n.verticalScroll,await n.saveProperty(o)),dr.default.log(n.verticalScroll)}if(r.appearance){n.appearance=wt.appearanceValues.findIndex(a=>a===r.appearance);let o=n.userProperties.getByRef(K.APPEARANCE_REF);o&&(o.value=n.appearance,await n.saveProperty(o)),dr.default.log(n.appearance)}if(r.fontSize){n.fontSize=r.fontSize;let o=n.userProperties.getByRef(K.FONT_SIZE_REF);o&&(o.value=n.fontSize,await n.saveProperty(o)),dr.default.log(n.fontSize)}if(r.fontFamily){n.fontFamily=wt.fontFamilyValues.findIndex(a=>a===r.fontFamily);let o=n.userProperties.getByRef(K.FONT_FAMILY_REF);o&&(o.value=n.fontFamily,await n.saveProperty(o)),dr.default.log(n.fontFamily),n.fontFamily!==0&&(n.fontOverride=!0)}if(r.textAlignment){n.textAlignment=wt.textAlignmentValues.findIndex(a=>a===r.textAlignment);let o=n.userProperties.getByRef(K.TEXT_ALIGNMENT_REF);o&&(o.value=n.textAlignment,await n.saveProperty(o)),dr.default.log(n.textAlignment)}if(r.columnCount){n.columnCount=wt.columnCountValues.findIndex(a=>a===r.columnCount);let o=n.userProperties.getByRef(K.COLUMN_COUNT_REF);o&&(o.value=n.columnCount,await n.saveProperty(o)),dr.default.log(n.columnCount)}if(r.wordSpacing){n.wordSpacing=r.wordSpacing;let o=n.userProperties.getByRef(K.WORD_SPACING_REF);o&&(o.value=n.wordSpacing,await n.saveProperty(o)),dr.default.log(n.wordSpacing)}if(r.letterSpacing){n.letterSpacing=r.letterSpacing;let o=n.userProperties.getByRef(K.LETTER_SPACING_REF);o&&(o.value=n.letterSpacing,await n.saveProperty(o)),dr.default.log(n.letterSpacing)}if(r.pageMargins){n.pageMargins=r.pageMargins;let o=n.userProperties.getByRef(K.PAGE_MARGINS_REF);o&&(o.value=n.pageMargins,await n.saveProperty(o)),dr.default.log(n.pageMargins)}if(r.lineHeight){n.lineHeight=r.lineHeight;let o=n.userProperties.getByRef(K.LINE_HEIGHT_REF);o&&(o.value=n.lineHeight,await n.saveProperty(o)),dr.default.log(n.lineHeight)}n.userProperties=n.getUserSettings(),await n.initialise()}return await n.initializeSelections(),new Promise(r=>r(n))}stop(){dr.default.log("book settings stop")}async initialise(){this.appearance=await this.getPropertyAndFallback("appearance",K.APPEARANCE_KEY),this.verticalScroll=await this.getPropertyAndFallback("verticalScroll",K.SCROLL_KEY),this.fontFamily=await this.getPropertyAndFallback("fontFamily",K.FONT_FAMILY_KEY),this.fontFamily!==0&&(this.fontOverride=!0),this.textAlignment=await this.getPropertyAndFallback("textAlignment",K.TEXT_ALIGNMENT_KEY),this.columnCount=await this.getPropertyAndFallback("columnCount",K.COLUMN_COUNT_KEY),this.fontSize=await this.getPropertyAndFallback("fontSize",K.FONT_SIZE_KEY),this.wordSpacing=await this.getPropertyAndFallback("wordSpacing",K.WORD_SPACING_KEY),this.letterSpacing=await this.getPropertyAndFallback("letterSpacing",K.LETTER_SPACING_KEY),this.pageMargins=await this.getPropertyAndFallback("pageMargins",K.PAGE_MARGINS_KEY),this.lineHeight=await this.getPropertyAndFallback("lineHeight",K.LINE_HEIGHT_KEY),this.userProperties=this.getUserSettings()}async reset(){this.appearance=0,this.verticalScroll=!0,this.fontSize=100,this.fontOverride=!1,this.fontFamily=0,this.textAlignment=0,this.columnCount=0,this.wordSpacing=0,this.letterSpacing=0,this.pageMargins=2,this.lineHeight=1,this.userProperties=this.getUserSettings();let t=this.iframe.contentDocument;if(t){let n=Qt(t,"html");if(n){let r=document.documentElement,o=dt(r,"body");n.style.removeProperty(K.FONT_SIZE_KEY),n.style.removeProperty(K.WORD_SPACING_KEY),n.style.removeProperty(K.LETTER_SPACING_KEY),n.style.removeProperty(K.COLUMN_COUNT_KEY),n.style.removeProperty(K.TEXT_ALIGNMENT_KEY),n.style.removeProperty(K.LINE_HEIGHT_KEY),n.style.removeProperty(K.PAGE_MARGINS_KEY),n.style.removeProperty(K.APPEARANCE_KEY),hn(r,"data-viewer-theme","day"),hn(o,"data-viewer-theme","day"),n.style.removeProperty(K.FONT_FAMILY_KEY),hn(n,"data-viewer-font","publisher"),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-off")}}}async initializeSelections(){this.headerMenu&&(this.settingsView=de(this.headerMenu,"#container-view-settings"))}async applyProperties(){this.userProperties=this.getUserSettings();let t=this.iframe.contentDocument;if(t){let n=Qt(t,"html");if(n){let r=document.documentElement,o=dt(r,"body");if(this.view?.delegate.publication.isReflowable&&(await this.getProperty(K.FONT_SIZE_KEY)&&n.style.setProperty(K.FONT_SIZE_KEY,this.userProperties.getByRef(K.FONT_SIZE_REF)?.toString()??null),await this.getProperty(K.WORD_SPACING_KEY)&&n.style.setProperty(K.WORD_SPACING_KEY,this.userProperties.getByRef(K.WORD_SPACING_REF)?.toString()??null),await this.getProperty(K.LETTER_SPACING_KEY)&&n.style.setProperty(K.LETTER_SPACING_KEY,this.userProperties.getByRef(K.LETTER_SPACING_REF)?.toString()??null)),await this.getProperty(K.COLUMN_COUNT_KEY)&&n.style.setProperty(K.COLUMN_COUNT_KEY,this.userProperties.getByRef(K.COLUMN_COUNT_REF)?.toString()??null),this.view?.delegate.publication.isReflowable&&(await this.getProperty(K.TEXT_ALIGNMENT_KEY)&&(this.userProperties.getByRef(K.TEXT_ALIGNMENT_REF)?.toString()==="auto"?n.style.removeProperty(K.TEXT_ALIGNMENT_KEY):n.style.setProperty(K.TEXT_ALIGNMENT_KEY,this.userProperties.getByRef(K.TEXT_ALIGNMENT_REF)?.toString()??null)),await this.getProperty(K.LINE_HEIGHT_KEY)&&n.style.setProperty(K.LINE_HEIGHT_KEY,this.userProperties.getByRef(K.LINE_HEIGHT_REF)?.toString()??null),await this.getProperty(K.PAGE_MARGINS_KEY)&&n.style.setProperty(K.PAGE_MARGINS_KEY,this.userProperties.getByRef(K.PAGE_MARGINS_REF)?.toString()??null)),await this.getProperty(K.APPEARANCE_KEY)?(n.style.setProperty(K.APPEARANCE_KEY,this.userProperties.getByRef(K.APPEARANCE_REF)?.toString()??null),this.userProperties.getByRef(K.APPEARANCE_REF)?.value===0?(hn(r,"data-viewer-theme","day"),hn(o,"data-viewer-theme","day")):this.userProperties.getByRef(K.APPEARANCE_REF)?.value===1?(hn(r,"data-viewer-theme","sepia"),hn(o,"data-viewer-theme","sepia")):this.userProperties.getByRef(K.APPEARANCE_REF)?.value===2&&(hn(r,"data-viewer-theme","night"),hn(o,"data-viewer-theme","night"))):(n.style.setProperty(K.APPEARANCE_KEY,this.userProperties.getByRef(K.APPEARANCE_REF)?.toString()??null),hn(r,"data-viewer-theme","day"),hn(o,"data-viewer-theme","day")),this.view?.delegate.publication.isReflowable){if(await this.getProperty(K.FONT_FAMILY_KEY))if(n.style.setProperty(K.FONT_FAMILY_KEY,this.userProperties.getByRef(K.FONT_FAMILY_REF)?.toString()??null),this.userProperties.getByRef(K.FONT_FAMILY_REF)?.value===0)hn(n,"data-viewer-font","publisher"),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-off");else if(this.userProperties.getByRef(K.FONT_FAMILY_REF)?.value===1)hn(n,"data-viewer-font","serif"),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-on");else if(this.userProperties.getByRef(K.FONT_FAMILY_REF)?.value===2)hn(n,"data-viewer-font","sans"),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-on");else{let a=this.userProperties.getByRef(K.FONT_FAMILY_REF);a&&hn(n,"data-viewer-font",a.toString()),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-on")}else n.style.setProperty(K.FONT_FAMILY_KEY,this.userProperties.getByRef(K.FONT_FAMILY_REF)?.toString()??null),hn(n,"data-viewer-font","publisher"),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-off");await this.getProperty(K.SCROLL_KEY)?this.userProperties.getByRef(K.SCROLL_REF)?.value===!0?n.style.setProperty("--USER__scroll","readium-scroll-on"):n.style.setProperty("--USER__scroll","readium-scroll-off"):n.style.setProperty("--USER__scroll","readium-scroll-on"),n.style.setProperty("--USER__advancedSettings","readium-advanced-on"),this.isScrollMode().then(a=>{this.view?.setMode?.(a)})}}}}setIframe(t){this.iframe=t,this.view&&(this.view.iframe=t),this.settingsView&&wt.renderControls(this.settingsView)}static renderControls(t){Z(de(t,"ul"),"click",n=>{n.stopPropagation()})}onSettingsChange(t){this.settingsChangeCallback=t}onColumnSettingsChange(t){this.settingsColumnsChangeCallback=t}onViewChange(t){this.viewChangeCallback=t}async storeProperty(t){await this.updateUserSettings(),await this.saveProperty(t)}addAppearance(t){wt.appearanceValues.includes(t)||wt.appearanceValues.push(t)}initAddedAppearance(){this.applyProperties()}addFont(t){wt.fontFamilyValues.includes(t)||wt.fontFamilyValues.push(t)}initAddedFont(){this.applyProperties()}async updateUserSettings(){let t={fontFamily:wt.fontFamilyValues[await this.userProperties?.getByRef(K.FONT_FAMILY_REF)?.value],fontSize:this.userProperties?.getByRef(K.FONT_SIZE_REF)?.value,appearance:wt.appearanceValues[await this.userProperties?.getByRef(K.APPEARANCE_REF)?.value],textAlignment:wt.textAlignmentValues[await this.userProperties?.getByRef(K.TEXT_ALIGNMENT_REF)?.value],columnCount:wt.columnCountValues[await this.userProperties?.getByRef(K.COLUMN_COUNT_REF)?.value],wordSpacing:this.userProperties?.getByRef(K.WORD_SPACING_REF)?.value,letterSpacing:this.userProperties?.getByRef(K.LETTER_SPACING_REF)?.value,verticalScroll:this.userProperties?.getByRef(K.SCROLL_REF)?.value};this.api?.updateSettings&&this.api?.updateSettings(t).then(n=>{dr.default.log("api updated user settings",JSON.stringify(t))})}getUserSettings(){let t=new xi;return t.addSwitchable("readium-font-on","readium-font-off",this.fontOverride,K.FONT_OVERRIDE_REF,K.FONT_OVERRIDE_KEY),t.addEnumerable(this.columnCount,wt.columnCountValues,K.COLUMN_COUNT_REF,K.COLUMN_COUNT_KEY),t.addEnumerable(this.appearance,wt.appearanceValues,K.APPEARANCE_REF,K.APPEARANCE_KEY),t.addIncremental(this.pageMargins,.5,4,.25,"",K.PAGE_MARGINS_REF,K.PAGE_MARGINS_KEY),t.addEnumerable(this.textAlignment,wt.textAlignmentValues,K.TEXT_ALIGNMENT_REF,K.TEXT_ALIGNMENT_KEY),t.addEnumerable(this.fontFamily,wt.fontFamilyValues,K.FONT_FAMILY_REF,K.FONT_FAMILY_KEY),t.addIncremental(this.fontSize,100,300,25,"%",K.FONT_SIZE_REF,K.FONT_SIZE_KEY),t.addIncremental(this.lineHeight,1,2,.25,"em",K.LINE_HEIGHT_REF,K.LINE_HEIGHT_KEY),t.addIncremental(this.wordSpacing,0,1,.25,"rem",K.WORD_SPACING_REF,K.WORD_SPACING_KEY),t.addIncremental(this.letterSpacing,0,.5,.0625,"em",K.LETTER_SPACING_REF,K.LETTER_SPACING_KEY),t.addSwitchable("readium-scroll-on","readium-scroll-off",this.verticalScroll,K.SCROLL_REF,K.SCROLL_KEY),t}async saveProperty(t){let n=await this.store.get(this.USERSETTINGS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.name!==t.name),t.value!==void 0&&r.push(t),await this.store.set(this.USERSETTINGS,JSON.stringify(r))}else{let r=[];r.push(t),await this.store.set(this.USERSETTINGS,JSON.stringify(r))}return new Promise(r=>r(t))}async getProperty(t){let n=await this.store.get(this.USERSETTINGS);if(n){let r=JSON.parse(n);return r=r.filter(o=>o.name===t),r.length===0?null:r[0]}return null}async getPropertyAndFallback(t,n){return(await this.getProperty(n))?.value??this[t]}async resetUserSettings(){await this.store.remove(this.USERSETTINGS),await this.reset(),this.settingsChangeCallback()}get currentSettings(){return{appearance:wt.appearanceValues[this.userProperties?.getByRef(K.APPEARANCE_REF)?.value],fontFamily:wt.fontFamilyValues[this.userProperties?.getByRef(K.FONT_FAMILY_REF)?.value],textAlignment:wt.textAlignmentValues[this.userProperties?.getByRef(K.TEXT_ALIGNMENT_REF)?.value],columnCount:wt.columnCountValues[this.userProperties?.getByRef(K.COLUMN_COUNT_REF)?.value],verticalScroll:this.verticalScroll,fontSize:this.fontSize,wordSpacing:this.wordSpacing,letterSpacing:this.letterSpacing,pageMargins:this.pageMargins,lineHeight:this.lineHeight}}async applyUserSettings(t){if(t.appearance){let n;t.appearance==="day"||t.appearance==="readium-default-on"?n=wt.appearanceValues[0]:t.appearance==="sepia"||t.appearance==="readium-sepia-on"?n=wt.appearanceValues[1]:t.appearance==="night"||t.appearance==="readium-night-on"?n=wt.appearanceValues[2]:n=t.appearance,this.appearance=wt.appearanceValues.findIndex(o=>o===n);let r=this.userProperties?.getByRef(K.APPEARANCE_REF);r&&(r.value=this.appearance,await this.storeProperty(r))}if(t.fontSize){this.fontSize=t.fontSize;let n=this.userProperties?.getByRef(K.FONT_SIZE_REF);n&&(n.value=this.fontSize,await this.storeProperty(n))}if(t.fontFamily){this.fontFamily=wt.fontFamilyValues.findIndex(r=>r===t.fontFamily);let n=this.userProperties?.getByRef(K.FONT_FAMILY_REF);n&&(n.value=this.fontFamily,await this.storeProperty(n))}if(t.letterSpacing){this.letterSpacing=t.letterSpacing;let n=this.userProperties?.getByRef(K.LETTER_SPACING_REF);n&&(n.value=this.letterSpacing,await this.storeProperty(n))}if(t.wordSpacing){this.wordSpacing=t.wordSpacing;let n=this.userProperties?.getByRef(K.WORD_SPACING_REF);n&&(n.value=this.wordSpacing,await this.storeProperty(n))}if(t.columnCount){this.columnCount=wt.columnCountValues.findIndex(r=>r===t.columnCount);let n=this.userProperties?.getByRef(K.COLUMN_COUNT_REF);n&&(n.value=this.columnCount,await this.storeProperty(n)),this.settingsColumnsChangeCallback()}if(t.textAlignment){this.textAlignment=wt.textAlignmentValues.findIndex(r=>r===t.textAlignment);let n=this.userProperties?.getByRef(K.TEXT_ALIGNMENT_REF);n&&(n.value=this.textAlignment,await this.storeProperty(n))}if(t.lineHeight){this.lineHeight=t.lineHeight;let n=this.userProperties?.getByRef(K.LINE_HEIGHT_REF);n&&(n.value=this.lineHeight,await this.storeProperty(n))}if(t.pageMargins){this.pageMargins=t.pageMargins;let n=this.userProperties?.getByRef(K.PAGE_MARGINS_REF);n&&(n.value=this.pageMargins,await this.storeProperty(n))}if(t.verticalScroll!==void 0){let n=this.view?.getCurrentPosition();this.verticalScroll=wt.parseScrollSetting(t.verticalScroll);let r=this.userProperties?.getByRef(K.SCROLL_REF);r&&(r.value=this.verticalScroll,await this.saveProperty(r)),this.view?.setMode?.(this.verticalScroll),n&&this.view?.goToProgression(n),this.viewChangeCallback()}await this.applyProperties(),this.settingsChangeCallback()}static parseScrollSetting(t){switch(t){case!0:case"scroll":case"readium-scroll-on":return!0;case!1:case"paginated":case"readium-scroll-off":return!1;default:return!1}}async scroll(t){let n=this.view?.getCurrentPosition();this.verticalScroll=t;let r=this.userProperties?.getByRef(K.SCROLL_REF);r&&(r.value=this.verticalScroll,await this.saveProperty(r)),await this.applyProperties(),this.view?.setMode?.(this.verticalScroll),n&&this.view?.goToProgression(n),this.viewChangeCallback()}async increase(t){if(t==="fontSize"){(this.userProperties?.getByRef(K.FONT_SIZE_REF)).increment(),this.fontSize=this.userProperties?.getByRef(K.FONT_SIZE_REF)?.value;let n=this.userProperties?.getByRef(K.FONT_SIZE_REF);n&&await this.storeProperty(n)}else if(t==="letterSpacing"){(this.userProperties?.getByRef(K.LETTER_SPACING_REF)).increment(),this.letterSpacing=this.userProperties?.getByRef(K.LETTER_SPACING_REF)?.value;let n=this.userProperties?.getByRef(K.LETTER_SPACING_REF);n&&await this.storeProperty(n)}else if(t==="wordSpacing"){(this.userProperties?.getByRef(K.WORD_SPACING_REF)).increment(),this.wordSpacing=this.userProperties?.getByRef(K.WORD_SPACING_REF)?.value;let n=this.userProperties?.getByRef(K.WORD_SPACING_REF);n&&await this.storeProperty(n)}else if(t==="lineHeight"){(this.userProperties?.getByRef(K.LINE_HEIGHT_REF)).increment(),this.lineHeight=this.userProperties?.getByRef(K.LINE_HEIGHT_REF)?.value;let n=this.userProperties?.getByRef(K.LINE_HEIGHT_REF);n&&await this.storeProperty(n)}await this.applyProperties(),this.settingsChangeCallback()}async decrease(t){if(t==="fontSize"){(this.userProperties?.getByRef(K.FONT_SIZE_REF)).decrement(),this.fontSize=this.userProperties?.getByRef(K.FONT_SIZE_REF)?.value;let n=this.userProperties?.getByRef(K.FONT_SIZE_REF);n&&await this.storeProperty(n)}else if(t==="letterSpacing"){(this.userProperties?.getByRef(K.LETTER_SPACING_REF)).decrement(),this.letterSpacing=this.userProperties?.getByRef(K.LETTER_SPACING_REF)?.value;let n=this.userProperties?.getByRef(K.LETTER_SPACING_REF);n&&await this.storeProperty(n)}else if(t==="wordSpacing"){(this.userProperties?.getByRef(K.WORD_SPACING_REF)).decrement(),this.wordSpacing=this.userProperties?.getByRef(K.WORD_SPACING_REF)?.value;let n=this.userProperties?.getByRef(K.WORD_SPACING_REF);n&&await this.storeProperty(n)}else if(t==="lineHeight"){(this.userProperties?.getByRef(K.LINE_HEIGHT_REF)).decrement(),this.wordSpacing=this.userProperties?.getByRef(K.LINE_HEIGHT_REF)?.value;let n=this.userProperties?.getByRef(K.LINE_HEIGHT_REF);n&&await this.storeProperty(n)}await this.applyProperties(),this.settingsChangeCallback()}},jo=wt;jo.appearanceValues=["readium-default-on","readium-sepia-on","readium-night-on"],jo.fontFamilyValues=["Original","serif","sans-serif"],jo.textAlignmentValues=["auto","justify","start"],jo.columnCountValues=["auto","1","2"];A();A();var fr;(function(n){n[n.Bookmark=0]="Bookmark",n[n.Annotation=1]="Annotation"})(fr||(fr={}));A();A();A();A();A();A();var t4={stringify(i){let t=i.nSigBytes,n=i.words,r=[];for(let o=0;o<t;o++){let a=n[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((a&15).toString(16))}return r.join("")},parse(i){let t=i.length;if(t%2!=0)throw new Error("Hex string count must be even");if(!/^[a-fA-F0-9]+$/.test(i))throw new Error(`Invalid Hex string: ${i}`);let n=[];for(let r=0;r<t;r+=2)n[r>>>3]|=parseInt(i.substr(r,2),16)<<24-r%8*4;return new wn(n,t/2)}};A();A();var n4=typeof navigator!="undefined"&&navigator.userAgent?navigator.userAgent.toLowerCase():"",Do=(()=>{let i=parseInt((/msie (\d+)/.exec(n4)||[])[1],10);return isNaN(i)?(i=parseInt((/trident\/.*; rv:(\d+)/.exec(n4)||[])[1],10),isNaN(i)?!1:i):i})();function r4(i,t){return Do===!1?!1:t?i==="<"?Do<t:i==="<="?Do<=t:i===">"?Do>t:i===">="?Do>=t:Do===t:!0}function Yk(){if(typeof window!="undefined"){let i=window.crypto||window.msCrypto;if(!i){if(r4("<",11))return console.warn("IE <= 10 uses insecure random generator. Please consider to use IE11 or another modern browser"),function(){return Math.floor(Math.random()*512)%256};throw new Error("Crypto module not found")}return function(){return i.getRandomValues(new Uint32Array(1))[0]}}else{if(typeof globalThis!="undefined"&&globalThis.crypto)return function(){return globalThis.crypto.randomBytes(4).readInt32LE()};if(typeof Dy=="function")return function(){return __non_webpack_require__("crypto").randomBytes(4).readInt32LE()}}throw new Error("Unable to find crypto module")}var i4=Yk();var wn=class{constructor(t,n){if(Array.isArray(t)||!t){this._words=Array.isArray(t)?t:[],this._nSignificantBytes=typeof n=="number"?n:this._words.length*4;return}else if(t instanceof wn){this._words=t.words.slice(),this._nSignificantBytes=t.nSigBytes;return}let r;try{t instanceof ArrayBuffer?r=new Uint8Array(t):(t instanceof Uint8Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}catch(l){throw new Error("Invalid argument")}if(!r)throw new Error("Invalid argument");let o=r.byteLength,a=[];for(let l=0;l<o;l++)a[l>>>2]|=r[l]<<24-l%4*8;this._words=a,this._nSignificantBytes=o}get nSigBytes(){return this._nSignificantBytes}set nSigBytes(t){this._nSignificantBytes=t}get words(){return this._words}toString(t){return t?t.stringify(this):t4.stringify(this)}toUint8Array(){let t=this._words,n=this._nSignificantBytes,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t[o>>>2]>>>24-o%4*8&255;return r}concat(t){let n=t.words.slice(),r=t.nSigBytes;if(this.clamp(),this._nSignificantBytes%4)for(let o=0;o<r;o++){let a=n[o>>>2]>>>24-o%4*8&255;this._words[this._nSignificantBytes+o>>>2]|=a<<24-(this._nSignificantBytes+o)%4*8}else for(let o=0;o<r;o+=4)this._words[this._nSignificantBytes+o>>>2]=n[o>>>2];return this._nSignificantBytes+=r,this}clamp(){let t=this._nSignificantBytes;this._words[t>>>2]&=4294967295<<32-t%4*8,this._words.length=Math.ceil(t/4)}clone(){return new wn(this._words.slice(),this._nSignificantBytes)}static random(t){let n=[];for(let r=0;r<t;r+=4)n.push(i4());return new wn(n,t)}};A();A();var e0={stringify(i){let t=i.nSigBytes,n=i.words,r=[];for(let o=0;o<t;o++){let a=n[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse(i){let t=i.length,n=[];for(let r=0;r<t;r++)n[r>>>2]|=(i.charCodeAt(r)&255)<<24-r%4*8;return new wn(n,t)}};var o4={stringify(i){try{return decodeURIComponent(escape(e0.stringify(i)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse(i){return e0.parse(unescape(encodeURIComponent(i)))}};var t0=class{constructor(t){this._minBufferSize=0,this._blockSize=0,this._props=t,this._data=t&&typeof t.data!="undefined"?t.data.clone():new wn,this._nBytes=t&&typeof t.nBytes=="number"?t.nBytes:0}get blockSize(){return this._blockSize}reset(t,n){this._data=typeof t!="undefined"?t.clone():new wn,this._nBytes=typeof n=="number"?n:0}_append(t){let n=typeof t=="string"?o4.parse(t):t;this._data.concat(n),this._nBytes+=n.nSigBytes}_process(t){let n,r=this._data.words,o=this._data.nSigBytes,a=this._blockSize,l=this._blockSize*4,u=o/l;t?u=Math.ceil(u):u=Math.max((u|0)-this._minBufferSize,0);let d=u*a,f=Math.min(d*4,o);if(d){for(let m=0;m<d;m+=a)this._doProcessBlock(r,m);n=r.splice(0,d),this._data.nSigBytes-=f}return new wn(n,f)}_doProcessBlock(t,n){throw new Error("Not implemented")}};var n0=class extends t0{constructor(t){super(t);this._blockSize=512/32,this._props=t,t&&typeof t.blockSize=="number"&&(this._blockSize=t.blockSize),this.reset(t?t.data:void 0,t?t.nBytes:void 0)}get blockSize(){return this._blockSize}reset(t,n){super.reset.call(this,t,n),this._doReset()}update(t){return this._append(t),this._process(),this}finalize(t){return t&&this._append(t),this._doFinalize()}_doReset(){throw new Error("Not implemented")}_doFinalize(){throw new Error("Not implemented")}};var r0=[],s4=[];function Zk(i){let t=Math.sqrt(i);for(let n=2;n<=t;n++)if(!(i%n))return!1;return!0}function a4(i){return(i-(i|0))*4294967296|0}(function(){let t=2,n=0;for(;n<64;)Zk(t)&&(n<8&&(r0[n]=a4(Math.pow(t,1/2))),s4[n]=a4(Math.pow(t,1/3)),n++),t++})();var Fo=[],Cr=class extends n0{constructor(t){super(t);this._hash=new wn(r0.slice(0)),this._props=t,t&&typeof t.hash!="undefined"&&(this._hash=t.hash.clone())}_doReset(){this._hash=new wn(r0.slice(0))}_doProcessBlock(t,n){let r=this._hash.words,o=r[0],a=r[1],l=r[2],u=r[3],d=r[4],f=r[5],m=r[6],p=r[7];for(let E=0;E<64;E++){if(E<16)Fo[E]=t[n+E]|0;else{let T=Fo[E-15],C=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,_=Fo[E-2],P=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;Fo[E]=C+Fo[E-7]+P+Fo[E-16]}let S=d&f^~d&m,v=o&a^o&l^a&l,y=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),b=(d<<26|d>>>6)^(d<<21|d>>>11)^(d<<7|d>>>25),w=p+b+S+s4[E]+Fo[E],O=y+v;p=m,m=f,f=d,d=u+w|0,u=l,l=a,a=o,o=w+O|0}r[0]=r[0]+o|0,r[1]=r[1]+a|0,r[2]=r[2]+l|0,r[3]=r[3]+u|0,r[4]=r[4]+d|0,r[5]=r[5]+f|0,r[6]=r[6]+m|0,r[7]=r[7]+p|0}_doFinalize(){let t=this._data.words,n=this._nBytes*8,r=this._data.nSigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,this._data.nSigBytes=t.length*4,this._process(),this._hash}clone(){let t={hash:this._hash,blockSize:this._blockSize,data:this._data,nBytes:this._nBytes};return new Cr(t)}static hash(t,n){return new Cr(n).finalize(t)}};var Ka=Je(to());A();var qe;(function(u){u[u.Annotation=0]="Annotation",u[u.Search=1]="Search",u[u.ReadAloud=2]="ReadAloud",u[u.PageBreak=3]="PageBreak",u[u.Definition=4]="Definition",u[u.LineFocus=5]="LineFocus",u[u.Comment=6]="Comment"})(qe||(qe={}));A();var En=Je(Dt());function yd(i,t){let n=i.getClientRects();return i0(n,t)}function i0(i,t){let n=1,r=[];for(let d of i)r.push({bottom:d.bottom,height:d.height,left:d.left,right:d.right,top:d.top,width:d.width});let o=c4(r,n,t),a=r8(o,n),l=u4(a),u=2*2;for(let d=l.length-1;d>=0;d--){let f=l[d];if(!(f.width*f.height>u))if(l.length>1)En.default.log("CLIENT RECT: remove small"),l.splice(d,1);else{En.default.log("CLIENT RECT: remove small, but keep otherwise empty!");break}}return d4(l),En.default.log(`CLIENT RECT: reduced ${r.length} --> ${l.length}`),l}function Ar(i,t,n){return Math.abs(i-t)<=n}function Xk(i,t){let n=Math.max(i.left,t.left),r=Math.min(i.right,t.right),o=Math.max(i.top,t.top),a=Math.min(i.bottom,t.bottom);return{bottom:a,height:Math.max(0,a-o),left:n,right:r,top:o,width:Math.max(0,r-n)}}function l4(i,t){let n=Xk(t,i);if(n.height===0||n.width===0)return[i];let r=[];{let o={bottom:i.bottom,height:0,left:i.left,right:n.left,top:i.top,width:0};o.width=o.right-o.left,o.height=o.bottom-o.top,o.height!==0&&o.width!==0&&r.push(o)}{let o={bottom:n.top,height:0,left:n.left,right:n.right,top:i.top,width:0};o.width=o.right-o.left,o.height=o.bottom-o.top,o.height!==0&&o.width!==0&&r.push(o)}{let o={bottom:i.bottom,height:0,left:n.left,right:n.right,top:n.bottom,width:0};o.width=o.right-o.left,o.height=o.bottom-o.top,o.height!==0&&o.width!==0&&r.push(o)}{let o={bottom:i.bottom,height:0,left:n.right,right:i.right,top:i.top,width:0};o.width=o.right-o.left,o.height=o.bottom-o.top,o.height!==0&&o.width!==0&&r.push(o)}return r}function bd(i,t,n,r){return(i.left<t||Ar(i.left,t,r))&&(i.right>t||Ar(i.right,t,r))&&(i.top<n||Ar(i.top,n,r))&&(i.bottom>n||Ar(i.bottom,n,r))}function Qk(i,t,n){return bd(i,t.left,t.top,n)&&bd(i,t.right,t.top,n)&&bd(i,t.left,t.bottom,n)&&bd(i,t.right,t.bottom,n)}function e8(i,t){let n=Math.min(i.left,t.left),r=Math.max(i.right,t.right),o=Math.min(i.top,t.top),a=Math.max(i.bottom,t.bottom);return{bottom:a,height:a-o,left:n,right:r,top:o,width:r-n}}function o0(i,t,n){return(i.left<t.right||n>=0&&Ar(i.left,t.right,n))&&(t.left<i.right||n>=0&&Ar(t.left,i.right,n))&&(i.top<t.bottom||n>=0&&Ar(i.top,t.bottom,n))&&(t.top<i.bottom||n>=0&&Ar(t.top,i.bottom,n))}function c4(i,t,n){for(let r=0;r<i.length;r++)for(let o=r+1;o<i.length;o++){let a=i[r],l=i[o];if(a===l){En.default.log("mergeTouchingRects rect1 === rect2 ??!");continue}let u=Ar(a.top,l.top,t)&&Ar(a.bottom,l.bottom,t),d=Ar(a.left,l.left,t)&&Ar(a.right,l.right,t);if((d&&!n||u&&!d)&&o0(a,l,t)){En.default.log(`CLIENT RECT: merging two into one, VERTICAL: ${u} HORIZONTAL: ${d} (${n})`);let E=i.filter(v=>v!==a&&v!==l),S=e8(a,l);return E.push(S),c4(E,t,n)}}return i}function u4(i){for(let t=0;t<i.length;t++)for(let n=t+1;n<i.length;n++){let r=i[t],o=i[n];if(r===o){En.default.log("replaceOverlappingRects rect1 === rect2 ??!");continue}if(o0(r,o,-1)){let a=[],l,u,d=l4(r,o);if(d.length===1)a=d,l=r,u=o;else{let p=l4(o,r);d.length<p.length?(a=d,l=r,u=o):(a=p,l=o,u=r)}let f=[];f.push(u),Array.prototype.push.apply(f,a),d4(f),En.default.log(`CLIENT RECT: overlap, cut one rect into ${a.length}`);let m=i.filter(p=>p!==l);return Array.prototype.push.apply(m,a),u4(m)}}return i}function t8(i,t){return Math.max(0,Math.min(i.right,t.right)-Math.max(i.left,t.left))}function n8(i,t){return Math.max(0,Math.min(i.bottom,t.bottom)-Math.max(i.top,t.top))}function r8(i,t){let n=new Set(i);for(let r of i){if(!(r.width>1&&r.height>1)){En.default.log("CLIENT RECT: remove tiny"),n.delete(r);continue}for(let a of i)if(r!==a&&!!n.has(a)&&Qk(a,r,t)){En.default.log("CLIENT RECT: remove contained"),n.delete(r);break}}return Array.from(n)}function d4(i){let t=[];for(let n of i)for(let r of i){if(n===r)continue;let o=t.indexOf(n)>=0,a=t.indexOf(r)>=0;if((!o||!a)&&o0(n,r,-1)){o||t.push(n),a||t.push(r),En.default.log("CLIENT RECT: overlap ---"),En.default.log(`#1 TOP:${n.top} BOTTOM:${n.bottom} LEFT:${n.left} RIGHT:${n.right} WIDTH:${n.width} HEIGHT:${n.height}`),En.default.log(`#2 TOP:${r.top} BOTTOM:${r.bottom} LEFT:${r.left} RIGHT:${r.right} WIDTH:${r.width} HEIGHT:${r.height}`);let l=t8(n,r);En.default.log(`xOverlap: ${l}`);let u=n8(n,r);En.default.log(`yOverlap: ${u}`)}}t.length&&En.default.log(`CLIENT RECT: overlaps ${t.length}`)}A();var Ct=Je(Dt());function oi(i,t){let n=i?i.getSelection():null;if(!n)return;if(n.isCollapsed){Ct.default.log("^^^ SELECTION COLLAPSED.");return}let r=n.toString(),o=r.trim().replace(/\n/g," ").replace(/\s\s+/g," ");if(o.length===0){Ct.default.log("^^^ SELECTION TEXT EMPTY.");return}if(!n.anchorNode||!n.focusNode)return;let a=n.rangeCount===1?n.getRangeAt(0):f4(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset);if(!a||a.collapsed){Ct.default.log("$$$$$$$$$$$$$$$$$ CANNOT GET NON-COLLAPSED SELECTION RANGE?!");return}let l=o8(a);l.startContainer!==a.startContainer&&(Ct.default.log(">>>>>>>>>>>>>>>>>>>>>>> SELECTION RANGE NORMALIZE diff: startContainer"),Ct.default.log(l.startContainer),Ct.default.log(a.startContainer)),l.startOffset!==a.startOffset&&(Ct.default.log(">>>>>>>>>>>>>>>>>>>>>>> SELECTION RANGE NORMALIZE diff: startOffset"),Ct.default.log(`${l.startOffset} !== ${a.startOffset}`)),l.endContainer!==a.endContainer&&(Ct.default.log(">>>>>>>>>>>>>>>>>>>>>>> SELECTION RANGE NORMALIZE diff: endContainer"),Ct.default.log(l.endContainer),Ct.default.log(a.endContainer)),l.endOffset!==a.endOffset&&(Ct.default.log(">>>>>>>>>>>>>>>>>>>>>>> SELECTION RANGE NORMALIZE diff: endOffset"),Ct.default.log(`${l.endOffset} !== ${a.endOffset}`));let u=Pi(l,t);if(!u){Ct.default.log("^^^ SELECTION RANGE INFO FAIL?!");return}return{rangeInfo:u,cleanText:o,rawText:r,range:l}}function f4(i,t,n,r){try{let o=new Range;if(o.setStart(i,t),o.setEnd(n,r),!o.collapsed)return Ct.default.log(">>> createOrderedRange RANGE OK"),o;Ct.default.log(">>> createOrderedRange COLLAPSED ... RANGE REVERSE?");let a=new Range;if(a.setStart(n,r),a.setEnd(i,t),!a.collapsed)return Ct.default.log(">>> createOrderedRange RANGE REVERSE OK."),o;Ct.default.log(">>> createOrderedRange RANGE REVERSE ALSO COLLAPSED?!");return}catch(o){console.warn(o.message);return}}function Pi(i,t){let n=i.startContainer.nodeType===Node.ELEMENT_NODE,r=n?i.startContainer:i.startContainer.parentNode&&i.startContainer.parentNode.nodeType===Node.ELEMENT_NODE?i.startContainer.parentNode:void 0;if(!r)return;let o=n?-1:Array.from(r.childNodes).indexOf(i.startContainer);if(o<-1)return;let a=t(r),l=i.endContainer.nodeType===Node.ELEMENT_NODE,u=l?i.endContainer:i.endContainer.parentNode&&i.endContainer.parentNode.nodeType===Node.ELEMENT_NODE?i.endContainer.parentNode:void 0;if(!u)return;let d=l?-1:Array.from(u.childNodes).indexOf(i.endContainer);if(d<-1)return;let f=t(u),m=i8(i.startContainer,i.endContainer);if(!m){Ct.default.log("^^^ NO RANGE COMMON ANCESTOR?!");return}if(i.commonAncestorContainer){let p=i.commonAncestorContainer.nodeType===Node.ELEMENT_NODE?i.commonAncestorContainer:i.commonAncestorContainer.parentNode;p&&p.nodeType===Node.ELEMENT_NODE&&m!==p&&(Ct.default.log(">>>>>> COMMON ANCESTOR CONTAINER DIFF??!"),Ct.default.log(t(m)),Ct.default.log(t(p)))}if(f&&a)return{endContainerChildTextNodeIndex:d,endContainerElementCssSelector:f,endOffset:i.endOffset,startContainerChildTextNodeIndex:o,startContainerElementCssSelector:a,startOffset:i.startOffset}}function vd(i,t){let n=i.querySelector(t.startContainerElementCssSelector);if(!n){Ct.default.log("^^^ convertRangeInfo NO START ELEMENT CSS SELECTOR?!");return}let r=n;if(t.startContainerChildTextNodeIndex>=0){if(t.startContainerChildTextNodeIndex>=n.childNodes.length){Ct.default.log("^^^ convertRangeInfo rangeInfo.startContainerChildTextNodeIndex >= startElement.childNodes.length?!");return}if(r=n.childNodes[t.startContainerChildTextNodeIndex],r.nodeType!==Node.TEXT_NODE){Ct.default.log("^^^ convertRangeInfo startContainer.nodeType !== Node.TEXT_NODE?!");return}}let o=i.querySelector(t.endContainerElementCssSelector);if(!o){Ct.default.log("^^^ convertRangeInfo NO END ELEMENT CSS SELECTOR?!");return}let a=o;if(t.endContainerChildTextNodeIndex>=0){if(t.endContainerChildTextNodeIndex>=o.childNodes.length){Ct.default.log("^^^ convertRangeInfo rangeInfo.endContainerChildTextNodeIndex >= endElement.childNodes.length?!");return}if(a=o.childNodes[t.endContainerChildTextNodeIndex],a.nodeType!==Node.TEXT_NODE){Ct.default.log("^^^ convertRangeInfo endContainer.nodeType !== Node.TEXT_NODE?!");return}}return f4(r,t.startOffset,a,t.endOffset)}function i8(i,t){if(i.nodeType===Node.ELEMENT_NODE&&i===t||i.nodeType===Node.ELEMENT_NODE&&i.contains(t))return i;if(t.nodeType===Node.ELEMENT_NODE&&t.contains(i))return t;let n=[],r=i.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE;)n.push(r),r=r.parentNode;let o=[];for(r=t.parentNode;r&&r.nodeType===Node.ELEMENT_NODE;)o.push(r),r=r.parentNode;let a=n.find(l=>o.indexOf(l)>=0);return a||(a=o.find(l=>n.indexOf(l)>=0)),a}function o8(i){let t=i.cloneRange(),n=t.startContainer,r=t.startOffset,o=t.endContainer,a=t.endOffset;n.childNodes.length&&r>0&&(n=p4(n.childNodes[r-1]),r=n.length||0),a<o.childNodes.length&&(o=h4(o.childNodes[a]),a=0);let l=h4(n),u=p4(o);function d(f){if(f.childNodes.length)return!1;let m=f.length||0;return f===n&&r===m?!1:!(f===o&&a===0)}for(;l&&!d(l)&&l!==u;)l=s8(l);for(l===n?t.setStart(n,r):l!==null&&(l.nodeType===3?t.setStart(l,0):t.setStartBefore(l));u&&!d(u)&&u!==l;)u=a8(u);return u===o?t.setEnd(o,a):u!==null&&(u.nodeType===3?t.setEnd(u,u.length):t.setEndAfter(u)),t}function s8(i){if(i.firstChild)return i.firstChild;let t=i;for(;!t.nextSibling;)if(t=t.parentNode,!t)return null;return t.nextSibling}function a8(i){if(i.lastChild)return i.lastChild;let t=i;for(;!t.previousSibling;)if(t=t.parentNode,!t)return null;return t.previousSibling}function h4(i){for(;i.firstChild;)i=i.firstChild;return i}function p4(i){for(;i.lastChild;)i=i.lastChild;return i}A();var a0=Je(m4()),no;(function(r){r[r.All=0]="All",r[r.Two=1]="Two",r[r.One=2]="One"})(no||(no={}));var Ii,l0;function ln(i,t,n){if(i.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(i.tagName.toLowerCase()==="html")return i.tagName.toLowerCase();let r={className:a=>!0,idName:a=>!0,optimizedMinLength:2,root:t.body,seedMinLength:1,tagName:a=>!0,threshold:1e3};Ii=Fe(Fe({},r),n),l0=p8(Ii.root,r);let o=c0(i,0,()=>c0(i,1,()=>c0(i,2)));if(o){let a=E4(S4(o,i));return a.length>0&&(o=a[0]),wd(o)}else throw new Error("Selector was not found.")}function p8(i,t){return i.nodeType===Node.DOCUMENT_NODE?i:i===t.root?i.ownerDocument:i}function c0(i,t,n){let r=null,o=[],a=i,l=0;for(;a&&a!==Ii.root.parentElement;){let u=f0(g8(a))||f0(...m8(a))||f0(y8(a))||[b8()],d=v8(a);if(t===0)d&&(u=u.concat(u.filter(d0).map(f=>u0(f,d))));else if(t===1)u=u.slice(0,1),d&&(u=u.concat(u.filter(d0).map(f=>u0(f,d))));else if(t===2){let[f]=u=u.slice(0,1);d&&d0(f)&&(u=[u0(f,d)])}for(let f of u)f.level=l;if(o.push(u),o.length>=Ii.seedMinLength&&(r=y4(o,n),r))break;a=a.parentElement,l++}return r||(r=y4(o,n)),r}function y4(i,t){let n=E4(w4(i));if(n.length>Ii.threshold)return t?t():null;for(let r of n)if(v4(r))return r;return null}function wd(i){let t=i[0],n=t.name;for(let r=1;r<i.length;r++){let o=i[r].level||0;t.level===o-1?n=`${i[r].name} > ${n}`:n=`${i[r].name} ${n}`,t=i[r]}return n}function b4(i){return i.map(t=>t.penalty).reduce((t,n)=>t+n,0)}function v4(i){switch(l0.querySelectorAll(wd(i)).length){case 0:throw new Error(`Can't select any node with this selector: ${wd(i)}`);case 1:return!0;default:return!1}}function g8(i){let t=i.getAttribute("id");return t&&Ii.idName(t)?{name:"#"+(0,a0.default)(t,{isIdentifier:!0}),penalty:0}:null}function m8(i){return Array.from(i.classList).filter(Ii.className).map(n=>({name:"."+(0,a0.default)(n,{isIdentifier:!0}),penalty:1}))}function y8(i){let t=i.tagName.toLowerCase();return Ii.tagName(t)?{name:t,penalty:2}:null}function b8(){return{name:"*",penalty:3}}function v8(i){let t=i.parentNode;if(!t)return null;let n=t.firstChild;if(!n)return null;let r=0;for(;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==i);)n=n.nextSibling;return r}function u0(i,t){return{name:i.name+`:nth-child(${t})`,penalty:i.penalty+1}}function d0(i){return i.name!=="html"&&!i.name.startsWith("#")}function f0(...i){let t=i.filter(w8);return t.length>0?t:null}function w8(i){return i!=null}function*w4(i,t=[]){if(i.length>0)for(let n of i[0])yield*w4(i.slice(1,i.length),t.concat(n));else yield t}function E4(i){return Array.from(i).sort((t,n)=>b4(t)-b4(n))}function*S4(i,t){if(i.length>2&&i.length>Ii.optimizedMinLength)for(let n=1;n<i.length-1;n++){let r=[...i];r.splice(n,1),v4(r)&&E8(r,t)&&(yield r,yield*S4(r,t))}}function E8(i,t){return l0.querySelector(wd(i))===t}A();var Le;(function(a){a[a.Highlight=0]="Highlight",a[a.Underline=1]="Underline",a[a.Bookmark=2]="Bookmark",a[a.Custom=3]="Custom",a[a.Comment=4]="Comment"})(Le||(Le={}));A();var h0=24,S8=24,O4="0 0 24 24",Gn=(i,t,n,r="icon")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${h0}" height="${S8}" viewBox="${O4}" preserveAspectRatio="xMidYMid meet" role="img" class="${r}" aria-labelledBy="${i}">
66
+ }`;var nt=Iy(function(){return vt(L,ke+"return "+ce).apply(i,H)});if(nt.source=ce,nh(nt))throw nt;return nt}function fR(s){return St(s).toLowerCase()}function hR(s){return St(s).toUpperCase()}function pR(s,c,g){if(s=St(s),s&&(g||c===i))return $g(s);if(!s||!(c=Qn(c)))return s;var x=Pr(s),R=Pr(c),L=Ug(x,R),H=qg(x,R)+1;return Wi(x,L,H).join("")}function gR(s,c,g){if(s=St(s),s&&(g||c===i))return s.slice(0,Wg(s)+1);if(!s||!(c=Qn(c)))return s;var x=Pr(s),R=qg(x,Pr(c))+1;return Wi(x,0,R).join("")}function mR(s,c,g){if(s=St(s),s&&(g||c===i))return s.replace(Zo,"");if(!s||!(c=Qn(c)))return s;var x=Pr(s),R=Ug(x,Pr(c));return Wi(x,R).join("")}function yR(s,c){var g=P,x=q;if($t(c)){var R="separator"in c?c.separator:R;g="length"in c?tt(c.length):g,x="omission"in c?Qn(c.omission):x}s=St(s);var L=s.length;if(es(s)){var H=Pr(s);L=H.length}if(g>=L)return s;var $=g-ts(x);if($<1)return x;var J=H?Wi(H,0,$).join(""):s.slice(0,$);if(R===i)return J+x;if(H&&($+=J.length-$),rh(R)){if(s.slice($).search(R)){var ie,se=J;for(R.global||(R=vf(R.source,St(cg.exec(R))+"g")),R.lastIndex=0;ie=R.exec(se);)var ce=ie.index;J=J.slice(0,ce===i?$:ce)}}else if(s.indexOf(Qn(R),$)!=$){var Te=J.lastIndexOf(R);Te>-1&&(J=J.slice(0,Te))}return J+x}function bR(s){return s=St(s),s&&Yd.test(s)?s.replace(dl,VO):s}var vR=as(function(s,c,g){return s+(g?" ":"")+c.toUpperCase()}),sh=Lm("toUpperCase");function Py(s,c,g){return s=St(s),c=g?i:c,c===i?UO(s)?YO(s):LO(s):s.match(c)||[]}var Iy=rt(function(s,c){try{return Zn(s,i,c)}catch(g){return nh(g)?g:new Ze(g)}}),wR=hi(function(s,c){return gr(c,function(g){g=Vr(g),di(s,g,eh(s[g],s))}),s});function ER(s){var c=s==null?0:s.length,g=Ue();return s=c?Ht(s,function(x){if(typeof x[1]!="function")throw new mr(o);return[g(x[0]),x[1]]}):[],rt(function(x){for(var R=-1;++R<c;){var L=s[R];if(Zn(L[0],this,x))return Zn(L[1],this,x)}})}function SR(s){return Vx(br(s,f))}function ah(s){return function(){return s}}function OR(s,c){return s==null||s!==s?c:s}var xR=km(),_R=km(!0);function Dn(s){return s}function lh(s){return dm(typeof s=="function"?s:br(s,f))}function TR(s){return hm(br(s,f))}function CR(s,c){return pm(s,br(c,f))}var AR=rt(function(s,c){return function(g){return aa(g,s,c)}}),RR=rt(function(s,c){return function(g){return aa(s,g,c)}});function ch(s,c,g){var x=tn(c),R=Fl(c,x);g==null&&!($t(c)&&(R.length||!x.length))&&(g=c,c=s,s=this,R=Fl(c,tn(c)));var L=!($t(g)&&"chain"in g)||!!g.chain,H=gi(s);return gr(R,function($){var J=c[$];s[$]=J,H&&(s.prototype[$]=function(){var ie=this.__chain__;if(L||ie){var se=s(this.__wrapped__),ce=se.__actions__=Nn(this.__actions__);return ce.push({func:J,args:arguments,thisArg:s}),se.__chain__=ie,se}return J.apply(s,ji([this.value()],arguments))})}),s}function MR(){return en._===this&&(en._=nx),this}function uh(){}function PR(s){return s=tt(s),rt(function(c){return gm(c,s)})}var IR=$f(Ht),LR=$f(Ng),BR=$f(ff);function Ly(s){return Jf(s)?hf(Vr(s)):u_(s)}function kR(s){return function(c){return s==null?i:wo(s,c)}}var NR=Hm(),HR=Hm(!0);function dh(){return[]}function fh(){return!1}function jR(){return{}}function DR(){return""}function FR(){return!0}function $R(s,c){if(s=tt(s),s<1||s>be)return[];var g=he,x=mn(s,he);c=Ue(c),s-=he;for(var R=mf(x,c);++g<s;)c(g);return R}function UR(s){return Qe(s)?Ht(s,Vr):er(s)?[s]:Nn(Qm(St(s)))}function qR(s){var c=++ex;return St(s)+c}var zR=Gl(function(s,c){return s+c},0),WR=Uf("ceil"),GR=Gl(function(s,c){return s/c},1),VR=Uf("floor");function JR(s){return s&&s.length?Dl(s,Dn,Cf):i}function KR(s,c){return s&&s.length?Dl(s,Ue(c,2),Cf):i}function YR(s){return Dg(s,Dn)}function ZR(s,c){return Dg(s,Ue(c,2))}function XR(s){return s&&s.length?Dl(s,Dn,Pf):i}function QR(s,c){return s&&s.length?Dl(s,Ue(c,2),Pf):i}var eM=Gl(function(s,c){return s*c},1),tM=Uf("round"),nM=Gl(function(s,c){return s-c},0);function rM(s){return s&&s.length?gf(s,Dn):0}function iM(s,c){return s&&s.length?gf(s,Ue(c,2)):0}return M.after=TC,M.ary=uy,M.assign=hA,M.assignIn=xy,M.assignInWith=oc,M.assignWith=pA,M.at=gA,M.before=dy,M.bind=eh,M.bindAll=wR,M.bindKey=fy,M.castArray=jC,M.chain=ay,M.chunk=V_,M.compact=J_,M.concat=K_,M.cond=ER,M.conforms=SR,M.constant=ah,M.countBy=rC,M.create=mA,M.curry=hy,M.curryRight=py,M.debounce=gy,M.defaults=yA,M.defaultsDeep=bA,M.defer=CC,M.delay=AC,M.difference=Y_,M.differenceBy=Z_,M.differenceWith=X_,M.drop=Q_,M.dropRight=eT,M.dropRightWhile=tT,M.dropWhile=nT,M.fill=rT,M.filter=oC,M.flatMap=lC,M.flatMapDeep=cC,M.flatMapDepth=uC,M.flatten=ry,M.flattenDeep=iT,M.flattenDepth=oT,M.flip=RC,M.flow=xR,M.flowRight=_R,M.fromPairs=sT,M.functions=_A,M.functionsIn=TA,M.groupBy=dC,M.initial=lT,M.intersection=cT,M.intersectionBy=uT,M.intersectionWith=dT,M.invert=AA,M.invertBy=RA,M.invokeMap=hC,M.iteratee=lh,M.keyBy=pC,M.keys=tn,M.keysIn=jn,M.map=Ql,M.mapKeys=PA,M.mapValues=IA,M.matches=TR,M.matchesProperty=CR,M.memoize=tc,M.merge=LA,M.mergeWith=_y,M.method=AR,M.methodOf=RR,M.mixin=ch,M.negate=nc,M.nthArg=PR,M.omit=BA,M.omitBy=kA,M.once=MC,M.orderBy=gC,M.over=IR,M.overArgs=PC,M.overEvery=LR,M.overSome=BR,M.partial=th,M.partialRight=my,M.partition=mC,M.pick=NA,M.pickBy=Ty,M.property=Ly,M.propertyOf=kR,M.pull=gT,M.pullAll=oy,M.pullAllBy=mT,M.pullAllWith=yT,M.pullAt=bT,M.range=NR,M.rangeRight=HR,M.rearg=IC,M.reject=vC,M.remove=vT,M.rest=LC,M.reverse=Xf,M.sampleSize=EC,M.set=jA,M.setWith=DA,M.shuffle=SC,M.slice=wT,M.sortBy=_C,M.sortedUniq=CT,M.sortedUniqBy=AT,M.split=lR,M.spread=BC,M.tail=RT,M.take=MT,M.takeRight=PT,M.takeRightWhile=IT,M.takeWhile=LT,M.tap=JT,M.throttle=kC,M.thru=Xl,M.toArray=Ey,M.toPairs=Cy,M.toPairsIn=Ay,M.toPath=UR,M.toPlainObject=Oy,M.transform=FA,M.unary=NC,M.union=BT,M.unionBy=kT,M.unionWith=NT,M.uniq=HT,M.uniqBy=jT,M.uniqWith=DT,M.unset=$A,M.unzip=Qf,M.unzipWith=sy,M.update=UA,M.updateWith=qA,M.values=us,M.valuesIn=zA,M.without=FT,M.words=Py,M.wrap=HC,M.xor=$T,M.xorBy=UT,M.xorWith=qT,M.zip=zT,M.zipObject=WT,M.zipObjectDeep=GT,M.zipWith=VT,M.entries=Cy,M.entriesIn=Ay,M.extend=xy,M.extendWith=oc,ch(M,M),M.add=zR,M.attempt=Iy,M.camelCase=JA,M.capitalize=Ry,M.ceil=WR,M.clamp=WA,M.clone=DC,M.cloneDeep=$C,M.cloneDeepWith=UC,M.cloneWith=FC,M.conformsTo=qC,M.deburr=My,M.defaultTo=OR,M.divide=GR,M.endsWith=KA,M.eq=Lr,M.escape=YA,M.escapeRegExp=ZA,M.every=iC,M.find=sC,M.findIndex=ty,M.findKey=vA,M.findLast=aC,M.findLastIndex=ny,M.findLastKey=wA,M.floor=VR,M.forEach=ly,M.forEachRight=cy,M.forIn=EA,M.forInRight=SA,M.forOwn=OA,M.forOwnRight=xA,M.get=ih,M.gt=zC,M.gte=WC,M.has=CA,M.hasIn=oh,M.head=iy,M.identity=Dn,M.includes=fC,M.indexOf=aT,M.inRange=GA,M.invoke=MA,M.isArguments=Oo,M.isArray=Qe,M.isArrayBuffer=GC,M.isArrayLike=Hn,M.isArrayLikeObject=Wt,M.isBoolean=VC,M.isBuffer=Gi,M.isDate=JC,M.isElement=KC,M.isEmpty=YC,M.isEqual=ZC,M.isEqualWith=XC,M.isError=nh,M.isFinite=QC,M.isFunction=gi,M.isInteger=yy,M.isLength=rc,M.isMap=by,M.isMatch=eA,M.isMatchWith=tA,M.isNaN=nA,M.isNative=rA,M.isNil=oA,M.isNull=iA,M.isNumber=vy,M.isObject=$t,M.isObjectLike=Ut,M.isPlainObject=ha,M.isRegExp=rh,M.isSafeInteger=sA,M.isSet=wy,M.isString=ic,M.isSymbol=er,M.isTypedArray=cs,M.isUndefined=aA,M.isWeakMap=lA,M.isWeakSet=cA,M.join=fT,M.kebabCase=XA,M.last=wr,M.lastIndexOf=hT,M.lowerCase=QA,M.lowerFirst=eR,M.lt=uA,M.lte=dA,M.max=JR,M.maxBy=KR,M.mean=YR,M.meanBy=ZR,M.min=XR,M.minBy=QR,M.stubArray=dh,M.stubFalse=fh,M.stubObject=jR,M.stubString=DR,M.stubTrue=FR,M.multiply=eM,M.nth=pT,M.noConflict=MR,M.noop=uh,M.now=ec,M.pad=tR,M.padEnd=nR,M.padStart=rR,M.parseInt=iR,M.random=VA,M.reduce=yC,M.reduceRight=bC,M.repeat=oR,M.replace=sR,M.result=HA,M.round=tM,M.runInContext=G,M.sample=wC,M.size=OC,M.snakeCase=aR,M.some=xC,M.sortedIndex=ET,M.sortedIndexBy=ST,M.sortedIndexOf=OT,M.sortedLastIndex=xT,M.sortedLastIndexBy=_T,M.sortedLastIndexOf=TT,M.startCase=cR,M.startsWith=uR,M.subtract=nM,M.sum=rM,M.sumBy=iM,M.template=dR,M.times=$R,M.toFinite=mi,M.toInteger=tt,M.toLength=Sy,M.toLower=fR,M.toNumber=Er,M.toSafeInteger=fA,M.toString=St,M.toUpper=hR,M.trim=pR,M.trimEnd=gR,M.trimStart=mR,M.truncate=yR,M.unescape=bR,M.uniqueId=qR,M.upperCase=vR,M.upperFirst=sh,M.each=ly,M.eachRight=cy,M.first=iy,ch(M,function(){var s={};return Wr(M,function(c,g){xt.call(M.prototype,g)||(s[g]=c)}),s}(),{chain:!1}),M.VERSION=t,gr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){M[s].placeholder=M}),gr(["drop","take"],function(s,c){ut.prototype[s]=function(g){g=g===i?1:Zt(tt(g),0);var x=this.__filtered__&&!c?new ut(this):this.clone();return x.__filtered__?x.__takeCount__=mn(g,x.__takeCount__):x.__views__.push({size:mn(g,he),type:s+(x.__dir__<0?"Right":"")}),x},ut.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),gr(["filter","map","takeWhile"],function(s,c){var g=c+1,x=g==B||g==W;ut.prototype[s]=function(R){var L=this.clone();return L.__iteratees__.push({iteratee:Ue(R,3),type:g}),L.__filtered__=L.__filtered__||x,L}}),gr(["head","last"],function(s,c){var g="take"+(c?"Right":"");ut.prototype[s]=function(){return this[g](1).value()[0]}}),gr(["initial","tail"],function(s,c){var g="drop"+(c?"":"Right");ut.prototype[s]=function(){return this.__filtered__?new ut(this):this[g](1)}}),ut.prototype.compact=function(){return this.filter(Dn)},ut.prototype.find=function(s){return this.filter(s).head()},ut.prototype.findLast=function(s){return this.reverse().find(s)},ut.prototype.invokeMap=rt(function(s,c){return typeof s=="function"?new ut(this):this.map(function(g){return aa(g,s,c)})}),ut.prototype.reject=function(s){return this.filter(nc(Ue(s)))},ut.prototype.slice=function(s,c){s=tt(s);var g=this;return g.__filtered__&&(s>0||c<0)?new ut(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),c!==i&&(c=tt(c),g=c<0?g.dropRight(-c):g.take(c-s)),g)},ut.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},ut.prototype.toArray=function(){return this.take(he)},Wr(ut.prototype,function(s,c){var g=/^(?:filter|find|map|reject)|While$/.test(c),x=/^(?:head|last)$/.test(c),R=M[x?"take"+(c=="last"?"Right":""):c],L=x||/^find/.test(c);!R||(M.prototype[c]=function(){var H=this.__wrapped__,$=x?[1]:arguments,J=H instanceof ut,ie=$[0],se=J||Qe(H),ce=function(at){var ht=R.apply(M,ji([at],$));return x&&Te?ht[0]:ht};se&&g&&typeof ie=="function"&&ie.length!=1&&(J=se=!1);var Te=this.__chain__,ke=!!this.__actions__.length,We=L&&!Te,nt=J&&!ke;if(!L&&se){H=nt?H:new ut(this);var Ge=s.apply(H,$);return Ge.__actions__.push({func:Xl,args:[ce],thisArg:i}),new yr(Ge,Te)}return We&&nt?s.apply(this,$):(Ge=this.thru(ce),We?x?Ge.value()[0]:Ge.value():Ge)})}),gr(["pop","push","shift","sort","splice","unshift"],function(s){var c=xl[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",x=/^(?:pop|shift)$/.test(s);M.prototype[s]=function(){var R=arguments;if(x&&!this.__chain__){var L=this.value();return c.apply(Qe(L)?L:[],R)}return this[g](function(H){return c.apply(Qe(H)?H:[],R)})}}),Wr(ut.prototype,function(s,c){var g=M[c];if(g){var x=g.name+"";xt.call(is,x)||(is[x]=[]),is[x].push({name:c,func:g})}}),is[Wl(i,y).name]=[{name:"wrapper",func:i}],ut.prototype.clone=bx,ut.prototype.reverse=vx,ut.prototype.value=wx,M.prototype.at=KT,M.prototype.chain=YT,M.prototype.commit=ZT,M.prototype.next=XT,M.prototype.plant=eC,M.prototype.reverse=tC,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=nC,M.prototype.first=M.prototype.head,ea&&(M.prototype[ea]=QT),M},Fi=ZO();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(en._=Fi,define(function(){return Fi})):go?((go.exports=Fi)._=Fi,lf._=Fi):en._=Fi}).call(qs)});var w0=Y((S9,v0)=>{A();var T4=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);T4?(y0=new Uint8Array(16),v0.exports=function(){return T4(y0),y0}):(b0=new Array(16),v0.exports=function(){for(var t=0,n;t<16;t++)(t&3)==0&&(n=Math.random()*4294967296),b0[t]=n>>>((t&3)<<3)&255;return b0});var y0,b0});var E0=Y((O9,A4)=>{A();var C4=[];for(Xa=0;Xa<256;++Xa)C4[Xa]=(Xa+256).toString(16).substr(1);var Xa;function T8(i,t){var n=t||0,r=C4;return[r[i[n++]],r[i[n++]],r[i[n++]],r[i[n++]],"-",r[i[n++]],r[i[n++]],"-",r[i[n++]],r[i[n++]],"-",r[i[n++]],r[i[n++]],"-",r[i[n++]],r[i[n++]],r[i[n++]],r[i[n++]],r[i[n++]],r[i[n++]]].join("")}A4.exports=T8});var P4=Y((x9,M4)=>{A();var C8=w0(),A8=E0(),R4,S0,O0=0,x0=0;function R8(i,t,n){var r=t&&n||0,o=t||[];i=i||{};var a=i.node||R4,l=i.clockseq!==void 0?i.clockseq:S0;if(a==null||l==null){var u=C8();a==null&&(a=R4=[u[0]|1,u[1],u[2],u[3],u[4],u[5]]),l==null&&(l=S0=(u[6]<<8|u[7])&16383)}var d=i.msecs!==void 0?i.msecs:new Date().getTime(),f=i.nsecs!==void 0?i.nsecs:x0+1,m=d-O0+(f-x0)/1e4;if(m<0&&i.clockseq===void 0&&(l=l+1&16383),(m<0||d>O0)&&i.nsecs===void 0&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");O0=d,x0=f,S0=l,d+=122192928e5;var p=((d&268435455)*1e4+f)%4294967296;o[r++]=p>>>24&255,o[r++]=p>>>16&255,o[r++]=p>>>8&255,o[r++]=p&255;var E=d/4294967296*1e4&268435455;o[r++]=E>>>8&255,o[r++]=E&255,o[r++]=E>>>24&15|16,o[r++]=E>>>16&255,o[r++]=l>>>8|128,o[r++]=l&255;for(var S=0;S<6;++S)o[r+S]=a[S];return t||A8(o)}M4.exports=R8});var L4=Y((_9,I4)=>{A();var M8=w0(),P8=E0();function I8(i,t,n){var r=t&&n||0;typeof i=="string"&&(t=i==="binary"?new Array(16):null,i=null),i=i||{};var o=i.random||(i.rng||M8)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var a=0;a<16;++a)t[r+a]=o[a];return t||P8(o)}I4.exports=I8});var T0=Y((T9,k4)=>{A();var L8=P4(),B4=L4(),_0=B4;_0.v1=L8;_0.v4=B4;k4.exports=_0});var j4=Y(Ws=>{A();"use strict";var A0;Object.defineProperty(Ws,"__esModule",{value:!0});Ws.MediaOverlayNode=Ws.timeStrToSeconds=void 0;var Li=Yr(),io=Rn(),k8=_s();function N8(i){if(!i)return 0;i=i.replace("npt=","");let t=0,n=0,r=0;try{let o=i.indexOf("min");if(o>0){let a=i.substr(0,o);n=parseFloat(a)}else{let a=i.indexOf("ms");if(a>0){let l=i.substr(0,a);r=parseFloat(l)/1e3}else{let l=i.indexOf("s");if(l>0){let u=i.substr(0,l);r=parseFloat(u)}else{let u=i.indexOf("h");if(u>0){let d=i.substr(0,u);t=parseFloat(d)}else{let d=i.split(":");d.length===1?r=parseFloat(d[0]):d.length===2?(n=parseFloat(d[0]),r=parseFloat(d[1])):d.length===3?(t=parseFloat(d[0]),n=parseFloat(d[1]),r=parseFloat(d[2])):(console.log("SMIL TIME CLOCK SYNTAX PARSING ERROR ??"),console.log(i))}}}}}catch(o){return console.log(o),console.log("SMIL TIME CLOCK SYNTAX PARSING ERROR!"),console.log(i),0}return t*3600+n*60+r}Ws.timeStrToSeconds=N8;var Uo=A0=class{constructor(){this.initialized=!1}};Li.__decorate([(0,io.JsonProperty)("text"),Li.__metadata("design:type",String)],Uo.prototype,"Text",void 0);Li.__decorate([(0,io.JsonProperty)("audio"),Li.__metadata("design:type",String)],Uo.prototype,"Audio",void 0);Li.__decorate([(0,io.JsonProperty)("role"),(0,io.JsonConverter)(k8.JsonStringConverter),(0,io.JsonElementType)(String),Li.__metadata("design:type",Array)],Uo.prototype,"Role",void 0);Li.__decorate([(0,io.JsonProperty)("narration"),(0,io.JsonElementType)(A0),Li.__metadata("design:type",Array)],Uo.prototype,"Children",void 0);Uo=A0=Li.__decorate([(0,io.JsonObject)()],Uo);Ws.MediaOverlayNode=Uo});var U4=Y(h=>{A();"use strict";var e;h.browser=Object.create(null);e=Object.create(null);e[0]=new RegExp("(Rival IQ, rivaliq.com)");e[1]="Rival IQ";e[2]=0;e[3]=0;e[4]=0;h.browser[0]=e;e=Object.create(null);e[0]=new RegExp("(ESPN)[%20| ]+Radio/(\\d+)\\.(\\d+)\\.(\\d+) CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[1]=e;e=Object.create(null);e[0]=new RegExp("(Antenna)/(\\d+) CFNetwork");e[1]="AntennaPod";e[2]=0;e[3]=0;e[4]=0;h.browser[2]=e;e=Object.create(null);e[0]=new RegExp("(TopPodcasts)Pro/(\\d+) CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[3]=e;e=Object.create(null);e[0]=new RegExp("(MusicDownloader)Lite/(\\d+)\\.(\\d+)\\.(\\d+) CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[4]=e;e=Object.create(null);e[0]=new RegExp("^(.*)-iPad/(\\d+)\\.?(\\d+)?.?(\\d+)?.?(\\d+)? CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[5]=e;e=Object.create(null);e[0]=new RegExp("^(.*)-iPhone/(\\d+)\\.?(\\d+)?.?(\\d+)?.?(\\d+)? CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[6]=e;e=Object.create(null);e[0]=new RegExp("^(.*)/(\\d+)\\.?(\\d+)?.?(\\d+)?.?(\\d+)? CFNetwork");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[7]=e;e=Object.create(null);e[0]=new RegExp("(espn\\.go)");e[1]="ESPN";e[2]=0;e[3]=0;e[4]=0;h.browser[8]=e;e=Object.create(null);e[0]=new RegExp("(espnradio\\.com)");e[1]="ESPN";e[2]=0;e[3]=0;e[4]=0;h.browser[9]=e;e=Object.create(null);e[0]=new RegExp("ESPN APP$");e[1]="ESPN";e[2]=0;e[3]=0;e[4]=0;h.browser[10]=e;e=Object.create(null);e[0]=new RegExp("(audioboom\\.com)");e[1]="AudioBoom";e[2]=0;e[3]=0;e[4]=0;h.browser[11]=e;e=Object.create(null);e[0]=new RegExp(" (Rivo) RHYTHM");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[12]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)(?:/(\\d+)\\.(\\d+)\\.?(\\d+)?)?");e[1]="CFNetwork";e[2]=0;e[3]=0;e[4]=0;h.browser[13]=e;e=Object.create(null);e[0]=new RegExp("(Pingdom.com_bot_version_)(\\d+)\\.(\\d+)");e[1]="PingdomBot";e[2]=0;e[3]=0;e[4]=0;h.browser[14]=e;e=Object.create(null);e[0]=new RegExp("(PingdomTMS)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="PingdomBot";e[2]=0;e[3]=0;e[4]=0;h.browser[15]=e;e=Object.create(null);e[0]=new RegExp("(NewRelicPinger)/(\\d+)\\.(\\d+)");e[1]="NewRelicPingerBot";e[2]=0;e[3]=0;e[4]=0;h.browser[16]=e;e=Object.create(null);e[0]=new RegExp("(\\(StatusCake\\))");e[1]="StatusCakeBot";e[2]=0;e[3]=0;e[4]=0;h.browser[17]=e;e=Object.create(null);e[0]=new RegExp("(facebookexternalhit)/(\\d+)\\.(\\d+)");e[1]="FacebookBot";e[2]=0;e[3]=0;e[4]=0;h.browser[18]=e;e=Object.create(null);e[0]=new RegExp("Google.*/\\+/web/snippet");e[1]="GooglePlusBot";e[2]=0;e[3]=0;e[4]=0;h.browser[19]=e;e=Object.create(null);e[0]=new RegExp("via ggpht.com GoogleImageProxy");e[1]="GmailImageProxy";e[2]=0;e[3]=0;e[4]=0;h.browser[20]=e;e=Object.create(null);e[0]=new RegExp("(Twitterbot)/(\\d+)\\.(\\d+)");e[1]="TwitterBot";e[2]=0;e[3]=0;e[4]=0;h.browser[21]=e;e=Object.create(null);e[0]=new RegExp("/((?:Ant-)?Nutch|[A-z]+[Bb]ot|[A-z]+[Ss]pider|Axtaris|fetchurl|Isara|ShopSalad|Tailsweep)[ \\-](\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[22]=e;e=Object.create(null);e[0]=new RegExp("\\b(008|Altresium|Argus|BaiduMobaider|BoardReader|DNSGroup|DataparkSearch|EDI|Goodzer|Grub|INGRID|Infohelfer|LinkedInBot|LOOQ|Nutch|PathDefender|Peew|PostPost|Steeler|Twitterbot|VSE|WebCrunch|WebZIP|Y!J-BR[A-Z]|YahooSeeker|envolk|sproose|wminer)/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[23]=e;e=Object.create(null);e[0]=new RegExp("(MSIE) (\\d+)\\.(\\d+)([a-z]\\d?)?;.* MSIECrawler");e[1]="MSIECrawler";e[2]=0;e[3]=0;e[4]=0;h.browser[24]=e;e=Object.create(null);e[0]=new RegExp("(DAVdroid)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[25]=e;e=Object.create(null);e[0]=new RegExp("(Google-HTTP-Java-Client|Apache-HttpClient|http%20client|Python-urllib|HttpMonitor|TLSProber|WinHTTP|JNLP|okhttp)(?:[ /](\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[26]=e;e=Object.create(null);e[0]=new RegExp("(Pinterest(?:bot)?)/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?[;\\s\\(]+\\+https://www.pinterest.com/bot.html");e[1]="Pinterestbot";e[2]=0;e[3]=0;e[4]=0;h.browser[27]=e;e=Object.create(null);e[0]=new RegExp("(1470\\.net crawler|50\\.nu|8bo Crawler Bot|Aboundex|Accoona-[A-z]+-Agent|AdsBot-Google(?:-[a-z]+)?|altavista|AppEngine-Google|archive.*?\\.org_bot|archiver|Ask Jeeves|[Bb]ai[Dd]u[Ss]pider(?:-[A-Za-z]+)*|bingbot|BingPreview|blitzbot|BlogBridge|Bloglovin|BoardReader(?: [A-Za-z]+)*|boitho.com-dc|BotSeer|\\b\\w*favicon\\w*\\b|\\bYeti(?:-[a-z]+)?|Catchpoint(?: bot)?|[Cc]harlotte|Checklinks|clumboot|Comodo HTTP\\(S\\) Crawler|Comodo-Webinspector-Crawler|ConveraCrawler|CRAWL-E|CrawlConvera|Daumoa(?:-feedfetcher)?|Feed Seeker Bot|Feedbin|findlinks|Flamingo_SearchEngine|FollowSite Bot|furlbot|Genieo|gigabot|GomezAgent|gonzo1|(?:[a-zA-Z]+-)?Googlebot(?:-[a-zA-Z]+)?|Google SketchUp|grub-client|gsa-crawler|heritrix|HiddenMarket|holmes|HooWWWer|htdig|ia_archiver|ICC-Crawler|Icarus6j|ichiro(?:/mobile)?|IconSurf|IlTrovatore(?:-Setaccio)?|InfuzApp|Innovazion Crawler|InternetArchive|IP2[a-z]+Bot|jbot\\b|KaloogaBot|Kraken|Kurzor|larbin|LEIA|LesnikBot|Linguee Bot|LinkAider|LinkedInBot|Lite Bot|Llaut|lycos|Mail\\.RU_Bot|masscan|masidani_bot|Mediapartners-Google|Microsoft .*? Bot|mogimogi|mozDex|MJ12bot|msnbot(?:-media *)?|msrbot|Mtps Feed Aggregation System|netresearch|Netvibes|NewsGator[^/]*|^NING|Nutch[^/]*|Nymesis|ObjectsSearch|Orbiter|OOZBOT|PagePeeker|PagesInventory|PaxleFramework|Peeplo Screenshot Bot|PlantyNet_WebRobot|Pompos|Qwantify|Read%20Later|Reaper|RedCarpet|Retreiver|Riddler|Rival IQ|scooter|Scrapy|Scrubby|searchsight|seekbot|semanticdiscovery|Simpy|SimplePie|SEOstats|SimpleRSS|SiteCon|Slackbot-LinkExpanding|Slack-ImgProxy|Slurp|snappy|Speedy Spider|Squrl Java|Stringer|TheUsefulbot|ThumbShotsBot|Thumbshots\\.ru|Tiny Tiny RSS|TwitterBot|WhatsApp|URL2PNG|Vagabondo|VoilaBot|^vortex|Votay bot|^voyager|WASALive.Bot|Web-sniffer|WebThumb|WeSEE:[A-z]+|WhatWeb|WIRE|WordPress|Wotbox|www\\.almaden\\.ibm\\.com|Xenu(?:.s)? Link Sleuth|Xerka [A-z]+Bot|yacy(?:bot)?|Yahoo[a-z]*Seeker|Yahoo! Slurp|Yandex\\w+|YodaoBot(?:-[A-z]+)?|YottaaMonitor|Yowedo|^Zao|^Zao-Crawler|ZeBot_www\\.ze\\.bz|ZooShot|ZyBorg)(?:[ /]v?(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[28]=e;e=Object.create(null);e[0]=new RegExp("(?:\\/[A-Za-z0-9\\.]+)? *([A-Za-z0-9 \\-_\\!\\[\\]:]*(?:[Aa]rchiver|[Ii]ndexer|[Ss]craper|[Bb]ot|[Ss]pider|[Cc]rawl[a-z]*))/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[29]=e;e=Object.create(null);e[0]=new RegExp("(?:\\/[A-Za-z0-9\\.]+)? *([A-Za-z0-9 _\\!\\[\\]:]*(?:[Aa]rchiver|[Ii]ndexer|[Ss]craper|[Bb]ot|[Ss]pider|[Cc]rawl[a-z]*)) (\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[30]=e;e=Object.create(null);e[0]=new RegExp("((?:[A-z0-9]+|[A-z\\-]+ ?)?(?: the )?(?:[Ss][Pp][Ii][Dd][Ee][Rr]|[Ss]crape|[A-Za-z0-9-]*(?:[^C][^Uu])[Bb]ot|[Cc][Rr][Aa][Ww][Ll])[A-z0-9]*)(?:(?:[ /]| v)(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[31]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/(\\d+)\\.(\\d+)\\.(\\d+) \\(");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[32]=e;e=Object.create(null);e[0]=new RegExp("(Chimera|SeaMonkey|Camino)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+[a-z]*)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[33]=e;e=Object.create(null);e[0]=new RegExp("\\[FB.*;(FBAV)/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]="Facebook";e[2]=0;e[3]=0;e[4]=0;h.browser[34]=e;e=Object.create(null);e[0]=new RegExp("\\[(Pinterest)/[^\\]]+\\]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[35]=e;e=Object.create(null);e[0]=new RegExp("(Pinterest)(?: for Android(?: Tablet)?)?/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[36]=e;e=Object.create(null);e[0]=new RegExp("(PaleMoon)/(\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]="Pale Moon";e[2]=0;e[3]=0;e[4]=0;h.browser[37]=e;e=Object.create(null);e[0]=new RegExp("(Fennec)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+[a-z]*)");e[1]="Firefox Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[38]=e;e=Object.create(null);e[0]=new RegExp("(Fennec)/(\\d+)\\.(\\d+)(pre)");e[1]="Firefox Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[39]=e;e=Object.create(null);e[0]=new RegExp("(Fennec)/(\\d+)\\.(\\d+)");e[1]="Firefox Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[40]=e;e=Object.create(null);e[0]=new RegExp("(?:Mobile|Tablet);.*(Firefox)/(\\d+)\\.(\\d+)");e[1]="Firefox Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[41]=e;e=Object.create(null);e[0]=new RegExp("(Namoroka|Shiretoko|Minefield)/(\\d+)\\.(\\d+)\\.(\\d+(?:pre)?)");e[1]="Firefox ($1)";e[2]=0;e[3]=0;e[4]=0;h.browser[42]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)(a\\d+[a-z]*)");e[1]="Firefox Alpha";e[2]=0;e[3]=0;e[4]=0;h.browser[43]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)(b\\d+[a-z]*)");e[1]="Firefox Beta";e[2]=0;e[3]=0;e[4]=0;h.browser[44]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)-(?:\\d+\\.\\d+)?/(\\d+)\\.(\\d+)(a\\d+[a-z]*)");e[1]="Firefox Alpha";e[2]=0;e[3]=0;e[4]=0;h.browser[45]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)-(?:\\d+\\.\\d+)?/(\\d+)\\.(\\d+)(b\\d+[a-z]*)");e[1]="Firefox Beta";e[2]=0;e[3]=0;e[4]=0;h.browser[46]=e;e=Object.create(null);e[0]=new RegExp("(Namoroka|Shiretoko|Minefield)/(\\d+)\\.(\\d+)([ab]\\d+[a-z]*)?");e[1]="Firefox ($1)";e[2]=0;e[3]=0;e[4]=0;h.browser[47]=e;e=Object.create(null);e[0]=new RegExp("(Firefox).*Tablet browser (\\d+)\\.(\\d+)\\.(\\d+)");e[1]="MicroB";e[2]=0;e[3]=0;e[4]=0;h.browser[48]=e;e=Object.create(null);e[0]=new RegExp("(MozillaDeveloperPreview)/(\\d+)\\.(\\d+)([ab]\\d+[a-z]*)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[49]=e;e=Object.create(null);e[0]=new RegExp("(FxiOS)/(\\d+)\\.(\\d+)(\\.(\\d+))?(\\.(\\d+))?");e[1]="Firefox iOS";e[2]=0;e[3]=0;e[4]=0;h.browser[50]=e;e=Object.create(null);e[0]=new RegExp("(Flock)/(\\d+)\\.(\\d+)(b\\d+?)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[51]=e;e=Object.create(null);e[0]=new RegExp("(RockMelt)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[52]=e;e=Object.create(null);e[0]=new RegExp("(Navigator)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Netscape";e[2]=0;e[3]=0;e[4]=0;h.browser[53]=e;e=Object.create(null);e[0]=new RegExp("(Navigator)/(\\d+)\\.(\\d+)([ab]\\d+)");e[1]="Netscape";e[2]=0;e[3]=0;e[4]=0;h.browser[54]=e;e=Object.create(null);e[0]=new RegExp("(Netscape6)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+)?");e[1]="Netscape";e[2]=0;e[3]=0;e[4]=0;h.browser[55]=e;e=Object.create(null);e[0]=new RegExp("(MyIBrow)/(\\d+)\\.(\\d+)");e[1]="My Internet Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[56]=e;e=Object.create(null);e[0]=new RegExp("(UC? ?Browser|UCWEB|U3)[ /]?(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="UC Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[57]=e;e=Object.create(null);e[0]=new RegExp("(Opera Tablet).*Version/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[58]=e;e=Object.create(null);e[0]=new RegExp("(Opera Mini)(?:/att)?/?(\\d+)?(?:\\.(\\d+))?(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[59]=e;e=Object.create(null);e[0]=new RegExp("(Opera)/.+Opera Mobi.+Version/(\\d+)\\.(\\d+)");e[1]="Opera Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[60]=e;e=Object.create(null);e[0]=new RegExp("(Opera)/(\\d+)\\.(\\d+).+Opera Mobi");e[1]="Opera Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[61]=e;e=Object.create(null);e[0]=new RegExp("Opera Mobi.+(Opera)(?:/|\\s+)(\\d+)\\.(\\d+)");e[1]="Opera Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[62]=e;e=Object.create(null);e[0]=new RegExp("Opera Mobi");e[1]="Opera Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[63]=e;e=Object.create(null);e[0]=new RegExp("(Opera)/9.80.*Version/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[64]=e;e=Object.create(null);e[0]=new RegExp("(?:Mobile Safari).*(OPR)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Opera Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[65]=e;e=Object.create(null);e[0]=new RegExp("(?:Chrome).*(OPR)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Opera";e[2]=0;e[3]=0;e[4]=0;h.browser[66]=e;e=Object.create(null);e[0]=new RegExp("(Coast)/(\\d+).(\\d+).(\\d+)");e[1]="Opera Coast";e[2]=0;e[3]=0;e[4]=0;h.browser[67]=e;e=Object.create(null);e[0]=new RegExp("(OPiOS)/(\\d+).(\\d+).(\\d+)");e[1]="Opera Mini";e[2]=0;e[3]=0;e[4]=0;h.browser[68]=e;e=Object.create(null);e[0]=new RegExp("Chrome/.+( MMS)/(\\d+).(\\d+).(\\d+)");e[1]="Opera Neon";e[2]=0;e[3]=0;e[4]=0;h.browser[69]=e;e=Object.create(null);e[0]=new RegExp("(hpw|web)OS/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="webOS Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[70]=e;e=Object.create(null);e[0]=new RegExp("(luakit)");e[1]="LuaKit";e[2]=0;e[3]=0;e[4]=0;h.browser[71]=e;e=Object.create(null);e[0]=new RegExp("(Snowshoe)/(\\d+)\\.(\\d+).(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[72]=e;e=Object.create(null);e[0]=new RegExp("Gecko/\\d+ (Lightning)/(\\d+)\\.(\\d+)\\.?((?:[ab]?\\d+[a-z]*)|(?:\\d*))");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[73]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)\\.(\\d+(?:pre)?) \\(Swiftfox\\)");e[1]="Swiftfox";e[2]=0;e[3]=0;e[4]=0;h.browser[74]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)([ab]\\d+[a-z]*)? \\(Swiftfox\\)");e[1]="Swiftfox";e[2]=0;e[3]=0;e[4]=0;h.browser[75]=e;e=Object.create(null);e[0]=new RegExp("(rekonq)/(\\d+)\\.(\\d+)\\.?(\\d+)? Safari");e[1]="Rekonq";e[2]=0;e[3]=0;e[4]=0;h.browser[76]=e;e=Object.create(null);e[0]=new RegExp("rekonq");e[1]="Rekonq";e[2]=0;e[3]=0;e[4]=0;h.browser[77]=e;e=Object.create(null);e[0]=new RegExp("(conkeror|Conkeror)/(\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]="Conkeror";e[2]=0;e[3]=0;e[4]=0;h.browser[78]=e;e=Object.create(null);e[0]=new RegExp("(konqueror)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Konqueror";e[2]=0;e[3]=0;e[4]=0;h.browser[79]=e;e=Object.create(null);e[0]=new RegExp("(WeTab)-Browser");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[80]=e;e=Object.create(null);e[0]=new RegExp("(Comodo_Dragon)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Comodo Dragon";e[2]=0;e[3]=0;e[4]=0;h.browser[81]=e;e=Object.create(null);e[0]=new RegExp("(Symphony) (\\d+).(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[82]=e;e=Object.create(null);e[0]=new RegExp("PLAYSTATION 3.+WebKit");e[1]="NetFront NX";e[2]=0;e[3]=0;e[4]=0;h.browser[83]=e;e=Object.create(null);e[0]=new RegExp("PLAYSTATION 3");e[1]="NetFront";e[2]=0;e[3]=0;e[4]=0;h.browser[84]=e;e=Object.create(null);e[0]=new RegExp("(PlayStation Portable)");e[1]="NetFront";e[2]=0;e[3]=0;e[4]=0;h.browser[85]=e;e=Object.create(null);e[0]=new RegExp("(PlayStation Vita)");e[1]="NetFront NX";e[2]=0;e[3]=0;e[4]=0;h.browser[86]=e;e=Object.create(null);e[0]=new RegExp("AppleWebKit.+ (NX)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="NetFront NX";e[2]=0;e[3]=0;e[4]=0;h.browser[87]=e;e=Object.create(null);e[0]=new RegExp("(Nintendo 3DS)");e[1]="NetFront NX";e[2]=0;e[3]=0;e[4]=0;h.browser[88]=e;e=Object.create(null);e[0]=new RegExp("(Silk)/(\\d+)\\.(\\d+)(?:\\.([0-9\\-]+))?");e[1]="Amazon Silk";e[2]=0;e[3]=0;e[4]=0;h.browser[89]=e;e=Object.create(null);e[0]=new RegExp("(Puffin)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[90]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone .*(Edge)/(\\d+)\\.(\\d+)");e[1]="Edge Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[91]=e;e=Object.create(null);e[0]=new RegExp("(SamsungBrowser)/(\\d+)\\.(\\d+)");e[1]="Samsung Internet";e[2]=0;e[3]=0;e[4]=0;h.browser[92]=e;e=Object.create(null);e[0]=new RegExp("(SznProhlizec)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Seznam.cz";e[2]=0;e[3]=0;e[4]=0;h.browser[93]=e;e=Object.create(null);e[0]=new RegExp("(coc_coc_browser)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Coc Coc";e[2]=0;e[3]=0;e[4]=0;h.browser[94]=e;e=Object.create(null);e[0]=new RegExp("(baidubrowser)[/\\s](\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]="Baidu Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[95]=e;e=Object.create(null);e[0]=new RegExp("(FlyFlow)/(\\d+)\\.(\\d+)");e[1]="Baidu Explorer";e[2]=0;e[3]=0;e[4]=0;h.browser[96]=e;e=Object.create(null);e[0]=new RegExp("(MxBrowser)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Maxthon";e[2]=0;e[3]=0;e[4]=0;h.browser[97]=e;e=Object.create(null);e[0]=new RegExp("(Crosswalk)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[98]=e;e=Object.create(null);e[0]=new RegExp("; wv\\).+(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Chrome Mobile WebView";e[2]=0;e[3]=0;e[4]=0;h.browser[99]=e;e=Object.create(null);e[0]=new RegExp("(CrMo)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Chrome Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[100]=e;e=Object.create(null);e[0]=new RegExp("(CriOS)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Chrome Mobile iOS";e[2]=0;e[3]=0;e[4]=0;h.browser[101]=e;e=Object.create(null);e[0]=new RegExp("(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+) Mobile(?:[ /]|$)");e[1]="Chrome Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[102]=e;e=Object.create(null);e[0]=new RegExp(" Mobile .*(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Chrome Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[103]=e;e=Object.create(null);e[0]=new RegExp("(chromeframe)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Chrome Frame";e[2]=0;e[3]=0;e[4]=0;h.browser[104]=e;e=Object.create(null);e[0]=new RegExp("(SLP Browser)/(\\d+)\\.(\\d+)");e[1]="Tizen Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[105]=e;e=Object.create(null);e[0]=new RegExp("(SE 2\\.X) MetaSr (\\d+)\\.(\\d+)");e[1]="Sogou Explorer";e[2]=0;e[3]=0;e[4]=0;h.browser[106]=e;e=Object.create(null);e[0]=new RegExp("(MQQBrowser/Mini)(?:(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]="QQ Browser Mini";e[2]=0;e[3]=0;e[4]=0;h.browser[107]=e;e=Object.create(null);e[0]=new RegExp("(MQQBrowser)(?:/(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]="QQ Browser Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[108]=e;e=Object.create(null);e[0]=new RegExp("(QQBrowser)(?:/(\\d+)(?:\\.(\\d+)\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]="QQ Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[109]=e;e=Object.create(null);e[0]=new RegExp("(Rackspace Monitoring)/(\\d+)\\.(\\d+)");e[1]="RackspaceBot";e[2]=0;e[3]=0;e[4]=0;h.browser[110]=e;e=Object.create(null);e[0]=new RegExp("(PyAMF)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[111]=e;e=Object.create(null);e[0]=new RegExp("(YaBrowser)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Yandex Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[112]=e;e=Object.create(null);e[0]=new RegExp("(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+).* MRCHROME");e[1]="Mail.ru Chromium Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[113]=e;e=Object.create(null);e[0]=new RegExp("(AOL) (\\d+)\\.(\\d+); AOLBuild (\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[114]=e;e=Object.create(null);e[0]=new RegExp("(PodCruncher|Downcast)[ /]?(\\d+)\\.?(\\d+)?\\.?(\\d+)?\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[115]=e;e=Object.create(null);e[0]=new RegExp(" (BoxNotes)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[116]=e;e=Object.create(null);e[0]=new RegExp("(Slack_SSB)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Slack Desktop Client";e[2]=0;e[3]=0;e[4]=0;h.browser[117]=e;e=Object.create(null);e[0]=new RegExp("(HipChat)/?(\\d+)?");e[1]="HipChat Desktop Client";e[2]=0;e[3]=0;e[4]=0;h.browser[118]=e;e=Object.create(null);e[0]=new RegExp("\\b(MobileIron|FireWeb|Jasmine|ANTGalio|Midori|Fresco|Lobo|PaleMoon|Maxthon|Lynx|OmniWeb|Dillo|Camino|Demeter|Fluid|Fennec|Epiphany|Shiira|Sunrise|Spotify|Flock|Netscape|Lunascape|WebPilot|NetFront|Netfront|Konqueror|SeaMonkey|Kazehakase|Vienna|Iceape|Iceweasel|IceWeasel|Iron|K-Meleon|Sleipnir|Galeon|GranParadiso|Opera Mini|iCab|NetNewsWire|ThunderBrowse|Iris|UP\\.Browser|Bunjalloo|Google Earth|Raven for Mac|Openwave|MacOutlook|Electron)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[119]=e;e=Object.create(null);e[0]=new RegExp("Microsoft Office Outlook 12\\.\\d+\\.\\d+|MSOffice 12");e[1]="Outlook";e[2]="2007";e[3]=0;e[4]=0;h.browser[120]=e;e=Object.create(null);e[0]=new RegExp("Microsoft Outlook 14\\.\\d+\\.\\d+|MSOffice 14");e[1]="Outlook";e[2]="2010";e[3]=0;e[4]=0;h.browser[121]=e;e=Object.create(null);e[0]=new RegExp("Microsoft Outlook 15\\.\\d+\\.\\d+");e[1]="Outlook";e[2]="2013";e[3]=0;e[4]=0;h.browser[122]=e;e=Object.create(null);e[0]=new RegExp("Microsoft Outlook (?:Mail )?16\\.\\d+\\.\\d+");e[1]="Outlook";e[2]="2016";e[3]=0;e[4]=0;h.browser[123]=e;e=Object.create(null);e[0]=new RegExp("Outlook-Express\\/7\\.0.*");e[1]="Windows Live Mail";e[2]=0;e[3]=0;e[4]=0;h.browser[124]=e;e=Object.create(null);e[0]=new RegExp("(Airmail) (\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[125]=e;e=Object.create(null);e[0]=new RegExp("(Thunderbird)/(\\d+)\\.(\\d+)(?:\\.(\\d+(?:pre)?))?");e[1]="Thunderbird";e[2]=0;e[3]=0;e[4]=0;h.browser[126]=e;e=Object.create(null);e[0]=new RegExp("(Postbox)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Postbox";e[2]=0;e[3]=0;e[4]=0;h.browser[127]=e;e=Object.create(null);e[0]=new RegExp("(Barca(?:Pro)?)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Barca";e[2]=0;e[3]=0;e[4]=0;h.browser[128]=e;e=Object.create(null);e[0]=new RegExp("(Lotus-Notes)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Lotus Notes";e[2]=0;e[3]=0;e[4]=0;h.browser[129]=e;e=Object.create(null);e[0]=new RegExp("(Vivaldi)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[130]=e;e=Object.create(null);e[0]=new RegExp("(Edge)/(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[131]=e;e=Object.create(null);e[0]=new RegExp("(brave)/(\\d+)\\.(\\d+)\\.(\\d+) Chrome");e[1]="Brave";e[2]=0;e[3]=0;e[4]=0;h.browser[132]=e;e=Object.create(null);e[0]=new RegExp("(Chrome)/(\\d+)\\.(\\d+)\\.(\\d+)[\\d.]* Iron[^/]");e[1]="Iron";e[2]=0;e[3]=0;e[4]=0;h.browser[133]=e;e=Object.create(null);e[0]=new RegExp("\\b(Dolphin)(?: |HDCN/|/INT\\-)(\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[134]=e;e=Object.create(null);e[0]=new RegExp("(HeadlessChrome)(?:/(\\d+)\\.(\\d+)\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[135]=e;e=Object.create(null);e[0]=new RegExp("(Evolution)/(\\d+)\\.(\\d+)\\.(\\d+\\.\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[136]=e;e=Object.create(null);e[0]=new RegExp("(RCM CardDAV plugin)/(\\d+)\\.(\\d+)\\.(\\d+(?:-dev)?)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[137]=e;e=Object.create(null);e[0]=new RegExp("(bingbot|Bolt|AdobeAIR|Jasmine|IceCat|Skyfire|Midori|Maxthon|Lynx|Arora|IBrowse|Dillo|Camino|Shiira|Fennec|Phoenix|Flock|Netscape|Lunascape|Epiphany|WebPilot|Opera Mini|Opera|NetFront|Netfront|Konqueror|Googlebot|SeaMonkey|Kazehakase|Vienna|Iceape|Iceweasel|IceWeasel|Iron|K-Meleon|Sleipnir|Galeon|GranParadiso|iCab|iTunes|MacAppStore|NetNewsWire|Space Bison|Stainless|Orca|Dolfin|BOLT|Minimo|Tizen Browser|Polaris|Abrowser|Planetweb|ICE Browser|mDolphin|qutebrowser|Otter|QupZilla|MailBar|kmail2|YahooMobileMail|ExchangeWebServices|ExchangeServicesClient|Dragon|Outlook-iOS-Android)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[138]=e;e=Object.create(null);e[0]=new RegExp("(Chromium|Chrome)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[139]=e;e=Object.create(null);e[0]=new RegExp("(IEMobile)[ /](\\d+)\\.(\\d+)");e[1]="IE Mobile";e[2]=0;e[3]=0;e[4]=0;h.browser[140]=e;e=Object.create(null);e[0]=new RegExp("(BacaBerita App)\\/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[141]=e;e=Object.create(null);e[0]=new RegExp("^(bPod|Pocket Casts|Player FM)$");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[142]=e;e=Object.create(null);e[0]=new RegExp("^(AlexaMediaPlayer|VLC)/(\\d+)\\.(\\d+)\\.([^.\\s]+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[143]=e;e=Object.create(null);e[0]=new RegExp("^(AntennaPod|WMPlayer|Zune|Podkicker|Radio|ExoPlayerDemo|Overcast|PocketTunes|NSPlayer|okhttp|DoggCatcher|QuickNews|QuickTime|Peapod|Podcasts|GoldenPod|VLC|Spotify|Miro|MediaGo|Juice|iPodder|gPodder|Banshee)/(\\d+)\\.(\\d+)\\.?(\\d+)?\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[144]=e;e=Object.create(null);e[0]=new RegExp("^(Peapod|Liferea)/([^.\\s]+)\\.([^.\\s]+)?\\.?([^.\\s]+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[145]=e;e=Object.create(null);e[0]=new RegExp("^(bPod|Player FM) BMID/(\\S+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[146]=e;e=Object.create(null);e[0]=new RegExp("^(Podcast ?Addict)/v(\\d+) ");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[147]=e;e=Object.create(null);e[0]=new RegExp("^(Podcast ?Addict) ");e[1]="PodcastAddict";e[2]=0;e[3]=0;e[4]=0;h.browser[148]=e;e=Object.create(null);e[0]=new RegExp("(Replay) AV");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[149]=e;e=Object.create(null);e[0]=new RegExp("(VOX) Music Player");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[150]=e;e=Object.create(null);e[0]=new RegExp("(CITA) RSS Aggregator/(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[151]=e;e=Object.create(null);e[0]=new RegExp("(Pocket Casts)$");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[152]=e;e=Object.create(null);e[0]=new RegExp("(Player FM)$");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[153]=e;e=Object.create(null);e[0]=new RegExp("(LG Player|Doppler|FancyMusic|MediaMonkey|Clementine) (\\d+)\\.(\\d+)\\.?([^.\\s]+)?\\.?([^.\\s]+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[154]=e;e=Object.create(null);e[0]=new RegExp("(philpodder)/(\\d+)\\.(\\d+)\\.?([^.\\s]+)?\\.?([^.\\s]+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[155]=e;e=Object.create(null);e[0]=new RegExp("(Player FM|Pocket Casts|DoggCatcher|Spotify|MediaMonkey|MediaGo|BashPodder)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[156]=e;e=Object.create(null);e[0]=new RegExp("(QuickTime)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[157]=e;e=Object.create(null);e[0]=new RegExp("(Kinoma)(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[158]=e;e=Object.create(null);e[0]=new RegExp("(Fancy) Cloud Music (\\d+)\\.(\\d+)");e[1]="FancyMusic";e[2]=0;e[3]=0;e[4]=0;h.browser[159]=e;e=Object.create(null);e[0]=new RegExp("EspnDownloadManager");e[1]="ESPN";e[2]=0;e[3]=0;e[4]=0;h.browser[160]=e;e=Object.create(null);e[0]=new RegExp("(ESPN) Radio (\\d+)\\.(\\d+)\\.?(\\d+)? ?[rv:]?(\\d+)? ");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[161]=e;e=Object.create(null);e[0]=new RegExp("(podracer|jPodder) v ?(\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[162]=e;e=Object.create(null);e[0]=new RegExp("(ZDM)/(\\d+)\\.(\\d+)[; ]?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[163]=e;e=Object.create(null);e[0]=new RegExp("(Zune|BeyondPod) (\\d+)\\.?(\\d+)?[\\);]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[164]=e;e=Object.create(null);e[0]=new RegExp("(WMPlayer)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[165]=e;e=Object.create(null);e[0]=new RegExp("^(Lavf)");e[1]="WMPlayer";e[2]=0;e[3]=0;e[4]=0;h.browser[166]=e;e=Object.create(null);e[0]=new RegExp("^(RSSRadio)[ /]?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[167]=e;e=Object.create(null);e[0]=new RegExp("(RSS_Radio) (\\d+)\\.(\\d+)");e[1]="RSSRadio";e[2]=0;e[3]=0;e[4]=0;h.browser[168]=e;e=Object.create(null);e[0]=new RegExp("(Podkicker) \\S+/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Podkicker";e[2]=0;e[3]=0;e[4]=0;h.browser[169]=e;e=Object.create(null);e[0]=new RegExp("^(HTC) Streaming Player \\S+ / \\S+ / \\S+ / (\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[170]=e;e=Object.create(null);e[0]=new RegExp("^(Stitcher)/iOS");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[171]=e;e=Object.create(null);e[0]=new RegExp("^(Stitcher)/Android");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[172]=e;e=Object.create(null);e[0]=new RegExp("^(VLC) .*version (\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[173]=e;e=Object.create(null);e[0]=new RegExp(" (VLC) for");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[174]=e;e=Object.create(null);e[0]=new RegExp("(vlc)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="VLC";e[2]=0;e[3]=0;e[4]=0;h.browser[175]=e;e=Object.create(null);e[0]=new RegExp("^(foobar)\\S+/([^.\\s]+)\\.([^.\\s]+)?\\.?([^.\\s]+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[176]=e;e=Object.create(null);e[0]=new RegExp("^(Clementine)\\S+ ([^.\\s]+)\\.([^.\\s]+)?\\.?([^.\\s]+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[177]=e;e=Object.create(null);e[0]=new RegExp("(amarok)/([^.\\s]+)\\.([^.\\s]+)?\\.?([^.\\s]+)?");e[1]="Amarok";e[2]=0;e[3]=0;e[4]=0;h.browser[178]=e;e=Object.create(null);e[0]=new RegExp("(Custom)-Feed Reader");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[179]=e;e=Object.create(null);e[0]=new RegExp("(iRider|Crazy Browser|SkipStone|iCab|Lunascape|Sleipnir|Maemo Browser) (\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[180]=e;e=Object.create(null);e[0]=new RegExp("(iCab|Lunascape|Opera|Android|Jasmine|Polaris|Microsoft SkyDriveSync|The Bat!) (\\d+)\\.(\\d+)\\.?(\\d+)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[181]=e;e=Object.create(null);e[0]=new RegExp("(Kindle)/(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[182]=e;e=Object.create(null);e[0]=new RegExp("(Android) Donut");e[1]=0;e[2]="1";e[3]="2";e[4]=0;h.browser[183]=e;e=Object.create(null);e[0]=new RegExp("(Android) Eclair");e[1]=0;e[2]="2";e[3]="1";e[4]=0;h.browser[184]=e;e=Object.create(null);e[0]=new RegExp("(Android) Froyo");e[1]=0;e[2]="2";e[3]="2";e[4]=0;h.browser[185]=e;e=Object.create(null);e[0]=new RegExp("(Android) Gingerbread");e[1]=0;e[2]="2";e[3]="3";e[4]=0;h.browser[186]=e;e=Object.create(null);e[0]=new RegExp("(Android) Honeycomb");e[1]=0;e[2]="3";e[3]=0;e[4]=0;h.browser[187]=e;e=Object.create(null);e[0]=new RegExp("(MSIE) (\\d+)\\.(\\d+).*XBLWP7");e[1]="IE Large Screen";e[2]=0;e[3]=0;e[4]=0;h.browser[188]=e;e=Object.create(null);e[0]=new RegExp("(Nextcloud)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[189]=e;e=Object.create(null);e[0]=new RegExp("(mirall)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[190]=e;e=Object.create(null);e[0]=new RegExp("(ownCloud-android)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Owncloud";e[2]=0;e[3]=0;e[4]=0;h.browser[191]=e;e=Object.create(null);e[0]=new RegExp("(Obigo)InternetBrowser");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[192]=e;e=Object.create(null);e[0]=new RegExp("(Obigo)\\-Browser");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[193]=e;e=Object.create(null);e[0]=new RegExp("(Obigo|OBIGO)[^\\d]*(\\d+)(?:.(\\d+))?");e[1]="Obigo";e[2]=0;e[3]=0;e[4]=0;h.browser[194]=e;e=Object.create(null);e[0]=new RegExp("(MAXTHON|Maxthon) (\\d+)\\.(\\d+)");e[1]="Maxthon";e[2]=0;e[3]=0;e[4]=0;h.browser[195]=e;e=Object.create(null);e[0]=new RegExp("(Maxthon|MyIE2|Uzbl|Shiira)");e[1]=0;e[2]="0";e[3]=0;e[4]=0;h.browser[196]=e;e=Object.create(null);e[0]=new RegExp("(BrowseX) \\((\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[197]=e;e=Object.create(null);e[0]=new RegExp("(NCSA_Mosaic)/(\\d+)\\.(\\d+)");e[1]="NCSA Mosaic";e[2]=0;e[3]=0;e[4]=0;h.browser[198]=e;e=Object.create(null);e[0]=new RegExp("(POLARIS)/(\\d+)\\.(\\d+)");e[1]="Polaris";e[2]=0;e[3]=0;e[4]=0;h.browser[199]=e;e=Object.create(null);e[0]=new RegExp("(Embider)/(\\d+)\\.(\\d+)");e[1]="Polaris";e[2]=0;e[3]=0;e[4]=0;h.browser[200]=e;e=Object.create(null);e[0]=new RegExp("(BonEcho)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+)?");e[1]="Bon Echo";e[2]=0;e[3]=0;e[4]=0;h.browser[201]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPhone|iPad).+Version/(\\d+)\\.(\\d+)(?:\\.(\\d+))?.*[ +]Safari");e[1]="Mobile Safari";e[2]=0;e[3]=0;e[4]=0;h.browser[202]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+))?.* AppleNews\\/\\d+\\.\\d+\\.\\d+?");e[1]="Mobile Safari UI/WKWebView";e[2]=0;e[3]=0;e[4]=0;h.browser[203]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPhone|iPad).+Version/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Mobile Safari UI/WKWebView";e[2]=0;e[3]=0;e[4]=0;h.browser[204]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+))?.*Mobile.*[ +]Safari");e[1]="Mobile Safari";e[2]=0;e[3]=0;e[4]=0;h.browser[205]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\\d+)_(\\d+)(?:_(\\d+))?.*Mobile");e[1]="Mobile Safari UI/WKWebView";e[2]=0;e[3]=0;e[4]=0;h.browser[206]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPhone|iPad).* Safari");e[1]="Mobile Safari";e[2]=0;e[3]=0;e[4]=0;h.browser[207]=e;e=Object.create(null);e[0]=new RegExp("(iPod|iPhone|iPad)");e[1]="Mobile Safari UI/WKWebView";e[2]=0;e[3]=0;e[4]=0;h.browser[208]=e;e=Object.create(null);e[0]=new RegExp("(AvantGo) (\\d+).(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[209]=e;e=Object.create(null);e[0]=new RegExp("(OneBrowser)/(\\d+).(\\d+)");e[1]="ONE Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[210]=e;e=Object.create(null);e[0]=new RegExp("(Avant)");e[1]=0;e[2]="1";e[3]=0;e[4]=0;h.browser[211]=e;e=Object.create(null);e[0]=new RegExp("(QtCarBrowser)");e[1]=0;e[2]="1";e[3]=0;e[4]=0;h.browser[212]=e;e=Object.create(null);e[0]=new RegExp("^(iBrowser/Mini)(\\d+).(\\d+)");e[1]="iBrowser Mini";e[2]=0;e[3]=0;e[4]=0;h.browser[213]=e;e=Object.create(null);e[0]=new RegExp("^(iBrowser|iRAPP)/(\\d+).(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[214]=e;e=Object.create(null);e[0]=new RegExp("^(Nokia)");e[1]="Nokia Services (WAP) Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[215]=e;e=Object.create(null);e[0]=new RegExp("(NokiaBrowser)/(\\d+)\\.(\\d+).(\\d+)\\.(\\d+)");e[1]="Nokia Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[216]=e;e=Object.create(null);e[0]=new RegExp("(NokiaBrowser)/(\\d+)\\.(\\d+).(\\d+)");e[1]="Nokia Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[217]=e;e=Object.create(null);e[0]=new RegExp("(NokiaBrowser)/(\\d+)\\.(\\d+)");e[1]="Nokia Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[218]=e;e=Object.create(null);e[0]=new RegExp("(BrowserNG)/(\\d+)\\.(\\d+).(\\d+)");e[1]="Nokia Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[219]=e;e=Object.create(null);e[0]=new RegExp("(Series60)/5\\.0");e[1]="Nokia Browser";e[2]="7";e[3]="0";e[4]=0;h.browser[220]=e;e=Object.create(null);e[0]=new RegExp("(Series60)/(\\d+)\\.(\\d+)");e[1]="Nokia OSS Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[221]=e;e=Object.create(null);e[0]=new RegExp("(S40OviBrowser)/(\\d+)\\.(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Ovi Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[222]=e;e=Object.create(null);e[0]=new RegExp("(Nokia)[EN]?(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[223]=e;e=Object.create(null);e[0]=new RegExp("(PlayBook).+RIM Tablet OS (\\d+)\\.(\\d+)\\.(\\d+)");e[1]="BlackBerry WebKit";e[2]=0;e[3]=0;e[4]=0;h.browser[224]=e;e=Object.create(null);e[0]=new RegExp("(Black[bB]erry|BB10).+Version/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="BlackBerry WebKit";e[2]=0;e[3]=0;e[4]=0;h.browser[225]=e;e=Object.create(null);e[0]=new RegExp("(Black[bB]erry)\\s?(\\d+)");e[1]="BlackBerry";e[2]=0;e[3]=0;e[4]=0;h.browser[226]=e;e=Object.create(null);e[0]=new RegExp("(OmniWeb)/v(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[227]=e;e=Object.create(null);e[0]=new RegExp("(Blazer)/(\\d+)\\.(\\d+)");e[1]="Palm Blazer";e[2]=0;e[3]=0;e[4]=0;h.browser[228]=e;e=Object.create(null);e[0]=new RegExp("(Pre)/(\\d+)\\.(\\d+)");e[1]="Palm Pre";e[2]=0;e[3]=0;e[4]=0;h.browser[229]=e;e=Object.create(null);e[0]=new RegExp("(ELinks)/(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[230]=e;e=Object.create(null);e[0]=new RegExp("(ELinks) \\((\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[231]=e;e=Object.create(null);e[0]=new RegExp("(Links) \\((\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[232]=e;e=Object.create(null);e[0]=new RegExp("(QtWeb) Internet Browser/(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[233]=e;e=Object.create(null);e[0]=new RegExp("(PhantomJS)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[234]=e;e=Object.create(null);e[0]=new RegExp("(AppleWebKit)/(\\d+)\\.?(\\d+)?\\+ .* Safari");e[1]="WebKit Nightly";e[2]=0;e[3]=0;e[4]=0;h.browser[235]=e;e=Object.create(null);e[0]=new RegExp("(Version)/(\\d+)\\.(\\d+)(?:\\.(\\d+))?.*Safari/");e[1]="Safari";e[2]=0;e[3]=0;e[4]=0;h.browser[236]=e;e=Object.create(null);e[0]=new RegExp("(Safari)/\\d+");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[237]=e;e=Object.create(null);e[0]=new RegExp("(OLPC)/Update(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[238]=e;e=Object.create(null);e[0]=new RegExp("(OLPC)/Update()\\.(\\d+)");e[1]=0;e[2]="0";e[3]=0;e[4]=0;h.browser[239]=e;e=Object.create(null);e[0]=new RegExp("(SEMC\\-Browser)/(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[240]=e;e=Object.create(null);e[0]=new RegExp("(Teleca)");e[1]="Teleca Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[241]=e;e=Object.create(null);e[0]=new RegExp("(Phantom)/V(\\d+)\\.(\\d+)");e[1]="Phantom Browser";e[2]=0;e[3]=0;e[4]=0;h.browser[242]=e;e=Object.create(null);e[0]=new RegExp("(Trident)/(7)\\.(0)");e[1]="IE";e[2]="11";e[3]=0;e[4]=0;h.browser[243]=e;e=Object.create(null);e[0]=new RegExp("(Trident)/(6)\\.(0)");e[1]="IE";e[2]="10";e[3]=0;e[4]=0;h.browser[244]=e;e=Object.create(null);e[0]=new RegExp("(Trident)/(5)\\.(0)");e[1]="IE";e[2]="9";e[3]=0;e[4]=0;h.browser[245]=e;e=Object.create(null);e[0]=new RegExp("(Trident)/(4)\\.(0)");e[1]="IE";e[2]="8";e[3]=0;e[4]=0;h.browser[246]=e;e=Object.create(null);e[0]=new RegExp("(Espial)/(\\d+)(?:\\.(\\d+))?(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[247]=e;e=Object.create(null);e[0]=new RegExp("(AppleWebKit)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Apple Mail";e[2]=0;e[3]=0;e[4]=0;h.browser[248]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[249]=e;e=Object.create(null);e[0]=new RegExp("(Firefox)/(\\d+)\\.(\\d+)(pre|[ab]\\d+[a-z]*)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[250]=e;e=Object.create(null);e[0]=new RegExp("([MS]?IE) (\\d+)\\.(\\d+)");e[1]="IE";e[2]=0;e[3]=0;e[4]=0;h.browser[251]=e;e=Object.create(null);e[0]=new RegExp("(python-requests)/(\\d+)\\.(\\d+)");e[1]="Python Requests";e[2]=0;e[3]=0;e[4]=0;h.browser[252]=e;e=Object.create(null);e[0]=new RegExp("\\b(Windows-Update-Agent|Microsoft-CryptoAPI|SophosUpdateManager|SophosAgent|Debian APT-HTTP|Ubuntu APT-HTTP|libcurl-agent|libwww-perl|urlgrabber|curl|Wget|OpenBSD ftp|jupdate)(?:[ /](\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[253]=e;e=Object.create(null);e[0]=new RegExp("(Java)[/ ]{0,1}\\d+\\.(\\d+)\\.(\\d+)[_-]*([a-zA-Z0-9]+)*");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[254]=e;e=Object.create(null);e[0]=new RegExp("^(Roku)/DVP-(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[255]=e;e=Object.create(null);e[0]=new RegExp("(Kurio)\\/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Kurio App";e[2]=0;e[3]=0;e[4]=0;h.browser[256]=e;e=Object.create(null);e[0]=new RegExp("^(Box(?: Sync)?)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[257]=e;e=Object.create(null);e[0]=new RegExp("(Wget)/(\\d+)\\.(\\d+)\\.?([ab]?\\d+[a-z]*)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.browser[258]=e;e=Object.create(null);e[0]=new RegExp("(curl)/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="cURL";e[2]=0;e[3]=0;e[4]=0;h.browser[259]=e;h.browser.length=260;h.device=Object.create(null);e=Object.create(null);e[0]=new RegExp("(Rival IQ, rivaliq.com)");e[1]="Spider";e[2]=0;e[3]=0;e[4]=0;h.device[0]=e;e=Object.create(null);e[0]=new RegExp("(?:(?:iPhone|Windows CE|Windows Phone|Android).*(?:(?:Bot|Yeti)-Mobile|YRSpider|BingPreview|bots?/\\d|(?:bot|spider)\\.html)|AdsBot-Google-Mobile.*iPhone)");e[1]="Spider";e[2]=0;e[3]=0;e[4]=0;h.device[1]=e;e=Object.create(null);e[0]=new RegExp("(?:DoCoMo|\\bMOT\\b|\\bLG\\b|Nokia|Samsung|SonyEricsson).*(?:(?:Bot|Yeti)-Mobile|bots?/\\d|(?:bot|crawler)\\.html|(?:jump|google|Wukong)bot|ichiro/mobile|/spider|YahooSeeker)");e[1]="Spider";e[2]=0;e[3]=0;e[4]=0;h.device[2]=e;e=Object.create(null);e[0]=new RegExp("\\bSmartWatch *\\( *([^;]+) *; *([^;]+) *;");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[3]=e;e=Object.create(null);e[0]=new RegExp("Android Application[^\\-]+ - (Sony) ?(Ericsson)? (.+) \\w+ - ");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[4]=e;e=Object.create(null);e[0]=new RegExp("Android Application[^\\-]+ - (?:HTC|HUAWEI|LGE|LENOVO|MEDION|TCT) (HTC|HUAWEI|LG|LENOVO|MEDION|ALCATEL)[ _\\-](.+) \\w+ - ");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[5]=e;e=Object.create(null);e[0]=new RegExp("Android Application[^\\-]+ - ([^ ]+) (.+) \\w+ - ");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[6]=e;e=Object.create(null);e[0]=new RegExp("; *([BLRQ]C\\d{4}[A-Z]+) +Build/");e[1]="3Q $1";e[2]=0;e[3]=0;e[4]=0;h.device[7]=e;e=Object.create(null);e[0]=new RegExp("; *(?:3Q_)([^;/]+) +Build");e[1]="3Q $1";e[2]=0;e[3]=0;e[4]=0;h.device[8]=e;e=Object.create(null);e[0]=new RegExp("Android [34].*; *(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700(?: Lite| 3G)?|A701|B1-A71|A1-\\d{3}|B1-\\d{3}|V360|V370|W500|W500P|W501|W501P|W510|W511|W700|Slider SL101|DA22[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[9]=e;e=Object.create(null);e[0]=new RegExp("; *Acer Iconia Tab ([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[10]=e;e=Object.create(null);e[0]=new RegExp("; *(Z1[1235]0|E320[^/]*|S500|S510|Liquid[^;/]*|Iconia A\\d+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[11]=e;e=Object.create(null);e[0]=new RegExp("; *(Acer |ACER )([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[12]=e;e=Object.create(null);e[0]=new RegExp("; *(Advent )?(Vega(?:Bean|Comb)?).* Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[13]=e;e=Object.create(null);e[0]=new RegExp("; *(Ainol )?((?:NOVO|[Nn]ovo)[^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[14]=e;e=Object.create(null);e[0]=new RegExp("; *AIRIS[ _\\-]?([^/;\\)]+) *(?:;|\\)|Build)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[15]=e;e=Object.create(null);e[0]=new RegExp("; *(OnePAD[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[16]=e;e=Object.create(null);e[0]=new RegExp("; *Airpad[ \\-]([^;/]+) Build");e[1]="Airpad $1";e[2]=0;e[3]=0;e[4]=0;h.device[17]=e;e=Object.create(null);e[0]=new RegExp("; *(one ?touch) (EVO7|T10|T20) Build");e[1]="Alcatel One Touch $2";e[2]=0;e[3]=0;e[4]=0;h.device[18]=e;e=Object.create(null);e[0]=new RegExp("; *(?:alcatel[ _])?(?:(?:one[ _]?touch[ _])|ot[ \\-])([^;/]+);? Build");e[1]="Alcatel One Touch $1";e[2]=0;e[3]=0;e[4]=0;h.device[19]=e;e=Object.create(null);e[0]=new RegExp("; *(TCL)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[20]=e;e=Object.create(null);e[0]=new RegExp("; *(Vodafone Smart II|Optimus_Madrid) Build");e[1]="Alcatel $1";e[2]=0;e[3]=0;e[4]=0;h.device[21]=e;e=Object.create(null);e[0]=new RegExp("; *BASE_Lutea_3 Build");e[1]="Alcatel One Touch 998";e[2]=0;e[3]=0;e[4]=0;h.device[22]=e;e=Object.create(null);e[0]=new RegExp("; *BASE_Varia Build");e[1]="Alcatel One Touch 918D";e[2]=0;e[3]=0;e[4]=0;h.device[23]=e;e=Object.create(null);e[0]=new RegExp("; *((?:FINE|Fine)\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[24]=e;e=Object.create(null);e[0]=new RegExp("; *(ALLVIEW[ _]?|Allview[ _]?)((?:Speed|SPEED).*) Build/");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[25]=e;e=Object.create(null);e[0]=new RegExp("; *(ALLVIEW[ _]?|Allview[ _]?)?(AX1_Shine|AX2_Frenzy) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[26]=e;e=Object.create(null);e[0]=new RegExp("; *(ALLVIEW[ _]?|Allview[ _]?)([^;/]*) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[27]=e;e=Object.create(null);e[0]=new RegExp("; *(A13-MID) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[28]=e;e=Object.create(null);e[0]=new RegExp("; *(Allwinner)[ _\\-]?([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[29]=e;e=Object.create(null);e[0]=new RegExp("; *(A651|A701B?|A702|A703|A705|A706|A707|A711|A712|A713|A717|A722|A785|A801|A802|A803|A901|A902|A1002|A1003|A1006|A1007|A9701|A9703|Q710|Q80) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[30]=e;e=Object.create(null);e[0]=new RegExp("; *(?:AMOI|Amoi)[ _]([^;/]+) Build");e[1]="Amoi $1";e[2]=0;e[3]=0;e[4]=0;h.device[31]=e;e=Object.create(null);e[0]=new RegExp("^(?:AMOI|Amoi)[ _]([^;/]+) Linux");e[1]="Amoi $1";e[2]=0;e[3]=0;e[4]=0;h.device[32]=e;e=Object.create(null);e[0]=new RegExp("; *(MW(?:0[789]|10)[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[33]=e;e=Object.create(null);e[0]=new RegExp("; *(G7|M1013|M1015G|M11[CG]?|M-?12[B]?|M15|M19[G]?|M30[ACQ]?|M31[GQ]|M32|M33[GQ]|M36|M37|M38|M701T|M710|M712B|M713|M715G|M716G|M71(?:G|GS|T)?|M72[T]?|M73[T]?|M75[GT]?|M77G|M79T|M7L|M7LN|M81|M810|M81T|M82|M92|M92KS|M92S|M717G|M721|M722G|M723|M725G|M739|M785|M791|M92SK|M93D) Build");e[1]="Aoson $1";e[2]=0;e[3]=0;e[4]=0;h.device[34]=e;e=Object.create(null);e[0]=new RegExp("; *Aoson ([^;/]+) Build");e[1]="Aoson $1";e[2]=0;e[3]=0;e[4]=0;h.device[35]=e;e=Object.create(null);e[0]=new RegExp("; *[Aa]panda[ _\\-]([^;/]+) Build");e[1]="Apanda $1";e[2]=0;e[3]=0;e[4]=0;h.device[36]=e;e=Object.create(null);e[0]=new RegExp("; *(?:ARCHOS|Archos) ?(GAMEPAD.*?)(?: Build|[;/\\(\\)\\-])");e[1]="Archos $1";e[2]=0;e[3]=0;e[4]=0;h.device[37]=e;e=Object.create(null);e[0]=new RegExp("ARCHOS; GOGI; ([^;]+);");e[1]="Archos $1";e[2]=0;e[3]=0;e[4]=0;h.device[38]=e;e=Object.create(null);e[0]=new RegExp("(?:ARCHOS|Archos)[ _]?(.*?)(?: Build|[;/\\(\\)\\-]|$)");e[1]="Archos $1";e[2]=0;e[3]=0;e[4]=0;h.device[39]=e;e=Object.create(null);e[0]=new RegExp("; *(AN(?:7|8|9|10|13)[A-Z0-9]{1,4}) Build");e[1]="Archos $1";e[2]=0;e[3]=0;e[4]=0;h.device[40]=e;e=Object.create(null);e[0]=new RegExp("; *(A28|A32|A43|A70(?:BHT|CHT|HB|S|X)|A101(?:B|C|IT)|A7EB|A7EB-WK|101G9|80G9) Build");e[1]="Archos $1";e[2]=0;e[3]=0;e[4]=0;h.device[41]=e;e=Object.create(null);e[0]=new RegExp("; *(PAD-FMD[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[42]=e;e=Object.create(null);e[0]=new RegExp("; *(BioniQ) ?([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[43]=e;e=Object.create(null);e[0]=new RegExp("; *(AN\\d[^;/]+|ARCHM\\d+) Build");e[1]="Arnova $1";e[2]=0;e[3]=0;e[4]=0;h.device[44]=e;e=Object.create(null);e[0]=new RegExp("; *(?:ARNOVA|Arnova) ?([^;/]+) Build");e[1]="Arnova $1";e[2]=0;e[3]=0;e[4]=0;h.device[45]=e;e=Object.create(null);e[0]=new RegExp("; *(?:ASSISTANT )?(AP)-?([1789]\\d{2}[A-Z]{0,2}|80104) Build");e[1]="Assistant $1-$2";e[2]=0;e[3]=0;e[4]=0;h.device[46]=e;e=Object.create(null);e[0]=new RegExp("; *(ME17\\d[^;/]*|ME3\\d{2}[^;/]+|K00[A-Z]|Nexus 10|Nexus 7(?: 2013)?|PadFone[^;/]*|Transformer[^;/]*|TF\\d{3}[^;/]*|eeepc) Build");e[1]="Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[47]=e;e=Object.create(null);e[0]=new RegExp("; *ASUS[ _]*([^;/]+) Build");e[1]="Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[48]=e;e=Object.create(null);e[0]=new RegExp("; *Garmin-Asus ([^;/]+) Build");e[1]="Garmin-Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[49]=e;e=Object.create(null);e[0]=new RegExp("; *(Garminfone) Build");e[1]="Garmin $1";e[2]=0;e[3]=0;e[4]=0;h.device[50]=e;e=Object.create(null);e[0]=new RegExp("; (@TAB-[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[51]=e;e=Object.create(null);e[0]=new RegExp("; *(T-(?:07|[^0]\\d)[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[52]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Axioo[ _\\-]([^;/]+)|(picopad)[ _\\-]([^;/]+)) Build");e[1]="Axioo $1$2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[53]=e;e=Object.create(null);e[0]=new RegExp("; *(V(?:100|700|800)[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[54]=e;e=Object.create(null);e[0]=new RegExp("; *(IBAK\\-[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[55]=e;e=Object.create(null);e[0]=new RegExp("; *(HY5001|HY6501|X12|X21|I5) Build");e[1]="Bedove $1";e[2]=0;e[3]=0;e[4]=0;h.device[56]=e;e=Object.create(null);e[0]=new RegExp("; *(JC-[^;/]*) Build");e[1]="Benss $1";e[2]=0;e[3]=0;e[4]=0;h.device[57]=e;e=Object.create(null);e[0]=new RegExp("; *(BB) ([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[58]=e;e=Object.create(null);e[0]=new RegExp("; *(BlackBird)[ _](I8.*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[59]=e;e=Object.create(null);e[0]=new RegExp("; *(BlackBird)[ _](.*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[60]=e;e=Object.create(null);e[0]=new RegExp("; *([0-9]+BP[EM][^;/]*|Endeavour[^;/]+) Build");e[1]="Blaupunkt $1";e[2]=0;e[3]=0;e[4]=0;h.device[61]=e;e=Object.create(null);e[0]=new RegExp("; *((?:BLU|Blu)[ _\\-])([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[62]=e;e=Object.create(null);e[0]=new RegExp("; *(?:BMOBILE )?(Blu|BLU|DASH [^;/]+|VIVO 4\\.3|TANK 4\\.5) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[63]=e;e=Object.create(null);e[0]=new RegExp("; *(TOUCH\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[64]=e;e=Object.create(null);e[0]=new RegExp("; *(AX5\\d+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[65]=e;e=Object.create(null);e[0]=new RegExp("; *([Bb]q) ([^;/]+);? Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[66]=e;e=Object.create(null);e[0]=new RegExp("; *(Maxwell [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[67]=e;e=Object.create(null);e[0]=new RegExp("; *((?:B-Tab|B-TAB) ?\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[68]=e;e=Object.create(null);e[0]=new RegExp("; *(Broncho) ([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[69]=e;e=Object.create(null);e[0]=new RegExp("; *CAPTIVA ([^;/]+) Build");e[1]="Captiva $1";e[2]=0;e[3]=0;e[4]=0;h.device[70]=e;e=Object.create(null);e[0]=new RegExp("; *(C771|CAL21|IS11CA) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[71]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Cat|CAT) ([^;/]+) Build");e[1]="Cat $1";e[2]=0;e[3]=0;e[4]=0;h.device[72]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Cat)(Nova.*) Build");e[1]="Cat $1";e[2]=0;e[3]=0;e[4]=0;h.device[73]=e;e=Object.create(null);e[0]=new RegExp("; *(INM8002KP|ADM8000KP_[AB]) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[74]=e;e=Object.create(null);e[0]=new RegExp("; *(?:[Cc]elkon[ _\\*]|CELKON[ _\\*])([^;/\\)]+) ?(?:Build|;|\\))");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[75]=e;e=Object.create(null);e[0]=new RegExp("Build/(?:[Cc]elkon)+_?([^;/_\\)]+)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[76]=e;e=Object.create(null);e[0]=new RegExp("; *(CT)-?(\\d+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[77]=e;e=Object.create(null);e[0]=new RegExp("; *(A19|A19Q|A105|A107[^;/\\)]*) ?(?:Build|;|\\))");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[78]=e;e=Object.create(null);e[0]=new RegExp("; *(TPC[0-9]{4,5}) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[79]=e;e=Object.create(null);e[0]=new RegExp("; *(Cloudfone)[ _](Excite)([^ ][^;/]+) Build");e[1]="$1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[80]=e;e=Object.create(null);e[0]=new RegExp("; *(Excite|ICE)[ _](\\d+[^;/]+) Build");e[1]="Cloudfone $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[81]=e;e=Object.create(null);e[0]=new RegExp("; *(Cloudfone|CloudPad)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[82]=e;e=Object.create(null);e[0]=new RegExp("; *((?:Aquila|Clanga|Rapax)[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[83]=e;e=Object.create(null);e[0]=new RegExp("; *(?:CFW-|Kyros )?(MID[0-9]{4}(?:[ABC]|SR|TV)?)(\\(3G\\)-4G| GB 8K| 3G| 8K| GB)? *(?:Build|[;\\)])");e[1]="CobyKyros $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[84]=e;e=Object.create(null);e[0]=new RegExp("; *([^;/]*)Coolpad[ _]([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[85]=e;e=Object.create(null);e[0]=new RegExp("; *(CUBE[ _])?([KU][0-9]+ ?GT.*|A5300) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[86]=e;e=Object.create(null);e[0]=new RegExp("; *CUBOT ([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[87]=e;e=Object.create(null);e[0]=new RegExp("; *(BOBBY) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[88]=e;e=Object.create(null);e[0]=new RegExp("; *(Dslide [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[89]=e;e=Object.create(null);e[0]=new RegExp("; *(XCD)[ _]?(28|35) Build");e[1]="Dell $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[90]=e;e=Object.create(null);e[0]=new RegExp("; *(001DL) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[91]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Dell|DELL) (Streak) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[92]=e;e=Object.create(null);e[0]=new RegExp("; *(101DL|GS01|Streak Pro[^;/]*) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[93]=e;e=Object.create(null);e[0]=new RegExp("; *([Ss]treak ?7) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[94]=e;e=Object.create(null);e[0]=new RegExp("; *(Mini-3iX) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[95]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Dell|DELL)[ _](Aero|Venue|Thunder|Mini.*|Streak[ _]Pro) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[96]=e;e=Object.create(null);e[0]=new RegExp("; *Dell[ _]([^;/]+) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[97]=e;e=Object.create(null);e[0]=new RegExp("; *Dell ([^;/]+) Build");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[98]=e;e=Object.create(null);e[0]=new RegExp("; *(TA[CD]-\\d+[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[99]=e;e=Object.create(null);e[0]=new RegExp("; *(iP[789]\\d{2}(?:-3G)?|IP10\\d{2}(?:-8GB)?) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[100]=e;e=Object.create(null);e[0]=new RegExp("; *(AirTab)[ _\\-]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[101]=e;e=Object.create(null);e[0]=new RegExp("; *(F\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[102]=e;e=Object.create(null);e[0]=new RegExp("; *(HT-03A) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[103]=e;e=Object.create(null);e[0]=new RegExp("; *(HT\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[104]=e;e=Object.create(null);e[0]=new RegExp("; *(L\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[105]=e;e=Object.create(null);e[0]=new RegExp("; *(N\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[106]=e;e=Object.create(null);e[0]=new RegExp("; *(P\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[107]=e;e=Object.create(null);e[0]=new RegExp("; *(SC\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[108]=e;e=Object.create(null);e[0]=new RegExp("; *(SH\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[109]=e;e=Object.create(null);e[0]=new RegExp("; *(SO\\-\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[110]=e;e=Object.create(null);e[0]=new RegExp("; *(T\\-0[12][^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[111]=e;e=Object.create(null);e[0]=new RegExp("; *(DOOV)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[112]=e;e=Object.create(null);e[0]=new RegExp("; *(Enot|ENOT)[ -]?([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[113]=e;e=Object.create(null);e[0]=new RegExp("; *[^;/]+ Build/(?:CROSS|Cross)+[ _\\-]([^\\)]+)");e[1]="CROSS $1";e[2]=0;e[3]=0;e[4]=0;h.device[114]=e;e=Object.create(null);e[0]=new RegExp("; *(CROSS|Cross)[ _\\-]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[115]=e;e=Object.create(null);e[0]=new RegExp("; *Explay[_ ](.+?)(?:[\\)]| Build)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[116]=e;e=Object.create(null);e[0]=new RegExp("; *(IQ.*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[117]=e;e=Object.create(null);e[0]=new RegExp("; *(Fly|FLY)[ _](IQ[^;]+|F[34]\\d+[^;]*);? Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[118]=e;e=Object.create(null);e[0]=new RegExp("; *(M532|Q572|FJL21) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[119]=e;e=Object.create(null);e[0]=new RegExp("; *(G1) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[120]=e;e=Object.create(null);e[0]=new RegExp("; *(Geeksphone) ([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[121]=e;e=Object.create(null);e[0]=new RegExp("; *(G[^F]?FIVE) ([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[122]=e;e=Object.create(null);e[0]=new RegExp("; *(Gionee)[ _\\-]([^;/]+)(?:/[^;/]+)? Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[123]=e;e=Object.create(null);e[0]=new RegExp("; *(GN\\d+[A-Z]?|INFINITY_PASSION|Ctrl_V1) Build");e[1]="Gionee $1";e[2]=0;e[3]=0;e[4]=0;h.device[124]=e;e=Object.create(null);e[0]=new RegExp("; *(E3) Build/JOP40D");e[1]="Gionee $1";e[2]=0;e[3]=0;e[4]=0;h.device[125]=e;e=Object.create(null);e[0]=new RegExp("\\sGIONEE[-\\s_](\\w*)");e[1]="Gionee $1";e[2]=0;e[3]=0;e[4]=0;h.device[126]=e;e=Object.create(null);e[0]=new RegExp("; *((?:FONE|QUANTUM|INSIGNIA) \\d+[^;/]*|PLAYTAB) Build");e[1]="GoClever $1";e[2]=0;e[3]=0;e[4]=0;h.device[127]=e;e=Object.create(null);e[0]=new RegExp("; *GOCLEVER ([^;/]+) Build");e[1]="GoClever $1";e[2]=0;e[3]=0;e[4]=0;h.device[128]=e;e=Object.create(null);e[0]=new RegExp("; *(Glass \\d+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[129]=e;e=Object.create(null);e[0]=new RegExp("; *(Pixel \\w+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[130]=e;e=Object.create(null);e[0]=new RegExp("; *(GSmart)[ -]([^/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[131]=e;e=Object.create(null);e[0]=new RegExp("; *(imx5[13]_[^/]+) Build");e[1]="Freescale $1";e[2]=0;e[3]=0;e[4]=0;h.device[132]=e;e=Object.create(null);e[0]=new RegExp("; *Haier[ _\\-]([^/]+) Build");e[1]="Haier $1";e[2]=0;e[3]=0;e[4]=0;h.device[133]=e;e=Object.create(null);e[0]=new RegExp("; *(PAD1016) Build");e[1]="Haipad $1";e[2]=0;e[3]=0;e[4]=0;h.device[134]=e;e=Object.create(null);e[0]=new RegExp("; *(M701|M7|M8|M9) Build");e[1]="Haipad $1";e[2]=0;e[3]=0;e[4]=0;h.device[135]=e;e=Object.create(null);e[0]=new RegExp("; *(SN\\d+T[^;\\)/]*)(?: Build|[;\\)])");e[1]="Hannspree $1";e[2]=0;e[3]=0;e[4]=0;h.device[136]=e;e=Object.create(null);e[0]=new RegExp("Build/HCL ME Tablet ([^;\\)]+)[\\);]");e[1]="HCLme $1";e[2]=0;e[3]=0;e[4]=0;h.device[137]=e;e=Object.create(null);e[0]=new RegExp("; *([^;\\/]+) Build/HCL");e[1]="HCLme $1";e[2]=0;e[3]=0;e[4]=0;h.device[138]=e;e=Object.create(null);e[0]=new RegExp("; *(MID-?\\d{4}C[EM]) Build");e[1]="Hena $1";e[2]=0;e[3]=0;e[4]=0;h.device[139]=e;e=Object.create(null);e[0]=new RegExp("; *(EG\\d{2,}|HS-[^;/]+|MIRA[^;/]+) Build");e[1]="Hisense $1";e[2]=0;e[3]=0;e[4]=0;h.device[140]=e;e=Object.create(null);e[0]=new RegExp("; *(andromax[^;/]+) Build");e[1]="Hisense $1";e[2]=0;e[3]=0;e[4]=0;h.device[141]=e;e=Object.create(null);e[0]=new RegExp("; *(?:AMAZE[ _](S\\d+)|(S\\d+)[ _]AMAZE) Build");e[1]="AMAZE $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[142]=e;e=Object.create(null);e[0]=new RegExp("; *(PlayBook) Build");e[1]="HP $1";e[2]=0;e[3]=0;e[4]=0;h.device[143]=e;e=Object.create(null);e[0]=new RegExp("; *HP ([^/]+) Build");e[1]="HP $1";e[2]=0;e[3]=0;e[4]=0;h.device[144]=e;e=Object.create(null);e[0]=new RegExp("; *([^/]+_tenderloin) Build");e[1]="HP TouchPad";e[2]=0;e[3]=0;e[4]=0;h.device[145]=e;e=Object.create(null);e[0]=new RegExp("; *(HUAWEI |Huawei-)?([UY][^;/]+) Build/(?:Huawei|HUAWEI)([UY][^\\);]+)\\)");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[146]=e;e=Object.create(null);e[0]=new RegExp("; *([^;/]+) Build[/ ]Huawei(MT1-U06|[A-Z]+\\d+[^\\);]+)[^\\);]*\\)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[147]=e;e=Object.create(null);e[0]=new RegExp("; *(S7|M860) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[148]=e;e=Object.create(null);e[0]=new RegExp("; *((?:HUAWEI|Huawei)[ \\-]?)(MediaPad) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[149]=e;e=Object.create(null);e[0]=new RegExp("; *((?:HUAWEI[ _]?|Huawei[ _])?Ascend[ _])([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[150]=e;e=Object.create(null);e[0]=new RegExp("; *((?:HUAWEI|Huawei)[ _\\-]?)((?:G700-|MT-)[^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[151]=e;e=Object.create(null);e[0]=new RegExp("; *((?:HUAWEI|Huawei)[ _\\-]?)([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[152]=e;e=Object.create(null);e[0]=new RegExp("; *(MediaPad[^;]+|SpringBoard) Build/Huawei");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[153]=e;e=Object.create(null);e[0]=new RegExp("; *([^;]+) Build/(?:Huawei|HUAWEI)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[154]=e;e=Object.create(null);e[0]=new RegExp("; *([Uu])([89]\\d{3}) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[155]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Ideos |IDEOS )(S7) Build");e[1]="Huawei Ideos$1";e[2]=0;e[3]=0;e[4]=0;h.device[156]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Ideos |IDEOS )([^;/]+\\s*|\\s*)Build");e[1]="Huawei Ideos$1";e[2]=0;e[3]=0;e[4]=0;h.device[157]=e;e=Object.create(null);e[0]=new RegExp("; *(Orange Daytona|Pulse|Pulse Mini|Vodafone 858|C8500|C8600|C8650|C8660|Nexus 6P|ATH-.+?) Build[/ ]");e[1]="Huawei $1";e[2]=0;e[3]=0;e[4]=0;h.device[158]=e;e=Object.create(null);e[0]=new RegExp("; *HTC[ _]([^;]+); Windows Phone");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[159]=e;e=Object.create(null);e[0]=new RegExp("; *(?:HTC[ _/])+([^ _/]+)(?:[/\\\\]1\\.0 | V|/| +)\\d+\\.\\d[\\d\\.]*(?: *Build|\\))");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[160]=e;e=Object.create(null);e[0]=new RegExp("; *(?:HTC[ _/])+([^ _/]+)(?:[ _/]([^ _/]+))?(?:[/\\\\]1\\.0 | V|/| +)\\d+\\.\\d[\\d\\.]*(?: *Build|\\))");e[1]="HTC $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[161]=e;e=Object.create(null);e[0]=new RegExp("; *(?:HTC[ _/])+([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ _/]+))?)?(?:[/\\\\]1\\.0 | V|/| +)\\d+\\.\\d[\\d\\.]*(?: *Build|\\))");e[1]="HTC $1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[162]=e;e=Object.create(null);e[0]=new RegExp("; *(?:HTC[ _/])+([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ _/]+))?)?)?(?:[/\\\\]1\\.0 | V|/| +)\\d+\\.\\d[\\d\\.]*(?: *Build|\\))");e[1]="HTC $1 $2 $3 $4";e[2]=0;e[3]=0;e[4]=0;h.device[163]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(?:HTC|htc)(?:_blocked)*[ _/])+([^ _/;]+)(?: *Build|[;\\)]| - )");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[164]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(?:HTC|htc)(?:_blocked)*[ _/])+([^ _/]+)(?:[ _/]([^ _/;\\)]+))?(?: *Build|[;\\)]| - )");e[1]="HTC $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[165]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(?:HTC|htc)(?:_blocked)*[ _/])+([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ _/;\\)]+))?)?(?: *Build|[;\\)]| - )");e[1]="HTC $1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[166]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(?:HTC|htc)(?:_blocked)*[ _/])+([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ _/]+)(?:[ _/]([^ /;]+))?)?)?(?: *Build|[;\\)]| - )");e[1]="HTC $1 $2 $3 $4";e[2]=0;e[3]=0;e[4]=0;h.device[167]=e;e=Object.create(null);e[0]=new RegExp("HTC Streaming Player [^\\/]*/[^\\/]*/ htc_([^/]+) /");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[168]=e;e=Object.create(null);e[0]=new RegExp("(?:[;,] *|^)(?:htccn_chs-)?HTC[ _-]?([^;]+?)(?: *Build|clay|Android|-?Mozilla| Opera| Profile| UNTRUSTED|[;/\\(\\)]|$)");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[169]=e;e=Object.create(null);e[0]=new RegExp("; *(A6277|ADR6200|ADR6300|ADR6350|ADR6400[A-Z]*|ADR6425[A-Z]*|APX515CKT|ARIA|Desire[^_ ]*|Dream|EndeavorU|Eris|Evo|Flyer|HD2|Hero|HERO200|Hero CDMA|HTL21|Incredible|Inspire[A-Z0-9]*|Legend|Liberty|Nexus ?(?:One|HD2)|One|One S C2|One[ _]?(?:S|V|X\\+?)\\w*|PC36100|PG06100|PG86100|S31HT|Sensation|Wildfire)(?: Build|[/;\\(\\)])");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[170]=e;e=Object.create(null);e[0]=new RegExp("; *(ADR6200|ADR6400L|ADR6425LVW|Amaze|DesireS?|EndeavorU|Eris|EVO|Evo\\d[A-Z]+|HD2|IncredibleS?|Inspire[A-Z0-9]*|Inspire[A-Z0-9]*|Sensation[A-Z0-9]*|Wildfire)[ _-](.+?)(?:[/;\\)]|Build|MIUI|1\\.0)");e[1]="HTC $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[171]=e;e=Object.create(null);e[0]=new RegExp("; *HYUNDAI (T\\d[^/]*) Build");e[1]="Hyundai $1";e[2]=0;e[3]=0;e[4]=0;h.device[172]=e;e=Object.create(null);e[0]=new RegExp("; *HYUNDAI ([^;/]+) Build");e[1]="Hyundai $1";e[2]=0;e[3]=0;e[4]=0;h.device[173]=e;e=Object.create(null);e[0]=new RegExp("; *(X700|Hold X|MB-6900) Build");e[1]="Hyundai $1";e[2]=0;e[3]=0;e[4]=0;h.device[174]=e;e=Object.create(null);e[0]=new RegExp("; *(?:iBall[ _\\-])?(Andi)[ _]?(\\d[^;/]*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[175]=e;e=Object.create(null);e[0]=new RegExp("; *(IBall)(?:[ _]([^;/]+)|) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[176]=e;e=Object.create(null);e[0]=new RegExp("; *(NT-\\d+[^ ;/]*|Net[Tt]AB [^;/]+|Mercury [A-Z]+|iconBIT)(?: S/N:[^;/]+)? Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[177]=e;e=Object.create(null);e[0]=new RegExp("; *(IMO)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[178]=e;e=Object.create(null);e[0]=new RegExp("; *i-?mobile[ _]([^/]+) Build/");e[1]="i-mobile $1";e[2]=0;e[3]=0;e[4]=0;h.device[179]=e;e=Object.create(null);e[0]=new RegExp("; *(i-(?:style|note)[^/]*) Build/");e[1]="i-mobile $1";e[2]=0;e[3]=0;e[4]=0;h.device[180]=e;e=Object.create(null);e[0]=new RegExp("; *(ImPAD) ?(\\d+(?:.)*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[181]=e;e=Object.create(null);e[0]=new RegExp("; *(Infinix)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[182]=e;e=Object.create(null);e[0]=new RegExp("; *(Informer)[ \\-]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[183]=e;e=Object.create(null);e[0]=new RegExp("; *(TAB) ?([78][12]4) Build");e[1]="Intenso $1";e[2]=0;e[3]=0;e[4]=0;h.device[184]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Intex[ _])?(AQUA|Aqua)([ _\\.\\-])([^;/]+) *(?:Build|;)");e[1]="$1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[185]=e;e=Object.create(null);e[0]=new RegExp("; *(?:INTEX|Intex)(?:[_ ]([^\\ _;/]+))(?:[_ ]([^\\ _;/]+))? *(?:Build|;)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[186]=e;e=Object.create(null);e[0]=new RegExp("; *([iI]Buddy)[ _]?(Connect)(?:_|\\?_| )?([^;/]*) *(?:Build|;)");e[1]="$1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[187]=e;e=Object.create(null);e[0]=new RegExp("; *(I-Buddy)[ _]([^;/]+) *(?:Build|;)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[188]=e;e=Object.create(null);e[0]=new RegExp("; *(iOCEAN) ([^/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[189]=e;e=Object.create(null);e[0]=new RegExp("; *(TP\\d+(?:\\.\\d+)?\\-\\d[^;/]+) Build");e[1]="ionik $1";e[2]=0;e[3]=0;e[4]=0;h.device[190]=e;e=Object.create(null);e[0]=new RegExp("; *(M702pro) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[191]=e;e=Object.create(null);e[0]=new RegExp("; *(DE88Plus|MD70) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[192]=e;e=Object.create(null);e[0]=new RegExp("; *IVIO[_\\-]([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[193]=e;e=Object.create(null);e[0]=new RegExp("; *(TPC-\\d+|JAY-TECH) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[194]=e;e=Object.create(null);e[0]=new RegExp("; *(JY-[^;/]+|G[234]S?) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[195]=e;e=Object.create(null);e[0]=new RegExp("; *(JXD)[ _\\-]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[196]=e;e=Object.create(null);e[0]=new RegExp("; *Karbonn[ _]?([^;/]+) *(?:Build|;)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[197]=e;e=Object.create(null);e[0]=new RegExp("; *([^;]+) Build/Karbonn");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[198]=e;e=Object.create(null);e[0]=new RegExp("; *(A11|A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2|Titanium S\\d) +Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[199]=e;e=Object.create(null);e[0]=new RegExp("; *(IS01|IS03|IS05|IS\\d{2}SH) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[200]=e;e=Object.create(null);e[0]=new RegExp("; *(IS04) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[201]=e;e=Object.create(null);e[0]=new RegExp("; *(IS06|IS\\d{2}PT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[202]=e;e=Object.create(null);e[0]=new RegExp("; *(IS11S) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[203]=e;e=Object.create(null);e[0]=new RegExp("; *(IS11CA) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[204]=e;e=Object.create(null);e[0]=new RegExp("; *(IS11LG) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[205]=e;e=Object.create(null);e[0]=new RegExp("; *(IS11N) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[206]=e;e=Object.create(null);e[0]=new RegExp("; *(IS11PT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[207]=e;e=Object.create(null);e[0]=new RegExp("; *(IS12F) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[208]=e;e=Object.create(null);e[0]=new RegExp("; *(IS12M) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[209]=e;e=Object.create(null);e[0]=new RegExp("; *(IS12S) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[210]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW11F) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[211]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW11HT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[212]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW11K) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[213]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW11M) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[214]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW11SC) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[215]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW12HT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[216]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW13HT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[217]=e;e=Object.create(null);e[0]=new RegExp("; *(ISW?[0-9]{2}[A-Z]{0,2}) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[218]=e;e=Object.create(null);e[0]=new RegExp("; *(INFOBAR [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[219]=e;e=Object.create(null);e[0]=new RegExp("; *(JOYPAD|Joypad)[ _]([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[220]=e;e=Object.create(null);e[0]=new RegExp("; *(Vox|VOX|Arc|K080) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[221]=e;e=Object.create(null);e[0]=new RegExp("\\b(Kobo Touch)\\b");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[222]=e;e=Object.create(null);e[0]=new RegExp("; *(K-Touch)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[223]=e;e=Object.create(null);e[0]=new RegExp("; *((?:EV|KM)-S\\d+[A-Z]?) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[224]=e;e=Object.create(null);e[0]=new RegExp("; *(Zio|Hydro|Torque|Event|EVENT|Echo|Milano|Rise|URBANO PROGRESSO|WX04K|WX06K|WX10K|KYL21|101K|C5[12]\\d{2}) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[225]=e;e=Object.create(null);e[0]=new RegExp("; *(?:LAVA[ _])?IRIS[ _\\-]?([^/;\\)]+) *(?:;|\\)|Build)");e[1]="Iris $1";e[2]=0;e[3]=0;e[4]=0;h.device[226]=e;e=Object.create(null);e[0]=new RegExp("; *LAVA[ _]([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[227]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(Aspire A1)|(?:LEMON|Lemon)[ _]([^;/]+))_? Build");e[1]="Lemon $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[228]=e;e=Object.create(null);e[0]=new RegExp("; *(TAB-1012) Build/");e[1]="Lenco $1";e[2]=0;e[3]=0;e[4]=0;h.device[229]=e;e=Object.create(null);e[0]=new RegExp("; Lenco ([^;/]+) Build/");e[1]="Lenco $1";e[2]=0;e[3]=0;e[4]=0;h.device[230]=e;e=Object.create(null);e[0]=new RegExp("; *(A1_07|A2107A-H|S2005A-H|S1-37AH0) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[231]=e;e=Object.create(null);e[0]=new RegExp("; *(Idea[Tp]ab)[ _]([^;/]+);? Build");e[1]="Lenovo $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[232]=e;e=Object.create(null);e[0]=new RegExp("; *(Idea(?:Tab|pad)) ?([^;/]+) Build");e[1]="Lenovo $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[233]=e;e=Object.create(null);e[0]=new RegExp("; *(ThinkPad) ?(Tablet) Build/");e[1]="Lenovo $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[234]=e;e=Object.create(null);e[0]=new RegExp("; *(?:LNV-)?(?:=?[Ll]enovo[ _\\-]?|LENOVO[ _])+(.+?)(?:Build|[;/\\)])");e[1]="Lenovo $1";e[2]=0;e[3]=0;e[4]=0;h.device[235]=e;e=Object.create(null);e[0]=new RegExp("[;,] (?:Vodafone )?(SmartTab) ?(II) ?(\\d+) Build/");e[1]="Lenovo $1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[236]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Ideapad )?K1 Build/");e[1]="Lenovo Ideapad K1";e[2]=0;e[3]=0;e[4]=0;h.device[237]=e;e=Object.create(null);e[0]=new RegExp("; *(3GC101|3GW10[01]|A390) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[238]=e;e=Object.create(null);e[0]=new RegExp("\\b(?:Lenovo|LENOVO)+[ _\\-]?([^,;:/ ]+)");e[1]="Lenovo $1";e[2]=0;e[3]=0;e[4]=0;h.device[239]=e;e=Object.create(null);e[0]=new RegExp("; *(MFC\\d+)[A-Z]{2}([^;,/]*),? Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[240]=e;e=Object.create(null);e[0]=new RegExp("; *(E[34][0-9]{2}|LS[6-8][0-9]{2}|VS[6-9][0-9]+[^;/]+|Nexus 4|Nexus 5X?|GT540f?|Optimus (?:2X|G|4X HD)|OptimusX4HD) *(?:Build|;)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[241]=e;e=Object.create(null);e[0]=new RegExp("[;:] *(L-\\d+[A-Z]|LGL\\d+[A-Z]?)(?:/V\\d+)? *(?:Build|[;\\)])");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[242]=e;e=Object.create(null);e[0]=new RegExp("; *(LG-)([A-Z]{1,2}\\d{2,}[^,;/\\)\\(]*?)(?:Build| V\\d+|[,;/\\)\\(]|$)");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[243]=e;e=Object.create(null);e[0]=new RegExp("; *(LG[ \\-]|LG)([^;/]+)[;/]? Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[244]=e;e=Object.create(null);e[0]=new RegExp("^(LG)-([^;/]+)/ Mozilla/.*; Android");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[245]=e;e=Object.create(null);e[0]=new RegExp("(Web0S); Linux/(SmartTV)");e[1]="LG $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[246]=e;e=Object.create(null);e[0]=new RegExp("; *((?:SMB|smb)[^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[247]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Malata|MALATA) ([^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[248]=e;e=Object.create(null);e[0]=new RegExp("; *(MS[45][0-9]{3}|MID0[568][NS]?|MID[1-9]|MID[78]0[1-9]|MID970[1-9]|MID100[1-9]) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[249]=e;e=Object.create(null);e[0]=new RegExp("; *(M1052|M806|M9000|M9100|M9701|MID100|MID120|MID125|MID130|MID135|MID140|MID701|MID710|MID713|MID727|MID728|MID731|MID732|MID733|MID735|MID736|MID737|MID760|MID800|MID810|MID820|MID830|MID833|MID835|MID860|MID900|MID930|MID933|MID960|MID980) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[250]=e;e=Object.create(null);e[0]=new RegExp("; *(GenxDroid7|MSD7.*|AX\\d.*|Tab 701|Tab 722) Build/");e[1]="Maxx $1";e[2]=0;e[3]=0;e[4]=0;h.device[251]=e;e=Object.create(null);e[0]=new RegExp("; *(M-PP[^;/]+|PhonePad ?\\d{2,}[^;/]+) Build");e[1]="Mediacom $1";e[2]=0;e[3]=0;e[4]=0;h.device[252]=e;e=Object.create(null);e[0]=new RegExp("; *(M-MP[^;/]+|SmartPad ?\\d{2,}[^;/]+) Build");e[1]="Mediacom $1";e[2]=0;e[3]=0;e[4]=0;h.device[253]=e;e=Object.create(null);e[0]=new RegExp("; *(?:MD_)?LIFETAB[ _]([^;/]+) Build");e[1]="Medion Lifetab $1";e[2]=0;e[3]=0;e[4]=0;h.device[254]=e;e=Object.create(null);e[0]=new RegExp("; *MEDION ([^;/]+) Build");e[1]="Medion $1";e[2]=0;e[3]=0;e[4]=0;h.device[255]=e;e=Object.create(null);e[0]=new RegExp("; *(M030|M031|M035|M040|M065|m9) Build");e[1]="Meizu $1";e[2]=0;e[3]=0;e[4]=0;h.device[256]=e;e=Object.create(null);e[0]=new RegExp("; *(?:meizu_|MEIZU )(.+?) *(?:Build|[;\\)])");e[1]="Meizu $1";e[2]=0;e[3]=0;e[4]=0;h.device[257]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Micromax[ _](A111|A240)|(A111|A240)) Build");e[1]="Micromax $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[258]=e;e=Object.create(null);e[0]=new RegExp("; *Micromax[ _](A\\d{2,3}[^;/]*) Build");e[1]="Micromax $1";e[2]=0;e[3]=0;e[4]=0;h.device[259]=e;e=Object.create(null);e[0]=new RegExp("; *(A\\d{2}|A[12]\\d{2}|A90S|A110Q) Build");e[1]="Micromax $1";e[2]=0;e[3]=0;e[4]=0;h.device[260]=e;e=Object.create(null);e[0]=new RegExp("; *Micromax[ _](P\\d{3}[^;/]*) Build");e[1]="Micromax $1";e[2]=0;e[3]=0;e[4]=0;h.device[261]=e;e=Object.create(null);e[0]=new RegExp("; *(P\\d{3}|P\\d{3}\\(Funbook\\)) Build");e[1]="Micromax $1";e[2]=0;e[3]=0;e[4]=0;h.device[262]=e;e=Object.create(null);e[0]=new RegExp("; *(MITO)[ _\\-]?([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[263]=e;e=Object.create(null);e[0]=new RegExp("; *(Cynus)[ _](F5|T\\d|.+?) *(?:Build|[;/\\)])");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[264]=e;e=Object.create(null);e[0]=new RegExp("; *(MODECOM )?(FreeTab) ?([^;/]+) Build");e[1]="$1$2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[265]=e;e=Object.create(null);e[0]=new RegExp("; *(MODECOM )([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[266]=e;e=Object.create(null);e[0]=new RegExp("; *(MZ\\d{3}\\+?|MZ\\d{3} 4G|Xoom|XOOM[^;/]*) Build");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[267]=e;e=Object.create(null);e[0]=new RegExp("; *(Milestone )(XT[^;/]*) Build");e[1]="Motorola $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[268]=e;e=Object.create(null);e[0]=new RegExp("; *(Motoroi ?x|Droid X|DROIDX) Build");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[269]=e;e=Object.create(null);e[0]=new RegExp("; *(Droid[^;/]*|DROID[^;/]*|Milestone[^;/]*|Photon|Triumph|Devour|Titanium) Build");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[270]=e;e=Object.create(null);e[0]=new RegExp("; *(A555|A85[34][^;/]*|A95[356]|ME[58]\\d{2}\\+?|ME600|ME632|ME722|MB\\d{3}\\+?|MT680|MT710|MT870|MT887|MT917|WX435|WX453|WX44[25]|XT\\d{3,4}[A-Z\\+]*|CL[iI]Q|CL[iI]Q XT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[271]=e;e=Object.create(null);e[0]=new RegExp("; *(Motorola MOT-|Motorola[ _\\-]|MOT\\-?)([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[272]=e;e=Object.create(null);e[0]=new RegExp("; *(Moto[_ ]?|MOT\\-)([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[273]=e;e=Object.create(null);e[0]=new RegExp("; *((?:MP[DQ]C|MPG\\d{1,4}|MP\\d{3,4}|MID(?:(?:10[234]|114|43|7[247]|8[24]|7)C|8[01]1))[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[274]=e;e=Object.create(null);e[0]=new RegExp("; *(?:MSI[ _])?(Primo\\d+|Enjoy[ _\\-][^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[275]=e;e=Object.create(null);e[0]=new RegExp("; *Multilaser[ _]([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[276]=e;e=Object.create(null);e[0]=new RegExp("; *(My)[_]?(Pad)[ _]([^;/]+) Build");e[1]="$1$2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[277]=e;e=Object.create(null);e[0]=new RegExp("; *(My)\\|?(Phone)[ _]([^;/]+) Build");e[1]="$1$2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[278]=e;e=Object.create(null);e[0]=new RegExp("; *(A\\d+)[ _](Duo)? Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[279]=e;e=Object.create(null);e[0]=new RegExp("; *(myTab[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[280]=e;e=Object.create(null);e[0]=new RegExp("; *(NABI2?-)([^;/]+) Build/");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[281]=e;e=Object.create(null);e[0]=new RegExp("; *(N-\\d+[CDE]) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[282]=e;e=Object.create(null);e[0]=new RegExp("; ?(NEC-)(.*) Build/");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[283]=e;e=Object.create(null);e[0]=new RegExp("; *(LT-NA7) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[284]=e;e=Object.create(null);e[0]=new RegExp("; *(NXM\\d+[A-z0-9_]*|Next\\d[A-z0-9_ \\-]*|NEXT\\d[A-z0-9_ \\-]*|Nextbook [A-z0-9_ ]*|DATAM803HC|M805)(?: Build|[\\);])");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[285]=e;e=Object.create(null);e[0]=new RegExp("; *(Nokia)([ _\\-]*)([^;/]*) Build");e[1]="$1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[286]=e;e=Object.create(null);e[0]=new RegExp("; *(Nook ?|Barnes & Noble Nook |BN )([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[287]=e;e=Object.create(null);e[0]=new RegExp("; *(NOOK )?(BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[288]=e;e=Object.create(null);e[0]=new RegExp("; Build/(Nook)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[289]=e;e=Object.create(null);e[0]=new RegExp("; *(OP110|OliPad[^;/]+) Build");e[1]="Olivetti $1";e[2]=0;e[3]=0;e[4]=0;h.device[290]=e;e=Object.create(null);e[0]=new RegExp("; *OMEGA[ _\\-](MID[^;/]+) Build");e[1]="Omega $1";e[2]=0;e[3]=0;e[4]=0;h.device[291]=e;e=Object.create(null);e[0]=new RegExp("^(MID7500|MID\\d+) Mozilla/5\\.0 \\(iPad;");e[1]="Omega $1";e[2]=0;e[3]=0;e[4]=0;h.device[292]=e;e=Object.create(null);e[0]=new RegExp("; *((?:CIUS|cius)[^;/]*) Build");e[1]="Openpeak $1";e[2]=0;e[3]=0;e[4]=0;h.device[293]=e;e=Object.create(null);e[0]=new RegExp("; *(Find ?(?:5|7a)|R8[012]\\d{1,2}|T703\\d{0,1}|U70\\d{1,2}T?|X90\\d{1,2}) Build");e[1]="Oppo $1";e[2]=0;e[3]=0;e[4]=0;h.device[294]=e;e=Object.create(null);e[0]=new RegExp("; *OPPO ?([^;/]+) Build/");e[1]="Oppo $1";e[2]=0;e[3]=0;e[4]=0;h.device[295]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Odys\\-|ODYS\\-|ODYS )([^;/]+) Build");e[1]="Odys $1";e[2]=0;e[3]=0;e[4]=0;h.device[296]=e;e=Object.create(null);e[0]=new RegExp("; *(SELECT) ?(7) Build");e[1]="Odys $1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[297]=e;e=Object.create(null);e[0]=new RegExp("; *(PEDI)_(PLUS)_(W) Build");e[1]="Odys $1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[298]=e;e=Object.create(null);e[0]=new RegExp("; *(AEON|BRAVIO|FUSION|FUSION2IN1|Genio|EOS10|IEOS[^;/]*|IRON|Loox|LOOX|LOOX Plus|Motion|NOON|NOON_PRO|NEXT|OPOS|PEDI[^;/]*|PRIME[^;/]*|STUDYTAB|TABLO|Tablet-PC-4|UNO_X8|XELIO[^;/]*|Xelio ?\\d+ ?[Pp]ro|XENO10|XPRESS PRO) Build");e[1]="Odys $1";e[2]=0;e[3]=0;e[4]=0;h.device[299]=e;e=Object.create(null);e[0]=new RegExp("; (ONE [a-zA-Z]\\d+) Build/");e[1]="OnePlus $1";e[2]=0;e[3]=0;e[4]=0;h.device[300]=e;e=Object.create(null);e[0]=new RegExp("; (ONEPLUS [a-zA-Z]\\d+) Build/");e[1]="OnePlus $1";e[2]=0;e[3]=0;e[4]=0;h.device[301]=e;e=Object.create(null);e[0]=new RegExp("; *(TP-\\d+) Build/");e[1]="Orion $1";e[2]=0;e[3]=0;e[4]=0;h.device[302]=e;e=Object.create(null);e[0]=new RegExp("; *(G100W?) Build/");e[1]="PackardBell $1";e[2]=0;e[3]=0;e[4]=0;h.device[303]=e;e=Object.create(null);e[0]=new RegExp("; *(Panasonic)[_ ]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[304]=e;e=Object.create(null);e[0]=new RegExp("; *(FZ-A1B|JT-B1) Build");e[1]="Panasonic $1";e[2]=0;e[3]=0;e[4]=0;h.device[305]=e;e=Object.create(null);e[0]=new RegExp("; *(dL1|DL1) Build");e[1]="Panasonic $1";e[2]=0;e[3]=0;e[4]=0;h.device[306]=e;e=Object.create(null);e[0]=new RegExp("; *(SKY[ _])?(IM\\-[AT]\\d{3}[^;/]+).* Build/");e[1]="Pantech $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[307]=e;e=Object.create(null);e[0]=new RegExp("; *((?:ADR8995|ADR910L|ADR930L|ADR930VW|PTL21|P8000)(?: 4G)?) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[308]=e;e=Object.create(null);e[0]=new RegExp("; *Pantech([^;/]+).* Build/");e[1]="Pantech $1";e[2]=0;e[3]=0;e[4]=0;h.device[309]=e;e=Object.create(null);e[0]=new RegExp("; *(papyre)[ _\\-]([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[310]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Touchlet )?(X10\\.[^;/]+) Build/");e[1]="Pearl $1";e[2]=0;e[3]=0;e[4]=0;h.device[311]=e;e=Object.create(null);e[0]=new RegExp("; PHICOMM (i800) Build/");e[1]="Phicomm $1";e[2]=0;e[3]=0;e[4]=0;h.device[312]=e;e=Object.create(null);e[0]=new RegExp("; PHICOMM ([^;/]+) Build/");e[1]="Phicomm $1";e[2]=0;e[3]=0;e[4]=0;h.device[313]=e;e=Object.create(null);e[0]=new RegExp("; *(FWS\\d{3}[^;/]+) Build/");e[1]="Phicomm $1";e[2]=0;e[3]=0;e[4]=0;h.device[314]=e;e=Object.create(null);e[0]=new RegExp("; *(D633|D822|D833|T539|T939|V726|W335|W336|W337|W3568|W536|W5510|W626|W632|W6350|W6360|W6500|W732|W736|W737|W7376|W820|W832|W8355|W8500|W8510|W930) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[315]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Philips|PHILIPS)[ _]([^;/]+) Build");e[1]="Philips $1";e[2]=0;e[3]=0;e[4]=0;h.device[316]=e;e=Object.create(null);e[0]=new RegExp("Android 4\\..*; *(M[12356789]|U[12368]|S[123])\\ ?(pro)? Build");e[1]="Pipo $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[317]=e;e=Object.create(null);e[0]=new RegExp("; *(MOMO[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[318]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Polaroid[ _])?((?:MIDC\\d{3,}|PMID\\d{2,}|PTAB\\d{3,})[^;/]*)(\\/[^;/]*)? Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[319]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Polaroid )(Tablet) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[320]=e;e=Object.create(null);e[0]=new RegExp("; *(POMP)[ _\\-](.+?) *(?:Build|[;/\\)])");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[321]=e;e=Object.create(null);e[0]=new RegExp("; *(TB07STA|TB10STA|TB07FTA|TB10FTA) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[322]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Positivo )?((?:YPY|Ypy)[^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[323]=e;e=Object.create(null);e[0]=new RegExp("; *(MOB-[^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[324]=e;e=Object.create(null);e[0]=new RegExp("; *POV[ _\\-]([^;/]+) Build/");e[1]="POV $1";e[2]=0;e[3]=0;e[4]=0;h.device[325]=e;e=Object.create(null);e[0]=new RegExp("; *((?:TAB-PLAYTAB|TAB-PROTAB|PROTAB|PlayTabPro|Mobii[ _\\-]|TAB-P)[^;/]*) Build/");e[1]="POV $1";e[2]=0;e[3]=0;e[4]=0;h.device[326]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Prestigio )?((?:PAP|PMP)\\d[^;/]+) Build/");e[1]="Prestigio $1";e[2]=0;e[3]=0;e[4]=0;h.device[327]=e;e=Object.create(null);e[0]=new RegExp("; *(PLT[0-9]{4}.*) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[328]=e;e=Object.create(null);e[0]=new RegExp("; *(A2|A5|A8|A900)_?(Classic)? Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[329]=e;e=Object.create(null);e[0]=new RegExp("; *(Q[Mm]obile)_([^_]+)_([^_]+) Build");e[1]="Qmobile $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[330]=e;e=Object.create(null);e[0]=new RegExp("; *(Q\\-?[Mm]obile)[_ ](A[^;/]+) Build");e[1]="Qmobile $2";e[2]=0;e[3]=0;e[4]=0;h.device[331]=e;e=Object.create(null);e[0]=new RegExp("; *(Q\\-Smart)[ _]([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[332]=e;e=Object.create(null);e[0]=new RegExp("; *(Q\\-?[Mm]obile)[ _\\-](S[^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[333]=e;e=Object.create(null);e[0]=new RegExp("; *(TA1013) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[334]=e;e=Object.create(null);e[0]=new RegExp("; (RCT\\w+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[335]=e;e=Object.create(null);e[0]=new RegExp("; *(RK\\d+),? Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[336]=e;e=Object.create(null);e[0]=new RegExp(" Build/(RK\\d+)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[337]=e;e=Object.create(null);e[0]=new RegExp("; *(SAMSUNG |Samsung )?((?:Galaxy (?:Note II|S\\d)|GT-I9082|GT-I9205|GT-N7\\d{3}|SM-N9005)[^;/]*)\\/?[^;/]* Build/");e[1]="Samsung $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[338]=e;e=Object.create(null);e[0]=new RegExp("; *(Google )?(Nexus [Ss](?: 4G)?) Build/");e[1]="Samsung $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[339]=e;e=Object.create(null);e[0]=new RegExp("; *(SAMSUNG |Samsung )([^\\/]*)\\/[^ ]* Build/");e[1]="Samsung $2";e[2]=0;e[3]=0;e[4]=0;h.device[340]=e;e=Object.create(null);e[0]=new RegExp("; *(Galaxy(?: Ace| Nexus| S ?II+|Nexus S| with MCR 1.2| Mini Plus 4G)?) Build/");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[341]=e;e=Object.create(null);e[0]=new RegExp("; *(SAMSUNG[ _\\-] *)+([^;/]+) Build");e[1]="Samsung $2";e[2]=0;e[3]=0;e[4]=0;h.device[342]=e;e=Object.create(null);e[0]=new RegExp("; *(SAMSUNG-)?(GT\\-[BINPS]\\d{4}[^\\/]*)(\\/[^ ]*) Build");e[1]="Samsung $1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[343]=e;e=Object.create(null);e[0]=new RegExp("(?:; *|^)((?:GT\\-[BIiNPS]\\d{4}|I9\\d{2}0[A-Za-z\\+]?\\b)[^;/\\)]*?)(?:Build|Linux|MIUI|[;/\\)])");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[344]=e;e=Object.create(null);e[0]=new RegExp("; (SAMSUNG-)([A-Za-z0-9\\-]+).* Build/");e[1]="Samsung $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[345]=e;e=Object.create(null);e[0]=new RegExp("; *((?:SCH|SGH|SHV|SHW|SPH|SC|SM)\\-[A-Za-z0-9 ]+)(/?[^ ]*)? Build");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[346]=e;e=Object.create(null);e[0]=new RegExp(" ((?:SCH)\\-[A-Za-z0-9 ]+)(/?[^ ]*)? Build");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[347]=e;e=Object.create(null);e[0]=new RegExp("; *(Behold ?(?:2|II)|YP\\-G[^;/]+|EK-GC100|SCL21|I9300) Build");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[348]=e;e=Object.create(null);e[0]=new RegExp("; *(SH\\-?\\d\\d[^;/]+|SBM\\d[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[349]=e;e=Object.create(null);e[0]=new RegExp("; *(SHARP[ -])([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[350]=e;e=Object.create(null);e[0]=new RegExp("; *(SPX[_\\-]\\d[^;/]*) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[351]=e;e=Object.create(null);e[0]=new RegExp("; *(SX7\\-PEARL\\.GmbH) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[352]=e;e=Object.create(null);e[0]=new RegExp("; *(SP[T]?\\-\\d{2}[^;/]*) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[353]=e;e=Object.create(null);e[0]=new RegExp("; *(SK\\-.*) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[354]=e;e=Object.create(null);e[0]=new RegExp("; *(?:SKYTEX|SX)-([^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[355]=e;e=Object.create(null);e[0]=new RegExp("; *(IMAGINE [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[356]=e;e=Object.create(null);e[0]=new RegExp("; *(SmartQ) ?([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[357]=e;e=Object.create(null);e[0]=new RegExp("; *(WF7C|WF10C|SBT[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[358]=e;e=Object.create(null);e[0]=new RegExp("; *(SBM(?:003SH|005SH|006SH|007SH|102SH)) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[359]=e;e=Object.create(null);e[0]=new RegExp("; *(003P|101P|101P11C|102P) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[360]=e;e=Object.create(null);e[0]=new RegExp("; *(00\\dZ) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[361]=e;e=Object.create(null);e[0]=new RegExp("; HTC(X06HT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[362]=e;e=Object.create(null);e[0]=new RegExp("; *(001HT|X06HT) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[363]=e;e=Object.create(null);e[0]=new RegExp("; *(201M) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[364]=e;e=Object.create(null);e[0]=new RegExp("; *(ST\\d{4}.*)Build/ST");e[1]="Trekstor $1";e[2]=0;e[3]=0;e[4]=0;h.device[365]=e;e=Object.create(null);e[0]=new RegExp("; *(ST\\d{4}.*) Build/");e[1]="Trekstor $1";e[2]=0;e[3]=0;e[4]=0;h.device[366]=e;e=Object.create(null);e[0]=new RegExp("; *(Sony ?Ericsson ?)([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[367]=e;e=Object.create(null);e[0]=new RegExp("; *((?:SK|ST|E|X|LT|MK|MT|WT)\\d{2}[a-z0-9]*(?:-o)?|R800i|U20i) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[368]=e;e=Object.create(null);e[0]=new RegExp("; *(Xperia (?:A8|Arc|Acro|Active|Live with Walkman|Mini|Neo|Play|Pro|Ray|X\\d+)[^;/]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[369]=e;e=Object.create(null);e[0]=new RegExp("; Sony (Tablet[^;/]+) Build");e[1]="Sony $1";e[2]=0;e[3]=0;e[4]=0;h.device[370]=e;e=Object.create(null);e[0]=new RegExp("; Sony ([^;/]+) Build");e[1]="Sony $1";e[2]=0;e[3]=0;e[4]=0;h.device[371]=e;e=Object.create(null);e[0]=new RegExp("; *(Sony)([A-Za-z0-9\\-]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[372]=e;e=Object.create(null);e[0]=new RegExp("; *(Xperia [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[373]=e;e=Object.create(null);e[0]=new RegExp("; *(C(?:1[0-9]|2[0-9]|53|55|6[0-9])[0-9]{2}|D[25]\\d{3}|D6[56]\\d{2}) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[374]=e;e=Object.create(null);e[0]=new RegExp("; *(SGP\\d{3}|SGPT\\d{2}) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[375]=e;e=Object.create(null);e[0]=new RegExp("; *(NW-Z1000Series) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[376]=e;e=Object.create(null);e[0]=new RegExp("PLAYSTATION 3");e[1]="PlayStation 3";e[2]=0;e[3]=0;e[4]=0;h.device[377]=e;e=Object.create(null);e[0]=new RegExp("(PlayStation (?:Portable|Vita|\\d+))");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[378]=e;e=Object.create(null);e[0]=new RegExp("; *((?:CSL_Spice|Spice|SPICE|CSL)[ _\\-]?)?([Mm][Ii])([ _\\-])?(\\d{3}[^;/]*) Build/");e[1]="$1$2$3$4";e[2]=0;e[3]=0;e[4]=0;h.device[379]=e;e=Object.create(null);e[0]=new RegExp("; *(Sprint )(.+?) *(?:Build|[;/])");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[380]=e;e=Object.create(null);e[0]=new RegExp("\\b(Sprint)[: ]([^;,/ ]+)");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[381]=e;e=Object.create(null);e[0]=new RegExp("; *(TAGI[ ]?)(MID) ?([^;/]+) Build/");e[1]="$1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[382]=e;e=Object.create(null);e[0]=new RegExp("; *(Oyster500|Opal 800) Build");e[1]="Tecmobile $1";e[2]=0;e[3]=0;e[4]=0;h.device[383]=e;e=Object.create(null);e[0]=new RegExp("; *(TECNO[ _])([^;/]+) Build/");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[384]=e;e=Object.create(null);e[0]=new RegExp("; *Android for (Telechips|Techvision) ([^ ]+) ");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[385]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Hub2) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[386]=e;e=Object.create(null);e[0]=new RegExp("; *(PAD) ?(100[12]) Build/");e[1]="Terra $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[387]=e;e=Object.create(null);e[0]=new RegExp("; *(T[BM]-\\d{3}[^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[388]=e;e=Object.create(null);e[0]=new RegExp("; *(tolino [^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[389]=e;e=Object.create(null);e[0]=new RegExp("; *Build/.* (TOLINO_BROWSER)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[390]=e;e=Object.create(null);e[0]=new RegExp("; *(?:CJ[ -])?(ThL|THL)[ -]([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[391]=e;e=Object.create(null);e[0]=new RegExp("; *(T100|T200|T5|W100|W200|W8s) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[392]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile[ _]G2[ _]Touch) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[393]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile[ _]G2) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[394]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile myTouch Q) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[395]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile myTouch) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[396]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile_Espresso) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[397]=e;e=Object.create(null);e[0]=new RegExp("; *(T-Mobile G1) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[398]=e;e=Object.create(null);e[0]=new RegExp("\\b(T-Mobile ?)?(myTouch)[ _]?([34]G)[ _]?([^\\/]*) (?:Mozilla|Build)");e[1]="$1$2 $3 $4";e[2]=0;e[3]=0;e[4]=0;h.device[399]=e;e=Object.create(null);e[0]=new RegExp("\\b(T-Mobile)_([^_]+)_(.*) Build");e[1]="$1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[400]=e;e=Object.create(null);e[0]=new RegExp("\\b(T-Mobile)[_ ]?(.*?)Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[401]=e;e=Object.create(null);e[0]=new RegExp(" (ATP[0-9]{4}) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[402]=e;e=Object.create(null);e[0]=new RegExp(" *(TOOKY)[ _\\-]([^;/]+) ?(?:Build|;)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[403]=e;e=Object.create(null);e[0]=new RegExp("\\b(TOSHIBA_AC_AND_AZ|TOSHIBA_FOLIO_AND_A|FOLIO_AND_A)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[404]=e;e=Object.create(null);e[0]=new RegExp("; *([Ff]olio ?100) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[405]=e;e=Object.create(null);e[0]=new RegExp("; *(AT[0-9]{2,3}(?:\\-A|LE\\-A|PE\\-A|SE|a)?|AT7-A|AT1S0|Hikari-iFrame/WDPF-[^;/]+|THRiVE|Thrive) Build/");e[1]="Toshiba $1";e[2]=0;e[3]=0;e[4]=0;h.device[406]=e;e=Object.create(null);e[0]=new RegExp("; *(TM-MID\\d+[^;/]+|TOUCHMATE|MID-750) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[407]=e;e=Object.create(null);e[0]=new RegExp("; *(TM-SM\\d+[^;/]+) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[408]=e;e=Object.create(null);e[0]=new RegExp("; *(A10 [Bb]asic2?) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[409]=e;e=Object.create(null);e[0]=new RegExp("; *(TREQ[ _\\-])([^;/]+) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[410]=e;e=Object.create(null);e[0]=new RegExp("; *(X-?5|X-?3) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[411]=e;e=Object.create(null);e[0]=new RegExp("; *(A502\\+?|A936|A603|X1|X2) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[412]=e;e=Object.create(null);e[0]=new RegExp("(TOUCH(?:TAB|PAD).+?) Build/");e[1]="Versus $1";e[2]=0;e[3]=0;e[4]=0;h.device[413]=e;e=Object.create(null);e[0]=new RegExp("(VERTU) ([^;/]+) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[414]=e;e=Object.create(null);e[0]=new RegExp("; *(Videocon)[ _\\-]([^;/]+) *(?:Build|;)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[415]=e;e=Object.create(null);e[0]=new RegExp(" (VT\\d{2}[A-Za-z]*) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[416]=e;e=Object.create(null);e[0]=new RegExp("; *((?:ViewPad|ViewPhone|VSD)[^;/]+) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[417]=e;e=Object.create(null);e[0]=new RegExp("; *(ViewSonic-)([^;/]+) Build/");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[418]=e;e=Object.create(null);e[0]=new RegExp("; *(GTablet.*) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[419]=e;e=Object.create(null);e[0]=new RegExp("; *([Vv]ivo)[ _]([^;/]+) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[420]=e;e=Object.create(null);e[0]=new RegExp("(Vodafone) (.*) Build/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[421]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Walton[ _\\-])?(Primo[ _\\-][^;/]+) Build");e[1]="Walton $1";e[2]=0;e[3]=0;e[4]=0;h.device[422]=e;e=Object.create(null);e[0]=new RegExp("; *(?:WIKO[ \\-])?(CINK\\+?|BARRY|BLOOM|DARKFULL|DARKMOON|DARKNIGHT|DARKSIDE|FIZZ|HIGHWAY|IGGY|OZZY|RAINBOW|STAIRWAY|SUBLIM|WAX|CINK [^;/]+) Build/");e[1]="Wiko $1";e[2]=0;e[3]=0;e[4]=0;h.device[423]=e;e=Object.create(null);e[0]=new RegExp("; *WellcoM-([^;/]+) Build");e[1]="Wellcom $1";e[2]=0;e[3]=0;e[4]=0;h.device[424]=e;e=Object.create(null);e[0]=new RegExp("(?:(WeTab)-Browser|; (wetab) Build)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[425]=e;e=Object.create(null);e[0]=new RegExp("; *(AT-AS[^;/]+) Build");e[1]="Wolfgang $1";e[2]=0;e[3]=0;e[4]=0;h.device[426]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Woxter|Wxt) ([^;/]+) Build");e[1]="Woxter $1";e[2]=0;e[3]=0;e[4]=0;h.device[427]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Xenta |Luna )?(TAB[234][0-9]{2}|TAB0[78]-\\d{3}|TAB0?9-\\d{3}|TAB1[03]-\\d{3}|SMP\\d{2}-\\d{3}) Build/");e[1]="Yarvik $1";e[2]=0;e[3]=0;e[4]=0;h.device[428]=e;e=Object.create(null);e[0]=new RegExp("; *([A-Z]{2,4})(M\\d{3,}[A-Z]{2})([^;\\)\\/]*)(?: Build|[;\\)])");e[1]="Yifang $1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[429]=e;e=Object.create(null);e[0]=new RegExp("; *((MI|HM|MI-ONE|Redmi)[ -](NOTE |Note )?[^;/]*) (Build|MIUI)/");e[1]="XiaoMi $1";e[2]=0;e[3]=0;e[4]=0;h.device[430]=e;e=Object.create(null);e[0]=new RegExp("; *XOLO[ _]([^;/]*tab.*) Build");e[1]="Xolo $1";e[2]=0;e[3]=0;e[4]=0;h.device[431]=e;e=Object.create(null);e[0]=new RegExp("; *XOLO[ _]([^;/]+) Build");e[1]="Xolo $1";e[2]=0;e[3]=0;e[4]=0;h.device[432]=e;e=Object.create(null);e[0]=new RegExp("; *(q\\d0{2,3}[a-z]?) Build");e[1]="Xolo $1";e[2]=0;e[3]=0;e[4]=0;h.device[433]=e;e=Object.create(null);e[0]=new RegExp("; *(PAD ?[79]\\d+[^;/]*|TelePAD\\d+[^;/]) Build");e[1]="Xoro $1";e[2]=0;e[3]=0;e[4]=0;h.device[434]=e;e=Object.create(null);e[0]=new RegExp("; *(?:(?:ZOPO|Zopo)[ _]([^;/]+)|(ZP ?(?:\\d{2}[^;/]+|C2))|(C[2379])) Build");e[1]="$1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[435]=e;e=Object.create(null);e[0]=new RegExp("; *(ZiiLABS) (Zii[^;/]*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[436]=e;e=Object.create(null);e[0]=new RegExp("; *(Zii)_([^;/]*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[437]=e;e=Object.create(null);e[0]=new RegExp("; *(ARIZONA|(?:ATLAS|Atlas) W|D930|Grand (?:[SX][^;]*|Era|Memo[^;]*)|JOE|(?:Kis|KIS)\\b[^;]*|Libra|Light [^;]*|N8[056][01]|N850L|N8000|N9[15]\\d{2}|N9810|NX501|Optik|(?:Vip )Racer[^;]*|RacerII|RACERII|San Francisco[^;]*|V9[AC]|V55|V881|Z[679][0-9]{2}[A-z]?) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[438]=e;e=Object.create(null);e[0]=new RegExp("; *([A-Z]\\d+)_USA_[^;]* Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[439]=e;e=Object.create(null);e[0]=new RegExp("; *(SmartTab\\d+)[^;]* Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[440]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Blade|BLADE|ZTE-BLADE)([^;/]*) Build");e[1]="ZTE Blade$1";e[2]=0;e[3]=0;e[4]=0;h.device[441]=e;e=Object.create(null);e[0]=new RegExp("; *(?:Skate|SKATE|ZTE-SKATE)([^;/]*) Build");e[1]="ZTE Skate$1";e[2]=0;e[3]=0;e[4]=0;h.device[442]=e;e=Object.create(null);e[0]=new RegExp("; *(Orange |Optimus )(Monte Carlo|San Francisco) Build");e[1]="$1$2";e[2]=0;e[3]=0;e[4]=0;h.device[443]=e;e=Object.create(null);e[0]=new RegExp("; *(?:ZXY-ZTE_|ZTE\\-U |ZTE[\\- _]|ZTE-C[_ ])([^;/]+) Build");e[1]="ZTE $1";e[2]=0;e[3]=0;e[4]=0;h.device[444]=e;e=Object.create(null);e[0]=new RegExp("; (BASE) (lutea|Lutea 2|Tab[^;]*) Build");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[445]=e;e=Object.create(null);e[0]=new RegExp("; (Avea inTouch 2|soft stone|tmn smart a7|Movistar[ _]Link) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[446]=e;e=Object.create(null);e[0]=new RegExp("; *(vp9plus)\\)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[447]=e;e=Object.create(null);e[0]=new RegExp("; ?(Cloud[ _]Z5|z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900) Build/");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[448]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFOT|Kindle Fire) Build\\b");e[1]="Kindle Fire";e[2]=0;e[3]=0;e[4]=0;h.device[449]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFOTE|Amazon Kindle Fire2) Build\\b");e[1]="Kindle Fire 2";e[2]=0;e[3]=0;e[4]=0;h.device[450]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFTT) Build\\b");e[1]="Kindle Fire HD";e[2]=0;e[3]=0;e[4]=0;h.device[451]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFJWI) Build\\b");e[1]='Kindle Fire HD 8.9" WiFi';e[2]=0;e[3]=0;e[4]=0;h.device[452]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFJWA) Build\\b");e[1]='Kindle Fire HD 8.9" 4G';e[2]=0;e[3]=0;e[4]=0;h.device[453]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFSOWI) Build\\b");e[1]='Kindle Fire HD 7" WiFi';e[2]=0;e[3]=0;e[4]=0;h.device[454]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFTHWI) Build\\b");e[1]='Kindle Fire HDX 7" WiFi';e[2]=0;e[3]=0;e[4]=0;h.device[455]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFTHWA) Build\\b");e[1]='Kindle Fire HDX 7" 4G';e[2]=0;e[3]=0;e[4]=0;h.device[456]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFAPWI) Build\\b");e[1]='Kindle Fire HDX 8.9" WiFi';e[2]=0;e[3]=0;e[4]=0;h.device[457]=e;e=Object.create(null);e[0]=new RegExp("; ?(KFAPWA) Build\\b");e[1]='Kindle Fire HDX 8.9" 4G';e[2]=0;e[3]=0;e[4]=0;h.device[458]=e;e=Object.create(null);e[0]=new RegExp("; ?Amazon ([^;/]+) Build\\b");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[459]=e;e=Object.create(null);e[0]=new RegExp("; ?(Kindle) Build\\b");e[1]="Kindle";e[2]=0;e[3]=0;e[4]=0;h.device[460]=e;e=Object.create(null);e[0]=new RegExp("; ?(Silk)/(\\d+)\\.(\\d+)(?:\\.([0-9\\-]+))? Build\\b");e[1]="Kindle Fire";e[2]=0;e[3]=0;e[4]=0;h.device[461]=e;e=Object.create(null);e[0]=new RegExp(" (Kindle)/(\\d+\\.\\d+)");e[1]="Kindle";e[2]=0;e[3]=0;e[4]=0;h.device[462]=e;e=Object.create(null);e[0]=new RegExp(" (Silk|Kindle)/(\\d+)\\.");e[1]="Kindle";e[2]=0;e[3]=0;e[4]=0;h.device[463]=e;e=Object.create(null);e[0]=new RegExp("(sprd)\\-([^/]+)/");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[464]=e;e=Object.create(null);e[0]=new RegExp("; *(H\\d{2}00\\+?) Build");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[465]=e;e=Object.create(null);e[0]=new RegExp("; *(iphone|iPhone5) Build/");e[1]="Xianghe $1";e[2]=0;e[3]=0;e[4]=0;h.device[466]=e;e=Object.create(null);e[0]=new RegExp("; *(e\\d{4}[a-z]?_?v\\d+|v89_[^;/]+)[^;/]+ Build/");e[1]="Xianghe $1";e[2]=0;e[3]=0;e[4]=0;h.device[467]=e;e=Object.create(null);e[0]=new RegExp("\\bUSCC[_\\-]?([^ ;/\\)]+)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[468]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:ALCATEL)[^;]*; *([^;,\\)]+)");e[1]="Alcatel $1";e[2]=0;e[3]=0;e[4]=0;h.device[469]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?|WpsLondonTest; ?)?(?:ASUS|Asus)[^;]*; *([^;,\\)]+)");e[1]="Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[470]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:DELL|Dell)[^;]*; *([^;,\\)]+)");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[471]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?|WpsLondonTest; ?)?(?:HTC|Htc|HTC_blocked[^;]*)[^;]*; *(?:HTC)?([^;,\\)]+)");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[472]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:HUAWEI)[^;]*; *(?:HUAWEI )?([^;,\\)]+)");e[1]="Huawei $1";e[2]=0;e[3]=0;e[4]=0;h.device[473]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:LG|Lg)[^;]*; *(?:LG[ \\-])?([^;,\\)]+)");e[1]="LG $1";e[2]=0;e[3]=0;e[4]=0;h.device[474]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:rv:11; )?(?:NOKIA|Nokia)[^;]*; *(?:NOKIA ?|Nokia ?|LUMIA ?|[Ll]umia ?)*(\\d{3,}[^;\\)]*)");e[1]="Lumia $1";e[2]=0;e[3]=0;e[4]=0;h.device[475]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:NOKIA|Nokia)[^;]*; *(RM-\\d{3,})");e[1]="Nokia $1";e[2]=0;e[3]=0;e[4]=0;h.device[476]=e;e=Object.create(null);e[0]=new RegExp("(?:Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)]|WPDesktop;) ?(?:ARM; ?Touch; ?|Touch; ?)?(?:NOKIA|Nokia)[^;]*; *(?:NOKIA ?|Nokia ?|LUMIA ?|[Ll]umia ?)*([^;\\)]+)");e[1]="Nokia $1";e[2]=0;e[3]=0;e[4]=0;h.device[477]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:Microsoft(?: Corporation)?)[^;]*; *([^;,\\)]+)");e[1]="Microsoft $1";e[2]=0;e[3]=0;e[4]=0;h.device[478]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?|WpsLondonTest; ?)?(?:SAMSUNG)[^;]*; *(?:SAMSUNG )?([^;,\\.\\)]+)");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[479]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?|WpsLondonTest; ?)?(?:TOSHIBA|FujitsuToshibaMobileCommun)[^;]*; *([^;,\\)]+)");e[1]="Toshiba $1";e[2]=0;e[3]=0;e[4]=0;h.device[480]=e;e=Object.create(null);e[0]=new RegExp("Windows Phone [^;]+; .*?IEMobile/[^;\\)]+[;\\)] ?(?:ARM; ?Touch; ?|Touch; ?|WpsLondonTest; ?)?([^;]+); *([^;,\\)]+)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[481]=e;e=Object.create(null);e[0]=new RegExp("(?:^|; )SAMSUNG\\-([A-Za-z0-9\\-]+).* Bada/");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[482]=e;e=Object.create(null);e[0]=new RegExp("\\(Mobile; ALCATEL ?(One|ONE) ?(Touch|TOUCH) ?([^;/]+)(?:/[^;]+)?; rv:[^\\)]+\\) Gecko/[^\\/]+ Firefox/");e[1]="Alcatel $1 $2 $3";e[2]=0;e[3]=0;e[4]=0;h.device[483]=e;e=Object.create(null);e[0]=new RegExp("\\(Mobile; (?:ZTE([^;]+)|(OpenC)); rv:[^\\)]+\\) Gecko/[^\\/]+ Firefox/");e[1]="ZTE $1$2";e[2]=0;e[3]=0;e[4]=0;h.device[484]=e;e=Object.create(null);e[0]=new RegExp("Nokia(N[0-9]+)([A-z_\\-][A-z0-9_\\-]*)");e[1]="Nokia $1";e[2]=0;e[3]=0;e[4]=0;h.device[485]=e;e=Object.create(null);e[0]=new RegExp("(?:NOKIA|Nokia)(?:\\-| *)(?:([A-Za-z0-9]+)\\-[0-9a-f]{32}|([A-Za-z0-9\\-]+)(?:UCBrowser)|([A-Za-z0-9\\-]+))");e[1]="Nokia $1$2$3";e[2]=0;e[3]=0;e[4]=0;h.device[486]=e;e=Object.create(null);e[0]=new RegExp("Lumia ([A-Za-z0-9\\-]+)");e[1]="Lumia $1";e[2]=0;e[3]=0;e[4]=0;h.device[487]=e;e=Object.create(null);e[0]=new RegExp("\\(Symbian; U; S60 V5; [A-z]{2}\\-[A-z]{2}; (SonyEricsson|Samsung|Nokia|LG)([^;/]+)\\)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[488]=e;e=Object.create(null);e[0]=new RegExp("\\(Symbian(?:/3)?; U; ([^;]+);");e[1]="Nokia $1";e[2]=0;e[3]=0;e[4]=0;h.device[489]=e;e=Object.create(null);e[0]=new RegExp("BB10; ([A-Za-z0-9\\- ]+)\\)");e[1]="BlackBerry $1";e[2]=0;e[3]=0;e[4]=0;h.device[490]=e;e=Object.create(null);e[0]=new RegExp("Play[Bb]ook.+RIM Tablet OS");e[1]="BlackBerry Playbook";e[2]=0;e[3]=0;e[4]=0;h.device[491]=e;e=Object.create(null);e[0]=new RegExp("Black[Bb]erry ([0-9]+);");e[1]="BlackBerry $1";e[2]=0;e[3]=0;e[4]=0;h.device[492]=e;e=Object.create(null);e[0]=new RegExp("Black[Bb]erry([0-9]+)");e[1]="BlackBerry $1";e[2]=0;e[3]=0;e[4]=0;h.device[493]=e;e=Object.create(null);e[0]=new RegExp("Black[Bb]erry;");e[1]="BlackBerry";e[2]=0;e[3]=0;e[4]=0;h.device[494]=e;e=Object.create(null);e[0]=new RegExp("(Pre|Pixi)/\\d+\\.\\d+");e[1]="Palm $1";e[2]=0;e[3]=0;e[4]=0;h.device[495]=e;e=Object.create(null);e[0]=new RegExp("Palm([0-9]+)");e[1]="Palm $1";e[2]=0;e[3]=0;e[4]=0;h.device[496]=e;e=Object.create(null);e[0]=new RegExp("Treo([A-Za-z0-9]+)");e[1]="Palm Treo $1";e[2]=0;e[3]=0;e[4]=0;h.device[497]=e;e=Object.create(null);e[0]=new RegExp("webOS.*(P160U(?:NA)?)/(\\d+).(\\d+)");e[1]="HP Veer";e[2]=0;e[3]=0;e[4]=0;h.device[498]=e;e=Object.create(null);e[0]=new RegExp("(Touch[Pp]ad)/\\d+\\.\\d+");e[1]="HP TouchPad";e[2]=0;e[3]=0;e[4]=0;h.device[499]=e;e=Object.create(null);e[0]=new RegExp("HPiPAQ([A-Za-z0-9]+)/\\d+.\\d+");e[1]="HP iPAQ $1";e[2]=0;e[3]=0;e[4]=0;h.device[500]=e;e=Object.create(null);e[0]=new RegExp("PDA; (PalmOS)/sony/model ([a-z]+)/Revision");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[501]=e;e=Object.create(null);e[0]=new RegExp("(Apple\\s?TV)");e[1]="AppleTV";e[2]=0;e[3]=0;e[4]=0;h.device[502]=e;e=Object.create(null);e[0]=new RegExp("(QtCarBrowser)");e[1]="Tesla Model S";e[2]=0;e[3]=0;e[4]=0;h.device[503]=e;e=Object.create(null);e[0]=new RegExp("(iPhone|iPad|iPod)(\\d+,\\d+)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[504]=e;e=Object.create(null);e[0]=new RegExp("(iPad)(?:;| Simulator;)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[505]=e;e=Object.create(null);e[0]=new RegExp("(iPod)(?:;| touch;| Simulator;)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[506]=e;e=Object.create(null);e[0]=new RegExp("(iPhone)(?:;| Simulator;)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[507]=e;e=Object.create(null);e[0]=new RegExp("iPhone");e[1]="iPhone";e[2]=0;e[3]=0;e[4]=0;h.device[508]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/\\d.*\\(((?:Mac|iMac|PowerMac|PowerBook)[^\\d]*)(\\d+)(?:,|%2C)(\\d+)");e[1]="$1$2,$3";e[2]=0;e[3]=0;e[4]=0;h.device[509]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/\\d+\\.\\d+\\.\\d+ \\(x86_64\\)");e[1]="Mac";e[2]=0;e[3]=0;e[4]=0;h.device[510]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/\\d");e[1]="iOS-Device";e[2]=0;e[3]=0;e[4]=0;h.device[511]=e;e=Object.create(null);e[0]=new RegExp("acer_([A-Za-z0-9]+)_");e[1]="Acer $1";e[2]=0;e[3]=0;e[4]=0;h.device[512]=e;e=Object.create(null);e[0]=new RegExp("(?:ALCATEL|Alcatel)-([A-Za-z0-9\\-]+)");e[1]="Alcatel $1";e[2]=0;e[3]=0;e[4]=0;h.device[513]=e;e=Object.create(null);e[0]=new RegExp("(?:Amoi|AMOI)\\-([A-Za-z0-9]+)");e[1]="Amoi $1";e[2]=0;e[3]=0;e[4]=0;h.device[514]=e;e=Object.create(null);e[0]=new RegExp("(?:; |\\/|^)((?:Transformer (?:Pad|Prime) |Transformer |PadFone[ _]?)[A-Za-z0-9]*)");e[1]="Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[515]=e;e=Object.create(null);e[0]=new RegExp("(?:asus.*?ASUS|Asus|ASUS|asus)[\\- ;]*((?:Transformer (?:Pad|Prime) |Transformer |Padfone |Nexus[ _])?[A-Za-z0-9]+)");e[1]="Asus $1";e[2]=0;e[3]=0;e[4]=0;h.device[516]=e;e=Object.create(null);e[0]=new RegExp("\\bBIRD[ \\-\\.]([A-Za-z0-9]+)");e[1]="Bird $1";e[2]=0;e[3]=0;e[4]=0;h.device[517]=e;e=Object.create(null);e[0]=new RegExp("\\bDell ([A-Za-z0-9]+)");e[1]="Dell $1";e[2]=0;e[3]=0;e[4]=0;h.device[518]=e;e=Object.create(null);e[0]=new RegExp("DoCoMo/2\\.0 ([A-Za-z0-9]+)");e[1]="DoCoMo $1";e[2]=0;e[3]=0;e[4]=0;h.device[519]=e;e=Object.create(null);e[0]=new RegExp("([A-Za-z0-9]+)_W;FOMA");e[1]="DoCoMo $1";e[2]=0;e[3]=0;e[4]=0;h.device[520]=e;e=Object.create(null);e[0]=new RegExp("([A-Za-z0-9]+);FOMA");e[1]="DoCoMo $1";e[2]=0;e[3]=0;e[4]=0;h.device[521]=e;e=Object.create(null);e[0]=new RegExp("\\b(?:HTC/|HTC/[a-z0-9]+/)?HTC[ _\\-;]? *(.*?)(?:-?Mozilla|fingerPrint|[;/\\(\\)]|$)");e[1]="HTC $1";e[2]=0;e[3]=0;e[4]=0;h.device[522]=e;e=Object.create(null);e[0]=new RegExp("Huawei([A-Za-z0-9]+)");e[1]="Huawei $1";e[2]=0;e[3]=0;e[4]=0;h.device[523]=e;e=Object.create(null);e[0]=new RegExp("HUAWEI-([A-Za-z0-9]+)");e[1]="Huawei $1";e[2]=0;e[3]=0;e[4]=0;h.device[524]=e;e=Object.create(null);e[0]=new RegExp("vodafone([A-Za-z0-9]+)");e[1]="Huawei Vodafone $1";e[2]=0;e[3]=0;e[4]=0;h.device[525]=e;e=Object.create(null);e[0]=new RegExp("i\\-mate ([A-Za-z0-9]+)");e[1]="i-mate $1";e[2]=0;e[3]=0;e[4]=0;h.device[526]=e;e=Object.create(null);e[0]=new RegExp("Kyocera\\-([A-Za-z0-9]+)");e[1]="Kyocera $1";e[2]=0;e[3]=0;e[4]=0;h.device[527]=e;e=Object.create(null);e[0]=new RegExp("KWC\\-([A-Za-z0-9]+)");e[1]="Kyocera $1";e[2]=0;e[3]=0;e[4]=0;h.device[528]=e;e=Object.create(null);e[0]=new RegExp("Lenovo[_\\-]([A-Za-z0-9]+)");e[1]="Lenovo $1";e[2]=0;e[3]=0;e[4]=0;h.device[529]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/[0-9]+\\.[0-9]+\\.[0-9]+ \\([^;]*; *(LG)E *; *([^;]*) *;[^;]*;[^;]*;\\)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[530]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/1\\.1\\.1.*CE-HTML/1\\.\\d;(Vendor/)*(THOM[^;]*?)[;\\s](?:.*SW-Version/.*)*(LF[^;]+);?");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[531]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)(?:/1\\.1\\.1)?(?: ?\\(;;;;;\\))?; *CE-HTML(?:/1\\.\\d)?; *([^ ]+) ([^;]+);");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[532]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/1\\.1\\.1 \\(;;;;;\\) Maple_2011");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[533]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/[0-9]+\\.[0-9]+\\.[0-9]+ \\([^;]*; *(?:CUS:([^;]*)|([^;]+)) *; *([^;]*) *;.*;");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[534]=e;e=Object.create(null);e[0]=new RegExp("(HbbTV)/[0-9]+\\.[0-9]+\\.[0-9]+");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[535]=e;e=Object.create(null);e[0]=new RegExp('LGE; (?:Media\\/)?([^;]*);[^;]*;[^;]*;?\\); "?LG NetCast(\\.TV|\\.Media|)-\\d+');e[1]="NetCast$2";e[2]=0;e[3]=0;e[4]=0;h.device[536]=e;e=Object.create(null);e[0]=new RegExp("InettvBrowser/[0-9]+\\.[0-9A-Z]+ \\([^;]*;(Sony)([^;]*);[^;]*;[^\\)]*\\)");e[1]="Inettv";e[2]=0;e[3]=0;e[4]=0;h.device[537]=e;e=Object.create(null);e[0]=new RegExp("InettvBrowser/[0-9]+\\.[0-9A-Z]+ \\([^;]*;([^;]*);[^;]*;[^\\)]*\\)");e[1]="Inettv";e[2]=0;e[3]=0;e[4]=0;h.device[538]=e;e=Object.create(null);e[0]=new RegExp("(?:InettvBrowser|TSBNetTV|NETTV|HBBTV)");e[1]="Inettv";e[2]=0;e[3]=0;e[4]=0;h.device[539]=e;e=Object.create(null);e[0]=new RegExp("Series60/\\d\\.\\d (LG)[\\-]?([A-Za-z0-9 \\-]+)");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[540]=e;e=Object.create(null);e[0]=new RegExp("\\b(?:LGE[ \\-]LG\\-(?:AX)?|LGE |LGE?-LG|LGE?[ \\-]|LG[ /\\-]|lg[\\-])([A-Za-z0-9]+)\\b");e[1]="LG $1";e[2]=0;e[3]=0;e[4]=0;h.device[541]=e;e=Object.create(null);e[0]=new RegExp("(?:^LG[\\-]?|^LGE[\\-/]?)([A-Za-z]+[0-9]+[A-Za-z]*)");e[1]="LG $1";e[2]=0;e[3]=0;e[4]=0;h.device[542]=e;e=Object.create(null);e[0]=new RegExp("^LG([0-9]+[A-Za-z]*)");e[1]="LG $1";e[2]=0;e[3]=0;e[4]=0;h.device[543]=e;e=Object.create(null);e[0]=new RegExp("(KIN\\.[^ ]+) (\\d+)\\.(\\d+)");e[1]="Microsoft $1";e[2]=0;e[3]=0;e[4]=0;h.device[544]=e;e=Object.create(null);e[0]=new RegExp("(?:MSIE|XBMC).*\\b(Xbox)\\b");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[545]=e;e=Object.create(null);e[0]=new RegExp("; ARM; Trident/6\\.0; Touch[\\);]");e[1]="Microsoft Surface RT";e[2]=0;e[3]=0;e[4]=0;h.device[546]=e;e=Object.create(null);e[0]=new RegExp("Motorola\\-([A-Za-z0-9]+)");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[547]=e;e=Object.create(null);e[0]=new RegExp("MOTO\\-([A-Za-z0-9]+)");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[548]=e;e=Object.create(null);e[0]=new RegExp("MOT\\-([A-z0-9][A-z0-9\\-]*)");e[1]="Motorola $1";e[2]=0;e[3]=0;e[4]=0;h.device[549]=e;e=Object.create(null);e[0]=new RegExp("Nintendo WiiU");e[1]="Nintendo Wii U";e[2]=0;e[3]=0;e[4]=0;h.device[550]=e;e=Object.create(null);e[0]=new RegExp("Nintendo (DS|3DS|DSi|Wii);");e[1]="Nintendo $1";e[2]=0;e[3]=0;e[4]=0;h.device[551]=e;e=Object.create(null);e[0]=new RegExp("(?:Pantech|PANTECH)[ _-]?([A-Za-z0-9\\-]+)");e[1]="Pantech $1";e[2]=0;e[3]=0;e[4]=0;h.device[552]=e;e=Object.create(null);e[0]=new RegExp("Philips([A-Za-z0-9]+)");e[1]="Philips $1";e[2]=0;e[3]=0;e[4]=0;h.device[553]=e;e=Object.create(null);e[0]=new RegExp("Philips ([A-Za-z0-9]+)");e[1]="Philips $1";e[2]=0;e[3]=0;e[4]=0;h.device[554]=e;e=Object.create(null);e[0]=new RegExp("(SMART-TV); .* Tizen ");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[555]=e;e=Object.create(null);e[0]=new RegExp("SymbianOS/9\\.\\d.* Samsung[/\\-]([A-Za-z0-9 \\-]+)");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[556]=e;e=Object.create(null);e[0]=new RegExp("(Samsung)(SGH)(i[0-9]+)");e[1]="$1 $2$3";e[2]=0;e[3]=0;e[4]=0;h.device[557]=e;e=Object.create(null);e[0]=new RegExp("SAMSUNG-ANDROID-MMS/([^;/]+)");e[1]="$1";e[2]=0;e[3]=0;e[4]=0;h.device[558]=e;e=Object.create(null);e[0]=new RegExp("SAMSUNG(?:; |[ -/])([A-Za-z0-9\\-]+)");e[1]="Samsung $1";e[2]=0;e[3]=0;e[4]=0;h.device[559]=e;e=Object.create(null);e[0]=new RegExp("(Dreamcast)");e[1]="Sega $1";e[2]=0;e[3]=0;e[4]=0;h.device[560]=e;e=Object.create(null);e[0]=new RegExp("^SIE-([A-Za-z0-9]+)");e[1]="Siemens $1";e[2]=0;e[3]=0;e[4]=0;h.device[561]=e;e=Object.create(null);e[0]=new RegExp("Softbank/[12]\\.0/([A-Za-z0-9]+)");e[1]="Softbank $1";e[2]=0;e[3]=0;e[4]=0;h.device[562]=e;e=Object.create(null);e[0]=new RegExp("SonyEricsson ?([A-Za-z0-9\\-]+)");e[1]="Ericsson $1";e[2]=0;e[3]=0;e[4]=0;h.device[563]=e;e=Object.create(null);e[0]=new RegExp("Android [^;]+; ([^ ]+) (Sony)/");e[1]="$2 $1";e[2]=0;e[3]=0;e[4]=0;h.device[564]=e;e=Object.create(null);e[0]=new RegExp("(Sony)(?:BDP\\/|\\/)?([^ /;\\)]+)[ /;\\)]");e[1]="$1 $2";e[2]=0;e[3]=0;e[4]=0;h.device[565]=e;e=Object.create(null);e[0]=new RegExp("Puffin/[\\d\\.]+IT");e[1]="iPad";e[2]=0;e[3]=0;e[4]=0;h.device[566]=e;e=Object.create(null);e[0]=new RegExp("Puffin/[\\d\\.]+IP");e[1]="iPhone";e[2]=0;e[3]=0;e[4]=0;h.device[567]=e;e=Object.create(null);e[0]=new RegExp("Puffin/[\\d\\.]+AT");e[1]="Generic Tablet";e[2]=0;e[3]=0;e[4]=0;h.device[568]=e;e=Object.create(null);e[0]=new RegExp("Puffin/[\\d\\.]+AP");e[1]="Generic Smartphone";e[2]=0;e[3]=0;e[4]=0;h.device[569]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+\\.[\\d]+; [A-Za-z]{2}\\-[A-Za-z]{0,2}; WOWMobile (.+) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[570]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+\\.[\\d]+\\-update1; [A-Za-z]{2}\\-[A-Za-z]{0,2} *; *(.+?) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[571]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+(?:\\.[\\d]+){1,2}; *[A-Za-z]{2}[_\\-][A-Za-z]{0,2}\\-? *; *(.+?) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[572]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+(?:\\.[\\d]+){1,2}; *[A-Za-z]{0,2}\\- *; *(.+?) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[573]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+(?:\\.[\\d]+){1,2}; *[a-z]{0,2}[_\\-]?[A-Za-z]{0,2};? Build[/ ]");e[1]="Generic Smartphone";e[2]=0;e[3]=0;e[4]=0;h.device[574]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+(?:\\.[\\d]+){1,2}; *\\-?[A-Za-z]{2}; *(.+?) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[575]=e;e=Object.create(null);e[0]=new RegExp("Android[\\- ][\\d]+(?:\\.[\\d]+){1,2}(?:;.*)?; *(.+?) Build[/ ]");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[576]=e;e=Object.create(null);e[0]=new RegExp("(GoogleTV)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[577]=e;e=Object.create(null);e[0]=new RegExp("(WebTV)/\\d+.\\d+");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[578]=e;e=Object.create(null);e[0]=new RegExp("^(Roku)/DVP-\\d+\\.\\d+");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.device[579]=e;e=Object.create(null);e[0]=new RegExp("(Android 3\\.\\d|Opera Tablet|Tablet; .+Firefox/|Android.*(?:Tab|Pad))");e[1]="Generic Tablet";e[2]=0;e[3]=0;e[4]=0;h.device[580]=e;e=Object.create(null);e[0]=new RegExp("(Symbian|\\bS60(Version|V\\d)|\\bS60\\b|\\((Series 60|Windows Mobile|Palm OS|Bada); Opera Mini|Windows CE|Opera Mobi|BREW|Brew|Mobile; .+Firefox/|iPhone OS|Android|MobileSafari|Windows *Phone|\\(webOS/|PalmOS)");e[1]="Generic Smartphone";e[2]=0;e[3]=0;e[4]=0;h.device[581]=e;e=Object.create(null);e[0]=new RegExp("(hiptop|avantgo|plucker|xiino|blazer|elaine)");e[1]="Generic Smartphone";e[2]=0;e[3]=0;e[4]=0;h.device[582]=e;e=Object.create(null);e[0]=new RegExp("(bot|zao|borg|DBot|oegp|silk|Xenu|zeal|^NING|CCBot|crawl|htdig|lycos|slurp|teoma|voila|yahoo|Sogou|CiBra|Nutch|^Java/|^JNLP/|Daumoa|Genieo|ichiro|larbin|pompos|Scrapy|snappy|speedy|spider|msnbot|msrbot|vortex|^vortex|crawler|favicon|indexer|Riddler|scooter|scraper|scrubby|WhatWeb|WinHTTP|bingbot|BingPreview|openbot|gigabot|furlbot|polybot|seekbot|^voyager|archiver|Icarus6j|mogimogi|Netvibes|blitzbot|altavista|charlotte|findlinks|Retreiver|TLSProber|WordPress|SeznamBot|ProoXiBot|wsr\\-agent|Squrl Java|EtaoSpider|PaperLiBot|SputnikBot|A6\\-Indexer|netresearch|searchsight|baiduspider|YisouSpider|ICC\\-Crawler|http%20client|Python-urllib|dataparksearch|converacrawler|Screaming Frog|AppEngine-Google|YahooCacheSystem|fast\\-webcrawler|Sogou Pic Spider|semanticdiscovery|Innovazion Crawler|facebookexternalhit|Google.*/\\+/web/snippet|Google-HTTP-Java-Client|BlogBridge|IlTrovatore-Setaccio|InternetArchive|GomezAgent|WebThumbnail|heritrix|NewsGator|PagePeeker|Reaper|ZooShot|holmes|NL-Crawler|Pingdom|StatusCake|WhatsApp|masscan|Google Web Preview|Qwantify)");e[1]="Spider";e[2]=0;e[3]=0;e[4]=0;h.device[583]=e;e=Object.create(null);e[0]=new RegExp("^(1207|3gso|4thp|501i|502i|503i|504i|505i|506i|6310|6590|770s|802s|a wa|acer|acs\\-|airn|alav|asus|attw|au\\-m|aur |aus |abac|acoo|aiko|alco|alca|amoi|anex|anny|anyw|aptu|arch|argo|bmobile|bell|bird|bw\\-n|bw\\-u|beck|benq|bilb|blac|c55/|cdm\\-|chtm|capi|comp|cond|dall|dbte|dc\\-s|dica|ds\\-d|ds12|dait|devi|dmob|doco|dopo|dorado|el(?:38|39|48|49|50|55|58|68)|el[3456]\\d{2}dual|erk0|esl8|ex300|ez40|ez60|ez70|ezos|ezze|elai|emul|eric|ezwa|fake|fly\\-|fly_|g\\-mo|g1 u|g560|gf\\-5|grun|gene|go.w|good|grad|hcit|hd\\-m|hd\\-p|hd\\-t|hei\\-|hp i|hpip|hs\\-c|htc |htc\\-|htca|htcg)");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[584]=e;e=Object.create(null);e[0]=new RegExp("^(htcp|htcs|htct|htc_|haie|hita|huaw|hutc|i\\-20|i\\-go|i\\-ma|i\\-mobile|i230|iac|iac\\-|iac/|ig01|im1k|inno|iris|jata|kddi|kgt|kgt/|kpt |kwc\\-|klon|lexi|lg g|lg\\-a|lg\\-b|lg\\-c|lg\\-d|lg\\-f|lg\\-g|lg\\-k|lg\\-l|lg\\-m|lg\\-o|lg\\-p|lg\\-s|lg\\-t|lg\\-u|lg\\-w|lg/k|lg/l|lg/u|lg50|lg54|lge\\-|lge/|leno|m1\\-w|m3ga|m50/|maui|mc01|mc21|mcca|medi|meri|mio8|mioa|mo01|mo02|mode|modo|mot |mot\\-|mt50|mtp1|mtv |mate|maxo|merc|mits|mobi|motv|mozz|n100|n101|n102|n202|n203|n300|n302|n500|n502|n505|n700|n701|n710|nec\\-|nem\\-|newg|neon)");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[585]=e;e=Object.create(null);e[0]=new RegExp("^(netf|noki|nzph|o2 x|o2\\-x|opwv|owg1|opti|oran|ot\\-s|p800|pand|pg\\-1|pg\\-2|pg\\-3|pg\\-6|pg\\-8|pg\\-c|pg13|phil|pn\\-2|pt\\-g|palm|pana|pire|pock|pose|psio|qa\\-a|qc\\-2|qc\\-3|qc\\-5|qc\\-7|qc07|qc12|qc21|qc32|qc60|qci\\-|qwap|qtek|r380|r600|raks|rim9|rove|s55/|sage|sams|sc01|sch\\-|scp\\-|sdk/|se47|sec\\-|sec0|sec1|semc|sgh\\-|shar|sie\\-|sk\\-0|sl45|slid|smb3|smt5|sp01|sph\\-|spv |spv\\-|sy01|samm|sany|sava|scoo|send|siem|smar|smit|soft|sony|t\\-mo|t218|t250|t600|t610|t618|tcl\\-|tdg\\-|telm|tim\\-|ts70|tsm\\-|tsm3|tsm5|tx\\-9|tagt)");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[586]=e;e=Object.create(null);e[0]=new RegExp("^(talk|teli|topl|tosh|up.b|upg1|utst|v400|v750|veri|vk\\-v|vk40|vk50|vk52|vk53|vm40|vx98|virg|vertu|vite|voda|vulc|w3c |w3c\\-|wapj|wapp|wapu|wapm|wig |wapi|wapr|wapv|wapy|wapa|waps|wapt|winc|winw|wonu|x700|xda2|xdag|yas\\-|your|zte\\-|zeto|aste|audi|avan|blaz|brew|brvw|bumb|ccwa|cell|cldc|cmd\\-|dang|eml2|fetc|hipt|http|ibro|idea|ikom|ipaq|jbro|jemu|jigs|keji|kyoc|kyok|libw|m\\-cr|midp|mmef|moto|mwbp|mywa|newt|nok6|o2im|pant|pdxg|play|pluc|port|prox|rozo|sama|seri|smal|symb|treo|upsi|vx52|vx53|vx60|vx61|vx70|vx80|vx81|vx83|vx85|wap\\-|webc|whit|wmlb|xda\\-|xda_)");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[587]=e;e=Object.create(null);e[0]=new RegExp("^(Ice)$");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[588]=e;e=Object.create(null);e[0]=new RegExp("(wap[\\-\\ ]browser|maui|netfront|obigo|teleca|up\\.browser|midp|Opera Mini)");e[1]="Generic Feature Phone";e[2]=0;e[3]=0;e[4]=0;h.device[589]=e;h.device.length=590;h.os=Object.create(null);e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+ \\( ;(LG)E ;NetCast 4.0");e[1]=0;e[2]="2013";e[3]=0;e[4]=0;h.os[0]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+ \\( ;(LG)E ;NetCast 3.0");e[1]=0;e[2]="2012";e[3]=0;e[4]=0;h.os[1]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/1.1.1 \\(;;;;;\\) Maple_2011");e[1]="Samsung";e[2]="2011";e[3]=0;e[4]=0;h.os[2]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+ \\(;(Samsung);SmartTV([0-9]{4});.*FXPDEUC");e[1]=0;e[2]=0;e[3]="UE40F7000";e[4]=0;h.os[3]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+ \\(;(Samsung);SmartTV([0-9]{4});.*MST12DEUC");e[1]=0;e[2]=0;e[3]="UE32F4500";e[4]=0;h.os[4]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/1.1.1 \\(; (Philips);.*NETTV/4");e[1]=0;e[2]="2013";e[3]=0;e[4]=0;h.os[5]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/1.1.1 \\(; (Philips);.*NETTV/3");e[1]=0;e[2]="2012";e[3]=0;e[4]=0;h.os[6]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/1.1.1 \\(; (Philips);.*NETTV/2");e[1]=0;e[2]="2011";e[3]=0;e[4]=0;h.os[7]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+.*(firetv)-firefox-plugin (\\d+).(\\d+).(\\d+)");e[1]="FireHbbTV";e[2]=0;e[3]=0;e[4]=0;h.os[8]=e;e=Object.create(null);e[0]=new RegExp("HbbTV/\\d+\\.\\d+\\.\\d+ \\(.*; ?([a-zA-Z]+) ?;.*(201[1-9]).*\\)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[9]=e;e=Object.create(null);e[0]=new RegExp("(Windows Phone) (?:OS[ /])?(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[10]=e;e=Object.create(null);e[0]=new RegExp("(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone)[ +]+(\\d+)[_\\.](\\d+)(?:[_\\.](\\d+))?.*Outlook-iOS-Android");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[11]=e;e=Object.create(null);e[0]=new RegExp("(Android)[ \\-/](\\d+)\\.(\\d+)(?:[.\\-]([a-z0-9]+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[12]=e;e=Object.create(null);e[0]=new RegExp("(Android) Donut");e[1]=0;e[2]="1";e[3]="2";e[4]=0;h.os[13]=e;e=Object.create(null);e[0]=new RegExp("(Android) Eclair");e[1]=0;e[2]="2";e[3]="1";e[4]=0;h.os[14]=e;e=Object.create(null);e[0]=new RegExp("(Android) Froyo");e[1]=0;e[2]="2";e[3]="2";e[4]=0;h.os[15]=e;e=Object.create(null);e[0]=new RegExp("(Android) Gingerbread");e[1]=0;e[2]="2";e[3]="3";e[4]=0;h.os[16]=e;e=Object.create(null);e[0]=new RegExp("(Android) Honeycomb");e[1]=0;e[2]="3";e[3]=0;e[4]=0;h.os[17]=e;e=Object.create(null);e[0]=new RegExp("^UCWEB.*; (Adr) (\\d+)\\.(\\d+)(?:[.\\-]([a-z0-9]+))?;");e[1]="Android";e[2]=0;e[3]=0;e[4]=0;h.os[18]=e;e=Object.create(null);e[0]=new RegExp("^UCWEB.*; (iPad|iPh|iPd) OS (\\d+)_(\\d+)(?:_(\\d+))?;");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[19]=e;e=Object.create(null);e[0]=new RegExp("^UCWEB.*; (wds) (\\d+)\\.(\\d+)(?:\\.(\\d+))?;");e[1]="Windows Phone";e[2]=0;e[3]=0;e[4]=0;h.os[20]=e;e=Object.create(null);e[0]=new RegExp("^(JUC).*; ?U; ?(?:Android)?(\\d+)\\.(\\d+)(?:[\\.\\-]([a-z0-9]+))?");e[1]="Android";e[2]=0;e[3]=0;e[4]=0;h.os[21]=e;e=Object.create(null);e[0]=new RegExp("(Silk-Accelerated=[a-z]{4,5})");e[1]="Android";e[2]=0;e[3]=0;e[4]=0;h.os[22]=e;e=Object.create(null);e[0]=new RegExp("(XBLWP7)");e[1]="Windows Phone";e[2]=0;e[3]=0;e[4]=0;h.os[23]=e;e=Object.create(null);e[0]=new RegExp("(Windows ?Mobile)");e[1]="Windows Mobile";e[2]=0;e[3]=0;e[4]=0;h.os[24]=e;e=Object.create(null);e[0]=new RegExp("(Windows (?:NT 5\\.2|NT 5\\.1))");e[1]="Windows";e[2]="XP";e[3]=0;e[4]=0;h.os[25]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.1)");e[1]="Windows";e[2]="7";e[3]=0;e[4]=0;h.os[26]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.0)");e[1]="Windows";e[2]="Vista";e[3]=0;e[4]=0;h.os[27]=e;e=Object.create(null);e[0]=new RegExp("(Win 9x 4\\.90)");e[1]="Windows";e[2]="ME";e[3]=0;e[4]=0;h.os[28]=e;e=Object.create(null);e[0]=new RegExp("(Windows 98|Windows XP|Windows ME|Windows 95|Windows CE|Windows 7|Windows NT 4\\.0|Windows Vista|Windows 2000|Windows 3.1)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[29]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.2; ARM;)");e[1]="Windows";e[2]="RT";e[3]=0;e[4]=0;h.os[30]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.2)");e[1]="Windows";e[2]="8";e[3]=0;e[4]=0;h.os[31]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.3; ARM;)");e[1]="Windows";e[2]="RT 8.1";e[3]=0;e[4]=0;h.os[32]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.3)");e[1]="Windows";e[2]="8.1";e[3]=0;e[4]=0;h.os[33]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 6\\.4)");e[1]="Windows";e[2]="10";e[3]=0;e[4]=0;h.os[34]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 10\\.0)");e[1]="Windows";e[2]="10";e[3]=0;e[4]=0;h.os[35]=e;e=Object.create(null);e[0]=new RegExp("(Windows NT 5\\.0)");e[1]="Windows";e[2]="2000";e[3]=0;e[4]=0;h.os[36]=e;e=Object.create(null);e[0]=new RegExp("(WinNT4.0)");e[1]="Windows";e[2]="NT 4.0";e[3]=0;e[4]=0;h.os[37]=e;e=Object.create(null);e[0]=new RegExp("(Windows ?CE)");e[1]="Windows";e[2]="CE";e[3]=0;e[4]=0;h.os[38]=e;e=Object.create(null);e[0]=new RegExp("Win ?(95|98|3.1|NT|ME|2000)");e[1]="Windows";e[2]="$1";e[3]=0;e[4]=0;h.os[39]=e;e=Object.create(null);e[0]=new RegExp("Win16");e[1]="Windows";e[2]="3.1";e[3]=0;e[4]=0;h.os[40]=e;e=Object.create(null);e[0]=new RegExp("Win32");e[1]="Windows";e[2]="95";e[3]=0;e[4]=0;h.os[41]=e;e=Object.create(null);e[0]=new RegExp("^Box.*Windows/([\\d.]+);");e[1]="Windows";e[2]="$1";e[3]=0;e[4]=0;h.os[42]=e;e=Object.create(null);e[0]=new RegExp("(Tizen)[/ ](\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[43]=e;e=Object.create(null);e[0]=new RegExp("((?:Mac[ +]?|; )OS[ +]X)[\\s+/](?:(\\d+)[_.](\\d+)(?:[_.](\\d+))?|Mach-O)");e[1]="Mac OS X";e[2]=0;e[3]=0;e[4]=0;h.os[44]=e;e=Object.create(null);e[0]=new RegExp(" (Dar)(win)/(9).(\\d+).*\\((?:i386|x86_64|Power Macintosh)\\)");e[1]="Mac OS X";e[2]="10";e[3]="5";e[4]=0;h.os[45]=e;e=Object.create(null);e[0]=new RegExp(" (Dar)(win)/(10).(\\d+).*\\((?:i386|x86_64)\\)");e[1]="Mac OS X";e[2]="10";e[3]="6";e[4]=0;h.os[46]=e;e=Object.create(null);e[0]=new RegExp(" (Dar)(win)/(11).(\\d+).*\\((?:i386|x86_64)\\)");e[1]="Mac OS X";e[2]="10";e[3]="7";e[4]=0;h.os[47]=e;e=Object.create(null);e[0]=new RegExp(" (Dar)(win)/(12).(\\d+).*\\((?:i386|x86_64)\\)");e[1]="Mac OS X";e[2]="10";e[3]="8";e[4]=0;h.os[48]=e;e=Object.create(null);e[0]=new RegExp(" (Dar)(win)/(13).(\\d+).*\\((?:i386|x86_64)\\)");e[1]="Mac OS X";e[2]="10";e[3]="9";e[4]=0;h.os[49]=e;e=Object.create(null);e[0]=new RegExp("Mac_PowerPC");e[1]="Mac OS";e[2]=0;e[3]=0;e[4]=0;h.os[50]=e;e=Object.create(null);e[0]=new RegExp("(?:PPC|Intel) (Mac OS X)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[51]=e;e=Object.create(null);e[0]=new RegExp("^Box.*;(Darwin)/(10)\\.(1\\d)(?:\\.(\\d+))?");e[1]="Mac OS X";e[2]=0;e[3]=0;e[4]=0;h.os[52]=e;e=Object.create(null);e[0]=new RegExp("(Apple\\s?TV)(?:/(\\d+)\\.(\\d+))?");e[1]="ATV OS X";e[2]=0;e[3]=0;e[4]=0;h.os[53]=e;e=Object.create(null);e[0]=new RegExp("(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(\\d+)[_\\.](\\d+)(?:[_\\.](\\d+))?");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[54]=e;e=Object.create(null);e[0]=new RegExp("(iPhone|iPad|iPod); Opera");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[55]=e;e=Object.create(null);e[0]=new RegExp("(iPhone|iPad|iPod).*Mac OS X.*Version/(\\d+)\\.(\\d+)");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[56]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(5)48\\.0\\.3.* Darwin/11\\.0\\.0");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[57]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(5)48\\.(0)\\.4.* Darwin/(1)1\\.0\\.0");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[58]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(5)48\\.(1)\\.4");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[59]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(4)85\\.1(3)\\.9");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[60]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(6)09\\.(1)\\.4");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[61]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/(6)(0)9");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[62]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/6(7)2\\.(1)\\.13");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[63]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/6(7)2\\.(1)\\.(1)4");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[64]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/6(7)(2)\\.1\\.15");e[1]="iOS";e[2]="7";e[3]="1";e[4]=0;h.os[65]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/6(7)2\\.(0)\\.(?:2|8)");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[66]=e;e=Object.create(null);e[0]=new RegExp("(CFNetwork)/709\\.1");e[1]="iOS";e[2]="8";e[3]="0.b5";e[4]=0;h.os[67]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/711\\.(\\d)");e[1]="iOS";e[2]="8";e[3]=0;e[4]=0;h.os[68]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/(720)\\.(\\d)");e[1]="Mac OS X";e[2]="10";e[3]="10";e[4]=0;h.os[69]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/(760)\\.(\\d)");e[1]="Mac OS X";e[2]="10";e[3]="11";e[4]=0;h.os[70]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/758\\.(\\d)");e[1]="iOS";e[2]="9";e[3]=0;e[4]=0;h.os[71]=e;e=Object.create(null);e[0]=new RegExp("(CF)(Network)/808\\.(\\d)");e[1]="iOS";e[2]="10";e[3]=0;e[4]=0;h.os[72]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/16\\.\\d+.*\\(x86_64\\)");e[1]="Mac OS X";e[2]="10";e[3]="12";e[4]=0;h.os[73]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/15\\.\\d+.*\\(x86_64\\)");e[1]="Mac OS X";e[2]="10";e[3]="11";e[4]=0;h.os[74]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/(9)\\.\\d+");e[1]="iOS";e[2]="1";e[3]=0;e[4]=0;h.os[75]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/(10)\\.\\d+");e[1]="iOS";e[2]="4";e[3]=0;e[4]=0;h.os[76]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/(11)\\.\\d+");e[1]="iOS";e[2]="5";e[3]=0;e[4]=0;h.os[77]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/.* Darwin/(13)\\.\\d+");e[1]="iOS";e[2]="6";e[3]=0;e[4]=0;h.os[78]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/6.* Darwin/(14)\\.\\d+");e[1]="iOS";e[2]="7";e[3]=0;e[4]=0;h.os[79]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/7.* Darwin/(14)\\.\\d+");e[1]="iOS";e[2]="8";e[3]="0";e[4]=0;h.os[80]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/7.* Darwin/(15)\\.\\d+");e[1]="iOS";e[2]="9";e[3]="0";e[4]=0;h.os[81]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/16\\.5\\.\\d+");e[1]="iOS";e[2]="10";e[3]="3";e[4]=0;h.os[82]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/16\\.6\\.\\d+");e[1]="iOS";e[2]="10";e[3]="3";e[4]="2";h.os[83]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/16\\.7\\.\\d+");e[1]="iOS";e[2]="10";e[3]="3";e[4]="3";h.os[84]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/(16)\\.\\d+");e[1]="iOS";e[2]="10";e[3]=0;e[4]=0;h.os[85]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/17\\.0\\.\\d+");e[1]="iOS";e[2]="11";e[3]="0";e[4]=0;h.os[86]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/17\\.2\\.\\d+");e[1]="iOS";e[2]="11";e[3]="1";e[4]=0;h.os[87]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/17\\.3\\.\\d+");e[1]="iOS";e[2]="11";e[3]="2";e[4]=0;h.os[88]=e;e=Object.create(null);e[0]=new RegExp("CFNetwork/8.* Darwin/(17)\\.\\d+");e[1]="iOS";e[2]="11";e[3]=0;e[4]=0;h.os[89]=e;e=Object.create(null);e[0]=new RegExp("\\b(iOS[ /]|iOS; |iPhone(?:/| v|[ _]OS[/,]|; | OS : |\\d,\\d/|\\d,\\d; )|iPad/)(\\d{1,2})[_\\.](\\d{1,2})(?:[_\\.](\\d+))?");e[1]="iOS";e[2]=0;e[3]=0;e[4]=0;h.os[90]=e;e=Object.create(null);e[0]=new RegExp("\\((iOS);");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[91]=e;e=Object.create(null);e[0]=new RegExp("(tvOS)/(\\d+).(\\d+)");e[1]="tvOS";e[2]=0;e[3]=0;e[4]=0;h.os[92]=e;e=Object.create(null);e[0]=new RegExp("(CrOS) [a-z0-9_]+ (\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="Chrome OS";e[2]=0;e[3]=0;e[4]=0;h.os[93]=e;e=Object.create(null);e[0]=new RegExp("([Dd]ebian)");e[1]="Debian";e[2]=0;e[3]=0;e[4]=0;h.os[94]=e;e=Object.create(null);e[0]=new RegExp("(Linux Mint)(?:/(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[95]=e;e=Object.create(null);e[0]=new RegExp("(Mandriva)(?: Linux)?/(?:[\\d.-]+m[a-z]{2}(\\d+).(\\d))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[96]=e;e=Object.create(null);e[0]=new RegExp("(Symbian[Oo][Ss])[/ ](\\d+)\\.(\\d+)");e[1]="Symbian OS";e[2]=0;e[3]=0;e[4]=0;h.os[97]=e;e=Object.create(null);e[0]=new RegExp("(Symbian/3).+NokiaBrowser/7\\.3");e[1]="Symbian^3 Anna";e[2]=0;e[3]=0;e[4]=0;h.os[98]=e;e=Object.create(null);e[0]=new RegExp("(Symbian/3).+NokiaBrowser/7\\.4");e[1]="Symbian^3 Belle";e[2]=0;e[3]=0;e[4]=0;h.os[99]=e;e=Object.create(null);e[0]=new RegExp("(Symbian/3)");e[1]="Symbian^3";e[2]=0;e[3]=0;e[4]=0;h.os[100]=e;e=Object.create(null);e[0]=new RegExp("\\b(Series 60|SymbOS|S60Version|S60V\\d|S60\\b)");e[1]="Symbian OS";e[2]=0;e[3]=0;e[4]=0;h.os[101]=e;e=Object.create(null);e[0]=new RegExp("(MeeGo)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[102]=e;e=Object.create(null);e[0]=new RegExp("Symbian [Oo][Ss]");e[1]="Symbian OS";e[2]=0;e[3]=0;e[4]=0;h.os[103]=e;e=Object.create(null);e[0]=new RegExp("Series40;");e[1]="Nokia Series 40";e[2]=0;e[3]=0;e[4]=0;h.os[104]=e;e=Object.create(null);e[0]=new RegExp("Series30Plus;");e[1]="Nokia Series 30 Plus";e[2]=0;e[3]=0;e[4]=0;h.os[105]=e;e=Object.create(null);e[0]=new RegExp("(BB10);.+Version/(\\d+)\\.(\\d+)\\.(\\d+)");e[1]="BlackBerry OS";e[2]=0;e[3]=0;e[4]=0;h.os[106]=e;e=Object.create(null);e[0]=new RegExp("(Black[Bb]erry)[0-9a-z]+/(\\d+)\\.(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="BlackBerry OS";e[2]=0;e[3]=0;e[4]=0;h.os[107]=e;e=Object.create(null);e[0]=new RegExp("(Black[Bb]erry).+Version/(\\d+)\\.(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="BlackBerry OS";e[2]=0;e[3]=0;e[4]=0;h.os[108]=e;e=Object.create(null);e[0]=new RegExp("(RIM Tablet OS) (\\d+)\\.(\\d+)\\.(\\d+)");e[1]="BlackBerry Tablet OS";e[2]=0;e[3]=0;e[4]=0;h.os[109]=e;e=Object.create(null);e[0]=new RegExp("(Play[Bb]ook)");e[1]="BlackBerry Tablet OS";e[2]=0;e[3]=0;e[4]=0;h.os[110]=e;e=Object.create(null);e[0]=new RegExp("(Black[Bb]erry)");e[1]="BlackBerry OS";e[2]=0;e[3]=0;e[4]=0;h.os[111]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/18.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="1";e[3]="0";e[4]="1";h.os[112]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/18.1 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="1";e[3]="1";e[4]=0;h.os[113]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/26.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="1";e[3]="2";e[4]=0;h.os[114]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/28.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="1";e[3]="3";e[4]=0;h.os[115]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/30.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="1";e[3]="4";e[4]=0;h.os[116]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/32.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="2";e[3]="0";e[4]=0;h.os[117]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Gecko/34.0 Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]="2";e[3]="1";e[4]=0;h.os[118]=e;e=Object.create(null);e[0]=new RegExp("\\((?:Mobile|Tablet);.+Firefox/\\d+\\.\\d+");e[1]="Firefox OS";e[2]=0;e[3]=0;e[4]=0;h.os[119]=e;e=Object.create(null);e[0]=new RegExp("(BREW)[ /](\\d+)\\.(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[120]=e;e=Object.create(null);e[0]=new RegExp("(BREW);");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[121]=e;e=Object.create(null);e[0]=new RegExp("(Brew MP|BMP)[ /](\\d+)\\.(\\d+)\\.(\\d+)");e[1]="Brew MP";e[2]=0;e[3]=0;e[4]=0;h.os[122]=e;e=Object.create(null);e[0]=new RegExp("BMP;");e[1]="Brew MP";e[2]=0;e[3]=0;e[4]=0;h.os[123]=e;e=Object.create(null);e[0]=new RegExp("(GoogleTV)(?: (\\d+)\\.(\\d+)(?:\\.(\\d+))?|/[\\da-z]+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[124]=e;e=Object.create(null);e[0]=new RegExp("(WebTV)/(\\d+).(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[125]=e;e=Object.create(null);e[0]=new RegExp("(CrKey)(?:[/](\\d+)\\.(\\d+)(?:\\.(\\d+))?)?");e[1]="Chromecast";e[2]=0;e[3]=0;e[4]=0;h.os[126]=e;e=Object.create(null);e[0]=new RegExp("(hpw|web)OS/(\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]="webOS";e[2]=0;e[3]=0;e[4]=0;h.os[127]=e;e=Object.create(null);e[0]=new RegExp("(VRE);");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[128]=e;e=Object.create(null);e[0]=new RegExp("(Fedora|Red Hat|PCLinuxOS|Puppy|Ubuntu|Kindle|Bada|Lubuntu|BackTrack|Slackware|(?:Free|Open|Net|\\b)BSD)[/ ](\\d+)\\.(\\d+)(?:\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[129]=e;e=Object.create(null);e[0]=new RegExp("(Linux)[ /](\\d+)\\.(\\d+)(?:\\.(\\d+))?.*gentoo");e[1]="Gentoo";e[2]=0;e[3]=0;e[4]=0;h.os[130]=e;e=Object.create(null);e[0]=new RegExp("\\((Bada);");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[131]=e;e=Object.create(null);e[0]=new RegExp("(Windows|Android|WeTab|Maemo|Web0S)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[132]=e;e=Object.create(null);e[0]=new RegExp("(Ubuntu|Kubuntu|Arch Linux|CentOS|Slackware|Gentoo|openSUSE|SUSE|Red Hat|Fedora|PCLinuxOS|Mageia|(?:Free|Open|Net|\\b)BSD)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[133]=e;e=Object.create(null);e[0]=new RegExp("(Linux)(?:[ /](\\d+)\\.(\\d+)(?:\\.(\\d+))?)?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[134]=e;e=Object.create(null);e[0]=new RegExp("SunOS");e[1]="Solaris";e[2]=0;e[3]=0;e[4]=0;h.os[135]=e;e=Object.create(null);e[0]=new RegExp("^(Roku)/DVP-(\\d+)\\.(\\d+)");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[136]=e;e=Object.create(null);e[0]=new RegExp("(iOS) (\\d+)\\.(\\d+)(?:\\.(\\d+))?");e[1]=0;e[2]=0;e[3]=0;e[4]=0;h.os[137]=e;h.os.length=138});var q4=Y((AD,j8)=>{j8.exports=[{name:"nodejs",version:"0.2.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.3.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.4.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.5.0",date:"2011-08-26",lts:!1,security:!1},{name:"nodejs",version:"0.6.0",date:"2011-11-04",lts:!1,security:!1},{name:"nodejs",version:"0.7.0",date:"2012-01-17",lts:!1,security:!1},{name:"nodejs",version:"0.8.0",date:"2012-06-22",lts:!1,security:!1},{name:"nodejs",version:"0.9.0",date:"2012-07-20",lts:!1,security:!1},{name:"nodejs",version:"0.10.0",date:"2013-03-11",lts:!1,security:!1},{name:"nodejs",version:"0.11.0",date:"2013-03-28",lts:!1,security:!1},{name:"nodejs",version:"0.12.0",date:"2015-02-06",lts:!1,security:!1},{name:"iojs",version:"1.0.0",date:"2015-01-14"},{name:"iojs",version:"1.1.0",date:"2015-02-03"},{name:"iojs",version:"1.2.0",date:"2015-02-11"},{name:"iojs",version:"1.3.0",date:"2015-02-20"},{name:"iojs",version:"1.5.0",date:"2015-03-06"},{name:"iojs",version:"1.6.0",date:"2015-03-20"},{name:"iojs",version:"2.0.0",date:"2015-05-04"},{name:"iojs",version:"2.1.0",date:"2015-05-24"},{name:"iojs",version:"2.2.0",date:"2015-06-01"},{name:"iojs",version:"2.3.0",date:"2015-06-13"},{name:"iojs",version:"2.4.0",date:"2015-07-17"},{name:"iojs",version:"2.5.0",date:"2015-07-28"},{name:"iojs",version:"3.0.0",date:"2015-08-04"},{name:"iojs",version:"3.1.0",date:"2015-08-19"},{name:"iojs",version:"3.2.0",date:"2015-08-25"},{name:"iojs",version:"3.3.0",date:"2015-09-02"},{name:"nodejs",version:"4.0.0",date:"2015-09-08",lts:!1,security:!1},{name:"nodejs",version:"4.1.0",date:"2015-09-17",lts:!1,security:!1},{name:"nodejs",version:"4.2.0",date:"2015-10-12",lts:"Argon",security:!1},{name:"nodejs",version:"4.3.0",date:"2016-02-09",lts:"Argon",security:!1},{name:"nodejs",version:"4.4.0",date:"2016-03-08",lts:"Argon",security:!1},{name:"nodejs",version:"4.5.0",date:"2016-08-16",lts:"Argon",security:!1},{name:"nodejs",version:"4.6.0",date:"2016-09-27",lts:"Argon",security:!0},{name:"nodejs",version:"4.7.0",date:"2016-12-06",lts:"Argon",security:!1},{name:"nodejs",version:"4.8.0",date:"2017-02-21",lts:"Argon",security:!1},{name:"nodejs",version:"4.9.0",date:"2018-03-28",lts:"Argon",security:!0},{name:"nodejs",version:"5.0.0",date:"2015-10-29",lts:!1,security:!1},{name:"nodejs",version:"5.1.0",date:"2015-11-17",lts:!1,security:!1},{name:"nodejs",version:"5.2.0",date:"2015-12-09",lts:!1,security:!1},{name:"nodejs",version:"5.3.0",date:"2015-12-15",lts:!1,security:!1},{name:"nodejs",version:"5.4.0",date:"2016-01-06",lts:!1,security:!1},{name:"nodejs",version:"5.5.0",date:"2016-01-21",lts:!1,security:!1},{name:"nodejs",version:"5.6.0",date:"2016-02-09",lts:!1,security:!1},{name:"nodejs",version:"5.7.0",date:"2016-02-23",lts:!1,security:!1},{name:"nodejs",version:"5.8.0",date:"2016-03-09",lts:!1,security:!1},{name:"nodejs",version:"5.9.0",date:"2016-03-16",lts:!1,security:!1},{name:"nodejs",version:"5.10.0",date:"2016-04-01",lts:!1,security:!1},{name:"nodejs",version:"5.11.0",date:"2016-04-21",lts:!1,security:!1},{name:"nodejs",version:"5.12.0",date:"2016-06-23",lts:!1,security:!1},{name:"nodejs",version:"6.0.0",date:"2016-04-26",lts:!1,security:!1},{name:"nodejs",version:"6.1.0",date:"2016-05-05",lts:!1,security:!1},{name:"nodejs",version:"6.2.0",date:"2016-05-17",lts:!1,security:!1},{name:"nodejs",version:"6.3.0",date:"2016-07-06",lts:!1,security:!1},{name:"nodejs",version:"6.4.0",date:"2016-08-12",lts:!1,security:!1},{name:"nodejs",version:"6.5.0",date:"2016-08-26",lts:!1,security:!1},{name:"nodejs",version:"6.6.0",date:"2016-09-14",lts:!1,security:!1},{name:"nodejs",version:"6.7.0",date:"2016-09-27",lts:!1,security:!0},{name:"nodejs",version:"6.8.0",date:"2016-10-12",lts:!1,security:!1},{name:"nodejs",version:"6.9.0",date:"2016-10-18",lts:"Boron",security:!1},{name:"nodejs",version:"6.10.0",date:"2017-02-21",lts:"Boron",security:!1},{name:"nodejs",version:"6.11.0",date:"2017-06-06",lts:"Boron",security:!1},{name:"nodejs",version:"6.12.0",date:"2017-11-06",lts:"Boron",security:!1},{name:"nodejs",version:"6.13.0",date:"2018-02-10",lts:"Boron",security:!1},{name:"nodejs",version:"6.14.0",date:"2018-03-28",lts:"Boron",security:!0},{name:"nodejs",version:"6.15.0",date:"2018-11-27",lts:"Boron",security:!0},{name:"nodejs",version:"6.16.0",date:"2018-12-26",lts:"Boron",security:!1},{name:"nodejs",version:"6.17.0",date:"2019-02-28",lts:"Boron",security:!0},{name:"nodejs",version:"7.0.0",date:"2016-10-25",lts:!1,security:!1},{name:"nodejs",version:"7.1.0",date:"2016-11-08",lts:!1,security:!1},{name:"nodejs",version:"7.2.0",date:"2016-11-22",lts:!1,security:!1},{name:"nodejs",version:"7.3.0",date:"2016-12-20",lts:!1,security:!1},{name:"nodejs",version:"7.4.0",date:"2017-01-04",lts:!1,security:!1},{name:"nodejs",version:"7.5.0",date:"2017-01-31",lts:!1,security:!1},{name:"nodejs",version:"7.6.0",date:"2017-02-21",lts:!1,security:!1},{name:"nodejs",version:"7.7.0",date:"2017-02-28",lts:!1,security:!1},{name:"nodejs",version:"7.8.0",date:"2017-03-29",lts:!1,security:!1},{name:"nodejs",version:"7.9.0",date:"2017-04-11",lts:!1,security:!1},{name:"nodejs",version:"7.10.0",date:"2017-05-02",lts:!1,security:!1},{name:"nodejs",version:"8.0.0",date:"2017-05-30",lts:!1,security:!1},{name:"nodejs",version:"8.1.0",date:"2017-06-08",lts:!1,security:!1},{name:"nodejs",version:"8.2.0",date:"2017-07-19",lts:!1,security:!1},{name:"nodejs",version:"8.3.0",date:"2017-08-08",lts:!1,security:!1},{name:"nodejs",version:"8.4.0",date:"2017-08-15",lts:!1,security:!1},{name:"nodejs",version:"8.5.0",date:"2017-09-12",lts:!1,security:!1},{name:"nodejs",version:"8.6.0",date:"2017-09-26",lts:!1,security:!1},{name:"nodejs",version:"8.7.0",date:"2017-10-11",lts:!1,security:!1},{name:"nodejs",version:"8.8.0",date:"2017-10-24",lts:!1,security:!1},{name:"nodejs",version:"8.9.0",date:"2017-10-31",lts:"Carbon",security:!1},{name:"nodejs",version:"8.10.0",date:"2018-03-06",lts:"Carbon",security:!1},{name:"nodejs",version:"8.11.0",date:"2018-03-28",lts:"Carbon",security:!0},{name:"nodejs",version:"8.12.0",date:"2018-09-10",lts:"Carbon",security:!1},{name:"nodejs",version:"8.13.0",date:"2018-11-20",lts:"Carbon",security:!1},{name:"nodejs",version:"8.14.0",date:"2018-11-27",lts:"Carbon",security:!0},{name:"nodejs",version:"8.15.0",date:"2018-12-26",lts:"Carbon",security:!1},{name:"nodejs",version:"8.16.0",date:"2019-04-16",lts:"Carbon",security:!1},{name:"nodejs",version:"8.17.0",date:"2019-12-17",lts:"Carbon",security:!0},{name:"nodejs",version:"9.0.0",date:"2017-10-31",lts:!1,security:!1},{name:"nodejs",version:"9.1.0",date:"2017-11-07",lts:!1,security:!1},{name:"nodejs",version:"9.2.0",date:"2017-11-14",lts:!1,security:!1},{name:"nodejs",version:"9.3.0",date:"2017-12-12",lts:!1,security:!1},{name:"nodejs",version:"9.4.0",date:"2018-01-10",lts:!1,security:!1},{name:"nodejs",version:"9.5.0",date:"2018-01-31",lts:!1,security:!1},{name:"nodejs",version:"9.6.0",date:"2018-02-21",lts:!1,security:!1},{name:"nodejs",version:"9.7.0",date:"2018-03-01",lts:!1,security:!1},{name:"nodejs",version:"9.8.0",date:"2018-03-07",lts:!1,security:!1},{name:"nodejs",version:"9.9.0",date:"2018-03-21",lts:!1,security:!1},{name:"nodejs",version:"9.10.0",date:"2018-03-28",lts:!1,security:!0},{name:"nodejs",version:"9.11.0",date:"2018-04-04",lts:!1,security:!1},{name:"nodejs",version:"10.0.0",date:"2018-04-24",lts:!1,security:!1},{name:"nodejs",version:"10.1.0",date:"2018-05-08",lts:!1,security:!1},{name:"nodejs",version:"10.2.0",date:"2018-05-23",lts:!1,security:!1},{name:"nodejs",version:"10.3.0",date:"2018-05-29",lts:!1,security:!1},{name:"nodejs",version:"10.4.0",date:"2018-06-06",lts:!1,security:!1},{name:"nodejs",version:"10.5.0",date:"2018-06-20",lts:!1,security:!1},{name:"nodejs",version:"10.6.0",date:"2018-07-04",lts:!1,security:!1},{name:"nodejs",version:"10.7.0",date:"2018-07-18",lts:!1,security:!1},{name:"nodejs",version:"10.8.0",date:"2018-08-01",lts:!1,security:!1},{name:"nodejs",version:"10.9.0",date:"2018-08-15",lts:!1,security:!1},{name:"nodejs",version:"10.10.0",date:"2018-09-06",lts:!1,security:!1},{name:"nodejs",version:"10.11.0",date:"2018-09-19",lts:!1,security:!1},{name:"nodejs",version:"10.12.0",date:"2018-10-10",lts:!1,security:!1},{name:"nodejs",version:"10.13.0",date:"2018-10-30",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.14.0",date:"2018-11-27",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.15.0",date:"2018-12-26",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.16.0",date:"2019-05-28",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.17.0",date:"2019-10-22",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.18.0",date:"2019-12-17",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.19.0",date:"2020-02-05",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.20.0",date:"2020-03-26",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.21.0",date:"2020-06-02",lts:"Dubnium",security:!0},{name:"nodejs",version:"10.22.0",date:"2020-07-21",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.23.0",date:"2020-10-27",lts:"Dubnium",security:!1},{name:"nodejs",version:"10.24.0",date:"2021-02-23",lts:"Dubnium",security:!0},{name:"nodejs",version:"11.0.0",date:"2018-10-23",lts:!1,security:!1},{name:"nodejs",version:"11.1.0",date:"2018-10-30",lts:!1,security:!1},{name:"nodejs",version:"11.2.0",date:"2018-11-15",lts:!1,security:!1},{name:"nodejs",version:"11.3.0",date:"2018-11-27",lts:!1,security:!0},{name:"nodejs",version:"11.4.0",date:"2018-12-07",lts:!1,security:!1},{name:"nodejs",version:"11.5.0",date:"2018-12-18",lts:!1,security:!1},{name:"nodejs",version:"11.6.0",date:"2018-12-26",lts:!1,security:!1},{name:"nodejs",version:"11.7.0",date:"2019-01-17",lts:!1,security:!1},{name:"nodejs",version:"11.8.0",date:"2019-01-24",lts:!1,security:!1},{name:"nodejs",version:"11.9.0",date:"2019-01-30",lts:!1,security:!1},{name:"nodejs",version:"11.10.0",date:"2019-02-14",lts:!1,security:!1},{name:"nodejs",version:"11.11.0",date:"2019-03-05",lts:!1,security:!1},{name:"nodejs",version:"11.12.0",date:"2019-03-14",lts:!1,security:!1},{name:"nodejs",version:"11.13.0",date:"2019-03-28",lts:!1,security:!1},{name:"nodejs",version:"11.14.0",date:"2019-04-10",lts:!1,security:!1},{name:"nodejs",version:"11.15.0",date:"2019-04-30",lts:!1,security:!1},{name:"nodejs",version:"12.0.0",date:"2019-04-23",lts:!1,security:!1},{name:"nodejs",version:"12.1.0",date:"2019-04-29",lts:!1,security:!1},{name:"nodejs",version:"12.2.0",date:"2019-05-07",lts:!1,security:!1},{name:"nodejs",version:"12.3.0",date:"2019-05-21",lts:!1,security:!1},{name:"nodejs",version:"12.4.0",date:"2019-06-04",lts:!1,security:!1},{name:"nodejs",version:"12.5.0",date:"2019-06-26",lts:!1,security:!1},{name:"nodejs",version:"12.6.0",date:"2019-07-03",lts:!1,security:!1},{name:"nodejs",version:"12.7.0",date:"2019-07-23",lts:!1,security:!1},{name:"nodejs",version:"12.8.0",date:"2019-08-06",lts:!1,security:!1},{name:"nodejs",version:"12.9.0",date:"2019-08-20",lts:!1,security:!1},{name:"nodejs",version:"12.10.0",date:"2019-09-04",lts:!1,security:!1},{name:"nodejs",version:"12.11.0",date:"2019-09-25",lts:!1,security:!1},{name:"nodejs",version:"12.12.0",date:"2019-10-11",lts:!1,security:!1},{name:"nodejs",version:"12.13.0",date:"2019-10-21",lts:"Erbium",security:!1},{name:"nodejs",version:"12.14.0",date:"2019-12-17",lts:"Erbium",security:!0},{name:"nodejs",version:"12.15.0",date:"2020-02-05",lts:"Erbium",security:!0},{name:"nodejs",version:"12.16.0",date:"2020-02-11",lts:"Erbium",security:!1},{name:"nodejs",version:"12.17.0",date:"2020-05-26",lts:"Erbium",security:!1},{name:"nodejs",version:"12.18.0",date:"2020-06-02",lts:"Erbium",security:!0},{name:"nodejs",version:"12.19.0",date:"2020-10-06",lts:"Erbium",security:!1},{name:"nodejs",version:"12.20.0",date:"2020-11-24",lts:"Erbium",security:!1},{name:"nodejs",version:"12.21.0",date:"2021-02-23",lts:"Erbium",security:!0},{name:"nodejs",version:"13.0.0",date:"2019-10-22",lts:!1,security:!1},{name:"nodejs",version:"13.1.0",date:"2019-11-05",lts:!1,security:!1},{name:"nodejs",version:"13.2.0",date:"2019-11-21",lts:!1,security:!1},{name:"nodejs",version:"13.3.0",date:"2019-12-03",lts:!1,security:!1},{name:"nodejs",version:"13.4.0",date:"2019-12-17",lts:!1,security:!0},{name:"nodejs",version:"13.5.0",date:"2019-12-18",lts:!1,security:!1},{name:"nodejs",version:"13.6.0",date:"2020-01-07",lts:!1,security:!1},{name:"nodejs",version:"13.7.0",date:"2020-01-21",lts:!1,security:!1},{name:"nodejs",version:"13.8.0",date:"2020-02-05",lts:!1,security:!0},{name:"nodejs",version:"13.9.0",date:"2020-02-18",lts:!1,security:!1},{name:"nodejs",version:"13.10.0",date:"2020-03-04",lts:!1,security:!1},{name:"nodejs",version:"13.11.0",date:"2020-03-12",lts:!1,security:!1},{name:"nodejs",version:"13.12.0",date:"2020-03-26",lts:!1,security:!1},{name:"nodejs",version:"13.13.0",date:"2020-04-14",lts:!1,security:!1},{name:"nodejs",version:"13.14.0",date:"2020-04-29",lts:!1,security:!1},{name:"nodejs",version:"14.0.0",date:"2020-04-21",lts:!1,security:!1},{name:"nodejs",version:"14.1.0",date:"2020-04-29",lts:!1,security:!1},{name:"nodejs",version:"14.2.0",date:"2020-05-05",lts:!1,security:!1},{name:"nodejs",version:"14.3.0",date:"2020-05-19",lts:!1,security:!1},{name:"nodejs",version:"14.4.0",date:"2020-06-02",lts:!1,security:!0},{name:"nodejs",version:"14.5.0",date:"2020-06-30",lts:!1,security:!1},{name:"nodejs",version:"14.6.0",date:"2020-07-20",lts:!1,security:!1},{name:"nodejs",version:"14.7.0",date:"2020-07-29",lts:!1,security:!1},{name:"nodejs",version:"14.8.0",date:"2020-08-11",lts:!1,security:!1},{name:"nodejs",version:"14.9.0",date:"2020-08-27",lts:!1,security:!1},{name:"nodejs",version:"14.10.0",date:"2020-09-08",lts:!1,security:!1},{name:"nodejs",version:"14.11.0",date:"2020-09-15",lts:!1,security:!0},{name:"nodejs",version:"14.12.0",date:"2020-09-22",lts:!1,security:!1},{name:"nodejs",version:"14.13.0",date:"2020-09-29",lts:!1,security:!1},{name:"nodejs",version:"14.14.0",date:"2020-10-15",lts:!1,security:!1},{name:"nodejs",version:"14.15.0",date:"2020-10-27",lts:"Fermium",security:!1},{name:"nodejs",version:"14.16.0",date:"2021-02-23",lts:"Fermium",security:!0},{name:"nodejs",version:"15.0.0",date:"2020-10-20",lts:!1,security:!1},{name:"nodejs",version:"15.1.0",date:"2020-11-04",lts:!1,security:!1},{name:"nodejs",version:"15.2.0",date:"2020-11-10",lts:!1,security:!1},{name:"nodejs",version:"15.3.0",date:"2020-11-24",lts:!1,security:!1},{name:"nodejs",version:"15.4.0",date:"2020-12-09",lts:!1,security:!1},{name:"nodejs",version:"15.5.0",date:"2020-12-22",lts:!1,security:!1},{name:"nodejs",version:"15.6.0",date:"2021-01-14",lts:!1,security:!1},{name:"nodejs",version:"15.7.0",date:"2021-01-25",lts:!1,security:!1},{name:"nodejs",version:"15.8.0",date:"2021-02-02",lts:!1,security:!1},{name:"nodejs",version:"15.9.0",date:"2021-02-18",lts:!1,security:!1},{name:"nodejs",version:"15.10.0",date:"2021-02-23",lts:!1,security:!0}]});var W4=Y((RD,z4)=>{A();z4.exports={A:"ie",B:"edge",C:"firefox",D:"chrome",E:"safari",F:"opera",G:"ios_saf",H:"op_mini",I:"android",J:"bb",K:"op_mob",L:"and_chr",M:"and_ff",N:"ie_mob",O:"and_uc",P:"samsung",Q:"and_qq",R:"baidu",S:"kaios"}});var V4=Y((MD,G4)=>{A();G4.exports.browsers=W4()});var K4=Y((PD,J4)=>{A();J4.exports={"0":"43","1":"44","2":"45","3":"46","4":"47","5":"48","6":"49","7":"50","8":"51","9":"52",A:"10",B:"11",C:"12",D:"7",E:"8",F:"9",G:"15",H:"91",I:"4",J:"6",K:"13",L:"14",M:"16",N:"17",O:"18",P:"89",Q:"62",R:"79",S:"80",T:"81",U:"83",V:"84",W:"85",X:"86",Y:"87",Z:"88",a:"90",b:"5",c:"19",d:"20",e:"21",f:"22",g:"23",h:"24",i:"25",j:"26",k:"27",l:"28",m:"29",n:"30",o:"31",p:"32",q:"33",r:"34",s:"35",t:"36",u:"37",v:"38",w:"39",x:"40",y:"41",z:"42",AB:"53",BB:"54",CB:"55",DB:"56",EB:"57",FB:"58",GB:"60",HB:"63",IB:"64",JB:"65",KB:"66",LB:"67",MB:"68",NB:"69",OB:"70",PB:"71",QB:"72",RB:"73",SB:"74",TB:"75",UB:"76",VB:"11.1",WB:"12.1",XB:"3",YB:"59",ZB:"61",aB:"77",bB:"78",cB:"3.2",dB:"10.1",eB:"11.5",fB:"4.2-4.3",gB:"5.5",hB:"2",iB:"82",jB:"3.5",kB:"3.6",lB:"92",mB:"93",nB:"94",oB:"3.1",pB:"5.1",qB:"6.1",rB:"7.1",sB:"9.1",tB:"13.1",uB:"14.1",vB:"TP",wB:"9.5-9.6",xB:"10.0-10.1",yB:"10.5",zB:"10.6","0B":"11.6","1B":"4.0-4.1","2B":"5.0-5.1","3B":"6.0-6.1","4B":"7.0-7.1","5B":"8.1-8.4","6B":"9.0-9.2","7B":"9.3","8B":"10.0-10.2","9B":"10.3",AC:"11.0-11.2",BC:"11.3-11.4",CC:"12.0-12.1",DC:"12.2-12.4",EC:"13.0-13.1",FC:"13.2",GC:"13.3",HC:"13.4-13.7",IC:"14.0-14.4",JC:"14.5-14.6",KC:"all",LC:"2.1",MC:"2.2",NC:"2.3",OC:"4.1",PC:"4.4",QC:"4.4.3-4.4.4",RC:"12.12",SC:"5.0-5.4",TC:"6.2-6.4",UC:"7.2-7.4",VC:"8.2",WC:"9.2",XC:"11.1-11.2",YC:"12.0",ZC:"13.0",aC:"14.0",bC:"10.4",cC:"7.12",dC:"2.5"}});var Z4=Y((ID,Y4)=>{A();Y4.exports.browserVersions=K4()});var Q4=Y((LD,X4)=>{A();X4.exports={A:{A:{J:.0131217,D:.00621152,E:.0199047,F:.0928884,A:.0132698,B:.849265,gB:.009298},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","gB","J","D","E","F","A","B","","",""],E:"IE",F:{gB:962323200,J:998870400,D:1161129600,E:1237420800,F:1300060800,A:1346716800,B:1381968e3}},B:{A:{C:.008408,K:.004267,L:.004204,G:.004204,M:.008408,N:.033632,O:.092488,R:0,S:.004298,T:.00944,U:.00415,V:.008408,W:.008408,X:.012612,Y:.012612,Z:.016816,P:.079876,a:3.01006,H:.2102},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","K","L","G","M","N","O","R","S","T","U","V","W","X","Y","Z","P","a","H","","",""],E:"Edge",F:{C:1438128e3,K:1447286400,L:1470096e3,G:1491868800,M:1508198400,N:1525046400,O:1542067200,R:1579046400,S:1581033600,T:1586736e3,U:1590019200,V:1594857600,W:1598486400,X:1602201600,Y:1605830400,Z:161136e4,P:1614816e3,a:1618358400,H:1622073600},D:{C:"ms",K:"ms",L:"ms",G:"ms",M:"ms",N:"ms",O:"ms"}},C:{A:{"0":.058856,"1":.004204,"2":.004204,"3":.004525,"4":.004271,"5":.008408,"6":.004538,"7":.004267,"8":.004204,"9":.071468,hB:.012813,XB:.004271,I:.02102,b:.004879,J:.020136,D:.005725,E:.004525,F:.00533,A:.004283,B:.008408,C:.004471,K:.004486,L:.00453,G:.008542,M:.004417,N:.004425,O:.008542,c:.004443,d:.004283,e:.008542,f:.013698,g:.008542,h:.008786,i:.017084,j:.004317,k:.004393,l:.004418,m:.008834,n:.008542,o:.008928,p:.004471,q:.009284,r:.004707,s:.009076,t:.004425,u:.004783,v:.004271,w:.004783,x:.00487,y:.005029,z:.0047,AB:.004335,BB:.004204,CB:.004204,DB:.012612,EB:.004425,FB:.004204,YB:.004204,GB:.008408,ZB:.00472,Q:.004425,HB:.02102,IB:.00415,JB:.004267,KB:.008408,LB:.004267,MB:.012612,NB:.00415,OB:.004204,PB:.004425,QB:.008408,RB:.00415,SB:.00415,TB:.008542,UB:.004298,aB:.004204,bB:.14714,R:.008408,S:.008408,T:.012612,iB:.016816,U:.012612,V:.025224,W:.02102,X:.033632,Y:.071468,Z:2.3122,P:.029428,a:0,H:0,jB:.008786,kB:.00487},B:"moz",C:["hB","XB","jB","kB","I","b","J","D","E","F","A","B","C","K","L","G","M","N","O","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","YB","GB","ZB","Q","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","aB","bB","R","S","T","iB","U","V","W","X","Y","Z","P","a","H",""],E:"Firefox",F:{"0":1450137600,"1":1453852800,"2":1457395200,"3":1461628800,"4":1465257600,"5":1470096e3,"6":1474329600,"7":1479168e3,"8":1485216e3,"9":1488844800,hB:1161648e3,XB:1213660800,jB:124632e4,kB:1264032e3,I:1300752e3,b:1308614400,J:1313452800,D:1317081600,E:1317081600,F:1320710400,A:1324339200,B:1327968e3,C:1331596800,K:1335225600,L:1338854400,G:1342483200,M:1346112e3,N:1349740800,O:1353628800,c:1357603200,d:1361232e3,e:1364860800,f:1368489600,g:1372118400,h:1375747200,i:1379376e3,j:1386633600,k:1391472e3,l:1395100800,m:1398729600,n:1402358400,o:1405987200,p:1409616e3,q:1413244800,r:1417392e3,s:1421107200,t:1424736e3,u:1428278400,v:1431475200,w:1435881600,x:1439251200,y:144288e4,z:1446508800,AB:149256e4,BB:1497312e3,CB:1502150400,DB:1506556800,EB:1510617600,FB:1516665600,YB:1520985600,GB:1525824e3,ZB:1529971200,Q:1536105600,HB:1540252800,IB:1544486400,JB:154872e4,KB:1552953600,LB:1558396800,MB:1562630400,NB:1567468800,OB:1571788800,PB:1575331200,QB:1578355200,RB:1581379200,SB:1583798400,TB:1586304e3,UB:1588636800,aB:1591056e3,bB:1593475200,R:1595894400,S:1598313600,T:1600732800,iB:1603152e3,U:1605571200,V:1607990400,W:1611619200,X:1614038400,Y:1616457600,Z:1618790400,P:1622505600,a:null,H:null}},D:{A:{"0":.008408,"1":.004465,"2":.004642,"3":.004891,"4":.008408,"5":.02102,"6":.214404,"7":.004204,"8":.016816,"9":.004204,I:.004706,b:.004879,J:.004879,D:.005591,E:.005591,F:.005591,A:.004534,B:.004464,C:.010424,K:.0083,L:.004706,G:.015087,M:.004393,N:.004393,O:.008652,c:.008542,d:.004393,e:.004317,f:.012612,g:.008786,h:.008408,i:.004461,j:.004298,k:.004326,l:.0047,m:.004538,n:.008542,o:.008596,p:.004566,q:.004204,r:.008408,s:.012612,t:.004335,u:.004464,v:.025224,w:.004464,x:.012612,y:.0236,z:.004403,AB:.058856,BB:.008408,CB:.012612,DB:.04204,EB:.008408,FB:.008408,YB:.008408,GB:.016816,ZB:.121916,Q:.008408,HB:.02102,IB:.025224,JB:.02102,KB:.02102,LB:.033632,MB:.029428,NB:.067264,OB:.071468,PB:.025224,QB:.058856,RB:.02102,SB:.113508,TB:.092488,UB:.067264,aB:.029428,bB:.075672,R:.18918,S:.1051,T:.079876,U:.130324,V:.100896,W:.243832,X:.16816,Y:.311096,Z:.344728,P:1.0468,a:21.4866,H:.790352,lB:.025224,mB:.004204,nB:0},B:"webkit",C:["","","","I","b","J","D","E","F","A","B","C","K","L","G","M","N","O","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","YB","GB","ZB","Q","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","aB","bB","R","S","T","U","V","W","X","Y","Z","P","a","H","lB","mB","nB"],E:"Chrome",F:{"0":143208e4,"1":1437523200,"2":1441152e3,"3":1444780800,"4":1449014400,"5":1453248e3,"6":1456963200,"7":1460592e3,"8":1464134400,"9":1469059200,I:1264377600,b:1274745600,J:1283385600,D:1287619200,E:1291248e3,F:1296777600,A:1299542400,B:1303862400,C:1307404800,K:1312243200,L:1316131200,G:1316131200,M:1319500800,N:1323734400,O:1328659200,c:1332892800,d:133704e4,e:1340668800,f:1343692800,g:1348531200,h:1352246400,i:1357862400,j:1361404800,k:1364428800,l:1369094400,m:1374105600,n:1376956800,o:1384214400,p:1389657600,q:1392940800,r:1397001600,s:1400544e3,t:1405468800,u:1409011200,v:141264e4,w:1416268800,x:1421798400,y:1425513600,z:1429401600,AB:1472601600,BB:1476230400,CB:1480550400,DB:1485302400,EB:1489017600,FB:149256e4,YB:1496707200,GB:1500940800,ZB:1504569600,Q:1508198400,HB:1512518400,IB:1516752e3,JB:1520294400,KB:1523923200,LB:1527552e3,MB:1532390400,NB:1536019200,OB:1539648e3,PB:1543968e3,QB:154872e4,RB:1552348800,SB:1555977600,TB:1559606400,UB:1564444800,aB:1568073600,bB:1571702400,R:1575936e3,S:1580860800,T:1586304e3,U:1589846400,V:1594684800,W:1598313600,X:1601942400,Y:1605571200,Z:1611014400,P:1614556800,a:1618272e3,H:1621987200,lB:null,mB:null,nB:null}},E:{A:{I:0,b:.008542,J:.004656,D:.004465,E:.218608,F:.004891,A:.004425,B:.008408,C:.012612,K:.088284,L:2.26175,G:0,oB:0,cB:.008692,pB:.109304,qB:.00456,rB:.004283,sB:.02102,dB:.02102,VB:.058856,WB:.088284,tB:.395176,uB:.748312,vB:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","oB","cB","I","b","pB","J","qB","D","rB","E","F","sB","A","dB","B","VB","C","WB","K","tB","L","uB","G","vB",""],E:"Safari",F:{oB:1205798400,cB:1226534400,I:1244419200,b:1275868800,pB:131112e4,J:1343174400,qB:13824e5,D:13824e5,rB:1410998400,E:1413417600,F:1443657600,sB:1458518400,A:1474329600,dB:1490572800,B:1505779200,VB:1522281600,C:1537142400,WB:1553472e3,K:1568851200,tB:1585008e3,L:1600214400,uB:1619395200,G:null,vB:null}},F:{A:{"0":.008542,"1":.004227,"2":.004725,"3":.008408,"4":.008942,"5":.004707,"6":.004827,"7":.004707,"8":.004707,"9":.004326,F:.0082,B:.016581,C:.004317,G:.00685,M:.00685,N:.00685,O:.005014,c:.006015,d:.004879,e:.006597,f:.006597,g:.013434,h:.006702,i:.006015,j:.005595,k:.004393,l:.008652,m:.004879,n:.004879,o:.004711,p:.005152,q:.005014,r:.009758,s:.004879,t:.008408,u:.004283,v:.004367,w:.004534,x:.008408,y:.004227,z:.004418,AB:.008922,BB:.014349,CB:.004425,DB:.00472,EB:.004425,FB:.004425,GB:.00472,Q:.004532,HB:.004566,IB:.02283,JB:.00867,KB:.004656,LB:.004642,MB:.004298,NB:.00944,OB:.00415,PB:.004271,QB:.004298,RB:.096692,SB:.008408,TB:.433012,UB:.437216,wB:.00685,xB:0,yB:.008392,zB:.004706,VB:.006229,eB:.004879,"0B":.008786,WB:.00472},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","F","wB","xB","yB","zB","B","VB","eB","0B","C","WB","G","M","N","O","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","AB","BB","CB","DB","EB","FB","GB","Q","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","","",""],E:"Opera",F:{"0":1486425600,"1":1490054400,"2":1494374400,"3":1498003200,"4":1502236800,"5":1506470400,"6":1510099200,"7":1515024e3,"8":1517961600,"9":1521676800,F:1150761600,wB:1223424e3,xB:1251763200,yB:1267488e3,zB:1277942400,B:1292457600,VB:1302566400,eB:1309219200,"0B":1323129600,C:1323129600,WB:1352073600,G:1372723200,M:1377561600,N:1381104e3,O:1386288e3,c:1390867200,d:1393891200,e:1399334400,f:1401753600,g:1405987200,h:1409616e3,i:1413331200,j:1417132800,k:1422316800,l:1425945600,m:1430179200,n:1433808e3,o:1438646400,p:1442448e3,q:1445904e3,r:1449100800,s:1454371200,t:1457308800,u:146232e4,v:1465344e3,w:1470096e3,x:1474329600,y:1477267200,z:1481587200,AB:1525910400,BB:1530144e3,CB:1534982400,DB:1537833600,EB:1543363200,FB:1548201600,GB:1554768e3,Q:1561593600,HB:1566259200,IB:1570406400,JB:1573689600,KB:1578441600,LB:1583971200,MB:1587513600,NB:1592956800,OB:1595894400,PB:1600128e3,QB:1603238400,RB:161352e4,SB:1612224e3,TB:1616544e3,UB:1619568e3},D:{F:"o",B:"o",C:"o",wB:"o",xB:"o",yB:"o",zB:"o",VB:"o",eB:"o","0B":"o",WB:"o"}},G:{A:{E:.00144955,cB:0,"1B":0,fB:.00289911,"2B":.00869732,"3B":.0449361,"4B":.0304406,"5B":.0202937,"6B":.0217433,"7B":.147854,"8B":.0347893,"9B":.149304,AC:.0855236,BC:.0739272,CC:.0768263,DC:.246424,EC:.0666794,FC:.0333397,GC:.172497,HC:.572573,IC:10.1498,JC:1.93225},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","cB","1B","fB","2B","3B","4B","E","5B","6B","7B","8B","9B","AC","BC","CC","DC","EC","FC","GC","HC","IC","JC","","",""],E:"Safari on iOS",F:{cB:1270252800,"1B":1283904e3,fB:1299628800,"2B":1331078400,"3B":1359331200,"4B":1394409600,E:1410912e3,"5B":1413763200,"6B":1442361600,"7B":1458518400,"8B":1473724800,"9B":1490572800,AC:1505779200,BC:1522281600,CC:1537142400,DC:1553472e3,EC:1568851200,FC:1572220800,GC:1580169600,HC:1585008e3,IC:1600214400,JC:1619395200}},H:{A:{KC:1.18546},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","KC","","",""],E:"Opera Mini",F:{KC:1426464e3}},I:{A:{XB:0,I:.0263634,H:0,LC:0,MC:0,NC:0,OC:.0301296,fB:.0979213,PC:0,QC:.43688},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","LC","MC","NC","XB","I","OC","fB","PC","QC","H","","",""],E:"Android Browser",F:{LC:1256515200,MC:1274313600,NC:1291593600,XB:1298332800,I:1318896e3,OC:1341792e3,fB:1374624e3,PC:1386547200,QC:1401667200,H:1621987200}},J:{A:{D:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","A","","",""],E:"Blackberry Browser",F:{D:1325376e3,A:1359504e3}},K:{A:{A:0,B:0,C:0,Q:.0111391,VB:0,eB:0,WB:0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","VB","eB","C","WB","Q","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752e3,VB:1314835200,eB:1318291200,C:1330300800,WB:1349740800,Q:1613433600},D:{Q:"webkit"}},L:{A:{H:38.7167},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","H","","",""],E:"Chrome for Android",F:{H:1621987200}},M:{A:{P:.278256},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","P","","",""],E:"Firefox for Android",F:{P:1622505600}},N:{A:{A:.0115934,B:.022664},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456e3}},O:{A:{RC:1.36809},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","RC","","",""],E:"UC Browser for Android",F:{RC:1471392e3},D:{RC:"webkit"}},P:{A:{I:.309232,SC:.0103543,TC:.010304,UC:.0824619,VC:.0103584,WC:.0721541,dB:.0412309,XC:.164924,YC:.113385,ZC:.412309,aC:2.19555},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","I","SC","TC","UC","VC","WC","dB","XC","YC","ZC","aC","","",""],E:"Samsung Internet",F:{I:1461024e3,SC:1481846400,TC:1509408e3,UC:1528329600,VC:1546128e3,WC:1554163200,dB:1567900800,XC:1582588800,YC:1593475200,ZC:1605657600,aC:1618531200}},Q:{A:{bC:.185504},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","bC","","",""],E:"QQ Browser",F:{bC:1589846400}},R:{A:{cC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","cC","","",""],E:"Baidu Browser",F:{cC:1491004800}},S:{A:{dC:.098549},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","dC","","",""],E:"KaiOS Browser",F:{dC:1527811200}}}});var rS=Y((BD,nS)=>{A();var{browsers:D8}=V4(),B0=Z4().browserVersions,eS=Q4();function tS(i){return Object.keys(i).reduce((t,n)=>(t[B0[n]]=i[n],t),{})}nS.exports.agents=Object.keys(eS).reduce((i,t)=>{let n=eS[t];return i[D8[t]]=Object.keys(n).reduce((r,o)=>(o==="A"?r.usage_global=tS(n[o]):o==="C"?r.versions=n[o].reduce((a,l)=>(l===""?a.push(null):a.push(B0[l]),a),[]):o==="D"?r.prefix_exceptions=tS(n[o]):o==="E"?r.browser=n[o]:o==="F"?r.release_date=Object.keys(n[o]).reduce((a,l)=>(a[B0[l]]=n[o][l],a),{}):r.prefix=n[o],r),{}),i},{})});var iS=Y((kD,F8)=>{F8.exports={"v0.8":{start:"2012-06-25",end:"2014-07-31"},"v0.10":{start:"2013-03-11",end:"2016-10-31"},"v0.12":{start:"2015-02-06",end:"2016-12-31"},v4:{start:"2015-09-08",lts:"2015-10-12",maintenance:"2017-04-01",end:"2018-04-30",codename:"Argon"},v5:{start:"2015-10-29",maintenance:"2016-04-30",end:"2016-06-30"},v6:{start:"2016-04-26",lts:"2016-10-18",maintenance:"2018-04-30",end:"2019-04-30",codename:"Boron"},v7:{start:"2016-10-25",maintenance:"2017-04-30",end:"2017-06-30"},v8:{start:"2017-05-30",lts:"2017-10-31",maintenance:"2019-01-01",end:"2019-12-31",codename:"Carbon"},v9:{start:"2017-10-01",maintenance:"2018-04-01",end:"2018-06-30"},v10:{start:"2018-04-24",lts:"2018-10-30",maintenance:"2020-05-19",end:"2021-04-30",codename:"Dubnium"},v11:{start:"2018-10-23",maintenance:"2019-04-22",end:"2019-06-01"},v12:{start:"2019-04-23",lts:"2019-10-21",maintenance:"2020-11-30",end:"2022-04-30",codename:"Erbium"},v13:{start:"2019-10-22",maintenance:"2020-04-01",end:"2020-06-01"},v14:{start:"2020-04-21",lts:"2020-10-27",maintenance:"2021-10-19",end:"2023-04-30",codename:"Fermium"},v15:{start:"2020-10-20",maintenance:"2021-04-01",end:"2021-06-01"},v16:{start:"2021-04-20",lts:"2021-10-26",maintenance:"2022-10-18",end:"2024-04-30",codename:""}}});var sS=Y((ND,oS)=>{A();oS.exports={"0.20":"39","0.21":"41","0.22":"41","0.23":"41","0.24":"41","0.25":"42","0.26":"42","0.27":"43","0.28":"43","0.29":"43","0.30":"44","0.31":"45","0.32":"45","0.33":"45","0.34":"45","0.35":"45","0.36":"47","0.37":"49","1.0":"49","1.1":"50","1.2":"51","1.3":"52","1.4":"53","1.5":"54","1.6":"56","1.7":"58","1.8":"59","2.0":"61","2.1":"61","3.0":"66","3.1":"66","4.0":"69","4.1":"69","4.2":"69","5.0":"73","6.0":"76","6.1":"76","7.0":"78","7.1":"78","7.2":"78","7.3":"78","8.0":"80","8.1":"80","8.2":"80","8.3":"80","8.4":"80","8.5":"80","9.0":"83","9.1":"83","9.2":"83","9.3":"83","9.4":"83","10.0":"85","10.1":"85","10.2":"85","10.3":"85","10.4":"85","11.0":"87","11.1":"87","11.2":"87","11.3":"87","11.4":"87","12.0":"89","13.0":"91","13.1":"91","14.0":"92"}});var N0=Y((HD,aS)=>{A();function k0(i){this.name="BrowserslistError",this.message=i,this.browserslist=!0,Error.captureStackTrace&&Error.captureStackTrace(this,k0)}k0.prototype=Error.prototype;aS.exports=k0});var cS=Y((jD,lS)=>{A();var Sd=N0();function tl(){}lS.exports={loadQueries:function(){throw new Sd("Sharable configs are not supported in client-side build of Browserslist")},getStat:function(t){return t.stats},loadConfig:function(t){if(t.config)throw new Sd("Browserslist config are not supported in client-side build")},loadCountry:function(){throw new Sd("Country statistics are not supported in client-side build of Browserslist")},loadFeature:function(){throw new Sd("Supports queries are not available in client-side build of Browserslist")},currentNode:function(t,n){return t(["maintained node versions"],n)[0]},parseConfig:tl,readConfig:tl,findConfig:tl,clearCaches:tl,oldDataWarning:tl}});var AS=Y((DD,CS)=>{A();var Od=q4(),Bi=rS().agents,H0=iS(),xd=ka(),qr=sS(),Jn=N0(),Pn=cS(),$8=365.259641*24*60*60*1e3,uS=37,j0=1,dS=2;function fS(i,t){return(i+".").indexOf(t+".")===0}function U8(i){var t=i.slice(1);return Od.some(function(n){return fS(n.version,t)})}function hS(i){return i.filter(function(t){return typeof t=="string"})}function _d(i){var t=i;return i.split(".").length===3&&(t=i.split(".").slice(0,-1).join(".")),t}function oo(i){return function(n){return i+" "+n}}function pS(i){return parseInt(i.split(".")[0])}function D0(i,t){if(i.length===0)return[];var n=gS(i.map(pS)),r=n[n.length-t];if(!r)return i;for(var o=[],a=i.length-1;a>=0&&!(r>pS(i[a]));a--)o.unshift(i[a]);return o}function gS(i){for(var t=[],n=0;n<i.length;n++)t.indexOf(i[n])===-1&&t.push(i[n]);return t}function Td(i,t,n){for(var r in n)i[t+" "+r]=n[r]}function mS(i,t){return t=parseFloat(t),i===">"?function(n){return parseFloat(n)>t}:i===">="?function(n){return parseFloat(n)>=t}:i==="<"?function(n){return parseFloat(n)<t}:function(n){return parseFloat(n)<=t}}function q8(i,t){return t=t.split(".").map(so),t[1]=t[1]||0,t[2]=t[2]||0,i===">"?function(n){return n=n.split(".").map(so),nl(n,t)>0}:i===">="?function(n){return n=n.split(".").map(so),nl(n,t)>=0}:i==="<"?function(n){return n=n.split(".").map(so),nl(t,n)>0}:function(n){return n=n.split(".").map(so),nl(t,n)>=0}}function so(i){return parseInt(i)}function Cd(i,t){return i<t?-1:i>t?1:0}function nl(i,t){return Cd(parseInt(i[0]),parseInt(t[0]))||Cd(parseInt(i[1]||"0"),parseInt(t[1]||"0"))||Cd(parseInt(i[2]||"0"),parseInt(t[2]||"0"))}function yS(i,t){switch(t=t.split(".").map(so),typeof t[1]=="undefined"&&(t[1]="x"),i){case"<=":return function(n){return n=n.split(".").map(so),bS(n,t)<=0};default:case">=":return function(n){return n=n.split(".").map(so),bS(n,t)>=0}}}function bS(i,t){return i[0]!==t[0]?i[0]<t[0]?-1:1:t[1]==="x"?0:i[1]!==t[1]?i[1]<t[1]?-1:1:0}function z8(i,t){return i.versions.indexOf(t)!==-1?t:ze.versionAliases[i.name][t]?ze.versionAliases[i.name][t]:!1}function Ad(i,t){var n=z8(i,t);return n||(i.versions.length===1?i.versions[0]:!1)}function vS(i,t){return i=i/1e3,Object.keys(Bi).reduce(function(n,r){var o=zo(r,t);if(!o)return n;var a=Object.keys(o.releaseDate).filter(function(l){return o.releaseDate[l]>=i});return n.concat(a.map(oo(o.name)))},[])}function wS(i){return{name:i.name,versions:i.versions,released:i.released,releaseDate:i.releaseDate}}function W8(i,t){i.versions=i.versions.map(function(o){return t[o]||o}),i.released=i.versions.map(function(o){return t[o]||o});var n={};for(var r in i.releaseDate)n[t[r]||r]=i.releaseDate[r];return i.releaseDate=n,i}function zo(i,t){if(i=i.toLowerCase(),i=ze.aliases[i]||i,t.mobileToDesktop&&ze.desktopNames[i]){var n=ze.data[ze.desktopNames[i]];if(i==="android")return G8(wS(ze.data[i]),n);var r=wS(n);return r.name=i,i==="op_mob"&&(r=W8(r,{"10.0-10.1":"10"})),r}return ze.data[i]}function ES(i,t){var n=uS,r=t[t.length-1];return i.filter(function(o){return/^(?:[2-4]\.|[34]$)/.test(o)}).concat(t.slice(n-r-1))}function G8(i,t){return i.released=ES(i.released,t.released),i.versions=ES(i.versions,t.versions),i}function Gs(i,t){var n=zo(i,t);if(!n)throw new Jn("Unknown browser "+i);return n}function SS(i){return new Jn("Unknown browser query `"+i+"`. Maybe you are using old Browserslist or made typo in query.")}function Rd(i,t,n){if(n.mobileToDesktop)return i;var r=ze.data.android.released,o=r[r.length-1],a=o-uS-t;return a>0?i.slice(-1):i.slice(a-1)}function Vs(i,t){return Array.isArray(i)?i=xS(i.map(OS)):i=OS(i),i.reduce(function(n,r,o){var a=r.queryString,l=a.indexOf("not ")===0;if(l){if(o===0)throw new Jn("Write any browsers query (for instance, `defaults`) before `"+a+"`");a=a.slice(4)}for(var u=0;u<TS.length;u++){var d=TS[u],f=a.match(d.regexp);if(f){var m=[t].concat(f.slice(1)),p=d.select.apply(ze,m).map(function(S){var v=S.split(" ");return v[1]==="0"?v[0]+" "+zo(v[0],t).versions[0]:S});switch(r.type){case dS:return l?n.filter(function(S){return p.indexOf(S)===-1}):n.filter(function(S){return p.indexOf(S)!==-1});case j0:default:if(l){var E={};return p.forEach(function(S){E[S]=!0}),n.filter(function(S){return!E[S]})}return n.concat(p)}}}throw SS(a)},[])}var F0={};function ze(i,t){if(typeof t=="undefined"&&(t={}),typeof t.path=="undefined"&&(t.path=xd.resolve?xd.resolve("."):"."),typeof i=="undefined"||i===null){var n=ze.loadConfig(t);n?i=n:i=ze.defaults}if(!(typeof i=="string"||Array.isArray(i)))throw new Jn("Browser queries must be an array or string. Got "+typeof i+".");var r={ignoreUnknownVersions:t.ignoreUnknownVersions,dangerousExtend:t.dangerousExtend,mobileToDesktop:t.mobileToDesktop,path:t.path,env:t.env};Pn.oldDataWarning(ze.data);var o=Pn.getStat(t,ze.data);if(o){r.customUsage={};for(var a in o)Td(r.customUsage,a,o[a])}var l=JSON.stringify([i,r]);if(F0[l])return F0[l];var u=gS(Vs(i,r)).sort(function(d,f){if(d=d.split(" "),f=f.split(" "),d[0]===f[0]){var m=d[1].split("-")[0],p=f[1].split("-")[0];return nl(p.split("."),m.split("."))}else return Cd(d[0],f[0])});return j.env.BROWSERSLIST_DISABLE_CACHE||(F0[l]=u),u}function OS(i){var t=[];do i=V8(i,t);while(i);return t}function V8(i,t){var n=/^(?:,\s*|\s+or\s+)(.*)/i,r=/^\s+and\s+(.*)/i;return J8(i,function(o,a,l){return r.test(o)?(t.unshift({type:dS,queryString:o.match(r)[1]}),!0):n.test(o)?(t.unshift({type:j0,queryString:o.match(n)[1]}),!0):a===l?(t.unshift({type:j0,queryString:o.trim()}),!0):!1})}function J8(i,t){for(var n=1,r=i.length;n<=r;n++){var o=i.substr(-n,n);if(t(o,n,r))return i.slice(0,-n)}return""}function xS(i){return Array.isArray(i)?i.reduce(function(t,n){return t.concat(xS(n))},[]):[i]}ze.cache={};ze.data={};ze.usage={global:{},custom:null};ze.defaults=["> 0.5%","last 2 versions","Firefox ESR","not dead"];ze.aliases={fx:"firefox",ff:"firefox",ios:"ios_saf",explorer:"ie",blackberry:"bb",explorermobile:"ie_mob",operamini:"op_mini",operamobile:"op_mob",chromeandroid:"and_chr",firefoxandroid:"and_ff",ucandroid:"and_uc",qqandroid:"and_qq"};ze.desktopNames={and_chr:"chrome",and_ff:"firefox",ie_mob:"ie",op_mob:"opera",android:"chrome"};ze.versionAliases={};ze.clearCaches=Pn.clearCaches;ze.parseConfig=Pn.parseConfig;ze.readConfig=Pn.readConfig;ze.findConfig=Pn.findConfig;ze.loadConfig=Pn.loadConfig;ze.coverage=function(i,t){var n;if(typeof t=="undefined")n=ze.usage.global;else if(t==="my stats"){var r={};r.path=xd.resolve?xd.resolve("."):".";var o=Pn.getStat(r);if(!o)throw new Jn("Custom usage statistics was not provided");n={};for(var a in o)Td(n,a,o[a])}else if(typeof t=="string")t.length>2?t=t.toLowerCase():t=t.toUpperCase(),Pn.loadCountry(ze.usage,t,ze.data),n=ze.usage[t];else{"dataByBrowser"in t&&(t=t.dataByBrowser),n={};for(var l in t)for(var u in t[l])n[l+" "+u]=t[l][u]}return i.reduce(function(d,f){var m=n[f];return m===void 0&&(m=n[f.replace(/ \S+$/," 0")]),d+(m||0)},0)};function $0(i,t){var n=Od.filter(function(o){return o.name==="nodejs"}),r=n.filter(function(o){return fS(o.version,t)});if(r.length===0){if(i.ignoreUnknownVersions)return[];throw new Jn("Unknown version "+t+" of Node.js")}return["node "+r[r.length-1].version]}function U0(i,t,n,r){return t=parseInt(t),n=parseInt(n||"01")-1,r=parseInt(r||"01"),vS(Date.UTC(t,n,r,0,0,0),i)}function _S(i,t,n){t=parseFloat(t);var r=ze.usage.global;if(n)if(n.match(/^my\s+stats$/)){if(!i.customUsage)throw new Jn("Custom usage statistics was not provided");r=i.customUsage}else{var o;n.length===2?o=n.toUpperCase():o=n.toLowerCase(),Pn.loadCountry(ze.usage,o,ze.data),r=ze.usage[o]}for(var a=Object.keys(r).sort(function(m,p){return r[p]-r[m]}),l=0,u=[],d,f=0;f<=a.length&&(d=a[f],!(r[d]===0||(l+=r[d],u.push(d),l>=t)));f++);return u}var TS=[{regexp:/^last\s+(\d+)\s+major\s+versions?$/i,select:function(i,t){return Object.keys(Bi).reduce(function(n,r){var o=zo(r,i);if(!o)return n;var a=D0(o.released,t);return a=a.map(oo(o.name)),o.name==="android"&&(a=Rd(a,t,i)),n.concat(a)},[])}},{regexp:/^last\s+(\d+)\s+versions?$/i,select:function(i,t){return Object.keys(Bi).reduce(function(n,r){var o=zo(r,i);if(!o)return n;var a=o.released.slice(-t);return a=a.map(oo(o.name)),o.name==="android"&&(a=Rd(a,t,i)),n.concat(a)},[])}},{regexp:/^last\s+(\d+)\s+electron\s+major\s+versions?$/i,select:function(i,t){var n=D0(Object.keys(qr),t);return n.map(function(r){return"chrome "+qr[r]})}},{regexp:/^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i,select:function(i,t,n){var r=Gs(n,i),o=D0(r.released,t),a=o.map(oo(r.name));return r.name==="android"&&(a=Rd(a,t,i)),a}},{regexp:/^last\s+(\d+)\s+electron\s+versions?$/i,select:function(i,t){return Object.keys(qr).slice(-t).map(function(n){return"chrome "+qr[n]})}},{regexp:/^last\s+(\d+)\s+(\w+)\s+versions?$/i,select:function(i,t,n){var r=Gs(n,i),o=r.released.slice(-t).map(oo(r.name));return r.name==="android"&&(o=Rd(o,t,i)),o}},{regexp:/^unreleased\s+versions$/i,select:function(i){return Object.keys(Bi).reduce(function(t,n){var r=zo(n,i);if(!r)return t;var o=r.versions.filter(function(a){return r.released.indexOf(a)===-1});return o=o.map(oo(r.name)),t.concat(o)},[])}},{regexp:/^unreleased\s+electron\s+versions?$/i,select:function(){return[]}},{regexp:/^unreleased\s+(\w+)\s+versions?$/i,select:function(i,t){var n=Gs(t,i);return n.versions.filter(function(r){return n.released.indexOf(r)===-1}).map(oo(n.name))}},{regexp:/^last\s+(\d*.?\d+)\s+years?$/i,select:function(i,t){return vS(Date.now()-$8*t,i)}},{regexp:/^since (\d+)$/i,select:U0},{regexp:/^since (\d+)-(\d+)$/i,select:U0},{regexp:/^since (\d+)-(\d+)-(\d+)$/i,select:U0},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/,select:function(i,t,n){n=parseFloat(n);var r=ze.usage.global;return Object.keys(r).reduce(function(o,a){return t===">"?r[a]>n&&o.push(a):t==="<"?r[a]<n&&o.push(a):t==="<="?r[a]<=n&&o.push(a):r[a]>=n&&o.push(a),o},[])}},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/,select:function(i,t,n){if(n=parseFloat(n),!i.customUsage)throw new Jn("Custom usage statistics was not provided");var r=i.customUsage;return Object.keys(r).reduce(function(o,a){return t===">"?r[a]>n&&o.push(a):t==="<"?r[a]<n&&o.push(a):t==="<="?r[a]<=n&&o.push(a):r[a]>=n&&o.push(a),o},[])}},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/,select:function(i,t,n,r){n=parseFloat(n);var o=Pn.loadStat(i,r,ze.data);if(o){i.customUsage={};for(var a in o)Td(i.customUsage,a,o[a])}if(!i.customUsage)throw new Jn("Custom usage statistics was not provided");var l=i.customUsage;return Object.keys(l).reduce(function(u,d){return t===">"?l[d]>n&&u.push(d):t==="<"?l[d]<n&&u.push(d):t==="<="?l[d]<=n&&u.push(d):l[d]>=n&&u.push(d),u},[])}},{regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/,select:function(i,t,n,r){n=parseFloat(n),r.length===2?r=r.toUpperCase():r=r.toLowerCase(),Pn.loadCountry(ze.usage,r,ze.data);var o=ze.usage[r];return Object.keys(o).reduce(function(a,l){return t===">"?o[l]>n&&a.push(l):t==="<"?o[l]<n&&a.push(l):t==="<="?o[l]<=n&&a.push(l):o[l]>=n&&a.push(l),a},[])}},{regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%$/,select:_S},{regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/,select:_S},{regexp:/^supports\s+([\w-]+)$/,select:function(i,t){Pn.loadFeature(ze.cache,t);var n=ze.cache[t];return Object.keys(n).reduce(function(r,o){var a=n[o];return(a.indexOf("y")>=0||a.indexOf("a")>=0)&&r.push(o),r},[])}},{regexp:/^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(i,t,n){var r=_d(t),o=_d(n);if(!qr[r])throw new Jn("Unknown version "+t+" of electron");if(!qr[o])throw new Jn("Unknown version "+n+" of electron");return t=parseFloat(t),n=parseFloat(n),Object.keys(qr).filter(function(a){var l=parseFloat(a);return l>=t&&l<=n}).map(function(a){return"chrome "+qr[a]})}},{regexp:/^node\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(i,t,n){var r=Od.filter(function(o){return o.name==="nodejs"}).map(function(o){return o.version});return r.filter(yS(">=",t)).filter(yS("<=",n)).map(function(o){return"node "+o})}},{regexp:/^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(i,t,n,r){var o=Gs(t,i);n=parseFloat(Ad(o,n)||n),r=parseFloat(Ad(o,r)||r);function a(l){var u=parseFloat(l);return u>=n&&u<=r}return o.released.filter(a).map(oo(o.name))}},{regexp:/^electron\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(i,t,n){var r=_d(n);return Object.keys(qr).filter(mS(t,r)).map(function(o){return"chrome "+qr[o]})}},{regexp:/^node\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(i,t,n){var r=Od.filter(function(o){return o.name==="nodejs"}).map(function(o){return o.version});return r.filter(q8(t,n)).map(function(o){return"node "+o})}},{regexp:/^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/,select:function(i,t,n,r){var o=Gs(t,i),a=ze.versionAliases[o.name][r];return a&&(r=a),o.released.filter(mS(n,r)).map(function(l){return o.name+" "+l})}},{regexp:/^(firefox|ff|fx)\s+esr$/i,select:function(){return["firefox 78"]}},{regexp:/(operamini|op_mini)\s+all/i,select:function(){return["op_mini all"]}},{regexp:/^electron\s+([\d.]+)$/i,select:function(i,t){var n=_d(t),r=qr[n];if(!r)throw new Jn("Unknown version "+t+" of electron");return["chrome "+r]}},{regexp:/^node\s+(\d+)$/i,select:$0},{regexp:/^node\s+(\d+\.\d+)$/i,select:$0},{regexp:/^node\s+(\d+\.\d+\.\d+)$/i,select:$0},{regexp:/^current\s+node$/i,select:function(i){return[Pn.currentNode(Vs,i)]}},{regexp:/^maintained\s+node\s+versions$/i,select:function(i){var t=Date.now(),n=Object.keys(H0).filter(function(r){return t<Date.parse(H0[r].end)&&t>Date.parse(H0[r].start)&&U8(r)}).map(function(r){return"node "+r.slice(1)});return Vs(n,i)}},{regexp:/^phantomjs\s+1.9$/i,select:function(){return["safari 5"]}},{regexp:/^phantomjs\s+2.1$/i,select:function(){return["safari 6"]}},{regexp:/^(\w+)\s+(tp|[\d.]+)$/i,select:function(i,t,n){/^tp$/i.test(n)&&(n="TP");var r=Gs(t,i),o=Ad(r,n);if(o)n=o;else if(n.indexOf(".")===-1?o=n+".0":o=n.replace(/\.0$/,""),o=Ad(r,o),o)n=o;else{if(i.ignoreUnknownVersions)return[];throw new Jn("Unknown version "+n+" of "+t)}return[r.name+" "+n]}},{regexp:/^browserslist config$/i,select:function(i){return ze(void 0,i)}},{regexp:/^extends (.+)$/i,select:function(i,t){return Vs(Pn.loadQueries(i,t),i)}},{regexp:/^defaults$/i,select:function(i){return Vs(ze.defaults,i)}},{regexp:/^dead$/i,select:function(i){var t=["ie <= 10","ie_mob <= 11","bb <= 10","op_mob <= 12.1","samsung 4"];return Vs(t,i)}},{regexp:/^(\w+)$/i,select:function(i,t){throw zo(t,i)?new Jn("Specify versions in Browserslist query for browser "+t):SS(t)}}];(function(){for(var i in Bi){var t=Bi[i];ze.data[i]={name:i,versions:hS(Bi[i].versions),released:hS(Bi[i].versions.slice(0,-3)),releaseDate:Bi[i].release_date},Td(ze.usage.global,i,t.usage_global),ze.versionAliases[i]={};for(var n=0;n<t.versions.length;n++){var r=t.versions[n];if(!!r&&r.indexOf("-")!==-1)for(var o=r.split("-"),a=0;a<o.length;a++)ze.versionAliases[i][o[a]]=r}}ze.versionAliases.op_mob["59"]="58"})();CS.exports=ze});var g3=Y(Ee=>{A();"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});var K8=U4(),Y8=AS();function RS(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var MS=RS(K8),Z8=RS(Y8);(function(i){i[i.RegExp=0]="RegExp",i[i.Family=1]="Family",i[i.Major=2]="Major",i[i.Minor=3]="Minor",i[i.Patch=4]="Patch"})(Ee.BrowserRegExpSourceProp||(Ee.BrowserRegExpSourceProp={}));var ki="\\d",Md=`${ki}+`,Ni=`(${Md})`,ai="\\";function Pd(i,t=!1){let n=i.join("|");return t||i.length>1?`(${n})`:n}function PS(i){return i.map(t=>`(${t.regExpString})`).join("|")}function IS(i){return i.toString().includes(Ni)}function q0(i){return i.toString().split(Ni).length-1}function Wo(i){return i.toString().replace(/^\/|\/$/g,"")}function LS(i,t,n){let r=typeof i=="string"?i:Wo(i);return(typeof n=="number"&&n<t.length?t.slice(0,n):t).reduce((l,u)=>l.replace(Ni,u),r)}function Id(i){return Array.from(i.toString()).map(Number)}function Ld(i,t,n){return n==="["&&t!==ai?!0:n==="]"&&t!==ai?!1:i}function z0(i,t){let n=i[t];switch(n){case"+":case"*":case"?":return n;case"(":{let d=i[t+1],f=i[t+2];if(d!=="?"||f!=="="&&f!=="!")return"";break}case"{":break;default:return""}let r=i.length,o="",a=0,l=!1,u="";for(let d=t;d<r&&(n=i[d],o=i[d-1],l=Ld(l,o,n),!l&&o!==ai&&(n==="("||n==="{")&&a++,a>0&&(u+=n),!(!l&&o!==ai&&a>0&&(n===")"||n==="}")&&(a--,a===0)));d++);return u}(function(i){i[i.Major=0]="Major",i[i.Minor=1]="Minor",i[i.Patch=2]="Patch"})(Ee.SemverPart||(Ee.SemverPart={}));var Bd={bb:"BlackBerry",and_chr:"Chrome",ChromeAndroid:"Chrome",FirefoxAndroid:"Firefox",ff:"Firefox",ie_mob:"ExplorerMobile",ie:"Explorer",and_ff:"Firefox",ios_saf:"iOS",op_mini:"OperaMini",op_mob:"OperaMobile",and_qq:"QQAndroid",and_uc:"UCAndroid"},BS=new RegExp(`(${Object.keys(Bd).join("|")})`);function kS(i){let t=BS.exec(i);if(Array.isArray(t)){let[n]=t;return i.replace(n,Bd[n])}return i}function W0(i,t,n=0){let r=i.length;for(let o=n;o<r;o++)if(i[o]!==t[o])return!1;return!0}function kd(i){return typeof i=="number"?i:i.length===1?i[0]:[i[0],i[i.length-1]]}function Js(i){return(Array.isArray(i)?i[0]:i)==="all"}function NS(i){return i.filter(Boolean).filter((t,n,r)=>r&&!r.some((o,a)=>a>n&&W0(t,o)))}function G0(i,t){let n=i+Number(!t);return n===0?ki:n===9?"9":n>9?"":`[${n}-9]`}function HS(i){return i===ki}function jS(i){let t=[],n=0,r=0;return i.filter((o,a)=>a>0&&(n=o.filter(HS).length,r=t.filter(HS).length,n<=r)?!1:(t=o,!0))}function DS(i){if(i===0)return[Md];let t=Id(i),n=t.length,r=`${ki}{${n+1},}`,o=n-1;if(i/Math.pow(10,o)===t[0])return[`${G0(t[0],!0)}${ki.repeat(o)}`,r];let l=jS(t.map((u,d)=>{let f=n-d-1,m=d<=0,p=" ";return t.map((E,S)=>S<f?E.toString():p?S>f?ki:(p=G0(E,m),p):"")})).map(u=>u.join(""));return l.push(r),l}function Go(i,t,n){if(t<i)return"";let r=typeof n=="number"&&n>0?"0".repeat(n):"";return i===t?`${r}${i}`:i===0&&t===9?`${r}${ki}`:`${r}[${i}-${t}]`}function FS(i,t){let n=[],r=i,o=1;do o*=10,r<o&&(n.push([r,Math.min(o-1,t)]),r=o);while(o<=t);return n}function $S(i,t){let n=i.length;if(n!==t.length||i[0]!==t[0])return null;let r=i[0].toString(),o=0,a=0,l="",u="";for(let d=1;d<n;d++)o=i[d],a=t[d],o===a?r+=o:(l+=o,u+=a);return[r,parseInt(l,10),parseInt(u,10)]}function US(i,t,n){let r=n.length,o=[],a=0,l=0,u=0;for(let d=i;d<=t;d++)for(o.push(d.toString()),u+=Math.floor(Math.log10(d)+1)+1;u>l;){if(a>=r)return n;l+=n[a++].length+1}return o}function Nd(i,t,n=0){let r=Id(i),o=r.length;if(i<10&&t<10||i===t){let m=n-o;return[Go(i,t,m)]}let a=Id(t);if(o!==a.length){let m=FS(i,t);return[].concat(...m.map(([E,S])=>Nd(E,S,n)))}let l=$S(r,a);if(Array.isArray(l)){let[m,p,E]=l,S=o-m.length,v=Nd(p,E,S);return[`${m}${Pd(v)}`]}let u=Array.from({length:o-1}),d=Go(r[0]+1,a[0]-1);return[...u.map((m,p)=>{let E=o-p-1,S=Number(p>0);return r.map((v,y)=>y<E?v:y>E?Go(0,9):Go(v+S,9)).join("")}),...d?[`${d}${ki.repeat(o-1)}`]:[],...u.map((m,p)=>{let E=o-p-1,S=Number(p>0);return a.map((v,y)=>y<E?v:y>E?Go(0,9):Go(0,v-S)).join("")})]}function qS(i,t){return US(i,t,Nd(i,t))}function V0(i,t=1/0){if(Js(i))return Md;let n=t===1/0?DS(i):qS(i,t);return Pd(n)}function J0(i){let t=Array.isArray(i)?i:i.toString().split(".");if(Js(t[0]))return[t[0],0,0];for(;t.length<3;)t.push("0");return t.map(n=>{let r=typeof n=="number"?n:parseInt(n,10);return isNaN(r)?0:r})}function K0(i,t,n){let[r,o,a]=i,[l,u,d]=t,{ignoreMinor:f,ignorePatch:m,allowHigherVersions:p}=n;if(Js(l))return!0;let E=!f,S=E&&!m;return p?S&&a<d||E&&o<u?!1:r>=l:S&&a!==d||E&&o!==u?!1:r===l}function zS(i,t){let{ignoreMinor:n,ignorePatch:r,allowZeroSubversions:o}=t,a=n?1:r?2:3;if(o)for(let l=a-1;l>0&&!(i[l]!==0||a===1);l--)a--;return a}function WS(i,t){let{ignoreMinor:n,ignorePatch:r,allowHigherVersions:o}=t,a=Js(i[0])?0:n?1:r?2:1/0;return o?NS(i.map((d,f)=>{let m=2-f,p=Number(f>0),E=0;return i.map((S,v)=>v>=a?Ni:(E=Array.isArray(S)?S[0]:S,v<m?E.toString():v>m?Ni:V0(E+p)))})):[i.map((u,d)=>d>=a?Ni:Array.isArray(u)?V0(u[0],u[1]):u.toString())]}function Y0(i){return i.filter((t,n)=>!i.includes(t,n+1))}function GS(i,t,n,r){let o=jt(Fe({},r),{allowHigherVersions:!0});return(!i||n.some(a=>K0(a,i,o)))&&(!t||n.some(a=>K0(t,a,o)))}function VS(i,t){return Boolean(i||IS(t))}function ao(i,t,n){let r=t instanceof RegExp,o=null;switch(!0){case r:{let a=t.toString();o=l=>new RegExp(`(^|[^\\w])${l.replace(/ /g,"\\s*")}([^\\w]|$)`).test(a);break}case i:o=a=>a===t;break;default:o=a=>t.includes(a)}return n.some(o)}function JS(i){let t=Wo(i);switch(!0){case t.includes("Fennec"):return[null,[31,0,0]];case t.includes("Minefield"):return[[3,0,0],[4,0,0]];case t.includes("Namoroka"):return[[3,6,0],[3,6,0]];case t.includes("Shiretoko"):return[[3,0,0],[3,5,0]];case t.includes("CrMo"):return[[16,0,0],[16,0,0]];case t.includes("Opera)\\/9.8"):return[null,[12,15,0]];default:return[null,null]}}var KS=[...QS(MS.default.os),...XS(MS.default.browser)];function YS(i,t){let n=[];return KS.forEach(({family:r,regExp:o,fixedVersion:a,minVersion:l,maxVersion:u})=>{let d=i.get(r);d&&GS(l,u,d,t)&&VS(a,o)&&n.push({family:r,regExp:o,requestVersions:d,resultFixedVersion:a,resultMinVersion:l,resultMaxVersion:u})}),n}function ZS(i,t){let n=i||t,r=Wo(t);switch(!0){case/[^\w]?([A-Z]\w+iOS)[^\w]?/.test(r):case/iPhone.*Outlook-iOS-Android|UCWEB.*iPad\|iPh/.test(r):case r.includes("(iPhone|iPad|iPod).*Mac OS X.*Version"):case/YaBrowser|MRCHROME|Chrome.*\(OPR\)/.test(r):case/\(Chrome\).* Mobile|Mobile \.\*\(Chrome\)|; wv\\\)\.\+\(Chrome\)/.test(r):case r.includes("(?:Mobile|Tablet);.*(Firefox)"):case r.includes("(?:Mobile Safari).*(OPR)"):case/Opera.*\) \(\\d/.test(r):case/bingbot|^\\b\(/.test(r):return[];case ao(!1,n,["Chrome Mobile","Chromium"]):return[{family:"chrome"}];case ao(!0,n,["Samsung Internet"]):return[{family:"samsung"}];case ao(!0,n,["Firefox Mobile","Firefox ($1)"]):return[{family:"firefox"}];case ao(!0,n,["IE"]):return[{family:"explorer"}];case ao(!0,n,["IE Mobile"]):return[{family:"explorermobile"}];case ao(!0,n,["BlackBerry WebKit"]):return[{family:"blackberry"}];case ao(!0,n,["Opera Mobile"]):return[{family:"operamobile"}];case n===t:{let o=/\(([\s\w\d_\-/!|]+)\)/i.exec(r);if(Array.isArray(o)){let a=o[1],l=a.split("|"),u=new Map;return Y0(l.map(f=>{let m=f.replace(/[^\d\w]/g,"").toLowerCase();return u.has(m)?u.get(m).push(f):u.set(m,[f]),m})).map(f=>({family:f,regExp:new RegExp(r.replace(a,u.get(f).join("|")))}))}return[]}case typeof i=="string":return[{family:i.toLowerCase()}];default:return[]}}function Z0(i){let{[Ee.BrowserRegExpSourceProp.RegExp]:t,[Ee.BrowserRegExpSourceProp.Family]:n,[Ee.BrowserRegExpSourceProp.Major]:r,[Ee.BrowserRegExpSourceProp.Minor]:o,[Ee.BrowserRegExpSourceProp.Patch]:a}=i,l=ZS(n,t),u=r===0?null:J0([r,o,a]),d=u,f=u;return l.map(E=>{var S=E,{regExp:m=t}=S,p=Vi(S,["regExp"]);return u||([d,f]=JS(m)),Fe({regExp:m,fixedVersion:u,minVersion:d,maxVersion:f},p)})}function XS(i){let t=i.length,n=[];for(let r=0;r<t;r++)n.push(...Z0(i[r]));return n}function QS(i){let t=i.length,n=[];for(let r=0;r<t;r++)i[r][Ee.BrowserRegExpSourceProp.Family]==="iOS"&&n.push(...Z0(i[r]));return n}function e3(i){return[].concat(...i.map(t=>{let[n,...r]=t.split(/ |-/),o=(Bd[n]||n).toLowerCase();return r.map(a=>({family:o,version:J0(a)}))}))}function t3(i={}){let{browsers:t,env:n,path:r}=i,o=Array.isArray(t)?t.map(kS):t,a=Z8.default(o,{env:n,path:r});return e3(a)}function n3(i){let t=new Map;return i.forEach(({family:n,version:r})=>{let o=t.get(n);if(o){let a=r.join(".");o.every(l=>l.join(".")!==a)&&o.push(r);return}t.set(n,[r])}),t.forEach(n=>{n.sort((r,o)=>{for(let a in r)if(r[a]!==o[a])return r[a]-o[a];return 0})}),t}function r3(i){if(i.length<2)return i;let t=i.length+1,n=[],r=null,o=i[0],a=[o[Ee.SemverPart.Major]],l=[o[Ee.SemverPart.Minor]],u=[o[Ee.SemverPart.Patch]],d=null;for(let f=1;f<t;f++){r=i[f-1],o=i[f]||[];for(let m=Ee.SemverPart.Major;m<=Ee.SemverPart.Patch;m++){if((m===d||d===null)&&r[m]+1===o[m]&&W0(r,o,m+1)){d=m,m===Ee.SemverPart.Major?a.push(o[Ee.SemverPart.Major]):a=o[Ee.SemverPart.Major],m===Ee.SemverPart.Minor?l.push(o[Ee.SemverPart.Minor]):l=o[Ee.SemverPart.Minor],m===Ee.SemverPart.Patch?u.push(o[Ee.SemverPart.Patch]):u=o[Ee.SemverPart.Patch];break}if(d===m||r[m]!==o[m]){n.push([kd(a),kd(l),kd(u)]),a=[o[Ee.SemverPart.Major]],l=[o[Ee.SemverPart.Minor]],u=[o[Ee.SemverPart.Patch]],d=null;break}}}return n}function i3(i){let t=new Map;return i.forEach((n,r)=>{t.set(r,r3(n))}),t}var o3=/^\([\s\w\d_\-/!]+\)$/,s3=/[/.$*+?[{}|()]/;function a3(i){let t=i.length,n=!1,r=!1,o="",a="",l="",u="",d="",f="";for(let m=0;m<t;m++)o=i[m],a=i[m-1],l=i[m+1],r=Ld(r,a,o),!r&&a!==ai&&o==="("&&(n&&(f+=d),n=!0,d=""),r&&o===ai&&s3.test(l)&&(m++,o=l),n?d+=o:f+=o,!r&&a!==ai&&o===")"&&n&&(n=!1,u=z0(i,m+1),d+=u,(d===Ni||o3.test(d))&&(d=d.substr(1,d.length-2)),f+=d,m+=u.length);return f}function l3(i,t){let n=typeof i=="string"?i:Wo(i),r=n.length,o=typeof t=="number"?t:q0(n),a=0,l=!1,u=0,d="",f="",m="",p="";for(let E=0;E<r;E++)if(d=n[E],f=n[E-1],l=Ld(l,f,d),!l&&f!==ai&&d==="("&&(a++,m=""),(a>0||u>0)&&(p+=d,m+=d),!l&&f!==ai&&d===")"&&a>0&&(a--,m===Ni&&u++,a===0&&u===0&&(p=""),a===0&&u>=o)){p+=z0(n,++E);break}return p}function c3(i,t,n){let r=1,o=typeof i=="string"?i:Wo(i),a=q0(o),l=t.map(m=>{let p=zS(m,n);return r=Math.max(r,p),a>=p?m:null}).filter(Boolean);if(!l.length)return null;let u=l3(o,r),d=Pd(Y0([].concat(...l.map(m=>WS(m,n).map(p=>LS(u,p,r))))));return o.replace(u,d)}function u3(i,t,n){let r=[];return i.forEach(f=>{var m=f,{family:o,regExp:a,resultFixedVersion:l,requestVersions:u}=m,d=Vi(m,["family","regExp","resultFixedVersion","requestVersions"]);let p=Wo(a),E=null,S="";l?(E=a,S=p):(S=c3(p,t.get(o),n),E=new RegExp(S)),S&&E&&r.push(Fe({family:o,sourceRegExp:a,sourceRegExpString:p,regExp:E,regExpString:S,resultFixedVersion:l,requestVersions:u,requestVersionsStrings:u.map(v=>Js(v)?String(v[0]):v.join("."))},d))}),r}function d3(i){return i.map(r=>{var o=r,{regExpString:t}=o,n=Vi(o,["regExpString"]);let a=a3(t),l=new RegExp(a);return jt(Fe({},n),{regExp:l,regExpString:a})})}var X8=[{test(i){let t=i.get("chrome"),n=i.get("edge");if(!(t&&n))return!1;let o=t[0][0],a=n[0][0];return o<74&&a<=18},patch(i){let{family:t,regExpString:n,resultMinVersion:r}=i;if(t!=="chrome"||r&&r[0]>=74||n.includes("HeadlessChrome"))return i;let o=`${n}([\\d.]+$|.*Safari\\/(?![\\d.]+ Edge\\/[\\d.]+$))`,a=new RegExp(o);return jt(Fe({},i),{regExp:a,regExpString:o})}},{test(i){return i.has("safari")},patch(i){let{family:t,regExpString:n}=i;if(t!=="safari")return i;let r=n.replace(/\.\*(Safari\\\/)/," $1"),o=new RegExp(r);return jt(Fe({},i),{regExp:o,regExpString:r})}}];function f3(i,t){let n=new Map;return i.map(r=>X8.reduce((o,a)=>(n.has(a)||n.set(a,a.test(t)),n.get(a)?a.patch(o):o),r))}var h3={ignoreMinor:!1,ignorePatch:!0,allowZeroSubversions:!1,allowHigherVersions:!1};function p3(i={}){let S=i,{browsers:t,env:n,path:r}=S,o=Vi(S,["browsers","env","path"]),a=Fe(Fe({},h3),o),l=t3({browsers:t,env:n,path:r}),u=n3(l),d=i3(u),f=YS(u,a),m=u3(f,d,a),p=f3(m,u);return d3(p)}function Q8(i={}){let t=p3(i),n=PS(t);return new RegExp(n)}Ee.BRACED_NUMBER_PATTERN=Ni;Ee.BROWSERS_REGEXPS=KS;Ee.BROWSERS_SHIRTNAMES=Bd;Ee.BROWSERS_SHIRTNAMES_REGEXP=BS;Ee.CHARCLASS_UNESCAPES=s3;Ee.DIGIT_PATTERN=ki;Ee.ESCAPE_SYMBOL=ai;Ee.NUMBER_PATTERN=Md;Ee.OPTIMIZABLE_GROUP=o3;Ee.applyVersionsToRegExp=c3;Ee.applyVersionsToRegExps=u3;Ee.browserVersionsToRanges=i3;Ee.capturePostfix=z0;Ee.compareArrays=W0;Ee.compareSemvers=K0;Ee.defaultOptions=h3;Ee.enumOrRange=US;Ee.extractIOSRegExp=QS;Ee.familyMatched=ao;Ee.fixBrowserFamily=ZS;Ee.fixBrowserRegExp=Z0;Ee.fixBrowsersRegExps=XS;Ee.getBrowsersList=t3;Ee.getMinMaxVersions=JS;Ee.getNumberPatternsCount=q0;Ee.getNumberPatternsPart=l3;Ee.getRegExpsForBrowsers=YS;Ee.getRequiredSemverPartsCount=zS;Ee.getUserAgentRegExp=Q8;Ee.getUserAgentRegExps=p3;Ee.hasNumberPattern=IS;Ee.hasVersion=VS;Ee.isAllVersion=Js;Ee.joinParts=Pd;Ee.joinVersionedBrowsersRegExps=PS;Ee.mergeBrowserVersions=n3;Ee.normalizeBrowserFamily=kS;Ee.numberToDigits=Id;Ee.numbersToRanges=kd;Ee.optimize=a3;Ee.optimizeAll=d3;Ee.optimizeRaysNumberPatterns=jS;Ee.parseBrowsersList=e3;Ee.patchRegExps=f3;Ee.rangeToRegExp=V0;Ee.rangedSemverToRegExp=WS;Ee.rayRangeDigitPattern=G0;Ee.rayToNumberPatterns=DS;Ee.regExpToString=Wo;Ee.replaceNumberPatterns=LS;Ee.segmentRangeNumberPattern=Go;Ee.segmentToNumberPatterns=Nd;Ee.segmentToNumberPatternsOrEnum=qS;Ee.semverify=J0;Ee.skipSquareBraces=Ld;Ee.someSemverMatched=GS;Ee.splitCommonDiff=$S;Ee.splitToDecadeRanges=FS;Ee.uniq=Y0;Ee.uniqItems=NS;Ee.versionsListToRanges=r3});var m3=Y((rl,X0)=>{A();(function(i,t){typeof rl=="object"&&typeof X0=="object"?X0.exports=t():typeof define=="function"&&define.amd?define([],t):typeof rl=="object"?rl.devtoolsDetector=t():i.devtoolsDetector=t()})(typeof self!="undefined"?self:rl,function(){return function(i){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return i[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=i,n.c=t,n.d=function(r,o,a){n.o(r,o)||Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:a})},n.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(o,"a",o),o},n.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},n.p="",n(n.s=3)}([function(i,t,n){"use strict";n.d(t,"j",function(){return m}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return E}),n.d(t,"d",function(){return S}),n.d(t,"i",function(){return v}),n.d(t,"g",function(){return y}),n.d(t,"c",function(){return b}),n.d(t,"h",function(){return w}),t.a=function(){for(var T,C=[],_=0;_<arguments.length;_++)C[_]=arguments[_];return(f==null?void 0:f.document)?(T=f.document).createElement.apply(T,C):{}},n.d(t,"b",function(){return O});var r,o,a,l,u,d=n(1),f=Object(d.a)(),m=((r=f==null?void 0:f.navigator)===null||r===void 0?void 0:r.userAgent)||"unknown",p="InstallTrigger"in((f==null?void 0:f.window)||{})||/firefox/i.test(m),E=/trident/i.test(m)||/msie/i.test(m),S=/edge/i.test(m),v=/webkit/i.test(m)&&!S,y=/IqiyiApp/.test(m),b=((o=f==null?void 0:f.window)===null||o===void 0?void 0:o.chrome)!==void 0||/chrome/i.test(m)||/CriOS/i.test(m),w=(((l=(a=f==null?void 0:f.window)===null||a===void 0?void 0:a.safari)===null||l===void 0?void 0:l.pushNotification)||!1).toString()==="[object SafariRemoteNotification]"||/safari/i.test(m)&&!b,O=typeof((u=f.document)===null||u===void 0?void 0:u.createElement)=="function"},function(i,t,n){"use strict";(function(r){t.c=function(){return typeof performance!="undefined"?performance.now():Date.now()},t.b=function(l){l===void 0&&(l={});for(var u=l.includes,d=u===void 0?[]:u,f=l.excludes,m=f===void 0?[]:f,p=!1,E=!1,S=0,v=d;S<v.length;S++){var y=v[S];if(y===!0){p=!0;break}}for(var b=0,w=m;b<w.length;b++){var y=w[b];if(y===!0){E=!0;break}}return p&&!E},t.d=function(l,u,d){var f=a.a[l];return f===void 0?!1:Object(o.compare)(f,u,d)},t.a=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:r!==void 0?r:this};var o=n(8),a=(n.n(o),n(4))}).call(t,n(7))},function(i,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"c",function(){return l}),n.d(t,"a",function(){return u});var r=n(0);function o(d){if(console){if(!r.f&&!r.d)return console[d];if(d==="log"||d==="clear")return function(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];console[d].apply(console,f)}}return function(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m]}}var a=o("log"),l=o("table"),u=o("clear")},function(i,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addListener=function(p){m.addListener(p)},t.removeListener=function(p){m.removeListener(p)},t.isLaunch=function(){return m.isLaunch()},t.launch=function(){m.launch()},t.stop=function(){m.stop()},t.setDetectDelay=function(p){m.setDetectDelay(p)};var r=n(6),o=n(9);n.d(t,"DevtoolsDetector",function(){return r.a}),n.d(t,"checkers",function(){return o});var a=n(1);n.d(t,"match",function(){return a.b}),n.d(t,"specificVersionMatch",function(){return a.d});var l=n(0);n.d(t,"userAgent",function(){return l.j}),n.d(t,"isFirefox",function(){return l.e}),n.d(t,"isIE",function(){return l.f}),n.d(t,"isEdge",function(){return l.d}),n.d(t,"isWebkit",function(){return l.i}),n.d(t,"isIqiyiApp",function(){return l.g}),n.d(t,"isChrome",function(){return l.c}),n.d(t,"isSafari",function(){return l.h}),n.d(t,"createElement",function(){return l.a}),n.d(t,"inBrowser",function(){return l.b});var u=n(2);n.d(t,"log",function(){return u.b}),n.d(t,"table",function(){return u.c}),n.d(t,"clear",function(){return u.a});var d=n(4);n.d(t,"versionMap",function(){return d.a});var f=n(5);n.d(t,"isMac",function(){return f.d}),n.d(t,"isIpad",function(){return f.b}),n.d(t,"isIphone",function(){return f.c}),n.d(t,"isAndroid",function(){return f.a}),n.d(t,"isWindows",function(){return f.e});var m=new r.a({checkers:[o.erudaChecker,o.elementIdChecker,o.regToStringChecker,o.functionToStringChecker,o.depRegToStringChecker,o.dateToStringChecker,o.performanceChecker,o.debuggerChecker]});t.default=m},function(i,t,n){"use strict";n.d(t,"a",function(){return r});for(var r={},o=0,a=(n(0).j||"").match(/\w+\/(\d|\.)+(\s|$)/gi)||[];o<a.length;o++){var l=a[o].split("/"),u=l[0],d=l[1];r[u]=d}},function(i,t,n){"use strict";n.d(t,"d",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return l}),n.d(t,"a",function(){return u}),n.d(t,"e",function(){return d});var r=n(0),o=/macintosh/i.test(r.j),a=/ipad/i.test(r.j)||o&&navigator.maxTouchPoints>1,l=/iphone/i.test(r.j),u=/android/i.test(r.j),d=/windows/i.test(r.j)},function(i,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(0),o=this&&this.__awaiter||function(u,d,f,m){return new(f||(f=Promise))(function(p,E){function S(b){try{y(m.next(b))}catch(w){E(w)}}function v(b){try{y(m.throw(b))}catch(w){E(w)}}function y(b){b.done?p(b.value):function(w){return w instanceof f?w:new f(function(O){O(w)})}(b.value).then(S,v)}y((m=m.apply(u,d||[])).next())})},a=this&&this.__generator||function(u,d){var f,m,p,E,S={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return E={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function v(y){return function(b){return function(w){if(f)throw new TypeError("Generator is already executing.");for(;S;)try{if(f=1,m&&(p=2&w[0]?m.return:w[0]?m.throw||((p=m.return)&&p.call(m),0):m.next)&&!(p=p.call(m,w[1])).done)return p;switch(m=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return S.label++,{value:w[1],done:!1};case 5:S.label++,m=w[1],w=[0];continue;case 7:w=S.ops.pop(),S.trys.pop();continue;default:if(!(p=(p=S.trys).length>0&&p[p.length-1])&&(w[0]===6||w[0]===2)){S=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){S.label=w[1];break}if(w[0]===6&&S.label<p[1]){S.label=p[1],p=w;break}if(p&&S.label<p[2]){S.label=p[2],S.ops.push(w);break}p[2]&&S.ops.pop(),S.trys.pop();continue}w=d.call(u,S)}catch(O){w=[6,O],m=0}finally{f=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([y,b])}}},l=function(){function u(d){var f=d.checkers;this._listeners=[],this._isOpen=!1,this._detectLoopStopped=!0,this._detectLoopDelay=500,this._checkers=f.slice()}return u.prototype.launch=function(){r.b&&(this._detectLoopDelay<=0&&this.setDetectDelay(500),this._detectLoopStopped&&(this._detectLoopStopped=!1,this._detectLoop()))},u.prototype.stop=function(){this._detectLoopStopped||(this._detectLoopStopped=!0,clearTimeout(this._timer))},u.prototype.isLaunch=function(){return!this._detectLoopStopped},u.prototype.setDetectDelay=function(d){this._detectLoopDelay=d},u.prototype.addListener=function(d){this._listeners.push(d)},u.prototype.removeListener=function(d){this._listeners=this._listeners.filter(function(f){return f!==d})},u.prototype._broadcast=function(d){for(var f=0,m=this._listeners;f<m.length;f++){var p=m[f];try{p(d.isOpen,d)}catch(E){}}},u.prototype._detectLoop=function(){return o(this,void 0,void 0,function(){var d,f,m,p,E,S=this;return a(this,function(v){switch(v.label){case 0:d=!1,f="",m=0,p=this._checkers,v.label=1;case 1:return m<p.length?[4,(E=p[m]).isEnable()]:[3,6];case 2:return v.sent()?(f=E.name,[4,E.isOpen()]):[3,4];case 3:d=v.sent(),v.label=4;case 4:if(d)return[3,6];v.label=5;case 5:return m++,[3,1];case 6:return d!=this._isOpen&&(this._isOpen=d,this._broadcast({isOpen:d,checkerName:f})),this._detectLoopDelay>0&&!this._detectLoopStopped?this._timer=setTimeout(function(){return S._detectLoop()},this._detectLoopDelay):this.stop(),[2]}})})},u}()},function(i,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(r){typeof window=="object"&&(n=window)}i.exports=n},function(i,t,n){var r,o,a;(function(l,u){o=[],(a=typeof(r=u)=="function"?r.apply(t,o):r)===void 0||(i.exports=a)})(0,function(){var l=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function u(S){var v=S.replace(/^v/,"").replace(/\+.*$/,""),y=function(w,O){return w.indexOf(O)===-1?w.length:w.indexOf(O)}(v,"-"),b=v.substring(0,y).split(".");return b.push(v.substring(y+1)),b}function d(S){return isNaN(Number(S))?S:Number(S)}function f(S){if(typeof S!="string")throw new TypeError("Invalid argument expected string");if(!l.test(S))throw new Error("Invalid argument not valid semver ('"+S+"' received)")}function m(S,v){[S,v].forEach(f);for(var y=u(S),b=u(v),w=0;w<Math.max(y.length-1,b.length-1);w++){var O=parseInt(y[w]||0,10),T=parseInt(b[w]||0,10);if(O>T)return 1;if(T>O)return-1}var C=y[y.length-1],_=b[b.length-1];if(C&&_){var I=C.split(".").map(d),D=_.split(".").map(d);for(w=0;w<Math.max(I.length,D.length);w++){if(I[w]===void 0||typeof D[w]=="string"&&typeof I[w]=="number")return-1;if(D[w]===void 0||typeof I[w]=="string"&&typeof D[w]=="number"||I[w]>D[w])return 1;if(D[w]>I[w])return-1}}else if(C||_)return C?-1:1;return 0}var p=[">",">=","=","<","<="],E={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return m.validate=function(S){return typeof S=="string"&&l.test(S)},m.compare=function(S,v,y){(function(w){if(typeof w!="string")throw new TypeError("Invalid operator type, expected string but got "+typeof w);if(p.indexOf(w)===-1)throw new TypeError("Invalid operator, expected one of "+p.join("|"))})(y);var b=m(S,v);return E[y].indexOf(b)>-1},m})},function(i,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10);n.d(t,"depRegToStringChecker",function(){return r.a});var o=n(11);n.d(t,"elementIdChecker",function(){return o.a});var a=n(12);n.d(t,"functionToStringChecker",function(){return a.a});var l=n(13);n.d(t,"regToStringChecker",function(){return l.a});var u=n(14);n.d(t,"debuggerChecker",function(){return u.a});var d=n(15);n.d(t,"dateToStringChecker",function(){return d.a});var f=n(16);n.d(t,"performanceChecker",function(){return f.a});var m=n(17);n.d(t,"erudaChecker",function(){return m.a})},function(i,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(0),o=n(2),a=n(1),l=this&&this.__awaiter||function(p,E,S,v){return new(S||(S=Promise))(function(y,b){function w(C){try{T(v.next(C))}catch(_){b(_)}}function O(C){try{T(v.throw(C))}catch(_){b(_)}}function T(C){C.done?y(C.value):function(_){return _ instanceof S?_:new S(function(I){I(_)})}(C.value).then(w,O)}T((v=v.apply(p,E||[])).next())})},u=this&&this.__generator||function(p,E){var S,v,y,b,w={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return b={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function O(T){return function(C){return function(_){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,v&&(y=2&_[0]?v.return:_[0]?v.throw||((y=v.return)&&y.call(v),0):v.next)&&!(y=y.call(v,_[1])).done)return y;switch(v=0,y&&(_=[2&_[0],y.value]),_[0]){case 0:case 1:y=_;break;case 4:return w.label++,{value:_[1],done:!1};case 5:w.label++,v=_[1],_=[0];continue;case 7:_=w.ops.pop(),w.trys.pop();continue;default:if(!(y=(y=w.trys).length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){w=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){w.label=_[1];break}if(_[0]===6&&w.label<y[1]){w.label=y[1],y=_;break}if(y&&w.label<y[2]){w.label=y[2],w.ops.push(_);break}y[2]&&w.ops.pop(),w.trys.pop();continue}_=E.call(p,w)}catch(I){_=[6,I],v=0}finally{S=y=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([T,C])}}},d=/ /,f=!1;d.toString=function(){return f=!0,m.name};var m={name:"dep-reg-to-string",isOpen:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return f=!1,Object(o.c)({dep:d}),Object(o.a)(),[2,f]})})},isEnable:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return[2,Object(a.b)({includes:[!0],excludes:[r.e,r.f]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(0),o=n(2),a=n(1),l=this&&this.__awaiter||function(p,E,S,v){return new(S||(S=Promise))(function(y,b){function w(C){try{T(v.next(C))}catch(_){b(_)}}function O(C){try{T(v.throw(C))}catch(_){b(_)}}function T(C){C.done?y(C.value):function(_){return _ instanceof S?_:new S(function(I){I(_)})}(C.value).then(w,O)}T((v=v.apply(p,E||[])).next())})},u=this&&this.__generator||function(p,E){var S,v,y,b,w={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return b={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function O(T){return function(C){return function(_){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,v&&(y=2&_[0]?v.return:_[0]?v.throw||((y=v.return)&&y.call(v),0):v.next)&&!(y=y.call(v,_[1])).done)return y;switch(v=0,y&&(_=[2&_[0],y.value]),_[0]){case 0:case 1:y=_;break;case 4:return w.label++,{value:_[1],done:!1};case 5:w.label++,v=_[1],_=[0];continue;case 7:_=w.ops.pop(),w.trys.pop();continue;default:if(!(y=(y=w.trys).length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){w=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){w.label=_[1];break}if(_[0]===6&&w.label<y[1]){w.label=y[1],y=_;break}if(y&&w.label<y[2]){w.label=y[2],w.ops.push(_);break}y[2]&&w.ops.pop(),w.trys.pop();continue}_=E.call(p,w)}catch(I){_=[6,I],v=0}finally{S=y=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([T,C])}}},d=Object(r.a)("div"),f=!1;Object.defineProperty(d,"id",{get:function(){return f=!0,m.name},configurable:!0});var m={name:"element-id",isOpen:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return f=!1,Object(o.b)(d),Object(o.a)(),[2,f]})})},isEnable:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return[2,Object(a.b)({includes:[!0],excludes:[r.f,r.d,r.e]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(0),o=n(2),a=n(5),l=n(1),u=this&&this.__awaiter||function(E,S,v,y){return new(v||(v=Promise))(function(b,w){function O(_){try{C(y.next(_))}catch(I){w(I)}}function T(_){try{C(y.throw(_))}catch(I){w(I)}}function C(_){_.done?b(_.value):function(I){return I instanceof v?I:new v(function(D){D(I)})}(_.value).then(O,T)}C((y=y.apply(E,S||[])).next())})},d=this&&this.__generator||function(E,S){var v,y,b,w,O={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return w={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function T(C){return function(_){return function(I){if(v)throw new TypeError("Generator is already executing.");for(;O;)try{if(v=1,y&&(b=2&I[0]?y.return:I[0]?y.throw||((b=y.return)&&b.call(y),0):y.next)&&!(b=b.call(y,I[1])).done)return b;switch(y=0,b&&(I=[2&I[0],b.value]),I[0]){case 0:case 1:b=I;break;case 4:return O.label++,{value:I[1],done:!1};case 5:O.label++,y=I[1],I=[0];continue;case 7:I=O.ops.pop(),O.trys.pop();continue;default:if(!(b=(b=O.trys).length>0&&b[b.length-1])&&(I[0]===6||I[0]===2)){O=0;continue}if(I[0]===3&&(!b||I[1]>b[0]&&I[1]<b[3])){O.label=I[1];break}if(I[0]===6&&O.label<b[1]){O.label=b[1],b=I;break}if(b&&O.label<b[2]){O.label=b[2],O.ops.push(I);break}b[2]&&O.ops.pop(),O.trys.pop();continue}I=S.call(E,O)}catch(D){I=[6,D],y=0}finally{v=b=0}if(5&I[0])throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}([C,_])}}};function f(){}var m=0;f.toString=function(){return m++,""};var p={name:"function-to-string",isOpen:function(){return u(this,void 0,void 0,function(){return d(this,function(E){return m=0,Object(o.b)(f),Object(o.a)(),[2,m===2]})})},isEnable:function(){return u(this,void 0,void 0,function(){return d(this,function(E){return[2,Object(l.b)({includes:[!0],excludes:[r.g,r.e,(a.b||a.c)&&r.c]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(2),o=n(0),a=n(1),l=this&&this.__awaiter||function(p,E,S,v){return new(S||(S=Promise))(function(y,b){function w(C){try{T(v.next(C))}catch(_){b(_)}}function O(C){try{T(v.throw(C))}catch(_){b(_)}}function T(C){C.done?y(C.value):function(_){return _ instanceof S?_:new S(function(I){I(_)})}(C.value).then(w,O)}T((v=v.apply(p,E||[])).next())})},u=this&&this.__generator||function(p,E){var S,v,y,b,w={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return b={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function O(T){return function(C){return function(_){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,v&&(y=2&_[0]?v.return:_[0]?v.throw||((y=v.return)&&y.call(v),0):v.next)&&!(y=y.call(v,_[1])).done)return y;switch(v=0,y&&(_=[2&_[0],y.value]),_[0]){case 0:case 1:y=_;break;case 4:return w.label++,{value:_[1],done:!1};case 5:w.label++,v=_[1],_=[0];continue;case 7:_=w.ops.pop(),w.trys.pop();continue;default:if(!(y=(y=w.trys).length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){w=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){w.label=_[1];break}if(_[0]===6&&w.label<y[1]){w.label=y[1],y=_;break}if(y&&w.label<y[2]){w.label=y[2],w.ops.push(_);break}y[2]&&w.ops.pop(),w.trys.pop();continue}_=E.call(p,w)}catch(I){_=[6,I],v=0}finally{S=y=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([T,C])}}},d=/ /,f=!1;d.toString=function(){return f=!0,m.name};var m={name:"reg-to-string",isOpen:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return f=!1,Object(r.b)(d),Object(r.a)(),[2,f]})})},isEnable:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return[2,Object(a.b)({includes:[!0],excludes:[o.i]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(1),o=this&&this.__awaiter||function(u,d,f,m){return new(f||(f=Promise))(function(p,E){function S(b){try{y(m.next(b))}catch(w){E(w)}}function v(b){try{y(m.throw(b))}catch(w){E(w)}}function y(b){b.done?p(b.value):function(w){return w instanceof f?w:new f(function(O){O(w)})}(b.value).then(S,v)}y((m=m.apply(u,d||[])).next())})},a=this&&this.__generator||function(u,d){var f,m,p,E,S={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return E={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function v(y){return function(b){return function(w){if(f)throw new TypeError("Generator is already executing.");for(;S;)try{if(f=1,m&&(p=2&w[0]?m.return:w[0]?m.throw||((p=m.return)&&p.call(m),0):m.next)&&!(p=p.call(m,w[1])).done)return p;switch(m=0,p&&(w=[2&w[0],p.value]),w[0]){case 0:case 1:p=w;break;case 4:return S.label++,{value:w[1],done:!1};case 5:S.label++,m=w[1],w=[0];continue;case 7:w=S.ops.pop(),S.trys.pop();continue;default:if(!(p=(p=S.trys).length>0&&p[p.length-1])&&(w[0]===6||w[0]===2)){S=0;continue}if(w[0]===3&&(!p||w[1]>p[0]&&w[1]<p[3])){S.label=w[1];break}if(w[0]===6&&S.label<p[1]){S.label=p[1],p=w;break}if(p&&S.label<p[2]){S.label=p[2],S.ops.push(w);break}p[2]&&S.ops.pop(),S.trys.pop();continue}w=d.call(u,S)}catch(O){w=[6,O],m=0}finally{f=p=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([y,b])}}},l={name:"debugger-checker",isOpen:function(){return o(this,void 0,void 0,function(){var u;return a(this,function(d){return u=Object(r.c)(),function(){}.constructor("debugger")(),[2,Object(r.c)()-u>100]})})},isEnable:function(){return o(this,void 0,void 0,function(){return a(this,function(u){return[2,!0]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(0),o=n(2),a=n(1),l=n(3),u=this&&this.__awaiter||function(E,S,v,y){return new(v||(v=Promise))(function(b,w){function O(_){try{C(y.next(_))}catch(I){w(I)}}function T(_){try{C(y.throw(_))}catch(I){w(I)}}function C(_){_.done?b(_.value):function(I){return I instanceof v?I:new v(function(D){D(I)})}(_.value).then(O,T)}C((y=y.apply(E,S||[])).next())})},d=this&&this.__generator||function(E,S){var v,y,b,w,O={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return w={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function T(C){return function(_){return function(I){if(v)throw new TypeError("Generator is already executing.");for(;O;)try{if(v=1,y&&(b=2&I[0]?y.return:I[0]?y.throw||((b=y.return)&&b.call(y),0):y.next)&&!(b=b.call(y,I[1])).done)return b;switch(y=0,b&&(I=[2&I[0],b.value]),I[0]){case 0:case 1:b=I;break;case 4:return O.label++,{value:I[1],done:!1};case 5:O.label++,y=I[1],I=[0];continue;case 7:I=O.ops.pop(),O.trys.pop();continue;default:if(!(b=(b=O.trys).length>0&&b[b.length-1])&&(I[0]===6||I[0]===2)){O=0;continue}if(I[0]===3&&(!b||I[1]>b[0]&&I[1]<b[3])){O.label=I[1];break}if(I[0]===6&&O.label<b[1]){O.label=b[1],b=I;break}if(b&&O.label<b[2]){O.label=b[2],O.ops.push(I);break}b[2]&&O.ops.pop(),O.trys.pop();continue}I=S.call(E,O)}catch(D){I=[6,D],y=0}finally{v=b=0}if(5&I[0])throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}([C,_])}}},f=new Date,m=0;f.toString=function(){return m++,""};var p={name:"date-to-string",isOpen:function(){return u(this,void 0,void 0,function(){return d(this,function(E){return m=0,Object(o.b)(f),Object(o.a)(),[2,m===2]})})},isEnable:function(){return u(this,void 0,void 0,function(){return d(this,function(E){return[2,Object(a.b)({includes:[r.c],excludes:[(l.isIpad||l.isIphone)&&r.c]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return m});var r=n(0),o=n(2),a=n(1),l=this&&this.__awaiter||function(p,E,S,v){return new(S||(S=Promise))(function(y,b){function w(C){try{T(v.next(C))}catch(_){b(_)}}function O(C){try{T(v.throw(C))}catch(_){b(_)}}function T(C){C.done?y(C.value):function(_){return _ instanceof S?_:new S(function(I){I(_)})}(C.value).then(w,O)}T((v=v.apply(p,E||[])).next())})},u=this&&this.__generator||function(p,E){var S,v,y,b,w={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return b={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function O(T){return function(C){return function(_){if(S)throw new TypeError("Generator is already executing.");for(;w;)try{if(S=1,v&&(y=2&_[0]?v.return:_[0]?v.throw||((y=v.return)&&y.call(v),0):v.next)&&!(y=y.call(v,_[1])).done)return y;switch(v=0,y&&(_=[2&_[0],y.value]),_[0]){case 0:case 1:y=_;break;case 4:return w.label++,{value:_[1],done:!1};case 5:w.label++,v=_[1],_=[0];continue;case 7:_=w.ops.pop(),w.trys.pop();continue;default:if(!(y=(y=w.trys).length>0&&y[y.length-1])&&(_[0]===6||_[0]===2)){w=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){w.label=_[1];break}if(_[0]===6&&w.label<y[1]){w.label=y[1],y=_;break}if(y&&w.label<y[2]){w.label=y[2],w.ops.push(_);break}y[2]&&w.ops.pop(),w.trys.pop();continue}_=E.call(p,w)}catch(I){_=[6,I],v=0}finally{S=y=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([T,C])}}},d=null,f=0,m={name:"performance",isOpen:function(){return l(this,void 0,void 0,function(){var p,E;return u(this,function(S){return d===null&&(d=function(){for(var v=function(){for(var w={},O=0;O<500;O++)w["".concat(O)]="".concat(O);return w}(),y=[],b=0;b<50;b++)y.push(v);return y}()),p=function(){var v=Object(a.c)();return Object(o.c)(d),Object(a.c)()-v}(),E=function(){var v=Object(a.c)();return Object(o.b)(d),Object(a.c)()-v}(),f=Math.max(f,E),Object(o.a)(),p===0?[2,!1]:f===0?[2,!1]:[2,p>10*f]})})},isEnable:function(){return l(this,void 0,void 0,function(){return u(this,function(p){return[2,Object(a.b)({includes:[r.c],excludes:[]})]})})}}},function(i,t,n){"use strict";n.d(t,"a",function(){return a});var r=this&&this.__awaiter||function(l,u,d,f){return new(d||(d=Promise))(function(m,p){function E(y){try{v(f.next(y))}catch(b){p(b)}}function S(y){try{v(f.throw(y))}catch(b){p(b)}}function v(y){y.done?m(y.value):function(b){return b instanceof d?b:new d(function(w){w(b)})}(y.value).then(E,S)}v((f=f.apply(l,u||[])).next())})},o=this&&this.__generator||function(l,u){var d,f,m,p,E={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return p={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function S(v){return function(y){return function(b){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,f&&(m=2&b[0]?f.return:b[0]?f.throw||((m=f.return)&&m.call(f),0):f.next)&&!(m=m.call(f,b[1])).done)return m;switch(f=0,m&&(b=[2&b[0],m.value]),b[0]){case 0:case 1:m=b;break;case 4:return E.label++,{value:b[1],done:!1};case 5:E.label++,f=b[1],b=[0];continue;case 7:b=E.ops.pop(),E.trys.pop();continue;default:if(!(m=(m=E.trys).length>0&&m[m.length-1])&&(b[0]===6||b[0]===2)){E=0;continue}if(b[0]===3&&(!m||b[1]>m[0]&&b[1]<m[3])){E.label=b[1];break}if(b[0]===6&&E.label<m[1]){E.label=m[1],m=b;break}if(m&&E.label<m[2]){E.label=m[2],E.ops.push(b);break}m[2]&&E.ops.pop(),E.trys.pop();continue}b=u.call(l,E)}catch(w){b=[6,w],f=0}finally{d=m=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([v,y])}}},a={name:"eruda",isOpen:function(){var l;return r(this,void 0,void 0,function(){return o(this,function(u){return typeof eruda!="undefined"?[2,((l=eruda==null?void 0:eruda._devTools)===null||l===void 0?void 0:l._isShow)===!0]:[2,!1]})})},isEnable:function(){return r(this,void 0,void 0,function(){return o(this,function(l){return[2,!0]})})}}}])})});var b3=Y(()=>{A()});var v3=Y((il,eg)=>{A();(function(i,t){if(typeof il=="object"&&typeof eg=="object")eg.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else if(typeof il=="object")il.JsCrypto=t();else{var n=t();for(var r in i.JsCrypto=i.JsCrypto||{},n)i.JsCrypto[r]=n[r]}})(il,function(){return function(){"use strict";var i={9691:function(o,a,l){l.d(a,{AES:function(){return q}});var u,d=l(9456),f=l(787),m=l(5693),p=l(9109),E=(u=function(F,k){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,N){B.__proto__=N}||function(B,N){for(var W in N)Object.prototype.hasOwnProperty.call(N,W)&&(B[W]=N[W])})(F,k)},function(F,k){function B(){this.constructor=F}u(F,k),F.prototype=k===null?Object.create(k):(B.prototype=k.prototype,new B)}),S=function(){return(S=Object.assign||function(F){for(var k,B=1,N=arguments.length;B<N;B++)for(var W in k=arguments[B])Object.prototype.hasOwnProperty.call(k,W)&&(F[W]=k[W]);return F}).apply(this,arguments)},v=[],y=[],b=[],w=[],O=[],T=[],C=[],_=[],I=[],D=[];(function(){for(var F=[],k=0;k<256;k++)F[k]=k<128?k<<1:k<<1^283;var B=0,N=0;for(k=0;k<256;k++){var W=N^N<<1^N<<2^N<<3^N<<4;W=W>>>8^255&W^99,v[B]=W,y[W]=B;var ye=F[B],be=F[ye],fe=F[be],re=257*F[W]^16843008*W;b[B]=re<<24|re>>>8,w[B]=re<<16|re>>>16,O[B]=re<<8|re>>>24,T[B]=re,re=16843009*fe^65537*be^257*ye^16843008*B,C[W]=re<<24|re>>>8,_[W]=re<<16|re>>>16,I[W]=re<<8|re>>>24,D[W]=re,B?(B=ye^F[F[F[fe^ye]]],N^=F[F[N]]):B=N=1}})();var P=[0,1,2,4,8,16,32,64,128,27,54],q=function(F){function k(B){var N=F.call(this,B)||this;return N.u=0,N.h=[],N.v=[],N.O=B,N.A(),N}return E(k,F),k.prototype.A=function(){var B;if(!this.u||this.k!==this.H){for(var N=this.k=this.H,W=N.words,ye=N.nSigBytes/4,be=4*((this.u=ye+6)+1),fe=this.h=[],re=0;re<be;re++)re<ye?fe[re]=W[re]:(B=fe[re-1],re%ye?ye>6&&re%ye==4&&(B=v[B>>>24]<<24|v[B>>>16&255]<<16|v[B>>>8&255]<<8|v[255&B]):(B=v[(B=B<<8|B>>>24)>>>24]<<24|v[B>>>16&255]<<16|v[B>>>8&255]<<8|v[255&B],B^=P[re/ye|0]<<24),fe[re]=fe[re-ye]^B);this.v=[];for(var he=0;he<be;he++)re=be-he,B=he%4?fe[re]:fe[re-4],this.v[he]=he<4||re<=4?B:C[v[B>>>24]]^_[v[B>>>16&255]]^I[v[B>>>8&255]]^D[v[255&B]]}},k.prototype.encryptBlock=function(B,N){this.B(B,N,this.h,b,w,O,T,v)},k.prototype.decryptBlock=function(B,N){var W=B[N+1];B[N+1]=B[N+3],B[N+3]=W,this.B(B,N,this.v,C,_,I,D,y),W=B[N+1],B[N+1]=B[N+3],B[N+3]=W},k.prototype.B=function(B,N,W,ye,be,fe,re,he){for(var Ae=this.u,ue=B[N]^W[0],xe=B[N+1]^W[1],Re=B[N+2]^W[2],Se=B[N+3]^W[3],V=4,ee=1;ee<Ae;ee++){var ne=ye[ue>>>24]^be[xe>>>16&255]^fe[Re>>>8&255]^re[255&Se]^W[V++],ae=ye[xe>>>24]^be[Re>>>16&255]^fe[Se>>>8&255]^re[255&ue]^W[V++],bt=ye[Re>>>24]^be[Se>>>16&255]^fe[ue>>>8&255]^re[255&xe]^W[V++],Ft=ye[Se>>>24]^be[ue>>>16&255]^fe[xe>>>8&255]^re[255&Re]^W[V++];ue=ne,xe=ae,Re=bt,Se=Ft}var Mt=(he[ue>>>24]<<24|he[xe>>>16&255]<<16|he[Re>>>8&255]<<8|he[255&Se])^W[V++],Et=(he[xe>>>24]<<24|he[Re>>>16&255]<<16|he[Se>>>8&255]<<8|he[255&ue])^W[V++],On=(he[Re>>>24]<<24|he[Se>>>16&255]<<16|he[ue>>>8&255]<<8|he[255&xe])^W[V++],Bn=(he[Se>>>24]<<24|he[ue>>>16&255]<<16|he[xe>>>8&255]<<8|he[255&Re])^W[V++];B[N]=Mt,B[N+1]=Et,B[N+2]=On,B[N+3]=Bn},k.createEncryptor=function(B,N){return new k(S(S({},N=N===void 0?{}:N),{key:B,transformMode:d.t.ENC_TRANSFORM_MODE}))},k.createDecryptor=function(B,N){return new k(S(S({},N=N===void 0?{}:N),{key:B,transformMode:d.t.DEC_TRANSFORM_MODE}))},k.encrypt=function(B,N,W){if(typeof N=="string")return m.E.encrypt(k,B,N,W);if(N.nSigBytes%4!=0)throw new Error("Key size must be multiple of 32bit/4byte/1word");return p.D.encrypt(k,B,N,W)},k.decrypt=function(B,N,W){if(typeof N=="string")return m.E.decrypt(k,B,N,W);if(N.nSigBytes%4!=0)throw new Error("Key size must be multiple of 32bit/4byte/1word");return p.D.decrypt(k,B,N,W)},k.keySize=8,k}(f.G)},3967:function(o,a,l){l.d(a,{CBCMAC:function(){return p}});var u=l(4768),d=l(3354),f=l(9691),m=l(3664);function p(E,S,v,y,b,w){var O=w&&w.Cipher?w.Cipher:f.AES,T=typeof v=="string"?u.d.parse(v):v,C=y||new d.e([0,0]),_=typeof S=="string"?u.d.parse(S):S,I=typeof E=="string"?u.d.parse(E):E,D=b||16;return m.K.mac(O,T,C,_,I,D)}},9910:function(o,a,l){l.d(a,{DES:function(){return T}});var u,d=l(787),f=l(9456),m=l(5693),p=l(9109),E=(u=function(C,_){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,D){I.__proto__=D}||function(I,D){for(var P in D)Object.prototype.hasOwnProperty.call(D,P)&&(I[P]=D[P])})(C,_)},function(C,_){function I(){this.constructor=C}u(C,_),C.prototype=_===null?Object.create(_):(I.prototype=_.prototype,new I)}),S=function(){return(S=Object.assign||function(C){for(var _,I=1,D=arguments.length;I<D;I++)for(var P in _=arguments[I])Object.prototype.hasOwnProperty.call(_,P)&&(C[P]=_[P]);return C}).apply(this,arguments)},v=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],y=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],b=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],w=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],O=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],T=function(C){function _(I){var D=C.call(this,I)||this;return D.N=2,D.I=[],D.U=[],D.L=0,D.F=0,D.O=I,D.A(),D}return E(_,C),_.prototype.A=function(){for(var I=this.H.words,D=[],P=0;P<56;P++){var q=v[P]-1;D[P]=I[q>>>5]>>>31-q%32&1}for(var F=this.I=[],k=0;k<16;k++){var B=F[k]=[],N=b[k];for(P=0;P<24;P++)B[P/6|0]|=D[(y[P]-1+N)%28]<<31-P%6,B[4+(P/6|0)]|=D[28+(y[P+24]-1+N)%28]<<31-P%6;for(B[0]=B[0]<<1|B[0]>>>31,P=1;P<7;P++)B[P]=B[P]>>>4*(P-1)+3;B[7]=B[7]<<5|B[7]>>>27}for(this.U=[],P=0;P<16;P++)this.U[P]=F[15-P]},_.prototype.encryptBlock=function(I,D){this.R(I,D,this.I)},_.prototype.decryptBlock=function(I,D){this.R(I,D,this.U)},_.prototype.R=function(I,D,P){this.L=I[D],this.F=I[D+1],this.X(4,252645135),this.X(16,65535),this.Z(2,858993459),this.Z(8,16711935),this.X(1,1431655765);for(var q=0;q<16;q++){for(var F=P[q],k=this.L,B=this.F,N=0,W=0;W<8;W++){var ye=(B^F[W])&O[W];N|=w[W][ye>>>0]}this.L=B,this.F=k^N}var be=this.L;this.L=this.F,this.F=be,this.X(1,1431655765),this.Z(8,16711935),this.Z(2,858993459),this.X(16,65535),this.X(4,252645135),I[D]=this.L,I[D+1]=this.F},_.prototype.X=function(I,D){var P=(this.L>>>I^this.F)&D;this.F^=P,this.L^=P<<I},_.prototype.Z=function(I,D){var P=(this.F>>>I^this.L)&D;this.L^=P,this.F^=P<<I},_.createEncryptor=function(I,D){return new _(S(S({},D=D===void 0?{}:D),{key:I,transformMode:f.t.ENC_TRANSFORM_MODE}))},_.createDecryptor=function(I,D){return new _(S(S({},D=D===void 0?{}:D),{key:I,transformMode:f.t.DEC_TRANSFORM_MODE}))},_.encrypt=function(I,D,P){return typeof D=="string"?m.E.encrypt(_,I,D,P):p.D.encrypt(_,I,D,P)},_.decrypt=function(I,D,P){return typeof D=="string"?m.E.decrypt(_,I,D,P):p.D.decrypt(_,I,D,P)},_.keySize=2,_.ivSize=2,_}(d.G)},6739:function(o,a,l){l.d(a,{DES3:function(){return b}});var u,d=l(9109),f=l(787),m=l(9456),p=l(9910),E=l(3354),S=l(5693),v=(u=function(w,O){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(T[_]=C[_])})(w,O)},function(w,O){function T(){this.constructor=w}u(w,O),w.prototype=O===null?Object.create(O):(T.prototype=O.prototype,new T)}),y=function(){return(y=Object.assign||function(w){for(var O,T=1,C=arguments.length;T<C;T++)for(var _ in O=arguments[T])Object.prototype.hasOwnProperty.call(O,_)&&(w[_]=O[_]);return w}).apply(this,arguments)},b=function(w){function O(T){var C=w.call(this,T)||this;C.N=2,C.O=T;var _=C.J();return C.Y=_[0],C.$=_[1],C.nn=_[2],C}return v(O,w),O.prototype.J=function(){var T=this.H.words;if(T.length!==2&&T.length!==4&&T.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var C=T.slice(0,2),_=T.length<4?T.slice(0,2):T.slice(2,4),I=T.length<6?T.slice(0,2):T.slice(4,6);return[p.DES.createEncryptor(new E.e(C)),p.DES.createEncryptor(new E.e(_)),p.DES.createEncryptor(new E.e(I))]},O.prototype.A=function(){var T=this.J();this.Y=T[0],this.$=T[1],this.nn=T[2]},O.prototype.encryptBlock=function(T,C){this.Y.encryptBlock(T,C),this.$.decryptBlock(T,C),this.nn.encryptBlock(T,C)},O.prototype.decryptBlock=function(T,C){this.nn.decryptBlock(T,C),this.$.encryptBlock(T,C),this.Y.decryptBlock(T,C)},O.createEncryptor=function(T,C){return new O(y(y({},C=C===void 0?{}:C),{key:T,transformMode:m.t.ENC_TRANSFORM_MODE}))},O.createDecryptor=function(T,C){return new O(y(y({},C=C===void 0?{}:C),{key:T,transformMode:m.t.DEC_TRANSFORM_MODE}))},O.encrypt=function(T,C,_){return typeof C=="string"?S.E.encrypt(O,T,C,_):d.D.encrypt(O,T,C,_)},O.decrypt=function(T,C,_){return typeof C=="string"?S.E.decrypt(O,T,C,_):d.D.decrypt(O,T,C,_)},O.keySize=6,O.ivSize=2,O}(f.G)},7753:function(o,a,l){l.d(a,{GMAC:function(){return p}});var u=l(4768),d=l(3354),f=l(9691),m=l(5607);function p(E,S,v,y,b){var w=typeof E=="string"?u.d.parse(E):E,O=v||new d.e([0,0,0,0]),T=b&&b.Cipher?b.Cipher:f.AES,C=typeof S=="string"?u.d.parse(S):S,_=y||16;return m.V.mac(T,C,O,w,void 0,_)}},6367:function(o,a,l){l.d(a,{Hmac:function(){return d}});var u=l(4768),d=function(){function f(m,p){this.tn=m,typeof p=="string"&&(p=u.d.parse(p));var E=m.blockSize,S=4*E;p.nSigBytes>S&&(p=m.finalize(p)),p.clamp();for(var v=this.rn=p.clone(),y=this.en=p.clone(),b=v.words,w=y.words,O=0;O<E;O++)b[O]^=1549556828,w[O]^=909522486;y.nSigBytes=S,v.nSigBytes=S,this.reset()}return f.prototype.reset=function(){this.tn.reset(),this.tn.update(this.en)},f.prototype.update=function(m){return this.tn.update(m),this},f.prototype.finalize=function(m){var p=this.tn.finalize(m);return this.tn.reset(),this.tn.finalize(this.rn.clone().concat(p))},f}()},3027:function(o,a,l){l.d(a,{HmacMD5:function(){return f}});var u=l(6367),d=l(670);function f(m,p){return new u.Hmac(new d.MD5,p).finalize(m)}},149:function(o,a,l){l.d(a,{HmacSHA1:function(){return f}});var u=l(6367),d=l(3173);function f(m,p){return new u.Hmac(new d.SHA1,p).finalize(m)}},4105:function(o,a,l){l.d(a,{HmacSHA224:function(){return f}});var u=l(6367),d=l(766);function f(m,p){return new u.Hmac(new d.SHA224,p).finalize(m)}},980:function(o,a,l){l.d(a,{HmacSHA256:function(){return f}});var u=l(6367),d=l(5561);function f(m,p){return new u.Hmac(new d.SHA256,p).finalize(m)}},5838:function(o,a,l){l.d(a,{HmacSHA384:function(){return f}});var u=l(6367),d=l(6324);function f(m,p){return new u.Hmac(new d.SHA384,p).finalize(m)}},9902:function(o,a,l){l.d(a,{HmacSHA512:function(){return f}});var u=l(6367),d=l(7491);function f(m,p){return new u.Hmac(new d.SHA512,p).finalize(m)}},670:function(o,a,l){l.d(a,{MD5:function(){return b}});var u,d=l(3354),f=l(1868),m=(u=function(w,O){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(T[_]=C[_])})(w,O)},function(w,O){function T(){this.constructor=w}u(w,O),w.prototype=O===null?Object.create(O):(T.prototype=O.prototype,new T)}),p=[];function E(w,O,T,C,_,I,D){var P=w+(O&T|~O&C)+_+D;return(P<<I|P>>>32-I)+O}function S(w,O,T,C,_,I,D){var P=w+(O&C|T&~C)+_+D;return(P<<I|P>>>32-I)+O}function v(w,O,T,C,_,I,D){var P=w+(O^T^C)+_+D;return(P<<I|P>>>32-I)+O}function y(w,O,T,C,_,I,D){var P=w+(T^(O|~C))+_+D;return(P<<I|P>>>32-I)+O}(function(){for(var w=0;w<64;w++)p[w]=4294967296*Math.abs(Math.sin(w+1))|0})();var b=function(w){function O(T){var C=w.call(this,T)||this;return C.on=new d.e([1732584193,4023233417,2562383102,271733878]),T&&T.hash!==void 0&&(C.on=T.hash.clone()),C}return m(O,w),O.prototype.A=function(){this.on=new d.e([1732584193,4023233417,2562383102,271733878])},O.prototype.un=function(T,C){for(var _=0;_<16;_++){var I=C+_,D=T[I];T[I]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8)}var P=this.on.words,q=T[C],F=T[C+1],k=T[C+2],B=T[C+3],N=T[C+4],W=T[C+5],ye=T[C+6],be=T[C+7],fe=T[C+8],re=T[C+9],he=T[C+10],Ae=T[C+11],ue=T[C+12],xe=T[C+13],Re=T[C+14],Se=T[C+15],V=P[0],ee=P[1],ne=P[2],ae=P[3];V=E(V,ee,ne,ae,q,7,p[0]),ae=E(ae,V,ee,ne,F,12,p[1]),ne=E(ne,ae,V,ee,k,17,p[2]),ee=E(ee,ne,ae,V,B,22,p[3]),V=E(V,ee,ne,ae,N,7,p[4]),ae=E(ae,V,ee,ne,W,12,p[5]),ne=E(ne,ae,V,ee,ye,17,p[6]),ee=E(ee,ne,ae,V,be,22,p[7]),V=E(V,ee,ne,ae,fe,7,p[8]),ae=E(ae,V,ee,ne,re,12,p[9]),ne=E(ne,ae,V,ee,he,17,p[10]),ee=E(ee,ne,ae,V,Ae,22,p[11]),V=E(V,ee,ne,ae,ue,7,p[12]),ae=E(ae,V,ee,ne,xe,12,p[13]),ne=E(ne,ae,V,ee,Re,17,p[14]),V=S(V,ee=E(ee,ne,ae,V,Se,22,p[15]),ne,ae,F,5,p[16]),ae=S(ae,V,ee,ne,ye,9,p[17]),ne=S(ne,ae,V,ee,Ae,14,p[18]),ee=S(ee,ne,ae,V,q,20,p[19]),V=S(V,ee,ne,ae,W,5,p[20]),ae=S(ae,V,ee,ne,he,9,p[21]),ne=S(ne,ae,V,ee,Se,14,p[22]),ee=S(ee,ne,ae,V,N,20,p[23]),V=S(V,ee,ne,ae,re,5,p[24]),ae=S(ae,V,ee,ne,Re,9,p[25]),ne=S(ne,ae,V,ee,B,14,p[26]),ee=S(ee,ne,ae,V,fe,20,p[27]),V=S(V,ee,ne,ae,xe,5,p[28]),ae=S(ae,V,ee,ne,k,9,p[29]),ne=S(ne,ae,V,ee,be,14,p[30]),V=v(V,ee=S(ee,ne,ae,V,ue,20,p[31]),ne,ae,W,4,p[32]),ae=v(ae,V,ee,ne,fe,11,p[33]),ne=v(ne,ae,V,ee,Ae,16,p[34]),ee=v(ee,ne,ae,V,Re,23,p[35]),V=v(V,ee,ne,ae,F,4,p[36]),ae=v(ae,V,ee,ne,N,11,p[37]),ne=v(ne,ae,V,ee,be,16,p[38]),ee=v(ee,ne,ae,V,he,23,p[39]),V=v(V,ee,ne,ae,xe,4,p[40]),ae=v(ae,V,ee,ne,q,11,p[41]),ne=v(ne,ae,V,ee,B,16,p[42]),ee=v(ee,ne,ae,V,ye,23,p[43]),V=v(V,ee,ne,ae,re,4,p[44]),ae=v(ae,V,ee,ne,ue,11,p[45]),ne=v(ne,ae,V,ee,Se,16,p[46]),V=y(V,ee=v(ee,ne,ae,V,k,23,p[47]),ne,ae,q,6,p[48]),ae=y(ae,V,ee,ne,be,10,p[49]),ne=y(ne,ae,V,ee,Re,15,p[50]),ee=y(ee,ne,ae,V,W,21,p[51]),V=y(V,ee,ne,ae,ue,6,p[52]),ae=y(ae,V,ee,ne,B,10,p[53]),ne=y(ne,ae,V,ee,he,15,p[54]),ee=y(ee,ne,ae,V,F,21,p[55]),V=y(V,ee,ne,ae,fe,6,p[56]),ae=y(ae,V,ee,ne,Se,10,p[57]),ne=y(ne,ae,V,ee,ye,15,p[58]),ee=y(ee,ne,ae,V,xe,21,p[59]),V=y(V,ee,ne,ae,N,6,p[60]),ae=y(ae,V,ee,ne,Ae,10,p[61]),ne=y(ne,ae,V,ee,k,15,p[62]),ee=y(ee,ne,ae,V,re,21,p[63]),P[0]=P[0]+V|0,P[1]=P[1]+ee|0,P[2]=P[2]+ne|0,P[3]=P[3]+ae|0},O.prototype.fn=function(){var T=this.cn,C=T.words,_=8*this.sn,I=8*T.nSigBytes;C[I>>>5]|=128<<24-I%32;var D=Math.floor(_/4294967296),P=_;C[15+(I+64>>>9<<4)]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),C[14+(I+64>>>9<<4)]=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),T.nSigBytes=4*(C.length+1),this.an();for(var q=this.on,F=q.words,k=0;k<4;k++){var B=F[k];F[k]=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8)}return q},O.prototype.clone=function(){return new O({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},O.hash=function(T){return new O().finalize(T)},O}(f.P)},4615:function(o,a,l){l.d(a,{RC4:function(){return S}});var u,d=l(30),f=l(5693),m=l(9109),p=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),E=function(){return(E=Object.assign||function(v){for(var y,b=1,w=arguments.length;b<w;b++)for(var O in y=arguments[b])Object.prototype.hasOwnProperty.call(y,O)&&(v[O]=y[O]);return v}).apply(this,arguments)},S=function(v){function y(b){var w=v.call(this,b)||this;return w.S=[],w.i=0,w.j=0,w.O=b,w.A(),w}return p(y,v),y.prototype.A=function(){var b=this.H,w=b.words,O=b.nSigBytes;this.S=[];for(var T=0;T<256;T++)this.S[T]=T;T=0;for(var C=0;T<256;T++){var _=T%O,I=w[_>>>2]>>>24-_%4*8&255;C=(C+this.S[T]+I)%256;var D=this.S[T];this.S[T]=this.S[C],this.S[C]=D}this.i=this.j=0},y.prototype.un=function(b,w){b[w]^=this.generateKeyStreamWord()},y.prototype.generateKeyStreamWord=function(){for(var b=this.S,w=this.i,O=this.j,T=0,C=0;C<4;C++){O=(O+b[w=(w+1)%256])%256;var _=b[w];b[w]=b[O],b[O]=_,T|=b[(b[w]+b[O])%256]<<24-8*C}return this.i=w,this.j=O,T},y.createEncryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.createDecryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.encrypt=function(b,w,O){return typeof w=="string"?f.E.encrypt(y,b,w,O):m.D.encrypt(y,b,w,O)},y.decrypt=function(b,w,O){return typeof w=="string"?f.E.decrypt(y,b,w,O):m.D.decrypt(y,b,w,O)},y.ivSize=0,y.keySize=8,y}(d.q)},9639:function(o,a,l){l.d(a,{RC4Drop:function(){return S}});var u,d=l(5693),f=l(9109),m=l(4615),p=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),E=function(){return(E=Object.assign||function(v){for(var y,b=1,w=arguments.length;b<w;b++)for(var O in y=arguments[b])Object.prototype.hasOwnProperty.call(y,O)&&(v[O]=y[O]);return v}).apply(this,arguments)},S=function(v){function y(b){var w=v.call(this,b)||this;return w.drop=192,w.O=b,b&&typeof b.drop=="number"&&(w.drop=b.drop),w.A(),w}return p(y,v),y.prototype.A=function(){v.prototype.A.call(this);for(var b=this.drop;b>0;b--)this.generateKeyStreamWord()},y.createEncryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.createDecryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.encrypt=function(b,w,O){return typeof w=="string"?d.E.encrypt(y,b,w,O):f.D.encrypt(y,b,w,O)},y.decrypt=function(b,w,O){return typeof w=="string"?d.E.decrypt(y,b,w,O):f.D.decrypt(y,b,w,O)},y}(m.RC4)},7104:function(o,a,l){l.d(a,{RIPEMD160:function(){return D}});var u,d=l(1868),f=l(3354),m=(u=function(P,q){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,k){F.__proto__=k}||function(F,k){for(var B in k)Object.prototype.hasOwnProperty.call(k,B)&&(F[B]=k[B])})(P,q)},function(P,q){function F(){this.constructor=P}u(P,q),P.prototype=q===null?Object.create(q):(F.prototype=q.prototype,new F)}),p=new f.e([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),E=new f.e([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),S=new f.e([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),v=new f.e([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=new f.e([0,1518500249,1859775393,2400959708,2840853838]),b=new f.e([1352829926,1548603684,1836072691,2053994217,0]);function w(P,q,F){return P^q^F}function O(P,q,F){return P&q|~P&F}function T(P,q,F){return(P|~q)^F}function C(P,q,F){return P&F|q&~F}function _(P,q,F){return P^(q|~F)}function I(P,q){return P<<q|P>>>32-q}var D=function(P){function q(F){var k=P.call(this,F)||this;return k.on=new f.e([1732584193,4023233417,2562383102,271733878,3285377520]),k.O=F,F&&F.hash!==void 0&&(k.on=F.hash.clone()),k}return m(q,P),q.prototype.A=function(){this.on=new f.e([1732584193,4023233417,2562383102,271733878,3285377520])},q.prototype.un=function(F,k){for(var B=0;B<16;B++){var N=k+B,W=F[N];F[N]=16711935&(W<<8|W>>>24)|4278255360&(W<<24|W>>>8)}var ye,be,fe,re,he,Ae,ue,xe,Re,Se,V,ee=this.on.words,ne=y.words,ae=b.words,bt=p.words,Ft=E.words,Mt=S.words,Et=v.words;for(Ae=ye=ee[0],ue=be=ee[1],xe=fe=ee[2],Re=re=ee[3],Se=he=ee[4],B=0;B<80;B+=1)V=ye+F[k+bt[B]]|0,V+=B<16?w(be,fe,re)+ne[0]:B<32?O(be,fe,re)+ne[1]:B<48?T(be,fe,re)+ne[2]:B<64?C(be,fe,re)+ne[3]:_(be,fe,re)+ne[4],V=(V=I(V|=0,Mt[B]))+he|0,ye=he,he=re,re=I(fe,10),fe=be,be=V,V=Ae+F[k+Ft[B]]|0,V+=B<16?_(ue,xe,Re)+ae[0]:B<32?C(ue,xe,Re)+ae[1]:B<48?T(ue,xe,Re)+ae[2]:B<64?O(ue,xe,Re)+ae[3]:w(ue,xe,Re)+ae[4],V=(V=I(V|=0,Et[B]))+Se|0,Ae=Se,Se=Re,Re=I(xe,10),xe=ue,ue=V;V=ee[1]+fe+Re|0,ee[1]=ee[2]+re+Se|0,ee[2]=ee[3]+he+Ae|0,ee[3]=ee[4]+ye+ue|0,ee[4]=ee[0]+be+xe|0,ee[0]=V},q.prototype.fn=function(){var F=this.cn,k=F.words,B=8*this.sn,N=8*F.nSigBytes;k[N>>>5]|=128<<24-N%32,k[14+(N+64>>>9<<4)]=16711935&(B<<8|B>>>24)|4278255360&(B<<24|B>>>8),F.nSigBytes=4*(k.length+1),this.an();for(var W=this.on,ye=W.words,be=0;be<5;be++){var fe=ye[be];ye[be]=16711935&(fe<<8|fe>>>24)|4278255360&(fe<<24|fe>>>8)}return W},q.prototype.clone=function(){return new q({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},q.hash=function(F,k){return new q(k).finalize(F)},q}(d.P)},5187:function(o,a,l){l.d(a,{Rabbit:function(){return S}});var u,d=l(30),f=l(5693),m=l(9109),p=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),E=function(){return(E=Object.assign||function(v){for(var y,b=1,w=arguments.length;b<w;b++)for(var O in y=arguments[b])Object.prototype.hasOwnProperty.call(y,O)&&(v[O]=y[O]);return v}).apply(this,arguments)},S=function(v){function y(b){var w=v.call(this,b)||this;return w.N=4,w.S=[],w.C=[],w.G=[],w.hn=[],w.vn=[],w.wn=0,w.O=b,w.A(),w}return p(y,v),y.prototype.A=function(){for(var b=this.H.words,w=this.ln,O=0;O<4;O++)b[O]=16711935&(b[O]<<8|b[O]>>>24)|4278255360&(b[O]<<24|b[O]>>>8);var T=this.hn=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],C=this.vn=[b[2]<<16|b[2]>>>16,4294901760&b[0]|65535&b[1],b[3]<<16|b[3]>>>16,4294901760&b[1]|65535&b[2],b[0]<<16|b[0]>>>16,4294901760&b[2]|65535&b[3],b[1]<<16|b[1]>>>16,4294901760&b[3]|65535&b[0]];for(this.wn=0,O=0;O<4;O++)this.nextState();for(O=0;O<8;O++)C[O]^=T[O+4&7];if(w){var _=w.words,I=_[0],D=_[1],P=16711935&(I<<8|I>>>24)|4278255360&(I<<24|I>>>8),q=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),F=P>>>16|4294901760&q,k=q<<16|65535&P;for(C[0]^=P,C[1]^=F,C[2]^=q,C[3]^=k,C[4]^=P,C[5]^=F,C[6]^=q,C[7]^=k,O=0;O<4;O++)this.nextState()}},y.prototype.un=function(b,w){var O=this.hn;this.nextState(),this.S[0]=O[0]^O[5]>>>16^O[3]<<16,this.S[1]=O[2]^O[7]>>>16^O[5]<<16,this.S[2]=O[4]^O[1]>>>16^O[7]<<16,this.S[3]=O[6]^O[3]>>>16^O[1]<<16;for(var T=0;T<4;T++)this.S[T]=16711935&(this.S[T]<<8|this.S[T]>>>24)|4278255360&(this.S[T]<<24|this.S[T]>>>8),b[w+T]^=this.S[T]},y.prototype.nextState=function(){for(var b=this.hn,w=this.vn,O=0;O<8;O++)this.C[O]=w[O];for(w[0]=w[0]+1295307597+this.wn|0,w[1]=w[1]+3545052371+(w[0]>>>0<this.C[0]>>>0?1:0)|0,w[2]=w[2]+886263092+(w[1]>>>0<this.C[1]>>>0?1:0)|0,w[3]=w[3]+1295307597+(w[2]>>>0<this.C[2]>>>0?1:0)|0,w[4]=w[4]+3545052371+(w[3]>>>0<this.C[3]>>>0?1:0)|0,w[5]=w[5]+886263092+(w[4]>>>0<this.C[4]>>>0?1:0)|0,w[6]=w[6]+1295307597+(w[5]>>>0<this.C[5]>>>0?1:0)|0,w[7]=w[7]+3545052371+(w[6]>>>0<this.C[6]>>>0?1:0)|0,this.wn=w[7]>>>0<this.C[7]>>>0?1:0,O=0;O<8;O++){var T=b[O]+w[O],C=65535&T,_=T>>>16,I=((C*C>>>17)+C*_>>>15)+_*_,D=((4294901760&T)*T|0)+((65535&T)*T|0);this.G[O]=I^D}var P=this.G;b[0]=P[0]+(P[7]<<16|P[7]>>>16)+(P[6]<<16|P[6]>>>16)|0,b[1]=P[1]+(P[0]<<8|P[0]>>>24)+P[7]|0,b[2]=P[2]+(P[1]<<16|P[1]>>>16)+(P[0]<<16|P[0]>>>16)|0,b[3]=P[3]+(P[2]<<8|P[2]>>>24)+P[1]|0,b[4]=P[4]+(P[3]<<16|P[3]>>>16)+(P[2]<<16|P[2]>>>16)|0,b[5]=P[5]+(P[4]<<8|P[4]>>>24)+P[3]|0,b[6]=P[6]+(P[5]<<16|P[5]>>>16)+(P[4]<<16|P[4]>>>16)|0,b[7]=P[7]+(P[6]<<8|P[6]>>>24)+P[5]|0},y.createEncryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.createDecryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b}))},y.encrypt=function(b,w,O){return typeof w=="string"?f.E.encrypt(y,b,w,O):m.D.encrypt(y,b,w,O)},y.decrypt=function(b,w,O){return typeof w=="string"?f.E.decrypt(y,b,w,O):m.D.decrypt(y,b,w,O)},y.ivSize=4,y}(d.q)},3173:function(o,a,l){l.d(a,{SHA1:function(){return E}});var u,d=l(1868),f=l(3354),m=(u=function(S,v){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&(y[w]=b[w])})(S,v)},function(S,v){function y(){this.constructor=S}u(S,v),S.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}),p=[],E=function(S){function v(y){var b=S.call(this,y)||this;return b.on=new f.e([1732584193,4023233417,2562383102,271733878,3285377520]),b.O=y,y&&y.hash!==void 0&&(b.on=y.hash.clone()),b}return m(v,S),v.prototype.A=function(){this.on=new f.e([1732584193,4023233417,2562383102,271733878,3285377520])},v.prototype.un=function(y,b){for(var w=this.on.words,O=w[0],T=w[1],C=w[2],_=w[3],I=w[4],D=0;D<80;D++){if(D<16)p[D]=0|y[b+D];else{var P=p[D-3]^p[D-8]^p[D-14]^p[D-16];p[D]=P<<1|P>>>31}var q=(O<<5|O>>>27)+I+p[D];q+=D<20?1518500249+(T&C|~T&_):D<40?1859775393+(T^C^_):D<60?(T&C|T&_|C&_)-1894007588:(T^C^_)-899497514,I=_,_=C,C=T<<30|T>>>2,T=O,O=q}w[0]=w[0]+O|0,w[1]=w[1]+T|0,w[2]=w[2]+C|0,w[3]=w[3]+_|0,w[4]=w[4]+I|0},v.prototype.fn=function(){var y=this.cn.words,b=8*this.sn,w=8*this.cn.nSigBytes;return y[w>>>5]|=128<<24-w%32,y[14+(w+64>>>9<<4)]=Math.floor(b/4294967296),y[15+(w+64>>>9<<4)]=b,this.cn.nSigBytes=4*y.length,this.an(),this.on},v.prototype.clone=function(){return new v({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},v.hash=function(y,b){return new v(b).finalize(y)},v}(d.P)},766:function(o,a,l){l.d(a,{SHA224:function(){return p}});var u,d=l(3354),f=l(5561),m=(u=function(E,S){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])})(E,S)},function(E,S){function v(){this.constructor=E}u(E,S),E.prototype=S===null?Object.create(S):(v.prototype=S.prototype,new v)}),p=function(E){function S(v){var y=E.call(this,v)||this;return y.on=new d.e([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),y.O=v,v&&v.hash!==void 0&&(y.on=v.hash.clone()),y}return m(S,E),S.prototype.A=function(){this.on=new d.e([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},S.prototype.fn=function(){var v=E.prototype.fn.call(this);return v.nSigBytes-=4,v},S.prototype.clone=function(){return new S({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},S.hash=function(v,y){return new S(y).finalize(v)},S}(f.SHA256)},5561:function(o,a,l){l.d(a,{SHA256:function(){return b}});var u,d=l(1868),f=l(3354),m=(u=function(w,O){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(T[_]=C[_])})(w,O)},function(w,O){function T(){this.constructor=w}u(w,O),w.prototype=O===null?Object.create(O):(T.prototype=O.prototype,new T)}),p=[],E=[];function S(w){for(var O=Math.sqrt(w),T=2;T<=O;T++)if(!(w%T))return!1;return!0}function v(w){return 4294967296*(w-(0|w))|0}(function(){for(var w=2,O=0;O<64;)S(w)&&(O<8&&(p[O]=v(Math.pow(w,.5))),E[O]=v(Math.pow(w,1/3)),O++),w++})();var y=[],b=function(w){function O(T){var C=w.call(this,T)||this;return C.on=new f.e(p.slice(0)),C.O=T,T&&T.hash!==void 0&&(C.on=T.hash.clone()),C}return m(O,w),O.prototype.A=function(){this.on=new f.e(p.slice(0))},O.prototype.un=function(T,C){for(var _=this.on.words,I=_[0],D=_[1],P=_[2],q=_[3],F=_[4],k=_[5],B=_[6],N=_[7],W=0;W<64;W++){if(W<16)y[W]=0|T[C+W];else{var ye=y[W-15],be=(ye<<25|ye>>>7)^(ye<<14|ye>>>18)^ye>>>3,fe=y[W-2],re=(fe<<15|fe>>>17)^(fe<<13|fe>>>19)^fe>>>10;y[W]=be+y[W-7]+re+y[W-16]}var he=I&D^I&P^D&P,Ae=(I<<30|I>>>2)^(I<<19|I>>>13)^(I<<10|I>>>22),ue=N+((F<<26|F>>>6)^(F<<21|F>>>11)^(F<<7|F>>>25))+(F&k^~F&B)+E[W]+y[W];N=B,B=k,k=F,F=q+ue|0,q=P,P=D,D=I,I=ue+(Ae+he)|0}_[0]=_[0]+I|0,_[1]=_[1]+D|0,_[2]=_[2]+P|0,_[3]=_[3]+q|0,_[4]=_[4]+F|0,_[5]=_[5]+k|0,_[6]=_[6]+B|0,_[7]=_[7]+N|0},O.prototype.fn=function(){var T=this.cn.words,C=8*this.sn,_=8*this.cn.nSigBytes;return T[_>>>5]|=128<<24-_%32,T[14+(_+64>>>9<<4)]=Math.floor(C/4294967296),T[15+(_+64>>>9<<4)]=C,this.cn.nSigBytes=4*T.length,this.an(),this.on},O.prototype.clone=function(){return new O({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},O.hash=function(T,C){return new O(C).finalize(T)},O}(d.P)},3408:function(o,a,l){l.d(a,{SHA3:function(){return b}});var u,d=l(6957),f=l(1868),m=l(3354),p=(u=function(w,O){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,C){T.__proto__=C}||function(T,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(T[_]=C[_])})(w,O)},function(w,O){function T(){this.constructor=w}u(w,O),w.prototype=O===null?Object.create(O):(T.prototype=O.prototype,new T)}),E=[],S=[],v=[];(function(){for(var w=1,O=0,T=0;T<24;T++){E[w+5*O]=(T+1)*(T+2)/2%64;var C=(2*w+3*O)%5;w=O%5,O=C}for(var _=0;_<5;_++)for(var I=0;I<5;I++)S[_+5*I]=I+(2*_+3*I)%5*5;for(var D=1,P=0;P<24;P++){for(var q=0,F=0,k=0;k<7;k++){if(1&D){var B=(1<<k)-1;B<32?F^=1<<B:q^=1<<B-32}128&D?D=D<<1^113:D<<=1}v[P]=new d.r(q,F)}})();var y=[];(function(){for(var w=0;w<25;w++)y[w]=new d.r(0,0)})();var b=function(w){function O(T){var C=w.call(this,T)||this;if(C.N=32,C.bn=[],C.dn=512,C.O=T,T){if(T.outputLength!==void 0){if(![224,256,384,512].includes(T.outputLength))throw new Error("Unsupported output length.");C.dn=T.outputLength}T.state!==void 0&&(C.bn=T.state.map(function(I){return I.clone()}))}if(C.bn.length===0)for(var _=0;_<25;_++)C.bn[_]=new d.r(0,0);return C.N=(1600-2*C.dn)/32,C}return p(O,w),O.prototype.A=function(){this.bn=[];for(var T=0;T<25;T++)this.bn[T]=new d.r(0,0);this.N=(1600-2*this.dn)/32},O.prototype.un=function(T,C){for(var _=this.bn,I=this.N/2,D=0;D<I;D++){var P=T[C+2*D],q=T[C+2*D+1];P=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),q=16711935&(q<<8|q>>>24)|4278255360&(q<<24|q>>>8),_[D].high^=q,_[D].low^=P}for(var F=0;F<24;F++){for(var k=0;k<5;k++){for(var B=0,N=0,W=0;W<5;W++)B^=(ne=_[k+5*W]).high,N^=ne.low;var ye=y[k];ye.high=B,ye.low=N}for(k=0;k<5;k++){var be=y[(k+4)%5],fe=y[(k+1)%5],re=fe.high,he=fe.low;for(B=be.high^(re<<1|he>>>31),N=be.low^(he<<1|re>>>31),W=0;W<5;W++)(ne=_[k+5*W]).high^=B,ne.low^=N}for(var Ae=1;Ae<25;Ae++){B=void 0,N=void 0;var ue=_[Ae].high,xe=_[Ae].low,Re=E[Ae];Re<32?(B=ue<<Re|xe>>>32-Re,N=xe<<Re|ue>>>32-Re):(B=xe<<Re-32|ue>>>64-Re,N=ue<<Re-32|xe>>>64-Re);var Se=y[S[Ae]];Se.high=B,Se.low=N}var V=y[0],ee=_[0];for(V.high=ee.high,V.low=ee.low,k=0;k<5;k++)for(W=0;W<5;W++){var ne=_[Ae=k+5*W],ae=y[Ae],bt=y[(k+1)%5+5*W],Ft=y[(k+2)%5+5*W];ne.high=ae.high^~bt.high&Ft.high,ne.low=ae.low^~bt.low&Ft.low}var Mt=_[0],Et=v[F];Mt.high^=Et.high,Mt.low^=Et.low}},O.prototype.fn=function(){var T=this.cn,C=T.words,_=8*T.nSigBytes,I=32*this.blockSize;C[_>>>5]|=1<<24-_%32,C[(Math.ceil((_+1)/I)*I>>>5)-1]|=128,T.nSigBytes=4*C.length,this.an();for(var D=this.bn,P=this.dn/8,q=P/8,F=[],k=0;k<q;k++){var B=D[k],N=B.high,W=B.low;N=16711935&(N<<8|N>>>24)|4278255360&(N<<24|N>>>8),W=16711935&(W<<8|W>>>24)|4278255360&(W<<24|W>>>8),F.push(W),F.push(N)}return new m.e(F,P)},O.prototype.clone=function(){return new O({outputLength:this.dn,state:this.bn,blockSize:this.N,data:this.cn,nBytes:this.sn})},O.hash=function(T,C){return new O(C).finalize(T)},O}(f.P)},6324:function(o,a,l){l.d(a,{SHA384:function(){return p}});var u,d=l(6957),f=l(7491),m=(u=function(E,S){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])})(E,S)},function(E,S){function v(){this.constructor=E}u(E,S),E.prototype=S===null?Object.create(S):(v.prototype=S.prototype,new v)}),p=function(E){function S(v){var y=E.call(this,v)||this;return y.on=new d.m([new d.r(3418070365,3238371032),new d.r(1654270250,914150663),new d.r(2438529370,812702999),new d.r(355462360,4144912697),new d.r(1731405415,4290775857),new d.r(2394180231,1750603025),new d.r(3675008525,1694076839),new d.r(1203062813,3204075428)]),y.O=v,v&&v.hash!==void 0&&(y.on=v.hash.clone()),y}return m(S,E),S.prototype.A=function(){this.on=new d.m([new d.r(3418070365,3238371032),new d.r(1654270250,914150663),new d.r(2438529370,812702999),new d.r(355462360,4144912697),new d.r(1731405415,4290775857),new d.r(2394180231,1750603025),new d.r(3675008525,1694076839),new d.r(1203062813,3204075428)])},S.prototype.fn=function(){var v=E.prototype.fn.call(this);return v.nSigBytes-=16,v},S.prototype.clone=function(){return new S({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},S.hash=function(v,y){return new S(y).finalize(v)},S}(f.SHA512)},7491:function(o,a,l){l.d(a,{SHA512:function(){return S}});var u,d=l(1868),f=l(6957),m=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),p=[new f.r(1116352408,3609767458),new f.r(1899447441,602891725),new f.r(3049323471,3964484399),new f.r(3921009573,2173295548),new f.r(961987163,4081628472),new f.r(1508970993,3053834265),new f.r(2453635748,2937671579),new f.r(2870763221,3664609560),new f.r(3624381080,2734883394),new f.r(310598401,1164996542),new f.r(607225278,1323610764),new f.r(1426881987,3590304994),new f.r(1925078388,4068182383),new f.r(2162078206,991336113),new f.r(2614888103,633803317),new f.r(3248222580,3479774868),new f.r(3835390401,2666613458),new f.r(4022224774,944711139),new f.r(264347078,2341262773),new f.r(604807628,2007800933),new f.r(770255983,1495990901),new f.r(1249150122,1856431235),new f.r(1555081692,3175218132),new f.r(1996064986,2198950837),new f.r(2554220882,3999719339),new f.r(2821834349,766784016),new f.r(2952996808,2566594879),new f.r(3210313671,3203337956),new f.r(3336571891,1034457026),new f.r(3584528711,2466948901),new f.r(113926993,3758326383),new f.r(338241895,168717936),new f.r(666307205,1188179964),new f.r(773529912,1546045734),new f.r(1294757372,1522805485),new f.r(1396182291,2643833823),new f.r(1695183700,2343527390),new f.r(1986661051,1014477480),new f.r(2177026350,1206759142),new f.r(2456956037,344077627),new f.r(2730485921,1290863460),new f.r(2820302411,3158454273),new f.r(3259730800,3505952657),new f.r(3345764771,106217008),new f.r(3516065817,3606008344),new f.r(3600352804,1432725776),new f.r(4094571909,1467031594),new f.r(275423344,851169720),new f.r(430227734,3100823752),new f.r(506948616,1363258195),new f.r(659060556,3750685593),new f.r(883997877,3785050280),new f.r(958139571,3318307427),new f.r(1322822218,3812723403),new f.r(1537002063,2003034995),new f.r(1747873779,3602036899),new f.r(1955562222,1575990012),new f.r(2024104815,1125592928),new f.r(2227730452,2716904306),new f.r(2361852424,442776044),new f.r(2428436474,593698344),new f.r(2756734187,3733110249),new f.r(3204031479,2999351573),new f.r(3329325298,3815920427),new f.r(3391569614,3928383900),new f.r(3515267271,566280711),new f.r(3940187606,3454069534),new f.r(4118630271,4000239992),new f.r(116418474,1914138554),new f.r(174292421,2731055270),new f.r(289380356,3203993006),new f.r(460393269,320620315),new f.r(685471733,587496836),new f.r(852142971,1086792851),new f.r(1017036298,365543100),new f.r(1126000580,2618297676),new f.r(1288033470,3409855158),new f.r(1501505948,4234509866),new f.r(1607167915,987167468),new f.r(1816402316,1246189591)],E=[];(function(){for(var v=0;v<80;v++)E[v]=new f.r(0,0)})();var S=function(v){function y(b){var w=v.call(this,b)||this;return w.N=32,w.on=new f.m([new f.r(1779033703,4089235720),new f.r(3144134277,2227873595),new f.r(1013904242,4271175723),new f.r(2773480762,1595750129),new f.r(1359893119,2917565137),new f.r(2600822924,725511199),new f.r(528734635,4215389547),new f.r(1541459225,327033209)]),w.O=b,b&&b.hash!==void 0&&(w.on=b.hash.clone()),w}return m(y,v),y.prototype.A=function(){this.on=new f.m([new f.r(1779033703,4089235720),new f.r(3144134277,2227873595),new f.r(1013904242,4271175723),new f.r(2773480762,1595750129),new f.r(1359893119,2917565137),new f.r(2600822924,725511199),new f.r(528734635,4215389547),new f.r(1541459225,327033209)])},y.prototype.un=function(b,w){for(var O=this.on.words,T=O[0],C=O[1],_=O[2],I=O[3],D=O[4],P=O[5],q=O[6],F=O[7],k=T.high,B=T.low,N=C.high,W=C.low,ye=_.high,be=_.low,fe=I.high,re=I.low,he=D.high,Ae=D.low,ue=P.high,xe=P.low,Re=q.high,Se=q.low,V=F.high,ee=F.low,ne=k,ae=B,bt=N,Ft=W,Mt=ye,Et=be,On=fe,Bn=re,It=he,Kt=Ae,zr=ue,xn=xe,Oe=Re,pe=Se,le=V,_e=ee,Ie=0;Ie<80;Ie++){var z=void 0,X=void 0,oe=E[Ie];if(Ie<16)X=oe.high=0|b[w+2*Ie],z=oe.low=0|b[w+2*Ie+1];else{var ve=E[Ie-15],Ce=ve.high,ft=ve.low,$e=(Ce>>>1|ft<<31)^(Ce>>>8|ft<<24)^Ce>>>7,Ye=(ft>>>1|Ce<<31)^(ft>>>8|Ce<<24)^(ft>>>7|Ce<<25),je=E[Ie-2],Xe=je.high,et=je.low,kn=(Xe>>>19|et<<13)^(Xe<<3|et>>>29)^Xe>>>6,ho=(et>>>19|Xe<<13)^(et<<3|Xe>>>29)^(et>>>6|Xe<<26),ul=E[Ie-7],Kd=ul.high,dl=ul.low,Zs=E[Ie-16],Yd=Zs.high,fl=Zs.low;X=(X=(X=$e+Kd+((z=Ye+dl)>>>0<Ye>>>0?1:0))+kn+((z+=ho)>>>0<ho>>>0?1:0))+Yd+((z+=fl)>>>0<fl>>>0?1:0),oe.high=X,oe.low=z}var Zd=It&zr^~It&Oe,hl=Kt&xn^~Kt&pe,pl=ne&bt^ne&Mt^bt&Mt,Xd=ae&Ft^ae&Et^Ft&Et,Qd=(ne>>>28|ae<<4)^(ne<<30|ae>>>2)^(ne<<25|ae>>>7),gl=(ae>>>28|ne<<4)^(ae<<30|ne>>>2)^(ae<<25|ne>>>7),Xs=(It>>>14|Kt<<18)^(It>>>18|Kt<<14)^(It<<23|Kt>>>9),ef=(Kt>>>14|It<<18)^(Kt>>>18|It<<14)^(Kt<<23|It>>>9),Zo=p[Ie],tf=Zo.high,ml=Zo.low,li=_e+ef,po=le+Xs+(li>>>0<_e>>>0?1:0),yl=gl+Xd;le=Oe,_e=pe,Oe=zr,pe=xn,zr=It,xn=Kt,It=On+(po=(po=(po=po+Zd+((li+=hl)>>>0<hl>>>0?1:0))+tf+((li+=ml)>>>0<ml>>>0?1:0))+X+((li+=z)>>>0<z>>>0?1:0))+((Kt=Bn+li|0)>>>0<Bn>>>0?1:0)|0,On=Mt,Bn=Et,Mt=bt,Et=Ft,bt=ne,Ft=ae,ne=po+(Qd+pl+(yl>>>0<gl>>>0?1:0))+((ae=li+yl|0)>>>0<li>>>0?1:0)|0}B=T.low=B+ae,T.high=k+ne+(B>>>0<ae>>>0?1:0),W=C.low=W+Ft,C.high=N+bt+(W>>>0<Ft>>>0?1:0),be=_.low=be+Et,_.high=ye+Mt+(be>>>0<Et>>>0?1:0),re=I.low=re+Bn,I.high=fe+On+(re>>>0<Bn>>>0?1:0),Ae=D.low=Ae+Kt,D.high=he+It+(Ae>>>0<Kt>>>0?1:0),xe=P.low=xe+xn,P.high=ue+zr+(xe>>>0<xn>>>0?1:0),Se=q.low=Se+pe,q.high=Re+Oe+(Se>>>0<pe>>>0?1:0),ee=F.low=ee+_e,F.high=V+le+(ee>>>0<_e>>>0?1:0)},y.prototype.fn=function(){var b=this.cn,w=b.words,O=8*this.sn,T=8*b.nSigBytes;return w[T>>>5]|=128<<24-T%32,w[30+(T+128>>>10<<5)]=Math.floor(O/4294967296),w[31+(T+128>>>10<<5)]=O,b.nSigBytes=4*w.length,this.an(),this.on.to32()},y.prototype.clone=function(){return new y({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},y.hash=function(b,w){return new y(w).finalize(b)},y}(d.P)},3354:function(o,a,l){l.d(a,{e:function(){return f}});var u=l(5720),d=l(9054),f=function(){function m(p,E){if(Array.isArray(p)||!p)return this.yn=Array.isArray(p)?p:[],void(this.pn=typeof E=="number"?E:4*this.yn.length);if(p instanceof m)return this.yn=p.words.slice(),void(this.pn=p.nSigBytes);var S;try{p instanceof ArrayBuffer?S=new Uint8Array(p):(p instanceof Uint8Array||p instanceof Int8Array||p instanceof Uint8ClampedArray||p instanceof Int16Array||p instanceof Uint16Array||p instanceof Int32Array||p instanceof Uint32Array||p instanceof Float32Array||p instanceof Float64Array)&&(S=new Uint8Array(p.buffer,p.byteOffset,p.byteLength))}catch(w){throw new Error("Invalid argument")}if(!S)throw new Error("Invalid argument");for(var v=S.byteLength,y=[],b=0;b<v;b++)y[b>>>2]|=S[b]<<24-b%4*8;this.yn=y,this.pn=v}return Object.defineProperty(m.prototype,"nSigBytes",{get:function(){return this.pn},set:function(p){this.pn=p},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"words",{get:function(){return this.yn},enumerable:!1,configurable:!0}),m.prototype.toString=function(p){return p?p.stringify(this):u.p.stringify(this)},m.prototype.toUint8Array=function(){for(var p=this.yn,E=this.pn,S=new Uint8Array(E),v=0;v<E;v++)S[v]=p[v>>>2]>>>24-v%4*8&255;return S},m.prototype.concat=function(p){var E=p.words.slice(),S=p.nSigBytes;if(this.clamp(),this.pn%4)for(var v=0;v<S;v++){var y=E[v>>>2]>>>24-v%4*8&255;this.yn[this.pn+v>>>2]|=y<<24-(this.pn+v)%4*8}else for(v=0;v<S;v+=4)this.yn[this.pn+v>>>2]=E[v>>>2];return this.pn+=S,this},m.prototype.clamp=function(){var p=this.pn;this.yn[p>>>2]&=4294967295<<32-p%4*8,this.yn.length=Math.ceil(p/4)},m.prototype.clone=function(){return new m(this.yn.slice(),this.pn)},m.random=function(p){for(var E=[],S=0;S<p;S+=4)E.push((0,d.M)());return new m(E,p)},m}()},6957:function(o,a,l){l.d(a,{r:function(){return f},m:function(){return m}});var u=l(5720),d=l(3354),f=function(){function p(E,S){this.high=E,this.low=S}return p.prototype.clone=function(){return new p(this.high,this.low)},p}(),m=function(){function p(E,S){this.yn=E||[],this.pn=typeof S=="number"?S:8*this.yn.length}return Object.defineProperty(p.prototype,"nSigBytes",{get:function(){return this.pn},set:function(E){this.pn=E},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"words",{get:function(){return this.yn},enumerable:!1,configurable:!0}),p.prototype.to32=function(){for(var E=[],S=0;S<this.yn.length;S++){var v=this.yn[S];E.push(v.high),E.push(v.low)}return new d.e(E,this.pn)},p.prototype.toString=function(E){return E?E.stringify(this.to32()):u.p.stringify(this.to32())},p.prototype.clone=function(){for(var E=this.yn.slice(),S=0;S<E.length;S++)E[S]=E[S].clone();return new p(E,this.pn)},p}()},7211:function(o,a,l){l.d(a,{C:function(){return f}});var u=l(3354),d=l(4768),f=function(){function m(p){this.On=0,this.N=0,this.O=p,this.cn=p&&p.data!==void 0?p.data.clone():new u.e,this.sn=p&&typeof p.nBytes=="number"?p.nBytes:0}return Object.defineProperty(m.prototype,"blockSize",{get:function(){return this.N},enumerable:!1,configurable:!0}),m.prototype.reset=function(p,E){this.cn=p!==void 0?p.clone():new u.e,this.sn=typeof E=="number"?E:0},m.prototype.jn=function(p){var E=typeof p=="string"?d.d.parse(p):p;this.cn.concat(E),this.sn+=E.nSigBytes},m.prototype.an=function(p){var E,S=this.cn.words,v=this.cn.nSigBytes,y=this.N,b=v/(4*this.N),w=(b=p?Math.ceil(b):Math.max((0|b)-this.On,0))*y,O=Math.min(4*w,v);if(w){for(var T=0;T<w;T+=y)this.un(S,T);E=S.splice(0,w),this.cn.nSigBytes-=O}return new u.e(E,O)},m.prototype.un=function(p,E){throw new Error("Not implemented")},m}()},1868:function(o,a,l){l.d(a,{P:function(){return m}});var u,d=l(7211),f=(u=function(p,E){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,v){S.__proto__=v}||function(S,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(S[y]=v[y])})(p,E)},function(p,E){function S(){this.constructor=p}u(p,E),p.prototype=E===null?Object.create(E):(S.prototype=E.prototype,new S)}),m=function(p){function E(S){var v=p.call(this,S)||this;return v.N=16,v.O=S,S&&typeof S.blockSize=="number"&&(v.N=S.blockSize),v.reset(S?S.data:void 0,S?S.nBytes:void 0),v}return f(E,p),Object.defineProperty(E.prototype,"blockSize",{get:function(){return this.N},enumerable:!1,configurable:!0}),E.prototype.reset=function(S,v){p.prototype.reset.call(this,S,v),this.A()},E.prototype.update=function(S){return this.jn(S),this.an(),this},E.prototype.finalize=function(S){return S&&this.jn(S),this.fn()},E.prototype.A=function(){throw new Error("Not implemented")},E.prototype.fn=function(){throw new Error("Not implemented")},E}(d.C)},787:function(o,a,l){l.d(a,{G:function(){return S}});var u,d=l(9456),f=l(4344),m=l(7919),p=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),E=function(){return(E=Object.assign||function(v){for(var y,b=1,w=arguments.length;b<w;b++)for(var O in y=arguments[b])Object.prototype.hasOwnProperty.call(y,O)&&(v[O]=y[O]);return v}).apply(this,arguments)},S=function(v){function y(b){var w=v.call(this,b)||this;return w.N=4,w._n=f.n,w.mn=m.l,w.O=b,w._n=b.mode!==void 0?b.mode:w._n,w.mn=b.padding!==void 0?b.padding:w.mn,w.reset(b==null?void 0:b.data,b==null?void 0:b.nBytes),w}return p(y,v),Object.defineProperty(y.prototype,"mode",{get:function(){return this.An},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"padding",{get:function(){return this.mn},enumerable:!1,configurable:!0}),y.prototype.reset=function(b,w){var O;v.prototype.reset.call(this,b,w),this.gn===d.t.ENC_TRANSFORM_MODE?O=this._n.createEncryptor:(O=this._n.createDecryptor,this.On=1),this._n&&this.En===O?this.An=new this._n({cipher:this,iv:this.ln}):(this.An=O.call(this._n,{cipher:this,iv:this.ln}),this.En=O)},y.prototype.un=function(b,w){var O;(O=this.An)===null||O===void 0||O.processBlock(b,w)},y.prototype.fn=function(){var b,w=this.mn;return this.gn===d.t.ENC_TRANSFORM_MODE?(w.pad(this.cn,this.blockSize),b=this.an(!0)):(b=this.an(!0),w.unpad(b)),b},y.prototype.encryptBlock=function(b,w){throw new Error("Not implemented")},y.prototype.decryptBlock=function(b,w){throw new Error("Not implemented")},y.createEncryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b,transformMode:d.t.ENC_TRANSFORM_MODE}))},y.createDecryptor=function(b,w){return new y(E(E({},w=w===void 0?{}:w),{key:b,transformMode:d.t.DEC_TRANSFORM_MODE}))},y}(d.t)},9456:function(o,a,l){l.d(a,{t:function(){return p}});var u,d=l(7211),f=(u=function(E,S){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])})(E,S)},function(E,S){function v(){this.constructor=E}u(E,S),E.prototype=S===null?Object.create(S):(v.prototype=S.prototype,new v)}),m=function(){return(m=Object.assign||function(E){for(var S,v=1,y=arguments.length;v<y;v++)for(var b in S=arguments[v])Object.prototype.hasOwnProperty.call(S,b)&&(E[b]=S[b]);return E}).apply(this,arguments)},p=function(E){function S(v){var y=E.call(this,v)||this;return y.gn=1,y.O=v,y.H=v.key,y.ln=v.iv!==void 0?v.iv:y.ln,y.gn=v.transformMode!==void 0?v.transformMode:y.gn,y}return f(S,E),Object.defineProperty(S.prototype,"iv",{get:function(){return this.ln},enumerable:!1,configurable:!0}),S.prototype.reset=function(v,y){E.prototype.reset.call(this,v,y),this.A()},S.prototype.process=function(v){return this.jn(v),this.an()},S.prototype.finalize=function(v){return v&&this.jn(v),this.fn()},S.prototype.A=function(){throw new Error("Not implemented")},S.prototype.un=function(v,y){throw new Error("Not implemented")},S.prototype.fn=function(){throw new Error("Not implemented")},S.createEncryptor=function(v,y){return new S(m(m({},y=y===void 0?{}:y),{key:v,transformMode:S.ENC_TRANSFORM_MODE}))},S.createDecryptor=function(v,y){return new S(m(m({},y=y===void 0?{}:y),{key:v,transformMode:S.DEC_TRANSFORM_MODE}))},S.ENC_TRANSFORM_MODE=1,S.DEC_TRANSFORM_MODE=2,S.keySize=4,S.ivSize=4,S}(d.C)},2505:function(o,a,l){l.d(a,{Q:function(){return d}});var u=l(1232),d=function(){function f(m){this.formatter=u.w,m&&(this.cipherText=m.cipherText,this.key=m.key,this.iv=m.iv,this.salt=m.salt,this.Algorithm=m.Algorithm,this.mode=m.mode,this.padding=m.padding,this.blockSize=m.blockSize,this.formatter=m.formatter||u.w)}return f.prototype.toString=function(m){return(m||this.formatter).stringify(this)},f}()},5693:function(o,a,l){l.d(a,{E:function(){return E}});var u=l(9109),d=l(2214),f=l(2505),m=l(1232),p=function(){return(p=Object.assign||function(S){for(var v,y=1,b=arguments.length;y<b;y++)for(var w in v=arguments[y])Object.prototype.hasOwnProperty.call(v,w)&&(S[w]=v[w]);return S}).apply(this,arguments)},E={encrypt:function(S,v,y,b){var w=b?p({},b):{},O=b&&b.KDF?b.KDF:d.s,T={};b&&b.kdfHasher&&(T.kdfHasher=b.kdfHasher),b&&b.kdfIterations&&(T.kdfIterations=b.kdfIterations),b&&b.kdfModule&&(T.kdfModule=b.kdfModule);var C=O.execute(y,S.keySize,S.ivSize,w.kdfSalt,T);w.iv=C.iv;var _=u.D.encrypt(S,v,C.key,w);return new f.Q(p(p({},_),{key:C.key,iv:C.iv,salt:C.salt}))},decrypt:function(S,v,y,b){var w=b?p({},b):{},O=w.KDF?w.KDF:d.s,T=w.formatter?w.formatter:m.w,C=(0,u.W)(v,T),_={};b&&b.kdfHasher&&(_.kdfHasher=b.kdfHasher),b&&b.kdfIterations&&(_.kdfIterations=b.kdfIterations),b&&b.kdfModule&&(_.kdfModule=b.kdfModule);var I=O.execute(y,S.keySize,S.ivSize,C.salt,_);return w.iv=I.iv,u.D.decrypt(S,C,I.key,w)}}},9109:function(o,a,l){l.d(a,{W:function(){return f},D:function(){return m}});var u=l(1232),d=l(2505);function f(p,E){return typeof p=="string"?E.parse(p):p}var m={encrypt:function(p,E,S,v){var y=p.createEncryptor(S,v),b=y.finalize(E);return new d.Q({cipherText:b,key:S,iv:y.iv,Algorithm:p,mode:y.mode,padding:y.padding,blockSize:y.blockSize,formatter:(v==null?void 0:v.formatter)||u.w})},decrypt:function(p,E,S,v){var y=p.createDecryptor(S,v),b=f(E,(v==null?void 0:v.formatter)||u.w);return y.finalize(b.cipherText||"")}}},30:function(o,a,l){l.d(a,{q:function(){return m}});var u,d=l(9456),f=(u=function(p,E){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,v){S.__proto__=v}||function(S,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(S[y]=v[y])})(p,E)},function(p,E){function S(){this.constructor=p}u(p,E),p.prototype=E===null?Object.create(E):(S.prototype=E.prototype,new S)}),m=function(p){function E(S){var v=p.call(this,S)||this;return v.N=1,v}return f(E,p),E.prototype.fn=function(){return this.an(!0)},E}(d.t)},1232:function(o,a,l){l.d(a,{w:function(){return m}});var u=l(2505),d=l(3354),f=l(1773),m={stringify:function(p){var E=p.cipherText,S=p.salt;return E?S?new d.e([1398893684,1701076831]).concat(S).concat(E).toString(f.D):E.toString(f.D):""},parse:function(p){var E,S=f.D.parse(p),v=S.words;return v[0]===1398893684&&v[1]===1701076831&&(E=new d.e(v.slice(2,4)),v.splice(0,4),S.nSigBytes-=16),new u.Q({cipherText:S,salt:E})}}},2214:function(o,a,l){l.d(a,{s:function(){return p}});var u=l(3354),d=l(2505),f=l(7008),m=function(){return(m=Object.assign||function(E){for(var S,v=1,y=arguments.length;v<y;v++)for(var b in S=arguments[v])Object.prototype.hasOwnProperty.call(S,b)&&(E[b]=S[b]);return E}).apply(this,arguments)},p={execute:function(E,S,v,y,b){y||(y=u.e.random(8));var w=b&&b.kdfModule||f.E,O=b?{Hasher:b.kdfHasher,iterations:b.kdfIterations}:{},T=w.getKey(E,y,m(m({},O),{keySize:S+v})),C=new u.e(T.words.slice(S),4*v);return T.nSigBytes=4*S,new d.Q({key:T,iv:C,salt:y})}}},7008:function(o,a,l){l.d(a,{E:function(){return S}});var u,d=l(5561),f=l(6367),m=l(3354),p=l(9541),E=(u=function(v,y){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(b[O]=w[O])})(v,y)},function(v,y){function b(){this.constructor=v}u(v,y),v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}),S=function(v){function y(b){var w=v.call(this,b)||this;return w.Sn=4,w.Mn=d.SHA256,w.kn=1e4,b&&(w.Sn=b.keySize!==void 0?b.keySize:w.Sn,w.Mn=b.Hasher!==void 0?b.Hasher:w.Mn,w.kn=b.iterations!==void 0?b.iterations:w.kn),w}return E(y,v),y.prototype.compute=function(b,w){for(var O=new f.Hmac(new this.Mn,b),T=new m.e,C=new m.e([1]),_=T.words,I=C.words,D=this.Sn,P=this.kn;_.length<D;){var q=O.update(w).finalize(C);O.reset();for(var F=q.words,k=F.length,B=q,N=1;N<P;N++){B=O.finalize(B),O.reset();for(var W=B.words,ye=0;ye<k;ye++)F[ye]^=W[ye]}T.concat(q),I[0]++}return T.nSigBytes=4*D,T},y.getKey=function(b,w,O){return new y(O).compute(b,w)},y}(p._)},9541:function(o,a,l){l.d(a,{_:function(){return u}});var u=function(){function d(f){this.O=f}return d.prototype.compute=function(f,m){throw new Error("Not implemented")},d.getKey=function(f,m,p){throw new Error("Not implemented")},d}()},1863:function(o,a,l){l.d(a,{T:function(){return u}});var u=function(){function d(f){this.O=f,this.Hn=f.cipher,this.ln=f.iv}return d.prototype.processBlock=function(f,m){},d.createEncryptor=function(f){throw new Error("Not implemented yet")},d.createDecryptor=function(f){throw new Error("Not implemented yet")},d}()},4344:function(o,a,l){l.d(a,{n:function(){return m}});var u,d=l(1863),f=(u=function(p,E){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,v){S.__proto__=v}||function(S,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(S[y]=v[y])})(p,E)},function(p,E){function S(){this.constructor=p}u(p,E),p.prototype=E===null?Object.create(E):(S.prototype=E.prototype,new S)}),m=function(p){function E(S){var v=p.call(this,S)||this;return v.Cn=[],v}return f(E,p),E.prototype.xorBlock=function(S,v,y){var b,w=this.ln;w?(b=w.words,this.ln=void 0):b=this.Cn;for(var O=0;O<y;O++)S[v+O]^=b[O]},E.createEncryptor=function(S){return new E.Encryptor(S)},E.createDecryptor=function(S){return new E.Decryptor(S)},E.Encryptor=function(S){function v(){return S!==null&&S.apply(this,arguments)||this}return f(v,S),v.prototype.processBlock=function(y,b){var w=this.Hn,O=w.blockSize;this.xorBlock(y,b,O),w.encryptBlock(y,b),this.Cn=y.slice(b,b+O)},v}(E),E.Decryptor=function(S){function v(){return S!==null&&S.apply(this,arguments)||this}return f(v,S),v.prototype.processBlock=function(y,b){var w=this.Hn,O=w.blockSize,T=y.slice(b,b+O);w.decryptBlock(y,b),this.xorBlock(y,b,O),this.Cn=T},v}(E),E}(d.T)},4055:function(o,a,l){l.d(a,{I4:function(){return d},z6:function(){return f},ur:function(){return m}});var u=l(3354);function d(p){var E=p.nSigBytes%16;if(E!==0){for(var S=16-E,v=[],y=Math.floor(S/4),b=0;b<y;b++)v.push(0);S%4>0&&v.push(0),p.concat(new u.e(v,S))}}function f(p,E){return new u.e(p.words.slice(),E)}function m(p,E){for(var S=p.nSigBytes-E,v=[],y=0;y<E;y++){var b=y>>>2,w=S+y,O=w>>>2,T=p.words[O]>>>24-w%4*8&255;v[b]=0|v[b]|T<<24-y%4*8}var C=new u.e(v,E);return C.clamp(),C}},7919:function(o,a,l){l.d(a,{l:function(){return d}});var u=l(3354),d={pad:function(f,m){for(var p=4*m,E=p-f.nSigBytes%p,S=E<<24|E<<16|E<<8|E,v=[],y=0;y<E;y+=4)v.push(S);var b=new u.e(v,E);f.concat(b)},unpad:function(f){var m=255&f.words[f.nSigBytes-1>>>2];f.nSigBytes-=m}}},1756:function(o,a,l){l.d(a,{w:function(){return m}});var u,d=typeof navigator!="undefined"&&navigator.userAgent?navigator.userAgent.toLowerCase():"",f=(u=parseInt((/msie (\d+)/.exec(d)||[])[1],10),isNaN(u)?(u=parseInt((/trident\/.*; rv:(\d+)/.exec(d)||[])[1],10),!isNaN(u)&&u):u);function m(p,E){return f!==!1&&(!E||(p==="<"?f<E:p==="<="?f<=E:p===">"?f>E:p===">="?f>=E:f===E))}},1773:function(o,a,l){l.d(a,{D:function(){return p}});for(var u=l(3354),d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f=[],m=0;m<d.length;m++)f[d.charCodeAt(m)]=m;var p={stringify:function(E){var S=E.words,v=E.nSigBytes;E.clamp();for(var y=[],b=0;b<v;b+=3)for(var w=(S[b>>>2]>>>24-b%4*8&255)<<16|(S[b+1>>>2]>>>24-(b+1)%4*8&255)<<8|S[b+2>>>2]>>>24-(b+2)%4*8&255,O=0;O<4&&b+.75*O<v;O++)y.push(d.charAt(w>>>6*(3-O)&63));var T=d.charAt(64);if(T)for(;y.length%4;)y.push(T);return y.join("")},parse:function(E){var S=E.length,v=d.charAt(64);if(v){var y=E.indexOf(v);y!==-1&&(S=y)}for(var b=[],w=0,O=0;O<S;O++)if(O%4){var T=f[E.charCodeAt(O-1)]<<O%4*2|f[E.charCodeAt(O)]>>>6-O%4*2;b[w>>>2]|=T<<24-w%4*8,w++}return new u.e(b,w)}}},5720:function(o,a,l){l.d(a,{p:function(){return d}});var u=l(3354),d={stringify:function(f){for(var m=f.nSigBytes,p=f.words,E=[],S=0;S<m;S++){var v=p[S>>>2]>>>24-S%4*8&255;E.push((v>>>4).toString(16)),E.push((15&v).toString(16))}return E.join("")},parse:function(f){var m=f.length;if(m%2!=0)throw new Error("Hex string count must be even");if(!/^[a-fA-F0-9]+$/.test(f))throw new Error("Invalid Hex string: "+f);for(var p=[],E=0;E<m;E+=2)p[E>>>3]|=parseInt(f.substr(E,2),16)<<24-E%8*4;return new u.e(p,m/2)}}},8702:function(o,a,l){l.d(a,{m:function(){return d}});var u=l(3354),d={stringify:function(f){for(var m=f.nSigBytes,p=f.words,E=[],S=0;S<m;S++){var v=p[S>>>2]>>>24-S%4*8&255;E.push(String.fromCharCode(v))}return E.join("")},parse:function(f){for(var m=f.length,p=[],E=0;E<m;E++)p[E>>>2]|=(255&f.charCodeAt(E))<<24-E%4*8;return new u.e(p,m)}}},4768:function(o,a,l){l.d(a,{d:function(){return d}});var u=l(8702),d={stringify:function(f){try{return decodeURIComponent(escape(u.m.stringify(f)))}catch(m){throw new Error("Malformed UTF-8 data")}},parse:function(f){return u.m.parse(unescape(encodeURIComponent(f)))}}},2688:function(o,a,l){l.d(a,{Base64:function(){return f.D},EvpKDF:function(){return D},Hex:function(){return E.p},Latin1:function(){return p.m},OpenSSLKDF:function(){return O.s},PBKDF2:function(){return T.E},Utf16:function(){return w},Utf16BE:function(){return S},Utf16LE:function(){return b},Utf8:function(){return m.d},Word32Array:function(){return u.e},Word64:function(){return d.r},Word64Array:function(){return d.m}}),l(9054);var u=l(3354),d=l(6957),f=(l(1756),l(1773)),m=l(4768),p=l(8702),E=l(5720),S={stringify:function(P){for(var q=P.words,F=P.nSigBytes,k=[],B=0;B<F;B+=2){var N=q[B>>>2]>>>16-B%4*8&65535;k.push(String.fromCharCode(N))}return k.join("")},parse:function(P){for(var q=P.length,F=[],k=0;k<q;k++)F[k>>>1]|=P.charCodeAt(k)<<16-k%2*16;return new u.e(F,2*q)}};function v(P){return P<<8&4278255360|P>>>8&16711935}var y,b={stringify:function(P){for(var q=P.words,F=P.nSigBytes,k=[],B=0;B<F;B+=2){var N=v(q[B>>>2]>>>16-B%4*8&65535);k.push(String.fromCharCode(N))}return k.join("")},parse:function(P){for(var q=P.length,F=[],k=0;k<q;k++)F[k>>>1]|=v(P.charCodeAt(k)<<16-k%2*16);return new u.e(F,2*q)}},w=S,O=l(2214),T=l(7008),C=l(670),_=l(9541),I=(y=function(P,q){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,k){F.__proto__=k}||function(F,k){for(var B in k)Object.prototype.hasOwnProperty.call(k,B)&&(F[B]=k[B])})(P,q)},function(P,q){function F(){this.constructor=P}y(P,q),P.prototype=q===null?Object.create(q):(F.prototype=q.prototype,new F)}),D=function(P){function q(F){var k=P.call(this,F)||this;return k.Sn=4,k.Mn=C.MD5,k.kn=1,F&&(k.Sn=F.keySize!==void 0?F.keySize:k.Sn,k.Mn=F.Hasher!==void 0?F.Hasher:k.Mn,k.kn=F.iterations!==void 0?F.iterations:k.kn),k}return I(q,P),q.prototype.compute=function(F,k){for(var B,N=new this.Mn,W=new u.e,ye=W.words,be=this.Sn,fe=this.kn;ye.length<be;){B&&N.update(B),B=N.update(F).finalize(k),N.reset();for(var re=1;re<fe;re++)B=N.finalize(B),N.reset();W.concat(B)}return W.nSigBytes=4*be,W},q.getKey=function(F,k,B){return new q(B).compute(F,k)},q}(_._)},9054:function(o,a,l){l.d(a,{M:function(){return d}});var u=l(1756),d=function(){if(typeof window!="undefined"){var f=window.crypto||window.msCrypto;if(!f){if((0,u.w)("<",11))return console.warn("IE <= 10 uses insecure random generator. Please consider to use IE11 or another modern browser"),function(){return Math.floor(512*Math.random())%256};throw new Error("Crypto module not found")}return function(){return f.getRandomValues(new Uint32Array(1))[0]}}return l.g!==void 0&&l.g.crypto?function(){return l.g.crypto.randomBytes(4).readInt32LE()}:function(){return b3().randomBytes(4).readInt32LE()}}()},3664:function(o,a,l){l.d(a,{K:function(){return E}});var u,d=l(1863),f=l(3354),m=l(4055),p=(u=function(S,v){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&(y[w]=b[w])})(S,v)},function(S,v){function y(){this.constructor=S}u(S,v),S.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}),E=function(S){function v(y){var b=S.call(this,y)||this;b.Bn=1;var w=y.cipher,O=y.iv;if(w.blockSize!==4)throw new Error("In CCM, cipher block size must be 128bit");if(O&&(O.nSigBytes>13||O.nSigBytes<7))throw new Error("Byte size of iv must be between 7 and 13");return b.Nn=O||new f.e([0,0],8),b.In=15-b.Nn.nSigBytes,b}return p(v,S),v.getB0=function(y,b,w,O){if(w.nSigBytes+O.nSigBytes!==15)throw new Error("LEN(Q)+LEN(N) must be 15");var T=255&(0|(y?1:0)<<6|(b-2)/2<<3|w.nSigBytes-1),C=O.clone().concat(w);return new f.e([T<<24],1).concat(C)},v.formatAssociatedDataAndPayload=function(y,b){var w,O=y.nSigBytes;if(O===0)w=new f.e([0],0);else if(O<Math.pow(2,16)-Math.pow(2,8))w=new f.e([O<<16],2);else{if(!(O<Math.pow(2,32)))throw new Error("LEN(A) larger than 2**32-1 is not supported");w=new f.e([4294836224],2).concat(new f.e([O],4))}for(var T=Math.floor(y.nSigBytes/4),C=0;C<T;C++)w.concat(new f.e([y.words[C]],4));y.nSigBytes%4&&(w.concat(new f.e([y.words[T]],y.nSigBytes%4)),w.concat(new f.e([0],4-y.nSigBytes%4))),w.nSigBytes%16&&w.concat(new f.e([0],16-w.nSigBytes%16));var _=Math.floor(b.nSigBytes/4);for(C=0;C<_;C++)w.concat(new f.e([b.words[C]],4));return b.nSigBytes%4&&(w.concat(new f.e([b.words[_]],b.nSigBytes%4)),w.concat(new f.e([0],4-b.nSigBytes%4))),w.nSigBytes%16&&w.concat(new f.e([0],16-w.nSigBytes%16)),w},v.genCtr=function(y,b,w){if(b.nSigBytes+y!==15)throw new Error("LEN(Q)+LEN(N) must be 15");for(var O=new f.e([(y-1&7)<<24],1),T=new f.e([],0),C=Math.floor(y/4),_=0;_<C-1;_++)T.concat(new f.e([0],4));return y%4?y>4?(T.concat(new f.e([0],y%4)),T.concat(new f.e([w],4))):T.concat(new f.e([w<<32-8*y],y)):T.concat(new f.e([w],4)),O.concat(b).concat(T)},v.mac=function(y,b,w,O,T,C){var _=new y({key:b,iv:w});if(_.blockSize!==4)throw new Error("In CCM, cipher block size must be 128bit");if(w&&(w.nSigBytes>13||w.nSigBytes<7))throw new Error("Byte size of iv must be between 7 and 13");var I=w||new f.e([0,0],8),D=(O==null?void 0:O.clone())||new f.e,P=D.nSigBytes,q=(T==null?void 0:T.clone())||new f.e,F=q.nSigBytes;if(F>>>0>4294967295)throw new Error("Byte length of Payload(plainText) larger than 2^32-1 (4,294,967,295byte) is not supported at this time.");var k=15-I.nSigBytes,B=(0,m.ur)(new f.e([0,F],8),k),N=C||16,W=v.getB0(Boolean(P),N,B,I),ye=v.formatAssociatedDataAndPayload(D,q),be=W.words.slice();_.encryptBlock(be,0);for(var fe=ye.nSigBytes/16,re=ye.words,he=be,Ae=0;Ae<fe;Ae++){var ue=[re[4*Ae]^he[0],re[4*Ae+1]^he[1],re[4*Ae+2]^he[2],re[4*Ae+3]^he[3]];_.encryptBlock(ue,0),he=ue}var xe=new f.e(he,N),Re=v.genCtr(k,I,0);for(_.encryptBlock(Re.words,0),Ae=0;Ae<4;Ae++)xe.words[Ae]^=Re.words[Ae];return xe.clamp(),xe},v.combineCipherTextAndAuthTag=function(y,b){return y.clone().concat(b)},v.splitCipherTextAndAuthTag=function(y,b){var w=b||16;return{cipherText:(0,m.z6)(y,y.nSigBytes-w),authTag:(0,m.ur)(y,w)}},v.createEncryptor=function(y){return new v.Encryptor(y)},v.createDecryptor=function(y){return new v.Decryptor(y)},v.Encryptor=function(y){function b(){return y!==null&&y.apply(this,arguments)||this}return p(b,y),b.prototype.processBlock=function(w,O){var T=this.Hn,C=T.blockSize,_=v.genCtr(this.In,this.Nn,this.Bn);T.encryptBlock(_.words,0);for(var I=0;I<C;I++)w[O+I]^=_.words[I];this.Bn++},b}(v),v.Decryptor=function(y){function b(){return y!==null&&y.apply(this,arguments)||this}return p(b,y),b.prototype.processBlock=function(w,O){var T=this.Hn,C=T.blockSize,_=v.genCtr(this.In,this.Nn,this.Bn);T.encryptBlock(_.words,0);for(var I=0;I<C;I++)w[O+I]^=_.words[I];this.Bn++},b}(v),v}(d.T)},5607:function(o,a,l){l.d(a,{V:function(){return E}});var u,d=l(1863),f=l(3354),m=l(4055),p=(u=function(S,v){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var w in b)Object.prototype.hasOwnProperty.call(b,w)&&(y[w]=b[w])})(S,v)},function(S,v){function y(){this.constructor=S}u(S,v),S.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}),E=function(S){function v(y){var b=S.call(this,y)||this;if(b.zn=[],b.Dn=[],b.Un=[],y.cipher.blockSize!==4)throw new Error("In GCM block cipher mode, cipher block size must be 128bit");var w=y.cipher,O=y.iv,T=[0,0,0,0];return w.encryptBlock(T,0),b.zn=T,b.Dn=v.getJ0(T,O==null?void 0:O.words),b.Un=b.Dn.slice(),b}return p(v,S),v.getJ0=function(y,b){var w;if(b&&b.length!==0)if(b.length===3)w=[b[0],b[1],b[2],1];else{for(var O=b.length%4>0?4-b.length%4:0,T=b.slice(),C=0;C<O+2;C++)T.push(0);T.push(0),T.push(32*b.length),w=v.GHASH(y,T)}else w=[0,0,0,1];return w},v.inc32=function(y){var b=y.slice(),w=b[3]>>>0,O=w+1>>>0<w;if(b[3]=b[3]+1|0,O){var T=b[2]>>>0,C=T+1>>>0<T;b[2]=b[2]+1|0,C&&(b[1]=b[1]+1|0)}return b},v.mul=function(y,b){for(var w=[3774873600,0,0,0],O=[0,0,0,0],T=b.slice(),C=0;C<128;C++){(y[C>>>5]>>>31-C%32&1)>0&&(O[0]=O[0]^T[0],O[1]=O[1]^T[1],O[2]=O[2]^T[2],O[3]=O[3]^T[3]);var _=(1&T[3])>>>0,I=(1&T[0])>>>0,D=(1&T[1])>>>0,P=(1&T[2])>>>0;T[0]=T[0]>>>1,T[1]=T[1]>>>1|(I?2147483648:0),T[2]=T[2]>>>1|(D?2147483648:0),T[3]=T[3]>>>1|(P?2147483648:0),_>0&&(T[0]^=w[0],T[1]^=w[1],T[2]^=w[2],T[3]^=w[3])}return O},v.GHASH=function(y,b){if(y.length%4!=0)throw new Error("Length of 32bit word array 'H' must be multiple of 4(128bit)");if(b.length%4!=0)throw new Error("Length of 32bit word array 'X' must be multiple of 4(128bit)");for(var w=b.length,O=[0,0,0,0],T=0;T<w;T+=4)O[0]=O[0]^b[T],O[1]=O[1]^b[T+1],O[2]=O[2]^b[T+2],O[3]=O[3]^b[T+3],O=v.mul(O,y);return O},v.GCTR=function(y,b,w){if(w.nSigBytes===0)return w.clone();if(b.length!==4)throw new Error("Initial Counter Block size must be 128bit");for(var O=w.words,T=Math.ceil(w.nSigBytes/16),C=[b.slice()],_=1;_<T;_++){var I=v.inc32(C[_-1]);C.push(I)}var D=new f.e;for(_=0;_<T;_++){y.encryptBlock(C[_],0);var P=w.nSigBytes%16;if(_<T-1||P===0){var q=O[4*_]^C[_][0],F=O[4*_+1]^C[_][1],k=O[4*_+2]^C[_][2],B=O[4*_+3]^C[_][3],N=new f.e([q,F,k,B]);D.concat(N)}else{for(var W=[],ye=0,be=Math.floor(P/4),fe=0;fe<be;fe++){var re=O[4*_+fe]^C[_][fe];W.push(re),ye+=4}var he=P%4;if(he>0){var Ae=O[4*_+be]<<32-8*he^C[_][be];W.push(Ae),ye+=he}var ue=new f.e(W,ye);D.concat(ue)}}return D.nSigBytes=w.nSigBytes,D.clamp(),D},v.mac=function(y,b,w,O,T,C){var _=new y({key:b,iv:w}),I=[0,0,0,0];_.encryptBlock(I,0);var D=v.getJ0(I,w.words),P=(O==null?void 0:O.clone())||new f.e,q=[0,8*P.nSigBytes],F=(T==null?void 0:T.clone())||new f.e,k=[0,8*F.nSigBytes],B=C||16;(0,m.I4)(P),(0,m.I4)(F);var N=P.words.concat(F.words).concat(q).concat(k),W=v.GHASH(I,N),ye=v.GCTR(_,D,new f.e(W));return(0,m.z6)(ye,B)},v.createEncryptor=function(y){return new v.Encryptor(y)},v.createDecryptor=function(y){return new v.Decryptor(y)},v.Encryptor=function(y){function b(){return y!==null&&y.apply(this,arguments)||this}return p(b,y),b.prototype.processBlock=function(w,O){var T=this.Hn.blockSize;this.Un=v.inc32(this.Un);for(var C=new f.e(w.slice(O,O+T)),_=v.GCTR(this.Hn,this.Un,C),I=0;I<T;I++)w[O+I]=_.words[I]},b}(v),v.Decryptor=function(y){function b(){return y!==null&&y.apply(this,arguments)||this}return p(b,y),b.prototype.processBlock=function(w,O){var T=this.Hn.blockSize;this.Un=v.inc32(this.Un);for(var C=new f.e(w.slice(O,O+T)),_=v.GCTR(this.Hn,this.Un,C),I=0;I<T;I++)w[O+I]=_.words[I]},b}(v),v}(d.T)}},t={};function n(o){var a=t[o];if(a!==void 0)return a.exports;var l=t[o]={exports:{}};return i[o](l,l.exports,n),l.exports}n.d=function(o,a){for(var l in a)n.o(a,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:a[l]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(o){if(typeof window=="object")return window}}(),n.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},n.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"Ln",{value:!0})};var r={};return function(){n.r(r),n.d(r,{AES:function(){return q.AES},Base64:function(){return a.Base64},CBCMAC:function(){return w.CBCMAC},CipherParams:function(){return d.Q},DES:function(){return F.DES},DES3:function(){return k.DES3},EvpKDF:function(){return a.EvpKDF},GMAC:function(){return b.GMAC},Hex:function(){return a.Hex},Hmac:function(){return f.Hmac},HmacMD5:function(){return m.HmacMD5},HmacSHA1:function(){return p.HmacSHA1},HmacSHA224:function(){return E.HmacSHA224},HmacSHA256:function(){return S.HmacSHA256},HmacSHA384:function(){return v.HmacSHA384},HmacSHA512:function(){return y.HmacSHA512},Latin1:function(){return a.Latin1},MD5:function(){return O.MD5},OpenSSLKDF:function(){return a.OpenSSLKDF},PBKDF2:function(){return a.PBKDF2},PasswordBasedCipher:function(){return u.E},RC4:function(){return W.RC4},RC4Drop:function(){return ye.RC4Drop},RIPEMD160:function(){return B.RIPEMD160},Rabbit:function(){return N.Rabbit},SHA1:function(){return T.SHA1},SHA224:function(){return C.SHA224},SHA256:function(){return _.SHA256},SHA3:function(){return P.SHA3},SHA384:function(){return I.SHA384},SHA512:function(){return D.SHA512},SerializableCipher:function(){return l.D},Utf16:function(){return a.Utf16},Utf16BE:function(){return a.Utf16BE},Utf16LE:function(){return a.Utf16LE},Utf8:function(){return a.Utf8},Word32Array:function(){return a.Word32Array},Word64:function(){return a.Word64},Word64Array:function(){return a.Word64Array},formatter:function(){return xn},mode:function(){return Kt},pad:function(){return zr}});var o,a=n(2688),l=n(9109),u=n(5693),d=n(2505),f=n(6367),m=n(3027),p=n(149),E=n(4105),S=n(980),v=n(5838),y=n(9902),b=n(7753),w=n(3967),O=n(670),T=n(3173),C=n(766),_=n(5561),I=n(6324),D=n(7491),P=n(3408),q=n(9691),F=n(9910),k=n(6739),B=n(7104),N=n(5187),W=n(4615),ye=n(9639),be=n(4344),fe=n(1863),re=(o=function(Oe,pe){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,_e){le.__proto__=_e}||function(le,_e){for(var Ie in _e)Object.prototype.hasOwnProperty.call(_e,Ie)&&(le[Ie]=_e[Ie])})(Oe,pe)},function(Oe,pe){function le(){this.constructor=Oe}o(Oe,pe),Oe.prototype=pe===null?Object.create(pe):(le.prototype=pe.prototype,new le)}),he=function(Oe){function pe(le){var _e=Oe.call(this,le)||this;return _e.Cn=[],_e}return re(pe,Oe),pe.prototype.generateKeyStreamAndEncrypt=function(le,_e,Ie,z){var X,oe=this.ln;oe?(X=oe.words.slice(0),this.ln=void 0):X=this.Cn,z.encryptBlock(X,0);for(var ve=0;ve<Ie;ve++)le[_e+ve]^=X[ve]},pe.createEncryptor=function(le){return new pe.Encryptor(le)},pe.createDecryptor=function(le){return new pe.Decryptor(le)},pe.Encryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return re(_e,le),_e.prototype.processBlock=function(Ie,z){this.generateKeyStreamAndEncrypt(Ie,z,this.Hn.blockSize,this.Hn),this.Cn=Ie.slice(z,z+this.Hn.blockSize)},_e}(pe),pe.Decryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return re(_e,le),_e.prototype.processBlock=function(Ie,z){var X=Ie.slice(z,z+this.Hn.blockSize);this.generateKeyStreamAndEncrypt(Ie,z,this.Hn.blockSize,this.Hn),this.Cn=X},_e}(pe),pe}(fe.T),Ae=function(){var Oe=function(pe,le){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Ie){_e.__proto__=Ie}||function(_e,Ie){for(var z in Ie)Object.prototype.hasOwnProperty.call(Ie,z)&&(_e[z]=Ie[z])})(pe,le)};return function(pe,le){function _e(){this.constructor=pe}Oe(pe,le),pe.prototype=le===null?Object.create(le):(_e.prototype=le.prototype,new _e)}}(),ue=function(Oe){function pe(le){var _e=Oe.call(this,le)||this;return _e.Fn=[],_e}return Ae(pe,Oe),pe.createEncryptor=function(le){return new pe.Encryptor(le)},pe.createDecryptor=function(le){return new pe.Decryptor(le)},pe.Encryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return Ae(_e,le),_e.prototype.processBlock=function(Ie,z){var X=this.Hn,oe=X.blockSize,ve=this.ln,Ce=this.Fn;ve&&(Ce=this.Fn=ve.words.slice(0),this.ln=void 0);var ft=Ce.slice(0);X.encryptBlock(ft,0),Ce[oe-1]=Ce[oe-1]+1|0;for(var $e=0;$e<oe;$e++)Ie[z+$e]^=ft[$e]},_e}(pe),pe.Decryptor=pe.Encryptor,pe}(fe.T),xe=function(){var Oe=function(pe,le){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Ie){_e.__proto__=Ie}||function(_e,Ie){for(var z in Ie)Object.prototype.hasOwnProperty.call(Ie,z)&&(_e[z]=Ie[z])})(pe,le)};return function(pe,le){function _e(){this.constructor=pe}Oe(pe,le),pe.prototype=le===null?Object.create(le):(_e.prototype=le.prototype,new _e)}}(),Re=function(Oe){function pe(le){return Oe.call(this,le)||this}return xe(pe,Oe),pe.createEncryptor=function(le){return new pe.Encryptor(le)},pe.createDecryptor=function(le){return new pe.Decryptor(le)},pe.Encryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return xe(_e,le),_e.prototype.processBlock=function(Ie,z){this.Hn.encryptBlock(Ie,z)},_e}(pe),pe.Decryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return xe(_e,le),_e.prototype.processBlock=function(Ie,z){this.Hn.decryptBlock(Ie,z)},_e}(pe),pe}(fe.T),Se=function(){var Oe=function(pe,le){return(Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Ie){_e.__proto__=Ie}||function(_e,Ie){for(var z in Ie)Object.prototype.hasOwnProperty.call(Ie,z)&&(_e[z]=Ie[z])})(pe,le)};return function(pe,le){function _e(){this.constructor=pe}Oe(pe,le),pe.prototype=le===null?Object.create(le):(_e.prototype=le.prototype,new _e)}}(),V=function(Oe){function pe(le){var _e=Oe.call(this,le)||this;return _e.xn=[],_e}return Se(pe,Oe),pe.createEncryptor=function(le){return new pe.Encryptor(le)},pe.createDecryptor=function(le){return new pe.Decryptor(le)},pe.Encryptor=function(le){function _e(){return le!==null&&le.apply(this,arguments)||this}return Se(_e,le),_e.prototype.processBlock=function(Ie,z){var X=this.Hn,oe=X.blockSize,ve=this.ln,Ce=this.xn;ve&&(Ce=this.xn=ve.words.slice(0),this.ln=void 0),X.encryptBlock(Ce,0);for(var ft=0;ft<oe;ft++)Ie[z+ft]^=Ce[ft]},_e}(pe),pe.Decryptor=pe.Encryptor,pe}(fe.T),ee=n(5607),ne=n(3664),ae={pad:function(Oe,pe){var le=Oe.nSigBytes,_e=4*pe,Ie=_e-le%_e,z=le+Ie-1;Oe.clamp(),Oe.words[z>>>2]|=Ie<<24-z%4*8,Oe.nSigBytes+=Ie},unpad:function(Oe){var pe=255&Oe.words[Oe.nSigBytes-1>>>2];Oe.nSigBytes-=pe}},bt=n(3354),Ft={pad:function(Oe,pe){var le=4*pe,_e=le-Oe.nSigBytes%le;Oe.concat(bt.e.random(_e-1)).concat(new bt.e([_e<<24],1))},unpad:function(Oe){var pe=255&Oe.words[Oe.nSigBytes-1>>>2];Oe.nSigBytes-=pe}},Mt={pad:function(Oe,pe){var le=4*pe;Oe.clamp(),Oe.nSigBytes+=le-(Oe.nSigBytes%le||le)},unpad:function(Oe){for(var pe=Oe.words,le=Oe.nSigBytes-1;le>=0;le--)if(pe[le>>>2]>>>24-le%4*8&255){Oe.nSigBytes=le+1;break}}},Et={pad:function(Oe,pe){Oe.concat(new bt.e([2147483648],1)),Mt.pad(Oe,pe)},unpad:function(Oe){Mt.unpad(Oe),Oe.nSigBytes-=1}},On=n(7919),Bn={pad:function(Oe,pe){},unpad:function(Oe){}},It=n(1232),Kt={CBC:be.n,CFB:he,CTR:ue,ECB:Re,OFB:V,GCM:ee.V,CCM:ne.K},zr={AnsiX923:ae,ISO10126:Ft,ISO97971:Et,Pkcs7:On.l,NoPadding:Bn,Zero:Mt},xn={OpenSSLFormatter:It.w}}(),r}()})});var R3=Y((_F,rg)=>{A();"use strict";var oN=Object.prototype.hasOwnProperty,In="~";function ol(){}Object.create&&(ol.prototype=Object.create(null),new ol().__proto__||(In=!1));function sN(i,t,n){this.fn=i,this.context=t,this.once=n||!1}function A3(i,t,n,r,o){if(typeof n!="function")throw new TypeError("The listener must be a function");var a=new sN(n,r||i,o),l=In?In+t:t;return i._events[l]?i._events[l].fn?i._events[l]=[i._events[l],a]:i._events[l].push(a):(i._events[l]=a,i._eventsCount++),i}function qd(i,t){--i._eventsCount==0?i._events=new ol:delete i._events[t]}function Sn(){this._events=new ol,this._eventsCount=0}Sn.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)oN.call(n,r)&&t.push(In?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};Sn.prototype.listeners=function(t){var n=In?In+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,l=new Array(a);o<a;o++)l[o]=r[o].fn;return l};Sn.prototype.listenerCount=function(t){var n=In?In+t:t,r=this._events[n];return r?r.fn?1:r.length:0};Sn.prototype.emit=function(t,n,r,o,a,l){var u=In?In+t:t;if(!this._events[u])return!1;var d=this._events[u],f=arguments.length,m,p;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),f){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,n),!0;case 3:return d.fn.call(d.context,n,r),!0;case 4:return d.fn.call(d.context,n,r,o),!0;case 5:return d.fn.call(d.context,n,r,o,a),!0;case 6:return d.fn.call(d.context,n,r,o,a,l),!0}for(p=1,m=new Array(f-1);p<f;p++)m[p-1]=arguments[p];d.fn.apply(d.context,m)}else{var E=d.length,S;for(p=0;p<E;p++)switch(d[p].once&&this.removeListener(t,d[p].fn,void 0,!0),f){case 1:d[p].fn.call(d[p].context);break;case 2:d[p].fn.call(d[p].context,n);break;case 3:d[p].fn.call(d[p].context,n,r);break;case 4:d[p].fn.call(d[p].context,n,r,o);break;default:if(!m)for(S=1,m=new Array(f-1);S<f;S++)m[S-1]=arguments[S];d[p].fn.apply(d[p].context,m)}}return!0};Sn.prototype.on=function(t,n,r){return A3(this,t,n,r,!1)};Sn.prototype.once=function(t,n,r){return A3(this,t,n,r,!0)};Sn.prototype.removeListener=function(t,n,r,o){var a=In?In+t:t;if(!this._events[a])return this;if(!n)return qd(this,a),this;var l=this._events[a];if(l.fn)l.fn===n&&(!o||l.once)&&(!r||l.context===r)&&qd(this,a);else{for(var u=0,d=[],f=l.length;u<f;u++)(l[u].fn!==n||o&&!l[u].once||r&&l[u].context!==r)&&d.push(l[u]);d.length?this._events[a]=d.length===1?d[0]:d:qd(this,a)}return this};Sn.prototype.removeAllListeners=function(t){var n;return t?(n=In?In+t:t,this._events[n]&&qd(this,n)):(this._events=new ol,this._eventsCount=0),this};Sn.prototype.off=Sn.prototype.removeListener;Sn.prototype.addListener=Sn.prototype.on;Sn.prefixed=In;Sn.EventEmitter=Sn;typeof rg!="undefined"&&(rg.exports=Sn)});var pN={};dM(pN,{Link:()=>sl,default:()=>fN,load:()=>hN});A();A();A();var Kv=Je(Vv()),Yv=Je(Rn());A();var Jv=Je(Rn());function Cs(i,t){return Jv.TaJson.deserialize(i,t)}var Yi=class extends Kv.Publication{static async fromUrl(t,n){let o=await(await fetch(t.href,n)).json(),a=Cs(o,Yi);return a.manifestUrl=t,a}get readingOrder(){return this.Spine??[]}get resources(){return this.Resources??[]}get tableOfContents(){return this.sample?.isSampleRead&&this.positions?.length>0?this.limitedTOC():this.TOC}limitedTOC(){function t(r){for(let o=0;o<r.Children.length;o++){let a=r.Children[o];a.Href=void 0,a.Children&&t(a)}}return this.TOC.map(r=>{if(r.Href){let o=this.positionsByHref(this.getRelativeHref(r.Href));if(o?.length>0){let a=o[0],l=Math.round(a.locations.totalProgression?a.locations.totalProgression:0*100);this.sample?.limit&&(l<=this.sample?.limit||(r.Href=void 0,r.Children&&t(r)))}}return r})}get landmarks(){return this.Landmarks}get pageList(){return this.PageList}get isFixedLayout(){return this.Metadata.Rendition?.Layout==="fixed"}get isReflowable(){return!this.isFixedLayout}get layout(){return this.isFixedLayout?"fixed":"reflowable"}get hasMediaOverlays(){return this.readingOrder?this.readingOrder.filter(t=>t.Properties?.MediaOverlay).length>0:!1}getStartLink(){if(this.readingOrder!==void 0&&this.readingOrder.length>0)return this.readingOrder[0]}getPreviousSpineItem(t){let n=this.getSpineIndex(t);if(n!==void 0&&this.readingOrder!==void 0&&n>0)return this.readingOrder[n-1]}getNextSpineItem(t){let n=this.getSpineIndex(t);if(n!==void 0&&this.readingOrder!==void 0&&n<this.readingOrder.length-1)return this.readingOrder[n+1]}getSpineItem(t){let n=this.getSpineIndex(t);if(n!==void 0&&this.readingOrder!==void 0)return this.readingOrder[n]}getSpineIndex(t){return this.readingOrder?.findIndex(n=>n.Href&&this.getAbsoluteHref(n.Href)===t)}getAbsoluteHref(t){return new URL(t,this.manifestUrl.href).href}getRelativeHref(t){let n=this.manifestUrl.href.replace("/manifest.json",""),r=t.replace(n,"");return r.indexOf("#")>0&&(r=r.slice(0,r.indexOf("#"))),r.charAt(0)==="/"&&(r=r.substring(1)),r}getTOCItemAbsolute(t){let n=this.getAbsoluteHref(t),r=(a,l)=>{for(let u=0;u<l.length;u++){let d=l[u];if(d.Href){let f=d.Href.indexOf("#")!==-1?d.Href.slice(0,d.Href.indexOf("#")):d.Href;if(this.getAbsoluteHref(f)===a)return d}if(d.Children){let f=r(a,d.Children);if(f!==void 0)return f}}},o=r(n,this.tableOfContents);return o===void 0&&this.readingOrder!==void 0&&(o=r(n,this.readingOrder)),o}getTOCItem(t){let n=(o,a)=>{for(let l=0;l<a.length;l++){let u=a[l];if(u.Href&&this.getAbsoluteHref(u.Href)===o)return u;if(u.Children){let d=n(o,u.Children);if(d!==void 0)return d}}},r=n(t,this.tableOfContents);if(r===void 0&&this.readingOrder!==void 0&&(r=n(t,this.readingOrder)),r===void 0&&t.indexOf("#")!==-1){let o=t.slice(0,t.indexOf("#"));r=n(o,this.tableOfContents),r===void 0&&this.readingOrder!==void 0&&(r=n(o,this.readingOrder))}return r}positionsByHref(t){let n=decodeURI(t)??"";return this.positions?.filter(r=>n.includes(r.href))}async autoGeneratePositions(t,n=AL){let r=0,o=0,a=[];if(this.readingOrder!==void 0)for(let u of this.readingOrder)if(this.isFixedLayout){let d={href:u.Href,locations:{progression:0,position:r+1},type:u.TypeLink};a.push(d),r=r+1}else{let d=this.getAbsoluteHref(u.Href),f=await n(d,t);u.contentLength=f,o+=f;let p=Math.max(1,Math.ceil(f/1024));for(let E=0;E<p;E++){let S={href:u.Href,locations:{progression:E/p,position:r+(E+1)},type:u.TypeLink};a.push(S)}r=r+p}var l=0;if(this.isReflowable&&this.readingOrder!==void 0)for(let u of this.readingOrder){if(!u.contentLength){console.error("Link is missing contentLength",u);return}u.contentWeight=100/o*u.contentLength,l=l+u.contentWeight}for(let u of a){let d=a.filter(m=>m.href===decodeURI(u.href)),f=Math.ceil((u.locations.progression?u.locations.progression:0)*(d.length-1));u.locations.position&&(u.locations.totalProgression=(u.locations.position-1)/a.length),u.locations.remainingPositions=Math.abs(f-(d.length-1)),u.locations.position&&(u.locations.totalRemainingPositions=Math.abs(u.locations.position-1-(a.length-1)))}this.positions=a}async fetchPositionsFromService(t,n){let o=await(await fetch(t,n)).json();this.positions=o.positions}async fetchWeightsFromService(t,n){if(this.isFixedLayout){console.warn("Not fetching weights from service for fixed layout publication.");return}let o=await(await fetch(t,n)).json();this.readingOrder!==void 0&&this.readingOrder.forEach(a=>{a.contentWeight=o[a.Href]})}};Yi=ac([(0,Yv.JsonObject)()],Yi);var AL=async(i,t)=>(await(await fetch(i,t)).blob()).size;A();A();var As=class{json(){return JSON.stringify(this)}},Zv=class extends As{constructor(t,n,r){super();this.value=t,this.ref=n,this.name=r}toString(){return this.value}},Xv=class extends As{constructor(t,n,r){super();this.value=t,this.ref=n,this.name=r}toString(){return this.value}toJson(){return JSON.parse(this.value)}},Qv=class extends As{constructor(t,n,r,o){super();this.value=t,this.values=n,this.ref=r,this.name=o}toString(){return this.values[this.value]}},ew=class extends As{constructor(t,n,r,o,a,l,u){super();this.countDecimals=function(t){return t%1!=0?t.toString().split(".")[1].length:1};this.value=t,this.min=n,this.max=r,this.step=o,this.suffix=a,this.ref=l,this.name=u}toString(){return this.value.toString()+this.suffix}increment(){let t=this.countDecimals(this.max);parseFloat(this.value.toFixed(t))<this.max&&(this.value=parseFloat(this.value.toFixed(t))+this.step)}decrement(){let t=this.countDecimals(this.min);parseFloat(this.value.toFixed(t))>this.min&&(this.value=parseFloat(this.value.toFixed(t))-this.step)}},xa=class extends As{constructor(t,n,r,o,a){super();this.value=r,this.onValue=t,this.offValue=n,this.ref=o,this.name=a}toString(){return this.value?this.onValue:this.offValue}switch(){this.value=!this.value}},xi=class{constructor(){this.properties=[]}addIncremental(t,n,r,o,a,l,u){this.properties.push(new ew(t,n,r,o,a,l,u))}addStringable(t,n,r){this.properties.push(new Zv(t,n,r))}addJSONable(t,n,r){this.properties.push(new Xv(t,n,r))}addSwitchable(t,n,r,o,a){this.properties.push(new xa(t,n,r,o,a))}addEnumerable(t,n,r,o){this.properties.push(new Qv(t,n,r,o))}getByRef(t){let n=this.properties.filter(r=>r.ref===t);return n.length>0?n[0]:null}getByKey(t){let n=this.properties.filter(r=>r.key===t);return n.length>0?n[0]:null}};A();var cr=class{},K=cr;K.FONT_SIZE_REF="fontSize",K.FONT_FAMILY_REF="fontFamily",K.FONT_OVERRIDE_REF="fontOverride",K.APPEARANCE_REF="appearance",K.SCROLL_REF="scroll",K.TEXT_ALIGNMENT_REF="textAlign",K.COLUMN_COUNT_REF="colCount",K.WORD_SPACING_REF="wordSpacing",K.LETTER_SPACING_REF="letterSpacing",K.PAGE_MARGINS_REF="pageMargins",K.LINE_HEIGHT_REF="lineHeight",K.FONT_SIZE_KEY="--USER__"+cr.FONT_SIZE_REF,K.FONT_FAMILY_KEY="--USER__"+cr.FONT_FAMILY_REF,K.FONT_OVERRIDE_KEY="--USER__"+cr.FONT_OVERRIDE_REF,K.APPEARANCE_KEY="--USER__"+cr.APPEARANCE_REF,K.SCROLL_KEY="--USER__"+cr.SCROLL_REF,K.TEXT_ALIGNMENT_KEY="--USER__"+cr.TEXT_ALIGNMENT_REF,K.COLUMN_COUNT_KEY="--USER__"+cr.COLUMN_COUNT_REF,K.WORD_SPACING_KEY="--USER__"+cr.WORD_SPACING_REF,K.LETTER_SPACING_KEY="--USER__"+cr.LETTER_SPACING_REF,K.PAGE_MARGINS_KEY="--USER__"+cr.PAGE_MARGINS_REF,K.LINE_HEIGHT_KEY="--USER__"+cr.LINE_HEIGHT_REF;A();function de(i,t){return i.querySelector(t)}function dt(i,t){let n=de(i,t);if(n&&n instanceof HTMLElement)return n;throw new Error("required element "+t+" not found")}function Qt(i,t){if(i===null)throw new Error("parent element is null");return i.querySelector(t)}function _i(i,t){let n=Qt(i,t);if(n)return n;throw new Error("required element "+t+" not found in iframe")}function hn(i,t,n){i.setAttribute(t,n)}A();A();var YE=Je(Xp());var Va=class{constructor(t){this.getScrollingElement=t=>t.scrollingElement?t.scrollingElement:t.body;this.navigator=t}async handleFootnote(t,n){let r=t.getAttribute("href");if(r&&r.indexOf("#")>0){let a=function(u){let d=document.location.href;return new URL(u,d).href},o=r.substring(r.indexOf("#")+1),l=a(r);l&&(l=l.substring(0,l.indexOf("#")),n.preventDefault(),n.stopPropagation(),await fetch(l,this.navigator.requestConfig).then(u=>u.text()).then(async u=>{let m=new DOMParser().parseFromString(u,"text/html").querySelector("#"+o);m&&(n.preventDefault(),n.stopPropagation(),this.showPopup(m,n))}))}}async hidePopover(){let t=this.navigator.iframes[0].contentDocument?.getElementById("d2-popover");t&&t.parentElement?.removeChild(t);let n=dt(document,"#iframe-wrapper");n.style.overflow="auto"}async showPopover(t,n){let r=t.getAttribute("href"),o=t.getAttribute("src");function a(l){let u=document.location.href;return new URL(l,u).href}if(r){let l=a(r);if(l){n.preventDefault(),n.stopPropagation();let u=this.navigator.iframes[0].contentDocument?.getElementById("d2-popover");u&&u.parentElement?.removeChild(u);let d=document.createElement("div");d.id="d2-popover",d.className="d2-popover is-active";let f=dt(document,"#iframe-wrapper");f.style.overflow="hidden",d.style.top=f.scrollTop+"px",d.style.height=f.clientHeight*.9+"px";let m=document.createElement("div");m.className="d2-popover-wrapper",d.appendChild(m);let p=document.createElement("div");p.className="d2-popover-content",m.appendChild(p),await fetch(l,this.navigator.requestConfig).then(v=>v.text()).then(async v=>{p.innerHTML=v;let y=this.navigator.iframes[0].contentDocument;y&&y.body.appendChild(d)});let E=this.navigator.iframes[0].contentWindow;if(!E)return;let S=this;E.onclick=function(v){n.target!==v.target&&d.parentElement&&(S.hidePopover(),E&&(E.onclick=null))}}}else if(o&&a(o)){n.preventDefault(),n.stopPropagation();let u=this.navigator.iframes[0].contentDocument?.getElementById("d2-popover");u&&u.parentElement?.removeChild(u);let d=document.createElement("div");d.id="d2-popover",d.className="d2-popover is-active";let f=dt(document,"#iframe-wrapper");f.style.overflow="hidden",d.style.top=f.scrollTop+"px",d.style.height=f.clientHeight*.9+"px";let m=document.createElement("div");m.className="d2-popover-wrapper",d.appendChild(m);let p=document.createElement("img");p.className="d2-popover-content",m.appendChild(p),p.src=o;let E=this.navigator.iframes[0].contentDocument;E&&E.body.appendChild(d);let S=this.navigator.iframes[0].contentWindow;if(!S)return;let v=this;S.onclick=function(y){n.target!==y.target&&d.parentElement&&(v.hidePopover(),S&&(S.onclick=null))}}}showPopup(t,n){let r=this.navigator.iframes[0].contentDocument?.getElementById("d2-popup");r&&r.parentElement?.removeChild(r);let o=document.createElement("aside");o.id="d2-popup",o.className="d2-popup is-active";let a=document.createElement("div");a.className="d2-popup-wrapper",o.appendChild(a);let l=document.createElement("div");l.className="d2-popup-content",a.appendChild(l);let u=document.createElement("p");l.appendChild(u),typeof t=="string"?u.innerHTML=t:u.innerHTML=(0,YE.default)(t.innerHTML,{allowedTags:[],allowedAttributes:{}});let d=this.navigator.view?.isPaginated(),f=this.navigator.iframes[0].contentDocument;if(!f)return;let m=this.getScrollingElement(f),p=d?m.scrollLeft:0,E=d?m.scrollTop:0,S=n.x+p,v=n.y+E;o.style.top=v+"px",d&&(o.style.left=S+"px"),f.body.appendChild(o);let y=this.navigator.iframes[0].contentWindow;!y||(y.onclick=function(b){n.target!==b.target&&o.parentElement&&(o.style.display="none",o.parentElement.removeChild(o),y&&(y.onclick=null))})}};var hd=Je(Dt());function Z(i,t,n){i&&i.addEventListener(t,n,!0)}function we(i,t,n){i&&i.removeEventListener(t,n,!0)}var pd=class{constructor(t){this.onInternalLink=()=>{};this.onClickThrough=()=>{};this.checkForLink=t=>{let n=t.target;for(;n&&n.tagName.toLowerCase()!=="body";){if(n.tagName.toLowerCase()==="a"&&n.href)return n;n=n.parentElement}return null};this.linkInPublication=(t,n)=>t.some(r=>!r.Rel?.includes("external")&&this.navigator.publication.getRelativeHref(n).includes(r.Href));this.isReadingOrderInternal=t=>(hd.default.log("clickedLink: ",t),this.linkInPublication(this.navigator.publication.readingOrder,t.href));this.isResourceInternal=t=>(hd.default.log("clickedLink: ",t),this.linkInPublication(this.navigator.publication.resources,t.href));this.handleLinks=async t=>{hd.default.log("R2 Click Handler");let n=this.checkForLink(t);if(n){let r=window.location.protocol===n.protocol&&window.location.port===n.port&&window.location.hostname===n.hostname,o=this.isReadingOrderInternal(n),a=this.isResourceInternal(n);a||await this.popup.hidePopover();let l=n.href.indexOf("#");if(!o&&!a)window.open(n.href,n.target??"_blank"),t.preventDefault(),t.stopPropagation();else if(t.target.href=n.href,(r||o)&&l!==-1){let u=t.target;u?u.getAttribute("epub:type")==="noteref"?await this.popup.handleFootnote(u,t):a&&!o?await this.popup.showPopover(u,t):this.onInternalLink(t):this.onInternalLink(t)}else(r||o)&&l===-1&&this.onInternalLink(t)}else this.onClickThrough(t)};this.navigator=t,this.popup=new Va(this.navigator)}setupEvents(t){if(t!==null)t.addEventListener("dblclick",async n=>{let r=n.target;n.target&&r.tagName.toLowerCase()==="img"&&await this.popup.showPopover(r,n)},!0),t.addEventListener("click",this.handleLinks.bind(this));else throw"cannot setup events for null"}};A();A();function XE(){return dt(document,"#iframe-wrapper").clientWidth}function $r(){return dt(document,"#iframe-wrapper").clientHeight}var e4=Je(to()),gd=class{constructor(t){this.layout="reflowable";this.USERSETTINGS="userSetting";this.sideMargin=20;this.height=0;this.attributes={margin:0};this.hasFixedScrollWidth=!1;this.store=t,this.scrollMode?(this.name="readium-scroll-on",this.label="Scrolling"):(this.name="readium-scroll-off",this.label="Paginated")}setMode(t){if(this.scrollMode=t,t){this.name="readium-scroll-on",this.label="Scrolling";let n=this.iframe.contentDocument;if(n){let r=Qt(n,"head");if(r){let a=de(r,"meta[name=viewport]");a&&a.remove()}let o=Qt(n,"html");o&&o.style.setProperty("--USER__scroll","readium-scroll-on")}this.setSize(),this.setIframeHeight(this.iframe)}else{this.height=$r()-40-this.attributes.margin,this.name="readium-scroll-off",this.label="Paginated",this.checkForFixedScrollWidth();let n=this.iframe.contentDocument;if(n){let r=Qt(n,"html");r&&r.style.setProperty("--USER__scroll","readium-scroll-off")}this.setSize()}this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate()}start(){if(this.scrollMode){let t=this.iframe.contentDocument;if(t){let n=Qt(t,"head");if(n){let r=de(n,"meta[name=viewport]");r&&r.remove()}}this.setSize(),this.setIframeHeight(this.iframe)}else{this.iframe.height="0",this.iframe.width="0",this.setSize();let t=document.createElement("meta");t.name="viewport",t.content="width=device-width, initial-scale=1, maximum-scale=1",this.checkForFixedScrollWidth()}}stop(){if(this.iframe.height="0",this.iframe.width="0",this.iframe.contentDocument){let n=Qt(this.iframe.contentDocument,"body"),r=Array.prototype.slice.call(n.querySelectorAll("img"));for(let o of r)o.style.maxWidth=""}}getCurrentPosition(){let t=dt(document,"#iframe-wrapper");if(this.scrollMode)return t.scrollTop/this.scrollingElement.scrollHeight;{let n=this.getColumnWidth(),r=this.getLeftColumnsWidth(),o=this.getRightColumnsWidth(),a=r+n+o;return r/a}}goToProgression(t){let n=dt(document,"#iframe-wrapper");if(this.scrollMode)n.scrollTop=this.scrollingElement.scrollHeight*t;else{let r=this.getColumnWidth(),o=this.getLeftColumnsWidth(),a=this.getRightColumnsWidth(),l=o+r+a,u=t*l,d=Math.round(u/r)*r;d>=l&&(d=d-r),this.setLeftColumnsWidth(d)}}goToCssSelector(t,n){let r=this.iframe.contentDocument;if(r){let o=r.querySelector(t);this.goToElement(o,n)}}goToFragment(t,n){let r=this.iframe.contentDocument;if(r){let o=r.getElementById(t);this.goToElement(o,n)}}snap(t,n){if(t&&!this.scrollMode){let r=t.style.height;t.style.height="0";let o=this.getColumnWidth(),a=this.getLeftColumnsWidth()+t.getBoundingClientRect().left,l=Math.floor(a/o)*o;t.style.height=r,this.setLeftColumnsWidth(l),this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate(0)}}goToElement(t,n){if(this.scrollMode)t&&t.scrollIntoView({block:"center"});else if(t){let r=t.style.height;t.style.height="0";let o=t.getBoundingClientRect().left,a=this.getColumnWidth(),l=this.scrollingElement.scrollLeft-a,u=Math.ceil(o/a)*a+l;if(n){let d=this.getLeftColumnsWidth();u=Math.ceil(o/a)*a+d}t.style.height=r,this.setLeftColumnsWidth(u),this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate(200)}}atStart(){return this.scrollMode?dt(document,"#iframe-wrapper").scrollTop===0:this.getLeftColumnsWidth()<=0}atEnd(){if(this.scrollMode){let t=dt(document,"#iframe-wrapper");return Math.ceil(this.scrollingElement.scrollHeight-t.scrollTop)-1<=$r()}else return Math.floor(this.getRightColumnsWidth())<=0}goToPreviousPage(){let t=dt(document,"#iframe-wrapper");if(this.scrollMode){let n=t.scrollTop,r=this.getScreenHeight()-40,o=n-r;o>=0?t.scrollTop=o:t.scrollTop=0}else{let n=this.getLeftColumnsWidth(),r=this.getColumnWidth(),o=n-r;o>=0?this.setLeftColumnsWidth(o):this.setLeftColumnsWidth(0),this.delegate.checkResourcePosition()}this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate()}goToNextPage(){let t=dt(document,"#iframe-wrapper");if(this.scrollMode){let n=t.scrollTop,r=this.getScreenHeight()-40,o=this.scrollingElement.scrollHeight,a=n+r;a<o?t.scrollTop=a:t.scrollTop=o}else{let n=this.getLeftColumnsWidth(),r=this.getColumnWidth(),o=this.scrollWidth,a=n+r;a<o?this.setLeftColumnsWidth(a):this.setLeftColumnsWidth(o),this.delegate.checkResourcePosition()}this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate()}getCurrentPage(){return this.scrollMode?0:this.getCurrentPosition()*this.getPageCount()+1}getPageCount(){if(this.scrollMode)return 0;{let t=this.getColumnWidth();return this.scrollWidth/t}}isPaginated(){if(this.iframe){let t=this.iframe.contentDocument;if(t){let n=Qt(t,"html");if(n)return!(n.style.getPropertyValue("--USER__scroll")==="readium-scroll-on")}}return!this.scrollMode}isScrollMode(){if(this.iframe){let t=this.iframe.contentDocument;if(t){let n=Qt(t,"html");if(n)return n.style.getPropertyValue("--USER__scroll")==="readium-scroll-on"}}return this.scrollMode}async getProperty(t){let n=await this.store.get(this.USERSETTINGS);if(n){let r=JSON.parse(n);return r=r.filter(o=>o.name===t),r.length===0?null:r[0]}return null}getScreenHeight(){return dt(document,"#iframe-wrapper").clientHeight}setIframeHeight(t){(0,e4.debounce)(r=>{if(r){let o=r.contentWindow.document.body,a=r.contentWindow.document.documentElement,l=Math.max(o?.scrollHeight,o?.offsetHeight,a?.clientHeight,a?.scrollHeight,a?.offsetHeight);if(l){let u=$r()-this.attributes.margin;r.height=Math.max(u,l)+"px"}}},200)(t)}checkForFixedScrollWidth(){let t=this.iframe.contentDocument;if(t){let n=Qt(t,"body"),r=n?.scrollWidth;this.hasFixedScrollWidth=n?.scrollWidth===r}}setSize(){if(this.iframe.width=XE()+"px",this.scrollMode){let t=this.iframe.contentWindow?.document?.documentElement;this.iframe.height=t?.offsetHeight+"px"}else{let t=this.iframe.contentDocument;t&&t.documentElement&&(t.documentElement.style.height=this.height+"px"),this.iframe.height=this.height+"px"}}getLeftColumnsWidth(){return Math.ceil(this.scrollingElement.scrollLeft)}getRightColumnsWidth(){let t=this.getColumnWidth(),n=this.scrollWidth-t;if(this.hasFixedScrollWidth){let r=this.getLeftColumnsWidth();n=Math.max(0,n-r)}return n}getColumnWidth(){return this.scrollingElement.clientWidth}setLeftColumnsWidth(t){this.scrollingElement.scrollLeft=t}get scrollingElement(){return this.iframe.contentDocument?.scrollingElement?this.iframe.contentDocument?.scrollingElement:this.iframe.contentDocument?.body?this.iframe.contentDocument?.body:document.createElement("body")}get scrollWidth(){let t=this.scrollingElement?.scrollWidth,n=this.getColumnWidth();return Math.floor(t/n)*n}};A();var md=class{constructor(){this.layout="fixed";this.sideMargin=20;this.height=0;this.attributes={margin:0}}start(){}stop(){}getCurrentPosition(){return 0}getScreenHeight(){return dt(document,"#iframe-wrapper").clientHeight}goToProgression(t){}goToCssSelector(t,n){}goToFragment(t,n){}snap(t,n){}getCurrentPage(){return 0}getPageCount(){return 1}setSize(){}isPaginated(){return!0}isScrollMode(){return!1}atEnd(){return!0}atStart(){return!0}};var dr=Je(Dt()),wt=class{constructor(t,n,r,o,a){this.USERSETTINGS="userSetting";this.fontSize=100;this.fontOverride=!1;this.fontFamily=0;this.appearance=0;this.verticalScroll=!0;this.textAlignment=0;this.columnCount=0;this.wordSpacing=0;this.letterSpacing=0;this.pageMargins=2;this.lineHeight=1;this.settingsChangeCallback=()=>{};this.settingsColumnsChangeCallback=()=>{};this.viewChangeCallback=()=>{};this.store=t,this.view=a==="fixed"?new md:new gd(this.store),this.headerMenu=n,this.api=r,this.injectables=o,this.injectables?.forEach(l=>{l.type==="style"&&(l.fontFamily&&this.addFont(l.fontFamily),l.appearance&&this.addAppearance(l.appearance))})}async isPaginated(){return!await this.getPropertyAndFallback("verticalScroll",K.SCROLL_KEY)}async isScrollMode(){return!await this.isPaginated()}static async create(t){let n=new this(t.store,t.headerMenu,t.api,t.injectables,t.layout);if(await n.initialise(),t.initialUserSettings){n.userProperties||(n.userProperties=n.getUserSettings());let r=t.initialUserSettings;if(r.verticalScroll!==void 0){n.verticalScroll=this.parseScrollSetting(r.verticalScroll);let o=n.userProperties.getByRef(K.SCROLL_REF);o&&(o.value=n.verticalScroll,await n.saveProperty(o)),dr.default.log(n.verticalScroll)}if(r.appearance){n.appearance=wt.appearanceValues.findIndex(a=>a===r.appearance);let o=n.userProperties.getByRef(K.APPEARANCE_REF);o&&(o.value=n.appearance,await n.saveProperty(o)),dr.default.log(n.appearance)}if(r.fontSize){n.fontSize=r.fontSize;let o=n.userProperties.getByRef(K.FONT_SIZE_REF);o&&(o.value=n.fontSize,await n.saveProperty(o)),dr.default.log(n.fontSize)}if(r.fontFamily){n.fontFamily=wt.fontFamilyValues.findIndex(a=>a===r.fontFamily);let o=n.userProperties.getByRef(K.FONT_FAMILY_REF);o&&(o.value=n.fontFamily,await n.saveProperty(o)),dr.default.log(n.fontFamily),n.fontFamily!==0&&(n.fontOverride=!0)}if(r.textAlignment){n.textAlignment=wt.textAlignmentValues.findIndex(a=>a===r.textAlignment);let o=n.userProperties.getByRef(K.TEXT_ALIGNMENT_REF);o&&(o.value=n.textAlignment,await n.saveProperty(o)),dr.default.log(n.textAlignment)}if(r.columnCount){n.columnCount=wt.columnCountValues.findIndex(a=>a===r.columnCount);let o=n.userProperties.getByRef(K.COLUMN_COUNT_REF);o&&(o.value=n.columnCount,await n.saveProperty(o)),dr.default.log(n.columnCount)}if(r.wordSpacing){n.wordSpacing=r.wordSpacing;let o=n.userProperties.getByRef(K.WORD_SPACING_REF);o&&(o.value=n.wordSpacing,await n.saveProperty(o)),dr.default.log(n.wordSpacing)}if(r.letterSpacing){n.letterSpacing=r.letterSpacing;let o=n.userProperties.getByRef(K.LETTER_SPACING_REF);o&&(o.value=n.letterSpacing,await n.saveProperty(o)),dr.default.log(n.letterSpacing)}if(r.pageMargins){n.pageMargins=r.pageMargins;let o=n.userProperties.getByRef(K.PAGE_MARGINS_REF);o&&(o.value=n.pageMargins,await n.saveProperty(o)),dr.default.log(n.pageMargins)}if(r.lineHeight){n.lineHeight=r.lineHeight;let o=n.userProperties.getByRef(K.LINE_HEIGHT_REF);o&&(o.value=n.lineHeight,await n.saveProperty(o)),dr.default.log(n.lineHeight)}n.userProperties=n.getUserSettings(),await n.initialise()}return await n.initializeSelections(),new Promise(r=>r(n))}stop(){dr.default.log("book settings stop")}async initialise(){this.appearance=await this.getPropertyAndFallback("appearance",K.APPEARANCE_KEY),this.verticalScroll=await this.getPropertyAndFallback("verticalScroll",K.SCROLL_KEY),this.fontFamily=await this.getPropertyAndFallback("fontFamily",K.FONT_FAMILY_KEY),this.fontFamily!==0&&(this.fontOverride=!0),this.textAlignment=await this.getPropertyAndFallback("textAlignment",K.TEXT_ALIGNMENT_KEY),this.columnCount=await this.getPropertyAndFallback("columnCount",K.COLUMN_COUNT_KEY),this.fontSize=await this.getPropertyAndFallback("fontSize",K.FONT_SIZE_KEY),this.wordSpacing=await this.getPropertyAndFallback("wordSpacing",K.WORD_SPACING_KEY),this.letterSpacing=await this.getPropertyAndFallback("letterSpacing",K.LETTER_SPACING_KEY),this.pageMargins=await this.getPropertyAndFallback("pageMargins",K.PAGE_MARGINS_KEY),this.lineHeight=await this.getPropertyAndFallback("lineHeight",K.LINE_HEIGHT_KEY),this.userProperties=this.getUserSettings()}async reset(){this.appearance=0,this.verticalScroll=!0,this.fontSize=100,this.fontOverride=!1,this.fontFamily=0,this.textAlignment=0,this.columnCount=0,this.wordSpacing=0,this.letterSpacing=0,this.pageMargins=2,this.lineHeight=1,this.userProperties=this.getUserSettings();let t=this.iframe.contentDocument;if(t){let n=Qt(t,"html");if(n){let r=document.documentElement,o=dt(r,"body");n.style.removeProperty(K.FONT_SIZE_KEY),n.style.removeProperty(K.WORD_SPACING_KEY),n.style.removeProperty(K.LETTER_SPACING_KEY),n.style.removeProperty(K.COLUMN_COUNT_KEY),n.style.removeProperty(K.TEXT_ALIGNMENT_KEY),n.style.removeProperty(K.LINE_HEIGHT_KEY),n.style.removeProperty(K.PAGE_MARGINS_KEY),n.style.removeProperty(K.APPEARANCE_KEY),hn(r,"data-viewer-theme","day"),hn(o,"data-viewer-theme","day"),n.style.removeProperty(K.FONT_FAMILY_KEY),hn(n,"data-viewer-font","publisher"),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-off")}}}async initializeSelections(){this.headerMenu&&(this.settingsView=de(this.headerMenu,"#container-view-settings"))}async applyProperties(){this.userProperties=this.getUserSettings();let t=this.iframe.contentDocument;if(t){let n=Qt(t,"html");if(n){let r=document.documentElement,o=dt(r,"body");if(this.view?.delegate.publication.isReflowable&&(await this.getProperty(K.FONT_SIZE_KEY)&&n.style.setProperty(K.FONT_SIZE_KEY,this.userProperties.getByRef(K.FONT_SIZE_REF)?.toString()??null),await this.getProperty(K.WORD_SPACING_KEY)&&n.style.setProperty(K.WORD_SPACING_KEY,this.userProperties.getByRef(K.WORD_SPACING_REF)?.toString()??null),await this.getProperty(K.LETTER_SPACING_KEY)&&n.style.setProperty(K.LETTER_SPACING_KEY,this.userProperties.getByRef(K.LETTER_SPACING_REF)?.toString()??null)),await this.getProperty(K.COLUMN_COUNT_KEY)&&n.style.setProperty(K.COLUMN_COUNT_KEY,this.userProperties.getByRef(K.COLUMN_COUNT_REF)?.toString()??null),this.view?.delegate.publication.isReflowable&&(await this.getProperty(K.TEXT_ALIGNMENT_KEY)&&(this.userProperties.getByRef(K.TEXT_ALIGNMENT_REF)?.toString()==="auto"?n.style.removeProperty(K.TEXT_ALIGNMENT_KEY):n.style.setProperty(K.TEXT_ALIGNMENT_KEY,this.userProperties.getByRef(K.TEXT_ALIGNMENT_REF)?.toString()??null)),await this.getProperty(K.LINE_HEIGHT_KEY)&&n.style.setProperty(K.LINE_HEIGHT_KEY,this.userProperties.getByRef(K.LINE_HEIGHT_REF)?.toString()??null),await this.getProperty(K.PAGE_MARGINS_KEY)&&n.style.setProperty(K.PAGE_MARGINS_KEY,this.userProperties.getByRef(K.PAGE_MARGINS_REF)?.toString()??null)),await this.getProperty(K.APPEARANCE_KEY)?(n.style.setProperty(K.APPEARANCE_KEY,this.userProperties.getByRef(K.APPEARANCE_REF)?.toString()??null),this.userProperties.getByRef(K.APPEARANCE_REF)?.value===0?(hn(r,"data-viewer-theme","day"),hn(o,"data-viewer-theme","day")):this.userProperties.getByRef(K.APPEARANCE_REF)?.value===1?(hn(r,"data-viewer-theme","sepia"),hn(o,"data-viewer-theme","sepia")):this.userProperties.getByRef(K.APPEARANCE_REF)?.value===2&&(hn(r,"data-viewer-theme","night"),hn(o,"data-viewer-theme","night"))):(n.style.setProperty(K.APPEARANCE_KEY,this.userProperties.getByRef(K.APPEARANCE_REF)?.toString()??null),hn(r,"data-viewer-theme","day"),hn(o,"data-viewer-theme","day")),this.view?.delegate.publication.isReflowable){if(await this.getProperty(K.FONT_FAMILY_KEY))if(n.style.setProperty(K.FONT_FAMILY_KEY,this.userProperties.getByRef(K.FONT_FAMILY_REF)?.toString()??null),this.userProperties.getByRef(K.FONT_FAMILY_REF)?.value===0)hn(n,"data-viewer-font","publisher"),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-off");else if(this.userProperties.getByRef(K.FONT_FAMILY_REF)?.value===1)hn(n,"data-viewer-font","serif"),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-on");else if(this.userProperties.getByRef(K.FONT_FAMILY_REF)?.value===2)hn(n,"data-viewer-font","sans"),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-on");else{let a=this.userProperties.getByRef(K.FONT_FAMILY_REF);a&&hn(n,"data-viewer-font",a.toString()),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-on")}else n.style.setProperty(K.FONT_FAMILY_KEY,this.userProperties.getByRef(K.FONT_FAMILY_REF)?.toString()??null),hn(n,"data-viewer-font","publisher"),n.style.setProperty(K.FONT_OVERRIDE_KEY,"readium-font-off");await this.getProperty(K.SCROLL_KEY)?this.userProperties.getByRef(K.SCROLL_REF)?.value===!0?n.style.setProperty("--USER__scroll","readium-scroll-on"):n.style.setProperty("--USER__scroll","readium-scroll-off"):n.style.setProperty("--USER__scroll","readium-scroll-on"),n.style.setProperty("--USER__advancedSettings","readium-advanced-on"),this.isScrollMode().then(a=>{this.view?.setMode?.(a)})}}}}setIframe(t){this.iframe=t,this.view&&(this.view.iframe=t),this.settingsView&&wt.renderControls(this.settingsView)}static renderControls(t){Z(de(t,"ul"),"click",n=>{n.stopPropagation()})}onSettingsChange(t){this.settingsChangeCallback=t}onColumnSettingsChange(t){this.settingsColumnsChangeCallback=t}onViewChange(t){this.viewChangeCallback=t}async storeProperty(t){await this.updateUserSettings(),await this.saveProperty(t)}addAppearance(t){wt.appearanceValues.includes(t)||wt.appearanceValues.push(t)}initAddedAppearance(){this.applyProperties()}addFont(t){wt.fontFamilyValues.includes(t)||wt.fontFamilyValues.push(t)}initAddedFont(){this.applyProperties()}async updateUserSettings(){let t={fontFamily:wt.fontFamilyValues[await this.userProperties?.getByRef(K.FONT_FAMILY_REF)?.value],fontSize:this.userProperties?.getByRef(K.FONT_SIZE_REF)?.value,appearance:wt.appearanceValues[await this.userProperties?.getByRef(K.APPEARANCE_REF)?.value],textAlignment:wt.textAlignmentValues[await this.userProperties?.getByRef(K.TEXT_ALIGNMENT_REF)?.value],columnCount:wt.columnCountValues[await this.userProperties?.getByRef(K.COLUMN_COUNT_REF)?.value],wordSpacing:this.userProperties?.getByRef(K.WORD_SPACING_REF)?.value,letterSpacing:this.userProperties?.getByRef(K.LETTER_SPACING_REF)?.value,verticalScroll:this.userProperties?.getByRef(K.SCROLL_REF)?.value};this.api?.updateSettings&&this.api?.updateSettings(t).then(n=>{dr.default.log("api updated user settings",JSON.stringify(t))})}getUserSettings(){let t=new xi;return t.addSwitchable("readium-font-on","readium-font-off",this.fontOverride,K.FONT_OVERRIDE_REF,K.FONT_OVERRIDE_KEY),t.addEnumerable(this.columnCount,wt.columnCountValues,K.COLUMN_COUNT_REF,K.COLUMN_COUNT_KEY),t.addEnumerable(this.appearance,wt.appearanceValues,K.APPEARANCE_REF,K.APPEARANCE_KEY),t.addIncremental(this.pageMargins,.5,4,.25,"",K.PAGE_MARGINS_REF,K.PAGE_MARGINS_KEY),t.addEnumerable(this.textAlignment,wt.textAlignmentValues,K.TEXT_ALIGNMENT_REF,K.TEXT_ALIGNMENT_KEY),t.addEnumerable(this.fontFamily,wt.fontFamilyValues,K.FONT_FAMILY_REF,K.FONT_FAMILY_KEY),t.addIncremental(this.fontSize,100,300,25,"%",K.FONT_SIZE_REF,K.FONT_SIZE_KEY),t.addIncremental(this.lineHeight,1,2,.25,"em",K.LINE_HEIGHT_REF,K.LINE_HEIGHT_KEY),t.addIncremental(this.wordSpacing,0,1,.25,"rem",K.WORD_SPACING_REF,K.WORD_SPACING_KEY),t.addIncremental(this.letterSpacing,0,.5,.0625,"em",K.LETTER_SPACING_REF,K.LETTER_SPACING_KEY),t.addSwitchable("readium-scroll-on","readium-scroll-off",this.verticalScroll,K.SCROLL_REF,K.SCROLL_KEY),t}async saveProperty(t){let n=await this.store.get(this.USERSETTINGS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.name!==t.name),t.value!==void 0&&r.push(t),await this.store.set(this.USERSETTINGS,JSON.stringify(r))}else{let r=[];r.push(t),await this.store.set(this.USERSETTINGS,JSON.stringify(r))}return new Promise(r=>r(t))}async getProperty(t){let n=await this.store.get(this.USERSETTINGS);if(n){let r=JSON.parse(n);return r=r.filter(o=>o.name===t),r.length===0?null:r[0]}return null}async getPropertyAndFallback(t,n){return(await this.getProperty(n))?.value??this[t]}async resetUserSettings(){await this.store.remove(this.USERSETTINGS),await this.reset(),this.settingsChangeCallback()}get currentSettings(){return{appearance:wt.appearanceValues[this.userProperties?.getByRef(K.APPEARANCE_REF)?.value],fontFamily:wt.fontFamilyValues[this.userProperties?.getByRef(K.FONT_FAMILY_REF)?.value],textAlignment:wt.textAlignmentValues[this.userProperties?.getByRef(K.TEXT_ALIGNMENT_REF)?.value],columnCount:wt.columnCountValues[this.userProperties?.getByRef(K.COLUMN_COUNT_REF)?.value],verticalScroll:this.verticalScroll,fontSize:this.fontSize,wordSpacing:this.wordSpacing,letterSpacing:this.letterSpacing,pageMargins:this.pageMargins,lineHeight:this.lineHeight}}async applyUserSettings(t){if(t.appearance){let n;t.appearance==="day"||t.appearance==="readium-default-on"?n=wt.appearanceValues[0]:t.appearance==="sepia"||t.appearance==="readium-sepia-on"?n=wt.appearanceValues[1]:t.appearance==="night"||t.appearance==="readium-night-on"?n=wt.appearanceValues[2]:n=t.appearance,this.appearance=wt.appearanceValues.findIndex(o=>o===n);let r=this.userProperties?.getByRef(K.APPEARANCE_REF);r&&(r.value=this.appearance,await this.storeProperty(r))}if(t.fontSize){this.fontSize=t.fontSize;let n=this.userProperties?.getByRef(K.FONT_SIZE_REF);n&&(n.value=this.fontSize,await this.storeProperty(n))}if(t.fontFamily){this.fontFamily=wt.fontFamilyValues.findIndex(r=>r===t.fontFamily);let n=this.userProperties?.getByRef(K.FONT_FAMILY_REF);n&&(n.value=this.fontFamily,await this.storeProperty(n))}if(t.letterSpacing){this.letterSpacing=t.letterSpacing;let n=this.userProperties?.getByRef(K.LETTER_SPACING_REF);n&&(n.value=this.letterSpacing,await this.storeProperty(n))}if(t.wordSpacing){this.wordSpacing=t.wordSpacing;let n=this.userProperties?.getByRef(K.WORD_SPACING_REF);n&&(n.value=this.wordSpacing,await this.storeProperty(n))}if(t.columnCount){this.columnCount=wt.columnCountValues.findIndex(r=>r===t.columnCount);let n=this.userProperties?.getByRef(K.COLUMN_COUNT_REF);n&&(n.value=this.columnCount,await this.storeProperty(n)),this.settingsColumnsChangeCallback()}if(t.textAlignment){this.textAlignment=wt.textAlignmentValues.findIndex(r=>r===t.textAlignment);let n=this.userProperties?.getByRef(K.TEXT_ALIGNMENT_REF);n&&(n.value=this.textAlignment,await this.storeProperty(n))}if(t.lineHeight){this.lineHeight=t.lineHeight;let n=this.userProperties?.getByRef(K.LINE_HEIGHT_REF);n&&(n.value=this.lineHeight,await this.storeProperty(n))}if(t.pageMargins){this.pageMargins=t.pageMargins;let n=this.userProperties?.getByRef(K.PAGE_MARGINS_REF);n&&(n.value=this.pageMargins,await this.storeProperty(n))}if(t.verticalScroll!==void 0){let n=this.view?.getCurrentPosition();this.verticalScroll=wt.parseScrollSetting(t.verticalScroll);let r=this.userProperties?.getByRef(K.SCROLL_REF);r&&(r.value=this.verticalScroll,await this.saveProperty(r)),this.view?.setMode?.(this.verticalScroll),n&&this.view?.goToProgression(n),this.viewChangeCallback()}await this.applyProperties(),this.settingsChangeCallback()}static parseScrollSetting(t){switch(t){case!0:case"scroll":case"readium-scroll-on":return!0;case!1:case"paginated":case"readium-scroll-off":return!1;default:return!1}}async scroll(t){let n=this.view?.getCurrentPosition();this.verticalScroll=t;let r=this.userProperties?.getByRef(K.SCROLL_REF);r&&(r.value=this.verticalScroll,await this.saveProperty(r)),await this.applyProperties(),this.view?.setMode?.(this.verticalScroll),n&&this.view?.goToProgression(n),this.viewChangeCallback()}async increase(t){if(t==="fontSize"){(this.userProperties?.getByRef(K.FONT_SIZE_REF)).increment(),this.fontSize=this.userProperties?.getByRef(K.FONT_SIZE_REF)?.value;let n=this.userProperties?.getByRef(K.FONT_SIZE_REF);n&&await this.storeProperty(n)}else if(t==="letterSpacing"){(this.userProperties?.getByRef(K.LETTER_SPACING_REF)).increment(),this.letterSpacing=this.userProperties?.getByRef(K.LETTER_SPACING_REF)?.value;let n=this.userProperties?.getByRef(K.LETTER_SPACING_REF);n&&await this.storeProperty(n)}else if(t==="wordSpacing"){(this.userProperties?.getByRef(K.WORD_SPACING_REF)).increment(),this.wordSpacing=this.userProperties?.getByRef(K.WORD_SPACING_REF)?.value;let n=this.userProperties?.getByRef(K.WORD_SPACING_REF);n&&await this.storeProperty(n)}else if(t==="lineHeight"){(this.userProperties?.getByRef(K.LINE_HEIGHT_REF)).increment(),this.lineHeight=this.userProperties?.getByRef(K.LINE_HEIGHT_REF)?.value;let n=this.userProperties?.getByRef(K.LINE_HEIGHT_REF);n&&await this.storeProperty(n)}await this.applyProperties(),this.settingsChangeCallback()}async decrease(t){if(t==="fontSize"){(this.userProperties?.getByRef(K.FONT_SIZE_REF)).decrement(),this.fontSize=this.userProperties?.getByRef(K.FONT_SIZE_REF)?.value;let n=this.userProperties?.getByRef(K.FONT_SIZE_REF);n&&await this.storeProperty(n)}else if(t==="letterSpacing"){(this.userProperties?.getByRef(K.LETTER_SPACING_REF)).decrement(),this.letterSpacing=this.userProperties?.getByRef(K.LETTER_SPACING_REF)?.value;let n=this.userProperties?.getByRef(K.LETTER_SPACING_REF);n&&await this.storeProperty(n)}else if(t==="wordSpacing"){(this.userProperties?.getByRef(K.WORD_SPACING_REF)).decrement(),this.wordSpacing=this.userProperties?.getByRef(K.WORD_SPACING_REF)?.value;let n=this.userProperties?.getByRef(K.WORD_SPACING_REF);n&&await this.storeProperty(n)}else if(t==="lineHeight"){(this.userProperties?.getByRef(K.LINE_HEIGHT_REF)).decrement(),this.wordSpacing=this.userProperties?.getByRef(K.LINE_HEIGHT_REF)?.value;let n=this.userProperties?.getByRef(K.LINE_HEIGHT_REF);n&&await this.storeProperty(n)}await this.applyProperties(),this.settingsChangeCallback()}},jo=wt;jo.appearanceValues=["readium-default-on","readium-sepia-on","readium-night-on"],jo.fontFamilyValues=["Original","serif","sans-serif"],jo.textAlignmentValues=["auto","justify","start"],jo.columnCountValues=["auto","1","2"];A();A();var fr;(function(n){n[n.Bookmark=0]="Bookmark",n[n.Annotation=1]="Annotation"})(fr||(fr={}));A();A();A();A();A();A();var t4={stringify(i){let t=i.nSigBytes,n=i.words,r=[];for(let o=0;o<t;o++){let a=n[o>>>2]>>>24-o%4*8&255;r.push((a>>>4).toString(16)),r.push((a&15).toString(16))}return r.join("")},parse(i){let t=i.length;if(t%2!=0)throw new Error("Hex string count must be even");if(!/^[a-fA-F0-9]+$/.test(i))throw new Error(`Invalid Hex string: ${i}`);let n=[];for(let r=0;r<t;r+=2)n[r>>>3]|=parseInt(i.substr(r,2),16)<<24-r%8*4;return new wn(n,t/2)}};A();A();var n4=typeof navigator!="undefined"&&navigator.userAgent?navigator.userAgent.toLowerCase():"",Do=(()=>{let i=parseInt((/msie (\d+)/.exec(n4)||[])[1],10);return isNaN(i)?(i=parseInt((/trident\/.*; rv:(\d+)/.exec(n4)||[])[1],10),isNaN(i)?!1:i):i})();function r4(i,t){return Do===!1?!1:t?i==="<"?Do<t:i==="<="?Do<=t:i===">"?Do>t:i===">="?Do>=t:Do===t:!0}function Yk(){if(typeof window!="undefined"){let i=window.crypto||window.msCrypto;if(!i){if(r4("<",11))return console.warn("IE <= 10 uses insecure random generator. Please consider to use IE11 or another modern browser"),function(){return Math.floor(Math.random()*512)%256};throw new Error("Crypto module not found")}return function(){return i.getRandomValues(new Uint32Array(1))[0]}}else{if(typeof globalThis!="undefined"&&globalThis.crypto)return function(){return globalThis.crypto.randomBytes(4).readInt32LE()};if(typeof Dy=="function")return function(){return __non_webpack_require__("crypto").randomBytes(4).readInt32LE()}}throw new Error("Unable to find crypto module")}var i4=Yk();var wn=class{constructor(t,n){if(Array.isArray(t)||!t){this._words=Array.isArray(t)?t:[],this._nSignificantBytes=typeof n=="number"?n:this._words.length*4;return}else if(t instanceof wn){this._words=t.words.slice(),this._nSignificantBytes=t.nSigBytes;return}let r;try{t instanceof ArrayBuffer?r=new Uint8Array(t):(t instanceof Uint8Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}catch(l){throw new Error("Invalid argument")}if(!r)throw new Error("Invalid argument");let o=r.byteLength,a=[];for(let l=0;l<o;l++)a[l>>>2]|=r[l]<<24-l%4*8;this._words=a,this._nSignificantBytes=o}get nSigBytes(){return this._nSignificantBytes}set nSigBytes(t){this._nSignificantBytes=t}get words(){return this._words}toString(t){return t?t.stringify(this):t4.stringify(this)}toUint8Array(){let t=this._words,n=this._nSignificantBytes,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t[o>>>2]>>>24-o%4*8&255;return r}concat(t){let n=t.words.slice(),r=t.nSigBytes;if(this.clamp(),this._nSignificantBytes%4)for(let o=0;o<r;o++){let a=n[o>>>2]>>>24-o%4*8&255;this._words[this._nSignificantBytes+o>>>2]|=a<<24-(this._nSignificantBytes+o)%4*8}else for(let o=0;o<r;o+=4)this._words[this._nSignificantBytes+o>>>2]=n[o>>>2];return this._nSignificantBytes+=r,this}clamp(){let t=this._nSignificantBytes;this._words[t>>>2]&=4294967295<<32-t%4*8,this._words.length=Math.ceil(t/4)}clone(){return new wn(this._words.slice(),this._nSignificantBytes)}static random(t){let n=[];for(let r=0;r<t;r+=4)n.push(i4());return new wn(n,t)}};A();A();var e0={stringify(i){let t=i.nSigBytes,n=i.words,r=[];for(let o=0;o<t;o++){let a=n[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse(i){let t=i.length,n=[];for(let r=0;r<t;r++)n[r>>>2]|=(i.charCodeAt(r)&255)<<24-r%4*8;return new wn(n,t)}};var o4={stringify(i){try{return decodeURIComponent(escape(e0.stringify(i)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse(i){return e0.parse(unescape(encodeURIComponent(i)))}};var t0=class{constructor(t){this._minBufferSize=0,this._blockSize=0,this._props=t,this._data=t&&typeof t.data!="undefined"?t.data.clone():new wn,this._nBytes=t&&typeof t.nBytes=="number"?t.nBytes:0}get blockSize(){return this._blockSize}reset(t,n){this._data=typeof t!="undefined"?t.clone():new wn,this._nBytes=typeof n=="number"?n:0}_append(t){let n=typeof t=="string"?o4.parse(t):t;this._data.concat(n),this._nBytes+=n.nSigBytes}_process(t){let n,r=this._data.words,o=this._data.nSigBytes,a=this._blockSize,l=this._blockSize*4,u=o/l;t?u=Math.ceil(u):u=Math.max((u|0)-this._minBufferSize,0);let d=u*a,f=Math.min(d*4,o);if(d){for(let m=0;m<d;m+=a)this._doProcessBlock(r,m);n=r.splice(0,d),this._data.nSigBytes-=f}return new wn(n,f)}_doProcessBlock(t,n){throw new Error("Not implemented")}};var n0=class extends t0{constructor(t){super(t);this._blockSize=512/32,this._props=t,t&&typeof t.blockSize=="number"&&(this._blockSize=t.blockSize),this.reset(t?t.data:void 0,t?t.nBytes:void 0)}get blockSize(){return this._blockSize}reset(t,n){super.reset.call(this,t,n),this._doReset()}update(t){return this._append(t),this._process(),this}finalize(t){return t&&this._append(t),this._doFinalize()}_doReset(){throw new Error("Not implemented")}_doFinalize(){throw new Error("Not implemented")}};var r0=[],s4=[];function Zk(i){let t=Math.sqrt(i);for(let n=2;n<=t;n++)if(!(i%n))return!1;return!0}function a4(i){return(i-(i|0))*4294967296|0}(function(){let t=2,n=0;for(;n<64;)Zk(t)&&(n<8&&(r0[n]=a4(Math.pow(t,1/2))),s4[n]=a4(Math.pow(t,1/3)),n++),t++})();var Fo=[],Cr=class extends n0{constructor(t){super(t);this._hash=new wn(r0.slice(0)),this._props=t,t&&typeof t.hash!="undefined"&&(this._hash=t.hash.clone())}_doReset(){this._hash=new wn(r0.slice(0))}_doProcessBlock(t,n){let r=this._hash.words,o=r[0],a=r[1],l=r[2],u=r[3],d=r[4],f=r[5],m=r[6],p=r[7];for(let E=0;E<64;E++){if(E<16)Fo[E]=t[n+E]|0;else{let T=Fo[E-15],C=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,_=Fo[E-2],I=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;Fo[E]=C+Fo[E-7]+I+Fo[E-16]}let S=d&f^~d&m,v=o&a^o&l^a&l,y=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),b=(d<<26|d>>>6)^(d<<21|d>>>11)^(d<<7|d>>>25),w=p+b+S+s4[E]+Fo[E],O=y+v;p=m,m=f,f=d,d=u+w|0,u=l,l=a,a=o,o=w+O|0}r[0]=r[0]+o|0,r[1]=r[1]+a|0,r[2]=r[2]+l|0,r[3]=r[3]+u|0,r[4]=r[4]+d|0,r[5]=r[5]+f|0,r[6]=r[6]+m|0,r[7]=r[7]+p|0}_doFinalize(){let t=this._data.words,n=this._nBytes*8,r=this._data.nSigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,this._data.nSigBytes=t.length*4,this._process(),this._hash}clone(){let t={hash:this._hash,blockSize:this._blockSize,data:this._data,nBytes:this._nBytes};return new Cr(t)}static hash(t,n){return new Cr(n).finalize(t)}};var Ka=Je(to());A();var qe;(function(u){u[u.Annotation=0]="Annotation",u[u.Search=1]="Search",u[u.ReadAloud=2]="ReadAloud",u[u.PageBreak=3]="PageBreak",u[u.Definition=4]="Definition",u[u.LineFocus=5]="LineFocus",u[u.Comment=6]="Comment"})(qe||(qe={}));A();var En=Je(Dt());function yd(i,t){let n=i.getClientRects();return i0(n,t)}function i0(i,t){let n=1,r=[];for(let d of i)r.push({bottom:d.bottom,height:d.height,left:d.left,right:d.right,top:d.top,width:d.width});let o=c4(r,n,t),a=r8(o,n),l=u4(a),u=2*2;for(let d=l.length-1;d>=0;d--){let f=l[d];if(!(f.width*f.height>u))if(l.length>1)En.default.log("CLIENT RECT: remove small"),l.splice(d,1);else{En.default.log("CLIENT RECT: remove small, but keep otherwise empty!");break}}return d4(l),En.default.log(`CLIENT RECT: reduced ${r.length} --> ${l.length}`),l}function Ar(i,t,n){return Math.abs(i-t)<=n}function Xk(i,t){let n=Math.max(i.left,t.left),r=Math.min(i.right,t.right),o=Math.max(i.top,t.top),a=Math.min(i.bottom,t.bottom);return{bottom:a,height:Math.max(0,a-o),left:n,right:r,top:o,width:Math.max(0,r-n)}}function l4(i,t){let n=Xk(t,i);if(n.height===0||n.width===0)return[i];let r=[];{let o={bottom:i.bottom,height:0,left:i.left,right:n.left,top:i.top,width:0};o.width=o.right-o.left,o.height=o.bottom-o.top,o.height!==0&&o.width!==0&&r.push(o)}{let o={bottom:n.top,height:0,left:n.left,right:n.right,top:i.top,width:0};o.width=o.right-o.left,o.height=o.bottom-o.top,o.height!==0&&o.width!==0&&r.push(o)}{let o={bottom:i.bottom,height:0,left:n.left,right:n.right,top:n.bottom,width:0};o.width=o.right-o.left,o.height=o.bottom-o.top,o.height!==0&&o.width!==0&&r.push(o)}{let o={bottom:i.bottom,height:0,left:n.right,right:i.right,top:i.top,width:0};o.width=o.right-o.left,o.height=o.bottom-o.top,o.height!==0&&o.width!==0&&r.push(o)}return r}function bd(i,t,n,r){return(i.left<t||Ar(i.left,t,r))&&(i.right>t||Ar(i.right,t,r))&&(i.top<n||Ar(i.top,n,r))&&(i.bottom>n||Ar(i.bottom,n,r))}function Qk(i,t,n){return bd(i,t.left,t.top,n)&&bd(i,t.right,t.top,n)&&bd(i,t.left,t.bottom,n)&&bd(i,t.right,t.bottom,n)}function e8(i,t){let n=Math.min(i.left,t.left),r=Math.max(i.right,t.right),o=Math.min(i.top,t.top),a=Math.max(i.bottom,t.bottom);return{bottom:a,height:a-o,left:n,right:r,top:o,width:r-n}}function o0(i,t,n){return(i.left<t.right||n>=0&&Ar(i.left,t.right,n))&&(t.left<i.right||n>=0&&Ar(t.left,i.right,n))&&(i.top<t.bottom||n>=0&&Ar(i.top,t.bottom,n))&&(t.top<i.bottom||n>=0&&Ar(t.top,i.bottom,n))}function c4(i,t,n){for(let r=0;r<i.length;r++)for(let o=r+1;o<i.length;o++){let a=i[r],l=i[o];if(a===l){En.default.log("mergeTouchingRects rect1 === rect2 ??!");continue}let u=Ar(a.top,l.top,t)&&Ar(a.bottom,l.bottom,t),d=Ar(a.left,l.left,t)&&Ar(a.right,l.right,t);if((d&&!n||u&&!d)&&o0(a,l,t)){En.default.log(`CLIENT RECT: merging two into one, VERTICAL: ${u} HORIZONTAL: ${d} (${n})`);let E=i.filter(v=>v!==a&&v!==l),S=e8(a,l);return E.push(S),c4(E,t,n)}}return i}function u4(i){for(let t=0;t<i.length;t++)for(let n=t+1;n<i.length;n++){let r=i[t],o=i[n];if(r===o){En.default.log("replaceOverlappingRects rect1 === rect2 ??!");continue}if(o0(r,o,-1)){let a=[],l,u,d=l4(r,o);if(d.length===1)a=d,l=r,u=o;else{let p=l4(o,r);d.length<p.length?(a=d,l=r,u=o):(a=p,l=o,u=r)}let f=[];f.push(u),Array.prototype.push.apply(f,a),d4(f),En.default.log(`CLIENT RECT: overlap, cut one rect into ${a.length}`);let m=i.filter(p=>p!==l);return Array.prototype.push.apply(m,a),u4(m)}}return i}function t8(i,t){return Math.max(0,Math.min(i.right,t.right)-Math.max(i.left,t.left))}function n8(i,t){return Math.max(0,Math.min(i.bottom,t.bottom)-Math.max(i.top,t.top))}function r8(i,t){let n=new Set(i);for(let r of i){if(!(r.width>1&&r.height>1)){En.default.log("CLIENT RECT: remove tiny"),n.delete(r);continue}for(let a of i)if(r!==a&&!!n.has(a)&&Qk(a,r,t)){En.default.log("CLIENT RECT: remove contained"),n.delete(r);break}}return Array.from(n)}function d4(i){let t=[];for(let n of i)for(let r of i){if(n===r)continue;let o=t.indexOf(n)>=0,a=t.indexOf(r)>=0;if((!o||!a)&&o0(n,r,-1)){o||t.push(n),a||t.push(r),En.default.log("CLIENT RECT: overlap ---"),En.default.log(`#1 TOP:${n.top} BOTTOM:${n.bottom} LEFT:${n.left} RIGHT:${n.right} WIDTH:${n.width} HEIGHT:${n.height}`),En.default.log(`#2 TOP:${r.top} BOTTOM:${r.bottom} LEFT:${r.left} RIGHT:${r.right} WIDTH:${r.width} HEIGHT:${r.height}`);let l=t8(n,r);En.default.log(`xOverlap: ${l}`);let u=n8(n,r);En.default.log(`yOverlap: ${u}`)}}t.length&&En.default.log(`CLIENT RECT: overlaps ${t.length}`)}A();var Ct=Je(Dt());function oi(i,t){let n=i?i.getSelection():null;if(!n)return;if(n.isCollapsed){Ct.default.log("^^^ SELECTION COLLAPSED.");return}let r=n.toString(),o=r.trim().replace(/\n/g," ").replace(/\s\s+/g," ");if(o.length===0){Ct.default.log("^^^ SELECTION TEXT EMPTY.");return}if(!n.anchorNode||!n.focusNode)return;let a=n.rangeCount===1?n.getRangeAt(0):f4(n.anchorNode,n.anchorOffset,n.focusNode,n.focusOffset);if(!a||a.collapsed){Ct.default.log("$$$$$$$$$$$$$$$$$ CANNOT GET NON-COLLAPSED SELECTION RANGE?!");return}let l=o8(a);l.startContainer!==a.startContainer&&(Ct.default.log(">>>>>>>>>>>>>>>>>>>>>>> SELECTION RANGE NORMALIZE diff: startContainer"),Ct.default.log(l.startContainer),Ct.default.log(a.startContainer)),l.startOffset!==a.startOffset&&(Ct.default.log(">>>>>>>>>>>>>>>>>>>>>>> SELECTION RANGE NORMALIZE diff: startOffset"),Ct.default.log(`${l.startOffset} !== ${a.startOffset}`)),l.endContainer!==a.endContainer&&(Ct.default.log(">>>>>>>>>>>>>>>>>>>>>>> SELECTION RANGE NORMALIZE diff: endContainer"),Ct.default.log(l.endContainer),Ct.default.log(a.endContainer)),l.endOffset!==a.endOffset&&(Ct.default.log(">>>>>>>>>>>>>>>>>>>>>>> SELECTION RANGE NORMALIZE diff: endOffset"),Ct.default.log(`${l.endOffset} !== ${a.endOffset}`));let u=Pi(l,t);if(!u){Ct.default.log("^^^ SELECTION RANGE INFO FAIL?!");return}return{rangeInfo:u,cleanText:o,rawText:r,range:l}}function f4(i,t,n,r){try{let o=new Range;if(o.setStart(i,t),o.setEnd(n,r),!o.collapsed)return Ct.default.log(">>> createOrderedRange RANGE OK"),o;Ct.default.log(">>> createOrderedRange COLLAPSED ... RANGE REVERSE?");let a=new Range;if(a.setStart(n,r),a.setEnd(i,t),!a.collapsed)return Ct.default.log(">>> createOrderedRange RANGE REVERSE OK."),o;Ct.default.log(">>> createOrderedRange RANGE REVERSE ALSO COLLAPSED?!");return}catch(o){console.warn(o.message);return}}function Pi(i,t){let n=i.startContainer.nodeType===Node.ELEMENT_NODE,r=n?i.startContainer:i.startContainer.parentNode&&i.startContainer.parentNode.nodeType===Node.ELEMENT_NODE?i.startContainer.parentNode:void 0;if(!r)return;let o=n?-1:Array.from(r.childNodes).indexOf(i.startContainer);if(o<-1)return;let a=t(r),l=i.endContainer.nodeType===Node.ELEMENT_NODE,u=l?i.endContainer:i.endContainer.parentNode&&i.endContainer.parentNode.nodeType===Node.ELEMENT_NODE?i.endContainer.parentNode:void 0;if(!u)return;let d=l?-1:Array.from(u.childNodes).indexOf(i.endContainer);if(d<-1)return;let f=t(u),m=i8(i.startContainer,i.endContainer);if(!m){Ct.default.log("^^^ NO RANGE COMMON ANCESTOR?!");return}if(i.commonAncestorContainer){let p=i.commonAncestorContainer.nodeType===Node.ELEMENT_NODE?i.commonAncestorContainer:i.commonAncestorContainer.parentNode;p&&p.nodeType===Node.ELEMENT_NODE&&m!==p&&(Ct.default.log(">>>>>> COMMON ANCESTOR CONTAINER DIFF??!"),Ct.default.log(t(m)),Ct.default.log(t(p)))}if(f&&a)return{endContainerChildTextNodeIndex:d,endContainerElementCssSelector:f,endOffset:i.endOffset,startContainerChildTextNodeIndex:o,startContainerElementCssSelector:a,startOffset:i.startOffset}}function vd(i,t){let n=i.querySelector(t.startContainerElementCssSelector);if(!n){Ct.default.log("^^^ convertRangeInfo NO START ELEMENT CSS SELECTOR?!");return}let r=n;if(t.startContainerChildTextNodeIndex>=0){if(t.startContainerChildTextNodeIndex>=n.childNodes.length){Ct.default.log("^^^ convertRangeInfo rangeInfo.startContainerChildTextNodeIndex >= startElement.childNodes.length?!");return}if(r=n.childNodes[t.startContainerChildTextNodeIndex],r.nodeType!==Node.TEXT_NODE){Ct.default.log("^^^ convertRangeInfo startContainer.nodeType !== Node.TEXT_NODE?!");return}}let o=i.querySelector(t.endContainerElementCssSelector);if(!o){Ct.default.log("^^^ convertRangeInfo NO END ELEMENT CSS SELECTOR?!");return}let a=o;if(t.endContainerChildTextNodeIndex>=0){if(t.endContainerChildTextNodeIndex>=o.childNodes.length){Ct.default.log("^^^ convertRangeInfo rangeInfo.endContainerChildTextNodeIndex >= endElement.childNodes.length?!");return}if(a=o.childNodes[t.endContainerChildTextNodeIndex],a.nodeType!==Node.TEXT_NODE){Ct.default.log("^^^ convertRangeInfo endContainer.nodeType !== Node.TEXT_NODE?!");return}}return f4(r,t.startOffset,a,t.endOffset)}function i8(i,t){if(i.nodeType===Node.ELEMENT_NODE&&i===t||i.nodeType===Node.ELEMENT_NODE&&i.contains(t))return i;if(t.nodeType===Node.ELEMENT_NODE&&t.contains(i))return t;let n=[],r=i.parentNode;for(;r&&r.nodeType===Node.ELEMENT_NODE;)n.push(r),r=r.parentNode;let o=[];for(r=t.parentNode;r&&r.nodeType===Node.ELEMENT_NODE;)o.push(r),r=r.parentNode;let a=n.find(l=>o.indexOf(l)>=0);return a||(a=o.find(l=>n.indexOf(l)>=0)),a}function o8(i){let t=i.cloneRange(),n=t.startContainer,r=t.startOffset,o=t.endContainer,a=t.endOffset;n.childNodes.length&&r>0&&(n=p4(n.childNodes[r-1]),r=n.length||0),a<o.childNodes.length&&(o=h4(o.childNodes[a]),a=0);let l=h4(n),u=p4(o);function d(f){if(f.childNodes.length)return!1;let m=f.length||0;return f===n&&r===m?!1:!(f===o&&a===0)}for(;l&&!d(l)&&l!==u;)l=s8(l);for(l===n?t.setStart(n,r):l!==null&&(l.nodeType===3?t.setStart(l,0):t.setStartBefore(l));u&&!d(u)&&u!==l;)u=a8(u);return u===o?t.setEnd(o,a):u!==null&&(u.nodeType===3?t.setEnd(u,u.length):t.setEndAfter(u)),t}function s8(i){if(i.firstChild)return i.firstChild;let t=i;for(;!t.nextSibling;)if(t=t.parentNode,!t)return null;return t.nextSibling}function a8(i){if(i.lastChild)return i.lastChild;let t=i;for(;!t.previousSibling;)if(t=t.parentNode,!t)return null;return t.previousSibling}function h4(i){for(;i.firstChild;)i=i.firstChild;return i}function p4(i){for(;i.lastChild;)i=i.lastChild;return i}A();var a0=Je(m4()),no;(function(r){r[r.All=0]="All",r[r.Two=1]="Two",r[r.One=2]="One"})(no||(no={}));var Ii,l0;function ln(i,t,n){if(i.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(i.tagName.toLowerCase()==="html")return i.tagName.toLowerCase();let r={className:a=>!0,idName:a=>!0,optimizedMinLength:2,root:t.body,seedMinLength:1,tagName:a=>!0,threshold:1e3};Ii=Fe(Fe({},r),n),l0=p8(Ii.root,r);let o=c0(i,0,()=>c0(i,1,()=>c0(i,2)));if(o){let a=E4(S4(o,i));return a.length>0&&(o=a[0]),wd(o)}else throw new Error("Selector was not found.")}function p8(i,t){return i.nodeType===Node.DOCUMENT_NODE?i:i===t.root?i.ownerDocument:i}function c0(i,t,n){let r=null,o=[],a=i,l=0;for(;a&&a!==Ii.root.parentElement;){let u=f0(g8(a))||f0(...m8(a))||f0(y8(a))||[b8()],d=v8(a);if(t===0)d&&(u=u.concat(u.filter(d0).map(f=>u0(f,d))));else if(t===1)u=u.slice(0,1),d&&(u=u.concat(u.filter(d0).map(f=>u0(f,d))));else if(t===2){let[f]=u=u.slice(0,1);d&&d0(f)&&(u=[u0(f,d)])}for(let f of u)f.level=l;if(o.push(u),o.length>=Ii.seedMinLength&&(r=y4(o,n),r))break;a=a.parentElement,l++}return r||(r=y4(o,n)),r}function y4(i,t){let n=E4(w4(i));if(n.length>Ii.threshold)return t?t():null;for(let r of n)if(v4(r))return r;return null}function wd(i){let t=i[0],n=t.name;for(let r=1;r<i.length;r++){let o=i[r].level||0;t.level===o-1?n=`${i[r].name} > ${n}`:n=`${i[r].name} ${n}`,t=i[r]}return n}function b4(i){return i.map(t=>t.penalty).reduce((t,n)=>t+n,0)}function v4(i){switch(l0.querySelectorAll(wd(i)).length){case 0:throw new Error(`Can't select any node with this selector: ${wd(i)}`);case 1:return!0;default:return!1}}function g8(i){let t=i.getAttribute("id");return t&&Ii.idName(t)?{name:"#"+(0,a0.default)(t,{isIdentifier:!0}),penalty:0}:null}function m8(i){return Array.from(i.classList).filter(Ii.className).map(n=>({name:"."+(0,a0.default)(n,{isIdentifier:!0}),penalty:1}))}function y8(i){let t=i.tagName.toLowerCase();return Ii.tagName(t)?{name:t,penalty:2}:null}function b8(){return{name:"*",penalty:3}}function v8(i){let t=i.parentNode;if(!t)return null;let n=t.firstChild;if(!n)return null;let r=0;for(;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==i);)n=n.nextSibling;return r}function u0(i,t){return{name:i.name+`:nth-child(${t})`,penalty:i.penalty+1}}function d0(i){return i.name!=="html"&&!i.name.startsWith("#")}function f0(...i){let t=i.filter(w8);return t.length>0?t:null}function w8(i){return i!=null}function*w4(i,t=[]){if(i.length>0)for(let n of i[0])yield*w4(i.slice(1,i.length),t.concat(n));else yield t}function E4(i){return Array.from(i).sort((t,n)=>b4(t)-b4(n))}function*S4(i,t){if(i.length>2&&i.length>Ii.optimizedMinLength)for(let n=1;n<i.length-1;n++){let r=[...i];r.splice(n,1),v4(r)&&E8(r,t)&&(yield r,yield*S4(r,t))}}function E8(i,t){return l0.querySelector(wd(i))===t}A();var Le;(function(a){a[a.Highlight=0]="Highlight",a[a.Underline=1]="Underline",a[a.Bookmark=2]="Bookmark",a[a.Custom=3]="Custom",a[a.Comment=4]="Comment"})(Le||(Le={}));A();var h0=24,S8=24,O4="0 0 24 24",Gn=(i,t,n,r="icon")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${h0}" height="${S8}" viewBox="${O4}" preserveAspectRatio="xMidYMid meet" role="img" class="${r}" aria-labelledBy="${i}">
67
67
  <title id="${i}">${t}</title>
68
68
  ${n}
69
69
  </svg>`,O8=(i,t,n,r,o="icon")=>`<svg xmlns="http://www.w3.org/2000/svg" width="${h0}" height="${h0}" viewBox="${r}" preserveAspectRatio="xMidYMid meet" role="img" class="${o}" aria-labelledBy="${i}">
@@ -72,14 +72,14 @@ function print() { __p += __j.call(arguments, '') }
72
72
  </svg>`,Us=(i,t,n,r="icon",o,a)=>`<svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${o}" viewBox="${O4}" style="fill:${a}" preserveAspectRatio="xMidYMid meet" role="img" class="${r}" aria-labelledBy="${i}">
73
73
  <title id="${i}">${t}</title>
74
74
  ${n}
75
- </svg>`,Ur={error:Gn("error-icon","Warning",'<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>'),home:'<path d="M12 5.69l5 4.5V18h-2v-6H9v6H7v-7.81l5-4.5M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z"/>',expand:Gn("expand-icon","Enter fullscreen",'<path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/>',"icon active-icon"),loading:O8("loading-icon","Loading",'<path fill="#BBBBBB" d="M145,241.6c-53.3,0-96.6-43.2-96.6-96.6c0-53.3,43.2-96.6,96.6-96.6c53.3,0,96.6,43.2,96.6,96.6 c0,26.7-10.8,50.9-28.3,68.3l7.6,7.6c19.4-19.4,31.5-46.3,31.5-75.9c0-59.3-48-107.3-107.3-107.3S37.7,85.7,37.7,145 c0,59.3,48,107.3,107.3,107.3V241.6z"/>',"0 0 290 290"),next:Gn("next-icon","Next Chapter",'<path d="M6.49 20.13l1.77 1.77 9.9-9.9-9.9-9.9-1.77 1.77L14.62 12l-8.13 8.13z"/>'),previous:Gn("previous-icon","Previous Chapter",'<path d="M17.51 3.87L15.73 2.1 5.84 12l9.9 9.9 1.77-1.77L9.38 12l8.13-8.13z"/>'),settings:Gn("settings-icon","Settings",'<path d="M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/>',"icon open"),toc:Gn("toc-icon","Table of Contents",'<path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/>',"icon open"),bookmarks:Gn("toc-icon","Bookmarks",'<path d="M4,6H2v16h16v-2H4V6z"/><path d="M22,2H6v16h16V2z M20,12l-2.5-1.5L15,12V4h5V12z"/>',"icon open"),bookmark:Gn("toc-icon","Bookmark",'<path d="M19,3H5v18l7-3l7,3V3z"/>',"icon open"),delete:Gn("delete-icon","Delete",'<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/>',"icon open"),close:Gn("close-icon","Close",'<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>',"icon open"),text:Gn("text-icon","Text",'<path d="M5 4v3h5.5v12h3V7H19V4z"/>',"icon open"),speak:Gn("speak-icon","Speak",'<circle cx="9" cy="9" r="4"/><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"/><path d="M0 0h24v24H0z" fill="none"/>',"icon open"),note:Gn("note-icon","Note",'<polygon points="17.71 24.66 22.3 20.07 17.71 20.07 17.71 24.66" fill="none"/><path d="M22.42.07H5.58A3.28,3.28,0,0,0,2.29,3.35V24.79a3.28,3.28,0,0,0,3.29,3.28H16.71a1,1,0,0,0,.71-.29l8-8a1,1,0,0,0,.29-.71V3.35A3.28,3.28,0,0,0,22.42.07Zm-8.17,15h-7v-2h7Zm-7-6v-2h13v2ZM16.5,25.86v-6a1,1,0,0,1,1-1h6Z" />',"icon open"),highlight:Gn("highlight-icon","Highlight",'<path d="M27.71,7.78,21.12,1.19a1,1,0,0,0-1.38,0L4.32,15A1,1,0,0,0,4,15.7a1,1,0,0,0,.3.73c1.22,1.22,1.2,2.37,0,3.62a1,1,0,0,0,0,1.41l3.2,3.2a1,1,0,0,0,1.41,0c1.28-1.28,2.36-1.29,3.62,0a1,1,0,0,0,1.45,0L27.74,9.16A1,1,0,0,0,27.71,7.78Z" /><path d="M3.09,22.59l-2.8,2.8a1,1,0,0,0-.21,1.09A1,1,0,0,0,1,27.1H4.6a1,1,0,0,0,.71-.29l1-1Z" />',"icon open")};var p0=Je(Ed());var Mn=Je(Dt()),Me;(function(d){d.R2_ID_HIGHLIGHTS_CONTAINER="R2_ID_HIGHLIGHTS_CONTAINER",d.R2_ID_BOOKMAKRS_CONTAINER="R2_ID_BOOKMAKRS_CONTAINER",d.R2_ID_READALOUD_CONTAINER="R2_ID_READALOUD_CONTAINER",d.R2_ID_PAGEBREAK_CONTAINER="R2_ID_PAGEBREAK_CONTAINER",d.R2_ID_SEARCH_CONTAINER="R2_ID_SEARCH_CONTAINER",d.R2_ID_DEFINITIONS_CONTAINER="R2_ID_DEFINITIONS_CONTAINER",d.R2_ID_LINEFOCUS_CONTAINER="R2_ID_LINEFOCUS_CONTAINER",d.R2_ID_GUTTER_RIGHT_CONTAINER="R2_ID_GUTTER_RIGHT_CONTAINER"})(Me||(Me={}));var x4="R2_CLASS_HIGHLIGHT_CONTAINER",Ya="R2_CLASS_HIGHLIGHT_BOUNDING_AREA",pn="R2_CLASS_HIGHLIGHT_AREA",Za="R2_CLASS_HIGHLIGHT_ICON",si=.5,_4=.75,$o={blue:100,green:50,red:230},zt=[],x8="data-highlighted",_8="data-timestamp",zs={ELEMENT_NODE:1,TEXT_NODE:3},hr=[Me.R2_ID_HIGHLIGHTS_CONTAINER,Me.R2_ID_PAGEBREAK_CONTAINER,Me.R2_ID_SEARCH_CONTAINER,Me.R2_ID_READALOUD_CONTAINER,Me.R2_ID_BOOKMAKRS_CONTAINER,Me.R2_ID_DEFINITIONS_CONTAINER,Me.R2_ID_LINEFOCUS_CONTAINER,Me.R2_ID_GUTTER_RIGHT_CONTAINER,x4,pn,Ya],g0=-1,m0=-1,De=class{constructor(t,n,r,o,a,l){this.lastSelectedHighlight=void 0;this.activeAnnotationMarkerId=void 0;this.showTool=(0,Ka.debounce)(t=>{this.isAndroid()||this.snapSelectionToWord(t),this.toolboxShow()},navigator.userAgent.toLowerCase().indexOf("firefox")>-1?200:100);this.isSelectionMenuOpen=!1;this.selectionMenuOpened=(0,Ka.debounce)(()=>{this.isSelectionMenuOpen||(this.isSelectionMenuOpen=!0,this.api?.selectionMenuOpen&&this.api?.selectionMenuOpen(),this.delegate.emit("toolbox.opened","opened"))},100);this.selectionMenuClosed=(0,Ka.debounce)(()=>{this.isSelectionMenuOpen&&(this.isSelectionMenuOpen=!1,this.api?.selectionMenuClose&&this.api?.selectionMenuClose(),this.delegate.emit("toolbox.closed","closed"))},100);this.selection=(0,Ka.debounce)((t,n)=>{this.api?.selection&&this.api?.selection(t,n)},100);this.getScrollingElement=t=>t?.scrollingElement?t?.scrollingElement:t?.body?t?.body:document.createElement("body");this.delegate=t,this.layerSettings=n,this.properties=r,this.api=l,this.hasEventListener=o,this.options=this.defaults(a,{color:"#fce300",highlightedClass:"highlighted",contextClass:"highlighter-context",onBeforeHighlight:function(){return!0},onAfterHighlight:function(){}}),this.delegate.highlighter=this}static async create(t){let n=new this(t.delegate,t.layerSettings,t,!1,{},t.api);return new Promise(r=>r(n))}async initialize(){let t=this.delegate.iframes[0].contentDocument;t&&this.dom(t.body).addClass(this.options.contextClass),this.bindEvents(this.delegate.iframes[0].contentDocument?.body,this,this.hasEventListener),this.initializeToolbox(),g0=-1,m0=-1;let n=this;async function r(){n.lastSelectedHighlight===void 0||(n.lastSelectedHighlight=void 0)}setTimeout(async()=>{let o=this.delegate.iframes[0].contentDocument;o&&await o.body?.addEventListener("click",r)},100)}haveSameColor(t,n){return this.dom(t).color()===this.dom(n).color()}defaults(t,n){t=t||{};for(let r in n)n.hasOwnProperty(r)&&t[r]===void 0&&(t[r]=n[r]);return t}unique(t){return t.filter(function(n,r,o){return o.indexOf(n)===r})}refineRangeBoundaries(t){let n=t.startContainer,r=t.endContainer,o=t.commonAncestorContainer,a=!0;if(t.endOffset===0){for(;!r.previousSibling&&r.parentNode!==o;)r=r.parentNode;r=r.previousSibling}else r.nodeType===zs.TEXT_NODE?t.endOffset<r.nodeValue.length&&r.splitText(t.endOffset):t.endOffset>0&&(r=r.childNodes.item(t.endOffset-1));return n.nodeType===zs.TEXT_NODE?t.startOffset===n.nodeValue.length?a=!1:t.startOffset>0&&(n=n.splitText(t.startOffset),r===n.previousSibling&&(r=n)):t.startOffset<n.childNodes.length?n=n.childNodes.item(t.startOffset):n=n.nextSibling,{startContainer:n,endContainer:r,goDeeper:a}}sortByDepth(t,n){let r=this;t.sort(function(o,a){return r.dom(n?a:o).parents().length-r.dom(n?o:a).parents().length})}groupHighlights(t){let n=[],r={},o=[];return t.forEach(function(a){let l=a.getAttribute(_8);typeof r[l]=="undefined"&&(r[l]=[],n.push(l)),r[l].push(a)}),n.forEach(function(a){let l=r[a];o.push({chunks:l,timestamp:a,toString:function(){return l.map(function(u){return u.textContent}).join("")}})}),o}dom(t){let n=this;return{addClass:function(r){t.classList?t.classList.add(r):t.className+=" "+r},removeClass:function(r){t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r+"(\\b|$)","gi")," ")},prepend:function(r){let o=Array.prototype.slice.call(r),a=o.length;for(;a--;)t.insertBefore(o[a],t.firstChild)},append:function(r){let o=Array.prototype.slice.call(r);for(let a=0,l=o.length;a<l;++a)t.appendChild(o[a])},insertAfter:function(r){return r.parentNode?.insertBefore(t,r.nextSibling)},insertBefore:function(r){return r.parentNode?.insertBefore(t,r)},remove:function(){t.parentNode.removeChild(t),t=null},contains:function(r){return t!==r&&t.contains(r)},wrap:function(r){return t.parentNode&&t.parentNode.insertBefore(r,t),r.appendChild(t),r},unwrap:function(){let r=Array.prototype.slice.call(t.childNodes),o;return r.forEach(function(a){o=a.parentNode,n.dom(a).insertBefore(a.parentNode),n.dom(o).remove()}),r},parents:function(){let r,o=[];for(;r=t.parentNode;)o.push(r),t=r;return o},normalizeTextNodes:function(){if(!!t){if(t.nodeType===zs.TEXT_NODE)for(;t.nextSibling&&t.nextSibling.nodeType===zs.TEXT_NODE;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else n.dom(t.firstChild).normalizeTextNodes();n.dom(t.nextSibling).normalizeTextNodes()}},color:function(){return t.style.backgroundColor},fromHTML:function(r){let o=document.createElement("div");return o.innerHTML=r,o.childNodes},getRange:function(){let r=n.dom(t)?.getSelection(),o;return r?.rangeCount>0&&(o=r?.getRangeAt(0)),o},removeAllRanges:function(){n.dom(t)?.getSelection()?.removeAllRanges(),n.toolboxHide()},getSelection:function(){return n.dom(t).getWindow()?.getSelection()},getWindow:function(){return n.dom(t).getDocument()?.defaultView},getDocument:function(){return t?.ownerDocument||t}}}disableContext(t){return t.preventDefault(),t.stopPropagation(),!1}bindEvents(t,n,r){let o=t.ownerDocument;t.addEventListener("mouseup",this.toolboxShowDelayed.bind(this)),t.addEventListener("touchend",this.toolboxShowDelayed.bind(this)),o.addEventListener("mouseup",this.toolboxShowDelayed.bind(this)),o.addEventListener("touchend",this.toolboxShowDelayed.bind(this)),r||window.addEventListener("resize",this.toolboxPlacement.bind(this)),o.addEventListener("selectionchange",this.toolboxPlacement.bind(this)),t.addEventListener("mousedown",this.toolboxHide.bind(this)),t.addEventListener("touchstart",this.toolboxHide.bind(this)),this.isAndroid()&&t.addEventListener("contextmenu",this.disableContext),t.addEventListener("mousedown",this.mousedown.bind(this)),t.addEventListener("mouseup",this.mouseup.bind(this)),t.addEventListener("mousemove",this.mousemove.bind(this)),t.addEventListener("touchstart",this.mousedown.bind(this)),t.addEventListener("touchend",this.mouseup.bind(this)),t.addEventListener("touchmove",this.mousemove.bind(this)),this.hasEventListener=!0}async mousedown(t){g0=t.clientX,m0=t.clientY}async mouseup(t){Math.abs(g0-t.clientX)<3&&Math.abs(m0-t.clientY)<3&&await this.processMouseEvent(t)}async mousemove(t){await this.processMouseEvent(t)}unbindEvents(t,n){let r=t.ownerDocument;t.removeEventListener("mouseup",this.toolboxShowDelayed.bind(this)),t.removeEventListener("touchend",this.toolboxShowDelayed.bind(this)),r.removeEventListener("mouseup",this.toolboxShowDelayed.bind(this)),r.removeEventListener("touchend",this.toolboxShowDelayed.bind(this)),window.removeEventListener("resize",this.toolboxPlacement.bind(this)),r.removeEventListener("selectionchange",this.toolboxPlacement.bind(this)),t.removeEventListener("mousedown",this.toolboxHide.bind(this)),t.removeEventListener("touchstart",this.toolboxHide.bind(this)),this.isAndroid()&&t.removeEventListener("contextmenu",this.disableContext),t.removeEventListener("mousedown",this.mousedown.bind(this)),t.removeEventListener("mouseup",this.mouseup.bind(this)),t.removeEventListener("mousemove",this.mousemove.bind(this)),t.removeEventListener("touchstart",this.mousedown.bind(this)),t.removeEventListener("touchend",this.mouseup.bind(this)),t.removeEventListener("touchmove",this.mousemove.bind(this)),this.hasEventListener=!1}destroy(){this.toolboxHide();let t=this.delegate.iframes[0].contentDocument;t&&(this.unbindEvents(t.body,this),this.dom(t.body).removeClass(this.options.contextClass))}initializeToolbox(){let t=document.getElementById("highlight-toolbox-mode-colors"),n=document.getElementById("highlight-toolbox-mode-add"),r=["#fce300","#48e200","#00bae5","#157cf9","#6a39b7","#ea426a","#ff8500"],o=document.getElementById("colorIcon"),a=document.getElementById("actionIcon"),l=document.getElementById("dismissIcon"),u=document.getElementById("collapseIcon"),d=document.getElementById("highlightIcon"),f=this;if(l&&(l.innerHTML=Ur.close,l.addEventListener("click",function(){f.toolboxMode("add")})),u&&(u.innerHTML=Ur.close,u.addEventListener("click",function(){f.toolboxMode("add")})),o){o.style.position="relative",o.style.zIndex="20",r.forEach(E=>{let S=document.getElementById(E),v=document.getElementById(`c${E}`);S&&t?.contains(S)&&t.removeChild(S),n&&v&&n.contains(v)&&n.removeChild(v)});let m=[],p=[];if(o.addEventListener("click",function(){f.toolboxMode("colors")}),this.delegate.rights.enableAnnotations){let E=10;r.forEach(S=>{E--;let v=o?.cloneNode(!0),y=v.lastChild,b=De.hexToRgbChannels(S);y.style.backgroundColor="rgba("+[b.red,b.green,b.blue].join(",")+",.5)",v.id=`c${S}`,v.style.display="unset",v.style.position="relative",v.style.zIndex=`${E}`,v.style.marginLeft="-30px",p.push(v),n?.insertBefore(v,d)})}r.forEach(E=>{let S=o?.cloneNode(!0),v=S.lastChild;v.style.backgroundColor=E,S.id=E,S.style.position="relative",S.style.display="unset",m.push(S),o&&S.addEventListener("click",function(){f.setColor(E);let y=o?.lastChild;y&&(y.style.backgroundColor=E);let b=document.getElementById("highlightIcon"),w=document.getElementById("underlineIcon"),O=document.getElementById("noteIcon");(b?.getElementsByTagName?.("span").length??0)>0&&((b?.getElementsByTagName("span")[0]).style.background=f.getColor()),(w?.getElementsByTagName?.("span").length??0)>0&&((w?.getElementsByTagName("span")[0]).style.borderBottomColor=f.getColor()),(O?.getElementsByTagName?.("span").length??0)>0&&((O?.getElementsByTagName("span")[0]).style.borderBottomColor=f.getColor()),f.toolboxMode("add")}),t?.insertBefore(S,l)})}a&&a.addEventListener("click",function(){f.toolboxMode("action")}),f.toolboxMode("add")}toolboxMode(t){let n=document.getElementById("highlight-toolbox-mode-colors"),r=document.getElementById("highlight-toolbox-mode-add"),o=document.getElementById("highlight-toolbox-mode-edit"),a=document.getElementById("highlight-toolbox-mode-action");switch(t){case"colors":n&&(n.style.display="unset"),r&&(r.style.display="none"),o&&(o.style.display="none"),a&&(a.style.display="none");break;case"edit":n&&(n.style.display="none"),r&&(r.style.display="none"),o&&(o.style.display="unset"),a&&(a.style.display="none");break;case"action":n&&(n.style.display="none"),r&&(r.style.display="none"),o&&(o.style.display="none"),a&&(a.style.display="unset");break;default:n&&(n.style.display="none"),r&&(r.style.display="unset"),o&&(o.style.display="none"),a&&(a.style.display="none");break}}toolboxHide(){let t=document.getElementById("highlight-toolbox");t&&(t.style.display="none"),this.selectionMenuClosed()}toolboxShowDelayed(t){this.showTool(t.detail===1)}snapSelectionToWord(t=!1){let n=this,r=this.delegate.iframes[0].contentDocument;if(r){let a=n.dom(r.body)?.getSelection();if(n.dom(r.body)&&a&&!a?.isCollapsed){let f=function(b){let w=b.match(new RegExp("[^a-zA-Z0-9]+$"));return!w||!w.index?b:b.slice(0,w.index)},l=a.toString(),u=l.length-l.trimStart().length,d=l.length-l.trimEnd().length,m=l.length;var o=/[-!$%^&*()_+|~=`{}[\]:/;<>?,.@#]/;l=l.replace(o,""),u=m-l.trimStart().length,l=f(l),d=m-l.trimEnd().length;let p=document.createRange();t?(p.setStart(a.anchorNode,a.anchorOffset+u),p.setEnd(a.focusNode,a.focusOffset-d)):(p.setStart(a.anchorNode,a.anchorOffset),p.setEnd(a.focusNode,a.focusOffset));let E=p.collapsed;p.detach();let S=a.focusNode,v;t?(v=a.focusOffset-d,a.collapse(a.anchorNode,a.anchorOffset+u)):(v=a.focusOffset,a.collapse(a.anchorNode,a.anchorOffset));let y=["forward","backward"];E&&(y=["backward","forward"]),t?(a.modify("move",y[0],"character"),a.modify("move",y[1],"word"),a.extend(S,v),a.modify("extend",y[1],"character"),a.modify("extend",y[0],"word")):a.extend(S,v),this.selection(a.toString(),a)}return a}}toolboxShow(){if(this.activeAnnotationMarkerId===void 0){let t=this,n=document.getElementById("highlight-toolbox-mode-add"),r=this.dom(this.delegate.iframes[0].contentDocument?.body).getRange();if((!r||r.collapsed)&&n){getComputedStyle(n).display!=="none"&&t.toolboxHide();return}this.isIOS()&&setTimeout(function(){let o=t.delegate.iframes[0].contentDocument;if(o){let a=t.dom(o.body).getSelection();a.removeAllRanges(),setTimeout(function(){a.addRange(r);function l(f){let m={className:E=>hr.indexOf(E)<0,idName:E=>hr.indexOf(E)<0},p=t.delegate.iframes[0].contentDocument;if(p)return ln(f,p,m)}let u=t.delegate.iframes[0].contentWindow,d=oi(u,l);t.delegate.annotationModule?.annotator?.saveTemporarySelectionInfo(d)},5)}},100),this.toolboxPlacement(),this.toolboxHandler()}}toolboxPlacement(){let t=this.dom(this.delegate.iframes[0].contentDocument?.body).getRange();if(!t||t.collapsed)return;let n=t.getBoundingClientRect(),r=document.getElementById("highlight-toolbox");r&&(this.delegate.view?.isPaginated()?r.style.top=n.top+(this.delegate.attributes?.navHeight??0)+"px":r.style.top=n.top+"px",r.style.left=(n.right-n.left)/2+n.left+"px")}toolboxHandler(){let t=document.getElementById("highlight-toolbox");if(t&&getComputedStyle(t).display==="none"){t.style.display="block",this.delegate.view?.isPaginated()?t.style.position="absolute":t.style.position="relative",this.selectionMenuOpened();let r=this;r.toolboxMode("add");let o=document.getElementById("highlightIcon"),a=document.getElementById("collapseIcon"),l=document.getElementById("underlineIcon"),u=document.getElementById("noteIcon"),d=document.getElementById("colorIcon"),f=document.getElementById("speakIcon");if(this.delegate.rights.enableAnnotations){if(o&&(o.style.display="unset",d&&o.getElementsByTagName("span").length>0&&(o.getElementsByTagName("span")[0].style.background=this.getColor())),l&&(l.style.display="unset",d&&l.getElementsByTagName("span").length>0&&(l.getElementsByTagName("span")[0].style.borderBottomColor=this.getColor())),u&&(u.style.display="unset",d&&u.getElementsByTagName("span").length>0&&(u.getElementsByTagName("span")[0].style.borderBottomColor=this.getColor())),d){d.style.display="unset";let m=d.lastChild;m.style.backgroundColor=this.getColor()}if(o){let m=function(){r.doHighlight(!1,Le.Highlight),r.toolboxHide(),o?.removeEventListener("click",m)},p=o.cloneNode(!0);o?.parentNode?.replaceChild(p,o),o=document.getElementById("highlightIcon"),o?.addEventListener("click",m)}if(l){let m=function(){r.doHighlight(!1,Le.Underline),r.toolboxHide(),l?.removeEventListener("click",m)},p=l.cloneNode(!0);l?.parentNode?.replaceChild(p,l),l=document.getElementById("underlineIcon"),l?.addEventListener("click",m)}if(u){let m=function(){r.doHighlight(!1,Le.Comment),r.toolboxHide(),u?.removeEventListener("click",m)},p=u.cloneNode(!0);u?.parentNode?.replaceChild(p,u),u=document.getElementById("noteIcon"),u?.addEventListener("click",m)}}else o&&o.style.setProperty("display","none"),l&&l.style.setProperty("display","none"),u&&u.style.setProperty("display","none"),d&&d.style.setProperty("display","none"),a&&a.style.setProperty("display","none");if(this.delegate.rights.enableTTS){if(f){let m=function(){f?.removeEventListener("click",m),r.speak()},p=f.cloneNode(!0);f?.parentNode?.replaceChild(p,f),f=document.getElementById("speakIcon"),f?.addEventListener("click",m)}}else f&&f.style.setProperty("display","none");(this.properties?.selectionMenuItems??[])&&(this.properties?.selectionMenuItems??[]).forEach(m=>{m.icon&&(m.icon.id=m.id);let p=document.getElementById(m.id),E=this;function S(){p?.removeEventListener("click",S);function v(b){let w={className:T=>hr.indexOf(T)<0,idName:T=>hr.indexOf(T)<0},O=E.delegate.iframes[0].contentDocument;if(O)return ln(b,O,w)}let y=E.delegate.iframes[0].contentWindow;if(y){let b=oi(y,v);if(b===void 0){let w=E.delegate.iframes[0].contentDocument;b=E.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(w)}if(b!==void 0)if(m.callback)m.callback(b.cleanText,b.range?.startContainer.parentElement);else{let w=m.highlight?.style,O=m.marker?m.marker:Le.Custom;if(O===Le.Custom&&E.delegate.rights.enableAnnotations||O===Le.Bookmark&&E.delegate.rights.enableBookmarks){let T=E.delegate.iframes[0].contentDocument;if(T){let C=E.createHighlight(E.dom(T.body).getWindow(),b,m.highlight?.color,!0,O,m.icon,m.popup,w);E.options.onAfterHighlight(C,O),E.delegate.rights.enableAnnotations?E.delegate.annotationModule?.saveAnnotation(C[0]).then(_=>{m?.note&&_.highlight&&E.delegate.annotationModule?.api?.addCommentToAnnotation(_).then(P=>{E.delegate.annotationModule?.updateAnnotation(P).then(async()=>{Mn.default.log("update highlight "+P.id)})})}):E.delegate.rights.enableBookmarks&&E.delegate.bookmarkModule?.saveAnnotation(C[0])}}}}E.callbackComplete()}if(p){let v=p.cloneNode(!0);p?.parentNode?.replaceChild(v,p),p=document.getElementById(m.id),p?.addEventListener("click",S)}})}}doHighlight(t,n){let r=this;function o(l){let u={className:f=>hr.indexOf(f)<0,idName:f=>hr.indexOf(f)<0},d=r.delegate.iframes[0].contentDocument;if(d)return ln(l,d,u)}let a=r.delegate.iframes[0].contentWindow;if(a){let l=oi(a,o);if(l===void 0){let u=r.delegate.iframes[0].contentDocument;l=this.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(u)}if(l){if(this.options.onBeforeHighlight(l)===!0){let u;u=this.getColor(),De.isHexColor(u)&&(u=De.hexToRgbChannels(u));let d=r.delegate.iframes[0].contentDocument;if(d){let f=this.createHighlight(r.dom(d.body).getWindow(),l,u,!0,n??Le.Highlight);this.options.onAfterHighlight(f,n),this.delegate.rights.enableAnnotations&&n!==Le.Bookmark?this.delegate.annotationModule?.saveAnnotation(f[0]):this.delegate.rights.enableBookmarks&&n===Le.Bookmark&&this.delegate.bookmarkModule?.saveAnnotation(f[0])}}t||this.dom(this.delegate.iframes[0].contentDocument?.body).removeAllRanges()}else t||this.dom(this.delegate.iframes[0].contentDocument?.body).removeAllRanges()}}speak(){if(this.delegate.rights.enableTTS){let n=function(l){let u={className:f=>hr.indexOf(f)<0,idName:f=>hr.indexOf(f)<0},d=t.delegate.iframes[0].contentDocument;if(d)return ln(l,d,u)},t=this,r=t.delegate.iframes[0].contentWindow;if(r){let l=oi(r,n);if(l===void 0){let u=t.delegate.iframes[0].contentDocument;l=t.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(u)}l!==void 0&&this.delegate.ttsModule.speak(l,!0,()=>{})}let o=t.delegate.iframes[0].contentDocument;o&&t.dom(o.body).getSelection().removeAllRanges();let a=document.getElementById("highlight-toolbox");a&&(a.style.display="none"),this.selectionMenuClosed()}}stopReadAloud(){this.delegate.rights.enableTTS&&this.doneSpeaking()}callbackComplete(){this.toolboxHide();let t=this.delegate.iframes[0].contentDocument;t&&this.dom(t.body).removeAllRanges()}isOutsideViewport(t){let n=dt(document,"#iframe-wrapper"),r=n.scrollLeft,o=r+n.clientWidth,a=t.left+t.width,l=t.top+t.height,u=n.scrollTop,d=u+n.clientHeight,f=l<u,m=t.top>d,p=a<r,E=t.left>o;return f||m||p||E}isInsideViewport(t){let n=dt(document,"#iframe-wrapper"),r=n.scrollTop,o=r+n.clientHeight,a=t.top+20>=r,l=t.top<=o,u=n.scrollLeft,d=u+n.clientWidth,f=t.left+t.width,m=t.left>u,p=f<d;return a&&l&&m&&p}get visibleTextRects(){let t=this.delegate.iframes[0].contentDocument;if(t){let r=function(u,d=[]){let f=u.firstChild;for(;f;)f.nodeType===1&&r(f,d),f.nodeType===3&&f.textContent?.trim()&&d.push(f),f=f.nextSibling;return d},o=function(u){return r(u).map(f=>{let{top:m,height:p,left:E,width:S}=a(f);return{top:m,height:p,width:S,left:E,node:f,textContent:f.textContent??""}})},a=function(u){try{let d=document.createRange();d.selectNode(u);let f=d.getBoundingClientRect();return d.detach(),f}catch(d){Mn.default.log("measureTextNode "+d),Mn.default.log("measureTextNode "+u),Mn.default.log(`${u.textContent}`)}},n=_i(t,"body");return o(n).filter(u=>this.isInsideViewport(u))}return[]}doneSpeaking(t=!1){if(this.delegate.rights.enableTTS){this.toolboxHide();let n=this.delegate.iframes[0].contentDocument;n&&this.dom(n.body).removeAllRanges(),this.delegate.ttsModule.cancel(),t&&this.delegate.reload()}}normalizeHighlights(t){var n;return n=t.filter(function(r){return r.parentElement?r:null}),n=this.unique(n),n.sort(function(r,o){return r.offsetTop-o.offsetTop||r.offsetLeft-o.offsetLeft}),n}flattenNestedHighlights(t){let n,r=this;r.sortByDepth(t,!0);function o(){let a=!1;return t.forEach(function(l,u){let d=l.parentElement,f=d.previousSibling,m=d.nextSibling;r.isHighlight(d)&&(r.haveSameColor(d,l)?(d.replaceChild(l.firstChild,l),t[u]=d,a=!0):(l.nextSibling||(r.dom(l).insertBefore(m||d),a=!0),l.previousSibling||(r.dom(l).insertAfter(f||d),a=!0),d.hasChildNodes()||r.dom(d).remove()))}),a}do n=o();while(n)}mergeSiblingHighlights(t){let n=this;function r(o,a){return a&&a.nodeType===zs.ELEMENT_NODE&&n.haveSameColor(o,a)&&n.isHighlight(a)}t.forEach(function(o){let a=o.previousSibling,l=o.nextSibling;r(o,a)&&(n.dom(o).prepend(a.childNodes),n.dom(a).remove()),r(o,l)&&(n.dom(o).append(l.childNodes),n.dom(l).remove()),n.dom(o).normalizeTextNodes()})}setColor(t){this.options.color=t}getColor(){return this.options.color}isHighlight(t){return t&&t.nodeType===zs.ELEMENT_NODE&&t.hasAttribute(x8)}createWrapper(){let t=document.createElement("mark");return t.style.background="linear-gradient("+De.hexToRgbA(this.options.color)+", "+De.hexToRgbA(this.options.color)+")",t.className=this.options.highlightedClass,t}static isHexColor(t){return/^#([A-Fa-f0-9]{3}){1,2}$/.test(t)}static hexToRgbString(t){let n;return n=t.substring(1).split(""),n.length===3&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),n="0x"+n.join(""),n}static hexToRgbChannels(t){let n;if(this.isHexColor(t))return n=this.hexToRgbString(t),{red:n>>16&255,green:n>>8&255,blue:n&255};throw new Error("Bad Hex")}static hexToRgbA(t){let n;if(this.isHexColor(t))return n=this.hexToRgbChannels(t),"rgba("+[n.red,n.green,n.blue].join(",")+",.5)";if(typeof t=="object"){let r=t;return"rgba("+[r.red,r.green,r.blue].join(",")+",.5)"}throw new Error("Bad Hex")}static hexToRgbAWithOpacity(t,n){let r;if(this.isHexColor(t))return r=this.hexToRgbChannels(t),"rgba("+[r.red,r.green,r.blue].join(",")+","+n+")";if(typeof t=="object"){let o=t;return"rgba("+[o.red,o.green,o.blue].join(",")+","+n+")"}throw new Error("Bad Hex")}resetHighlightBoundingStyle(t){t.style.outline="none",t.style.setProperty("background-color","transparent","important")}resetHighlightAreaStyle(t,n){let r=this.delegate.iframes[0].contentWindow?.document,o=t.parentNode&&t.parentNode.nodeType===Node.ELEMENT_NODE&&t.parentNode.getAttribute?t.parentNode.getAttribute("id"):void 0;if(o){let a=zt.find(l=>l.id===o);if(a){if(a.marker===Le.Custom||a.marker===Le.Bookmark)if(a.style?.hover){if(a.style?.hover)for(let d=0;d<a.style?.hover?.length;d++){let f=a.style?.hover[d];t.style.removeProperty(f.property)}let u="";if(a.style?.default)for(let d=0;d<a.style?.default?.length;d++){let f=a.style?.default[d];t.style.removeProperty(f.property),u+=`${f.property}: ${f.value} !${f.priority};`}t.setAttribute("style",`${t.getAttribute("style")}; ${u}`)}else if(a.style?.hoverClass){a.style?.hoverClass&&t.classList.remove(a.style?.hoverClass);let u="";a.style?.defaultClass&&t.classList.add(a.style?.defaultClass),t.setAttribute("style",`${t.getAttribute("style")}; ${u}`)}else if(De.isHexColor(a.color)){let u=De.hexToRgbChannels(a.color);t.style.setProperty("background-color",`rgba(${u.red}, ${u.green}, ${u.blue}, ${0})`,"important")}else t.classList.remove("hover");else if(a.marker===Le.Underline||a.marker===Le.Comment)if(typeof a.color=="object"){let u=a.color;t.style.setProperty("background-color",`rgba(${u.red}, ${u.green}, ${u.blue}, ${0})`,"important"),t.style.setProperty("border-bottom",`2px solid rgba(${u.red}, ${u.green}, ${u.blue}, ${1})`,"important")}else if(De.isHexColor(a.color)){let u=De.hexToRgbChannels(a.color);t.style.setProperty("background-color",`rgba(${u.red}, ${u.green}, ${u.blue}, ${0})`,"important"),t.style.setProperty("border-bottom",`2px solid rgba(${u.red}, ${u.green}, ${u.blue}, ${1})`,"important")}else t.classList.remove("hover");else if(typeof a.color=="object"){let u=a.color;t.style.setProperty("background-color",`rgba(${u.red}, ${u.green}, ${u.blue}, ${si})`,"important")}else if(De.isHexColor(a.color)){let u=De.hexToRgbChannels(a.color);t.style.setProperty("background-color",`rgba(${u.red}, ${u.green}, ${u.blue}, ${si})`,"important")}else t.classList.remove("hover");let l;if(r){let u=r.getElementById(n);u&&(l=u.querySelector(`#${a.id}`))}if(l){let u=l.getElementsByClassName(Za);if(u.length>0){let d=u.item(0).getElementsByClassName("icon-tooltip");d.length>0&&d.item(0).style.removeProperty("display")}}}}}setHighlightAreaStyle(t,n,r){for(let o of n){if(r.marker===Le.Custom||r.marker===Le.Bookmark)if(r.style?.hover){if(r.style?.default)for(let l=0;l<r.style?.default?.length;l++){let u=r.style?.default[l];o.style.removeProperty(u.property)}let a="";for(let l=0;l<r.style?.hover?.length;l++){let u=r.style?.hover[l];o.style.removeProperty(u.property),a+=`${u.property}: ${u.value} !${u.priority};`}o.setAttribute("style",`${o.getAttribute("style")}; ${a}`)}else if(r.style?.hoverClass){r.style?.defaultClass&&o.classList.remove(r.style?.defaultClass);let a="";o.classList.add(r.style?.hoverClass),o.setAttribute("style",`${o.getAttribute("style")}; ${a}`)}else if(De.isHexColor(r.color)){let a=De.hexToRgbChannels(r.color);o.style.setProperty("background-color",`rgba(${a.red}, ${a.green}, ${a.blue}, ${.1})`,"important")}else o.classList.add("hover");else if(r.marker===Le.Underline||r.marker===Le.Comment)if(typeof r.color=="object"){let a=r.color;o.style.setProperty("background-color",`rgba(${a.red}, ${a.green}, ${a.blue}, ${.1})`,"important"),o.style.setProperty("border-bottom",`2px solid rgba(${a.red}, ${a.green}, ${a.blue}, ${1})`,"important")}else if(De.isHexColor(r.color)){let a=De.hexToRgbChannels(r.color);o.style.setProperty("background-color",`rgba(${a.red}, ${a.green}, ${a.blue}, ${.1})`,"important"),o.style.setProperty("border-bottom",`2px solid rgba(${a.red}, ${a.green}, ${a.blue}, ${1})`,"important")}else o.classList.add("hover");else if(typeof r.color=="object"){let a=r.color;o.style.setProperty("background-color",`rgba(${a.red}, ${a.green}, ${a.blue}, ${_4})`,"important")}else if(De.isHexColor(r.color)){let a=De.hexToRgbChannels(r.color);o.style.setProperty("background-color",`rgba(${a.red}, ${a.green}, ${a.blue}, ${_4})`,"important")}else o.classList.add("hover");if(r.type!==qe.Definition){let l=t.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER).querySelector(`#${r.id}`).getElementsByClassName(Za);if(l.length>0){let u=l.item(0).getElementsByClassName("icon-tooltip");u.length>0&&u.item(0).style.setProperty("display","block")}}}}setAndResetSearchHighlight(t,n){let r=this.delegate.iframes[0].contentWindow?.document,o=Array.from(r.getElementById(Me.R2_ID_SEARCH_CONTAINER).querySelectorAll(`.${pn}`));for(let a of o){let l=a,u=l.parentNode&&l.parentNode.nodeType===Node.ELEMENT_NODE&&l.parentNode.getAttribute?l.parentNode.getAttribute("id"):void 0;if(n.forEach(d=>{if(u===d.id&&d){if(typeof d.color=="object"){let p=d.color;l.style.setProperty("background-color",`rgba(${p.red}, ${p.green}, ${p.blue}, ${si})`,"important")}else if(De.isHexColor(d.color)){let p=De.hexToRgbChannels(d.color);l.style.setProperty("background-color",`rgba(${p.red}, ${p.green}, ${p.blue}, ${si})`,"important")}else l.classList.remove("hover");let m=r.getElementById(Me.R2_ID_SEARCH_CONTAINER).querySelector(`#${d.id}`).getElementsByClassName(Za);if(m.length>0){let p=m.item(0).getElementsByClassName("icon-tooltip");p.length>0&&p.item(0).style.removeProperty("display")}}}),u===t.id&&t){if(typeof t.color=="object"){let m=t.color;l.style.setProperty("background-color",`rgba(${m.red}, ${m.green}, ${m.blue}, ${si})`,"important")}else if(De.isHexColor(t.color)){let m=De.hexToRgbChannels(t.color);l.style.setProperty("background-color",`rgba(${m.red}, ${m.green}, ${m.blue}, ${si})`,"important")}else l.classList.remove("hover");let f=r.getElementById(Me.R2_ID_SEARCH_CONTAINER).querySelector(`#${t.id}`).getElementsByClassName(Za);if(f.length>0){let m=f.item(0).getElementsByClassName("icon-tooltip");m.length>0&&m.item(0).style.removeProperty("display")}}}}isIOS(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)!=null||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}isAndroid(){return navigator.userAgent.match(/Android/i)!=null}async processMouseEvent(t){let n=this.delegate.iframes[0].contentWindow?.document,r=t.clientX,o=t.clientY;if(!n||!n.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER)&&!n.getElementById(Me.R2_ID_SEARCH_CONTAINER)&&!n.getElementById(Me.R2_ID_PAGEBREAK_CONTAINER)&&!n.getElementById(Me.R2_ID_READALOUD_CONTAINER)&&!n.getElementById(Me.R2_ID_DEFINITIONS_CONTAINER))return;let a=this.delegate.view?.isPaginated(),l=n.body.getBoundingClientRect(),u=this.getScrollingElement(n),d=a?-u.scrollLeft:l.left,f=a?-u.scrollTop:l.top,m,p;for(let E=zt.length-1;E>=0;E--){let S=zt[E],v=n.getElementById(`${S.id}`);if(!v){let w=n.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER);w&&(v=w.querySelector(`#${S.id}`))}if(!v)continue;let y=!1,b=v.querySelectorAll(`.${pn}`);for(let w of b){let O=w,T=O.rect.left+d,C=O.rect.top+f;if(r>=T&&r<T+O.rect.width&&o>=C&&o<C+O.rect.height){y=!0;break}}if(y){m=S,p=v;break}}if(!m||!p){for(let E in Me){let S=n.getElementById(E);if(S){let v=S.querySelectorAll(`.${Ya}`);for(let b of v)this.resetHighlightBoundingStyle(b);let y=Array.from(S.querySelectorAll(`.${pn}`));for(let b of y)this.resetHighlightAreaStyle(b,E)}}return}if(p.getAttribute("data-click")){if((t.type==="mousemove"||t.type==="touchmove")&&p.parentElement?.style.display!=="none"){let E=Array.from(p.querySelectorAll(`.${pn}`));for(let v in Me){let y=n.getElementById(v);if(y){let b=y.querySelectorAll(`.${pn}`);for(let w of b)E.indexOf(w)<0&&this.resetHighlightAreaStyle(w,v)}}this.setHighlightAreaStyle(n,E,m);let S=p.querySelector(`.${Ya}`);for(let v in Me){let y=n.getElementById(v);if(y){let b=y.querySelectorAll(`.${Ya}`);for(let w of b)(!S||w!==S)&&this.resetHighlightBoundingStyle(w)}}}else if((t.type==="mouseup"||t.type==="click"||t.type==="touchup")&&p.parentElement?.style.display!=="none"){let E={highlight:m};Mn.default.log(JSON.stringify(E));let S=this,v;if(S.delegate.rights.enableAnnotations?v=await this.delegate.annotationModule?.getAnnotation(E.highlight):S.delegate.rights.enableBookmarks&&(v=await this.delegate.bookmarkModule?.getAnnotation(E.highlight)),E.highlight.type===qe.Annotation&&this.delegate.annotationModule?.api?.selectedAnnotation(v).then(async()=>{}),v?.id){Mn.default.log("selected highlight "+v.id),S.lastSelectedHighlight=v.id;let y=document.getElementById("highlight-toolbox");if(y)if(y.style.top=t.clientY+(this.delegate.attributes?.navHeight??0)+"px",y.style.left=t.clientX+"px",getComputedStyle(y).display==="none"){let O=function(){S.delegate.annotationModule?.api?.addCommentToAnnotation(v).then(I=>{S.delegate.annotationModule?.updateAnnotation(I).then(async()=>{Mn.default.log("update highlight "+I.id),y&&(y.style.display="none"),S.selectionMenuClosed()}),y&&(y.style.display="none"),S.selectionMenuClosed(),T?.removeEventListener("click",O,!1)})},_=function(){S.delegate.rights.enableAnnotations?S.delegate.annotationModule?.deleteSelectedHighlight(v).then(async()=>{Mn.default.log("delete highlight "+v.id),y&&(y.style.display="none"),S.selectionMenuClosed()}):S.delegate.rights.enableBookmarks&&S.delegate.bookmarkModule?.deleteSelectedHighlight(v).then(async()=>{Mn.default.log("delete highlight "+v.id),y&&(y.style.display="none"),S.selectionMenuClosed()})};y.style.display="block",this.toolboxMode("edit");let b=document.getElementById("colorIcon"),w=document.getElementById("highlightIcon");b&&(b.style.display="none"),w&&(w.style.display="none");let T=document.getElementById("commentIcon"),C=document.getElementById("cloneCommentIcon");if(C){let I=C.parentElement;I&&I.removeChild(C)}if(T){T.style.display="none";let I=T.cloneNode(!0),q=T.parentElement;I.style.display="unset",I.id="cloneCommentIcon",I.addEventListener("click",O,!1),q&&q.append(I)}let P=document.getElementById("deleteIcon"),D=document.getElementById("cloneDeleteIcon");if(D){let I=D.parentElement;I&&I.removeChild(D)}if(P){P.style.display="none";let I=P.cloneNode(!0),q=P.parentElement;I.style.display="unset",I.id="cloneDeleteIcon",I.addEventListener("click",_,!1),q&&q.append(I)}}else y.style.display="none",this.selectionMenuClosed(),y.offsetWidth,y.style.display="block"}else{p.dataset.definition&&new Va(this.delegate).showPopup(p.dataset.definition,t);let y=this.delegate.definitionsModule?.properties?.definitions?.filter(b=>b.order===Number(p?.dataset.order))[0];Mn.default.log(y),this.delegate.definitionsModule?.api?.click&&(this.delegate.definitionsModule.api?.click(p0.omit(y,"callbacks"),p0.omit(m,"definition")),this.delegate.emit("definition.click",y,m))}}}}async prepareContainers(t){for(let n in Me)await this.ensureHighlightsContainer(t,n)}async ensureHighlightsContainer(t,n){let r=t.document;if(!r.getElementById(n)){let o=r.createElement("div");o.setAttribute("id",n),n!==Me.R2_ID_GUTTER_RIGHT_CONTAINER&&o.style.setProperty("pointer-events","none"),this.delegate.view?.layout==="fixed"&&(o.style.setProperty("position","absolute"),o.style.setProperty("top","0"),o.style.setProperty("left","0")),r.body&&r.body.append(o),(await this.layerSettings.getProperty(n))?.value===!1&&(o.style.display="none")}return r.getElementById(n)}hideAllhighlights(t){this.removeAllChildNodes(t.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER)),this.removeAllChildNodes(t.getElementById(Me.R2_ID_SEARCH_CONTAINER)),this.removeAllChildNodes(t.getElementById(Me.R2_ID_READALOUD_CONTAINER)),this.removeAllChildNodes(t.getElementById(Me.R2_ID_PAGEBREAK_CONTAINER)),this.removeAllChildNodes(t.getElementById(Me.R2_ID_DEFINITIONS_CONTAINER))}destroyAllhighlights(t){this.hideAllhighlights(t),zt.splice(0,zt.length)}removeAllChildNodes(t){for(;t.firstChild;)t.removeChild(t.firstChild)}destroyHighlights(t){let n=this.delegate.iframes[0].contentWindow?.document;if(n){let r;switch(t){case qe.ReadAloud:r=n.getElementById(Me.R2_ID_READALOUD_CONTAINER),r&&this.removeAllChildNodes(r);break;case qe.Search:r=n.getElementById(Me.R2_ID_SEARCH_CONTAINER),r&&this.removeAllChildNodes(r);break;case qe.PageBreak:r=n.getElementById(Me.R2_ID_PAGEBREAK_CONTAINER),r&&this.removeAllChildNodes(r);break;case qe.Definition:r=n.getElementById(Me.R2_ID_DEFINITIONS_CONTAINER),r&&this.removeAllChildNodes(r);break;case qe.LineFocus:r=n.getElementById(Me.R2_ID_LINEFOCUS_CONTAINER),r&&this.removeAllChildNodes(r);break;case qe.Comment:r=n.getElementById(Me.R2_ID_GUTTER_RIGHT_CONTAINER),r&&this.removeAllChildNodes(r);break;default:r=n.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER),r&&this.removeAllChildNodes(r),zt.splice(0,zt.length);break}}}destroyHighlight(t,n){if(!t)return;let r=-1;zt.find((l,u)=>(r=u,l.id===n))&&r>=0&&r<zt.length&&zt.splice(r,1);let a=t.getElementById(n);a&&this.removeAllChildNodes(a)}createHighlight(t,n,r,o,a,l,u,d,f,m){try{let p=`${n.rangeInfo.startContainerElementCssSelector}${n.rangeInfo.startContainerChildTextNodeIndex}${n.rangeInfo.startOffset}${n.rangeInfo.endContainerElementCssSelector}${n.rangeInfo.endContainerChildTextNodeIndex}${n.rangeInfo.endOffset}`,E=Cr.hash(p),S=(m||"R2_HIGHLIGHT_")+E;this.destroyHighlight(t.document,S);let v=`rgb(${$o.red}, ${$o.green}, ${$o.blue})`,y={color:r||v,id:S,pointerInteraction:o,selectionInfo:n,marker:a,icon:l,popup:u,style:d,type:f||qe.Annotation};(f===qe.Annotation||f===qe.Definition||f===void 0)&&zt.push(y);let b=this.createHighlightDom(t,y);return y.position=parseInt((b?.hasChildNodes()?b.childNodes[0]:b).style.top.replace("px","")),[y,b]}catch(p){throw"Can't create highlight: "+p}}createHighlightDom(t,n){let r=t.document,o=vd(r,n.selectionInfo.rangeInfo);if(!o)return;for(let B in Me)this.ensureHighlightsContainer(t,B);let a=r.createElement("div");a.setAttribute("id",n.id),a.setAttribute("class",x4),a.style.setProperty("pointer-events","none"),n.pointerInteraction&&a.setAttribute("data-click","1");let l=this.delegate.view?.isPaginated();l?r.body.style.position="revert":r.body.style.position="relative";let u=r.body.getBoundingClientRect(),d=this.getScrollingElement(r),f=l?-d.scrollLeft:u.left,m=l?-d.scrollTop:u.top,p=1,E=!1,S=!1,b=yd(o,E||S||!1),w=3,O=2,T=3,C=0,_=24,P,D;for(let B of b){let N=r.createElement("div");N.setAttribute("class",pn),N.dataset.marker=""+n.marker;let W="";if(E&&n.marker!==Le.Custom&&n.marker!==Le.Bookmark&&n.marker!==Le.Comment){let V=n.color;De.isHexColor(V)&&(V=De.hexToRgbChannels(V)),W+=`border-bottom: ${O*p}px solid rgba(${V.red}, ${V.green}, ${V.blue}, ${si}) !important`}if(n.marker===Le.Custom||n.marker===Le.Bookmark)if(n.style?.default){for(let V=0;V<n.style?.default?.length;V++){let ee=n.style?.default[V];W+=`${ee.property}: ${ee.value} !${ee.priority};`}N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; ${W}`)}else n.style?.defaultClass&&(N.classList.add(n.style?.defaultClass),N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; ${W}`));else if(n.marker===Le.Underline||n.marker===Le.Comment)if(typeof n.color=="object"){let V=n.color;N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; background-color: rgba(${V.red}, ${V.green}, ${V.blue}, ${0}) !important; ${W}`),N.style.setProperty("border-bottom",`2px solid rgba(${V.red}, ${V.green}, ${V.blue}, ${1})`,"important")}else if(De.isHexColor(n.color)){let V=De.hexToRgbChannels(n.color);N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; background-color: rgba(${V.red}, ${V.green}, ${V.blue}, ${0}) !important; ${W}`),N.style.setProperty("border-bottom",`2px solid rgba(${V.red}, ${V.green}, ${V.blue}, ${1})`,"important")}else N.setAttribute("style",`border-radius: ${w}px !important; ${W}`);else if(typeof n.color=="object"){let V=n.color;N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; background-color: rgba(${V.red}, ${V.green}, ${V.blue}, ${si}) !important; ${W}`)}else if(De.isHexColor(n.color)){let V=De.hexToRgbChannels(n.color);N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; background-color: rgba(${V.red}, ${V.green}, ${V.blue}, ${si}) !important; ${W}`)}else N.setAttribute("style",`border-radius: ${w}px !important; ${W}`);N.style.setProperty("pointer-events","none"),N.style.position="absolute",N.scale=p,N.rect={height:B.height,left:B.left-f,top:B.top-m,width:B.width},n.pointerInteraction&&(N.setAttribute("data-click","1"),N.tabIndex=0),N.style.width=`${N.rect.width*p}px`,N.style.height=`${N.rect.height*p}px`,N.style.left=`${N.rect.left*p}px`,N.style.top=`${N.rect.top*p}px`,a.append(N);let ye=parseInt(N.style.top.replace("px",""));if((ye<C||C===0)&&(C=ye),_=parseInt(N.style.height.replace("px","")),S){let V=r.createElement("div");V.setAttribute("class",pn);let ee=n.color;De.isHexColor(ee)&&(ee=De.hexToRgbChannels(ee)),V.setAttribute("style",`background-color: rgba(${ee.red}, ${ee.green}, ${ee.blue}, ${si}) !important;`),V.style.setProperty("pointer-events","none"),V.style.position="absolute",V.scale=p,V.rect={height:B.height,left:B.left-f,top:B.top-m,width:B.width},V.style.width=`${V.rect.width*p}px`,V.style.height=`${T*p}px`,V.style.left=`${V.rect.left*p}px`,V.style.top=`${(V.rect.top+V.rect.height/2-T/2)*p}px`,a.append(V)}let be=this.delegate.iframes[0].contentWindow?.innerWidth,fe=parseInt(getComputedStyle(r.documentElement).getPropertyValue("column-count")),re=parseInt(getComputedStyle(r.documentElement).getPropertyValue("column-width")),he=parseInt(getComputedStyle(r.body).getPropertyValue("padding-left")),Ae=be/(fe||1);Ae<re&&(Ae=be),l||(Ae=parseInt(getComputedStyle(r.body).width.replace("px","")));let ue=this.delegate.settings.fontSize/100,xe=20*ue;ue<=1&&(xe=-60);let Re=0*ue;ue<=1&&(Re=-60),P=Math.floor(B.left/Ae)*Ae+Ae-(_<40?40:_)+Re,D=Math.floor(B.left/Ae)*Ae+(_<40?40:_)-xe;let Se=parseInt(this.delegate.iframes[0].contentDocument.documentElement.style.getPropertyValue("--USER__pageMargins"));Se>=2&&(D=D+he/fe,P=P-he/fe),l||(P=parseInt(getComputedStyle(this.delegate.iframes[0].contentDocument?.body).width.replace("px","")),D=parseInt(getComputedStyle(this.delegate.iframes[0].contentDocument?.body).width.replace("px",""))-Ae,Se>=2&&(D=D+he/2,P=P-he/2))}let I=o.getBoundingClientRect(),q=r.createElement("div");q.setAttribute("class",Ya),q.style.setProperty("pointer-events","none"),q.style.position="absolute",q.scale=p,q.rect={height:I.height,left:I.left-f,top:I.top-m,width:I.width},q.style.width=`${q.rect.width*p}px`,q.style.height=`${q.rect.height*p}px`,q.style.left=`${q.rect.left*p}px`,q.style.top=`${q.rect.top*p}px`,a.append(q);let U=r.createElement("div");if(U.setAttribute("class",Za),n.icon?.position==="left")U.setAttribute("style",`position: absolute;top:${C}px;left:${D+this.delegate.iframes[0].contentDocument?.scrollingElement?.scrollLeft}px;height:${_}px; width:${_}px;`);else if(n.icon?.position==="inline")U.setAttribute("style",`position: absolute;top:${C-_/2}px;left:${parseInt(q.style.left.replace("px",""))+parseInt(q.style.width.replace("px",""))-_/2}px;height:${_}px; width:${_}px;`);else if(n.icon?.position==="center"){let N=_/3*2;U.setAttribute("style",`position: absolute;top:${C}px;left:${parseInt(q.style.left.replace("px",""))+parseInt(q.style.width.replace("px",""))-N}px;height:${_}px; width:${_}px;`)}else n.note&&n.marker!==Le.Custom&&n.marker!==Le.Bookmark&&n.marker!==Le.Comment&&n.marker!==Le.Highlight&&n.marker!==Le.Underline?U.setAttribute("style",`position: absolute;top:${C-_/2}px;left:${parseInt(q.style.left.replace("px",""))+parseInt(q.style.width.replace("px",""))-_/2}px;height:${_}px; width:${_}px;`):n.note&&n.marker===Le.Comment||n.marker===Le.Highlight||n.marker===Le.Underline?U.setAttribute("style",`position: absolute;top:${C}px;left:${P+this.delegate.iframes[0].contentDocument?.scrollingElement?.scrollLeft}px;height:${_}px; width:${_}px;`):U.setAttribute("style",`position: absolute;top:${C}px;left:${P+this.delegate.iframes[0].contentDocument?.scrollingElement?.scrollLeft}px;height:${_}px; width:${_}px;`);if(n.marker===Le.Custom||n.marker===Le.Bookmark)n.icon?.class?(U.classList.add(n.icon?.class),U.id=n.icon?.id):n.icon?.svgPath?U.innerHTML=Us(`${n.icon?.id}`,`${n.icon?.title}`,`${n.icon?.svgPath}`,"icon open",_,`${n.icon?.color} !important`):n.icon?.title&&(U.innerHTML=n.icon?.title);else if(n.note){let B=n.color;De.isHexColor(B)&&(B=De.hexToRgbChannels(B)),n.marker===Le.Comment||n.marker===Le.Highlight||n.marker===Le.Underline?U.innerHTML=Us("","",'<path d="M24 24H0V0h24v24z" fill="none"/><circle cx="12" cy="12" r="14"/>',"icon open",_/2,`rgba(${B.red}, ${B.green}, ${B.blue}, 1) !important`):U.innerHTML=Us("note-icon","Note",'<rect fill="none" height="24" width="24"/><path d="M19,5v9l-5,0l0,5H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h10l6-6V5C21,3.9,20.1,3,19,3z M12,14H7v-2h5V14z M17,10H7V8h10V10z"/>',"icon open",_,`rgba(${B.red}, ${B.green}, ${B.blue}, 1) !important`)}U.style.setProperty("pointer-events","all");let k=this;if(n.type!==qe.PageBreak&&n.type!==qe.Definition&&U.addEventListener("click",async function(B){let N;k.delegate.rights.enableAnnotations?(N=await k.delegate.annotationModule?.getAnnotationByID(n.id),k.delegate.annotationModule?.api?.selectedAnnotation(N).then(async()=>{})):k.delegate.rights.enableBookmarks&&(N=await k.delegate.bookmarkModule?.getAnnotationByID(n.id)),Mn.default.log("selected highlight "+N.id),k.lastSelectedHighlight=N.id;let W=document.getElementById("highlight-toolbox");if(W)if(W.style.top=B.clientY+(k.delegate.attributes?.navHeight??0)+"px",W.style.left=B.clientX+"px",getComputedStyle(W).display==="none"){let re=function(){k.delegate.annotationModule?.api?.addCommentToAnnotation(N).then(Se=>{k.delegate.annotationModule?.updateAnnotation(Se).then(async()=>{Mn.default.log("update highlight "+Se.id),W.style.display="none",k.selectionMenuClosed()}),W.style.display="none",k.selectionMenuClosed()})},ue=function(){k.delegate.rights.enableAnnotations?k.delegate.annotationModule?.deleteSelectedHighlight(N).then(async()=>{Mn.default.log("delete highlight "+N.id),W.style.display="none",k.selectionMenuClosed()}):k.delegate.rights.enableBookmarks&&k.delegate.bookmarkModule?.deleteSelectedHighlight(N).then(async()=>{Mn.default.log("delete highlight "+N.id),W.style.display="none",k.selectionMenuClosed()})};W.style.display="block",k.toolboxMode("edit");let be=document.getElementById("colorIcon"),fe=document.getElementById("highlightIcon");be&&(be.style.display="none"),fe&&(fe.style.display="none");let he=document.getElementById("commentIcon"),Ae=document.getElementById("cloneCommentIcon");if(Ae){let Se=Ae.parentElement;Se&&Se.removeChild(Ae)}if(he){he.style.display="none";let Se=he.cloneNode(!0),V=he.parentElement;Se.style.display="unset",Se.id="cloneCommentIcon",Se.addEventListener("click",re,!1),V&&V.append(Se)}let xe=document.getElementById("deleteIcon"),Re=document.getElementById("cloneDeleteIcon");if(Re){let Se=Re.parentElement;Se&&Se.removeChild(Re)}if(xe){xe.style.display="none";let Se=xe.cloneNode(!0),V=xe.parentElement;Se.style.display="unset",Se.id="cloneDeleteIcon",Se.addEventListener("click",ue,!1),V&&V.append(Se)}}else W.style.display="none",k.selectionMenuClosed(),W.offsetWidth,W.style.display="block";let ye=Array.from(a.querySelectorAll(`.${pn}`));k.setHighlightAreaStyle(r,ye,n)}),n.note){let B=document.createElement("span");B.innerHTML=n.note,B.className="icon-tooltip",n.marker===Le.Custom||n.marker===Le.Bookmark?(n.popup?.background&&B.style.setProperty("background",n.popup.background),n.popup?.textColor&&B.style.setProperty("color",n.popup.textColor),n.popup?.class&&B.classList.add(n.popup.class)):(B.style.setProperty("background","lightyellow"),B.style.setProperty("color","black"))}switch((n.note||n.marker===Le.Custom||n.marker===Le.Bookmark)&&a.append(U),n.type){case qe.Search:r.getElementById(Me.R2_ID_SEARCH_CONTAINER).append(a);break;case qe.ReadAloud:r.getElementById(Me.R2_ID_READALOUD_CONTAINER).append(a);break;case qe.PageBreak:r.getElementById(Me.R2_ID_PAGEBREAK_CONTAINER).append(a);break;case qe.Definition:r.getElementById(Me.R2_ID_DEFINITIONS_CONTAINER).append(a);break;default:r.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER).append(a);break}return a}addSelectionMenuItem(t){(this.properties?.selectionMenuItems??[])&&(this.properties?.selectionMenuItems??[]).push(t)}};var N4=Je(T0());A();var B8=Je(Dt());var ro={className:i=>!0,idName:i=>!0,tagName:i=>!0};var H4=Je(Ed()),Rr=Je(Dt()),Qa=class{constructor(t,n,r,o,a,l,u,d,f){this.hide=de(document,"#menu-button-hide");this.show=de(document,"#menu-button-show");this.annotator=t,this.rights=n,this.publication=r,this.headerMenu=f,this.delegate=o,this.initialAnnotations=a,this.highlighter=u,this.properties=l,this.api=d}static async create(t){let n=new this(t.annotator,t.rights||{enableAnnotations:!1,enableTTS:!1},t.publication,t.delegate,t.initialAnnotations||null,t,t.highlighter,t.api,t.headerMenu);return await n.start(),n}async stop(){Rr.default.log("Annotation module stop")}async start(){if(this.delegate.annotationModule=this,this.headerMenu&&(this.highlightsView=de(this.headerMenu,"#container-view-highlights")),this.initialAnnotations){var t=this.initialAnnotations.highlights||null;t&&this.annotator?.initAnnotations(t)}setTimeout(()=>{this.properties?.hideLayer?this.delegate.hideLayer("highlights"):this.delegate.showLayer("highlights")},10)}hideAnnotationLayer(){let t=this.delegate.iframes[0].contentDocument;if(t){let n=de(t,"#R2_ID_HIGHLIGHTS_CONTAINER");n&&(n.style.display="none")}this.show&&this.hide&&(this.show.style.display="block",this.hide.style.display="none")}showAnnotationLayer(){let t=this.delegate.iframes[0].contentDocument;if(t){let n=de(t,"#R2_ID_HIGHLIGHTS_CONTAINER");n&&(n.style.display="block")}this.show&&this.hide&&(this.show.style.display="none",this.hide.style.display="block")}async handleResize(){setTimeout(async()=>{await this.drawHighlights(),await this.showHighlights()},200)}initialize(){return new Promise(async t=>{await document.fonts.ready,this.rights.enableAnnotations&&setTimeout(()=>{this.drawHighlights(),this.showHighlights(),Z(this.delegate.iframes[0].contentDocument?.body,"click",this.click.bind(this))},300),t(null)})}click(t){if(this.activeAnnotationMarkerId){let n=this.highlighter?.properties?.selectionMenuItems?.filter(r=>r.id===this.activeAnnotationMarkerId);if(n&&n?.length>0){let r=H4.cloneDeep(n[0]);r.marker=Le.Custom,this.activeAnnotationMarkerPosition&&(r.icon.position=this.activeAnnotationMarkerPosition),r.highlight.style.default=null,r.highlight.style.hover=null;let o=this.delegate.iframes[0].contentDocument;if(o){let f=function(p){try{let E=d.delegate.iframes[0].contentDocument;return E?ln(p,E,ro):""}catch(E){return Rr.default.log("uniqueCssSelector:"),Rr.default.error(E),""}},a=this.highlighter?.dom(o.body).getSelection(),l=a.getRangeAt(0),u=a.anchorNode;l.setStart(u,l.startOffset),l.setEnd(u,l.endOffset+1),a.removeAllRanges(),a.addRange(l);let d=this,m=Pi(l,f);if(a.removeAllRanges(),m){let p={rangeInfo:m},E=this.delegate.highlighter?.createHighlight(this.delegate.highlighter?.dom(o.body).getWindow(),p,r.highlight.color,!0,Le.Bookmark,r.icon,r.popup,r.highlight.style);E&&this.saveAnnotation(E[0]).then(S=>{Rr.default.log("saved bookmark "+S.id)})}o.getSelection()?.removeAllRanges()}}}}async scrollToHighlight(t){Rr.default.log("still need to scroll to "+t);var n=await this.annotator?.getAnnotationElement(t,this.delegate.iframes[0].contentWindow);n.scrollIntoView({block:"center",behavior:"smooth"})}async updateLocalHighlight(t){if(this.annotator){let n=await this.annotator.deleteAnnotation(t.id),r=await this.addAnnotation(t);return Rr.default.log("Highlight deleted "+JSON.stringify(n)),Rr.default.log("Highlight added "+JSON.stringify(r)),await this.showHighlights(),await this.drawHighlights(),r}else return new Promise(n=>n(null))}async deleteLocalHighlight(t){if(this.annotator){var n=await this.annotator.deleteAnnotation(t);return Rr.default.log("Highlight deleted "+JSON.stringify(n)),await this.showHighlights(),await this.drawHighlights(),n}else return new Promise(r=>r(null))}async deleteAnnotation(t){await this.deleteLocalHighlight(t.id)}async addAnnotation(t){await this.annotator?.saveAnnotation(t),await this.showHighlights(),await this.drawHighlights()}async deleteHighlight(t){this.api?.deleteAnnotation?this.api?.deleteAnnotation(t).then(async()=>{this.deleteLocalHighlight(t.id)}):this.deleteLocalHighlight(t.id)}async deleteSelectedHighlight(t){this.api?.deleteAnnotation?this.api.deleteAnnotation(t).then(async()=>{this.deleteLocalHighlight(t.id)}):this.deleteLocalHighlight(t.id)}async updateAnnotation(t){this.api?.updateAnnotation?this.api.updateAnnotation(t).then(async()=>{this.updateLocalHighlight(t)}):this.updateLocalHighlight(t)}async saveAnnotation(t){if(this.annotator){var n=this.publication.getTOCItem(this.delegate.currentChapterLink.href);this.delegate.currentTocUrl&&(n=this.publication.getTOCItem(this.delegate.currentTocUrl)),n===void 0&&(n=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href));let r=this.delegate.view?.getCurrentPosition(),o=this.delegate.iframes[0].contentDocument;if(o){let a=_i(o,"body"),l=t.position?t.position/a.scrollHeight:r,u=(0,N4.v4)(),d;if(n){let f=n.Href;if(f.indexOf("#")>0&&(f=f.slice(0,f.indexOf("#"))),this.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions){let m=this.publication.positionsByHref(this.publication.getRelativeHref(this.delegate.currentChapterLink.href)),p=Math.ceil((l??0)*(m.length-1)),E=m[p];d=jt(Fe({},E),{id:u,href:f,created:new Date,title:this.delegate.currentChapterLink.title,highlight:t,text:{highlight:t.selectionInfo.cleanText}})}else d={id:u,href:f,locations:{progression:l},created:new Date,type:this.delegate.currentChapterLink.type,title:this.delegate.currentChapterLink.title,highlight:t,text:{highlight:t.selectionInfo.cleanText}}}if(d)if(this.api?.addAnnotation)try{let f=await this.api.addAnnotation(d),m=await this.annotator.saveAnnotation(f);return await this.showHighlights(),await this.drawHighlights(),new Promise(p=>p(m))}catch(f){await this.showHighlights(),await this.drawHighlights()}else{let f=await this.annotator.saveAnnotation(d);return await this.showHighlights(),await this.drawHighlights(),new Promise(m=>m(f))}}}return new Promise(r=>r(null))}getAnnotations(){let t=[];return this.annotator&&(t=this.annotator.getAnnotations()),t}showHighlights(){let t=[];this.annotator&&(t=this.annotator.getAnnotations(),t&&(t=t.filter(n=>n.highlight.marker!==Le.Bookmark),t.forEach(n=>{zt.push(n.highlight)}))),this.highlightsView&&this.createTree(fr.Annotation,t,this.highlightsView)}async drawHighlights(){if(this.rights.enableAnnotations&&this.highlighter){if(this.api){let n=[];if(this.annotator&&(n=this.annotator.getAnnotations()),this.highlighter&&n&&this.delegate.iframes[0].contentDocument?.readyState==="complete"){await this.highlighter.destroyHighlights(qe.Annotation);for(let r of n){zt.push(r.highlight);let o=r,a=this.delegate.currentChapterLink.href;var t=this.publication.getTOCItem(a);if(this.delegate.currentTocUrl!==void 0&&(t=this.publication.getTOCItem(this.delegate.currentTocUrl)),t===null&&(t=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href)),t){let l=t.Href;l.indexOf("#")>0&&(l=l.slice(0,l.indexOf("#"))),o.href===l&&(await this.highlighter.createHighlightDom(this.delegate.iframes[0].contentWindow,r.highlight),setTimeout(async()=>{if(o.highlight?.marker===Le.Underline){let u=await this.annotator?.getAnnotationPosition(r.id,this.delegate.iframes[0].contentWindow),d='<div class="comment" style="top: '+u+'px;width:20px"></div>',f=document.createElement("div");f.innerHTML=d;let m=f.childNodes[0],p=document.createElement("i");p.innerHTML="sticky_note_2",p.className="material-icons",p.style.color=o.highlight.color,m.appendChild(p),Z(f,"click",E=>{E.preventDefault(),E.stopPropagation(),this.scrollToHighlight(o.id)})}},100))}}}}else{let n=[];if(this.annotator&&(n=this.annotator.getAnnotations()),this.highlighter&&n&&this.delegate.iframes[0].contentDocument?.readyState==="complete"){await this.highlighter.destroyHighlights(qe.Annotation);for(let r of n){zt.push(r.highlight);let o=r,a=this.delegate.currentChapterLink.href,l=this.publication.getTOCItem(a);if(this.delegate.currentTocUrl&&(l=this.publication.getTOCItem(this.delegate.currentTocUrl)),l===null&&(l=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href)),l){let u=l.Href;u.indexOf("#")>0&&(u=u.slice(0,u.indexOf("#"))),o.href===u&&(await this.highlighter.createHighlightDom(this.delegate.iframes[0].contentWindow,r.highlight),setTimeout(async()=>{if(o.highlight?.marker===Le.Underline){let d=await this.annotator?.getAnnotationPosition(r.id,this.delegate.iframes[0].contentWindow),f='<div class="comment" style="top: '+d+"px;background: "+o.highlight?.color+';width:20px"></div>',m=document.createElement("div");m.innerHTML=f,m.childNodes[0].innerHTML=Ur.note,Z(m,"click",p=>{p.preventDefault(),p.stopPropagation(),this.scrollToHighlight(o.id)})}},100))}}}}this.properties?.initialAnnotationColor&&this.highlighter.setColor(this.properties?.initialAnnotationColor),this.repositionGutters()}}repositionGutters(){let t=this.delegate.iframes[0].contentDocument;if(t&&(this.commentGutter=t.getElementById(Me.R2_ID_GUTTER_RIGHT_CONTAINER),this.delegate.view?.isScrollMode()&&this.properties?.enableComments?this.commentGutter.style.removeProperty("display"):this.commentGutter.style.setProperty("display","none"),this.commentGutter&&this.delegate.view?.isScrollMode())){this.commentGutter.innerHTML="";let n=[];this.annotator&&(n=this.annotator.getAnnotations(),n&&(n=n.filter(r=>r.highlight?.note?.length>0),n=this.syncPosition(n),n=this.reposition(n),n.forEach(r=>{let o=document.createElement("i");o.innerHTML="sticky_note_2",o.className="material-icons",o.style.color=r.highlight.color;let a=t.getElementById("R2_ID_HIGHLIGHTS_CONTAINER"),l,u;a&&(l=a.querySelector(`#${r.highlight.id}`)),u=l.getElementsByClassName(pn)[0];let f=parseInt(u.style.height.replace("px","")),m=r.highlight.position,p=t.createElement("div");p.setAttribute("style",`position: absolute;top:${m}px;display: flex;max-width: 250px !important;height:${f}px;width: 200px;align-items: center;`);let E=t.createElement("div");p.appendChild(E);let S=r.highlight.color;De.isHexColor(S)&&(S=De.hexToRgbChannels(S)),p.innerHTML=Us("","",'<path d="M24 24H0V0h24v24z" fill="none"/><circle cx="12" cy="12" r="8"/>',"icon open",10,`rgba(${S.red}, ${S.green}, ${S.blue}, 1) !important`);let v=t.createElement("div");v.innerHTML=r.highlight?.note,v.setAttribute("style",`height:${f}px;overflow: hidden;padding-left: 5px;`),p.appendChild(v),Z(p,"click",y=>{y.preventDefault(),y.stopPropagation(),this.scrollToHighlight(r.highlight.id)}),this.commentGutter?.appendChild(p)})))}}createTree(t,n,r){if(n){let o=this,a=this.publication.readingOrder;if(a.length){let l=(u,d)=>{let f=document.createElement("ul");f.className="sidenav-annotations";for(let m of d){let p=document.createElement("li"),E=document.createElement("a"),S=document.createElement("span");if(E.tabIndex=-1,E.className="chapter-link",m.Href){let y=this.publication.getAbsoluteHref(m.Href),b=this.publication.getTOCItemAbsolute(y);E.href=y,E.innerHTML=b?.Title||"",p.appendChild(E)}else S.innerHTML=m.Title||"",S.className="chapter-title",p.appendChild(S);Z(E,"click",y=>{y.preventDefault(),y.stopPropagation();let b={href:E.href,locations:{progression:0},type:m.TypeLink,title:E.title};this.delegate.stopReadAloud(),this.delegate.navigate(b)});let v=document.createElement("ol");n.forEach(function(y){let b=m.Href.indexOf("#")!==-1?m.Href.slice(0,m.Href.indexOf("#")):m.Href;if(m.Href&&y.href.endsWith(b)){let w=document.createElement("li");w.className="annotation-item";let O=document.createElement("a");if(O.setAttribute("href",y.href),t===fr.Annotation){O.className="highlight-link";let C=document.createElement("span"),_=document.createElement("span");if(C.className="title",_.innerHTML=y.highlight.selectionInfo.cleanText,y.highlight?.marker===Le.Underline)if(typeof y.highlight?.color=="object"){let I=y.highlight?.color;I&&_.style.setProperty("border-bottom",`2px solid ${De.hexToRgbA(I)}`,"important")}else _.style.setProperty("border-bottom",`2px solid ${y.highlight?.color}`,"important");else if(typeof y.highlight?.color=="object"){let I=y.highlight?.color;I&&(_.style.backgroundColor=De.hexToRgbA(I))}else{let I=y.highlight?.color;I&&(_.style.backgroundColor=I)}C.appendChild(_),O.appendChild(C);let P=document.createElement("span"),D=Math.round((y.locations.progression??0)*100)+"% through resource";P.className="subtitle",P.innerHTML=D,O.appendChild(P)}let T=document.createElement("span");if(T.className="timestamp",T.innerHTML=Qa.readableTimestamp(y.created),O.appendChild(T),Z(O,"click",C=>{C.preventDefault(),C.stopPropagation(),o.handleAnnotationLinkClick(C,y)}),w.appendChild(O),o.delegate.sideNavExpanded){let C=document.createElement("button");C.className="delete",C.innerHTML=Ur.delete,Z(C,"click",_=>{_.preventDefault(),_.stopPropagation(),o.handleAnnotationLinkDeleteClick(t,_,y)}),w.appendChild(C)}v.appendChild(w)}}),v.children.length>0&&(f.appendChild(p),f.appendChild(v)),f.children.length>0&&u.appendChild(f),m.Children&&m.Children.length>0&&l(u,m.Children)}};r.innerHTML="",l(r,a)}}}handleAnnotationLinkClick(t,n){n?(n.href=this.publication.getAbsoluteHref(n.href),this.delegate.stopReadAloud(),this.delegate.navigate(n)):Rr.default.log("annotation data missing: ",t)}handleAnnotationLinkDeleteClick(t,n,r){Rr.default.log("annotation data locator: ",r),r?t===fr.Annotation&&this.deleteHighlight(r):Rr.default.log("annotation data missing: ",n)}static readableTimestamp(t){let n=new Date(t);return n.toDateString()+" "+n.toLocaleTimeString()}async getAnnotation(t){return this.annotator?.getAnnotation(t)}async getAnnotationByID(t){return this.annotator?.getAnnotationByID(t)}syncPosition(t){let n=this.delegate.iframes[0].contentDocument,r=(o,a)=>{let l=n.getElementById("R2_ID_HIGHLIGHTS_CONTAINER"),u,d;l&&(u=l.querySelector(`#${a.highlight.id}`)),d=u.getElementsByClassName(pn)[0];let m=parseInt(d.style.top.replace("px","")),p=jt(Fe({},a),{highlight:jt(Fe({},a.highlight),{position:m})});return[...o,p]};return t.reduce(r,[])}reposition(t){let n=this.delegate.iframes[0].contentDocument,r=(o,a,l)=>{let u=t[0],d=n.getElementById("R2_ID_HIGHLIGHTS_CONTAINER"),f,m;d&&(f=d.querySelector(`#${u.highlight.id}`)),m=f.getElementsByClassName(pn)[0];let E=parseInt(m.style.height.replace("px","")),S=a.highlight.position,v=o[l-1]&&o[l-1].highlight.position,b=l===0?0:v+E+0,w=b>S?b:S,O=jt(Fe({},a),{highlight:jt(Fe({},a.highlight),{position:w})});return[...o,O]};return t.sort(function(o,a){return o.highlight.position-a.highlight.position}).reduce(r,[])}};A();var C0=Je(T0());var Mr=Je(Dt()),el=class{static async create(t){let n=new this(t.annotator,t.rights||{enableBookmarks:!1},t.publication,t.delegate,t,t.initialAnnotations,t.api,t.headerMenu);return await n.start(),new Promise(r=>r(n))}constructor(t,n,r,o,a,l,u,d){this.annotator=t,this.rights=n,this.publication=r,this.headerMenu=d,this.delegate=o,this.initialAnnotations=l,this.properties=a,this.api=u}stop(){Mr.default.log("Bookmark module stop")}async start(){if(this.delegate.bookmarkModule=this,this.headerMenu&&(this.bookmarksView=de(this.headerMenu,"#container-view-bookmarks")),this.headerMenu&&(this.sideNavSectionBookmarks=de(this.headerMenu,"#sidenav-section-bookmarks")),this.headerMenu){let t=de(this.headerMenu,"#menu-button-bookmark");t&&t.parentElement?.style.removeProperty("display"),t&&Z(t,"click",this.saveBookmark.bind(this))}if(this.initialAnnotations){let t=this.initialAnnotations.bookmarks||null;t&&this.annotator?.initBookmarks(t)}await this.showBookmarks(),await this.drawBookmarks(),setTimeout(()=>{this.properties.hideLayer?this.delegate.hideLayer("highlights"):this.delegate.showLayer("highlights")},10)}async handleResize(){setTimeout(async()=>{await this.drawBookmarks(),await this.showBookmarks()},100)}initialize(){return new Promise(async t=>{await document.fonts.ready,this.rights.enableBookmarks&&setTimeout(()=>{this.drawBookmarks(),this.showBookmarks()},300),t(null)})}async deleteBookmark(t){if(this.annotator)if(this.api?.deleteBookmark){await this.api?.deleteBookmark(t);let n=await this.annotator.deleteBookmark(t);return Mr.default.log("Bookmark deleted "+JSON.stringify(n)),await this.showBookmarks(),await this.drawBookmarks(),n}else{let n=await this.annotator.deleteBookmark(t);return Mr.default.log("Bookmark deleted "+JSON.stringify(n)),await this.showBookmarks(),await this.drawBookmarks(),n}else return new Promise(n=>n(null))}async saveBookmarkPlus(){await this.addBookmarkPlus()}async saveBookmark(){if(this.annotator){var t=this.publication.getTOCItem(this.delegate.currentChapterLink.href);if(this.delegate.currentTocUrl&&(t=this.publication.getTOCItem(this.delegate.currentTocUrl)),t===void 0&&(t=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href)),t){let n=t.Href;n.indexOf("#")>0&&(n=n.slice(0,n.indexOf("#")));let r=this.delegate.view?.getCurrentPosition(),o=(0,C0.v4)(),a;if(this.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions){let l=this.publication.positionsByHref(this.publication.getRelativeHref(this.delegate.currentChapterLink.href)),u=Math.ceil((r??0)*(l.length-1)),d=l[u];a=jt(Fe({},d),{id:o,href:n,created:new Date,title:this.delegate.currentChapterLink.title})}else a={id:o,href:n,locations:{progression:r},created:new Date,type:this.delegate.currentChapterLink.type,title:this.delegate.currentChapterLink.title};if(!this.annotator.locatorExists(a,fr.Bookmark))if(this.api?.addBookmark){let l=await this.api.addBookmark(a);l&&(a=l),Mr.default.log(a);let u=this.annotator.saveBookmark(a);return Mr.default.log("Bookmark added "+JSON.stringify(u)),this.showBookmarks(),await this.drawBookmarks(),u}else{let l=this.annotator.saveBookmark(a);return Mr.default.log("Bookmark added "+JSON.stringify(l)),this.showBookmarks(),await this.drawBookmarks(),l}}}}async addBookmarkPlus(){let t=this,n=this.delegate.highlighter?.visibleTextRects[0],r=this.delegate.iframes[0].contentDocument;if(r){let u=this.delegate.highlighter?.dom(r.body).getWindow().document.createRange(),d=this.delegate.highlighter?.dom(this.delegate.iframes[0].contentDocument?.body).getSelection();d.removeAllRanges(),n&&u.selectNodeContents(n.node),d.addRange(u);let f=yd(u,!1),m=0;for(let p of f){if(!this.delegate.highlighter?.isOutsideViewport(p)){let E=d.focusNode,S=d.focusOffset;d.collapse(d.anchorNode,d.anchorOffset);for(let w=0;w<m;w++)d.modify("move","forward","line");d.extend(E,S);let v=d.focusNode,y=d.focusNode.length;d.collapse(d.anchorNode,d.anchorOffset);let b=y;d.anchorOffset>y?b=y:b=d.anchorOffset+1,d.modify("move","forward","character"),d.modify("move","backward","word"),d.extend(v,b),d.modify("extend","backward","character"),d.modify("extend","forward","word");break}m++}}function o(u){let d={},f=t.delegate.iframes[0].contentDocument;if(f)return ln(u,t.delegate.highlighter?.dom(f.body).getDocument(),d)}let a=this.delegate.iframes[0].contentWindow,l={id:"bookmarkIcon",marker:Le.Bookmark,icon:{id:"bookmarkIcon",title:"Bookmark",svgPath:'<path d="M0 0h24v24H0V0z" fill="none"/><path d="M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"/>',color:"#000000",position:"left"},popup:{background:"#000000",textColor:"#ffffff"},highlight:{color:"#000000",style:{default:[{property:"border-bottom",value:"0px dashed #000000",priority:"important"}]}}};if(a!==null){let u=oi(a,o);if(u===void 0){let f=t.delegate.iframes[0].contentDocument;u=this.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(f)}let d=t.delegate.iframes[0].contentDocument;if(u&&d){let f=this.delegate.highlighter?.createHighlight(this.delegate.highlighter?.dom(d.body).getWindow(),u,l.highlight?.color,!0,Le.Bookmark,l.icon,l.popup,l.highlight?.style);if(this.delegate.iframes[0].contentDocument?.getSelection()?.removeAllRanges(),f)return this.saveAnnotation(f[0]).then(m=>{Mr.default.log("saved bookmark "+m?.id)})}}}async saveAnnotation(t){if(this.annotator){var n=this.publication.getTOCItem(this.delegate.currentChapterLink.href);this.delegate.currentTocUrl&&(n=this.publication.getTOCItem(this.delegate.currentTocUrl)),n===null&&(n=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href));let r=this.delegate.view?.getCurrentPosition(),o=this.delegate.iframes[0].contentDocument;if(o){let a=_i(o,"body"),l=t.position?t.position/a.scrollHeight:r,u=(0,C0.v4)(),d;if(n){let f=n.Href;if(f.indexOf("#")>0&&(f=f.slice(0,f.indexOf("#"))),this.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions){let m=this.publication.positionsByHref(this.publication.getRelativeHref(this.delegate.currentChapterLink.href)),p=Math.ceil((l??0)*(m.length-1)),E=m[p];d=jt(Fe({},E),{id:u,href:f,created:new Date,title:this.delegate.currentChapterLink.title,highlight:t,text:{highlight:t.selectionInfo.cleanText}})}else d={id:u,href:f,locations:{progression:l},created:new Date,type:this.delegate.currentChapterLink.type,title:this.delegate.currentChapterLink.title,highlight:t,text:{highlight:t.selectionInfo.cleanText}}}if(d)if(this.api?.addBookmark){let f=await this.api.addBookmark(d),m=await this.annotator.saveAnnotation(f);return await this.showBookmarks(),await this.drawBookmarks(),new Promise(p=>p(m))}else{let f=await this.annotator.saveAnnotation(d);return await this.showBookmarks(),await this.drawBookmarks(),new Promise(m=>m(f))}}}return new Promise(r=>r(void 0))}getBookmarks(){let t=[];return this.annotator&&(t=this.annotator.getBookmarks()),t}showBookmarks(){let t=[];this.annotator&&(t=this.annotator.getBookmarks());let n=[];this.annotator&&(n=this.annotator.getAnnotations(),n&&(n=n.filter(r=>r.highlight.marker===Le.Bookmark),t?t.push.apply(t,n):t=n)),this.bookmarksView&&this.createTree(fr.Bookmark,t,this.bookmarksView)}async drawBookmarks(){if(this.rights.enableBookmarks&&this.delegate.highlighter)if(this.api){let n=[];if(this.annotator&&(n=await this.annotator.getAnnotations()),this.delegate.highlighter&&n&&this.delegate.iframes[0].contentDocument?.readyState==="complete"){await this.delegate.highlighter.destroyHighlights(qe.Annotation);for(let r of n){zt.push(r.highlight);let o=r,a=this.delegate.currentChapterLink.href;var t=this.publication.getTOCItem(a);if(this.delegate.currentTocUrl&&(t=this.publication.getTOCItem(this.delegate.currentTocUrl)),t===void 0&&(t=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href)),t){let l=t.Href;l.indexOf("#")>0&&(l=l.slice(0,l.indexOf("#"))),o.href===l&&await this.delegate.highlighter.createHighlightDom(this.delegate.iframes[0].contentWindow,r.highlight)}}}}else{let n=[];if(this.annotator&&(n=await this.annotator.getAnnotations()),this.delegate.highlighter&&n&&this.delegate.iframes[0].contentDocument?.readyState==="complete"){await this.delegate.highlighter.destroyHighlights(qe.Annotation);for(let r of n){zt.push(r.highlight);let o=r,a=this.delegate.currentChapterLink.href,l=this.publication.getTOCItem(a);if(this.delegate.currentTocUrl&&(l=this.publication.getTOCItem(this.delegate.currentTocUrl)),l===void 0&&(l=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href)),l){let u=l.Href;u.indexOf("#")>0&&(u=u.slice(0,u.indexOf("#"))),o.href===u&&await this.delegate.highlighter.createHighlightDom(this.delegate.iframes[0].contentWindow,r.highlight)}}}}}async deleteSelectedHighlight(t){this.api?.deleteBookmark?this.api.deleteBookmark(t).then(async()=>{this.deleteLocalHighlight(t.id)}):this.deleteLocalHighlight(t.id)}async deleteLocalHighlight(t){if(this.annotator){var n=await this.annotator.deleteAnnotation(t);return Mr.default.log("Highlight deleted "+JSON.stringify(n)),await this.showBookmarks(),await this.drawBookmarks(),n}else return new Promise(r=>r(null))}createTree(t,n,r){if(n){let o=this,a=this.publication.readingOrder;if(a.length){let l=(u,d)=>{let f=document.createElement("ul");f.className="sidenav-annotations";for(let m of d){let p=document.createElement("li"),E=document.createElement("a"),S=document.createElement("span");if(E.tabIndex=-1,E.className="chapter-link",m.Href){let y=this.publication.getAbsoluteHref(m.Href),b=this.publication.getTOCItemAbsolute(y);E.href=y,E.innerHTML=b?.Title||"",p.appendChild(E)}else S.innerHTML=m.Title||"",S.className="chapter-title",p.appendChild(S);Z(E,"click",y=>{y.preventDefault(),y.stopPropagation();let b={href:E.href,locations:{progression:0},type:m.TypeLink,title:E.title};this.delegate.stopReadAloud(),this.delegate.navigate(b)});let v=document.createElement("ol");n.forEach(function(y){let b=m.Href.indexOf("#")!==-1?m.Href.slice(0,m.Href.indexOf("#")):m.Href;if(m.Href&&y.href.endsWith(b)){let w=document.createElement("li");w.className="annotation-item";let O=document.createElement("a");if(O.setAttribute("href",y.href),t===fr.Bookmark){O.className="bookmark-link";let C=document.createElement("span"),_=Math.round((y.locations.progression??0)*100)+"% through resource";C.className="title",C.innerHTML=_,O.appendChild(C)}let T=document.createElement("span");if(T.className="timestamp",T.innerHTML=el.readableTimestamp(y.created),O.appendChild(T),Z(O,"click",C=>{C.preventDefault(),C.stopPropagation(),o.handleAnnotationLinkClick(C,y)}),w.appendChild(O),o.delegate.sideNavExpanded){let C=document.createElement("button");C.className="delete",C.innerHTML=Ur.delete,Z(C,"click",_=>{_.preventDefault(),_.stopPropagation(),o.handleAnnotationLinkDeleteClick(t,_,y)}),w.appendChild(C)}v.appendChild(w)}}),v.children.length>0&&(f.appendChild(p),f.appendChild(v)),f.children.length>0&&u.appendChild(f),m.Children&&m.Children.length>0&&l(u,m.Children)}};r.innerHTML="",l(r,a)}}}handleAnnotationLinkClick(t,n){n?(n.href=this.publication.getAbsoluteHref(n.href),this.delegate.stopReadAloud(),this.delegate.navigate(n)):Mr.default.log("bookmark data missing: ",t)}handleAnnotationLinkDeleteClick(t,n,r){Mr.default.log("bookmark data locator: ",r),r?t===fr.Bookmark&&this.deleteBookmark(r):Mr.default.log("bookmark data missing: ",n)}static readableTimestamp(t){let n=new Date(t);return n.toDateString()+" "+n.toLocaleTimeString()}async getAnnotation(t){return this.annotator?.getAnnotation(t)}async getAnnotationByID(t){return this.annotator?.getAnnotationByID(t)}};A();var D4=Je(j4());A();var Vn=Je(Dt()),R0="r2-mo-active",qo=class{},Ne=qo;Ne.COLOR_REF="color",Ne.AUTO_SCROLL_REF="autoscroll",Ne.AUTO_TURN_REF="autoturn",Ne.VOLUME_REF="volume",Ne.RATE_REF="rate",Ne.COLOR_KEY="mediaoverlay-"+qo.COLOR_REF,Ne.AUTO_SCROLL_KEY="mediaoverlay-"+qo.AUTO_SCROLL_REF,Ne.AUTO_TURN_KEY="mediaoverlay-"+qo.AUTO_TURN_REF,Ne.VOLUME_KEY="mediaoverlay-"+qo.VOLUME_REF,Ne.RATE_KEY="mediaoverlay-"+qo.RATE_REF;var M0=class{constructor(t,n,r){this.MEDIAOVERLAYSETTINGS="mediaOverlaySetting";this.color="r2-mo-active";this.autoScroll=!0;this.autoTurn=!0;this.volume=1;this.rate=1;this.playing=!1;this.resourceReady=!1;this.wait=1;this.settingsChangeCallback=()=>{};this.store=t,this.api=n,this.headerMenu=r,this.initialise(),Vn.default.log(this.api)}static create(t){let n=new this(t.store,t.api,t.headerMenu);if(t.initialMediaOverlaySettings){let r=t.initialMediaOverlaySettings;r?.color&&(n.color=r.color,Vn.default.log(n.color)),r?.autoScroll&&(n.autoScroll=r.autoScroll,Vn.default.log(n.autoScroll)),r?.autoTurn&&(n.autoTurn=r.autoTurn,Vn.default.log(n.autoScroll)),r?.volume&&(n.volume=r.volume,Vn.default.log(n.volume)),r?.rate&&(n.rate=r.rate,Vn.default.log(n.rate)),r?.wait&&(n.wait=r.wait,Vn.default.log(n.wait))}return n.initializeSelections(),n}stop(){Vn.default.log("MediaOverlay settings stop")}initialise(){this.autoScroll=this.getProperty(Ne.AUTO_SCROLL_KEY)!=null?this.getProperty(Ne.AUTO_SCROLL_KEY).value:this.autoScroll,this.autoTurn=this.getProperty(Ne.AUTO_TURN_KEY)!=null?this.getProperty(Ne.AUTO_TURN_KEY).value:this.autoTurn,this.color=this.getProperty(Ne.COLOR_KEY)!=null?this.getProperty(Ne.COLOR_KEY).value:this.color,this.volume=this.getProperty(Ne.VOLUME_KEY)!=null?this.getProperty(Ne.VOLUME_KEY).value:this.volume,this.rate=this.getProperty(Ne.RATE_KEY)!=null?this.getProperty(Ne.RATE_KEY).value:this.rate,this.userProperties=this.getMediaOverlaySettings()}reset(){this.color="redtext",this.autoScroll=!0,this.autoTurn=!0,this.volume=1,this.rate=1,this.wait=1,this.userProperties=this.getMediaOverlaySettings()}initializeSelections(){this.headerMenu&&(this.settingsView=de(this.headerMenu,"#container-view-mediaoverlay-settings"))}setControls(){this.settingsView&&this.renderControls(this.settingsView)}renderControls(t){this.headerMenu&&(this.speechAutoTurn=de(this.headerMenu,"#mediaOverlayAutoTurn")),this.headerMenu&&(this.speechAutoScroll=de(this.headerMenu,"#mediaOverlayAutoScroll")),this.headerMenu&&(this.speechVolume=de(this.headerMenu,"#mediaOverlayVolume")),this.headerMenu&&(this.speechRate=de(this.headerMenu,"#mediaOverlayRate")),this.speechAutoScroll&&(this.speechAutoScroll.checked=this.autoScroll),this.speechAutoTurn&&(this.speechAutoTurn.checked=this.autoTurn),this.speechVolume&&(this.speechVolume.value=this.volume.toString()),this.speechRate&&(this.speechRate.value=this.volume.toString()),Z(de(t,"ul"),"click",n=>{n.stopPropagation()})}onSettingsChange(t){this.settingsChangeCallback=t}storeProperty(t){this.updateUserSettings(),this.saveProperty(t)}updateUserSettings(){let t={color:this.userProperties.getByRef(Ne.COLOR_REF)?.value,autoScroll:this.userProperties.getByRef(Ne.AUTO_SCROLL_REF)?.value,autoTurn:this.userProperties.getByRef(Ne.AUTO_TURN_REF)?.value,volume:this.userProperties.getByRef(Ne.VOLUME_REF)?.value,rate:this.userProperties.getByRef(Ne.RATE_REF)?.value};this.applyMediaOverlaySettings(t),this.api?.updateSettings&&this.api?.updateSettings(t).then(async n=>{Vn.default.log("api updated sync settings",n)})}getMediaOverlaySettings(){let t=new xi;return t.addSwitchable("mediaoverlay-auto-scroll-off","mediaoverlay-auto-scroll-on",this.autoScroll,Ne.AUTO_SCROLL_REF,Ne.AUTO_SCROLL_KEY),t.addSwitchable("mediaoverlay-auto-turn-off","mediaoverlay-auto-turn-on",this.autoTurn,Ne.AUTO_TURN_REF,Ne.AUTO_TURN_KEY),t.addStringable(this.color,Ne.COLOR_REF,Ne.COLOR_KEY),t.addIncremental(this.volume,.1,1,.1,"",Ne.VOLUME_REF,Ne.VOLUME_KEY),t.addIncremental(this.rate,.1,3,.1,"",Ne.RATE_REF,Ne.RATE_KEY),t}saveProperty(t){let n=this.store.get(this.MEDIAOVERLAYSETTINGS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.name!==t.name),r.push(t),this.store.set(this.MEDIAOVERLAYSETTINGS,JSON.stringify(r))}else{let r=[];r.push(t),this.store.set(this.MEDIAOVERLAYSETTINGS,JSON.stringify(r))}return t}getProperty(t){let n=this.store.get(this.MEDIAOVERLAYSETTINGS);if(n){let r=JSON.parse(n);return r=r.filter(o=>o.name===t),r.length===0?null:r[0]}return null}resetMediaOverlaySettings(){this.store.remove(this.MEDIAOVERLAYSETTINGS),this.reset(),this.settingsChangeCallback()}applyMediaOverlaySettings(t){if(t.color){this.color=t.color;let n=this.userProperties.getByRef(Ne.COLOR_REF);n&&(n.value=this.color,this.saveProperty(n)),this.settingsChangeCallback()}if(t.autoScroll!==void 0){Vn.default.log("autoScroll "+this.autoScroll),this.autoScroll=t.autoScroll;let n=this.userProperties.getByRef(Ne.AUTO_SCROLL_REF);n&&(n.value=this.autoScroll,this.saveProperty(n)),this.settingsChangeCallback()}if(t.autoTurn!==void 0){Vn.default.log("autoTurn "+this.autoTurn),this.autoTurn=t.autoTurn;let n=this.userProperties.getByRef(Ne.AUTO_TURN_REF);n&&(n.value=this.autoTurn,this.saveProperty(n)),this.settingsChangeCallback()}if(t.volume){Vn.default.log("volume "+this.volume),this.volume=t.volume;let n=this.userProperties.getByRef(Ne.VOLUME_REF);n&&(n.value=this.volume,this.saveProperty(n)),this.settingsChangeCallback()}if(t.rate){Vn.default.log("rate "+this.rate),this.rate=t.rate;let n=this.userProperties.getByRef(Ne.RATE_REF);n&&(n.value=this.rate,this.saveProperty(n)),this.settingsChangeCallback()}}applyMediaOverlaySetting(t,n){if(t===Ne.COLOR_REF){this.color=n;let r=this.userProperties.getByRef(Ne.COLOR_REF);r&&(r.value=this.color,this.saveProperty(r)),this.settingsChangeCallback()}else if(t===Ne.AUTO_SCROLL_REF){this.autoScroll=n;let r=this.userProperties.getByRef(Ne.AUTO_SCROLL_REF);r&&(r.value=this.autoScroll,this.saveProperty(r)),this.settingsChangeCallback()}else if(t===Ne.AUTO_TURN_REF){this.autoTurn=n;let r=this.userProperties.getByRef(Ne.AUTO_TURN_REF);r&&(r.value=this.autoTurn,this.saveProperty(r)),this.settingsChangeCallback()}}increase(t){if(t==="mo_volume"){this.userProperties.getByRef(Ne.VOLUME_REF).increment(),this.volume=this.userProperties.getByRef(Ne.VOLUME_REF)?.value;let n=this.userProperties.getByRef(Ne.VOLUME_REF);n&&this.storeProperty(n),this.settingsChangeCallback()}else if(t==="mo_rate"){this.userProperties.getByRef(Ne.RATE_REF).increment(),this.rate=this.userProperties.getByRef(Ne.RATE_REF)?.value;let n=this.userProperties.getByRef(Ne.RATE_REF);n&&this.storeProperty(n),this.settingsChangeCallback()}}decrease(t){if(t==="mo_volume"){this.userProperties.getByRef(Ne.VOLUME_REF).decrement(),this.volume=this.userProperties.getByRef(Ne.VOLUME_REF)?.value;let n=this.userProperties.getByRef(Ne.VOLUME_REF);n&&this.storeProperty(n),this.settingsChangeCallback()}else if(t==="mo_rate"){this.userProperties.getByRef(Ne.RATE_REF).decrement(),this.rate=this.userProperties.getByRef(Ne.RATE_REF)?.value;let n=this.userProperties.getByRef(Ne.RATE_REF);n&&this.storeProperty(n),this.settingsChangeCallback()}}};var He=Je(Dt()),P0=class{constructor(t,n,r,o){this.play=de(document,"#menu-button-play");this.pause=de(document,"#menu-button-pause");this.currentLinkIndex=0;this.pid=void 0;this.__ontimeupdate=!1;this.ontimeupdate=async t=>{He.default.log("ontimeupdate"),this.trackCurrentTime()};this.ensureOnTimeUpdate=(t,n)=>{t?this.__ontimeupdate&&(this.__ontimeupdate=!1,this.audioElement&&this.audioElement.removeEventListener("timeupdate",this.ontimeupdate),cancelAnimationFrame(this.myReq)):(!this.__ontimeupdate||n)&&(this.__ontimeupdate=!0,n&&(this.audioElement&&this.audioElement.removeEventListener("timeupdate",this.ontimeupdate),this.audioElement.addEventListener("timeupdate",this.ontimeupdate)))};this.delegate=t,this.publication=n,this.settings=r,this.properties=o}static create(t){let n=new this(t.delegate,t.publication,t.settings,t);return n.start(),n}stop(){He.default.log("MediaOverlay module stop")}start(){this.delegate.mediaOverlayModule=this,He.default.log("MediaOverlay module start")}async initialize(){return new Promise(async t=>{await document.fonts.ready,this.settings.setControls(),this.settings.onSettingsChange(()=>{this.audioElement.volume=this.settings.volume,this.audioElement.playbackRate=this.settings.rate}),t()})}async initializeResource(t){this.currentLinks=t,this.currentLinkIndex=0,await this.playLink()}async playLink(){let t=this.currentLinks[this.currentLinkIndex];if(t?.Properties?.MediaOverlay){this.ensureOnTimeUpdate(!1,!1);let n=t.Properties?.MediaOverlay,o=new URL(n,this.publication.manifestUrl).toString(),a;try{a=await fetch(o,this.delegate.requestConfig)}catch(f){console.error(f,o);return}a.ok||He.default.log("BAD RESPONSE?!");let l;try{l=await a.json()}catch(f){console.error(f)}if(!l){He.default.log("## moJson"+l);return}t.MediaOverlays=Cs(l,D4.MediaOverlayNode),t.MediaOverlays.initialized=!0;let u=t.HrefDecoded||t.Href,d=new URL("https://dita.digital/"+u);await this.playMediaOverlays(d.pathname.substr(1),t.MediaOverlays,void 0)}else this.audioElement&&await this.audioElement.pause(),this.currentLinks.length>1&&this.currentLinkIndex===0?(this.currentLinkIndex++,await this.playLink()):this.settings.autoTurn&&this.settings.playing?(this.audioElement&&await this.audioElement.pause(),this.delegate.nextResource()):await this.stopReadAloud()}async startReadAloud(){if(this.delegate.rights.enableMediaOverlays){if(this.settings.playing=!0,this.audioElement&&this.currentLinks[this.currentLinkIndex]?.Properties.MediaOverlay){let t=this.currentAudioBegin?this.currentAudioBegin:0;this.audioElement.currentTime=t,await this.audioElement.play(),this.ensureOnTimeUpdate(!1,!0),this.audioElement.volume=this.settings.volume,this.audioElement.playbackRate=this.settings.rate}else this.currentLinks.length>1&&this.currentLinkIndex===0?(this.currentLinkIndex++,await this.playLink()):this.settings.autoTurn&&this.settings.playing?this.delegate.nextResource():await this.stopReadAloud();this.play&&(this.play.style.display="none"),this.pause&&this.pause.style.removeProperty("display")}}async stopReadAloud(){this.delegate.rights.enableMediaOverlays&&(this.settings.playing=!1,this.audioElement.pause(),this.play&&this.play.style.removeProperty("display"),this.pause&&(this.pause.style.display="none"))}pauseReadAloud(){this.delegate.rights.enableMediaOverlays&&(this.settings.playing=!1,this.audioElement.pause(),this.play&&this.play.style.removeProperty("display"),this.pause&&(this.pause.style.display="none"))}async resumeReadAloud(){this.delegate.rights.enableMediaOverlays&&(this.settings.playing=!0,await this.audioElement.play(),this.play&&(this.play.style.display="none"),this.pause&&this.pause.style.removeProperty("display"))}findDepthFirstTextAudioPair(t,n,r){He.default.log("findDepthFirstTextAudioPair()");let o,a;if(n.Text){let d=new URL("https://dita.digital/"+n.Text);if(d.pathname.substr(1)===t){if(o=!0,d.hash&&r){a=!1;let f=d.hash.substr(1);for(let m of r)if(m===f){a=!0;break}}}else o=!1}if(He.default.log("isFragmentIDMatch: "+a),He.default.log("isTextUrlMatch: "+o),!n.Children||!n.Children.length){if(He.default.log("findDepthFirstTextAudioPair() - leaf text/audio pair"),!o){He.default.log("findDepthFirstTextAudioPair() - leaf - !isTextUrlMatch");return}return a||o&&!r?(He.default.log("findDepthFirstTextAudioPair() - leaf - isFragmentIDMatch || (isTextUrlMatch && !textFragmentIDChain"),n):void 0}let l=r,u=r;for(let d of n.Children){He.default.log("findDepthFirstTextAudioPair() - child"),He.default.log(JSON.stringify(d));let f=this.findDepthFirstTextAudioPair(t,d,u);if(f===null&&(He.default.log("findDepthFirstTextAudioPair() - child - match null (skip)"),u=void 0),f)return He.default.log("findDepthFirstTextAudioPair() - child - match"),He.default.log(JSON.stringify(f)),f}if(a){He.default.log("findDepthFirstTextAudioPair() - post isFragmentIDMatch");let d=this.findDepthFirstTextAudioPair(t,n,void 0);return d&&(He.default.log("findDepthFirstTextAudioPair() - post isFragmentIDMatch - match"),He.default.log(JSON.stringify(d)),d)}if(l&&!u)return null}trackCurrentTime(){if(cancelAnimationFrame(this.myReq),this.mediaOverlayTextAudioPair)try{this.currentAudioEnd&&this.audioElement.currentTime>=this.currentAudioEnd-.05&&(He.default.log("ontimeupdate - mediaOverlaysNext()"),this.mediaOverlaysNext());let t=this.mediaOverlayTextAudioPair.Text.lastIndexOf("#"),n=this.mediaOverlayTextAudioPair.Text.substr(t+1);this.mediaOverlayHighlight(n),this.myReq=requestAnimationFrame(this.trackCurrentTime.bind(this))}catch(t){}}mediaOverlaysNext(t){if(He.default.log("mediaOverlaysNext()"),this.mediaOverlayRoot&&this.mediaOverlayTextAudioPair){let n=this.findNextTextAudioPair(this.mediaOverlayRoot,this.mediaOverlayTextAudioPair,{prev:void 0},!!t);if(!n)He.default.log("mediaOverlaysNext() - navLeftOrRight()"),this.mediaOverlaysStop(),this.currentLinks.length>1&&this.currentLinkIndex===0?(this.currentLinkIndex++,this.playLink()):(this.audioElement.pause(),this.settings.autoTurn&&this.settings.playing?(this.audioElement.pause(),this.delegate.nextResource()):this.stopReadAloud());else{let r=!1;if(this.mediaOverlayTextAudioPair.Text&&n.Text){let o=new URL("https://dita.digital/"+this.mediaOverlayTextAudioPair.Text),a=new URL("https://dita.digital/"+n.Text);o.pathname!==a.pathname&&(He.default.log("mediaOverlaysNext() SWITCH! "+o.pathname+" != "+a.pathname),r=!0)}r?this.mediaOverlaysStop():(He.default.log("mediaOverlaysNext() - playMediaOverlaysAudio()"),setTimeout(async()=>{await this.playMediaOverlaysAudio(n,void 0,void 0)},0))}}else He.default.log("mediaOverlaysNext() - navLeftOrRight() 2"),this.mediaOverlaysStop(),this.currentLinks.length>1&&this.currentLinkIndex===0?(this.currentLinkIndex++,this.playLink()):(this.audioElement.pause(),this.settings.autoTurn&&this.settings.playing?(this.audioElement.pause(),this.delegate.nextResource()):this.stopReadAloud())}mediaOverlaysStop(){He.default.log("mediaOverlaysStop()"),this.mediaOverlaysPause(),this.mediaOverlayRoot=void 0,this.mediaOverlayTextAudioPair=void 0}mediaOverlaysPause(){He.default.log("mediaOverlaysPause()"),this.mediaOverlayHighlight(void 0),this.audioElement&&this.audioElement.pause()}findNextTextAudioPair(t,n,r,o){if(!t.Children||!t.Children.length){if(r?.prev===n)return He.default.log("findNextTextAudioPair() - prevMo === moToMatch"),t;He.default.log("findNextTextAudioPair() - set previous"),He.default.log(JSON.stringify(t)),r.prev=t;return}for(let a of t.Children){He.default.log("findNextTextAudioPair() - child"),He.default.log(JSON.stringify(a));let l=this.findNextTextAudioPair(a,n,r,o);if(l)return He.default.log("findNextTextAudioPair() - match"),He.default.log(JSON.stringify(l)),l}}async playMediaOverlaysAudio(t,n,r){if(He.default.log("playMediaOverlaysAudio()"),this.mediaOverlayTextAudioPair=t,!t.Audio)return;let o=new URL(t.Audio,this.publication.manifestUrl),a=o.toString(),l=new URL(a);l.hash="",l.search="";let u=l.toString(),d=typeof n!="undefined",f=typeof r!="undefined";if(this.previousAudioEnd=this.currentAudioEnd,this.currentAudioBegin=void 0,this.currentAudioEnd=void 0,!d&&!f){if(o.hash){let p=o.hash.match(/t=([0-9.]+)(,([0-9.]+))?/);if(p&&p.length>=1){let E=p[1];try{this.currentAudioBegin=parseFloat(E)}catch(S){He.default.error(S)}if(p.length>=3){let S=p[3];try{this.currentAudioEnd=parseFloat(S)}catch(v){He.default.error(v)}}}}}else this.currentAudioBegin=n,this.currentAudioEnd=r;He.default.log(`${a} => [${this.currentAudioBegin}-${this.currentAudioEnd}]`);let m=async p=>{if(!this.audioElement)return;let E=this.currentAudioBegin?this.currentAudioBegin:0;if(p||this.audioElement.paused)if(p&&!E||this.audioElement.currentTime===E){if(He.default.log("playMediaOverlaysAudio() - playClip() - _currentAudioElement.play()"),this.ensureOnTimeUpdate(!1,!1),this.audioElement.playbackRate=this.settings.rate,this.audioElement.volume=this.settings.volume,this.settings.playing){let v=function(){S.settings.resourceReady?setTimeout(async()=>{await S.audioElement.play(),S.ensureOnTimeUpdate(!1,!0)},S.settings.wait*1e3):setTimeout(v,200)},S=this;v()}}else{He.default.log("playMediaOverlaysAudio() - playClip() - ontimeupdateSeeked");let S=async v=>{if(this.audioElement.removeEventListener("timeupdate",S),He.default.log("playMediaOverlaysAudio() - playClip() - ontimeupdateSeeked - .play()"),this.ensureOnTimeUpdate(!1,!1),this.audioElement&&(this.audioElement.playbackRate=this.settings.rate,this.audioElement.volume=this.settings.volume,this.settings.playing)){let b=function(){y.settings.resourceReady?setTimeout(async()=>{await y.audioElement.play(),y.ensureOnTimeUpdate(!1,!0)},y.settings.wait*1e3):setTimeout(b,200)},y=this;b()}};this.audioElement.addEventListener("timeupdate",S),this.audioElement.currentTime=E}else{let S=this.previousAudioUrl===this.currentAudioUrl&&typeof this.previousAudioEnd!="undefined"&&this.previousAudioEnd>E-.02&&this.previousAudioEnd<=E&&this.audioElement.currentTime>=E-.1;this.ensureOnTimeUpdate(!1,!1),S?He.default.log("playMediaOverlaysAudio() - playClip() - ensureOnTimeUpdate"):(He.default.log("playMediaOverlaysAudio() - playClip() - currentTime = timeToSeekTo"),this.audioElement.currentTime=E)}};if(this.previousAudioUrl=this.currentAudioUrl,!this.currentAudioUrl||u!==this.currentAudioUrl){this.currentAudioUrl=u,He.default.log("playMediaOverlaysAudio() - RESET: "+this.previousAudioUrl+" => "+this.currentAudioUrl),this.audioElement=document.getElementById("AUDIO_MO_ID"),this.audioElement&&(this.audioElement.pause(),this.audioElement.setAttribute("src",""),this.audioElement.parentNode&&this.audioElement.parentNode.removeChild(this.audioElement)),this.audioElement=document.createElement("audio"),this.audioElement.setAttribute("style","display: none"),this.audioElement.setAttribute("id","AUDIO_MO_ID"),this.audioElement.setAttribute("role","media-overlays"),this.audioElement.volume=this.settings.volume,this.audioElement.playbackRate=this.settings.rate,document.body.appendChild(this.audioElement),this.audioElement.addEventListener("error",S=>{He.default.log("-1) error: "+(this.currentAudioUrl!==S.currentTarget.src?this.currentAudioUrl+" -- ":"")+S.currentTarget.src.substr(S.currentTarget.src.lastIndexOf("/"))),this.audioElement&&this.audioElement.error&&(He.default.log(this.audioElement.error.code),He.default.log(this.audioElement.error.message))});let p=async S=>{S.currentTarget.removeEventListener("canplaythrough",p),He.default.log("oncanplaythrough"),await m(!0)};this.audioElement.addEventListener("canplaythrough",p);let E=async S=>{He.default.log("onended"),this.currentLinks.length>1&&this.currentLinkIndex===0?(this.currentLinkIndex++,await this.playLink()):this.settings.autoTurn&&this.settings.playing?(this.audioElement.pause(),this.delegate.nextResource()):this.stopReadAloud()};this.audioElement.addEventListener("ended",E),this.audioElement.playbackRate=this.settings.rate,this.audioElement.setAttribute("src",this.currentAudioUrl)}else He.default.log("playMediaOverlaysAudio() - playClip()"),await m(!1)}async playMediaOverlays(t,n,r){He.default.log("playMediaOverlays()");let o=r?r.filter(l=>l):void 0;o&&o.length===0&&(o=void 0);let a=this.findDepthFirstTextAudioPair(t,n,o);!a&&o&&(He.default.log("playMediaOverlays() - findDepthFirstTextAudioPair() SECOND CHANCE "),He.default.log(JSON.stringify(o,null,4)),He.default.log(JSON.stringify(n,null,4)),a=this.findDepthFirstTextAudioPair(t,n,void 0)),a?a.Audio&&(He.default.log("playMediaOverlays() - playMediaOverlaysAudio()"),this.mediaOverlayRoot=n,await this.playMediaOverlaysAudio(a,void 0,void 0)):He.default.log("playMediaOverlays() - !moTextAudioPair "+t)}mediaOverlayHighlight(t){He.default.log("moHighlight: ## "+t);let n=this.publication.Metadata?.MediaOverlay?.ActiveClass;n||(n=this.settings.color);let r=this.delegate.iframes[0].contentDocument?.documentElement.getAttribute("style"),o=r?r.indexOf("readium-night-on")>0:!1,a=r?r.indexOf("readium-sepia-on")>0:!1;if((this.publication.Metadata.Rendition?.Layout??"unknown")!=="fixed"&&(n=o||a?R0:n||R0),this.pid){let u;this.currentLinkIndex===0?u=this.delegate.iframes[0].contentDocument?.getElementById(this.pid):u=this.delegate.iframes[1].contentDocument?.getElementById(this.pid),u&&u.classList.remove(n)}let l;t&&(this.currentLinkIndex===0?l=this.delegate.iframes[0].contentDocument?.getElementById(t):l=this.delegate.iframes[1].contentDocument?.getElementById(t),l&&l.classList.add(n),this.pid=t),l&&(this.publication.Metadata.Rendition?.Layout??"unknown")!=="fixed"&&l.scrollIntoView({block:"center",behavior:"smooth"})}};A();var I0=Je(Dt()),L0=class{static async create(t){let n=new this(t.delegate,t.publication);return await n.start(),n}constructor(t,n){this.delegate=t,this.publication=n}async stop(){I0.default.log("Timeline module stop")}async start(){this.delegate.timelineModule=this,this.timelineContainer=de(document,"#container-view-timeline"),this.positionSlider=de(document,"#positionSlider"),this.publication.positions?this.positionSlider&&(this.positionSlider.style.display="block"):this.positionSlider&&(this.positionSlider.style.display="none")}async initialize(){return new Promise(async t=>{await document.fonts.ready;let n=this.delegate.currentLocator();(this.delegate.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions)&&(this.positionSlider&&(this.positionSlider.value=(n.locations.position??0).toString()),this.positionSlider&&(this.positionSlider.max=((n.locations.totalRemainingPositions??0)+(n.locations.position??0)).toString())),this.timelineContainer&&(this.timelineContainer.innerHTML=""),this.publication.readingOrder?.forEach(r=>{let o=this.publication.getAbsoluteHref(r.Href),a=this.publication.getTOCItemAbsolute(o),l=a?.Href.indexOf("#")!==-1?a?.Href.slice(0,a?.Href.indexOf("#")):a.Href,u=this.publication.getAbsoluteHref(l??"");var d;this.publication.positions&&this.delegate.view?.layout!=="fixed"?r.contentWeight?d=r.contentWeight:d=1:d=100/(this.publication.readingOrder?.length??0);var f=document.createElement("div");if(f.style.height=d+"%",f.style.width="100%",f.className="chapter",a?.Title!==void 0){var m=document.createElement("span");m.innerHTML=a.Title,m.className="chapter-tooltip",f.appendChild(m)}Z(f,"click",p=>{p.preventDefault(),p.stopPropagation();var E;this.publication.positions||this.delegate.rights.autoGeneratePositions&&this.publication.positions?(E=Fe({},this.publication.positions.filter(S=>S.href===r.Href)[0]),E.href=this.publication.getAbsoluteHref(E.href)):E={href:u,locations:{progression:0},type:r.TypeLink,title:r.Title},I0.default.log(E),this.delegate.navigate(E)}),u===this.delegate.currentChapterLink.href?f.className+=" active":f.className=f.className.replace(" active",""),this.timelineContainer&&this.timelineContainer.appendChild(f)}),t()})}};A();var Q0=Je(to());A();var F4=Je(Dt());function $4(i,t){return new Promise(function(n){setTimeout(n.bind(null,t),i)})}var H8=!1;F4.default.setLevel(H8?"trace":"warn",!0);var y3=Je(g3()),Hd=Je(m3()),gn=Je(Dt());var jd=class{constructor(t,n){this.hasEventListener=!1;this.isHacked=!1;this.delegate=t,this.properties=n}static async setupPreloadProtection(t){if(this.isCurrentBrowserSupported(t))t.detectInspect&&await this.startInspectorProtection(t);else throw new Error("Browser not supported")}static async create(t){let n=new this(t.delegate,t);return await n.start(),n}static async startInspectorProtection(t){(0,Hd.addListener)(r=>{r&&(t.clearOnInspect&&(console.clear(),window.localStorage.clear(),window.sessionStorage.clear(),window.location.replace(window.location.origin)),t.detectInspect&&typeof t.api?.inspectDetected=="function"&&t.api.inspectDetected())}),(0,Hd.launch)(),await $4(t.detectInspectInitDelay??100)}static isCurrentBrowserSupported(t){if(!t.enforceSupportedBrowsers)return!0;let n=[];return(t.supportedBrowsers??[]).forEach(o=>{n.push("last 1 "+o+" version")}),(0,y3.getUserAgentRegExp)({browsers:n,allowHigherVersions:!0}).test(navigator.userAgent)}async start(){if(this.delegate.contentProtectionModule=this,this.properties?.enableObfuscation){this.wrapper=dt(document,"#iframe-wrapper"),this.securityContainer=de(document,"#container-view-security");var t=this;this.mutationObserver=new MutationObserver(function(n){n.forEach(function(r){gn.default.log(r.type),t.isHacked=!0})})}}async stop(){if(gn.default.log("Protection module stop"),this.mutationObserver.disconnect(),this.properties?.disableKeys){we(this.delegate.mainElement,"keydown",this.disableSave),we(this.delegate.headerMenu,"keydown",this.disableSave);for(let t of this.delegate.iframes)we(t.contentDocument,"keydown",this.disableSave),we(t.contentWindow,"keydown",this.disableSave);we(window,"keydown",this.disableSave),we(document,"keydown",this.disableSave)}if(this.properties?.disableCopy){we(this.delegate.mainElement,"copy",this.preventCopy),we(this.delegate.headerMenu,"copy",this.preventCopy);for(let t of this.delegate.iframes)we(t.contentDocument,"copy",this.preventCopy),we(t.contentWindow,"copy",this.preventCopy);we(window,"copy",this.preventCopy),we(document,"copy",this.preventCopy),we(this.delegate.mainElement,"cut",this.preventCopy),we(this.delegate.headerMenu,"cut",this.preventCopy);for(let t of this.delegate.iframes)we(t.contentDocument,"cut",this.preventCopy),we(t.contentWindow,"cut",this.preventCopy);we(window,"cut",this.preventCopy),we(document,"cut",this.preventCopy),we(this.delegate.mainElement,"keydown",this.preventCopyKey),we(this.delegate.headerMenu,"keydown",this.preventCopyKey);for(let t of this.delegate.iframes)we(t.contentDocument,"keydown",this.preventCopyKey),we(t.contentWindow,"keydown",this.preventCopyKey);we(window,"keydown",this.preventCopyKey),we(document,"keydown",this.preventCopyKey)}else if(this.properties?.canCopy){we(this.delegate.mainElement,"copy",this.restrictCopy),we(this.delegate.headerMenu,"copy",this.restrictCopy);for(let t of this.delegate.iframes)we(t.contentDocument,"copy",this.restrictCopy),we(t.contentWindow,"copy",this.restrictCopy);we(window,"copy",this.restrictCopy),we(document,"copy",this.restrictCopy),we(this.delegate.mainElement,"cut",this.restrictCopy),we(this.delegate.headerMenu,"cut",this.restrictCopy);for(let t of this.delegate.iframes)we(t.contentDocument,"cut",this.restrictCopy),we(t.contentWindow,"cut",this.restrictCopy);we(window,"cut",this.restrictCopy),we(document,"cut",this.restrictCopy),we(this.delegate.mainElement,"keydown",this.restrictCopyKey),we(this.delegate.headerMenu,"keydown",this.restrictCopyKey);for(let t of this.delegate.iframes)we(t.contentDocument,"keydown",this.restrictCopyKey),we(t.contentWindow,"keydown",this.restrictCopyKey);we(window,"keydown",this.restrictCopyKey),we(document,"keydown",this.restrictCopyKey)}if(this.properties?.disablePrint){we(this.delegate.mainElement,"beforeprint",this.beforePrint.bind(this)),we(this.delegate.headerMenu,"beforeprint",this.beforePrint.bind(this));for(let t of this.delegate.iframes)we(t.contentDocument,"beforeprint",this.beforePrint),we(t.contentWindow,"beforeprint",this.beforePrint);we(window,"beforeprint",this.beforePrint),we(document,"beforeprint",this.beforePrint),we(this.delegate.mainElement,"afterprint",this.afterPrint.bind(this)),we(this.delegate.headerMenu,"afterprint",this.afterPrint.bind(this));for(let t of this.delegate.iframes)we(t.contentDocument,"afterprint",this.afterPrint.bind(this)),we(t.contentWindow,"afterprint",this.afterPrint.bind(this));we(window,"afterprint",this.afterPrint.bind(this)),we(document,"afterprint",this.afterPrint.bind(this))}if(this.properties?.disableContextMenu){we(this.delegate.mainElement,"contextmenu",this.disableContext),we(this.delegate.headerMenu,"contextmenu",this.disableContext);for(let t of this.delegate.iframes)we(t.contentDocument,"contextmenu",this.disableContext),we(t.contentWindow,"contextmenu",this.disableContext);we(window,"contextmenu",this.disableContext),we(document,"contextmenu",this.disableContext)}this.properties?.hideTargetUrl&&this.hideTargetUrls(!1),this.properties?.disableDrag&&this.preventDrag(!1),we(this.wrapper,"scroll",this.handleScroll.bind(this))}observe(){if(this.properties?.enableObfuscation){this.securityContainer.hasAttribute("style")&&(this.isHacked=!0),this.mutationObserver.disconnect();var t={attributes:!0,childList:!0,characterData:!0};this.mutationObserver.observe(this.securityContainer,t)}}async deactivate(){this.properties?.enableObfuscation&&(this.observe(),this.rects.forEach(t=>this.deactivateRect(t,this.securityContainer,this.isHacked)))}async activate(){if(this.properties?.enableObfuscation){this.observe();for(let t of this.delegate.iframes)if(t.contentDocument){let n=_i(t.contentDocument,"body");this.rects=this.findRects(n),this.rects.forEach(r=>this.toggleRect(r,this.securityContainer,this.isHacked))}}}setupEvents(){if(this.properties?.disableKeys){Z(this.delegate.mainElement,"keydown",this.disableSave),Z(this.delegate.headerMenu,"keydown",this.disableSave);for(let t of this.delegate.iframes)Z(t,"keydown",this.disableSave),Z(t.ownerDocument,"keydown",this.disableSave),Z(t.contentDocument,"keydown",this.disableSave),Z(t.contentWindow,"keydown",this.disableSave),Z(t.contentWindow?.document,"keydown",this.disableSave);Z(window,"keydown",this.disableSave),Z(document,"keydown",this.disableSave)}if(this.properties?.disableCopy){Z(this.delegate.mainElement,"copy",this.preventCopy),Z(this.delegate.headerMenu,"copy",this.preventCopy);for(let t of this.delegate.iframes)Z(t,"copy",this.preventCopy),Z(t.ownerDocument,"copy",this.preventCopy),Z(t.contentDocument,"copy",this.preventCopy),Z(t.contentWindow,"copy",this.preventCopy),Z(t.contentWindow?.document,"copy",this.preventCopy);Z(window,"copy",this.preventCopy),Z(document,"copy",this.preventCopy),Z(this.delegate.mainElement,"cut",this.preventCopy),Z(this.delegate.headerMenu,"cut",this.preventCopy);for(let t of this.delegate.iframes)Z(t,"cut",this.preventCopy),Z(t.ownerDocument,"cut",this.preventCopy),Z(t.contentDocument,"cut",this.preventCopy),Z(t.contentWindow,"cut",this.preventCopy),Z(t.contentWindow?.document,"cut",this.preventCopy);Z(window,"cut",this.preventCopy),Z(document,"cut",this.preventCopy),Z(this.delegate.mainElement,"keydown",this.preventCopyKey),Z(this.delegate.headerMenu,"keydown",this.preventCopyKey);for(let t of this.delegate.iframes)Z(t,"keydown",this.preventCopyKey),Z(t.ownerDocument,"keydown",this.preventCopyKey),Z(t.contentDocument,"keydown",this.preventCopyKey),Z(t.contentWindow,"keydown",this.preventCopyKey),Z(t.contentWindow?.document,"keydown",this.preventCopyKey);Z(window,"keydown",this.preventCopyKey),Z(document,"keydown",this.preventCopyKey)}else if(this.properties?.canCopy){Z(this.delegate.mainElement,"copy",this.restrictCopy.bind(this)),Z(this.delegate.headerMenu,"copy",this.restrictCopy.bind(this));for(let t of this.delegate.iframes)Z(t,"copy",this.restrictCopy),Z(t.ownerDocument,"copy",this.restrictCopy.bind(this)),Z(t.contentDocument,"copy",this.restrictCopy.bind(this)),Z(t.contentWindow,"copy",this.restrictCopy.bind(this)),Z(t.contentWindow?.document,"copy",this.restrictCopy.bind(this));Z(window,"copy",this.restrictCopy.bind(this)),Z(document,"copy",this.restrictCopy.bind(this)),Z(this.delegate.mainElement,"cut",this.restrictCopy.bind(this)),Z(this.delegate.headerMenu,"cut",this.restrictCopy.bind(this));for(let t of this.delegate.iframes)Z(t,"cut",this.restrictCopy.bind(this)),Z(t.ownerDocument,"cut",this.restrictCopy.bind(this)),Z(t.contentDocument,"cut",this.restrictCopy.bind(this)),Z(t.contentWindow,"cut",this.restrictCopy.bind(this)),Z(t.contentWindow?.document,"cut",this.restrictCopy.bind(this));Z(window,"cut",this.restrictCopy.bind(this)),Z(document,"cut",this.restrictCopy.bind(this)),Z(this.delegate.mainElement,"keydown",this.restrictCopyKey.bind(this)),Z(this.delegate.headerMenu,"keydown",this.restrictCopyKey.bind(this));for(let t of this.delegate.iframes)Z(t,"keydown",this.restrictCopyKey.bind(this)),Z(t.ownerDocument,"keydown",this.restrictCopyKey.bind(this)),Z(t.contentDocument,"keydown",this.restrictCopyKey.bind(this)),Z(t.contentWindow,"keydown",this.restrictCopyKey.bind(this)),Z(t.contentWindow?.document,"keydown",this.restrictCopyKey.bind(this));Z(window,"keydown",this.restrictCopyKey.bind(this)),Z(document,"keydown",this.restrictCopyKey.bind(this))}if(this.properties?.disablePrint){Z(this.delegate.mainElement,"beforeprint",this.beforePrint),Z(this.delegate.headerMenu,"beforeprint",this.beforePrint);for(let t of this.delegate.iframes)Z(t,"beforeprint",this.beforePrint.bind(this)),Z(t.ownerDocument,"beforeprint",this.beforePrint.bind(this)),Z(t.contentDocument,"beforeprint",this.beforePrint.bind(this)),Z(t.contentWindow,"beforeprint",this.beforePrint.bind(this)),Z(t.contentWindow?.document,"beforeprint",this.beforePrint.bind(this));Z(window,"beforeprint",this.beforePrint.bind(this)),Z(document,"beforeprint",this.beforePrint.bind(this)),Z(this.delegate.mainElement,"afterprint",this.afterPrint),Z(this.delegate.headerMenu,"afterprint",this.afterPrint);for(let t of this.delegate.iframes)Z(t,"afterprint",this.afterPrint.bind(this)),Z(t.ownerDocument,"afterprint",this.afterPrint.bind(this)),Z(t.contentDocument,"afterprint",this.afterPrint.bind(this)),Z(t.contentWindow,"afterprint",this.afterPrint.bind(this)),Z(t.contentWindow?.document,"afterprint",this.afterPrint.bind(this));Z(window,"afterprint",this.afterPrint.bind(this)),Z(document,"afterprint",this.afterPrint.bind(this))}if(this.properties?.disableContextMenu){Z(this.delegate.mainElement,"contextmenu",this.disableContext),Z(this.delegate.headerMenu,"contextmenu",this.disableContext);for(let t of this.delegate.iframes)Z(t,"contextmenu",this.disableContext),Z(t.ownerDocument,"contextmenu",this.disableContext),Z(t.contentDocument,"contextmenu",this.disableContext),Z(t.contentWindow,"contextmenu",this.disableContext),Z(t.contentWindow?.document,"contextmenu",this.disableContext);Z(window,"contextmenu",this.disableContext),Z(document,"contextmenu",this.disableContext)}}initializeResource(){this.properties?.hideTargetUrl&&this.hideTargetUrls(!0),this.properties?.disableDrag&&this.preventDrag(!0)}async initialize(){if(this.properties?.enableObfuscation)return new Promise(async t=>{await document.fonts.ready;for(let n of this.delegate.iframes)if(n.contentDocument){let r=_i(n.contentDocument,"body");this.observe(),setTimeout(()=>{this.rects=this.findRects(r),this.rects.forEach(o=>this.toggleRect(o,this.securityContainer,this.isHacked)),this.setupEvents(),this.hasEventListener||(this.hasEventListener=!0,Z(this.wrapper,"scroll",this.handleScroll.bind(this))),t()},10)}})}handleScroll(){this.rects.forEach(t=>this.toggleRect(t,this.securityContainer,this.isHacked))}handleResize(){if(this.properties?.enableObfuscation){let t=(0,Q0.debounce)(()=>{this.calcRects(this.rects),this.rects!==void 0&&this.rects.forEach(n=>this.toggleRect(n,this.securityContainer,this.isHacked))},10);this.rects&&(this.observe(),t())}}disableContext(t){return t.preventDefault(),t.stopPropagation(),!1}disableSave(t){return(navigator.platform==="MacIntel"||navigator.platform.match("Mac")?t.metaKey:t.ctrlKey&&(t.key==="s"||t.keyCode===83))?(t.preventDefault(),t.stopPropagation(),!1):!0}preventCopy(t){return gn.default.log("copy action initiated"),t.clipboardData.setData("text/plain","copy not allowed"),t.stopPropagation(),t.preventDefault(),!1}preventCopyKey(t){return(navigator.platform==="MacIntel"||navigator.platform.match("Mac")?t.metaKey:t.ctrlKey&&(t.key==="c"||t.keyCode===67))?(t.preventDefault(),t.stopPropagation(),!1):!0}restrictCopy(t){gn.default.log("copy action initiated");let n=this.delegate.iframes[0].contentWindow;if(n){let o=function(l){let u={className:f=>hr.indexOf(f)<0,idName:f=>hr.indexOf(f)<0},d=r.delegate.iframes[0].contentDocument;if(d)return ln(l,d,u)},r=this,a=oi(n,o);if(a===void 0){let l=this.delegate.iframes[0].contentDocument;a=this.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(l)}t.clipboardData.setData("text/plain",a?.cleanText?.substring(0,this.properties?.charactersToCopy??0))}else t.clipboardData.setData("text/plain","");return t.stopPropagation(),t.preventDefault(),!1}restrictCopyKey(t){if(navigator.platform==="MacIntel"||navigator.platform.match("Mac")?t.metaKey:t.ctrlKey&&(t.key==="c"||t.keyCode===67)){let n=this.delegate.iframes[0].contentWindow;if(n){let o=function(l){let u={className:f=>hr.indexOf(f)<0,idName:f=>hr.indexOf(f)<0},d=r.delegate.iframes[0].contentDocument;if(d)return ln(l,d,u)},r=this,a=oi(n,o);if(a===void 0){let l=this.delegate.iframes[0].contentDocument;a=this.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(l)}this.copyToClipboard(a?.cleanText?.substring(0,this.properties?.charactersToCopy??0))}else this.copyToClipboard("");return t.stopPropagation(),t.preventDefault(),!1}return!0}copyToClipboard(t){if(t=t.substring(0,this.properties?.charactersToCopy??0),window.clipboardData)window.clipboardData.setData("text/plain",t);else{let n=this.createElementForExecCommand(t);this.selectContent(n);try{window.netscape&&netscape.security&&netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"),document.execCommand("copy",!1)}catch(r){}document.body.removeChild(n)}}createElementForExecCommand(t){let n=document.createElement("div");return n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.innerHTML=t,document.body.appendChild(n),n.contentEditable=!0,n}selectContent(t){let n=document.createRange();n.selectNodeContents(t);let r=window.getSelection();r?.removeAllRanges(),r?.addRange(n)}beforePrint(t){return gn.default.log("before print"),this.delegate&&this.delegate.headerMenu&&(this.delegate.headerMenu.style.display="none",this.delegate.mainElement.style.display="none"),t.stopPropagation(),t.preventDefault(),!1}afterPrint(t){return gn.default.log("after print"),this.delegate&&this.delegate.headerMenu&&(this.delegate.headerMenu.style.removeProperty("display"),this.delegate.mainElement.style.removeProperty("display")),t.stopPropagation(),t.preventDefault(),!1}hideTargetUrls(t){function n(r){r.preventDefault();let o=r.currentTarget.getAttribute("data-href-resolved"),a=document.createElement("a");a.setAttribute("href",o),a.click()}for(let r of this.delegate.iframes){let o=r.contentDocument?.querySelectorAll("a");o?.forEach(a=>{let l=a.getAttribute("data-href"),u=a.getAttribute("href");!l&&u&&(a.setAttribute("data-href",u),a.setAttribute("data-href-resolved",a.href))}),t?o?.forEach(a=>{a.setAttribute("href",""),a.addEventListener("click",n)}):o?.forEach(a=>{let l=a.getAttribute("data-href");l&&a.setAttribute("href",l),a.removeEventListener("click",n)})}}preventDrag(t){let n="-webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -ms-user-drag: none; user-drag: none; -webkit-pointer-events: none; -khtml-pointer-events: none; -moz-pointer-events: none; -ms-pointer-events: none; pointer-events: none;",r=o=>{o.preventDefault()};for(let o of this.delegate.iframes){let a=o.contentDocument?.body.getAttribute("style")||"";t?(o.contentDocument?.body.addEventListener("dragstart",r),o.contentDocument?.body.setAttribute("style",a+n)):(o.contentDocument?.body.removeEventListener("dragstart",r),o.contentDocument?.body.setAttribute("style",a.replace(n,"")))}}recalculate(t=0){return new Promise(n=>{if(this.properties?.enableObfuscation){let r=(0,Q0.debounce)(()=>{this.calcRects(this.rects),this.rects!==void 0&&this.rects.forEach(o=>this.toggleRect(o,this.securityContainer,this.isHacked)),n(!0)},t);this.rects?(this.observe(),r()):n(!1)}else n(!1)})}calcRects(t){t!==void 0&&t.forEach(n=>{try{let{top:r,height:o,left:a,width:l}=this.measureTextNode(n.node);n.top=r,n.height=o,n.width=l,n.left=a}catch(r){gn.default.log("error "+r),gn.default.log(n),gn.default.log(n.node),gn.default.log("scrambledTextContent "+n.scrambledTextContent),gn.default.log("textContent "+n.textContent),gn.default.log("isObfuscated "+n.isObfuscated)}})}deactivateRect(t,n,r){this.isBeingHacked(n)||r?(t.node.textContent=t.scrambledTextContent,t.isObfuscated=!0):(t.node.textContent=t.textContent,t.isObfuscated=!1)}toggleRect(t,n,r){let o=this.isOutsideViewport(t),a=this.isBeingHacked(n);t.isObfuscated&&!o&&!a&&!r&&(t.node.textContent=t.textContent,t.isObfuscated=!1),!t.isObfuscated&&(o||a||r)&&(t.node.textContent=t.scrambledTextContent,t.isObfuscated=!0)}findRects(t){return this.findTextNodes(t).map(r=>{let{top:o,height:a,left:l,width:u}=this.measureTextNode(r),d=r.parentElement?.nodeName==="option"||r.parentElement?.nodeName==="script"?r.textContent:this.obfuscateText(r.textContent??"");return{top:o,height:a,width:u,left:l,node:r,textContent:r.textContent??"",scrambledTextContent:d??"",isObfuscated:!1}})}obfuscateText(t){return this.scramble(t,!0)}measureTextNode(t){try{let n=document.createRange();n.selectNode(t);let r=n.getBoundingClientRect();return n.detach(),r}catch(n){gn.default.log("measureTextNode "+n),gn.default.log("measureTextNode "+t),gn.default.log(t.textContent)}}isBeingHacked(t){return t.style.animation||t.style.transition||t.style.position||t.hasAttribute("style")?(gn.default.log("content being hacked"),!0):!1}isOutsideViewport(t){let n=this.wrapper.scrollLeft,r=n+this.wrapper.clientWidth,o=t.left+t.width,a=t.top+t.height,l=this.wrapper.scrollTop,u=l+this.wrapper.clientHeight,d=a<l,f=t.top>u,m=o<n-window.innerWidth,p=t.left>r+window.innerWidth;return d||f||m||p}findTextNodes(t,n=[]){let r=t.firstChild;for(;r;)r.nodeType===1&&this.findTextNodes(r,n),r.nodeType===3&&r.textContent?.trim()&&n.push(r),r=r.nextSibling;return n}scramble(t,n=!1,r=!1){var o=t.split(" ");function a(l){for(var u=l.length,d,f;u>0;)f=Math.floor(Math.random()*u),u--,d=l[u],l[u]=l[f],l[f]=d;return l}return n&&(o=o.map(function(l){return a(l.split("")).join("")})),r?a(o).join(" "):o.join(" ")}};A();var O3=Je(v3());A();var Dd=i=>i.replace(/\n/g," ").replace(/\s\s+/g," "),eN=i=>Dd(i).trim(),w3=/[\\^$.*+?()[\]{}|]/g,tN=RegExp(w3.source);function E3(i){return i&&tN.test(i)?i.replace(w3,"\\$&"):i||""}var Fd=0,nN=()=>()=>Number.isSafeInteger(++Fd)?Fd:Fd=1,S3=()=>{Fd=0},rN=nN(),iN=i=>t=>{try{return ln(t,i,ro)}catch(n){return console.error("uniqueCssSelector:",n),""}};async function lo(i,t,n,r,o=!1){if(!t)return[];let a=t.body?.textContent;if(!a)return[];if(i=eN(i),!i.length)return[];let l=t.createNodeIterator(t.body,NodeFilter.SHOW_TEXT,{acceptNode:S=>NodeFilter.FILTER_ACCEPT}),u=new RegExp(E3(i).replace(/ /g,"\\s+"),"gim");o&&(u=new RegExp("\\b"+E3(i).replace(/ /g,"\\s+")+"\\b","gim"));let d=[],f=100,m=30,p=0,E;for(;E=u.exec(a);){let S=Math.max(0,E.index-f),v=Math.min(f,E.index),y=Dd(a.substr(S,v));y=y.substr(y.length-m),S=u.lastIndex,v=Math.min(f,a.length-S);let b=Dd(a.substr(S,v)).substr(0,m),w=new Range,O=E.index;for(;p<=O;){let _=l.nextNode();_&&_.nodeValue&&(p+=_.nodeValue.length)}let T=l.referenceNode.nodeValue?l.referenceNode.nodeValue?.length-(p-O):0;for(w.setStart(l.referenceNode,T),O=E.index+E[0].length;p<=O;){let P=l.nextNode()?.nodeValue;P&&(p+=P.length)}T=l.referenceNode.nodeValue?l.referenceNode.nodeValue?.length-(p-O):0,w.setEnd(l.referenceNode,T),t.getCssSelector||(t.getCssSelector=iN(t));let C=Pi(w,t.getCssSelector);C&&d.push({textMatch:Dd(E[0]),textBefore:y,textAfter:b,rangeInfo:C,href:n,title:r,uuid:rN().toString()})}return d}var x3=Je(Dt()),tg=class{constructor(t,n,r,o,a,l){this.currentChapterSearchResult=[];this.bookSearchResult=[];this.currentSearchHighlights=[];this.delegate=t,this.headerMenu=l,this.publication=n,this.properties=r,this.api=a,this.highlighter=o}static async create(t){let n=new this(t.delegate,t.publication,t,t.highlighter,t.api,t.headerMenu);return await n.start(),n}async stop(){x3.default.log("Search module stop"),we(this.searchInput,"keypress",this.handleSearch.bind(this)),we(this.searchGo,"click",this.handleSearch.bind(this))}async start(){if(this.delegate.searchModule=this,this.headerMenu){this.searchInput=de(this.headerMenu,"#searchInput"),Z(this.searchInput,"keypress",this.handleSearch.bind(this)),this.searchGo=de(this.headerMenu,"#searchGo"),Z(this.searchGo,"click",this.handleSearch.bind(this));var t=de(this.headerMenu,"#menu-button-search");t&&t.parentElement?.style.removeProperty("display")}setTimeout(()=>{this.properties.hideLayer?this.delegate.hideLayer("search"):this.delegate.showLayer("search")},10)}async handleSearch(t){(t.key==="Enter"||t.type==="click")&&(await this.handleSearchChapter(),await this.handleSearchBook())}async handleSearchChapter(t){var n=this,r=this.searchInput.value;let o=this.delegate.currentChapterLink.href,a=this.publication.getSpineItem(o);if(this.headerMenu)var l=de(document,"#searchResultChapter");n.currentChapterSearchResult=[],n.currentSearchHighlights=[];var u=[];this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.deactivate(),await this.searchAndPaintChapter(r,t,async f=>{u=f,d(1),this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate(200)});async function d(f){l.innerHTML="";var m;if(m=n.paginate(u,f,10),m.total===0){let p=document.createElement("a");p.className="collection-item",p.innerHTML="nothing found",l.appendChild(p)}else{for(let y=0;y<m.data.length;y++){let b=document.createElement("a"),w=m.data[y];b.className="collection-item",b.href=a?.Href??"",b.innerHTML="..."+w.textBefore+"<mark>"+w.textMatch+"</mark>"+w.textAfter+"...",Z(b,"click",O=>{O.preventDefault(),O.stopPropagation(),n.jumpToMark(y+f*10-10)}),l.appendChild(b)}let p=document.createElement("div");p.style.textAlign="center",p.style.marginTop="10px";let E=document.createElement("ul");E.className="pagination";let S=document.createElement("li");if(S.className="disabled",S.innerHTML='<a href="#!"> < </a>',m.pre_page!==void 0){let y=m.pre_page;S.className="waves-effect",Z(S,"click",b=>{b.preventDefault(),b.stopPropagation(),d(y)})}E.appendChild(S);for(let y=1;y<=m.total_pages;y++){let b,w=document.createElement("li");w.className="waves-effect",y===m.page&&(w.className="active",b=w),w.innerHTML='<a href="#!">'+y+"</a>",Z(w,"click",O=>{O.preventDefault(),O.stopPropagation(),b&&(b.className="waves-effect"),w.className="active",b=w,d(y)}),E.appendChild(w)}let v=document.createElement("li");if(v.className="disabled",v.innerHTML='<a href="#!"> > </a>',m.next_page!==void 0){let y=m.next_page;v.className="waves-effect",Z(v,"click",b=>{b.preventDefault(),b.stopPropagation(),d(y)})}E.appendChild(v),p.appendChild(E),l.appendChild(p)}}}async searchAndPaintChapter(t,n=0,r){let o=this.publication.getAbsoluteHref(this.publication.readingOrder[this.delegate.currentResource()??0].Href),a=this.publication.getTOCItem(o);a===null&&(a=this.publication.readingOrder[this.delegate.currentResource()??0]);let l=[];this.highlighter?.destroyHighlights(qe.Search),this.delegate.rights.enableSearch&&this.drawSearch();let u=0;if(a){let d=this.delegate.iframes[0].contentDocument;d&&a&&lo(t,d,a.Href,a.Title).then(f=>{f.forEach(m=>{let p={rangeInfo:m.rangeInfo};setTimeout(()=>{let E;u===n?(E=this.createSearchHighlight(p,this.properties?.current),this.jumpToMark(n)):E=this.createSearchHighlight(p,this.properties?.color),m.highlight=E,l.push(m),this.currentChapterSearchResult.push(m),this.currentSearchHighlights.push(E),u++},500)}),setTimeout(()=>{r(l)},500)})}}createSearchHighlight(t,n){try{var r=n;De.isHexColor(r)&&(r=De.hexToRgbChannels(r));let a=`${t.rangeInfo.startContainerElementCssSelector}${t.rangeInfo.startContainerChildTextNodeIndex}${t.rangeInfo.startOffset}${t.rangeInfo.endContainerElementCssSelector}${t.rangeInfo.endContainerChildTextNodeIndex}${t.rangeInfo.endOffset}`,l=O3.SHA256.hash(a),u="R2_SEARCH_"+l;var o=!1;let d={color:r||$o,id:u,pointerInteraction:o,selectionInfo:t,marker:Le.Highlight,type:qe.Search},f=this.highlighter?.createHighlightDom(this.delegate.iframes[0].contentWindow,d);return d.position=parseInt((f?.hasChildNodes()?f.childNodes[0]:f).style.top.replace("px","")),d}catch(a){throw"Can't create highlight: "+a}}clearSearch(){this.currentChapterSearchResult=[],this.currentSearchHighlights=[],this.highlighter?.destroyHighlights(qe.Search)}async search(t,n){return this.currentChapterSearchResult=[],this.currentSearchHighlights=[],this.bookSearchResult=[],S3(),await this.searchAndPaintChapter(t,0,async()=>{}),n?(await this.searchBook(t),await this.searchChapter(t)):(await this.searchChapter(t),await this.searchBook(t))}async goToSearchID(t,n,r){var o=n,a;let l=this.delegate.currentChapterLink.href;var u=this.publication.getAbsoluteHref(t);let d=this.bookSearchResult.filter(f=>f.href===t);if(r?(a=this.currentChapterSearchResult.filter(f=>f.uuid===n)[0],o=this.currentChapterSearchResult.findIndex(f=>f.uuid===n)):(a=d.filter(f=>f.uuid===n)[0],o=d.findIndex(f=>f.uuid===n)),a!==void 0)if(l===u)this.jumpToMark(o);else{let m={href:u,locations:{progression:0},title:"title"};this.delegate.navigate(m),setTimeout(()=>{this.searchAndPaintChapter(a.textMatch,o,async()=>{})},300)}}async goToSearchIndex(t,n,r){var o=n,a;let l=this.delegate.currentChapterLink.href;var u=this.publication.getAbsoluteHref(t);let d=this.bookSearchResult.filter(f=>f.href===t);if(r?a=this.currentChapterSearchResult[o]:a=d[o],a!==void 0)if(l===u)this.jumpToMark(o);else{let m={href:u,locations:{progression:0},title:"title"};this.delegate.navigate(m),setTimeout(()=>{this.searchAndPaintChapter(a.textMatch,o,async()=>{})},300)}}async handleSearchBook(){var t=this,n=this.searchInput.value;if(t.headerMenu)var r=de(document,"#searchResultBook");o(1);async function o(l){r.innerHTML="";var u,d=await t.searchBook(n);if(u=t.paginate(d,l,10),u.total===0){let f=document.createElement("a");f.className="collection-item",f.innerHTML="nothing found",r.appendChild(f)}else{a(u.data,v=>v.href).forEach(v=>{let y=document.createElement("div");if(y.style.marginBottom="10px",v[0].title){let b=document.createElement("span");b.className="collection-item",b.style.display="block",b.innerHTML=v[0].title,y.appendChild(b)}r.appendChild(y),v.forEach(b=>{let w=document.createElement("a");w.className="collection-item";var O=t.publication.getAbsoluteHref(b.href);w.innerHTML="..."+b.textBefore+"<mark>"+b.textMatch+"</mark>"+b.textAfter+"...",Z(w,"click",T=>{T.preventDefault(),T.stopPropagation();let _=d.filter(D=>D.href===b.href).findIndex(D=>D===b);if(t.delegate.currentChapterLink.href===O)t.jumpToMark(_);else{let I={href:O,locations:{progression:0},title:"title"};t.delegate.navigate(I),setTimeout(()=>{t.handleSearchChapter(_)},300)}}),y.appendChild(w)})});let m=document.createElement("div");m.style.textAlign="center",m.style.marginTop="10px";let p=document.createElement("ul");p.className="pagination";let E=document.createElement("li");if(E.className="disabled",E.innerHTML='<a href="#!"> < </a>',u.pre_page!=null){let v=u.pre_page;E.className="waves-effect",Z(E,"click",y=>{y.preventDefault(),y.stopPropagation(),o(v)})}p.appendChild(E);for(let v=1;v<=u.total_pages;v++){let y,b=document.createElement("li");b.className="waves-effect",v===u.page&&(b.className="active",y=b),b.innerHTML='<a href="#!">'+v+"</a>",Z(b,"click",w=>{w.preventDefault(),w.stopPropagation(),y&&(y.className="waves-effect"),b.className="active",y=b,o(v)}),p.appendChild(b)}let S=document.createElement("li");if(S.className="disabled",S.innerHTML='<a href="#!"> > </a>',u.next_page!=null){let v=u.next_page;S.className="waves-effect",Z(S,"click",y=>{y.preventDefault(),y.stopPropagation(),o(v)})}p.appendChild(S),m.appendChild(p),r.appendChild(m)}}function a(l,u){let d=new Map;return l.forEach(f=>{let m=u(f),p=d.get(m);p?p.push(f):d.set(m,[f])}),Array.from(d.values())}}async searchBook(t){this.bookSearchResult=[];let n=[];for(let r=0;r<this.publication.readingOrder.length;r++){let o=this.publication.getAbsoluteHref(this.publication.readingOrder?this.publication.readingOrder[r].Href:""),a=this.publication.getTOCItem(o);if(a===void 0&&this.publication.readingOrder&&(a=this.publication.readingOrder[r]),a){let l=this.publication.getAbsoluteHref(a.Href);this.delegate.api?.getContent?await this.delegate.api?.getContent(l).then(u=>{let f=new DOMParser().parseFromString(this.delegate.requestConfig?.encoded?this.decodeBase64(u):u,"application/xhtml+xml");a&&lo(t,f,a.Href,a.Title).then(m=>{m.forEach(p=>{n.push(p),this.bookSearchResult.push(p)})})}):await fetch(l,this.delegate.requestConfig).then(u=>u.text()).then(async u=>{let f=new DOMParser().parseFromString(this.delegate.requestConfig?.encoded?this.decodeBase64(u):u,"application/xhtml+xml");a&&lo(t,f,a.Href,a.Title).then(m=>{m.forEach(p=>{n.push(p),this.bookSearchResult.push(p)})})})}if(r===this.publication.readingOrder.length-1)return n}}decodeBase64(t){let n=atob(t),r=n.length,o=new Uint8Array(r);for(let l=0;l<r;l++)o[l]=n.charCodeAt(l);return new TextDecoder().decode(o)}async searchChapter(t){let n=[],r=this.publication.getAbsoluteHref(this.publication.readingOrder[this.delegate.currentResource()??0].Href),o=this.publication.getTOCItem(r);if(o===null&&(o=this.publication.readingOrder[this.delegate.currentResource()??0]),o){let a=this.publication.getAbsoluteHref(o.Href);this.delegate.api?.getContent?await this.delegate.api?.getContent(a).then(l=>{let d=new DOMParser().parseFromString(this.delegate.requestConfig?.encoded?this.decodeBase64(l):l,"application/xhtml+xml");o&&lo(t,d,o.Href,o.Title).then(f=>{f.forEach(m=>{n.push(m)})})}):await fetch(a,this.delegate.requestConfig).then(l=>l.text()).then(async l=>{let d=new DOMParser().parseFromString(this.delegate.requestConfig?.encoded?this.decodeBase64(l):l,"application/xhtml+xml");o&&lo(t,d,o.Href,o.Title).then(f=>{f.forEach(m=>{n.push(m)})})})}return n}drawSearch(){setTimeout(()=>{this.currentSearchHighlights=[],this.currentChapterSearchResult.forEach(t=>{let n={rangeInfo:t.rangeInfo};if(this.properties?.color){let r=this.createSearchHighlight(n,this.properties?.color);t.highlight=r,this.currentSearchHighlights.push(r)}})},100)}async handleResize(){await this.highlighter?.destroyHighlights(qe.Search),this.drawSearch()}jumpToMark(t){setTimeout(()=>{if(this.currentChapterSearchResult.length){var n=this.currentChapterSearchResult[t];this.currentSearchHighlights.forEach(o=>{var a=this.properties?.color;De.isHexColor(a)&&(a=De.hexToRgbChannels(a)),o.color=a});var r=this.properties?.current;De.isHexColor(r)&&(r=De.hexToRgbChannels(r)),n.highlight.color=r,this.highlighter?.setAndResetSearchHighlight(n.highlight,this.currentSearchHighlights),this.delegate.view?.goToCssSelector(n.rangeInfo.startContainerElementCssSelector),this.delegate.updatePositionInfo()}},200)}paginate(t,n,r){let o=n||1,a=r||10,l=(o-1)*a,u=t.slice(l).slice(0,a),d=Math.ceil(t.length/a);return{page:o,per_page:a,pre_page:o-1?o-1:void 0,next_page:d>o?o+1:void 0,total:t.length,total_pages:d,data:u}}};A();var Kn=Je(Dt()),co=class{},Be=co;Be.COLOR_REF="color",Be.AUTO_SCROLL_REF="autoscroll",Be.RATE_REF="rate",Be.PITCH_REF="pitch",Be.VOLUME_REF="volume",Be.VOICE_REF="voice",Be.COLOR_KEY="tts-"+co.COLOR_REF,Be.AUTO_SCROLL_KEY="tts-"+co.AUTO_SCROLL_REF,Be.RATE_KEY="tts-"+co.RATE_REF,Be.PITCH_KEY="tts-"+co.PITCH_REF,Be.VOLUME_KEY="tts-"+co.VOLUME_REF,Be.VOICE_KEY="tts-"+co.VOICE_REF;var ng=class{constructor(t,n,r){this.TTSSETTINGS="ttsSetting";this.color="orange";this.autoScroll=!0;this.rate=1;this.pitch=1;this.volume=1;this.voice={usePublication:!0};this.settingsChangeCallback=()=>{};this.restartCallback=()=>{};this.store=t,this.api=n,this.headerMenu=r,this.initialise()}static create(t){let n=new this(t.store,t.api,t.headerMenu);if(t.initialTTSSettings){let r=t.initialTTSSettings;r?.rate&&(n.rate=r.rate,Kn.default.log(n.rate)),r?.pitch&&(n.pitch=r.pitch,Kn.default.log(n.pitch)),r?.volume&&(n.volume=r.volume,Kn.default.log(n.volume)),r?.color&&(n.color=r.color,Kn.default.log(n.color)),r?.autoScroll&&(n.autoScroll=r.autoScroll,Kn.default.log(n.autoScroll)),r?.voice&&(n.voice=r.voice,Kn.default.log(n.voice))}return n.initializeSelections(),n}stop(){Kn.default.log("tts settings stop")}initialise(){this.autoScroll=this.getProperty(Be.AUTO_SCROLL_KEY)!=null?this.getProperty(Be.AUTO_SCROLL_KEY).value:this.autoScroll,this.rate=this.getProperty(Be.RATE_KEY)!=null?this.getProperty(Be.RATE_KEY).value:this.rate,this.pitch=this.getProperty(Be.PITCH_KEY)!=null?this.getProperty(Be.PITCH_KEY).value:this.pitch,this.volume=this.getProperty(Be.VOLUME_KEY)!=null?this.getProperty(Be.VOLUME_KEY).value:this.volume,this.color=this.getProperty(Be.COLOR_KEY)!=null?this.getProperty(Be.COLOR_KEY).value:this.color,this.voice=this.getProperty(Be.VOICE_REF)!=null?this.getProperty(Be.VOICE_REF).value:this.voice,this.userProperties=this.getTTSSettings()}reset(){this.color="orange",this.autoScroll=!0,this.rate=1,this.pitch=1,this.volume=1,this.voice={usePublication:!0},this.userProperties=this.getTTSSettings()}initializeSelections(){this.headerMenu&&(this.settingsView=de(this.headerMenu,"#container-view-tts-settings"))}setControls(){this.settingsView&&this.renderControls(this.settingsView)}renderControls(t){this.headerMenu&&(this.speechRate=de(this.headerMenu,"#speechRate")),this.headerMenu&&(this.speechPitch=de(this.headerMenu,"#speechPitch")),this.headerMenu&&(this.speechVolume=de(this.headerMenu,"#speechVolume")),this.headerMenu&&(this.speechAutoScroll=de(this.headerMenu,"#autoScroll")),this.speechRate&&(this.speechRate.value=this.rate.toString()),this.speechPitch&&(this.speechPitch.value=this.pitch.toString()),this.speechVolume&&(this.speechVolume.value=this.volume.toString()),this.speechAutoScroll&&(this.speechAutoScroll.checked=this.autoScroll),Z(de(t,"ul"),"click",n=>{n.stopPropagation()})}onSettingsChange(t){this.settingsChangeCallback=t}onRestart(t){this.restartCallback=t}storeProperty(t){this.updateUserSettings(),this.saveProperty(t)}updateUserSettings(){var t={rate:this.userProperties.getByRef(Be.RATE_REF)?.value,pitch:this.userProperties.getByRef(Be.PITCH_REF)?.value,volume:this.userProperties.getByRef(Be.VOLUME_REF)?.value,voice:this.userProperties.getByRef(Be.VOLUME_REF)?.value,color:this.userProperties.getByRef(Be.COLOR_REF)?.value,autoScroll:this.userProperties.getByRef(Be.AUTO_SCROLL_REF)?.value};this.applyTTSSettings(t),this.api?.updateSettings&&this.api?.updateSettings(t).then(async n=>{Kn.default.log("api updated tts settings",n)})}getTTSSettings(){var t=new xi;return t.addSwitchable("tts-auto-scroll-off","tts-auto-scroll-on",this.autoScroll,Be.AUTO_SCROLL_REF,Be.AUTO_SCROLL_KEY),t.addIncremental(this.rate,.1,10,.1,"",Be.RATE_REF,Be.RATE_KEY),t.addIncremental(this.pitch,.1,2,.1,"",Be.PITCH_REF,Be.PITCH_KEY),t.addIncremental(this.volume,.1,1,.1,"",Be.VOLUME_REF,Be.VOLUME_KEY),t.addStringable(this.color,Be.COLOR_REF,Be.COLOR_KEY),t.addJSONable(JSON.stringify(this.voice),Be.VOICE_REF,Be.VOICE_KEY),t}saveProperty(t){let n=this.store.get(this.TTSSETTINGS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.name!==t.name),r.push(t),this.store.set(this.TTSSETTINGS,JSON.stringify(r))}else{let r=[];r.push(t),this.store.set(this.TTSSETTINGS,JSON.stringify(r))}return t}getProperty(t){let n=this.store.get(this.TTSSETTINGS);if(n){let r=JSON.parse(n);return r=r.filter(o=>o.name===t),r.length===0?void 0:r[0]}}resetTTSSettings(){this.store.remove(this.TTSSETTINGS),this.reset(),this.settingsChangeCallback(),this.restartCallback()}applyTTSSettings(t){if(t.rate){Kn.default.log("rate "+this.rate),this.rate=t.rate;let n=this.userProperties.getByRef(Be.RATE_REF);n&&(n.value=this.rate,this.saveProperty(n)),this.settingsChangeCallback(),this.restartCallback()}if(t.pitch){Kn.default.log("pitch "+this.pitch),this.pitch=t.pitch;let n=this.userProperties.getByRef(Be.PITCH_REF);n&&(n.value=this.pitch,this.saveProperty(n)),this.settingsChangeCallback(),this.restartCallback()}if(t.volume){Kn.default.log("volume "+this.volume),this.volume=t.volume;let n=this.userProperties.getByRef(Be.VOLUME_REF);n&&(n.value=this.volume,this.saveProperty(n)),this.settingsChangeCallback(),this.restartCallback()}if(t.color){this.color=t.color;let n=this.userProperties.getByRef(Be.COLOR_REF);n&&(n.value=this.color,this.saveProperty(n)),this.settingsChangeCallback()}if(t.autoScroll!==void 0){Kn.default.log("autoScroll "+this.autoScroll),this.autoScroll=t.autoScroll;let n=this.userProperties.getByRef(Be.AUTO_SCROLL_REF);n&&(n.value=this.autoScroll,this.saveProperty(n)),this.settingsChangeCallback()}if(t.voice){Kn.default.log("voice "+this.voice),this.voice=t.voice;let n=this.userProperties.getByRef(Be.VOICE_REF);n&&(n.value=this.voice,this.saveProperty(n)),this.settingsChangeCallback(),this.restartCallback()}}applyPreferredVoice(t){var n=t.indexOf(":")!==-1?t.slice(0,t.indexOf(":")):void 0,r=t.indexOf(":")!==-1?t.slice(t.indexOf(":")+1):t;n!==void 0&&r!==void 0?this.applyTTSSettings({voice:{usePublication:!0,name:n,lang:r}}):r!==void 0&&n===void 0&&this.applyTTSSettings({voice:{usePublication:!0,lang:r}})}increase(t){if(t==="rate"){this.userProperties.getByRef(Be.RATE_REF).increment();let n=this.userProperties.getByRef(Be.RATE_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}else if(t==="pitch"){this.userProperties.getByRef(Be.PITCH_REF).increment();let n=this.userProperties.getByRef(Be.PITCH_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}else if(t==="volume"){this.userProperties.getByRef(Be.VOLUME_REF).increment();let n=this.userProperties.getByRef(Be.VOLUME_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}}decrease(t){if(t==="rate"){this.userProperties.getByRef(Be.RATE_REF).decrement();let n=this.userProperties.getByRef(Be.RATE_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}else if(t==="pitch"){this.userProperties.getByRef(Be.PITCH_REF).decrement();let n=this.userProperties.getByRef(Be.PITCH_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}else if(t==="volume"){this.userProperties.getByRef(Be.VOLUME_REF).decrement();let n=this.userProperties.getByRef(Be.VOLUME_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}}};A();A();var _3=`${Ur.loading}`,T3=`
75
+ </svg>`,Ur={error:Gn("error-icon","Warning",'<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>'),home:'<path d="M12 5.69l5 4.5V18h-2v-6H9v6H7v-7.81l5-4.5M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z"/>',expand:Gn("expand-icon","Enter fullscreen",'<path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/>',"icon active-icon"),loading:O8("loading-icon","Loading",'<path fill="#BBBBBB" d="M145,241.6c-53.3,0-96.6-43.2-96.6-96.6c0-53.3,43.2-96.6,96.6-96.6c53.3,0,96.6,43.2,96.6,96.6 c0,26.7-10.8,50.9-28.3,68.3l7.6,7.6c19.4-19.4,31.5-46.3,31.5-75.9c0-59.3-48-107.3-107.3-107.3S37.7,85.7,37.7,145 c0,59.3,48,107.3,107.3,107.3V241.6z"/>',"0 0 290 290"),next:Gn("next-icon","Next Chapter",'<path d="M6.49 20.13l1.77 1.77 9.9-9.9-9.9-9.9-1.77 1.77L14.62 12l-8.13 8.13z"/>'),previous:Gn("previous-icon","Previous Chapter",'<path d="M17.51 3.87L15.73 2.1 5.84 12l9.9 9.9 1.77-1.77L9.38 12l8.13-8.13z"/>'),settings:Gn("settings-icon","Settings",'<path d="M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/>',"icon open"),toc:Gn("toc-icon","Table of Contents",'<path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/>',"icon open"),bookmarks:Gn("toc-icon","Bookmarks",'<path d="M4,6H2v16h16v-2H4V6z"/><path d="M22,2H6v16h16V2z M20,12l-2.5-1.5L15,12V4h5V12z"/>',"icon open"),bookmark:Gn("toc-icon","Bookmark",'<path d="M19,3H5v18l7-3l7,3V3z"/>',"icon open"),delete:Gn("delete-icon","Delete",'<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/>',"icon open"),close:Gn("close-icon","Close",'<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>',"icon open"),text:Gn("text-icon","Text",'<path d="M5 4v3h5.5v12h3V7H19V4z"/>',"icon open"),speak:Gn("speak-icon","Speak",'<circle cx="9" cy="9" r="4"/><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"/><path d="M0 0h24v24H0z" fill="none"/>',"icon open"),note:Gn("note-icon","Note",'<polygon points="17.71 24.66 22.3 20.07 17.71 20.07 17.71 24.66" fill="none"/><path d="M22.42.07H5.58A3.28,3.28,0,0,0,2.29,3.35V24.79a3.28,3.28,0,0,0,3.29,3.28H16.71a1,1,0,0,0,.71-.29l8-8a1,1,0,0,0,.29-.71V3.35A3.28,3.28,0,0,0,22.42.07Zm-8.17,15h-7v-2h7Zm-7-6v-2h13v2ZM16.5,25.86v-6a1,1,0,0,1,1-1h6Z" />',"icon open"),highlight:Gn("highlight-icon","Highlight",'<path d="M27.71,7.78,21.12,1.19a1,1,0,0,0-1.38,0L4.32,15A1,1,0,0,0,4,15.7a1,1,0,0,0,.3.73c1.22,1.22,1.2,2.37,0,3.62a1,1,0,0,0,0,1.41l3.2,3.2a1,1,0,0,0,1.41,0c1.28-1.28,2.36-1.29,3.62,0a1,1,0,0,0,1.45,0L27.74,9.16A1,1,0,0,0,27.71,7.78Z" /><path d="M3.09,22.59l-2.8,2.8a1,1,0,0,0-.21,1.09A1,1,0,0,0,1,27.1H4.6a1,1,0,0,0,.71-.29l1-1Z" />',"icon open")};var p0=Je(Ed());var Mn=Je(Dt()),Me;(function(d){d.R2_ID_HIGHLIGHTS_CONTAINER="R2_ID_HIGHLIGHTS_CONTAINER",d.R2_ID_BOOKMAKRS_CONTAINER="R2_ID_BOOKMAKRS_CONTAINER",d.R2_ID_READALOUD_CONTAINER="R2_ID_READALOUD_CONTAINER",d.R2_ID_PAGEBREAK_CONTAINER="R2_ID_PAGEBREAK_CONTAINER",d.R2_ID_SEARCH_CONTAINER="R2_ID_SEARCH_CONTAINER",d.R2_ID_DEFINITIONS_CONTAINER="R2_ID_DEFINITIONS_CONTAINER",d.R2_ID_LINEFOCUS_CONTAINER="R2_ID_LINEFOCUS_CONTAINER",d.R2_ID_GUTTER_RIGHT_CONTAINER="R2_ID_GUTTER_RIGHT_CONTAINER"})(Me||(Me={}));var x4="R2_CLASS_HIGHLIGHT_CONTAINER",Ya="R2_CLASS_HIGHLIGHT_BOUNDING_AREA",pn="R2_CLASS_HIGHLIGHT_AREA",Za="R2_CLASS_HIGHLIGHT_ICON",si=.5,_4=.75,$o={blue:100,green:50,red:230},zt=[],x8="data-highlighted",_8="data-timestamp",zs={ELEMENT_NODE:1,TEXT_NODE:3},hr=[Me.R2_ID_HIGHLIGHTS_CONTAINER,Me.R2_ID_PAGEBREAK_CONTAINER,Me.R2_ID_SEARCH_CONTAINER,Me.R2_ID_READALOUD_CONTAINER,Me.R2_ID_BOOKMAKRS_CONTAINER,Me.R2_ID_DEFINITIONS_CONTAINER,Me.R2_ID_LINEFOCUS_CONTAINER,Me.R2_ID_GUTTER_RIGHT_CONTAINER,x4,pn,Ya],g0=-1,m0=-1,De=class{constructor(t,n,r,o,a,l){this.lastSelectedHighlight=void 0;this.activeAnnotationMarkerId=void 0;this.showTool=(0,Ka.debounce)(t=>{this.isAndroid()||this.snapSelectionToWord(t),this.toolboxShow()},navigator.userAgent.toLowerCase().indexOf("firefox")>-1?200:100);this.isSelectionMenuOpen=!1;this.selectionMenuOpened=(0,Ka.debounce)(()=>{this.isSelectionMenuOpen||(this.isSelectionMenuOpen=!0,this.api?.selectionMenuOpen&&this.api?.selectionMenuOpen(),this.delegate.emit("toolbox.opened","opened"))},100);this.selectionMenuClosed=(0,Ka.debounce)(()=>{this.isSelectionMenuOpen&&(this.isSelectionMenuOpen=!1,this.api?.selectionMenuClose&&this.api?.selectionMenuClose(),this.delegate.emit("toolbox.closed","closed"))},100);this.selection=(0,Ka.debounce)((t,n)=>{this.api?.selection&&this.api?.selection(t,n)},100);this.getScrollingElement=t=>t?.scrollingElement?t?.scrollingElement:t?.body?t?.body:document.createElement("body");this.delegate=t,this.layerSettings=n,this.properties=r,this.api=l,this.hasEventListener=o,this.options=this.defaults(a,{color:"#fce300",highlightedClass:"highlighted",contextClass:"highlighter-context",onBeforeHighlight:function(){return!0},onAfterHighlight:function(){}}),this.delegate.highlighter=this}static async create(t){let n=new this(t.delegate,t.layerSettings,t,!1,{},t.api);return new Promise(r=>r(n))}async initialize(){let t=this.delegate.iframes[0].contentDocument;t&&this.dom(t.body).addClass(this.options.contextClass),this.bindEvents(this.delegate.iframes[0].contentDocument?.body,this,this.hasEventListener),this.initializeToolbox(),g0=-1,m0=-1;let n=this;async function r(){n.lastSelectedHighlight===void 0||(n.lastSelectedHighlight=void 0)}setTimeout(async()=>{let o=this.delegate.iframes[0].contentDocument;o&&await o.body?.addEventListener("click",r)},100)}haveSameColor(t,n){return this.dom(t).color()===this.dom(n).color()}defaults(t,n){t=t||{};for(let r in n)n.hasOwnProperty(r)&&t[r]===void 0&&(t[r]=n[r]);return t}unique(t){return t.filter(function(n,r,o){return o.indexOf(n)===r})}refineRangeBoundaries(t){let n=t.startContainer,r=t.endContainer,o=t.commonAncestorContainer,a=!0;if(t.endOffset===0){for(;!r.previousSibling&&r.parentNode!==o;)r=r.parentNode;r=r.previousSibling}else r.nodeType===zs.TEXT_NODE?t.endOffset<r.nodeValue.length&&r.splitText(t.endOffset):t.endOffset>0&&(r=r.childNodes.item(t.endOffset-1));return n.nodeType===zs.TEXT_NODE?t.startOffset===n.nodeValue.length?a=!1:t.startOffset>0&&(n=n.splitText(t.startOffset),r===n.previousSibling&&(r=n)):t.startOffset<n.childNodes.length?n=n.childNodes.item(t.startOffset):n=n.nextSibling,{startContainer:n,endContainer:r,goDeeper:a}}sortByDepth(t,n){let r=this;t.sort(function(o,a){return r.dom(n?a:o).parents().length-r.dom(n?o:a).parents().length})}groupHighlights(t){let n=[],r={},o=[];return t.forEach(function(a){let l=a.getAttribute(_8);typeof r[l]=="undefined"&&(r[l]=[],n.push(l)),r[l].push(a)}),n.forEach(function(a){let l=r[a];o.push({chunks:l,timestamp:a,toString:function(){return l.map(function(u){return u.textContent}).join("")}})}),o}dom(t){let n=this;return{addClass:function(r){t.classList?t.classList.add(r):t.className+=" "+r},removeClass:function(r){t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r+"(\\b|$)","gi")," ")},prepend:function(r){let o=Array.prototype.slice.call(r),a=o.length;for(;a--;)t.insertBefore(o[a],t.firstChild)},append:function(r){let o=Array.prototype.slice.call(r);for(let a=0,l=o.length;a<l;++a)t.appendChild(o[a])},insertAfter:function(r){return r.parentNode?.insertBefore(t,r.nextSibling)},insertBefore:function(r){return r.parentNode?.insertBefore(t,r)},remove:function(){t.parentNode.removeChild(t),t=null},contains:function(r){return t!==r&&t.contains(r)},wrap:function(r){return t.parentNode&&t.parentNode.insertBefore(r,t),r.appendChild(t),r},unwrap:function(){let r=Array.prototype.slice.call(t.childNodes),o;return r.forEach(function(a){o=a.parentNode,n.dom(a).insertBefore(a.parentNode),n.dom(o).remove()}),r},parents:function(){let r,o=[];for(;r=t.parentNode;)o.push(r),t=r;return o},normalizeTextNodes:function(){if(!!t){if(t.nodeType===zs.TEXT_NODE)for(;t.nextSibling&&t.nextSibling.nodeType===zs.TEXT_NODE;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else n.dom(t.firstChild).normalizeTextNodes();n.dom(t.nextSibling).normalizeTextNodes()}},color:function(){return t.style.backgroundColor},fromHTML:function(r){let o=document.createElement("div");return o.innerHTML=r,o.childNodes},getRange:function(){let r=n.dom(t)?.getSelection(),o;return r?.rangeCount>0&&(o=r?.getRangeAt(0)),o},removeAllRanges:function(){n.dom(t)?.getSelection()?.removeAllRanges(),n.toolboxHide()},getSelection:function(){return n.dom(t).getWindow()?.getSelection()},getWindow:function(){return n.dom(t).getDocument()?.defaultView},getDocument:function(){return t?.ownerDocument||t}}}disableContext(t){return t.preventDefault(),t.stopPropagation(),!1}bindEvents(t,n,r){let o=t.ownerDocument;t.addEventListener("mouseup",this.toolboxShowDelayed.bind(this)),t.addEventListener("touchend",this.toolboxShowDelayed.bind(this)),o.addEventListener("mouseup",this.toolboxShowDelayed.bind(this)),o.addEventListener("touchend",this.toolboxShowDelayed.bind(this)),r||window.addEventListener("resize",this.toolboxPlacement.bind(this)),o.addEventListener("selectionchange",this.toolboxPlacement.bind(this)),t.addEventListener("mousedown",this.toolboxHide.bind(this)),t.addEventListener("touchstart",this.toolboxHide.bind(this)),this.isAndroid()&&t.addEventListener("contextmenu",this.disableContext),t.addEventListener("mousedown",this.mousedown.bind(this)),t.addEventListener("mouseup",this.mouseup.bind(this)),t.addEventListener("mousemove",this.mousemove.bind(this)),t.addEventListener("touchstart",this.mousedown.bind(this)),t.addEventListener("touchend",this.mouseup.bind(this)),t.addEventListener("touchmove",this.mousemove.bind(this)),this.hasEventListener=!0}async mousedown(t){g0=t.clientX,m0=t.clientY}async mouseup(t){Math.abs(g0-t.clientX)<3&&Math.abs(m0-t.clientY)<3&&await this.processMouseEvent(t)}async mousemove(t){await this.processMouseEvent(t)}unbindEvents(t,n){let r=t.ownerDocument;t.removeEventListener("mouseup",this.toolboxShowDelayed.bind(this)),t.removeEventListener("touchend",this.toolboxShowDelayed.bind(this)),r.removeEventListener("mouseup",this.toolboxShowDelayed.bind(this)),r.removeEventListener("touchend",this.toolboxShowDelayed.bind(this)),window.removeEventListener("resize",this.toolboxPlacement.bind(this)),r.removeEventListener("selectionchange",this.toolboxPlacement.bind(this)),t.removeEventListener("mousedown",this.toolboxHide.bind(this)),t.removeEventListener("touchstart",this.toolboxHide.bind(this)),this.isAndroid()&&t.removeEventListener("contextmenu",this.disableContext),t.removeEventListener("mousedown",this.mousedown.bind(this)),t.removeEventListener("mouseup",this.mouseup.bind(this)),t.removeEventListener("mousemove",this.mousemove.bind(this)),t.removeEventListener("touchstart",this.mousedown.bind(this)),t.removeEventListener("touchend",this.mouseup.bind(this)),t.removeEventListener("touchmove",this.mousemove.bind(this)),this.hasEventListener=!1}destroy(){this.toolboxHide();let t=this.delegate.iframes[0].contentDocument;t&&(this.unbindEvents(t.body,this),this.dom(t.body).removeClass(this.options.contextClass))}initializeToolbox(){let t=document.getElementById("highlight-toolbox-mode-colors"),n=document.getElementById("highlight-toolbox-mode-add"),r=["#fce300","#48e200","#00bae5","#157cf9","#6a39b7","#ea426a","#ff8500"],o=document.getElementById("colorIcon"),a=document.getElementById("actionIcon"),l=document.getElementById("dismissIcon"),u=document.getElementById("collapseIcon"),d=document.getElementById("highlightIcon"),f=this;if(l&&(l.innerHTML=Ur.close,l.addEventListener("click",function(){f.toolboxMode("add")})),u&&(u.innerHTML=Ur.close,u.addEventListener("click",function(){f.toolboxMode("add")})),o){o.style.position="relative",o.style.zIndex="20",r.forEach(E=>{let S=document.getElementById(E),v=document.getElementById(`c${E}`);S&&t?.contains(S)&&t.removeChild(S),n&&v&&n.contains(v)&&n.removeChild(v)});let m=[],p=[];if(o.addEventListener("click",function(){f.toolboxMode("colors")}),this.delegate.rights.enableAnnotations){let E=10;r.forEach(S=>{E--;let v=o?.cloneNode(!0),y=v.lastChild,b=De.hexToRgbChannels(S);y.style.backgroundColor="rgba("+[b.red,b.green,b.blue].join(",")+",.5)",v.id=`c${S}`,v.style.display="unset",v.style.position="relative",v.style.zIndex=`${E}`,v.style.marginLeft="-30px",p.push(v),n?.insertBefore(v,d)})}r.forEach(E=>{let S=o?.cloneNode(!0),v=S.lastChild;v.style.backgroundColor=E,S.id=E,S.style.position="relative",S.style.display="unset",m.push(S),o&&S.addEventListener("click",function(){f.setColor(E);let y=o?.lastChild;y&&(y.style.backgroundColor=E);let b=document.getElementById("highlightIcon"),w=document.getElementById("underlineIcon"),O=document.getElementById("noteIcon");(b?.getElementsByTagName?.("span").length??0)>0&&((b?.getElementsByTagName("span")[0]).style.background=f.getColor()),(w?.getElementsByTagName?.("span").length??0)>0&&((w?.getElementsByTagName("span")[0]).style.borderBottomColor=f.getColor()),(O?.getElementsByTagName?.("span").length??0)>0&&((O?.getElementsByTagName("span")[0]).style.borderBottomColor=f.getColor()),f.toolboxMode("add")}),t?.insertBefore(S,l)})}a&&a.addEventListener("click",function(){f.toolboxMode("action")}),f.toolboxMode("add")}toolboxMode(t){let n=document.getElementById("highlight-toolbox-mode-colors"),r=document.getElementById("highlight-toolbox-mode-add"),o=document.getElementById("highlight-toolbox-mode-edit"),a=document.getElementById("highlight-toolbox-mode-action");switch(t){case"colors":n&&(n.style.display="unset"),r&&(r.style.display="none"),o&&(o.style.display="none"),a&&(a.style.display="none");break;case"edit":n&&(n.style.display="none"),r&&(r.style.display="none"),o&&(o.style.display="unset"),a&&(a.style.display="none");break;case"action":n&&(n.style.display="none"),r&&(r.style.display="none"),o&&(o.style.display="none"),a&&(a.style.display="unset");break;default:n&&(n.style.display="none"),r&&(r.style.display="unset"),o&&(o.style.display="none"),a&&(a.style.display="none");break}}toolboxHide(){let t=document.getElementById("highlight-toolbox");t&&(t.style.display="none"),this.selectionMenuClosed()}toolboxShowDelayed(t){this.showTool(t.detail===1)}snapSelectionToWord(t=!1){let n=this,r=this.delegate.iframes[0].contentDocument;if(r){let a=n.dom(r.body)?.getSelection();if(n.dom(r.body)&&a&&!a?.isCollapsed){let f=function(b){let w=b.match(new RegExp("[^a-zA-Z0-9]+$"));return!w||!w.index?b:b.slice(0,w.index)},l=a.toString(),u=l.length-l.trimStart().length,d=l.length-l.trimEnd().length,m=l.length;var o=/[-!$%^&*()_+|~=`{}[\]:/;<>?,.@#]/;l=l.replace(o,""),u=m-l.trimStart().length,l=f(l),d=m-l.trimEnd().length;let p=document.createRange();t?(p.setStart(a.anchorNode,a.anchorOffset+u),p.setEnd(a.focusNode,a.focusOffset-d)):(p.setStart(a.anchorNode,a.anchorOffset),p.setEnd(a.focusNode,a.focusOffset));let E=p.collapsed;p.detach();let S=a.focusNode,v;t?(v=a.focusOffset-d,a.collapse(a.anchorNode,a.anchorOffset+u)):(v=a.focusOffset,a.collapse(a.anchorNode,a.anchorOffset));let y=["forward","backward"];E&&(y=["backward","forward"]),t?(a.modify("move",y[0],"character"),a.modify("move",y[1],"word"),a.extend(S,v),a.modify("extend",y[1],"character"),a.modify("extend",y[0],"word")):a.extend(S,v),this.selection(a.toString(),a)}return a}}toolboxShow(){if(this.activeAnnotationMarkerId===void 0){let t=this,n=document.getElementById("highlight-toolbox-mode-add"),r=this.dom(this.delegate.iframes[0].contentDocument?.body).getRange();if((!r||r.collapsed)&&n){getComputedStyle(n).display!=="none"&&t.toolboxHide();return}this.isIOS()&&setTimeout(function(){let o=t.delegate.iframes[0].contentDocument;if(o){let a=t.dom(o.body).getSelection();a.removeAllRanges(),setTimeout(function(){a.addRange(r);function l(f){let m={className:E=>hr.indexOf(E)<0,idName:E=>hr.indexOf(E)<0},p=t.delegate.iframes[0].contentDocument;if(p)return ln(f,p,m)}let u=t.delegate.iframes[0].contentWindow,d=oi(u,l);t.delegate.annotationModule?.annotator?.saveTemporarySelectionInfo(d)},5)}},100),this.toolboxPlacement(),this.toolboxHandler()}}toolboxPlacement(){let t=this.dom(this.delegate.iframes[0].contentDocument?.body).getRange();if(!t||t.collapsed)return;let n=t.getBoundingClientRect(),r=document.getElementById("highlight-toolbox");r&&(this.delegate.view?.isPaginated()?r.style.top=n.top+(this.delegate.attributes?.navHeight??0)+"px":r.style.top=n.top+"px",r.style.left=(n.right-n.left)/2+n.left+"px")}toolboxHandler(){let t=document.getElementById("highlight-toolbox");if(t&&getComputedStyle(t).display==="none"){t.style.display="block",this.delegate.view?.isPaginated()?t.style.position="absolute":t.style.position="relative",this.selectionMenuOpened();let r=this;r.toolboxMode("add");let o=document.getElementById("highlightIcon"),a=document.getElementById("collapseIcon"),l=document.getElementById("underlineIcon"),u=document.getElementById("noteIcon"),d=document.getElementById("colorIcon"),f=document.getElementById("speakIcon");if(this.delegate.rights.enableAnnotations){if(o&&(o.style.display="unset",d&&o.getElementsByTagName("span").length>0&&(o.getElementsByTagName("span")[0].style.background=this.getColor())),l&&(l.style.display="unset",d&&l.getElementsByTagName("span").length>0&&(l.getElementsByTagName("span")[0].style.borderBottomColor=this.getColor())),u&&(u.style.display="unset",d&&u.getElementsByTagName("span").length>0&&(u.getElementsByTagName("span")[0].style.borderBottomColor=this.getColor())),d){d.style.display="unset";let m=d.lastChild;m.style.backgroundColor=this.getColor()}if(o){let m=function(){r.doHighlight(!1,Le.Highlight),r.toolboxHide(),o?.removeEventListener("click",m)},p=o.cloneNode(!0);o?.parentNode?.replaceChild(p,o),o=document.getElementById("highlightIcon"),o?.addEventListener("click",m)}if(l){let m=function(){r.doHighlight(!1,Le.Underline),r.toolboxHide(),l?.removeEventListener("click",m)},p=l.cloneNode(!0);l?.parentNode?.replaceChild(p,l),l=document.getElementById("underlineIcon"),l?.addEventListener("click",m)}if(u){let m=function(){r.doHighlight(!1,Le.Comment),r.toolboxHide(),u?.removeEventListener("click",m)},p=u.cloneNode(!0);u?.parentNode?.replaceChild(p,u),u=document.getElementById("noteIcon"),u?.addEventListener("click",m)}}else o&&o.style.setProperty("display","none"),l&&l.style.setProperty("display","none"),u&&u.style.setProperty("display","none"),d&&d.style.setProperty("display","none"),a&&a.style.setProperty("display","none");if(this.delegate.rights.enableTTS){if(f){let m=function(){f?.removeEventListener("click",m),r.speak()},p=f.cloneNode(!0);f?.parentNode?.replaceChild(p,f),f=document.getElementById("speakIcon"),f?.addEventListener("click",m)}}else f&&f.style.setProperty("display","none");(this.properties?.selectionMenuItems??[])&&(this.properties?.selectionMenuItems??[]).forEach(m=>{m.icon&&(m.icon.id=m.id);let p=document.getElementById(m.id),E=this;function S(){p?.removeEventListener("click",S);function v(b){let w={className:T=>hr.indexOf(T)<0,idName:T=>hr.indexOf(T)<0},O=E.delegate.iframes[0].contentDocument;if(O)return ln(b,O,w)}let y=E.delegate.iframes[0].contentWindow;if(y){let b=oi(y,v);if(b===void 0){let w=E.delegate.iframes[0].contentDocument;b=E.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(w)}if(b!==void 0)if(m.callback)m.callback(b.cleanText,b.range?.startContainer.parentElement);else{let w=m.highlight?.style,O=m.marker?m.marker:Le.Custom;if(O===Le.Custom&&E.delegate.rights.enableAnnotations||O===Le.Bookmark&&E.delegate.rights.enableBookmarks){let T=E.delegate.iframes[0].contentDocument;if(T){let C=E.createHighlight(E.dom(T.body).getWindow(),b,m.highlight?.color,!0,O,m.icon,m.popup,w);E.options.onAfterHighlight(C,O),E.delegate.rights.enableAnnotations?E.delegate.annotationModule?.saveAnnotation(C[0]).then(_=>{m?.note&&_.highlight&&E.delegate.annotationModule?.api?.addCommentToAnnotation(_).then(I=>{E.delegate.annotationModule?.updateAnnotation(I).then(async()=>{Mn.default.log("update highlight "+I.id)})})}):E.delegate.rights.enableBookmarks&&E.delegate.bookmarkModule?.saveAnnotation(C[0])}}}}E.callbackComplete()}if(p){let v=p.cloneNode(!0);p?.parentNode?.replaceChild(v,p),p=document.getElementById(m.id),p?.addEventListener("click",S)}})}}doHighlight(t,n){let r=this;function o(l){let u={className:f=>hr.indexOf(f)<0,idName:f=>hr.indexOf(f)<0},d=r.delegate.iframes[0].contentDocument;if(d)return ln(l,d,u)}let a=r.delegate.iframes[0].contentWindow;if(a){let l=oi(a,o);if(l===void 0){let u=r.delegate.iframes[0].contentDocument;l=this.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(u)}if(l){if(this.options.onBeforeHighlight(l)===!0){let u;u=this.getColor(),De.isHexColor(u)&&(u=De.hexToRgbChannels(u));let d=r.delegate.iframes[0].contentDocument;if(d){let f=this.createHighlight(r.dom(d.body).getWindow(),l,u,!0,n??Le.Highlight);this.options.onAfterHighlight(f,n),this.delegate.rights.enableAnnotations&&n!==Le.Bookmark?this.delegate.annotationModule?.saveAnnotation(f[0]):this.delegate.rights.enableBookmarks&&n===Le.Bookmark&&this.delegate.bookmarkModule?.saveAnnotation(f[0])}}t||this.dom(this.delegate.iframes[0].contentDocument?.body).removeAllRanges()}else t||this.dom(this.delegate.iframes[0].contentDocument?.body).removeAllRanges()}}speak(){if(this.delegate.rights.enableTTS){let n=function(l){let u={className:f=>hr.indexOf(f)<0,idName:f=>hr.indexOf(f)<0},d=t.delegate.iframes[0].contentDocument;if(d)return ln(l,d,u)},t=this,r=t.delegate.iframes[0].contentWindow;if(r){let l=oi(r,n);if(l===void 0){let u=t.delegate.iframes[0].contentDocument;l=t.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(u)}l!==void 0&&this.delegate.ttsModule.speak(l,!0,()=>{})}let o=t.delegate.iframes[0].contentDocument;o&&t.dom(o.body).getSelection().removeAllRanges();let a=document.getElementById("highlight-toolbox");a&&(a.style.display="none"),this.selectionMenuClosed()}}stopReadAloud(){this.delegate.rights.enableTTS&&this.doneSpeaking()}callbackComplete(){this.toolboxHide();let t=this.delegate.iframes[0].contentDocument;t&&this.dom(t.body).removeAllRanges()}isOutsideViewport(t){let n=dt(document,"#iframe-wrapper"),r=n.scrollLeft,o=r+n.clientWidth,a=t.left+t.width,l=t.top+t.height,u=n.scrollTop,d=u+n.clientHeight,f=l<u,m=t.top>d,p=a<r,E=t.left>o;return f||m||p||E}isInsideViewport(t){let n=dt(document,"#iframe-wrapper"),r=n.scrollTop,o=r+n.clientHeight,a=t.top+20>=r,l=t.top<=o,u=n.scrollLeft,d=u+n.clientWidth,f=t.left+t.width,m=t.left>u,p=f<d;return a&&l&&m&&p}get visibleTextRects(){let t=this.delegate.iframes[0].contentDocument;if(t){let r=function(u,d=[]){let f=u.firstChild;for(;f;)f.nodeType===1&&r(f,d),f.nodeType===3&&f.textContent?.trim()&&d.push(f),f=f.nextSibling;return d},o=function(u){return r(u).map(f=>{let{top:m,height:p,left:E,width:S}=a(f);return{top:m,height:p,width:S,left:E,node:f,textContent:f.textContent??""}})},a=function(u){try{let d=document.createRange();d.selectNode(u);let f=d.getBoundingClientRect();return d.detach(),f}catch(d){Mn.default.log("measureTextNode "+d),Mn.default.log("measureTextNode "+u),Mn.default.log(`${u.textContent}`)}},n=_i(t,"body");return o(n).filter(u=>this.isInsideViewport(u))}return[]}doneSpeaking(t=!1){if(this.delegate.rights.enableTTS){this.toolboxHide();let n=this.delegate.iframes[0].contentDocument;n&&this.dom(n.body).removeAllRanges(),this.delegate.ttsModule.cancel(),t&&this.delegate.reload()}}normalizeHighlights(t){var n;return n=t.filter(function(r){return r.parentElement?r:null}),n=this.unique(n),n.sort(function(r,o){return r.offsetTop-o.offsetTop||r.offsetLeft-o.offsetLeft}),n}flattenNestedHighlights(t){let n,r=this;r.sortByDepth(t,!0);function o(){let a=!1;return t.forEach(function(l,u){let d=l.parentElement,f=d.previousSibling,m=d.nextSibling;r.isHighlight(d)&&(r.haveSameColor(d,l)?(d.replaceChild(l.firstChild,l),t[u]=d,a=!0):(l.nextSibling||(r.dom(l).insertBefore(m||d),a=!0),l.previousSibling||(r.dom(l).insertAfter(f||d),a=!0),d.hasChildNodes()||r.dom(d).remove()))}),a}do n=o();while(n)}mergeSiblingHighlights(t){let n=this;function r(o,a){return a&&a.nodeType===zs.ELEMENT_NODE&&n.haveSameColor(o,a)&&n.isHighlight(a)}t.forEach(function(o){let a=o.previousSibling,l=o.nextSibling;r(o,a)&&(n.dom(o).prepend(a.childNodes),n.dom(a).remove()),r(o,l)&&(n.dom(o).append(l.childNodes),n.dom(l).remove()),n.dom(o).normalizeTextNodes()})}setColor(t){this.options.color=t}getColor(){return this.options.color}isHighlight(t){return t&&t.nodeType===zs.ELEMENT_NODE&&t.hasAttribute(x8)}createWrapper(){let t=document.createElement("mark");return t.style.background="linear-gradient("+De.hexToRgbA(this.options.color)+", "+De.hexToRgbA(this.options.color)+")",t.className=this.options.highlightedClass,t}static isHexColor(t){return/^#([A-Fa-f0-9]{3}){1,2}$/.test(t)}static hexToRgbString(t){let n;return n=t.substring(1).split(""),n.length===3&&(n=[n[0],n[0],n[1],n[1],n[2],n[2]]),n="0x"+n.join(""),n}static hexToRgbChannels(t){let n;if(this.isHexColor(t))return n=this.hexToRgbString(t),{red:n>>16&255,green:n>>8&255,blue:n&255};throw new Error("Bad Hex")}static hexToRgbA(t){let n;if(this.isHexColor(t))return n=this.hexToRgbChannels(t),"rgba("+[n.red,n.green,n.blue].join(",")+",.5)";if(typeof t=="object"){let r=t;return"rgba("+[r.red,r.green,r.blue].join(",")+",.5)"}throw new Error("Bad Hex")}static hexToRgbAWithOpacity(t,n){let r;if(this.isHexColor(t))return r=this.hexToRgbChannels(t),"rgba("+[r.red,r.green,r.blue].join(",")+","+n+")";if(typeof t=="object"){let o=t;return"rgba("+[o.red,o.green,o.blue].join(",")+","+n+")"}throw new Error("Bad Hex")}resetHighlightBoundingStyle(t){t.style.outline="none",t.style.setProperty("background-color","transparent","important")}resetHighlightAreaStyle(t,n){let r=this.delegate.iframes[0].contentWindow?.document,o=t.parentNode&&t.parentNode.nodeType===Node.ELEMENT_NODE&&t.parentNode.getAttribute?t.parentNode.getAttribute("id"):void 0;if(o){let a=zt.find(l=>l.id===o);if(a){if(a.marker===Le.Custom||a.marker===Le.Bookmark)if(a.style?.hover){if(a.style?.hover)for(let d=0;d<a.style?.hover?.length;d++){let f=a.style?.hover[d];t.style.removeProperty(f.property)}let u="";if(a.style?.default)for(let d=0;d<a.style?.default?.length;d++){let f=a.style?.default[d];t.style.removeProperty(f.property),u+=`${f.property}: ${f.value} !${f.priority};`}t.setAttribute("style",`${t.getAttribute("style")}; ${u}`)}else if(a.style?.hoverClass){a.style?.hoverClass&&t.classList.remove(a.style?.hoverClass);let u="";a.style?.defaultClass&&t.classList.add(a.style?.defaultClass),t.setAttribute("style",`${t.getAttribute("style")}; ${u}`)}else if(De.isHexColor(a.color)){let u=De.hexToRgbChannels(a.color);t.style.setProperty("background-color",`rgba(${u.red}, ${u.green}, ${u.blue}, ${0})`,"important")}else t.classList.remove("hover");else if(a.marker===Le.Underline||a.marker===Le.Comment)if(typeof a.color=="object"){let u=a.color;t.style.setProperty("background-color",`rgba(${u.red}, ${u.green}, ${u.blue}, ${0})`,"important"),t.style.setProperty("border-bottom",`2px solid rgba(${u.red}, ${u.green}, ${u.blue}, ${1})`,"important")}else if(De.isHexColor(a.color)){let u=De.hexToRgbChannels(a.color);t.style.setProperty("background-color",`rgba(${u.red}, ${u.green}, ${u.blue}, ${0})`,"important"),t.style.setProperty("border-bottom",`2px solid rgba(${u.red}, ${u.green}, ${u.blue}, ${1})`,"important")}else t.classList.remove("hover");else if(typeof a.color=="object"){let u=a.color;t.style.setProperty("background-color",`rgba(${u.red}, ${u.green}, ${u.blue}, ${si})`,"important")}else if(De.isHexColor(a.color)){let u=De.hexToRgbChannels(a.color);t.style.setProperty("background-color",`rgba(${u.red}, ${u.green}, ${u.blue}, ${si})`,"important")}else t.classList.remove("hover");let l;if(r){let u=r.getElementById(n);u&&(l=u.querySelector(`#${a.id}`))}if(l){let u=l.getElementsByClassName(Za);if(u.length>0){let d=u.item(0).getElementsByClassName("icon-tooltip");d.length>0&&d.item(0).style.removeProperty("display")}}}}}setHighlightAreaStyle(t,n,r){for(let o of n){if(r.marker===Le.Custom||r.marker===Le.Bookmark)if(r.style?.hover){if(r.style?.default)for(let l=0;l<r.style?.default?.length;l++){let u=r.style?.default[l];o.style.removeProperty(u.property)}let a="";for(let l=0;l<r.style?.hover?.length;l++){let u=r.style?.hover[l];o.style.removeProperty(u.property),a+=`${u.property}: ${u.value} !${u.priority};`}o.setAttribute("style",`${o.getAttribute("style")}; ${a}`)}else if(r.style?.hoverClass){r.style?.defaultClass&&o.classList.remove(r.style?.defaultClass);let a="";o.classList.add(r.style?.hoverClass),o.setAttribute("style",`${o.getAttribute("style")}; ${a}`)}else if(De.isHexColor(r.color)){let a=De.hexToRgbChannels(r.color);o.style.setProperty("background-color",`rgba(${a.red}, ${a.green}, ${a.blue}, ${.1})`,"important")}else o.classList.add("hover");else if(r.marker===Le.Underline||r.marker===Le.Comment)if(typeof r.color=="object"){let a=r.color;o.style.setProperty("background-color",`rgba(${a.red}, ${a.green}, ${a.blue}, ${.1})`,"important"),o.style.setProperty("border-bottom",`2px solid rgba(${a.red}, ${a.green}, ${a.blue}, ${1})`,"important")}else if(De.isHexColor(r.color)){let a=De.hexToRgbChannels(r.color);o.style.setProperty("background-color",`rgba(${a.red}, ${a.green}, ${a.blue}, ${.1})`,"important"),o.style.setProperty("border-bottom",`2px solid rgba(${a.red}, ${a.green}, ${a.blue}, ${1})`,"important")}else o.classList.add("hover");else if(typeof r.color=="object"){let a=r.color;o.style.setProperty("background-color",`rgba(${a.red}, ${a.green}, ${a.blue}, ${_4})`,"important")}else if(De.isHexColor(r.color)){let a=De.hexToRgbChannels(r.color);o.style.setProperty("background-color",`rgba(${a.red}, ${a.green}, ${a.blue}, ${_4})`,"important")}else o.classList.add("hover");if(r.type!==qe.Definition){let l=t.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER).querySelector(`#${r.id}`).getElementsByClassName(Za);if(l.length>0){let u=l.item(0).getElementsByClassName("icon-tooltip");u.length>0&&u.item(0).style.setProperty("display","block")}}}}setAndResetSearchHighlight(t,n){let r=this.delegate.iframes[0].contentWindow?.document,o=Array.from(r.getElementById(Me.R2_ID_SEARCH_CONTAINER).querySelectorAll(`.${pn}`));for(let a of o){let l=a,u=l.parentNode&&l.parentNode.nodeType===Node.ELEMENT_NODE&&l.parentNode.getAttribute?l.parentNode.getAttribute("id"):void 0;if(n.forEach(d=>{if(u===d.id&&d){if(typeof d.color=="object"){let p=d.color;l.style.setProperty("background-color",`rgba(${p.red}, ${p.green}, ${p.blue}, ${si})`,"important")}else if(De.isHexColor(d.color)){let p=De.hexToRgbChannels(d.color);l.style.setProperty("background-color",`rgba(${p.red}, ${p.green}, ${p.blue}, ${si})`,"important")}else l.classList.remove("hover");let m=r.getElementById(Me.R2_ID_SEARCH_CONTAINER).querySelector(`#${d.id}`).getElementsByClassName(Za);if(m.length>0){let p=m.item(0).getElementsByClassName("icon-tooltip");p.length>0&&p.item(0).style.removeProperty("display")}}}),u===t.id&&t){if(typeof t.color=="object"){let m=t.color;l.style.setProperty("background-color",`rgba(${m.red}, ${m.green}, ${m.blue}, ${si})`,"important")}else if(De.isHexColor(t.color)){let m=De.hexToRgbChannels(t.color);l.style.setProperty("background-color",`rgba(${m.red}, ${m.green}, ${m.blue}, ${si})`,"important")}else l.classList.remove("hover");let f=r.getElementById(Me.R2_ID_SEARCH_CONTAINER).querySelector(`#${t.id}`).getElementsByClassName(Za);if(f.length>0){let m=f.item(0).getElementsByClassName("icon-tooltip");m.length>0&&m.item(0).style.removeProperty("display")}}}}isIOS(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)!=null||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}isAndroid(){return navigator.userAgent.match(/Android/i)!=null}async processMouseEvent(t){let n=this.delegate.iframes[0].contentWindow?.document,r=t.clientX,o=t.clientY;if(!n||!n.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER)&&!n.getElementById(Me.R2_ID_SEARCH_CONTAINER)&&!n.getElementById(Me.R2_ID_PAGEBREAK_CONTAINER)&&!n.getElementById(Me.R2_ID_READALOUD_CONTAINER)&&!n.getElementById(Me.R2_ID_DEFINITIONS_CONTAINER))return;let a=this.delegate.view?.isPaginated(),l=n.body.getBoundingClientRect(),u=this.getScrollingElement(n),d=a?-u.scrollLeft:l.left,f=a?-u.scrollTop:l.top,m,p;for(let E=zt.length-1;E>=0;E--){let S=zt[E],v=n.getElementById(`${S.id}`);if(!v){let w=n.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER);w&&(v=w.querySelector(`#${S.id}`))}if(!v)continue;let y=!1,b=v.querySelectorAll(`.${pn}`);for(let w of b){let O=w,T=O.rect.left+d,C=O.rect.top+f;if(r>=T&&r<T+O.rect.width&&o>=C&&o<C+O.rect.height){y=!0;break}}if(y){m=S,p=v;break}}if(!m||!p){for(let E in Me){let S=n.getElementById(E);if(S){let v=S.querySelectorAll(`.${Ya}`);for(let b of v)this.resetHighlightBoundingStyle(b);let y=Array.from(S.querySelectorAll(`.${pn}`));for(let b of y)this.resetHighlightAreaStyle(b,E)}}return}if(p.getAttribute("data-click")){if((t.type==="mousemove"||t.type==="touchmove")&&p.parentElement?.style.display!=="none"){let E=Array.from(p.querySelectorAll(`.${pn}`));for(let v in Me){let y=n.getElementById(v);if(y){let b=y.querySelectorAll(`.${pn}`);for(let w of b)E.indexOf(w)<0&&this.resetHighlightAreaStyle(w,v)}}this.setHighlightAreaStyle(n,E,m);let S=p.querySelector(`.${Ya}`);for(let v in Me){let y=n.getElementById(v);if(y){let b=y.querySelectorAll(`.${Ya}`);for(let w of b)(!S||w!==S)&&this.resetHighlightBoundingStyle(w)}}}else if((t.type==="mouseup"||t.type==="click"||t.type==="touchup")&&p.parentElement?.style.display!=="none"){let E={highlight:m};Mn.default.log(JSON.stringify(E));let S=this,v;if(S.delegate.rights.enableAnnotations?v=await this.delegate.annotationModule?.getAnnotation(E.highlight):S.delegate.rights.enableBookmarks&&(v=await this.delegate.bookmarkModule?.getAnnotation(E.highlight)),E.highlight.type===qe.Annotation&&this.delegate.annotationModule?.api?.selectedAnnotation(v).then(async()=>{}),v?.id){Mn.default.log("selected highlight "+v.id),S.lastSelectedHighlight=v.id;let y=document.getElementById("highlight-toolbox");if(y)if(y.style.top=t.clientY+(this.delegate.attributes?.navHeight??0)+"px",y.style.left=t.clientX+"px",getComputedStyle(y).display==="none"){let O=function(){S.delegate.annotationModule?.api?.addCommentToAnnotation(v).then(P=>{S.delegate.annotationModule?.updateAnnotation(P).then(async()=>{Mn.default.log("update highlight "+P.id),y&&(y.style.display="none"),S.selectionMenuClosed()}),y&&(y.style.display="none"),S.selectionMenuClosed(),T?.removeEventListener("click",O,!1)})},_=function(){S.delegate.rights.enableAnnotations?S.delegate.annotationModule?.deleteSelectedHighlight(v).then(async()=>{Mn.default.log("delete highlight "+v.id),y&&(y.style.display="none"),S.selectionMenuClosed()}):S.delegate.rights.enableBookmarks&&S.delegate.bookmarkModule?.deleteSelectedHighlight(v).then(async()=>{Mn.default.log("delete highlight "+v.id),y&&(y.style.display="none"),S.selectionMenuClosed()})};y.style.display="block",this.toolboxMode("edit");let b=document.getElementById("colorIcon"),w=document.getElementById("highlightIcon");b&&(b.style.display="none"),w&&(w.style.display="none");let T=document.getElementById("commentIcon"),C=document.getElementById("cloneCommentIcon");if(C){let P=C.parentElement;P&&P.removeChild(C)}if(T){T.style.display="none";let P=T.cloneNode(!0),q=T.parentElement;P.style.display="unset",P.id="cloneCommentIcon",P.addEventListener("click",O,!1),q&&q.append(P)}let I=document.getElementById("deleteIcon"),D=document.getElementById("cloneDeleteIcon");if(D){let P=D.parentElement;P&&P.removeChild(D)}if(I){I.style.display="none";let P=I.cloneNode(!0),q=I.parentElement;P.style.display="unset",P.id="cloneDeleteIcon",P.addEventListener("click",_,!1),q&&q.append(P)}}else y.style.display="none",this.selectionMenuClosed(),y.offsetWidth,y.style.display="block"}else{p.dataset.definition&&new Va(this.delegate).showPopup(p.dataset.definition,t);let y=this.delegate.definitionsModule?.properties?.definitions?.filter(b=>b.order===Number(p?.dataset.order))[0];Mn.default.log(y),this.delegate.definitionsModule?.api?.click&&(this.delegate.definitionsModule.api?.click(p0.omit(y,"callbacks"),p0.omit(m,"definition")),this.delegate.emit("definition.click",y,m))}}}}async prepareContainers(t){for(let n in Me)await this.ensureHighlightsContainer(t,n)}async ensureHighlightsContainer(t,n){let r=t.document;if(!r.getElementById(n)){let o=r.createElement("div");o.setAttribute("id",n),n!==Me.R2_ID_GUTTER_RIGHT_CONTAINER&&o.style.setProperty("pointer-events","none"),this.delegate.view?.layout==="fixed"&&(o.style.setProperty("position","absolute"),o.style.setProperty("top","0"),o.style.setProperty("left","0")),r.body&&r.body.append(o),(await this.layerSettings.getProperty(n))?.value===!1&&(o.style.display="none")}return r.getElementById(n)}hideAllhighlights(t){this.removeAllChildNodes(t.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER)),this.removeAllChildNodes(t.getElementById(Me.R2_ID_SEARCH_CONTAINER)),this.removeAllChildNodes(t.getElementById(Me.R2_ID_READALOUD_CONTAINER)),this.removeAllChildNodes(t.getElementById(Me.R2_ID_PAGEBREAK_CONTAINER)),this.removeAllChildNodes(t.getElementById(Me.R2_ID_DEFINITIONS_CONTAINER))}destroyAllhighlights(t){this.hideAllhighlights(t),zt.splice(0,zt.length)}removeAllChildNodes(t){for(;t.firstChild;)t.removeChild(t.firstChild)}destroyHighlights(t){let n=this.delegate.iframes[0].contentWindow?.document;if(n){let r;switch(t){case qe.ReadAloud:r=n.getElementById(Me.R2_ID_READALOUD_CONTAINER),r&&this.removeAllChildNodes(r);break;case qe.Search:r=n.getElementById(Me.R2_ID_SEARCH_CONTAINER),r&&this.removeAllChildNodes(r);break;case qe.PageBreak:r=n.getElementById(Me.R2_ID_PAGEBREAK_CONTAINER),r&&this.removeAllChildNodes(r);break;case qe.Definition:r=n.getElementById(Me.R2_ID_DEFINITIONS_CONTAINER),r&&this.removeAllChildNodes(r);break;case qe.LineFocus:r=n.getElementById(Me.R2_ID_LINEFOCUS_CONTAINER),r&&this.removeAllChildNodes(r);break;case qe.Comment:r=n.getElementById(Me.R2_ID_GUTTER_RIGHT_CONTAINER),r&&this.removeAllChildNodes(r);break;default:r=n.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER),r&&this.removeAllChildNodes(r),zt.splice(0,zt.length);break}}}destroyHighlight(t,n){if(!t)return;let r=-1;zt.find((l,u)=>(r=u,l.id===n))&&r>=0&&r<zt.length&&zt.splice(r,1);let a=t.getElementById(n);a&&this.removeAllChildNodes(a)}createHighlight(t,n,r,o,a,l,u,d,f,m){try{let p=`${n.rangeInfo.startContainerElementCssSelector}${n.rangeInfo.startContainerChildTextNodeIndex}${n.rangeInfo.startOffset}${n.rangeInfo.endContainerElementCssSelector}${n.rangeInfo.endContainerChildTextNodeIndex}${n.rangeInfo.endOffset}`,E=Cr.hash(p),S=(m||"R2_HIGHLIGHT_")+E;this.destroyHighlight(t.document,S);let v=`rgb(${$o.red}, ${$o.green}, ${$o.blue})`,y={color:r||v,id:S,pointerInteraction:o,selectionInfo:n,marker:a,icon:l,popup:u,style:d,type:f||qe.Annotation};(f===qe.Annotation||f===qe.Definition||f===void 0)&&zt.push(y);let b=this.createHighlightDom(t,y);return y.position=parseInt((b?.hasChildNodes()?b.childNodes[0]:b).style.top.replace("px","")),[y,b]}catch(p){throw"Can't create highlight: "+p}}createHighlightDom(t,n){let r=t.document,o=vd(r,n.selectionInfo.rangeInfo);if(!o)return;for(let B in Me)this.ensureHighlightsContainer(t,B);let a=r.createElement("div");a.setAttribute("id",n.id),a.setAttribute("class",x4),a.style.setProperty("pointer-events","none"),n.pointerInteraction&&a.setAttribute("data-click","1");let l=this.delegate.view?.isPaginated();l?r.body.style.position="revert":r.body.style.position="relative";let u=r.body.getBoundingClientRect(),d=this.getScrollingElement(r),f=l?-d.scrollLeft:u.left,m=l?-d.scrollTop:u.top,p=1,E=!1,S=!1,b=yd(o,E||S||!1),w=3,O=2,T=3,C=0,_=24,I,D;for(let B of b){let N=r.createElement("div");N.setAttribute("class",pn),N.dataset.marker=""+n.marker;let W="";if(E&&n.marker!==Le.Custom&&n.marker!==Le.Bookmark&&n.marker!==Le.Comment){let V=n.color;De.isHexColor(V)&&(V=De.hexToRgbChannels(V)),W+=`border-bottom: ${O*p}px solid rgba(${V.red}, ${V.green}, ${V.blue}, ${si}) !important`}if(n.marker===Le.Custom||n.marker===Le.Bookmark)if(n.style?.default){for(let V=0;V<n.style?.default?.length;V++){let ee=n.style?.default[V];W+=`${ee.property}: ${ee.value} !${ee.priority};`}N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; ${W}`)}else n.style?.defaultClass&&(N.classList.add(n.style?.defaultClass),N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; ${W}`));else if(n.marker===Le.Underline||n.marker===Le.Comment)if(typeof n.color=="object"){let V=n.color;N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; background-color: rgba(${V.red}, ${V.green}, ${V.blue}, ${0}) !important; ${W}`),N.style.setProperty("border-bottom",`2px solid rgba(${V.red}, ${V.green}, ${V.blue}, ${1})`,"important")}else if(De.isHexColor(n.color)){let V=De.hexToRgbChannels(n.color);N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; background-color: rgba(${V.red}, ${V.green}, ${V.blue}, ${0}) !important; ${W}`),N.style.setProperty("border-bottom",`2px solid rgba(${V.red}, ${V.green}, ${V.blue}, ${1})`,"important")}else N.setAttribute("style",`border-radius: ${w}px !important; ${W}`);else if(typeof n.color=="object"){let V=n.color;N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; background-color: rgba(${V.red}, ${V.green}, ${V.blue}, ${si}) !important; ${W}`)}else if(De.isHexColor(n.color)){let V=De.hexToRgbChannels(n.color);N.setAttribute("style",`mix-blend-mode: multiply; border-radius: ${w}px !important; background-color: rgba(${V.red}, ${V.green}, ${V.blue}, ${si}) !important; ${W}`)}else N.setAttribute("style",`border-radius: ${w}px !important; ${W}`);N.style.setProperty("pointer-events","none"),N.style.position="absolute",N.scale=p,N.rect={height:B.height,left:B.left-f,top:B.top-m,width:B.width},n.pointerInteraction&&(N.setAttribute("data-click","1"),N.tabIndex=0),N.style.width=`${N.rect.width*p}px`,N.style.height=`${N.rect.height*p}px`,N.style.left=`${N.rect.left*p}px`,N.style.top=`${N.rect.top*p}px`,a.append(N);let ye=parseInt(N.style.top.replace("px",""));if((ye<C||C===0)&&(C=ye),_=parseInt(N.style.height.replace("px","")),S){let V=r.createElement("div");V.setAttribute("class",pn);let ee=n.color;De.isHexColor(ee)&&(ee=De.hexToRgbChannels(ee)),V.setAttribute("style",`background-color: rgba(${ee.red}, ${ee.green}, ${ee.blue}, ${si}) !important;`),V.style.setProperty("pointer-events","none"),V.style.position="absolute",V.scale=p,V.rect={height:B.height,left:B.left-f,top:B.top-m,width:B.width},V.style.width=`${V.rect.width*p}px`,V.style.height=`${T*p}px`,V.style.left=`${V.rect.left*p}px`,V.style.top=`${(V.rect.top+V.rect.height/2-T/2)*p}px`,a.append(V)}let be=this.delegate.iframes[0].contentWindow?.innerWidth,fe=parseInt(getComputedStyle(r.documentElement).getPropertyValue("column-count")),re=parseInt(getComputedStyle(r.documentElement).getPropertyValue("column-width")),he=parseInt(getComputedStyle(r.body).getPropertyValue("padding-left")),Ae=be/(fe||1);Ae<re&&(Ae=be),l||(Ae=parseInt(getComputedStyle(r.body).width.replace("px","")));let ue=this.delegate.settings.fontSize/100,xe=20*ue;ue<=1&&(xe=-60);let Re=0*ue;ue<=1&&(Re=-60),I=Math.floor(B.left/Ae)*Ae+Ae-(_<40?40:_)+Re,D=Math.floor(B.left/Ae)*Ae+(_<40?40:_)-xe;let Se=parseInt(this.delegate.iframes[0].contentDocument.documentElement.style.getPropertyValue("--USER__pageMargins"));Se>=2&&(D=D+he/fe,I=I-he/fe),l||(I=parseInt(getComputedStyle(this.delegate.iframes[0].contentDocument?.body).width.replace("px","")),D=parseInt(getComputedStyle(this.delegate.iframes[0].contentDocument?.body).width.replace("px",""))-Ae,Se>=2&&(D=D+he/2,I=I-he/2))}let P=o.getBoundingClientRect(),q=r.createElement("div");q.setAttribute("class",Ya),q.style.setProperty("pointer-events","none"),q.style.position="absolute",q.scale=p,q.rect={height:P.height,left:P.left-f,top:P.top-m,width:P.width},q.style.width=`${q.rect.width*p}px`,q.style.height=`${q.rect.height*p}px`,q.style.left=`${q.rect.left*p}px`,q.style.top=`${q.rect.top*p}px`,a.append(q);let F=r.createElement("div");if(F.setAttribute("class",Za),n.icon?.position==="left")F.setAttribute("style",`position: absolute;top:${C}px;left:${D+this.delegate.iframes[0].contentDocument?.scrollingElement?.scrollLeft}px;height:${_}px; width:${_}px;`);else if(n.icon?.position==="inline")F.setAttribute("style",`position: absolute;top:${C-_/2}px;left:${parseInt(q.style.left.replace("px",""))+parseInt(q.style.width.replace("px",""))-_/2}px;height:${_}px; width:${_}px;`);else if(n.icon?.position==="center"){let N=_/3*2;F.setAttribute("style",`position: absolute;top:${C}px;left:${parseInt(q.style.left.replace("px",""))+parseInt(q.style.width.replace("px",""))-N}px;height:${_}px; width:${_}px;`)}else n.note&&n.marker!==Le.Custom&&n.marker!==Le.Bookmark&&n.marker!==Le.Comment&&n.marker!==Le.Highlight&&n.marker!==Le.Underline?F.setAttribute("style",`position: absolute;top:${C-_/2}px;left:${parseInt(q.style.left.replace("px",""))+parseInt(q.style.width.replace("px",""))-_/2}px;height:${_}px; width:${_}px;`):n.note&&n.marker===Le.Comment||n.marker===Le.Highlight||n.marker===Le.Underline?F.setAttribute("style",`position: absolute;top:${C}px;left:${I+this.delegate.iframes[0].contentDocument?.scrollingElement?.scrollLeft}px;height:${_}px; width:${_}px;`):F.setAttribute("style",`position: absolute;top:${C}px;left:${I+this.delegate.iframes[0].contentDocument?.scrollingElement?.scrollLeft}px;height:${_}px; width:${_}px;`);if(n.marker===Le.Custom||n.marker===Le.Bookmark)n.icon?.class?(F.classList.add(n.icon?.class),F.id=n.icon?.id):n.icon?.svgPath?F.innerHTML=Us(`${n.icon?.id}`,`${n.icon?.title}`,`${n.icon?.svgPath}`,"icon open",_,`${n.icon?.color} !important`):n.icon?.title&&(F.innerHTML=n.icon?.title);else if(n.note){let B=n.color;De.isHexColor(B)&&(B=De.hexToRgbChannels(B)),n.marker===Le.Comment||n.marker===Le.Highlight||n.marker===Le.Underline?F.innerHTML=Us("","",'<path d="M24 24H0V0h24v24z" fill="none"/><circle cx="12" cy="12" r="14"/>',"icon open",_/2,`rgba(${B.red}, ${B.green}, ${B.blue}, 1) !important`):F.innerHTML=Us("note-icon","Note",'<rect fill="none" height="24" width="24"/><path d="M19,5v9l-5,0l0,5H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h10l6-6V5C21,3.9,20.1,3,19,3z M12,14H7v-2h5V14z M17,10H7V8h10V10z"/>',"icon open",_,`rgba(${B.red}, ${B.green}, ${B.blue}, 1) !important`)}F.style.setProperty("pointer-events","all");let k=this;if(n.type!==qe.PageBreak&&n.type!==qe.Definition&&F.addEventListener("click",async function(B){let N;k.delegate.rights.enableAnnotations?(N=await k.delegate.annotationModule?.getAnnotationByID(n.id),k.delegate.annotationModule?.api?.selectedAnnotation(N).then(async()=>{})):k.delegate.rights.enableBookmarks&&(N=await k.delegate.bookmarkModule?.getAnnotationByID(n.id)),Mn.default.log("selected highlight "+N.id),k.lastSelectedHighlight=N.id;let W=document.getElementById("highlight-toolbox");if(W)if(W.style.top=B.clientY+(k.delegate.attributes?.navHeight??0)+"px",W.style.left=B.clientX+"px",getComputedStyle(W).display==="none"){let re=function(){k.delegate.annotationModule?.api?.addCommentToAnnotation(N).then(Se=>{k.delegate.annotationModule?.updateAnnotation(Se).then(async()=>{Mn.default.log("update highlight "+Se.id),W.style.display="none",k.selectionMenuClosed()}),W.style.display="none",k.selectionMenuClosed()})},ue=function(){k.delegate.rights.enableAnnotations?k.delegate.annotationModule?.deleteSelectedHighlight(N).then(async()=>{Mn.default.log("delete highlight "+N.id),W.style.display="none",k.selectionMenuClosed()}):k.delegate.rights.enableBookmarks&&k.delegate.bookmarkModule?.deleteSelectedHighlight(N).then(async()=>{Mn.default.log("delete highlight "+N.id),W.style.display="none",k.selectionMenuClosed()})};W.style.display="block",k.toolboxMode("edit");let be=document.getElementById("colorIcon"),fe=document.getElementById("highlightIcon");be&&(be.style.display="none"),fe&&(fe.style.display="none");let he=document.getElementById("commentIcon"),Ae=document.getElementById("cloneCommentIcon");if(Ae){let Se=Ae.parentElement;Se&&Se.removeChild(Ae)}if(he){he.style.display="none";let Se=he.cloneNode(!0),V=he.parentElement;Se.style.display="unset",Se.id="cloneCommentIcon",Se.addEventListener("click",re,!1),V&&V.append(Se)}let xe=document.getElementById("deleteIcon"),Re=document.getElementById("cloneDeleteIcon");if(Re){let Se=Re.parentElement;Se&&Se.removeChild(Re)}if(xe){xe.style.display="none";let Se=xe.cloneNode(!0),V=xe.parentElement;Se.style.display="unset",Se.id="cloneDeleteIcon",Se.addEventListener("click",ue,!1),V&&V.append(Se)}}else W.style.display="none",k.selectionMenuClosed(),W.offsetWidth,W.style.display="block";let ye=Array.from(a.querySelectorAll(`.${pn}`));k.setHighlightAreaStyle(r,ye,n)}),n.note){let B=document.createElement("span");B.innerHTML=n.note,B.className="icon-tooltip",n.marker===Le.Custom||n.marker===Le.Bookmark?(n.popup?.background&&B.style.setProperty("background",n.popup.background),n.popup?.textColor&&B.style.setProperty("color",n.popup.textColor),n.popup?.class&&B.classList.add(n.popup.class)):(B.style.setProperty("background","lightyellow"),B.style.setProperty("color","black"))}switch((n.note||n.marker===Le.Custom||n.marker===Le.Bookmark)&&a.append(F),n.type){case qe.Search:r.getElementById(Me.R2_ID_SEARCH_CONTAINER).append(a);break;case qe.ReadAloud:r.getElementById(Me.R2_ID_READALOUD_CONTAINER).append(a);break;case qe.PageBreak:r.getElementById(Me.R2_ID_PAGEBREAK_CONTAINER).append(a);break;case qe.Definition:r.getElementById(Me.R2_ID_DEFINITIONS_CONTAINER).append(a);break;default:r.getElementById(Me.R2_ID_HIGHLIGHTS_CONTAINER).append(a);break}return a}addSelectionMenuItem(t){(this.properties?.selectionMenuItems??[])&&(this.properties?.selectionMenuItems??[]).push(t)}};var N4=Je(T0());A();var B8=Je(Dt());var ro={className:i=>!0,idName:i=>!0,tagName:i=>!0};var H4=Je(Ed()),Rr=Je(Dt()),Qa=class{constructor(t,n,r,o,a,l,u,d,f){this.hide=de(document,"#menu-button-hide");this.show=de(document,"#menu-button-show");this.annotator=t,this.rights=n,this.publication=r,this.headerMenu=f,this.delegate=o,this.initialAnnotations=a,this.highlighter=u,this.properties=l,this.api=d}static async create(t){let n=new this(t.annotator,t.rights||{enableAnnotations:!1,enableTTS:!1},t.publication,t.delegate,t.initialAnnotations||null,t,t.highlighter,t.api,t.headerMenu);return await n.start(),n}async stop(){Rr.default.log("Annotation module stop")}async start(){if(this.delegate.annotationModule=this,this.headerMenu&&(this.highlightsView=de(this.headerMenu,"#container-view-highlights")),this.initialAnnotations){var t=this.initialAnnotations.highlights||null;t&&this.annotator?.initAnnotations(t)}setTimeout(()=>{this.properties?.hideLayer?this.delegate.hideLayer("highlights"):this.delegate.showLayer("highlights")},10)}hideAnnotationLayer(){let t=this.delegate.iframes[0].contentDocument;if(t){let n=de(t,"#R2_ID_HIGHLIGHTS_CONTAINER");n&&(n.style.display="none")}this.show&&this.hide&&(this.show.style.display="block",this.hide.style.display="none")}showAnnotationLayer(){let t=this.delegate.iframes[0].contentDocument;if(t){let n=de(t,"#R2_ID_HIGHLIGHTS_CONTAINER");n&&(n.style.display="block")}this.show&&this.hide&&(this.show.style.display="none",this.hide.style.display="block")}async handleResize(){setTimeout(async()=>{await this.drawHighlights(),await this.showHighlights()},200)}initialize(){return new Promise(async t=>{await document.fonts.ready,this.rights.enableAnnotations&&setTimeout(()=>{this.drawHighlights(),this.showHighlights(),Z(this.delegate.iframes[0].contentDocument?.body,"click",this.click.bind(this))},300),t(null)})}click(t){if(this.activeAnnotationMarkerId){let n=this.highlighter?.properties?.selectionMenuItems?.filter(r=>r.id===this.activeAnnotationMarkerId);if(n&&n?.length>0){let r=H4.cloneDeep(n[0]);r.marker=Le.Custom,this.activeAnnotationMarkerPosition&&(r.icon.position=this.activeAnnotationMarkerPosition),r.highlight.style.default=null,r.highlight.style.hover=null;let o=this.delegate.iframes[0].contentDocument;if(o){let f=function(p){try{let E=d.delegate.iframes[0].contentDocument;return E?ln(p,E,ro):""}catch(E){return Rr.default.log("uniqueCssSelector:"),Rr.default.error(E),""}},a=this.highlighter?.dom(o.body).getSelection(),l=a.getRangeAt(0),u=a.anchorNode;l.setStart(u,l.startOffset),l.setEnd(u,l.endOffset+1),a.removeAllRanges(),a.addRange(l);let d=this,m=Pi(l,f);if(a.removeAllRanges(),m){let p={rangeInfo:m},E=this.delegate.highlighter?.createHighlight(this.delegate.highlighter?.dom(o.body).getWindow(),p,r.highlight.color,!0,Le.Bookmark,r.icon,r.popup,r.highlight.style);E&&this.saveAnnotation(E[0]).then(S=>{Rr.default.log("saved bookmark "+S.id)})}o.getSelection()?.removeAllRanges()}}}}async scrollToHighlight(t){Rr.default.log("still need to scroll to "+t);var n=await this.annotator?.getAnnotationElement(t,this.delegate.iframes[0].contentWindow);n.scrollIntoView({block:"center",behavior:"smooth"})}async updateLocalHighlight(t){if(this.annotator){let n=await this.annotator.deleteAnnotation(t.id),r=await this.addAnnotation(t);return Rr.default.log("Highlight deleted "+JSON.stringify(n)),Rr.default.log("Highlight added "+JSON.stringify(r)),await this.showHighlights(),await this.drawHighlights(),r}else return new Promise(n=>n(null))}async deleteLocalHighlight(t){if(this.annotator){var n=await this.annotator.deleteAnnotation(t);return Rr.default.log("Highlight deleted "+JSON.stringify(n)),await this.showHighlights(),await this.drawHighlights(),n}else return new Promise(r=>r(null))}async deleteAnnotation(t){await this.deleteLocalHighlight(t.id)}async addAnnotation(t){await this.annotator?.saveAnnotation(t),await this.showHighlights(),await this.drawHighlights()}async deleteHighlight(t){this.api?.deleteAnnotation?this.api?.deleteAnnotation(t).then(async()=>{this.deleteLocalHighlight(t.id)}):this.deleteLocalHighlight(t.id)}async deleteSelectedHighlight(t){this.api?.deleteAnnotation?this.api.deleteAnnotation(t).then(async()=>{this.deleteLocalHighlight(t.id)}):this.deleteLocalHighlight(t.id)}async updateAnnotation(t){this.api?.updateAnnotation?this.api.updateAnnotation(t).then(async()=>{this.updateLocalHighlight(t)}):this.updateLocalHighlight(t)}async saveAnnotation(t){if(this.annotator){var n=this.publication.getTOCItem(this.delegate.currentChapterLink.href);this.delegate.currentTocUrl&&(n=this.publication.getTOCItem(this.delegate.currentTocUrl)),n===void 0&&(n=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href));let r=this.delegate.view?.getCurrentPosition(),o=this.delegate.iframes[0].contentDocument;if(o){let a=_i(o,"body"),l=t.position?t.position/a.scrollHeight:r,u=(0,N4.v4)(),d;if(n){let f=n.Href;if(f.indexOf("#")>0&&(f=f.slice(0,f.indexOf("#"))),this.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions){let m=this.publication.positionsByHref(this.publication.getRelativeHref(this.delegate.currentChapterLink.href)),p=Math.ceil((l??0)*(m.length-1)),E=m[p];d=jt(Fe({},E),{id:u,href:f,created:new Date,title:this.delegate.currentChapterLink.title,highlight:t,text:{highlight:t.selectionInfo.cleanText}})}else d={id:u,href:f,locations:{progression:l},created:new Date,type:this.delegate.currentChapterLink.type,title:this.delegate.currentChapterLink.title,highlight:t,text:{highlight:t.selectionInfo.cleanText}}}if(d)if(this.api?.addAnnotation)try{let f=await this.api.addAnnotation(d),m=await this.annotator.saveAnnotation(f);return await this.showHighlights(),await this.drawHighlights(),new Promise(p=>p(m))}catch(f){await this.showHighlights(),await this.drawHighlights()}else{let f=await this.annotator.saveAnnotation(d);return await this.showHighlights(),await this.drawHighlights(),new Promise(m=>m(f))}}}return new Promise(r=>r(null))}getAnnotations(){let t=[];return this.annotator&&(t=this.annotator.getAnnotations()),t}showHighlights(){let t=[];this.annotator&&(t=this.annotator.getAnnotations(),t&&(t=t.filter(n=>n.highlight.marker!==Le.Bookmark),t.forEach(n=>{zt.push(n.highlight)}))),this.highlightsView&&this.createTree(fr.Annotation,t,this.highlightsView)}async drawHighlights(){if(this.rights.enableAnnotations&&this.highlighter){if(this.api){let n=[];if(this.annotator&&(n=this.annotator.getAnnotations()),this.highlighter&&n&&this.delegate.iframes[0].contentDocument?.readyState==="complete"){await this.highlighter.destroyHighlights(qe.Annotation);for(let r of n){zt.push(r.highlight);let o=r,a=this.delegate.currentChapterLink.href;var t=this.publication.getTOCItem(a);if(this.delegate.currentTocUrl!==void 0&&(t=this.publication.getTOCItem(this.delegate.currentTocUrl)),t===null&&(t=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href)),t){let l=t.Href;l.indexOf("#")>0&&(l=l.slice(0,l.indexOf("#"))),o.href===l&&(await this.highlighter.createHighlightDom(this.delegate.iframes[0].contentWindow,r.highlight),setTimeout(async()=>{if(o.highlight?.marker===Le.Underline){let u=await this.annotator?.getAnnotationPosition(r.id,this.delegate.iframes[0].contentWindow),d='<div class="comment" style="top: '+u+'px;width:20px"></div>',f=document.createElement("div");f.innerHTML=d;let m=f.childNodes[0],p=document.createElement("i");p.innerHTML="sticky_note_2",p.className="material-icons",p.style.color=o.highlight.color,m.appendChild(p),Z(f,"click",E=>{E.preventDefault(),E.stopPropagation(),this.scrollToHighlight(o.id)})}},100))}}}}else{let n=[];if(this.annotator&&(n=this.annotator.getAnnotations()),this.highlighter&&n&&this.delegate.iframes[0].contentDocument?.readyState==="complete"){await this.highlighter.destroyHighlights(qe.Annotation);for(let r of n){zt.push(r.highlight);let o=r,a=this.delegate.currentChapterLink.href,l=this.publication.getTOCItem(a);if(this.delegate.currentTocUrl&&(l=this.publication.getTOCItem(this.delegate.currentTocUrl)),l===null&&(l=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href)),l){let u=l.Href;u.indexOf("#")>0&&(u=u.slice(0,u.indexOf("#"))),o.href===u&&(await this.highlighter.createHighlightDom(this.delegate.iframes[0].contentWindow,r.highlight),setTimeout(async()=>{if(o.highlight?.marker===Le.Underline){let d=await this.annotator?.getAnnotationPosition(r.id,this.delegate.iframes[0].contentWindow),f='<div class="comment" style="top: '+d+"px;background: "+o.highlight?.color+';width:20px"></div>',m=document.createElement("div");m.innerHTML=f,m.childNodes[0].innerHTML=Ur.note,Z(m,"click",p=>{p.preventDefault(),p.stopPropagation(),this.scrollToHighlight(o.id)})}},100))}}}}this.properties?.initialAnnotationColor&&this.highlighter.setColor(this.properties?.initialAnnotationColor),this.repositionGutters()}}repositionGutters(){let t=this.delegate.iframes[0].contentDocument;if(t&&(this.commentGutter=t.getElementById(Me.R2_ID_GUTTER_RIGHT_CONTAINER),this.delegate.view?.isScrollMode()&&this.properties?.enableComments?this.commentGutter.style.removeProperty("display"):this.commentGutter.style.setProperty("display","none"),this.commentGutter&&this.delegate.view?.isScrollMode())){this.commentGutter.innerHTML="";let n=[];this.annotator&&(n=this.annotator.getAnnotations(),n&&(n=n.filter(r=>r.highlight?.note?.length>0),n=this.syncPosition(n),n=this.reposition(n),n.forEach(r=>{let o=document.createElement("i");o.innerHTML="sticky_note_2",o.className="material-icons",o.style.color=r.highlight.color;let a=t.getElementById("R2_ID_HIGHLIGHTS_CONTAINER"),l,u;a&&(l=a.querySelector(`#${r.highlight.id}`)),u=l.getElementsByClassName(pn)[0];let f=parseInt(u.style.height.replace("px","")),m=r.highlight.position,p=t.createElement("div");p.setAttribute("style",`position: absolute;top:${m}px;display: flex;max-width: 250px !important;height:${f}px;width: 200px;align-items: center;`);let E=t.createElement("div");p.appendChild(E);let S=r.highlight.color;De.isHexColor(S)&&(S=De.hexToRgbChannels(S)),p.innerHTML=Us("","",'<path d="M24 24H0V0h24v24z" fill="none"/><circle cx="12" cy="12" r="8"/>',"icon open",10,`rgba(${S.red}, ${S.green}, ${S.blue}, 1) !important`);let v=t.createElement("div");v.innerHTML=r.highlight?.note,v.setAttribute("style",`height:${f}px;overflow: hidden;padding-left: 5px;`),p.appendChild(v),Z(p,"click",y=>{y.preventDefault(),y.stopPropagation(),this.scrollToHighlight(r.highlight.id)}),this.commentGutter?.appendChild(p)})))}}createTree(t,n,r){if(n){let o=this,a=this.publication.readingOrder;if(a.length){let l=(u,d)=>{let f=document.createElement("ul");f.className="sidenav-annotations";for(let m of d){let p=document.createElement("li"),E=document.createElement("a"),S=document.createElement("span");if(E.tabIndex=-1,E.className="chapter-link",m.Href){let y=this.publication.getAbsoluteHref(m.Href),b=this.publication.getTOCItemAbsolute(y);E.href=y,E.innerHTML=b?.Title||"",p.appendChild(E)}else S.innerHTML=m.Title||"",S.className="chapter-title",p.appendChild(S);Z(E,"click",y=>{y.preventDefault(),y.stopPropagation();let b={href:E.href,locations:{progression:0},type:m.TypeLink,title:E.title};this.delegate.stopReadAloud(),this.delegate.navigate(b)});let v=document.createElement("ol");n.forEach(function(y){let b=m.Href.indexOf("#")!==-1?m.Href.slice(0,m.Href.indexOf("#")):m.Href;if(m.Href&&y.href.endsWith(b)){let w=document.createElement("li");w.className="annotation-item";let O=document.createElement("a");if(O.setAttribute("href",y.href),t===fr.Annotation){O.className="highlight-link";let C=document.createElement("span"),_=document.createElement("span");if(C.className="title",_.innerHTML=y.highlight.selectionInfo.cleanText,y.highlight?.marker===Le.Underline)if(typeof y.highlight?.color=="object"){let P=y.highlight?.color;P&&_.style.setProperty("border-bottom",`2px solid ${De.hexToRgbA(P)}`,"important")}else _.style.setProperty("border-bottom",`2px solid ${y.highlight?.color}`,"important");else if(typeof y.highlight?.color=="object"){let P=y.highlight?.color;P&&(_.style.backgroundColor=De.hexToRgbA(P))}else{let P=y.highlight?.color;P&&(_.style.backgroundColor=P)}C.appendChild(_),O.appendChild(C);let I=document.createElement("span"),D=Math.round((y.locations.progression??0)*100)+"% through resource";I.className="subtitle",I.innerHTML=D,O.appendChild(I)}let T=document.createElement("span");if(T.className="timestamp",T.innerHTML=Qa.readableTimestamp(y.created),O.appendChild(T),Z(O,"click",C=>{C.preventDefault(),C.stopPropagation(),o.handleAnnotationLinkClick(C,y)}),w.appendChild(O),o.delegate.sideNavExpanded){let C=document.createElement("button");C.className="delete",C.innerHTML=Ur.delete,Z(C,"click",_=>{_.preventDefault(),_.stopPropagation(),o.handleAnnotationLinkDeleteClick(t,_,y)}),w.appendChild(C)}v.appendChild(w)}}),v.children.length>0&&(f.appendChild(p),f.appendChild(v)),f.children.length>0&&u.appendChild(f),m.Children&&m.Children.length>0&&l(u,m.Children)}};r.innerHTML="",l(r,a)}}}handleAnnotationLinkClick(t,n){n?(n.href=this.publication.getAbsoluteHref(n.href),this.delegate.stopReadAloud(),this.delegate.navigate(n)):Rr.default.log("annotation data missing: ",t)}handleAnnotationLinkDeleteClick(t,n,r){Rr.default.log("annotation data locator: ",r),r?t===fr.Annotation&&this.deleteHighlight(r):Rr.default.log("annotation data missing: ",n)}static readableTimestamp(t){let n=new Date(t);return n.toDateString()+" "+n.toLocaleTimeString()}async getAnnotation(t){return this.annotator?.getAnnotation(t)}async getAnnotationByID(t){return this.annotator?.getAnnotationByID(t)}syncPosition(t){let n=this.delegate.iframes[0].contentDocument,r=(o,a)=>{let l=n.getElementById("R2_ID_HIGHLIGHTS_CONTAINER"),u,d;l&&(u=l.querySelector(`#${a.highlight.id}`)),d=u.getElementsByClassName(pn)[0];let m=parseInt(d.style.top.replace("px","")),p=jt(Fe({},a),{highlight:jt(Fe({},a.highlight),{position:m})});return[...o,p]};return t.reduce(r,[])}reposition(t){let n=this.delegate.iframes[0].contentDocument,r=(o,a,l)=>{let u=t[0],d=n.getElementById("R2_ID_HIGHLIGHTS_CONTAINER"),f,m;d&&(f=d.querySelector(`#${u.highlight.id}`)),m=f.getElementsByClassName(pn)[0];let E=parseInt(m.style.height.replace("px","")),S=a.highlight.position,v=o[l-1]&&o[l-1].highlight.position,b=l===0?0:v+E+0,w=b>S?b:S,O=jt(Fe({},a),{highlight:jt(Fe({},a.highlight),{position:w})});return[...o,O]};return t.sort(function(o,a){return o.highlight.position-a.highlight.position}).reduce(r,[])}};A();var C0=Je(T0());var Mr=Je(Dt()),el=class{static async create(t){let n=new this(t.annotator,t.rights||{enableBookmarks:!1},t.publication,t.delegate,t,t.initialAnnotations,t.api,t.headerMenu);return await n.start(),new Promise(r=>r(n))}constructor(t,n,r,o,a,l,u,d){this.annotator=t,this.rights=n,this.publication=r,this.headerMenu=d,this.delegate=o,this.initialAnnotations=l,this.properties=a,this.api=u}stop(){Mr.default.log("Bookmark module stop")}async start(){if(this.delegate.bookmarkModule=this,this.headerMenu&&(this.bookmarksView=de(this.headerMenu,"#container-view-bookmarks")),this.headerMenu&&(this.sideNavSectionBookmarks=de(this.headerMenu,"#sidenav-section-bookmarks")),this.headerMenu){let t=de(this.headerMenu,"#menu-button-bookmark");t&&t.parentElement?.style.removeProperty("display"),t&&Z(t,"click",this.saveBookmark.bind(this))}if(this.initialAnnotations){let t=this.initialAnnotations.bookmarks||null;t&&this.annotator?.initBookmarks(t)}await this.showBookmarks(),await this.drawBookmarks(),setTimeout(()=>{this.properties.hideLayer?this.delegate.hideLayer("highlights"):this.delegate.showLayer("highlights")},10)}async handleResize(){setTimeout(async()=>{await this.drawBookmarks(),await this.showBookmarks()},100)}initialize(){return new Promise(async t=>{await document.fonts.ready,this.rights.enableBookmarks&&setTimeout(()=>{this.drawBookmarks(),this.showBookmarks()},300),t(null)})}async deleteBookmark(t){if(this.annotator)if(this.api?.deleteBookmark){await this.api?.deleteBookmark(t);let n=await this.annotator.deleteBookmark(t);return Mr.default.log("Bookmark deleted "+JSON.stringify(n)),await this.showBookmarks(),await this.drawBookmarks(),n}else{let n=await this.annotator.deleteBookmark(t);return Mr.default.log("Bookmark deleted "+JSON.stringify(n)),await this.showBookmarks(),await this.drawBookmarks(),n}else return new Promise(n=>n(null))}async saveBookmarkPlus(){await this.addBookmarkPlus()}async saveBookmark(){if(this.annotator){var t=this.publication.getTOCItem(this.delegate.currentChapterLink.href);if(this.delegate.currentTocUrl&&(t=this.publication.getTOCItem(this.delegate.currentTocUrl)),t===void 0&&(t=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href)),t){let n=t.Href;n.indexOf("#")>0&&(n=n.slice(0,n.indexOf("#")));let r=this.delegate.view?.getCurrentPosition(),o=(0,C0.v4)(),a;if(this.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions){let l=this.publication.positionsByHref(this.publication.getRelativeHref(this.delegate.currentChapterLink.href)),u=Math.ceil((r??0)*(l.length-1)),d=l[u];a=jt(Fe({},d),{id:o,href:n,created:new Date,title:this.delegate.currentChapterLink.title})}else a={id:o,href:n,locations:{progression:r},created:new Date,type:this.delegate.currentChapterLink.type,title:this.delegate.currentChapterLink.title};if(!this.annotator.locatorExists(a,fr.Bookmark))if(this.api?.addBookmark){let l=await this.api.addBookmark(a);l&&(a=l),Mr.default.log(a);let u=this.annotator.saveBookmark(a);return Mr.default.log("Bookmark added "+JSON.stringify(u)),this.showBookmarks(),await this.drawBookmarks(),u}else{let l=this.annotator.saveBookmark(a);return Mr.default.log("Bookmark added "+JSON.stringify(l)),this.showBookmarks(),await this.drawBookmarks(),l}}}}async addBookmarkPlus(){let t=this,n=this.delegate.highlighter?.visibleTextRects[0],r=this.delegate.iframes[0].contentDocument;if(r){let u=this.delegate.highlighter?.dom(r.body).getWindow().document.createRange(),d=this.delegate.highlighter?.dom(this.delegate.iframes[0].contentDocument?.body).getSelection();d.removeAllRanges(),n&&u.selectNodeContents(n.node),d.addRange(u);let f=yd(u,!1),m=0;for(let p of f){if(!this.delegate.highlighter?.isOutsideViewport(p)){let E=d.focusNode,S=d.focusOffset;d.collapse(d.anchorNode,d.anchorOffset);for(let w=0;w<m;w++)d.modify("move","forward","line");d.extend(E,S);let v=d.focusNode,y=d.focusNode.length;d.collapse(d.anchorNode,d.anchorOffset);let b=y;d.anchorOffset>y?b=y:b=d.anchorOffset+1,d.modify("move","forward","character"),d.modify("move","backward","word"),d.extend(v,b),d.modify("extend","backward","character"),d.modify("extend","forward","word");break}m++}}function o(u){let d={},f=t.delegate.iframes[0].contentDocument;if(f)return ln(u,t.delegate.highlighter?.dom(f.body).getDocument(),d)}let a=this.delegate.iframes[0].contentWindow,l={id:"bookmarkIcon",marker:Le.Bookmark,icon:{id:"bookmarkIcon",title:"Bookmark",svgPath:'<path d="M0 0h24v24H0V0z" fill="none"/><path d="M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"/>',color:"#000000",position:"left"},popup:{background:"#000000",textColor:"#ffffff"},highlight:{color:"#000000",style:{default:[{property:"border-bottom",value:"0px dashed #000000",priority:"important"}]}}};if(a!==null){let u=oi(a,o);if(u===void 0){let f=t.delegate.iframes[0].contentDocument;u=this.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(f)}let d=t.delegate.iframes[0].contentDocument;if(u&&d){let f=this.delegate.highlighter?.createHighlight(this.delegate.highlighter?.dom(d.body).getWindow(),u,l.highlight?.color,!0,Le.Bookmark,l.icon,l.popup,l.highlight?.style);if(this.delegate.iframes[0].contentDocument?.getSelection()?.removeAllRanges(),f)return this.saveAnnotation(f[0]).then(m=>{Mr.default.log("saved bookmark "+m?.id)})}}}async saveAnnotation(t){if(this.annotator){var n=this.publication.getTOCItem(this.delegate.currentChapterLink.href);this.delegate.currentTocUrl&&(n=this.publication.getTOCItem(this.delegate.currentTocUrl)),n===null&&(n=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href));let r=this.delegate.view?.getCurrentPosition(),o=this.delegate.iframes[0].contentDocument;if(o){let a=_i(o,"body"),l=t.position?t.position/a.scrollHeight:r,u=(0,C0.v4)(),d;if(n){let f=n.Href;if(f.indexOf("#")>0&&(f=f.slice(0,f.indexOf("#"))),this.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions){let m=this.publication.positionsByHref(this.publication.getRelativeHref(this.delegate.currentChapterLink.href)),p=Math.ceil((l??0)*(m.length-1)),E=m[p];d=jt(Fe({},E),{id:u,href:f,created:new Date,title:this.delegate.currentChapterLink.title,highlight:t,text:{highlight:t.selectionInfo.cleanText}})}else d={id:u,href:f,locations:{progression:l},created:new Date,type:this.delegate.currentChapterLink.type,title:this.delegate.currentChapterLink.title,highlight:t,text:{highlight:t.selectionInfo.cleanText}}}if(d)if(this.api?.addBookmark){let f=await this.api.addBookmark(d),m=await this.annotator.saveAnnotation(f);return await this.showBookmarks(),await this.drawBookmarks(),new Promise(p=>p(m))}else{let f=await this.annotator.saveAnnotation(d);return await this.showBookmarks(),await this.drawBookmarks(),new Promise(m=>m(f))}}}return new Promise(r=>r(void 0))}getBookmarks(){let t=[];return this.annotator&&(t=this.annotator.getBookmarks()),t}showBookmarks(){let t=[];this.annotator&&(t=this.annotator.getBookmarks());let n=[];this.annotator&&(n=this.annotator.getAnnotations(),n&&(n=n.filter(r=>r.highlight.marker===Le.Bookmark),t?t.push.apply(t,n):t=n)),this.bookmarksView&&this.createTree(fr.Bookmark,t,this.bookmarksView)}async drawBookmarks(){if(this.rights.enableBookmarks&&this.delegate.highlighter)if(this.api){let n=[];if(this.annotator&&(n=await this.annotator.getAnnotations()),this.delegate.highlighter&&n&&this.delegate.iframes[0].contentDocument?.readyState==="complete"){await this.delegate.highlighter.destroyHighlights(qe.Annotation);for(let r of n){zt.push(r.highlight);let o=r,a=this.delegate.currentChapterLink.href;var t=this.publication.getTOCItem(a);if(this.delegate.currentTocUrl&&(t=this.publication.getTOCItem(this.delegate.currentTocUrl)),t===void 0&&(t=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href)),t){let l=t.Href;l.indexOf("#")>0&&(l=l.slice(0,l.indexOf("#"))),o.href===l&&await this.delegate.highlighter.createHighlightDom(this.delegate.iframes[0].contentWindow,r.highlight)}}}}else{let n=[];if(this.annotator&&(n=await this.annotator.getAnnotations()),this.delegate.highlighter&&n&&this.delegate.iframes[0].contentDocument?.readyState==="complete"){await this.delegate.highlighter.destroyHighlights(qe.Annotation);for(let r of n){zt.push(r.highlight);let o=r,a=this.delegate.currentChapterLink.href,l=this.publication.getTOCItem(a);if(this.delegate.currentTocUrl&&(l=this.publication.getTOCItem(this.delegate.currentTocUrl)),l===void 0&&(l=this.publication.getTOCItemAbsolute(this.delegate.currentChapterLink.href)),l){let u=l.Href;u.indexOf("#")>0&&(u=u.slice(0,u.indexOf("#"))),o.href===u&&await this.delegate.highlighter.createHighlightDom(this.delegate.iframes[0].contentWindow,r.highlight)}}}}}async deleteSelectedHighlight(t){this.api?.deleteBookmark?this.api.deleteBookmark(t).then(async()=>{this.deleteLocalHighlight(t.id)}):this.deleteLocalHighlight(t.id)}async deleteLocalHighlight(t){if(this.annotator){var n=await this.annotator.deleteAnnotation(t);return Mr.default.log("Highlight deleted "+JSON.stringify(n)),await this.showBookmarks(),await this.drawBookmarks(),n}else return new Promise(r=>r(null))}createTree(t,n,r){if(n){let o=this,a=this.publication.readingOrder;if(a.length){let l=(u,d)=>{let f=document.createElement("ul");f.className="sidenav-annotations";for(let m of d){let p=document.createElement("li"),E=document.createElement("a"),S=document.createElement("span");if(E.tabIndex=-1,E.className="chapter-link",m.Href){let y=this.publication.getAbsoluteHref(m.Href),b=this.publication.getTOCItemAbsolute(y);E.href=y,E.innerHTML=b?.Title||"",p.appendChild(E)}else S.innerHTML=m.Title||"",S.className="chapter-title",p.appendChild(S);Z(E,"click",y=>{y.preventDefault(),y.stopPropagation();let b={href:E.href,locations:{progression:0},type:m.TypeLink,title:E.title};this.delegate.stopReadAloud(),this.delegate.navigate(b)});let v=document.createElement("ol");n.forEach(function(y){let b=m.Href.indexOf("#")!==-1?m.Href.slice(0,m.Href.indexOf("#")):m.Href;if(m.Href&&y.href.endsWith(b)){let w=document.createElement("li");w.className="annotation-item";let O=document.createElement("a");if(O.setAttribute("href",y.href),t===fr.Bookmark){O.className="bookmark-link";let C=document.createElement("span"),_=Math.round((y.locations.progression??0)*100)+"% through resource";C.className="title",C.innerHTML=_,O.appendChild(C)}let T=document.createElement("span");if(T.className="timestamp",T.innerHTML=el.readableTimestamp(y.created),O.appendChild(T),Z(O,"click",C=>{C.preventDefault(),C.stopPropagation(),o.handleAnnotationLinkClick(C,y)}),w.appendChild(O),o.delegate.sideNavExpanded){let C=document.createElement("button");C.className="delete",C.innerHTML=Ur.delete,Z(C,"click",_=>{_.preventDefault(),_.stopPropagation(),o.handleAnnotationLinkDeleteClick(t,_,y)}),w.appendChild(C)}v.appendChild(w)}}),v.children.length>0&&(f.appendChild(p),f.appendChild(v)),f.children.length>0&&u.appendChild(f),m.Children&&m.Children.length>0&&l(u,m.Children)}};r.innerHTML="",l(r,a)}}}handleAnnotationLinkClick(t,n){n?(n.href=this.publication.getAbsoluteHref(n.href),this.delegate.stopReadAloud(),this.delegate.navigate(n)):Mr.default.log("bookmark data missing: ",t)}handleAnnotationLinkDeleteClick(t,n,r){Mr.default.log("bookmark data locator: ",r),r?t===fr.Bookmark&&this.deleteBookmark(r):Mr.default.log("bookmark data missing: ",n)}static readableTimestamp(t){let n=new Date(t);return n.toDateString()+" "+n.toLocaleTimeString()}async getAnnotation(t){return this.annotator?.getAnnotation(t)}async getAnnotationByID(t){return this.annotator?.getAnnotationByID(t)}};A();var D4=Je(j4());A();var Vn=Je(Dt()),R0="r2-mo-active",qo=class{},Ne=qo;Ne.COLOR_REF="color",Ne.AUTO_SCROLL_REF="autoscroll",Ne.AUTO_TURN_REF="autoturn",Ne.VOLUME_REF="volume",Ne.RATE_REF="rate",Ne.COLOR_KEY="mediaoverlay-"+qo.COLOR_REF,Ne.AUTO_SCROLL_KEY="mediaoverlay-"+qo.AUTO_SCROLL_REF,Ne.AUTO_TURN_KEY="mediaoverlay-"+qo.AUTO_TURN_REF,Ne.VOLUME_KEY="mediaoverlay-"+qo.VOLUME_REF,Ne.RATE_KEY="mediaoverlay-"+qo.RATE_REF;var M0=class{constructor(t,n,r){this.MEDIAOVERLAYSETTINGS="mediaOverlaySetting";this.color="r2-mo-active";this.autoScroll=!0;this.autoTurn=!0;this.volume=1;this.rate=1;this.playing=!1;this.resourceReady=!1;this.wait=1;this.settingsChangeCallback=()=>{};this.store=t,this.api=n,this.headerMenu=r,this.initialise(),Vn.default.log(this.api)}static create(t){let n=new this(t.store,t.api,t.headerMenu);if(t.initialMediaOverlaySettings){let r=t.initialMediaOverlaySettings;r?.color&&(n.color=r.color,Vn.default.log(n.color)),r?.autoScroll&&(n.autoScroll=r.autoScroll,Vn.default.log(n.autoScroll)),r?.autoTurn&&(n.autoTurn=r.autoTurn,Vn.default.log(n.autoScroll)),r?.volume&&(n.volume=r.volume,Vn.default.log(n.volume)),r?.rate&&(n.rate=r.rate,Vn.default.log(n.rate)),r?.wait&&(n.wait=r.wait,Vn.default.log(n.wait))}return n.initializeSelections(),n}stop(){Vn.default.log("MediaOverlay settings stop")}initialise(){this.autoScroll=this.getProperty(Ne.AUTO_SCROLL_KEY)!=null?this.getProperty(Ne.AUTO_SCROLL_KEY).value:this.autoScroll,this.autoTurn=this.getProperty(Ne.AUTO_TURN_KEY)!=null?this.getProperty(Ne.AUTO_TURN_KEY).value:this.autoTurn,this.color=this.getProperty(Ne.COLOR_KEY)!=null?this.getProperty(Ne.COLOR_KEY).value:this.color,this.volume=this.getProperty(Ne.VOLUME_KEY)!=null?this.getProperty(Ne.VOLUME_KEY).value:this.volume,this.rate=this.getProperty(Ne.RATE_KEY)!=null?this.getProperty(Ne.RATE_KEY).value:this.rate,this.userProperties=this.getMediaOverlaySettings()}reset(){this.color="redtext",this.autoScroll=!0,this.autoTurn=!0,this.volume=1,this.rate=1,this.wait=1,this.userProperties=this.getMediaOverlaySettings()}initializeSelections(){this.headerMenu&&(this.settingsView=de(this.headerMenu,"#container-view-mediaoverlay-settings"))}setControls(){this.settingsView&&this.renderControls(this.settingsView)}renderControls(t){this.headerMenu&&(this.speechAutoTurn=de(this.headerMenu,"#mediaOverlayAutoTurn")),this.headerMenu&&(this.speechAutoScroll=de(this.headerMenu,"#mediaOverlayAutoScroll")),this.headerMenu&&(this.speechVolume=de(this.headerMenu,"#mediaOverlayVolume")),this.headerMenu&&(this.speechRate=de(this.headerMenu,"#mediaOverlayRate")),this.speechAutoScroll&&(this.speechAutoScroll.checked=this.autoScroll),this.speechAutoTurn&&(this.speechAutoTurn.checked=this.autoTurn),this.speechVolume&&(this.speechVolume.value=this.volume.toString()),this.speechRate&&(this.speechRate.value=this.volume.toString()),Z(de(t,"ul"),"click",n=>{n.stopPropagation()})}onSettingsChange(t){this.settingsChangeCallback=t}storeProperty(t){this.updateUserSettings(),this.saveProperty(t)}updateUserSettings(){let t={color:this.userProperties.getByRef(Ne.COLOR_REF)?.value,autoScroll:this.userProperties.getByRef(Ne.AUTO_SCROLL_REF)?.value,autoTurn:this.userProperties.getByRef(Ne.AUTO_TURN_REF)?.value,volume:this.userProperties.getByRef(Ne.VOLUME_REF)?.value,rate:this.userProperties.getByRef(Ne.RATE_REF)?.value};this.applyMediaOverlaySettings(t),this.api?.updateSettings&&this.api?.updateSettings(t).then(async n=>{Vn.default.log("api updated sync settings",n)})}getMediaOverlaySettings(){let t=new xi;return t.addSwitchable("mediaoverlay-auto-scroll-off","mediaoverlay-auto-scroll-on",this.autoScroll,Ne.AUTO_SCROLL_REF,Ne.AUTO_SCROLL_KEY),t.addSwitchable("mediaoverlay-auto-turn-off","mediaoverlay-auto-turn-on",this.autoTurn,Ne.AUTO_TURN_REF,Ne.AUTO_TURN_KEY),t.addStringable(this.color,Ne.COLOR_REF,Ne.COLOR_KEY),t.addIncremental(this.volume,.1,1,.1,"",Ne.VOLUME_REF,Ne.VOLUME_KEY),t.addIncremental(this.rate,.1,3,.1,"",Ne.RATE_REF,Ne.RATE_KEY),t}saveProperty(t){let n=this.store.get(this.MEDIAOVERLAYSETTINGS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.name!==t.name),r.push(t),this.store.set(this.MEDIAOVERLAYSETTINGS,JSON.stringify(r))}else{let r=[];r.push(t),this.store.set(this.MEDIAOVERLAYSETTINGS,JSON.stringify(r))}return t}getProperty(t){let n=this.store.get(this.MEDIAOVERLAYSETTINGS);if(n){let r=JSON.parse(n);return r=r.filter(o=>o.name===t),r.length===0?null:r[0]}return null}resetMediaOverlaySettings(){this.store.remove(this.MEDIAOVERLAYSETTINGS),this.reset(),this.settingsChangeCallback()}applyMediaOverlaySettings(t){if(t.color){this.color=t.color;let n=this.userProperties.getByRef(Ne.COLOR_REF);n&&(n.value=this.color,this.saveProperty(n)),this.settingsChangeCallback()}if(t.autoScroll!==void 0){Vn.default.log("autoScroll "+this.autoScroll),this.autoScroll=t.autoScroll;let n=this.userProperties.getByRef(Ne.AUTO_SCROLL_REF);n&&(n.value=this.autoScroll,this.saveProperty(n)),this.settingsChangeCallback()}if(t.autoTurn!==void 0){Vn.default.log("autoTurn "+this.autoTurn),this.autoTurn=t.autoTurn;let n=this.userProperties.getByRef(Ne.AUTO_TURN_REF);n&&(n.value=this.autoTurn,this.saveProperty(n)),this.settingsChangeCallback()}if(t.volume){Vn.default.log("volume "+this.volume),this.volume=t.volume;let n=this.userProperties.getByRef(Ne.VOLUME_REF);n&&(n.value=this.volume,this.saveProperty(n)),this.settingsChangeCallback()}if(t.rate){Vn.default.log("rate "+this.rate),this.rate=t.rate;let n=this.userProperties.getByRef(Ne.RATE_REF);n&&(n.value=this.rate,this.saveProperty(n)),this.settingsChangeCallback()}}applyMediaOverlaySetting(t,n){if(t===Ne.COLOR_REF){this.color=n;let r=this.userProperties.getByRef(Ne.COLOR_REF);r&&(r.value=this.color,this.saveProperty(r)),this.settingsChangeCallback()}else if(t===Ne.AUTO_SCROLL_REF){this.autoScroll=n;let r=this.userProperties.getByRef(Ne.AUTO_SCROLL_REF);r&&(r.value=this.autoScroll,this.saveProperty(r)),this.settingsChangeCallback()}else if(t===Ne.AUTO_TURN_REF){this.autoTurn=n;let r=this.userProperties.getByRef(Ne.AUTO_TURN_REF);r&&(r.value=this.autoTurn,this.saveProperty(r)),this.settingsChangeCallback()}}increase(t){if(t==="mo_volume"){this.userProperties.getByRef(Ne.VOLUME_REF).increment(),this.volume=this.userProperties.getByRef(Ne.VOLUME_REF)?.value;let n=this.userProperties.getByRef(Ne.VOLUME_REF);n&&this.storeProperty(n),this.settingsChangeCallback()}else if(t==="mo_rate"){this.userProperties.getByRef(Ne.RATE_REF).increment(),this.rate=this.userProperties.getByRef(Ne.RATE_REF)?.value;let n=this.userProperties.getByRef(Ne.RATE_REF);n&&this.storeProperty(n),this.settingsChangeCallback()}}decrease(t){if(t==="mo_volume"){this.userProperties.getByRef(Ne.VOLUME_REF).decrement(),this.volume=this.userProperties.getByRef(Ne.VOLUME_REF)?.value;let n=this.userProperties.getByRef(Ne.VOLUME_REF);n&&this.storeProperty(n),this.settingsChangeCallback()}else if(t==="mo_rate"){this.userProperties.getByRef(Ne.RATE_REF).decrement(),this.rate=this.userProperties.getByRef(Ne.RATE_REF)?.value;let n=this.userProperties.getByRef(Ne.RATE_REF);n&&this.storeProperty(n),this.settingsChangeCallback()}}};var He=Je(Dt()),P0=class{constructor(t,n,r,o){this.play=de(document,"#menu-button-play");this.pause=de(document,"#menu-button-pause");this.currentLinkIndex=0;this.pid=void 0;this.__ontimeupdate=!1;this.ontimeupdate=async t=>{He.default.log("ontimeupdate"),this.trackCurrentTime()};this.ensureOnTimeUpdate=(t,n)=>{t?this.__ontimeupdate&&(this.__ontimeupdate=!1,this.audioElement&&this.audioElement.removeEventListener("timeupdate",this.ontimeupdate),cancelAnimationFrame(this.myReq)):(!this.__ontimeupdate||n)&&(this.__ontimeupdate=!0,n&&(this.audioElement&&this.audioElement.removeEventListener("timeupdate",this.ontimeupdate),this.audioElement.addEventListener("timeupdate",this.ontimeupdate)))};this.delegate=t,this.publication=n,this.settings=r,this.properties=o}static create(t){let n=new this(t.delegate,t.publication,t.settings,t);return n.start(),n}stop(){He.default.log("MediaOverlay module stop")}start(){this.delegate.mediaOverlayModule=this,He.default.log("MediaOverlay module start")}async initialize(){return new Promise(async t=>{await document.fonts.ready,this.settings.setControls(),this.settings.onSettingsChange(()=>{this.audioElement.volume=this.settings.volume,this.audioElement.playbackRate=this.settings.rate}),t()})}async initializeResource(t){this.currentLinks=t,this.currentLinkIndex=0,await this.playLink()}async playLink(){let t=this.currentLinks[this.currentLinkIndex];if(t?.Properties?.MediaOverlay){this.ensureOnTimeUpdate(!1,!1);let n=t.Properties?.MediaOverlay,o=new URL(n,this.publication.manifestUrl).toString(),a;try{a=await fetch(o,this.delegate.requestConfig)}catch(f){console.error(f,o);return}a.ok||He.default.log("BAD RESPONSE?!");let l;try{l=await a.json()}catch(f){console.error(f)}if(!l){He.default.log("## moJson"+l);return}t.MediaOverlays=Cs(l,D4.MediaOverlayNode),t.MediaOverlays.initialized=!0;let u=t.HrefDecoded||t.Href,d=new URL("https://dita.digital/"+u);await this.playMediaOverlays(d.pathname.substr(1),t.MediaOverlays,void 0)}else this.audioElement&&await this.audioElement.pause(),this.currentLinks.length>1&&this.currentLinkIndex===0?(this.currentLinkIndex++,await this.playLink()):this.settings.autoTurn&&this.settings.playing?(this.audioElement&&await this.audioElement.pause(),this.delegate.nextResource()):await this.stopReadAloud()}async startReadAloud(){if(this.delegate.rights.enableMediaOverlays){if(this.settings.playing=!0,this.audioElement&&this.currentLinks[this.currentLinkIndex]?.Properties.MediaOverlay){let t=this.currentAudioBegin?this.currentAudioBegin:0;this.audioElement.currentTime=t,await this.audioElement.play(),this.ensureOnTimeUpdate(!1,!0),this.audioElement.volume=this.settings.volume,this.audioElement.playbackRate=this.settings.rate}else this.currentLinks.length>1&&this.currentLinkIndex===0?(this.currentLinkIndex++,await this.playLink()):this.settings.autoTurn&&this.settings.playing?this.delegate.nextResource():await this.stopReadAloud();this.play&&(this.play.style.display="none"),this.pause&&this.pause.style.removeProperty("display")}}async stopReadAloud(){this.delegate.rights.enableMediaOverlays&&(this.settings.playing=!1,this.audioElement.pause(),this.play&&this.play.style.removeProperty("display"),this.pause&&(this.pause.style.display="none"))}pauseReadAloud(){this.delegate.rights.enableMediaOverlays&&(this.settings.playing=!1,this.audioElement.pause(),this.play&&this.play.style.removeProperty("display"),this.pause&&(this.pause.style.display="none"))}async resumeReadAloud(){this.delegate.rights.enableMediaOverlays&&(this.settings.playing=!0,await this.audioElement.play(),this.play&&(this.play.style.display="none"),this.pause&&this.pause.style.removeProperty("display"))}findDepthFirstTextAudioPair(t,n,r){He.default.log("findDepthFirstTextAudioPair()");let o,a;if(n.Text){let d=new URL("https://dita.digital/"+n.Text);if(d.pathname.substr(1)===t){if(o=!0,d.hash&&r){a=!1;let f=d.hash.substr(1);for(let m of r)if(m===f){a=!0;break}}}else o=!1}if(He.default.log("isFragmentIDMatch: "+a),He.default.log("isTextUrlMatch: "+o),!n.Children||!n.Children.length){if(He.default.log("findDepthFirstTextAudioPair() - leaf text/audio pair"),!o){He.default.log("findDepthFirstTextAudioPair() - leaf - !isTextUrlMatch");return}return a||o&&!r?(He.default.log("findDepthFirstTextAudioPair() - leaf - isFragmentIDMatch || (isTextUrlMatch && !textFragmentIDChain"),n):void 0}let l=r,u=r;for(let d of n.Children){He.default.log("findDepthFirstTextAudioPair() - child"),He.default.log(JSON.stringify(d));let f=this.findDepthFirstTextAudioPair(t,d,u);if(f===null&&(He.default.log("findDepthFirstTextAudioPair() - child - match null (skip)"),u=void 0),f)return He.default.log("findDepthFirstTextAudioPair() - child - match"),He.default.log(JSON.stringify(f)),f}if(a){He.default.log("findDepthFirstTextAudioPair() - post isFragmentIDMatch");let d=this.findDepthFirstTextAudioPair(t,n,void 0);return d&&(He.default.log("findDepthFirstTextAudioPair() - post isFragmentIDMatch - match"),He.default.log(JSON.stringify(d)),d)}if(l&&!u)return null}trackCurrentTime(){if(cancelAnimationFrame(this.myReq),this.mediaOverlayTextAudioPair)try{this.currentAudioEnd&&this.audioElement.currentTime>=this.currentAudioEnd-.05&&(He.default.log("ontimeupdate - mediaOverlaysNext()"),this.mediaOverlaysNext());let t=this.mediaOverlayTextAudioPair.Text.lastIndexOf("#"),n=this.mediaOverlayTextAudioPair.Text.substr(t+1);this.mediaOverlayHighlight(n),this.myReq=requestAnimationFrame(this.trackCurrentTime.bind(this))}catch(t){}}mediaOverlaysNext(t){if(He.default.log("mediaOverlaysNext()"),this.mediaOverlayRoot&&this.mediaOverlayTextAudioPair){let n=this.findNextTextAudioPair(this.mediaOverlayRoot,this.mediaOverlayTextAudioPair,{prev:void 0},!!t);if(!n)He.default.log("mediaOverlaysNext() - navLeftOrRight()"),this.mediaOverlaysStop(),this.currentLinks.length>1&&this.currentLinkIndex===0?(this.currentLinkIndex++,this.playLink()):(this.audioElement.pause(),this.settings.autoTurn&&this.settings.playing?(this.audioElement.pause(),this.delegate.nextResource()):this.stopReadAloud());else{let r=!1;if(this.mediaOverlayTextAudioPair.Text&&n.Text){let o=new URL("https://dita.digital/"+this.mediaOverlayTextAudioPair.Text),a=new URL("https://dita.digital/"+n.Text);o.pathname!==a.pathname&&(He.default.log("mediaOverlaysNext() SWITCH! "+o.pathname+" != "+a.pathname),r=!0)}r?this.mediaOverlaysStop():(He.default.log("mediaOverlaysNext() - playMediaOverlaysAudio()"),setTimeout(async()=>{await this.playMediaOverlaysAudio(n,void 0,void 0)},0))}}else He.default.log("mediaOverlaysNext() - navLeftOrRight() 2"),this.mediaOverlaysStop(),this.currentLinks.length>1&&this.currentLinkIndex===0?(this.currentLinkIndex++,this.playLink()):(this.audioElement.pause(),this.settings.autoTurn&&this.settings.playing?(this.audioElement.pause(),this.delegate.nextResource()):this.stopReadAloud())}mediaOverlaysStop(){He.default.log("mediaOverlaysStop()"),this.mediaOverlaysPause(),this.mediaOverlayRoot=void 0,this.mediaOverlayTextAudioPair=void 0}mediaOverlaysPause(){He.default.log("mediaOverlaysPause()"),this.mediaOverlayHighlight(void 0),this.audioElement&&this.audioElement.pause()}findNextTextAudioPair(t,n,r,o){if(!t.Children||!t.Children.length){if(r?.prev===n)return He.default.log("findNextTextAudioPair() - prevMo === moToMatch"),t;He.default.log("findNextTextAudioPair() - set previous"),He.default.log(JSON.stringify(t)),r.prev=t;return}for(let a of t.Children){He.default.log("findNextTextAudioPair() - child"),He.default.log(JSON.stringify(a));let l=this.findNextTextAudioPair(a,n,r,o);if(l)return He.default.log("findNextTextAudioPair() - match"),He.default.log(JSON.stringify(l)),l}}async playMediaOverlaysAudio(t,n,r){if(He.default.log("playMediaOverlaysAudio()"),this.mediaOverlayTextAudioPair=t,!t.Audio)return;let o=new URL(t.Audio,this.publication.manifestUrl),a=o.toString(),l=new URL(a);l.hash="",l.search="";let u=l.toString(),d=typeof n!="undefined",f=typeof r!="undefined";if(this.previousAudioEnd=this.currentAudioEnd,this.currentAudioBegin=void 0,this.currentAudioEnd=void 0,!d&&!f){if(o.hash){let p=o.hash.match(/t=([0-9.]+)(,([0-9.]+))?/);if(p&&p.length>=1){let E=p[1];try{this.currentAudioBegin=parseFloat(E)}catch(S){He.default.error(S)}if(p.length>=3){let S=p[3];try{this.currentAudioEnd=parseFloat(S)}catch(v){He.default.error(v)}}}}}else this.currentAudioBegin=n,this.currentAudioEnd=r;He.default.log(`${a} => [${this.currentAudioBegin}-${this.currentAudioEnd}]`);let m=async p=>{if(!this.audioElement)return;let E=this.currentAudioBegin?this.currentAudioBegin:0;if(p||this.audioElement.paused)if(p&&!E||this.audioElement.currentTime===E){if(He.default.log("playMediaOverlaysAudio() - playClip() - _currentAudioElement.play()"),this.ensureOnTimeUpdate(!1,!1),this.audioElement.playbackRate=this.settings.rate,this.audioElement.volume=this.settings.volume,this.settings.playing){let v=function(){S.settings.resourceReady?setTimeout(async()=>{await S.audioElement.play(),S.ensureOnTimeUpdate(!1,!0)},S.settings.wait*1e3):setTimeout(v,200)},S=this;v()}}else{He.default.log("playMediaOverlaysAudio() - playClip() - ontimeupdateSeeked");let S=async v=>{if(this.audioElement.removeEventListener("timeupdate",S),He.default.log("playMediaOverlaysAudio() - playClip() - ontimeupdateSeeked - .play()"),this.ensureOnTimeUpdate(!1,!1),this.audioElement&&(this.audioElement.playbackRate=this.settings.rate,this.audioElement.volume=this.settings.volume,this.settings.playing)){let b=function(){y.settings.resourceReady?setTimeout(async()=>{await y.audioElement.play(),y.ensureOnTimeUpdate(!1,!0)},y.settings.wait*1e3):setTimeout(b,200)},y=this;b()}};this.audioElement.addEventListener("timeupdate",S),this.audioElement.currentTime=E}else{let S=this.previousAudioUrl===this.currentAudioUrl&&typeof this.previousAudioEnd!="undefined"&&this.previousAudioEnd>E-.02&&this.previousAudioEnd<=E&&this.audioElement.currentTime>=E-.1;this.ensureOnTimeUpdate(!1,!1),S?He.default.log("playMediaOverlaysAudio() - playClip() - ensureOnTimeUpdate"):(He.default.log("playMediaOverlaysAudio() - playClip() - currentTime = timeToSeekTo"),this.audioElement.currentTime=E)}};if(this.previousAudioUrl=this.currentAudioUrl,!this.currentAudioUrl||u!==this.currentAudioUrl){this.currentAudioUrl=u,He.default.log("playMediaOverlaysAudio() - RESET: "+this.previousAudioUrl+" => "+this.currentAudioUrl),this.audioElement=document.getElementById("AUDIO_MO_ID"),this.audioElement&&(this.audioElement.pause(),this.audioElement.setAttribute("src",""),this.audioElement.parentNode&&this.audioElement.parentNode.removeChild(this.audioElement)),this.audioElement=document.createElement("audio"),this.audioElement.setAttribute("style","display: none"),this.audioElement.setAttribute("id","AUDIO_MO_ID"),this.audioElement.setAttribute("role","media-overlays"),this.audioElement.volume=this.settings.volume,this.audioElement.playbackRate=this.settings.rate,document.body.appendChild(this.audioElement),this.audioElement.addEventListener("error",S=>{He.default.log("-1) error: "+(this.currentAudioUrl!==S.currentTarget.src?this.currentAudioUrl+" -- ":"")+S.currentTarget.src.substr(S.currentTarget.src.lastIndexOf("/"))),this.audioElement&&this.audioElement.error&&(He.default.log(this.audioElement.error.code),He.default.log(this.audioElement.error.message))});let p=async S=>{S.currentTarget.removeEventListener("canplaythrough",p),He.default.log("oncanplaythrough"),await m(!0)};this.audioElement.addEventListener("canplaythrough",p);let E=async S=>{He.default.log("onended"),this.currentLinks.length>1&&this.currentLinkIndex===0?(this.currentLinkIndex++,await this.playLink()):this.settings.autoTurn&&this.settings.playing?(this.audioElement.pause(),this.delegate.nextResource()):this.stopReadAloud()};this.audioElement.addEventListener("ended",E),this.audioElement.playbackRate=this.settings.rate,this.audioElement.setAttribute("src",this.currentAudioUrl)}else He.default.log("playMediaOverlaysAudio() - playClip()"),await m(!1)}async playMediaOverlays(t,n,r){He.default.log("playMediaOverlays()");let o=r?r.filter(l=>l):void 0;o&&o.length===0&&(o=void 0);let a=this.findDepthFirstTextAudioPair(t,n,o);!a&&o&&(He.default.log("playMediaOverlays() - findDepthFirstTextAudioPair() SECOND CHANCE "),He.default.log(JSON.stringify(o,null,4)),He.default.log(JSON.stringify(n,null,4)),a=this.findDepthFirstTextAudioPair(t,n,void 0)),a?a.Audio&&(He.default.log("playMediaOverlays() - playMediaOverlaysAudio()"),this.mediaOverlayRoot=n,await this.playMediaOverlaysAudio(a,void 0,void 0)):He.default.log("playMediaOverlays() - !moTextAudioPair "+t)}mediaOverlayHighlight(t){He.default.log("moHighlight: ## "+t);let n=this.publication.Metadata?.MediaOverlay?.ActiveClass;n||(n=this.settings.color);let r=this.delegate.iframes[0].contentDocument?.documentElement.getAttribute("style"),o=r?r.indexOf("readium-night-on")>0:!1,a=r?r.indexOf("readium-sepia-on")>0:!1;if((this.publication.Metadata.Rendition?.Layout??"unknown")!=="fixed"&&(n=o||a?R0:n||R0),this.pid){let u;this.currentLinkIndex===0?u=this.delegate.iframes[0].contentDocument?.getElementById(this.pid):u=this.delegate.iframes[1].contentDocument?.getElementById(this.pid),u&&u.classList.remove(n)}let l;t&&(this.currentLinkIndex===0?l=this.delegate.iframes[0].contentDocument?.getElementById(t):l=this.delegate.iframes[1].contentDocument?.getElementById(t),l&&l.classList.add(n),this.pid=t),l&&(this.publication.Metadata.Rendition?.Layout??"unknown")!=="fixed"&&l.scrollIntoView({block:"center",behavior:"smooth"})}};A();var I0=Je(Dt()),L0=class{static async create(t){let n=new this(t.delegate,t.publication);return await n.start(),n}constructor(t,n){this.delegate=t,this.publication=n}async stop(){I0.default.log("Timeline module stop")}async start(){this.delegate.timelineModule=this,this.timelineContainer=de(document,"#container-view-timeline"),this.positionSlider=de(document,"#positionSlider"),this.publication.positions?this.positionSlider&&(this.positionSlider.style.display="block"):this.positionSlider&&(this.positionSlider.style.display="none")}async initialize(){return new Promise(async t=>{await document.fonts.ready;let n=this.delegate.currentLocator();(this.delegate.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions)&&(this.positionSlider&&(this.positionSlider.value=(n.locations.position??0).toString()),this.positionSlider&&(this.positionSlider.max=((n.locations.totalRemainingPositions??0)+(n.locations.position??0)).toString())),this.timelineContainer&&(this.timelineContainer.innerHTML=""),this.publication.readingOrder?.forEach(r=>{let o=this.publication.getAbsoluteHref(r.Href),a=this.publication.getTOCItemAbsolute(o),l=a?.Href.indexOf("#")!==-1?a?.Href.slice(0,a?.Href.indexOf("#")):a.Href,u=this.publication.getAbsoluteHref(l??"");var d;this.publication.positions&&this.delegate.view?.layout!=="fixed"?r.contentWeight?d=r.contentWeight:d=1:d=100/(this.publication.readingOrder?.length??0);var f=document.createElement("div");if(f.style.height=d+"%",f.style.width="100%",f.className="chapter",a?.Title!==void 0){var m=document.createElement("span");m.innerHTML=a.Title,m.className="chapter-tooltip",f.appendChild(m)}Z(f,"click",p=>{p.preventDefault(),p.stopPropagation();var E;this.publication.positions||this.delegate.rights.autoGeneratePositions&&this.publication.positions?(E=Fe({},this.publication.positions.filter(S=>S.href===r.Href)[0]),E.href=this.publication.getAbsoluteHref(E.href)):E={href:u,locations:{progression:0},type:r.TypeLink,title:r.Title},I0.default.log(E),this.delegate.navigate(E)}),u===this.delegate.currentChapterLink.href?f.className+=" active":f.className=f.className.replace(" active",""),this.timelineContainer&&this.timelineContainer.appendChild(f)}),t()})}};A();var Q0=Je(to());A();var F4=Je(Dt());function $4(i,t){return new Promise(function(n){setTimeout(n.bind(null,t),i)})}var H8=!1;F4.default.setLevel(H8?"trace":"warn",!0);var y3=Je(g3()),Hd=Je(m3()),gn=Je(Dt());var jd=class{constructor(t,n){this.hasEventListener=!1;this.isHacked=!1;this.delegate=t,this.properties=n}static async setupPreloadProtection(t){if(this.isCurrentBrowserSupported(t))t.detectInspect&&await this.startInspectorProtection(t);else throw new Error("Browser not supported")}static async create(t){let n=new this(t.delegate,t);return await n.start(),n}static async startInspectorProtection(t){(0,Hd.addListener)(r=>{r&&(t.clearOnInspect&&(console.clear(),window.localStorage.clear(),window.sessionStorage.clear(),window.location.replace(window.location.origin)),t.detectInspect&&typeof t.api?.inspectDetected=="function"&&t.api.inspectDetected())}),(0,Hd.launch)(),await $4(t.detectInspectInitDelay??100)}static isCurrentBrowserSupported(t){if(!t.enforceSupportedBrowsers)return!0;let n=[];return(t.supportedBrowsers??[]).forEach(o=>{n.push("last 1 "+o+" version")}),(0,y3.getUserAgentRegExp)({browsers:n,allowHigherVersions:!0}).test(navigator.userAgent)}async start(){if(this.delegate.contentProtectionModule=this,this.properties?.enableObfuscation){this.wrapper=dt(document,"#iframe-wrapper"),this.securityContainer=de(document,"#container-view-security");var t=this;this.mutationObserver=new MutationObserver(function(n){n.forEach(function(r){gn.default.log(r.type),t.isHacked=!0})})}}async stop(){if(gn.default.log("Protection module stop"),this.mutationObserver.disconnect(),this.properties?.disableKeys){we(this.delegate.mainElement,"keydown",this.disableSave),we(this.delegate.headerMenu,"keydown",this.disableSave);for(let t of this.delegate.iframes)we(t.contentDocument,"keydown",this.disableSave),we(t.contentWindow,"keydown",this.disableSave);we(window,"keydown",this.disableSave),we(document,"keydown",this.disableSave)}if(this.properties?.disableCopy){we(this.delegate.mainElement,"copy",this.preventCopy),we(this.delegate.headerMenu,"copy",this.preventCopy);for(let t of this.delegate.iframes)we(t.contentDocument,"copy",this.preventCopy),we(t.contentWindow,"copy",this.preventCopy);we(window,"copy",this.preventCopy),we(document,"copy",this.preventCopy),we(this.delegate.mainElement,"cut",this.preventCopy),we(this.delegate.headerMenu,"cut",this.preventCopy);for(let t of this.delegate.iframes)we(t.contentDocument,"cut",this.preventCopy),we(t.contentWindow,"cut",this.preventCopy);we(window,"cut",this.preventCopy),we(document,"cut",this.preventCopy),we(this.delegate.mainElement,"keydown",this.preventCopyKey),we(this.delegate.headerMenu,"keydown",this.preventCopyKey);for(let t of this.delegate.iframes)we(t.contentDocument,"keydown",this.preventCopyKey),we(t.contentWindow,"keydown",this.preventCopyKey);we(window,"keydown",this.preventCopyKey),we(document,"keydown",this.preventCopyKey)}else if(this.properties?.canCopy){we(this.delegate.mainElement,"copy",this.restrictCopy),we(this.delegate.headerMenu,"copy",this.restrictCopy);for(let t of this.delegate.iframes)we(t.contentDocument,"copy",this.restrictCopy),we(t.contentWindow,"copy",this.restrictCopy);we(window,"copy",this.restrictCopy),we(document,"copy",this.restrictCopy),we(this.delegate.mainElement,"cut",this.restrictCopy),we(this.delegate.headerMenu,"cut",this.restrictCopy);for(let t of this.delegate.iframes)we(t.contentDocument,"cut",this.restrictCopy),we(t.contentWindow,"cut",this.restrictCopy);we(window,"cut",this.restrictCopy),we(document,"cut",this.restrictCopy),we(this.delegate.mainElement,"keydown",this.restrictCopyKey),we(this.delegate.headerMenu,"keydown",this.restrictCopyKey);for(let t of this.delegate.iframes)we(t.contentDocument,"keydown",this.restrictCopyKey),we(t.contentWindow,"keydown",this.restrictCopyKey);we(window,"keydown",this.restrictCopyKey),we(document,"keydown",this.restrictCopyKey)}if(this.properties?.disablePrint){we(this.delegate.mainElement,"beforeprint",this.beforePrint.bind(this)),we(this.delegate.headerMenu,"beforeprint",this.beforePrint.bind(this));for(let t of this.delegate.iframes)we(t.contentDocument,"beforeprint",this.beforePrint),we(t.contentWindow,"beforeprint",this.beforePrint);we(window,"beforeprint",this.beforePrint),we(document,"beforeprint",this.beforePrint),we(this.delegate.mainElement,"afterprint",this.afterPrint.bind(this)),we(this.delegate.headerMenu,"afterprint",this.afterPrint.bind(this));for(let t of this.delegate.iframes)we(t.contentDocument,"afterprint",this.afterPrint.bind(this)),we(t.contentWindow,"afterprint",this.afterPrint.bind(this));we(window,"afterprint",this.afterPrint.bind(this)),we(document,"afterprint",this.afterPrint.bind(this))}if(this.properties?.disableContextMenu){we(this.delegate.mainElement,"contextmenu",this.disableContext),we(this.delegate.headerMenu,"contextmenu",this.disableContext);for(let t of this.delegate.iframes)we(t.contentDocument,"contextmenu",this.disableContext),we(t.contentWindow,"contextmenu",this.disableContext);we(window,"contextmenu",this.disableContext),we(document,"contextmenu",this.disableContext)}this.properties?.hideTargetUrl&&this.hideTargetUrls(!1),this.properties?.disableDrag&&this.preventDrag(!1),we(this.wrapper,"scroll",this.handleScroll.bind(this))}observe(){if(this.properties?.enableObfuscation){this.securityContainer.hasAttribute("style")&&(this.isHacked=!0),this.mutationObserver.disconnect();var t={attributes:!0,childList:!0,characterData:!0};this.mutationObserver.observe(this.securityContainer,t)}}async deactivate(){this.properties?.enableObfuscation&&(this.observe(),this.rects.forEach(t=>this.deactivateRect(t,this.securityContainer,this.isHacked)))}async activate(){if(this.properties?.enableObfuscation){this.observe();for(let t of this.delegate.iframes)if(t.contentDocument){let n=_i(t.contentDocument,"body");this.rects=this.findRects(n),this.rects.forEach(r=>this.toggleRect(r,this.securityContainer,this.isHacked))}}}setupEvents(){if(this.properties?.disableKeys){Z(this.delegate.mainElement,"keydown",this.disableSave),Z(this.delegate.headerMenu,"keydown",this.disableSave);for(let t of this.delegate.iframes)Z(t,"keydown",this.disableSave),Z(t.ownerDocument,"keydown",this.disableSave),Z(t.contentDocument,"keydown",this.disableSave),Z(t.contentWindow,"keydown",this.disableSave),Z(t.contentWindow?.document,"keydown",this.disableSave);Z(window,"keydown",this.disableSave),Z(document,"keydown",this.disableSave)}if(this.properties?.disableCopy){Z(this.delegate.mainElement,"copy",this.preventCopy),Z(this.delegate.headerMenu,"copy",this.preventCopy);for(let t of this.delegate.iframes)Z(t,"copy",this.preventCopy),Z(t.ownerDocument,"copy",this.preventCopy),Z(t.contentDocument,"copy",this.preventCopy),Z(t.contentWindow,"copy",this.preventCopy),Z(t.contentWindow?.document,"copy",this.preventCopy);Z(window,"copy",this.preventCopy),Z(document,"copy",this.preventCopy),Z(this.delegate.mainElement,"cut",this.preventCopy),Z(this.delegate.headerMenu,"cut",this.preventCopy);for(let t of this.delegate.iframes)Z(t,"cut",this.preventCopy),Z(t.ownerDocument,"cut",this.preventCopy),Z(t.contentDocument,"cut",this.preventCopy),Z(t.contentWindow,"cut",this.preventCopy),Z(t.contentWindow?.document,"cut",this.preventCopy);Z(window,"cut",this.preventCopy),Z(document,"cut",this.preventCopy),Z(this.delegate.mainElement,"keydown",this.preventCopyKey),Z(this.delegate.headerMenu,"keydown",this.preventCopyKey);for(let t of this.delegate.iframes)Z(t,"keydown",this.preventCopyKey),Z(t.ownerDocument,"keydown",this.preventCopyKey),Z(t.contentDocument,"keydown",this.preventCopyKey),Z(t.contentWindow,"keydown",this.preventCopyKey),Z(t.contentWindow?.document,"keydown",this.preventCopyKey);Z(window,"keydown",this.preventCopyKey),Z(document,"keydown",this.preventCopyKey)}else if(this.properties?.canCopy){Z(this.delegate.mainElement,"copy",this.restrictCopy.bind(this)),Z(this.delegate.headerMenu,"copy",this.restrictCopy.bind(this));for(let t of this.delegate.iframes)Z(t,"copy",this.restrictCopy),Z(t.ownerDocument,"copy",this.restrictCopy.bind(this)),Z(t.contentDocument,"copy",this.restrictCopy.bind(this)),Z(t.contentWindow,"copy",this.restrictCopy.bind(this)),Z(t.contentWindow?.document,"copy",this.restrictCopy.bind(this));Z(window,"copy",this.restrictCopy.bind(this)),Z(document,"copy",this.restrictCopy.bind(this)),Z(this.delegate.mainElement,"cut",this.restrictCopy.bind(this)),Z(this.delegate.headerMenu,"cut",this.restrictCopy.bind(this));for(let t of this.delegate.iframes)Z(t,"cut",this.restrictCopy.bind(this)),Z(t.ownerDocument,"cut",this.restrictCopy.bind(this)),Z(t.contentDocument,"cut",this.restrictCopy.bind(this)),Z(t.contentWindow,"cut",this.restrictCopy.bind(this)),Z(t.contentWindow?.document,"cut",this.restrictCopy.bind(this));Z(window,"cut",this.restrictCopy.bind(this)),Z(document,"cut",this.restrictCopy.bind(this)),Z(this.delegate.mainElement,"keydown",this.restrictCopyKey.bind(this)),Z(this.delegate.headerMenu,"keydown",this.restrictCopyKey.bind(this));for(let t of this.delegate.iframes)Z(t,"keydown",this.restrictCopyKey.bind(this)),Z(t.ownerDocument,"keydown",this.restrictCopyKey.bind(this)),Z(t.contentDocument,"keydown",this.restrictCopyKey.bind(this)),Z(t.contentWindow,"keydown",this.restrictCopyKey.bind(this)),Z(t.contentWindow?.document,"keydown",this.restrictCopyKey.bind(this));Z(window,"keydown",this.restrictCopyKey.bind(this)),Z(document,"keydown",this.restrictCopyKey.bind(this))}if(this.properties?.disablePrint){Z(this.delegate.mainElement,"beforeprint",this.beforePrint),Z(this.delegate.headerMenu,"beforeprint",this.beforePrint);for(let t of this.delegate.iframes)Z(t,"beforeprint",this.beforePrint.bind(this)),Z(t.ownerDocument,"beforeprint",this.beforePrint.bind(this)),Z(t.contentDocument,"beforeprint",this.beforePrint.bind(this)),Z(t.contentWindow,"beforeprint",this.beforePrint.bind(this)),Z(t.contentWindow?.document,"beforeprint",this.beforePrint.bind(this));Z(window,"beforeprint",this.beforePrint.bind(this)),Z(document,"beforeprint",this.beforePrint.bind(this)),Z(this.delegate.mainElement,"afterprint",this.afterPrint),Z(this.delegate.headerMenu,"afterprint",this.afterPrint);for(let t of this.delegate.iframes)Z(t,"afterprint",this.afterPrint.bind(this)),Z(t.ownerDocument,"afterprint",this.afterPrint.bind(this)),Z(t.contentDocument,"afterprint",this.afterPrint.bind(this)),Z(t.contentWindow,"afterprint",this.afterPrint.bind(this)),Z(t.contentWindow?.document,"afterprint",this.afterPrint.bind(this));Z(window,"afterprint",this.afterPrint.bind(this)),Z(document,"afterprint",this.afterPrint.bind(this))}if(this.properties?.disableContextMenu){Z(this.delegate.mainElement,"contextmenu",this.disableContext),Z(this.delegate.headerMenu,"contextmenu",this.disableContext);for(let t of this.delegate.iframes)Z(t,"contextmenu",this.disableContext),Z(t.ownerDocument,"contextmenu",this.disableContext),Z(t.contentDocument,"contextmenu",this.disableContext),Z(t.contentWindow,"contextmenu",this.disableContext),Z(t.contentWindow?.document,"contextmenu",this.disableContext);Z(window,"contextmenu",this.disableContext),Z(document,"contextmenu",this.disableContext)}}initializeResource(){this.properties?.hideTargetUrl&&this.hideTargetUrls(!0),this.properties?.disableDrag&&this.preventDrag(!0)}async initialize(){if(this.properties?.enableObfuscation)return new Promise(async t=>{await document.fonts.ready;for(let n of this.delegate.iframes)if(n.contentDocument){let r=_i(n.contentDocument,"body");this.observe(),setTimeout(()=>{this.rects=this.findRects(r),this.rects.forEach(o=>this.toggleRect(o,this.securityContainer,this.isHacked)),this.setupEvents(),this.hasEventListener||(this.hasEventListener=!0,Z(this.wrapper,"scroll",this.handleScroll.bind(this))),t()},10)}})}handleScroll(){this.rects.forEach(t=>this.toggleRect(t,this.securityContainer,this.isHacked))}handleResize(){if(this.properties?.enableObfuscation){let t=(0,Q0.debounce)(()=>{this.calcRects(this.rects),this.rects!==void 0&&this.rects.forEach(n=>this.toggleRect(n,this.securityContainer,this.isHacked))},10);this.rects&&(this.observe(),t())}}disableContext(t){return t.preventDefault(),t.stopPropagation(),!1}disableSave(t){return(navigator.platform==="MacIntel"||navigator.platform.match("Mac")?t.metaKey:t.ctrlKey&&(t.key==="s"||t.keyCode===83))?(t.preventDefault(),t.stopPropagation(),!1):!0}preventCopy(t){return gn.default.log("copy action initiated"),t.clipboardData.setData("text/plain","copy not allowed"),t.stopPropagation(),t.preventDefault(),!1}preventCopyKey(t){return(navigator.platform==="MacIntel"||navigator.platform.match("Mac")?t.metaKey:t.ctrlKey&&(t.key==="c"||t.keyCode===67))?(t.preventDefault(),t.stopPropagation(),!1):!0}restrictCopy(t){if(this.citation)return;gn.default.log("copy action initiated");let n=this.delegate.iframes[0].contentWindow;if(n){let o=function(l){let u={className:f=>hr.indexOf(f)<0,idName:f=>hr.indexOf(f)<0},d=r.delegate.iframes[0].contentDocument;if(d)return ln(l,d,u)},r=this,a=oi(n,o);if(a===void 0){let l=this.delegate.iframes[0].contentDocument;a=this.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(l)}t.clipboardData.setData("text/plain",a?.cleanText?.substring(0,this.properties?.charactersToCopy??0))}else t.clipboardData.setData("text/plain","");return t.stopPropagation(),t.preventDefault(),!1}restrictCopyKey(t){if(navigator.platform==="MacIntel"||navigator.platform.match("Mac")?t.metaKey:t.ctrlKey&&(t.key==="c"||t.keyCode===67)){let n=this.delegate.iframes[0].contentWindow;if(n){let o=function(l){let u={className:f=>hr.indexOf(f)<0,idName:f=>hr.indexOf(f)<0},d=r.delegate.iframes[0].contentDocument;if(d)return ln(l,d,u)},r=this,a=oi(n,o);if(a===void 0){let l=this.delegate.iframes[0].contentDocument;a=this.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(l)}this.copyToClipboard(a?.cleanText?.substring(0,this.properties?.charactersToCopy??0))}else this.copyToClipboard("");return t.stopPropagation(),t.preventDefault(),!1}return!0}copyToClipboard(t){if(t=t.substring(0,this.properties?.charactersToCopy??0),window.clipboardData)window.clipboardData.setData("text/plain",t);else{let n=this.createElementForExecCommand(t);this.selectContent(n);try{window.netscape&&netscape.security&&netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"),document.execCommand("copy",!1)}catch(r){}document.body.removeChild(n)}}createElementForExecCommand(t){let n=document.createElement("div");return n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.innerHTML=t,document.body.appendChild(n),n.contentEditable=!0,n}selectContent(t){let n=document.createRange();n.selectNodeContents(t);let r=window.getSelection();r?.removeAllRanges(),r?.addRange(n)}beforePrint(t){return gn.default.log("before print"),this.delegate&&this.delegate.headerMenu&&(this.delegate.headerMenu.style.display="none",this.delegate.mainElement.style.display="none"),t.stopPropagation(),t.preventDefault(),!1}afterPrint(t){return gn.default.log("after print"),this.delegate&&this.delegate.headerMenu&&(this.delegate.headerMenu.style.removeProperty("display"),this.delegate.mainElement.style.removeProperty("display")),t.stopPropagation(),t.preventDefault(),!1}hideTargetUrls(t){function n(r){r.preventDefault();let o=r.currentTarget.getAttribute("data-href-resolved"),a=document.createElement("a");a.setAttribute("href",o),a.click()}for(let r of this.delegate.iframes){let o=r.contentDocument?.querySelectorAll("a");o?.forEach(a=>{let l=a.getAttribute("data-href"),u=a.getAttribute("href");!l&&u&&(a.setAttribute("data-href",u),a.setAttribute("data-href-resolved",a.href))}),t?o?.forEach(a=>{a.setAttribute("href",""),a.addEventListener("click",n)}):o?.forEach(a=>{let l=a.getAttribute("data-href");l&&a.setAttribute("href",l),a.removeEventListener("click",n)})}}preventDrag(t){let n="-webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -ms-user-drag: none; user-drag: none; -webkit-pointer-events: none; -khtml-pointer-events: none; -moz-pointer-events: none; -ms-pointer-events: none; pointer-events: none;",r=o=>{o.preventDefault()};for(let o of this.delegate.iframes){let a=o.contentDocument?.body.getAttribute("style")||"";t?(o.contentDocument?.body.addEventListener("dragstart",r),o.contentDocument?.body.setAttribute("style",a+n)):(o.contentDocument?.body.removeEventListener("dragstart",r),o.contentDocument?.body.setAttribute("style",a.replace(n,"")))}}recalculate(t=0){return new Promise(n=>{if(this.properties?.enableObfuscation){let r=(0,Q0.debounce)(()=>{this.calcRects(this.rects),this.rects!==void 0&&this.rects.forEach(o=>this.toggleRect(o,this.securityContainer,this.isHacked)),n(!0)},t);this.rects?(this.observe(),r()):n(!1)}else n(!1)})}calcRects(t){t!==void 0&&t.forEach(n=>{try{let{top:r,height:o,left:a,width:l}=this.measureTextNode(n.node);n.top=r,n.height=o,n.width=l,n.left=a}catch(r){gn.default.log("error "+r),gn.default.log(n),gn.default.log(n.node),gn.default.log("scrambledTextContent "+n.scrambledTextContent),gn.default.log("textContent "+n.textContent),gn.default.log("isObfuscated "+n.isObfuscated)}})}deactivateRect(t,n,r){this.isBeingHacked(n)||r?(t.node.textContent=t.scrambledTextContent,t.isObfuscated=!0):(t.node.textContent=t.textContent,t.isObfuscated=!1)}toggleRect(t,n,r){let o=this.isOutsideViewport(t),a=this.isBeingHacked(n);t.isObfuscated&&!o&&!a&&!r&&(t.node.textContent=t.textContent,t.isObfuscated=!1),!t.isObfuscated&&(o||a||r)&&(t.node.textContent=t.scrambledTextContent,t.isObfuscated=!0)}findRects(t){return this.findTextNodes(t).map(r=>{let{top:o,height:a,left:l,width:u}=this.measureTextNode(r),d=r.parentElement?.nodeName==="option"||r.parentElement?.nodeName==="script"?r.textContent:this.obfuscateText(r.textContent??"");return{top:o,height:a,width:u,left:l,node:r,textContent:r.textContent??"",scrambledTextContent:d??"",isObfuscated:!1}})}obfuscateText(t){return this.scramble(t,!0)}measureTextNode(t){try{let n=document.createRange();n.selectNode(t);let r=n.getBoundingClientRect();return n.detach(),r}catch(n){gn.default.log("measureTextNode "+n),gn.default.log("measureTextNode "+t),gn.default.log(t.textContent)}}isBeingHacked(t){return t.style.animation||t.style.transition||t.style.position||t.hasAttribute("style")?(gn.default.log("content being hacked"),!0):!1}isOutsideViewport(t){let n=this.wrapper.scrollLeft,r=n+this.wrapper.clientWidth,o=t.left+t.width,a=t.top+t.height,l=this.wrapper.scrollTop,u=l+this.wrapper.clientHeight,d=a<l,f=t.top>u,m=o<n-window.innerWidth,p=t.left>r+window.innerWidth;return d||f||m||p}findTextNodes(t,n=[]){let r=t.firstChild;for(;r;)r.nodeType===1&&this.findTextNodes(r,n),r.nodeType===3&&r.textContent?.trim()&&n.push(r),r=r.nextSibling;return n}scramble(t,n=!1,r=!1){var o=t.split(" ");function a(l){for(var u=l.length,d,f;u>0;)f=Math.floor(Math.random()*u),u--,d=l[u],l[u]=l[f],l[f]=d;return l}return n&&(o=o.map(function(l){return a(l.split("")).join("")})),r?a(o).join(" "):o.join(" ")}};A();var O3=Je(v3());A();var Dd=i=>i.replace(/\n/g," ").replace(/\s\s+/g," "),eN=i=>Dd(i).trim(),w3=/[\\^$.*+?()[\]{}|]/g,tN=RegExp(w3.source);function E3(i){return i&&tN.test(i)?i.replace(w3,"\\$&"):i||""}var Fd=0,nN=()=>()=>Number.isSafeInteger(++Fd)?Fd:Fd=1,S3=()=>{Fd=0},rN=nN(),iN=i=>t=>{try{return ln(t,i,ro)}catch(n){return console.error("uniqueCssSelector:",n),""}};async function lo(i,t,n,r,o=!1){if(!t)return[];let a=t.body?.textContent;if(!a)return[];if(i=eN(i),!i.length)return[];let l=t.createNodeIterator(t.body,NodeFilter.SHOW_TEXT,{acceptNode:S=>NodeFilter.FILTER_ACCEPT}),u=new RegExp(E3(i).replace(/ /g,"\\s+"),"gim");o&&(u=new RegExp("\\b"+E3(i).replace(/ /g,"\\s+")+"\\b","gim"));let d=[],f=100,m=30,p=0,E;for(;E=u.exec(a);){let S=Math.max(0,E.index-f),v=Math.min(f,E.index),y=Dd(a.substr(S,v));y=y.substr(y.length-m),S=u.lastIndex,v=Math.min(f,a.length-S);let b=Dd(a.substr(S,v)).substr(0,m),w=new Range,O=E.index;for(;p<=O;){let _=l.nextNode();_&&_.nodeValue&&(p+=_.nodeValue.length)}let T=l.referenceNode.nodeValue?l.referenceNode.nodeValue?.length-(p-O):0;for(w.setStart(l.referenceNode,T),O=E.index+E[0].length;p<=O;){let I=l.nextNode()?.nodeValue;I&&(p+=I.length)}T=l.referenceNode.nodeValue?l.referenceNode.nodeValue?.length-(p-O):0,w.setEnd(l.referenceNode,T),t.getCssSelector||(t.getCssSelector=iN(t));let C=Pi(w,t.getCssSelector);C&&d.push({textMatch:Dd(E[0]),textBefore:y,textAfter:b,rangeInfo:C,href:n,title:r,uuid:rN().toString()})}return d}var x3=Je(Dt()),tg=class{constructor(t,n,r,o,a,l){this.currentChapterSearchResult=[];this.bookSearchResult=[];this.currentSearchHighlights=[];this.delegate=t,this.headerMenu=l,this.publication=n,this.properties=r,this.api=a,this.highlighter=o}static async create(t){let n=new this(t.delegate,t.publication,t,t.highlighter,t.api,t.headerMenu);return await n.start(),n}async stop(){x3.default.log("Search module stop"),we(this.searchInput,"keypress",this.handleSearch.bind(this)),we(this.searchGo,"click",this.handleSearch.bind(this))}async start(){if(this.delegate.searchModule=this,this.headerMenu){this.searchInput=de(this.headerMenu,"#searchInput"),Z(this.searchInput,"keypress",this.handleSearch.bind(this)),this.searchGo=de(this.headerMenu,"#searchGo"),Z(this.searchGo,"click",this.handleSearch.bind(this));var t=de(this.headerMenu,"#menu-button-search");t&&t.parentElement?.style.removeProperty("display")}setTimeout(()=>{this.properties.hideLayer?this.delegate.hideLayer("search"):this.delegate.showLayer("search")},10)}async handleSearch(t){(t.key==="Enter"||t.type==="click")&&(await this.handleSearchChapter(),await this.handleSearchBook())}async handleSearchChapter(t){var n=this,r=this.searchInput.value;let o=this.delegate.currentChapterLink.href,a=this.publication.getSpineItem(o);if(this.headerMenu)var l=de(document,"#searchResultChapter");n.currentChapterSearchResult=[],n.currentSearchHighlights=[];var u=[];this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.deactivate(),await this.searchAndPaintChapter(r,t,async f=>{u=f,d(1),this.delegate.rights.enableContentProtection&&this.delegate.contentProtectionModule?.recalculate(200)});async function d(f){l.innerHTML="";var m;if(m=n.paginate(u,f,10),m.total===0){let p=document.createElement("a");p.className="collection-item",p.innerHTML="nothing found",l.appendChild(p)}else{for(let y=0;y<m.data.length;y++){let b=document.createElement("a"),w=m.data[y];b.className="collection-item",b.href=a?.Href??"",b.innerHTML="..."+w.textBefore+"<mark>"+w.textMatch+"</mark>"+w.textAfter+"...",Z(b,"click",O=>{O.preventDefault(),O.stopPropagation(),n.jumpToMark(y+f*10-10)}),l.appendChild(b)}let p=document.createElement("div");p.style.textAlign="center",p.style.marginTop="10px";let E=document.createElement("ul");E.className="pagination";let S=document.createElement("li");if(S.className="disabled",S.innerHTML='<a href="#!"> < </a>',m.pre_page!==void 0){let y=m.pre_page;S.className="waves-effect",Z(S,"click",b=>{b.preventDefault(),b.stopPropagation(),d(y)})}E.appendChild(S);for(let y=1;y<=m.total_pages;y++){let b,w=document.createElement("li");w.className="waves-effect",y===m.page&&(w.className="active",b=w),w.innerHTML='<a href="#!">'+y+"</a>",Z(w,"click",O=>{O.preventDefault(),O.stopPropagation(),b&&(b.className="waves-effect"),w.className="active",b=w,d(y)}),E.appendChild(w)}let v=document.createElement("li");if(v.className="disabled",v.innerHTML='<a href="#!"> > </a>',m.next_page!==void 0){let y=m.next_page;v.className="waves-effect",Z(v,"click",b=>{b.preventDefault(),b.stopPropagation(),d(y)})}E.appendChild(v),p.appendChild(E),l.appendChild(p)}}}async searchAndPaintChapter(t,n=0,r){let o=this.publication.getAbsoluteHref(this.publication.readingOrder[this.delegate.currentResource()??0].Href),a=this.publication.getTOCItem(o);a===null&&(a=this.publication.readingOrder[this.delegate.currentResource()??0]);let l=[];this.highlighter?.destroyHighlights(qe.Search),this.delegate.rights.enableSearch&&this.drawSearch();let u=0;if(a){let d=this.delegate.iframes[0].contentDocument;d&&a&&lo(t,d,a.Href,a.Title).then(f=>{f.forEach(m=>{let p={rangeInfo:m.rangeInfo};setTimeout(()=>{let E;u===n?(E=this.createSearchHighlight(p,this.properties?.current),this.jumpToMark(n)):E=this.createSearchHighlight(p,this.properties?.color),m.highlight=E,l.push(m),this.currentChapterSearchResult.push(m),this.currentSearchHighlights.push(E),u++},500)}),setTimeout(()=>{r(l)},500)})}}createSearchHighlight(t,n){try{var r=n;De.isHexColor(r)&&(r=De.hexToRgbChannels(r));let a=`${t.rangeInfo.startContainerElementCssSelector}${t.rangeInfo.startContainerChildTextNodeIndex}${t.rangeInfo.startOffset}${t.rangeInfo.endContainerElementCssSelector}${t.rangeInfo.endContainerChildTextNodeIndex}${t.rangeInfo.endOffset}`,l=O3.SHA256.hash(a),u="R2_SEARCH_"+l;var o=!1;let d={color:r||$o,id:u,pointerInteraction:o,selectionInfo:t,marker:Le.Highlight,type:qe.Search},f=this.highlighter?.createHighlightDom(this.delegate.iframes[0].contentWindow,d);return d.position=parseInt((f?.hasChildNodes()?f.childNodes[0]:f).style.top.replace("px","")),d}catch(a){throw"Can't create highlight: "+a}}clearSearch(){this.currentChapterSearchResult=[],this.currentSearchHighlights=[],this.highlighter?.destroyHighlights(qe.Search)}async search(t,n){return this.currentChapterSearchResult=[],this.currentSearchHighlights=[],this.bookSearchResult=[],S3(),await this.searchAndPaintChapter(t,0,async()=>{}),n?(await this.searchBook(t),await this.searchChapter(t)):(await this.searchChapter(t),await this.searchBook(t))}async goToSearchID(t,n,r){var o=n,a;let l=this.delegate.currentChapterLink.href;var u=this.publication.getAbsoluteHref(t);let d=this.bookSearchResult.filter(f=>f.href===t);if(r?(a=this.currentChapterSearchResult.filter(f=>f.uuid===n)[0],o=this.currentChapterSearchResult.findIndex(f=>f.uuid===n)):(a=d.filter(f=>f.uuid===n)[0],o=d.findIndex(f=>f.uuid===n)),a!==void 0)if(l===u)this.jumpToMark(o);else{let m={href:u,locations:{progression:0},title:"title"};this.delegate.navigate(m),setTimeout(()=>{this.searchAndPaintChapter(a.textMatch,o,async()=>{})},300)}}async goToSearchIndex(t,n,r){var o=n,a;let l=this.delegate.currentChapterLink.href;var u=this.publication.getAbsoluteHref(t);let d=this.bookSearchResult.filter(f=>f.href===t);if(r?a=this.currentChapterSearchResult[o]:a=d[o],a!==void 0)if(l===u)this.jumpToMark(o);else{let m={href:u,locations:{progression:0},title:"title"};this.delegate.navigate(m),setTimeout(()=>{this.searchAndPaintChapter(a.textMatch,o,async()=>{})},300)}}async handleSearchBook(){var t=this,n=this.searchInput.value;if(t.headerMenu)var r=de(document,"#searchResultBook");o(1);async function o(l){r.innerHTML="";var u,d=await t.searchBook(n);if(u=t.paginate(d,l,10),u.total===0){let f=document.createElement("a");f.className="collection-item",f.innerHTML="nothing found",r.appendChild(f)}else{a(u.data,v=>v.href).forEach(v=>{let y=document.createElement("div");if(y.style.marginBottom="10px",v[0].title){let b=document.createElement("span");b.className="collection-item",b.style.display="block",b.innerHTML=v[0].title,y.appendChild(b)}r.appendChild(y),v.forEach(b=>{let w=document.createElement("a");w.className="collection-item";var O=t.publication.getAbsoluteHref(b.href);w.innerHTML="..."+b.textBefore+"<mark>"+b.textMatch+"</mark>"+b.textAfter+"...",Z(w,"click",T=>{T.preventDefault(),T.stopPropagation();let _=d.filter(D=>D.href===b.href).findIndex(D=>D===b);if(t.delegate.currentChapterLink.href===O)t.jumpToMark(_);else{let P={href:O,locations:{progression:0},title:"title"};t.delegate.navigate(P),setTimeout(()=>{t.handleSearchChapter(_)},300)}}),y.appendChild(w)})});let m=document.createElement("div");m.style.textAlign="center",m.style.marginTop="10px";let p=document.createElement("ul");p.className="pagination";let E=document.createElement("li");if(E.className="disabled",E.innerHTML='<a href="#!"> < </a>',u.pre_page!=null){let v=u.pre_page;E.className="waves-effect",Z(E,"click",y=>{y.preventDefault(),y.stopPropagation(),o(v)})}p.appendChild(E);for(let v=1;v<=u.total_pages;v++){let y,b=document.createElement("li");b.className="waves-effect",v===u.page&&(b.className="active",y=b),b.innerHTML='<a href="#!">'+v+"</a>",Z(b,"click",w=>{w.preventDefault(),w.stopPropagation(),y&&(y.className="waves-effect"),b.className="active",y=b,o(v)}),p.appendChild(b)}let S=document.createElement("li");if(S.className="disabled",S.innerHTML='<a href="#!"> > </a>',u.next_page!=null){let v=u.next_page;S.className="waves-effect",Z(S,"click",y=>{y.preventDefault(),y.stopPropagation(),o(v)})}p.appendChild(S),m.appendChild(p),r.appendChild(m)}}function a(l,u){let d=new Map;return l.forEach(f=>{let m=u(f),p=d.get(m);p?p.push(f):d.set(m,[f])}),Array.from(d.values())}}async searchBook(t){this.bookSearchResult=[];let n=[];for(let r=0;r<this.publication.readingOrder.length;r++){let o=this.publication.getAbsoluteHref(this.publication.readingOrder?this.publication.readingOrder[r].Href:""),a=this.publication.getTOCItem(o);if(a===void 0&&this.publication.readingOrder&&(a=this.publication.readingOrder[r]),a){let l=this.publication.getAbsoluteHref(a.Href);this.delegate.api?.getContent?await this.delegate.api?.getContent(l).then(u=>{let f=new DOMParser().parseFromString(this.delegate.requestConfig?.encoded?this.decodeBase64(u):u,"application/xhtml+xml");a&&lo(t,f,a.Href,a.Title).then(m=>{m.forEach(p=>{n.push(p),this.bookSearchResult.push(p)})})}):await fetch(l,this.delegate.requestConfig).then(u=>u.text()).then(async u=>{let f=new DOMParser().parseFromString(this.delegate.requestConfig?.encoded?this.decodeBase64(u):u,"application/xhtml+xml");a&&lo(t,f,a.Href,a.Title).then(m=>{m.forEach(p=>{n.push(p),this.bookSearchResult.push(p)})})})}if(r===this.publication.readingOrder.length-1)return n}}decodeBase64(t){let n=atob(t),r=n.length,o=new Uint8Array(r);for(let l=0;l<r;l++)o[l]=n.charCodeAt(l);return new TextDecoder().decode(o)}async searchChapter(t){let n=[],r=this.publication.getAbsoluteHref(this.publication.readingOrder[this.delegate.currentResource()??0].Href),o=this.publication.getTOCItem(r);if(o===null&&(o=this.publication.readingOrder[this.delegate.currentResource()??0]),o){let a=this.publication.getAbsoluteHref(o.Href);this.delegate.api?.getContent?await this.delegate.api?.getContent(a).then(l=>{let d=new DOMParser().parseFromString(this.delegate.requestConfig?.encoded?this.decodeBase64(l):l,"application/xhtml+xml");o&&lo(t,d,o.Href,o.Title).then(f=>{f.forEach(m=>{n.push(m)})})}):await fetch(a,this.delegate.requestConfig).then(l=>l.text()).then(async l=>{let d=new DOMParser().parseFromString(this.delegate.requestConfig?.encoded?this.decodeBase64(l):l,"application/xhtml+xml");o&&lo(t,d,o.Href,o.Title).then(f=>{f.forEach(m=>{n.push(m)})})})}return n}drawSearch(){setTimeout(()=>{this.currentSearchHighlights=[],this.currentChapterSearchResult.forEach(t=>{let n={rangeInfo:t.rangeInfo};if(this.properties?.color){let r=this.createSearchHighlight(n,this.properties?.color);t.highlight=r,this.currentSearchHighlights.push(r)}})},100)}async handleResize(){await this.highlighter?.destroyHighlights(qe.Search),this.drawSearch()}jumpToMark(t){setTimeout(()=>{if(this.currentChapterSearchResult.length){var n=this.currentChapterSearchResult[t];this.currentSearchHighlights.forEach(o=>{var a=this.properties?.color;De.isHexColor(a)&&(a=De.hexToRgbChannels(a)),o.color=a});var r=this.properties?.current;De.isHexColor(r)&&(r=De.hexToRgbChannels(r)),n.highlight.color=r,this.highlighter?.setAndResetSearchHighlight(n.highlight,this.currentSearchHighlights),this.delegate.view?.goToCssSelector(n.rangeInfo.startContainerElementCssSelector),this.delegate.updatePositionInfo()}},200)}paginate(t,n,r){let o=n||1,a=r||10,l=(o-1)*a,u=t.slice(l).slice(0,a),d=Math.ceil(t.length/a);return{page:o,per_page:a,pre_page:o-1?o-1:void 0,next_page:d>o?o+1:void 0,total:t.length,total_pages:d,data:u}}};A();var Kn=Je(Dt()),co=class{},Be=co;Be.COLOR_REF="color",Be.AUTO_SCROLL_REF="autoscroll",Be.RATE_REF="rate",Be.PITCH_REF="pitch",Be.VOLUME_REF="volume",Be.VOICE_REF="voice",Be.COLOR_KEY="tts-"+co.COLOR_REF,Be.AUTO_SCROLL_KEY="tts-"+co.AUTO_SCROLL_REF,Be.RATE_KEY="tts-"+co.RATE_REF,Be.PITCH_KEY="tts-"+co.PITCH_REF,Be.VOLUME_KEY="tts-"+co.VOLUME_REF,Be.VOICE_KEY="tts-"+co.VOICE_REF;var ng=class{constructor(t,n,r){this.TTSSETTINGS="ttsSetting";this.color="orange";this.autoScroll=!0;this.rate=1;this.pitch=1;this.volume=1;this.voice={usePublication:!0};this.settingsChangeCallback=()=>{};this.restartCallback=()=>{};this.store=t,this.api=n,this.headerMenu=r,this.initialise()}static create(t){let n=new this(t.store,t.api,t.headerMenu);if(t.initialTTSSettings){let r=t.initialTTSSettings;r?.rate&&(n.rate=r.rate,Kn.default.log(n.rate)),r?.pitch&&(n.pitch=r.pitch,Kn.default.log(n.pitch)),r?.volume&&(n.volume=r.volume,Kn.default.log(n.volume)),r?.color&&(n.color=r.color,Kn.default.log(n.color)),r?.autoScroll&&(n.autoScroll=r.autoScroll,Kn.default.log(n.autoScroll)),r?.voice&&(n.voice=r.voice,Kn.default.log(n.voice))}return n.initializeSelections(),n}stop(){Kn.default.log("tts settings stop")}initialise(){this.autoScroll=this.getProperty(Be.AUTO_SCROLL_KEY)!=null?this.getProperty(Be.AUTO_SCROLL_KEY).value:this.autoScroll,this.rate=this.getProperty(Be.RATE_KEY)!=null?this.getProperty(Be.RATE_KEY).value:this.rate,this.pitch=this.getProperty(Be.PITCH_KEY)!=null?this.getProperty(Be.PITCH_KEY).value:this.pitch,this.volume=this.getProperty(Be.VOLUME_KEY)!=null?this.getProperty(Be.VOLUME_KEY).value:this.volume,this.color=this.getProperty(Be.COLOR_KEY)!=null?this.getProperty(Be.COLOR_KEY).value:this.color,this.voice=this.getProperty(Be.VOICE_REF)!=null?this.getProperty(Be.VOICE_REF).value:this.voice,this.userProperties=this.getTTSSettings()}reset(){this.color="orange",this.autoScroll=!0,this.rate=1,this.pitch=1,this.volume=1,this.voice={usePublication:!0},this.userProperties=this.getTTSSettings()}initializeSelections(){this.headerMenu&&(this.settingsView=de(this.headerMenu,"#container-view-tts-settings"))}setControls(){this.settingsView&&this.renderControls(this.settingsView)}renderControls(t){this.headerMenu&&(this.speechRate=de(this.headerMenu,"#speechRate")),this.headerMenu&&(this.speechPitch=de(this.headerMenu,"#speechPitch")),this.headerMenu&&(this.speechVolume=de(this.headerMenu,"#speechVolume")),this.headerMenu&&(this.speechAutoScroll=de(this.headerMenu,"#autoScroll")),this.speechRate&&(this.speechRate.value=this.rate.toString()),this.speechPitch&&(this.speechPitch.value=this.pitch.toString()),this.speechVolume&&(this.speechVolume.value=this.volume.toString()),this.speechAutoScroll&&(this.speechAutoScroll.checked=this.autoScroll),Z(de(t,"ul"),"click",n=>{n.stopPropagation()})}onSettingsChange(t){this.settingsChangeCallback=t}onRestart(t){this.restartCallback=t}storeProperty(t){this.updateUserSettings(),this.saveProperty(t)}updateUserSettings(){var t={rate:this.userProperties.getByRef(Be.RATE_REF)?.value,pitch:this.userProperties.getByRef(Be.PITCH_REF)?.value,volume:this.userProperties.getByRef(Be.VOLUME_REF)?.value,voice:this.userProperties.getByRef(Be.VOLUME_REF)?.value,color:this.userProperties.getByRef(Be.COLOR_REF)?.value,autoScroll:this.userProperties.getByRef(Be.AUTO_SCROLL_REF)?.value};this.applyTTSSettings(t),this.api?.updateSettings&&this.api?.updateSettings(t).then(async n=>{Kn.default.log("api updated tts settings",n)})}getTTSSettings(){var t=new xi;return t.addSwitchable("tts-auto-scroll-off","tts-auto-scroll-on",this.autoScroll,Be.AUTO_SCROLL_REF,Be.AUTO_SCROLL_KEY),t.addIncremental(this.rate,.1,10,.1,"",Be.RATE_REF,Be.RATE_KEY),t.addIncremental(this.pitch,.1,2,.1,"",Be.PITCH_REF,Be.PITCH_KEY),t.addIncremental(this.volume,.1,1,.1,"",Be.VOLUME_REF,Be.VOLUME_KEY),t.addStringable(this.color,Be.COLOR_REF,Be.COLOR_KEY),t.addJSONable(JSON.stringify(this.voice),Be.VOICE_REF,Be.VOICE_KEY),t}saveProperty(t){let n=this.store.get(this.TTSSETTINGS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.name!==t.name),r.push(t),this.store.set(this.TTSSETTINGS,JSON.stringify(r))}else{let r=[];r.push(t),this.store.set(this.TTSSETTINGS,JSON.stringify(r))}return t}getProperty(t){let n=this.store.get(this.TTSSETTINGS);if(n){let r=JSON.parse(n);return r=r.filter(o=>o.name===t),r.length===0?void 0:r[0]}}resetTTSSettings(){this.store.remove(this.TTSSETTINGS),this.reset(),this.settingsChangeCallback(),this.restartCallback()}applyTTSSettings(t){if(t.rate){Kn.default.log("rate "+this.rate),this.rate=t.rate;let n=this.userProperties.getByRef(Be.RATE_REF);n&&(n.value=this.rate,this.saveProperty(n)),this.settingsChangeCallback(),this.restartCallback()}if(t.pitch){Kn.default.log("pitch "+this.pitch),this.pitch=t.pitch;let n=this.userProperties.getByRef(Be.PITCH_REF);n&&(n.value=this.pitch,this.saveProperty(n)),this.settingsChangeCallback(),this.restartCallback()}if(t.volume){Kn.default.log("volume "+this.volume),this.volume=t.volume;let n=this.userProperties.getByRef(Be.VOLUME_REF);n&&(n.value=this.volume,this.saveProperty(n)),this.settingsChangeCallback(),this.restartCallback()}if(t.color){this.color=t.color;let n=this.userProperties.getByRef(Be.COLOR_REF);n&&(n.value=this.color,this.saveProperty(n)),this.settingsChangeCallback()}if(t.autoScroll!==void 0){Kn.default.log("autoScroll "+this.autoScroll),this.autoScroll=t.autoScroll;let n=this.userProperties.getByRef(Be.AUTO_SCROLL_REF);n&&(n.value=this.autoScroll,this.saveProperty(n)),this.settingsChangeCallback()}if(t.voice){Kn.default.log("voice "+this.voice),this.voice=t.voice;let n=this.userProperties.getByRef(Be.VOICE_REF);n&&(n.value=this.voice,this.saveProperty(n)),this.settingsChangeCallback(),this.restartCallback()}}applyPreferredVoice(t){var n=t.indexOf(":")!==-1?t.slice(0,t.indexOf(":")):void 0,r=t.indexOf(":")!==-1?t.slice(t.indexOf(":")+1):t;n!==void 0&&r!==void 0?this.applyTTSSettings({voice:{usePublication:!0,name:n,lang:r}}):r!==void 0&&n===void 0&&this.applyTTSSettings({voice:{usePublication:!0,lang:r}})}increase(t){if(t==="rate"){this.userProperties.getByRef(Be.RATE_REF).increment();let n=this.userProperties.getByRef(Be.RATE_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}else if(t==="pitch"){this.userProperties.getByRef(Be.PITCH_REF).increment();let n=this.userProperties.getByRef(Be.PITCH_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}else if(t==="volume"){this.userProperties.getByRef(Be.VOLUME_REF).increment();let n=this.userProperties.getByRef(Be.VOLUME_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}}decrease(t){if(t==="rate"){this.userProperties.getByRef(Be.RATE_REF).decrement();let n=this.userProperties.getByRef(Be.RATE_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}else if(t==="pitch"){this.userProperties.getByRef(Be.PITCH_REF).decrement();let n=this.userProperties.getByRef(Be.PITCH_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}else if(t==="volume"){this.userProperties.getByRef(Be.VOLUME_REF).decrement();let n=this.userProperties.getByRef(Be.VOLUME_REF);n&&this.storeProperty(n),this.settingsChangeCallback(),this.restartCallback()}}};A();A();var _3=`${Ur.loading}`,T3=`
76
76
  <span>
77
77
  ${Ur.error}
78
78
  </span>
79
79
  <span>There was an error loading this page.</span>
80
80
  <button class="go-back">Go back</button>
81
81
  <button class="try-again">Try again</button>
82
- `;var zd=Je(to());A();var Ks=class{constructor(t){this.onBackwardSwipe=()=>{};this.onForwardSwipe=()=>{};this.setupEvents=t=>{let n=null,r=null,o=this;t&&(t.addEventListener("touchstart",function(a){a.changedTouches.length===1&&(n=a)},!1),t.addEventListener("touchend",function(a){if(a.changedTouches.length!==1||!n)return;let l=n.changedTouches[0],u=a.changedTouches[0];if(!l)return;let d=window.devicePixelRatio,f=(l.clientX-u.clientX)/d,m=(l.clientY-u.clientY)/d;if(Math.abs(f)<Ks.TAP_TOLERANCE&&Math.abs(m)<Ks.TAP_TOLERANCE){if(r){n=null,r=null;return}if(a.timeStamp-n.timeStamp>Ks.LONG_PRESS_MS){n=null,r=null;return}n=null,r=a;return}if(r=null,a.timeStamp-n.timeStamp>Ks.SLOW_SWIPE_MS){n=null;return}let p=(l.clientY-u.clientY)/(l.clientX-u.clientX);if(Math.abs(p)>.5){n=null;return}f<0?o.onBackwardSwipe(a):o.onForwardSwipe(a),n=null},!1))};this.navigator=t}},Vo=Ks;Vo.TAP_TOLERANCE=10,Vo.LONG_PRESS_MS=500,Vo.SLOW_SWIPE_MS=500;A();var $d=class{constructor(t){this.onBackwardSwipe=()=>{};this.onForwardSwipe=()=>{};this.setupEvents=t=>{t&&(this.focusin(t),this.keydown(t))};this.focusin=t=>{let n=this;t.addEventListener("focusin",function(r){n.navigator.view?.snap(r.target)},!0)};this.keydown=t=>{let n=this;this.navigator.rights.customKeyboardEvents||t.addEventListener("keydown",function(r){let o=r.target;if(/input|select|option|textarea/i.test(o.tagName)||!(o.ownerDocument||o).defaultView.getSelection().isCollapsed)return;switch(r.key){case"ArrowRight":n.onForwardSwipe(r);break;case"ArrowLeft":n.onBackwardSwipe(r);break}},!1)};this.navigator=t}};A();var C3=Je(to()),Ud=class{constructor(t){this.enforceSampleRead=(0,C3.debounce)(t=>{let n=Math.round(t.locations.totalProgression*100),r=!1;this.delegate.sample?.limit&&(r=n<=this.delegate.sample?.limit,this.delegate.view?.layout==="fixed"&&!r&&this.delegate.sample?.minimum&&t.locations.position<=this.delegate.sample?.minimum&&(r=!0));let o={37:1,38:0,39:1,40:1,32:1,33:1,34:1,35:1,36:1};function a(v){v.preventDefault()}function l(v){o[v.keyCode]&&!r&&a(v)}let u=!1,d=Object.defineProperty&&Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("test",function(){},d);let f=u?{passive:!1}:!1;function m(v){v=v||window.event;let y=Math.max(-1,Math.min(1,v.wheelDelta||-v.detail));return y===-1&&!r&&v.preventDefault(),!1}let p;function E(v){v=v||window.event;let y=v.target||v.srcElement,b=v.touches[0].clientY;if(!(b>p)){if(b<p&&!r)return y.className.match(/\baltNav\b/)||(v.returnValue=!1,v.cancelable&&(v.cancelBubble=!0),v.preventDefault&&v.cancelable&&(v.preventDefault(),v.stopPropagation())),!1}return p=b,!1}function S(v){return v=v||window.event,p=v.touches[0].clientY,!1}window.addEventListener("mousewheel",m,f),window.addEventListener("DOMMouseScroll",m,f),window.addEventListener("keydown",l,f),window.addEventListener("touchmove",E,f),window.addEventListener("touchstart",S,f),r?(this.delegate.iframes[0].focus(),this.delegate.errorMessage&&(this.delegate.errorMessage.style.display="none",this.delegate.errorMessage.style.removeProperty("background-color"))):(this.delegate.iframes[0].blur(),this.delegate.errorMessage&&(this.delegate.errorMessage.style.display="block",this.delegate.errorMessage.style.backgroundColor="rgb(255, 255, 255)",this.delegate.errorMessage.innerHTML=this.delegate.sample?.popup??""))},300);this.delegate=t}};var M3=Je(R3()),Yn=Je(Dt()),Ln=class extends M3.default{constructor(t,n=void 0,r=void 0,o,a,l,u,d,f,m,p,E){super();this.iframes=[];this.sideNavExpanded=!1;this.currentChapterLink={href:""};this.currentSpreadLinks={};this.rights={autoGeneratePositions:!1,enableAnnotations:!1,enableBookmarks:!1,enableContentProtection:!1,enableDefinitions:!1,enableLineFocus:!1,enableMediaOverlays:!1,enablePageBreaks:!1,enableSearch:!1,enableTTS:!1,enableTimeline:!1,customKeyboardEvents:!1,enableHistory:!1,enableCitations:!1};this.didInitKeyboardEventHandler=!1;this.onResize=()=>{clearTimeout(this.timeout),this.timeout=setTimeout(this.handleResize.bind(this),200)};this.reload=async()=>{let t;if(this.annotator&&(t=await this.annotator.getLastReadingPosition()),t){let n=this.publication.getAbsoluteHref(t.href);Yn.default.log(t.href),Yn.default.log(n),t.href=n,await this.navigate(t)}};this.savePosition=(0,zd.debounce)(()=>{this.annotator&&this.saveCurrentReadingPosition()},200);this.checkResourcePosition=(0,zd.debounce)(()=>{this.view?.atStart()&&this.view?.atEnd()?(this.api?.resourceFitsScreen&&this.api?.resourceFitsScreen(),this.emit("resource.fits")):this.view?.atEnd()?(this.api?.resourceAtEnd&&this.api?.resourceAtEnd(),this.emit("resource.end")):this.view?.atStart()&&(this.api?.resourceAtStart&&this.api?.resourceAtStart(),this.emit("resource.start"))},200);this.settings=t,this.annotator=n,this.view=t.view,this.view.attributes=f,this.view.delegate=this,this.eventHandler=new pd(this),this.touchEventHandler=new Vo(this),this.keyboardEventHandler=new $d(this),this.initialLastReadingPosition=r,this.publication=o,this.api=a,this.rights=l??{autoGeneratePositions:!1,enableAnnotations:!1,enableBookmarks:!1,enableContentProtection:!1,enableDefinitions:!1,enableLineFocus:!1,enableMediaOverlays:!1,enablePageBreaks:!1,enableSearch:!1,enableTTS:!1,enableTimeline:!1,customKeyboardEvents:!1,enableHistory:!1,enableCitations:!1},this.tts=u,this.injectables=d,this.attributes=f||{margin:0},this.services=m,this.sample=p,this.requestConfig=E,this.sampleReadEventHandler=new Ud(this)}static async create(t){let n=new this(t.settings,t.annotator||void 0,t.initialLastReadingPosition||void 0,t.publication,t.api,t.rights,t.tts,t.injectables,t.attributes||{margin:0},t.services,t.sample,t.requestConfig);return await n.start(t.mainElement,t.headerMenu,t.footerMenu),new Promise(r=>r(n))}stop(){Yn.default.log("Iframe navigator stop"),we(this.previousChapterAnchorElement,"click",this.handlePreviousChapterClick.bind(this)),we(this.nextChapterAnchorElement,"click",this.handleNextChapterClick.bind(this)),we(this.previousChapterTopAnchorElement,"click",this.handlePreviousPageClick.bind(this)),we(this.nextChapterBottomAnchorElement,"click",this.handleNextPageClick.bind(this)),we(this.previousPageAnchorElement,"click",this.handlePreviousPageClick.bind(this)),we(this.nextPageAnchorElement,"click",this.handleNextPageClick.bind(this)),we(this.tryAgainButton,"click",this.tryAgain.bind(this)),we(this.goBackButton,"click",Ln.goBack.bind(this)),we(this.espandMenuIcon,"click",this.handleEditClick.bind(this)),we(window,"resize",this.onResize),this.iframes.forEach(t=>{we(t,"resize",this.onResize)})}async start(t,n,r){this.headerMenu=n,this.mainElement=t;try{let S=dt(t,"main#iframe-wrapper");S.style.overflow="auto";let v=de(t,"main#iframe-wrapper iframe"),y=de(t,"#second");if(v&&this.iframes.push(v),y&&this.iframes.push(y),window.matchMedia("screen and (max-width: 600px)").matches&&(this.settings.columnCount=1),this.iframes.length===0){S.style.overflow="auto";let b=document.createElement("iframe");if(b.setAttribute("SCROLLING","no"),b.setAttribute("allowtransparency","true"),this.iframes.push(b),this.publication.isFixedLayout?(this.spreads=document.createElement("div"),this.firstSpread=document.createElement("div"),this.spreads.style.display="flex",this.spreads.style.alignItems="center",this.spreads.style.justifyContent="center",this.spreads.appendChild(this.firstSpread),this.firstSpread.appendChild(this.iframes[0]),S.appendChild(this.spreads)):(b.setAttribute("height","100%"),b.setAttribute("width","100%"),S.appendChild(this.iframes[0])),this.publication.isFixedLayout)if(this.settings.columnCount!==1&&!window.matchMedia("screen and (max-width: 600px)").matches){let w=document.createElement("div");this.spreads.appendChild(w);let O=document.createElement("iframe");O.setAttribute("SCROLLING","no"),O.setAttribute("allowtransparency","true"),O.style.opacity="1",O.style.border="none",O.style.overflow="hidden",this.iframes.push(O),w.appendChild(this.iframes[1]),this.firstSpread.style.clipPath="polygon(0% -20%, 100% -20%, 100% 120%, -20% 120%)",this.firstSpread.style.boxShadow="0 0 8px 2px #ccc",w.style.clipPath="polygon(0% -20%, 100% -20%, 120% 100%, 0% 120%)",w.style.boxShadow="0 0 8px 2px #ccc"}else this.firstSpread.style.clipPath="polygon(0% -20%, 100% -20%, 120% 100%, -20% 120%)",this.firstSpread.style.boxShadow="0 0 8px 2px #ccc";else this.iframes[0].style.paddingTop=(this.attributes?.iframePaddingTop??0)+"px"}if(this.publication.isFixedLayout){let b=S.clientHeight;var o=this.iframes[0].parentElement?.parentElement;o.style.height=b+40+"px"}else this.iframes.length===2&&this.iframes.pop();if(this.loadingMessage=de(t,"#reader-loading"),this.loadingMessage&&(this.loadingMessage.innerHTML=_3,this.loadingMessage.style.display="none"),this.errorMessage=de(t,"#reader-error"),this.errorMessage&&(this.errorMessage.innerHTML=T3,this.errorMessage.style.display="none"),this.tryAgainButton=de(t,"button[class=try-again]"),this.goBackButton=de(t,"button[class=go-back]"),this.infoTop=de(t,"div[class='info top']"),this.infoBottom=de(t,"div[class='info bottom']"),this.headerMenu&&(this.bookTitle=de(this.headerMenu,"#book-title")),this.infoBottom&&(this.chapterTitle=de(this.infoBottom,"span[class=chapter-title]")),this.infoBottom&&(this.chapterPosition=de(this.infoBottom,"span[class=chapter-position]")),this.infoBottom&&(this.remainingPositions=de(this.infoBottom,"span[class=remaining-positions]")),this.headerMenu&&(this.espandMenuIcon=de(this.headerMenu,"#expand-menu")),this.headerMenu&&(this.links=de(this.headerMenu,"ul.links.top")),this.headerMenu&&(this.linksTopLeft=de(this.headerMenu,"#nav-mobile-left")),this.headerMenu&&(this.tocView=de(this.headerMenu,"#container-view-toc")),this.headerMenu&&(this.landmarksView=de(this.headerMenu,"#container-view-landmarks")),this.headerMenu&&(this.landmarksSection=de(this.headerMenu,"#sidenav-section-landmarks")),this.headerMenu&&(this.pageListView=de(this.headerMenu,"#container-view-pagelist")),r&&(this.linksBottom=de(r,"ul.links.bottom")),r&&(this.linksMiddle=de(r,"ul.links.middle")),this.headerMenu&&(this.nextChapterAnchorElement=de(this.headerMenu,"a[rel=next]")),this.headerMenu&&(this.nextChapterBottomAnchorElement=de(t,"#next-chapter")),r&&(this.nextPageAnchorElement=de(r,"a[rel=next]")),this.headerMenu&&(this.previousChapterAnchorElement=de(this.headerMenu,"a[rel=prev]")),this.headerMenu&&(this.previousChapterTopAnchorElement=de(t,"#previous-chapter")),r&&(this.previousPageAnchorElement=de(r,"a[rel=prev]")),this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.newPosition=void 0,this.newElementId=void 0,this.isBeingStyled=!0,this.isLoading=!0,this.settings.setIframe(this.iframes[0]),this.settings.onSettingsChange(this.handleResize.bind(this)),this.settings.onColumnSettingsChange(this.handleNumberOfIframes.bind(this)),this.settings.onViewChange(this.updateBookView.bind(this)),this.initialLastReadingPosition&&this.annotator?.initLastReadingPosition(this.initialLastReadingPosition),this.headerMenu){var a=de(this.headerMenu,"#menu-button-search"),l=de(this.headerMenu,"#menu-button-tts"),u=de(this.headerMenu,"#menu-button-bookmark"),d=de(this.headerMenu,"#menu-button-play"),f=de(this.headerMenu,"#menu-button-pause"),m=de(this.headerMenu,"#menu-button-mediaoverlay");if(!this.rights.enableBookmarks){u&&u.parentElement?.style.setProperty("display","none");var p=de(this.headerMenu,"#sidenav-section-bookmarks");p&&p.style.setProperty("display","none")}if(!this.rights.enableAnnotations){var E=de(this.headerMenu,"#sidenav-section-highlights");E&&E.style.setProperty("display","none")}this.rights.enableTTS||l&&l.parentElement?.style.setProperty("display","none"),this.rights.enableSearch||a&&a.parentElement?.style.setProperty("display","none"),a&&this.view?.delegate.publication.isFixedLayout&&a.parentElement?.style.setProperty("display","none"),this.hasMediaOverlays?(d&&d.parentElement?.style.removeProperty("display"),f&&f.parentElement?.style.removeProperty("display"),m&&m.parentElement?.style.removeProperty("display")):(d&&d.parentElement?.style.setProperty("display","none"),f&&f.parentElement?.style.setProperty("display","none"),m&&m.parentElement?.style.setProperty("display","none"))}else a&&a.parentElement?.style.setProperty("display","none"),l&&l.parentElement?.style.setProperty("display","none"),u&&u.parentElement?.style.setProperty("display","none");return this.setupEvents(),await this.loadManifest()}catch(S){return Yn.default.error(S),this.abortOnError(S),Promise.reject(S)}}setupEvents(){for(let t of this.iframes)Z(t,"load",this.handleIFrameLoad.bind(this));Z(this.previousChapterAnchorElement,"click",this.handlePreviousChapterClick.bind(this)),Z(this.nextChapterAnchorElement,"click",this.handleNextChapterClick.bind(this)),Z(this.previousChapterTopAnchorElement,"click",this.handlePreviousPageClick.bind(this)),Z(this.nextChapterBottomAnchorElement,"click",this.handleNextPageClick.bind(this)),Z(this.previousPageAnchorElement,"click",this.handlePreviousPageClick.bind(this)),Z(this.nextPageAnchorElement,"click",this.handleNextPageClick.bind(this)),Z(this.tryAgainButton,"click",this.tryAgain.bind(this)),Z(this.goBackButton,"click",Ln.goBack.bind(this)),Z(this.espandMenuIcon,"click",this.handleEditClick.bind(this)),Z(window,"resize",this.onResize);for(let t of this.iframes)Z(t,"resize",this.onResize)}updateBookView(){this.view?.layout==="fixed"?(this.nextPageAnchorElement&&(this.nextPageAnchorElement.style.display="none"),this.previousPageAnchorElement&&(this.previousPageAnchorElement.style.display="none"),this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.keyboardEventHandler&&(this.keyboardEventHandler.onBackwardSwipe=this.handlePreviousChapterClick.bind(this),this.keyboardEventHandler.onForwardSwipe=this.handleNextChapterClick.bind(this)),this.touchEventHandler&&(this.touchEventHandler.onBackwardSwipe=this.handlePreviousPageClick.bind(this),this.touchEventHandler.onForwardSwipe=this.handleNextPageClick.bind(this))):(this.settings.isPaginated().then(t=>{if(t)this.view.height=$r()-40-(this.attributes?.margin??0),this.infoBottom&&this.infoBottom.style.removeProperty("display"),document.body.onscroll=()=>{},this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.nextPageAnchorElement&&(this.nextPageAnchorElement.style.display="unset"),this.previousPageAnchorElement&&(this.previousPageAnchorElement.style.display="unset"),this.chapterTitle&&(this.chapterTitle.style.display="inline"),this.chapterPosition&&(this.chapterPosition.style.display="inline"),this.remainingPositions&&(this.remainingPositions.style.display="inline"),this.eventHandler&&(this.eventHandler.onInternalLink=this.handleInternalLink.bind(this),this.eventHandler.onClickThrough=this.handleClickThrough.bind(this)),this.touchEventHandler&&(this.touchEventHandler.onBackwardSwipe=this.handlePreviousPageClick.bind(this),this.touchEventHandler.onForwardSwipe=this.handleNextPageClick.bind(this)),this.keyboardEventHandler&&(this.keyboardEventHandler.onBackwardSwipe=this.handlePreviousPageClick.bind(this),this.keyboardEventHandler.onForwardSwipe=this.handleNextPageClick.bind(this));else{this.infoBottom&&(this.infoBottom.style.display="none"),this.nextPageAnchorElement&&(this.nextPageAnchorElement.style.display="none"),this.previousPageAnchorElement&&(this.previousPageAnchorElement.style.display="none"),this.view?.layout==="fixed"?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none")):this.view?.atStart()&&this.view?.atEnd()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):this.view?.atEnd()?(this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset")):this.view?.atStart()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"));let n=(0,zd.debounce)(()=>{this.isScrolling=!1},200),r=dt(document,"#iframe-wrapper");r.onscroll=async()=>{this.isScrolling=!0,await this.savePosition(),this.view?.atEnd(),this.view?.layout==="fixed"?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none")):(this.settings.isPaginated().then(o=>{o||(this.view?.atStart()&&this.view?.atEnd()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):this.view?.atEnd()?(this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset")):this.view?.atStart()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none")))}),this.checkResourcePosition()),n()},this.chapterTitle&&(this.chapterTitle.style.display="none"),this.chapterPosition&&(this.chapterPosition.style.display="none"),this.remainingPositions&&(this.remainingPositions.style.display="none"),this.eventHandler&&(this.eventHandler.onInternalLink=this.handleInternalLink.bind(this),this.eventHandler.onClickThrough=this.handleClickThrough.bind(this)),this.touchEventHandler&&(this.touchEventHandler.onBackwardSwipe=this.handlePreviousPageClick.bind(this),this.touchEventHandler.onForwardSwipe=this.handleNextPageClick.bind(this)),this.keyboardEventHandler&&(this.keyboardEventHandler.onBackwardSwipe=this.handlePreviousPageClick.bind(this),this.keyboardEventHandler.onForwardSwipe=this.handleNextPageClick.bind(this))}}),setTimeout(async()=>{await this.highlighter?.prepareContainers(this.iframes[0].contentWindow),this.pageBreakModule!==void 0&&(await this.highlighter?.destroyHighlights(qe.PageBreak),await this.pageBreakModule.drawPageBreaks()),this.annotationModule!==void 0&&await this.annotationModule.drawHighlights(),this.bookmarkModule!==void 0&&await this.bookmarkModule.drawBookmarks(),this.rights.enableSearch&&this.searchModule!==void 0&&this.highlighter!==void 0&&(await this.highlighter.destroyHighlights(qe.Search),this.searchModule.drawSearch()),this.rights.enableDefinitions&&this.definitionsModule!==void 0&&this.highlighter!==void 0&&await this.definitionsModule.drawDefinitions()},200))}async loadManifest(){try{let t=(d,f,m=!1)=>{var p=document.createElement("ul");m&&(p=document.createElement("ol")),p.className="sidenav-toc";for(let E of f){let S=document.createElement("li"),v=document.createElement("a"),y=document.createElement("span");v.className="chapter-link",v.tabIndex=-1;let b="";E.Href?(b=this.publication.getAbsoluteHref(E.Href),v.href=b,v.innerHTML=E.Title||"",S.appendChild(v)):(y.innerHTML=E.Title||"",y.className="chapter-title",S.appendChild(y)),E.Children&&E.Children.length>0&&t(S,E.Children,!0),p.appendChild(S)}Z(p,"click",E=>{if(E.preventDefault(),E.stopPropagation(),E.target&&E.target.tagName.toLowerCase()==="a"){let S=E.target;if(S.className.indexOf("active")!==-1)this.hideView();else{let v={progression:0};if(S.href.indexOf("#")!==-1){let b=S.href.slice(S.href.indexOf("#")+1);b!==void 0&&(v={fragment:b})}let y={href:S.href,locations:v,type:S.type,title:S.title};this.hideView(),this.navigate(y)}}}),d.appendChild(p)},n=this.publication.tableOfContents,r=this.publication.landmarks,o=this.publication.pageList;this.tocView&&(n.length?t(this.tocView,n):this.tocView.parentElement?.parentElement?.removeChild(this.tocView.parentElement)),this.pageListView&&(o?.length?t(this.pageListView,o):this.pageListView.parentElement?.parentElement?.removeChild(this.pageListView.parentElement)),this.landmarksView&&(r?.length?t(this.landmarksView,r):this.landmarksSection.parentElement?.removeChild(this.landmarksSection));let a;this.annotator&&(a=await this.annotator.getLastReadingPosition());let l=this.publication.getStartLink(),u;if(l&&l.Href&&(u=this.publication.getAbsoluteHref(l.Href)),a){let d=this.publication.getAbsoluteHref(a.href);Yn.default.log(a.href),Yn.default.log(d),a.href=d,await this.navigate(a)}else if(u){let d={href:u,locations:{progression:0},created:new Date,title:l?.Title};await this.navigate(d)}return new Promise(d=>d())}catch(t){return Yn.default.error(t),this.abortOnError(t),new Promise((n,r)=>r(t)).catch(()=>{})}}async handleIFrameLoad(){this.errorMessage&&(this.errorMessage.style.display="none"),this.showLoadingMessageAfterDelay();try{let t=0;this.newPosition&&(t=this.newPosition.locations.progression),await this.handleResize(),this.updateBookView(),await this.settings.applyProperties();let n=this.currentChapterLink.href;if(n){let d=this.publication.getPreviousSpineItem(n);d&&d.Href&&(this.previousChapterLink={href:d.Href,title:d.Title,type:d.TypeLink})}this.previousChapterAnchorElement&&(this.previousChapterLink&&this.previousChapterLink.href?(this.previousChapterAnchorElement.href=this.publication.getAbsoluteHref(this.previousChapterLink.href),this.previousChapterAnchorElement.className=this.previousChapterAnchorElement.className.replace(" disabled","")):(this.previousChapterAnchorElement.removeAttribute("href"),this.previousChapterAnchorElement.className+=" disabled"));let r=this.publication.getNextSpineItem(n);r?this.nextChapterLink={href:r.Href,title:r.Title,type:r.TypeLink}:this.nextChapterLink=void 0,this.nextChapterAnchorElement&&(this.nextChapterLink&&this.nextChapterLink.href?(this.nextChapterAnchorElement.href=this.publication.getAbsoluteHref(this.nextChapterLink.href),this.nextChapterAnchorElement.className=this.nextChapterAnchorElement.className.replace(" disabled","")):(this.nextChapterAnchorElement.removeAttribute("href"),this.nextChapterAnchorElement.className+=" disabled")),this.historyModule&&this.historyModule.setup(),this.currentTocUrl!==void 0?this.setActiveTOCItem(this.currentTocUrl):this.setActiveTOCItem(n),this.publication.Metadata.Title&&this.bookTitle&&(this.bookTitle.innerHTML=this.publication.Metadata.Title.toString());let o=this.publication.getSpineItem(n);o!==void 0&&(this.currentChapterLink.title=o.Title,this.currentChapterLink.type=o.TypeLink);let a=this.publication.getTOCItem(n);this.currentTocUrl!==void 0&&(a=this.publication.getTOCItem(this.currentTocUrl)),!this.currentChapterLink.title&&a!==void 0&&a.Title&&(this.currentChapterLink.title=a.Title),!this.currentChapterLink.type&&a!==void 0&&a.TypeLink&&(this.currentChapterLink.title=a.Title),this.currentChapterLink.title?this.chapterTitle&&(this.chapterTitle.innerHTML="("+this.currentChapterLink.title+")"):this.chapterTitle&&(this.chapterTitle.innerHTML="(Current Chapter)"),await this.injectInjectablesIntoIframeHead(),this.highlighter!==void 0&&await this.highlighter.initialize();let u=this.iframes[0].contentDocument?.body?.querySelector("details");if(u){let d=this;u.addEventListener("toggle",async f=>{await d.view?.setIframeHeight?.(this.iframes[0])})}if(this.rights.enableContentProtection&&this.contentProtectionModule!==void 0&&await this.contentProtectionModule.initialize(),this.eventHandler){for(let d of this.iframes)this.eventHandler.setupEvents(d.contentDocument),this.touchEventHandler.setupEvents(d.contentDocument),this.keyboardEventHandler.setupEvents(d.contentDocument);this.touchEventHandler.setupEvents(this.errorMessage),this.didInitKeyboardEventHandler||(this.keyboardEventHandler.keydown(document),this.didInitKeyboardEventHandler=!0)}if(this.view?.layout!=="fixed"&&this.view?.isScrollMode()&&(this.iframes[0].height="0",this.view?.setIframeHeight?.(this.iframes[0])),this.annotationModule!==void 0&&await this.annotationModule.initialize(),this.bookmarkModule!==void 0&&await this.bookmarkModule.initialize(),this.rights.enableTTS)for(let d of this.iframes){let f=d.contentDocument?.body;this.ttsModule!==void 0&&await this.ttsModule.initialize(f)}return this.timelineModule!==void 0&&await this.timelineModule.initialize(),this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&await this.mediaOverlayModule.initialize(),setTimeout(async()=>{if(this.newElementId){let d=this.iframes[0].contentDocument.getElementById(this.newElementId);this.view?.goToElement?.(d),this.newElementId=void 0}else if(this.newPosition&&this.newPosition.highlight){let d=this.newPosition.highlight?.selectionInfo.rangeInfo.startContainerElementCssSelector;d&&this.view?.goToCssSelector(d)}else t&&t>=0&&this.view?.goToProgression(t);if(this.newPosition=void 0,this.rights?.enableContentProtection&&this.contentProtectionModule!==void 0&&await this.contentProtectionModule.recalculate(10),this.hideLoadingMessage(),this.showIframeContents(),this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays){let d=this.currentLink();await this.mediaOverlayModule?.initializeResource(d)}await this.updatePositionInfo(),await this.view?.setSize(),setTimeout(()=>{this.mediaOverlayModule!==void 0&&(this.mediaOverlayModule.settings.resourceReady=!0)},300)},200),new Promise(d=>d())}catch(t){return Yn.default.error(t),this.abortOnError(t),Promise.reject(t)}}async injectInjectablesIntoIframeHead(){let t=[],n=r=>{let o=new Promise((a,l)=>{r.onload=()=>{a(!0)},r.onerror=u=>{let d=typeof u=="string"?u:`Injectable failed to load at: ${"href"in r?r.href:r.src}`;l(new Error(d))}});t.push(o)};for(let r of this.iframes){let o=r.contentDocument?.head;o&&(r.contentDocument.getElementsByTagName("base").length===0&&o.insertBefore(Ln.createBase(this.currentChapterLink.href),o.firstChild),this.injectables?.forEach(l=>{if(l.type==="style"){if(l.fontFamily){if(this.settings.initAddedFont(),!l.systemFont&&l.url){let u=Ln.createCssLink(l.url);o.appendChild(u),n(u)}}else if(l.r2before&&l.url){let u=Ln.createCssLink(l.url);o.insertBefore(u,o.firstChild),n(u)}else if(l.r2default&&l.url){let u=Ln.createCssLink(l.url);o.insertBefore(u,o.childNodes[1]),n(u)}else if(l.r2after&&l.url){l.appearance&&this.settings.initAddedAppearance();let u=Ln.createCssLink(l.url);o.appendChild(u),n(u)}else if(l.url){let u=Ln.createCssLink(l.url);o.appendChild(u),n(u)}}else if(l.type==="script"&&l.url){let u=Ln.createJavascriptLink(l.url,l.async??!1);o.appendChild(u),n(u)}}))}t.length!==0&&await Promise.all(t)}abortOnError(t){if(this.api?.onError){let n=t instanceof Error?t:typeof t=="string"?new Error(t):new Error("An unknown error occurred in the IFrameNavigator.");this.api.onError(n)}else this.errorMessage&&(this.errorMessage.style.display="block"),this.isLoading&&this.hideLoadingMessage()}tryAgain(){this.precessContentForIframe()}precessContentForIframe(){let t=this;var n=this.publication.getSpineIndex(this.currentChapterLink.href),r=(n??0)%2==1;this.showLoadingMessageAfterDelay();function o(d,f){let p=new DOMParser().parseFromString(d,"application/xhtml+xml");p.head&&p.getElementsByTagName("base").length===0&&p.head.insertBefore(Ln.createBase(f),p.head.firstChild);let E=p.documentElement.outerHTML,S=t.iframes[0].contentDocument;S&&(S.open(),S.write(E),S.close())}function a(d,f){let p=new DOMParser().parseFromString(d,"application/xhtml+xml");p.head&&p.getElementsByTagName("base").length===0&&p.head.insertBefore(Ln.createBase(f),p.head.firstChild);let E=p.documentElement.outerHTML,S=t.iframes[1].contentDocument;S&&(S.open(),S.write(E),S.close())}let l=new URL(this.currentChapterLink.href),u=window.location.protocol===l.protocol&&window.location.port===l.port&&window.location.hostname===l.hostname;if(this.api?.getContent)if(this.publication.isFixedLayout)if(this.settings.columnCount!==1)if(r){if(this.currentSpreadLinks.left={href:this.currentChapterLink.href},this.api?.getContent(this.currentChapterLink.href).then(d=>{d===void 0?u?this.iframes[0].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(f=>f.text()).then(async f=>{o.call(this,f,this.currentChapterLink.href)}):o.call(this,d,this.currentChapterLink.href)}),this.iframes.length===2)if((n??0)<this.publication.readingOrder.length-1){let d=this.publication.getNextSpineItem(this.currentChapterLink.href);if(d){let f=this.publication.getAbsoluteHref(d.Href);this.currentSpreadLinks.right={href:f},this.api?.getContent(f).then(m=>{m===void 0?u?this.iframes[1].src=f:fetch(f,this.requestConfig).then(p=>p.text()).then(async p=>{a.call(this,p,f),this.currentSpreadLinks.right={href:f}}):a.call(this,m,f)})}}else this.iframes[1].src="about:blank"}else{if((n??0)>0){let d=this.publication.getPreviousSpineItem(this.currentChapterLink.href);if(d){let f=this.publication.getAbsoluteHref(d.Href);this.currentSpreadLinks.left={href:f},this.api?.getContent(f).then(m=>{m===void 0?u?this.iframes[0].src=f:fetch(f,this.requestConfig).then(p=>p.text()).then(async p=>{o.call(this,p,f)}):o.call(this,m,f)})}}else this.iframes[0].src="about:blank";this.iframes.length===2&&this.publication.isFixedLayout&&(this.currentSpreadLinks.right={href:this.currentChapterLink.href},this.api.getContent(this.currentChapterLink.href).then(d=>{d===void 0?u?this.iframes[1].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(f=>f.text()).then(async f=>{a.call(this,f,this.currentChapterLink.href)}):a.call(this,d,this.currentChapterLink.href)}))}else this.currentSpreadLinks.left={href:this.currentChapterLink.href},this.api?.getContent(this.currentChapterLink.href).then(d=>{d===void 0?u?this.iframes[0].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(f=>f.text()).then(async f=>{o.call(this,f,this.currentChapterLink.href)}):o.call(this,d,this.currentChapterLink.href)});else this.api?.getContent(this.currentChapterLink.href).then(d=>{this.currentSpreadLinks.left={href:this.currentChapterLink.href},d===void 0?u?this.iframes[0].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(f=>f.text()).then(async f=>{o.call(this,f,this.currentChapterLink.href)}):o.call(this,d,this.currentChapterLink.href)});else if(this.publication.isFixedLayout)if(this.settings.columnCount!==1)if(r){if(u){if(this.iframes[0].src=this.currentChapterLink.href,this.currentSpreadLinks.left={href:this.currentChapterLink.href},this.iframes.length===2)if((n??0)<this.publication.readingOrder.length-1){let d=this.publication.getNextSpineItem(this.currentChapterLink.href);if(d){let f=this.publication.getAbsoluteHref(d.Href);this.iframes[1].src=f,this.currentSpreadLinks.right={href:f}}}else this.iframes[1].src="about:blank"}else if(fetch(this.currentChapterLink.href,this.requestConfig).then(d=>d.text()).then(async d=>{o.call(this,d,this.currentChapterLink.href)}),this.iframes.length===2)if((n??0)<this.publication.readingOrder.length-1){let d=this.publication.getNextSpineItem(this.currentChapterLink.href);if(d){let f=this.publication.getAbsoluteHref(d.Href);this.currentSpreadLinks.right={href:f},fetch(f,this.requestConfig).then(m=>m.text()).then(async m=>{a.call(this,m,f)})}}else this.iframes[1].src="about:blank"}else{if((n??0)>0){let d=this.publication.getPreviousSpineItem(this.currentChapterLink.href);if(d){let f=this.publication.getAbsoluteHref(d.Href);this.currentSpreadLinks.left={href:f},u?(this.iframes[0].src=f,this.iframes.length===2&&(this.iframes[1].src=this.currentChapterLink.href)):(fetch(f,this.requestConfig).then(m=>m.text()).then(async m=>{o.call(this,m,f)}),this.iframes.length===2&&(this.currentSpreadLinks.right={href:this.currentChapterLink.href},fetch(this.currentChapterLink.href,this.requestConfig).then(m=>m.text()).then(async m=>{a.call(this,m,this.currentChapterLink.href)})))}}else this.iframes[0].src="about:blank";this.iframes.length===2&&(this.currentSpreadLinks.right={href:this.currentChapterLink.href},u?this.iframes[1].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(d=>d.text()).then(async d=>{a.call(this,d,this.currentChapterLink.href)}))}else this.currentSpreadLinks.left={href:this.currentChapterLink.href},u?this.iframes[0].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(d=>d.text()).then(async d=>{o.call(this,d,this.currentChapterLink.href)});else this.currentSpreadLinks.left={href:this.currentChapterLink.href},u?this.iframes[0].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(d=>d.text()).then(async d=>{o.call(this,d,this.currentChapterLink.href)});this.publication.isFixedLayout&&setTimeout(()=>{let d,f,m;if(n===0&&this.iframes?.length===2?m=this.iframes[1].contentDocument:m=this.iframes[0].contentDocument,m&&m.body&&(d=getComputedStyle(m.body).height,f=getComputedStyle(m.body).width,parseInt(d?.replace("px",""))===0||parseInt(f?.replace("px",""))===0)){let w=Qt(m,"head");if(w){let O=de(w,"meta[name=viewport]");if(O){var p=O.content,E=p.split(",").reduce((T,C)=>{var[_,P]=C.match(/[^\s;=]+/g);return T[_]=isNaN(Number(P))?P:+P,T},{});d=E.height+"px",f=E.width+"px"}}}var S=n===0&&this.iframes.length===2?this.iframes[1].parentElement?.parentElement:this.iframes[0].parentElement?.parentElement;if(S&&f){var v=(parseInt(getComputedStyle(S).width)-100)/(this.iframes.length===2?parseInt(f?.replace("px",""))*2+200:parseInt(f?.replace("px",""))),y=(parseInt(getComputedStyle(S).height)-100)/parseInt(d?.replace("px","")),b=Math.min(v,y);S.style.transform="scale("+b+")";for(let w of this.iframes)w.style.height=d,w.style.width=f,w.parentElement&&(w.parentElement.style.height=d)}},400)}static goBack(){window.history.back()}handleEditClick(t){var n=t.target;if(this.headerMenu){var r=de(document,".sidenav");n.className.indexOf(" active")===-1?(n.className+=" active",r.className+=" expanded",n.innerText="unfold_less",this.sideNavExpanded=!0,this.bookmarkModule?.showBookmarks(),this.annotationModule?.showHighlights()):(n.className=n.className.replace(" active",""),r.className=r.className.replace(" expanded",""),n.innerText="unfold_more",this.sideNavExpanded=!1,this.bookmarkModule?.showBookmarks(),this.annotationModule?.showHighlights())}t.preventDefault(),t.stopPropagation()}get hasMediaOverlays(){return this.publication.hasMediaOverlays}startReadAloud(){this.rights.enableTTS&&this.ttsModule.speakPlay()}startReadAlong(){this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&this.mediaOverlayModule?.startReadAloud()}stopReadAloud(){this.rights.enableTTS&&this.highlighter?.stopReadAloud()}stopReadAlong(){this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&this.mediaOverlayModule?.stopReadAloud()}pauseReadAloud(){this.rights.enableTTS&&(this.ttsModule.speakPause(),this.annotationModule!==void 0&&this.annotationModule.drawHighlights())}pauseReadAlong(){this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&this.mediaOverlayModule?.pauseReadAloud()}resumeReadAloud(){this.rights.enableTTS&&this.ttsModule.speakResume()}resumeReadAlong(){this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&this.mediaOverlayModule?.resumeReadAloud()}totalResources(){return this.publication.readingOrder.length}mostRecentNavigatedTocItem(){return this.publication.getRelativeHref(this.currentTOCRawLink)}currentResource(){let t=this.currentChapterLink.href;return this.publication.getSpineIndex(t)}currentLink(){if(this.settings.columnCount!==1&&this.currentSpreadLinks.left!==void 0&&this.currentSpreadLinks.right!==void 0){let n=this.publication.getSpineItem(this.currentSpreadLinks.left.href),r=this.publication.getSpineItem(this.currentSpreadLinks.right.href);return[n,r]}let t=this.currentChapterLink.href;return[this.publication.getSpineItem(t)]}tableOfContents(){return this.publication.tableOfContents}readingOrder(){return this.publication.readingOrder}atStart(){return this.view?.atStart()??!1}atEnd(){return this.view?.atEnd()??!1}previousPage(){this.handlePreviousPageClick(void 0)}nextPage(){this.handleNextPageClick(void 0)}previousResource(){this.handlePreviousChapterClick(void 0)}nextResource(){this.handleNextChapterClick(void 0)}goTo(t){let n=t.locations??{progression:0};if(t.href.indexOf("#")!==-1){let a=t.href.slice(t.href.indexOf("#")+1);a!==void 0&&(n=jt(Fe({},n),{fragment:a}))}let r=Fe({},t);r.locations=n;let o=this.publication.getAbsoluteHref(t.href);Yn.default.log(t.href),Yn.default.log(o),r.href=o,this.stopReadAloud(),this.navigate(r)}currentLocator(){let t;if(this.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions){let n=this.publication.positionsByHref(this.publication.getRelativeHref(this.currentChapterLink.href)),r=Math.ceil((this.view?.getCurrentPosition()??0)*(n.length-1));t=n[r]}else{let n=this.publication.getTOCItem(this.currentChapterLink.href);n&&(this.currentTocUrl!==void 0&&(n=this.publication.getTOCItem(this.currentTocUrl)),n===void 0&&(n=this.publication.getTOCItemAbsolute(this.currentChapterLink.href)),n&&(t={href:n.Href,type:this.currentChapterLink.type,title:this.currentChapterLink.title,locations:{}}))}return t&&(t.locations.progression=this.view?.getCurrentPosition(),t.displayInfo={resourceScreenIndex:Math.round(this.view?.getCurrentPage()??0),resourceScreenCount:Math.round(this.view?.getPageCount()??0)}),t}positions(){return this.publication.positions?this.publication.positions:[]}goToPosition(t){if(this.publication.positions){let n=this.publication.positions.filter(r=>r.locations.position===parseInt(String(t)))[0];this.goTo(n)}}async goToPage(t){this.pageBreakModule!==void 0&&await this.pageBreakModule.goToPageNumber(t)}snapToSelector(t){let n=this.iframes[0].contentDocument;if(n){Yn.default.log(t);let r=n.querySelectorAll(t);r.length>0&&this.view?.snap(r[0])}}applyAttributes(t){this.attributes=t,this.view.attributes=t,this.handleResize()}handlePreviousPageClick(t){this.stopReadAloud(),this.view?.layout==="fixed"?this.handlePreviousChapterClick(t):(this.view?.atStart()?this.handlePreviousChapterClick(t):(this.view?.goToPreviousPage?.(),this.updatePositionInfo(),this.savePosition()),t&&(t.preventDefault(),t.stopPropagation()))}handleNextPageClick(t){let n=!0;if(this.sample?.isSampleRead&&this.publication.positions){let r=this.currentLocator(),o=Math.round((r.locations.totalProgression??0)*100);this.sample?.limit&&(n=o<=this.sample?.limit,this.view?.layout==="fixed"&&((!n&&this.sample?.minimum&&r.locations.position)??0<=(this.sample?.minimum??0))&&(n=!0))}(n&&this.sample?.isSampleRead&&this.publication.positions||!this.sample?.isSampleRead||!this.publication.positions)&&(this.stopReadAloud(),this.view?.layout==="fixed"?this.handleNextChapterClick(t):(this.view?.atEnd()?this.handleNextChapterClick(t):(this.view?.goToNextPage?.(),this.updatePositionInfo(),this.savePosition()),t&&(t.preventDefault(),t.stopPropagation()))),!n&&this.sample?.isSampleRead&&this.publication.positions&&t&&(t.preventDefault(),t.stopPropagation())}handleClickThrough(t){}handleInternalLink(t){let n=t.target,r={progression:0},o=n;if(o.href.indexOf("#")!==-1){let l=o.href.slice(o.href.indexOf("#")+1);l!==void 0&&(r={fragment:l})}let a={href:o.href,locations:r,type:o.type,title:o.title};t.preventDefault(),t.stopPropagation(),this.stopReadAloud(),this.navigate(a)}handleNumberOfIframes(){if(this.publication.isFixedLayout){if(this.settings.columnCount!==1&&!window.matchMedia("screen and (max-width: 600px)").matches){if(this.iframes.length===1){var t=document.createElement("iframe");t.setAttribute("SCROLLING","no"),t.setAttribute("allowtransparency","true"),t.style.opacity="1",t.style.border="none",t.style.overflow="hidden",this.iframes.push(t)}let n=document.createElement("div");this.spreads.appendChild(n),n.appendChild(this.iframes[1]),this.firstSpread.style.clipPath="polygon(0% -20%, 100% -20%, 100% 120%, -20% 120%)",this.firstSpread.style.boxShadow="0 0 8px 2px #ccc",n.style.clipPath="polygon(0% -20%, 100% -20%, 120% 100%, 0% 120%)",n.style.boxShadow="0 0 8px 2px #ccc"}else this.iframes.length===2&&(this.iframes.pop(),this.spreads.lastChild&&this.spreads.removeChild(this.spreads.lastChild)),this.firstSpread.style.clipPath="polygon(0% -20%, 100% -20%, 120% 100%, -20% 120%)",this.firstSpread.style.boxShadow="0 0 8px 2px #ccc";this.precessContentForIframe()}}async handleResize(){if(this.isScrolling)return;if(this.publication.isFixedLayout){var t=this.publication.getSpineIndex(this.currentChapterLink.href);let f=$r()-40-(this.attributes?.margin??0);var n=t===0&&this.iframes.length===2?this.iframes[1].parentElement?.parentElement:this.iframes[0].parentElement?.parentElement;if(n){n.style.height=f+40+"px";let m,p,E;t===0&&this.iframes?.length===2?E=this.iframes[1].contentDocument:E=this.iframes[0].contentDocument,E&&E.body&&(m=getComputedStyle(E.body).height,p=getComputedStyle(E.body).width);let S=Qt(E,"head");if(S){let v=de(S,"meta[name=viewport]");if(v){var r=v.content,o=r.split(",").reduce((y,b)=>{var[w,O]=b.match(/[^\s;=]+/g);return y[w]=isNaN(Number(O))?O:+O,y},{});(parseInt(o.height)!==0||parseInt(o.width)!==0)&&(m=o.height+"px",p=o.width+"px")}}var a=(parseInt(getComputedStyle(n).width)-100)/(this.iframes.length===2?parseInt(p?.replace("px",""))*2+200:parseInt(p?.replace("px",""))),l=(parseInt(getComputedStyle(n).height)-100)/parseInt(m?.replace("px","")),u=Math.min(a,l);n.style.transform="scale("+u+")";for(let v of this.iframes)v.style.height=m,v.style.width=p,v.parentElement&&(v.parentElement.style.height=m)}}let d=this.view?.getCurrentPosition();await this.settings.applyProperties(),this.infoTop&&(this.infoTop.style.height=0+"px"),this.infoTop&&(this.infoTop.style.minHeight=0+"px"),this.infoBottom&&(this.infoBottom.style.height=this.attributes?.bottomInfoHeight?this.attributes.bottomInfoHeight+"px":40+"px"),this.view?.layout!=="fixed"&&this.settings.isPaginated().then(f=>{f?(this.view.height=$r()-40-(this.attributes?.margin??0),this.infoBottom&&this.infoBottom.style.removeProperty("display")):this.infoBottom&&(this.infoBottom.style.display="none")}),setTimeout(()=>{this.view?.layout!=="fixed"&&this.view?.isScrollMode()&&this.view?.setIframeHeight?.(this.iframes[0])},100),setTimeout(async()=>{d&&this.view?.goToProgression(d),await this.updatePositionInfo(!1),this.annotationModule!==void 0&&await this.annotationModule.handleResize(),this.bookmarkModule!==void 0&&await this.bookmarkModule.handleResize(),this.searchModule!==void 0&&await this.searchModule.handleResize(),this.definitionsModule!==void 0&&await this.definitionsModule.handleResize(),this.pageBreakModule!==void 0&&await this.pageBreakModule.handleResize(),this.contentProtectionModule!==void 0&&this.contentProtectionModule.handleResize(),this.lineFocusModule!==void 0&&this.lineFocusModule.handleResize(),this.historyModule!==void 0&&this.historyModule.handleResize()},150)}updatePositionInfo(t=!0){if(this.view?.layout==="fixed")this.chapterPosition&&(this.chapterPosition.innerHTML=""),this.remainingPositions&&(this.remainingPositions.innerHTML="");else if(this.view?.isPaginated()){let n=this.currentLocator();if(n){let r=n.displayInfo.resourceScreenIndex,o=n.displayInfo.resourceScreenCount;this.chapterPosition&&(this.chapterPosition.innerHTML="Page "+r+" of "+o)}}else this.chapterPosition&&(this.chapterPosition.innerHTML=""),this.remainingPositions&&(this.remainingPositions.innerHTML="");t&&this.savePosition()}handlePreviousChapterClick(t){if(this.view?.layout==="fixed"&&this.settings.columnCount!==1){let n=this.publication.getSpineIndex(this.currentChapterLink.href)??0;n=n-2,n<0&&(n=0);let r=this.publication.readingOrder[n],o={href:this.publication.getAbsoluteHref(r.Href),locations:{progression:0},type:r.TypeLink,title:r.Title};this.stopReadAloud(),this.navigate(o)}else if(this.previousChapterLink){let n={href:this.publication.getAbsoluteHref(this.previousChapterLink.href),locations:{progression:1},type:this.previousChapterLink.type,title:this.previousChapterLink.title};this.stopReadAloud(),this.navigate(n)}t&&(t.preventDefault(),t.stopPropagation())}handleNextChapterClick(t){if(this.view?.layout==="fixed"&&this.settings.columnCount!==1){let n=this.publication.getSpineIndex(this.currentChapterLink.href)??0;n=n+2,n>=this.publication.readingOrder.length-1&&(n=this.publication.readingOrder.length-1);let r=this.publication.readingOrder[n],o={href:this.publication.getAbsoluteHref(r.Href),locations:{progression:0},type:r.TypeLink,title:r.Title};this.stopReadAloud(),this.navigate(o)}else if(this.nextChapterLink){let n={href:this.publication.getAbsoluteHref(this.nextChapterLink.href),locations:{progression:0},type:this.nextChapterLink.type,title:this.nextChapterLink.title};this.stopReadAloud(),this.navigate(n)}t&&(t.preventDefault(),t.stopPropagation())}hideView(){this.view?.layout!=="fixed"&&this.view?.isScrollMode()&&(document.body.style.overflow="auto")}setActiveTOCItem(t){if(this.tocView){let n=Array.prototype.slice.call(this.tocView.querySelectorAll("li > a"));for(let o of n)o.className=o.className.replace(" active","");let r=this.tocView.querySelector('li > a[href^="'+t+'"]');r&&(r.className+=" active")}}async navigate(t,n=!0){if(this.historyModule&&this.historyModule.push(t,n),this.publication.getTOCItem(t.href)){var o=!1;if(t.href.indexOf("#")!==-1){let a=t.href.slice(0,t.href.indexOf("#"));a===this.currentChapterLink.href&&(o=!0),this.currentChapterLink.href=a,this.currentChapterLink.type=t.type,this.currentChapterLink.title=t.title}else t.href===this.currentChapterLink.href&&(o=!0),this.currentChapterLink.href=t.href,this.currentChapterLink.type=t.type,this.currentChapterLink.title=t.title;if(this.currentSpreadLinks.left!==void 0&&this.currentSpreadLinks.right!==void 0&&(t.href===this.currentSpreadLinks.left.href||t.href===this.currentSpreadLinks.right.href))return;if(o){if(t.href.indexOf("#")!==-1){let m=t.href.slice(t.href.indexOf("#")+1);t.locations={fragment:m}}if(this.newPosition=t,this.currentTOCRawLink=t.href,t.locations.fragment===void 0?this.currentTocUrl=void 0:(this.newElementId=t.locations.fragment,this.currentTocUrl=this.currentChapterLink.href+"#"+this.newElementId),this.newElementId){for(let m of this.iframes){let p=m.contentDocument.getElementById(this.newElementId);this.view?.goToElement?.(p)}this.newElementId=void 0}else if(t.highlight){let m=t.highlight?.selectionInfo.rangeInfo.startContainerElementCssSelector;m&&this.view?.goToCssSelector(m)}else this.view?.goToProgression(t.locations.progression??0);let a=this.currentChapterLink.href,l=this.publication.getPreviousSpineItem(a);l&&l.Href&&(this.previousChapterLink={href:l.Href,type:l.TypeLink,title:l.Title}),this.previousChapterAnchorElement&&(this.previousChapterLink?(this.previousChapterAnchorElement.href=this.publication.getAbsoluteHref(this.previousChapterLink.href),this.previousChapterAnchorElement.className=this.previousChapterAnchorElement.className.replace(" disabled","")):(this.previousChapterAnchorElement.removeAttribute("href"),this.previousChapterAnchorElement.className+=" disabled"));let u=this.publication.getNextSpineItem(a);u?this.nextChapterLink={href:u.Href,type:u.TypeLink,title:u.Title}:this.nextChapterLink=void 0,this.nextChapterAnchorElement&&(this.nextChapterLink?(this.nextChapterAnchorElement.href=this.publication.getAbsoluteHref(this.nextChapterLink.href),this.nextChapterAnchorElement.className=this.nextChapterAnchorElement.className.replace(" disabled","")):(this.nextChapterAnchorElement.removeAttribute("href"),this.nextChapterAnchorElement.className+=" disabled")),this.currentTocUrl!==void 0?this.setActiveTOCItem(this.currentTocUrl):this.setActiveTOCItem(a),this.publication.Metadata.Title&&this.bookTitle&&(this.bookTitle.innerHTML=this.publication.Metadata.Title.toString());let d=this.publication.getSpineItem(a);d!==void 0&&(this.currentChapterLink.title=d.Title,this.currentChapterLink.type=d.TypeLink);let f=this.publication.getTOCItem(a);this.currentTocUrl!==void 0&&(f=this.publication.getTOCItem(this.currentTocUrl)),!this.currentChapterLink.title&&f!==void 0&&f.Title&&(this.currentChapterLink.title=f.Title),!this.currentChapterLink.type&&f!==void 0&&f.TypeLink&&(this.currentChapterLink.title=f.Title),this.currentChapterLink.title?this.chapterTitle&&(this.chapterTitle.innerHTML="("+this.currentChapterLink.title+")"):this.chapterTitle&&(this.chapterTitle.innerHTML="(Current Chapter)"),await this.updatePositionInfo()}else this.lineFocusModule!==void 0&&this.lineFocusModule.disableLineFocus(!1),this.searchModule!==void 0&&this.searchModule.clearSearch(),t.locations.fragment===void 0?this.currentTocUrl=void 0:(this.newElementId=t.locations.fragment,this.currentTocUrl=this.currentChapterLink.href+"#"+this.newElementId),this.hideIframeContents(),this.showLoadingMessageAfterDelay(),t.locations===void 0&&(t.locations={progression:0}),this.newPosition=t,this.currentTOCRawLink=t.href,this.precessContentForIframe(),this.rights.enableContentProtection&&this.contentProtectionModule!==void 0&&await this.contentProtectionModule.initializeResource(),this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&await this.mediaOverlayModule.initializeResource(this.currentLink()),this.rights.enableContentProtection&&this.contentProtectionModule!==void 0&&this.contentProtectionModule.recalculate(300),this.annotationModule!==void 0&&(await this.annotationModule.drawHighlights(),await this.annotationModule.showHighlights()),this.bookmarkModule!==void 0&&(await this.bookmarkModule.drawBookmarks(),await this.bookmarkModule.showBookmarks()),this.pageBreakModule!==void 0&&(await this.highlighter?.destroyHighlights(qe.PageBreak),await this.pageBreakModule.drawPageBreaks()),this.rights.enableSearch&&this.searchModule!==void 0&&this.highlighter!==void 0&&(await this.highlighter.destroyHighlights(qe.Search),this.searchModule.drawSearch()),this.rights.enableDefinitions&&this.definitionsModule!==void 0&&this.highlighter!==void 0&&this.definitionsModule.drawDefinitions(),this.view?.layout==="fixed"?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.api?.resourceFitsScreen&&this.api?.resourceFitsScreen(),this.emit("resource.fits")):this.settings.isPaginated().then(a=>{a||(this.view?.atStart()&&this.view?.atEnd()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):this.view?.atEnd()?(this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset")):this.view?.atStart()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none")))})}else{let a=this.publication.getStartLink(),l;if(a&&a.Href&&(l=this.publication.getAbsoluteHref(a.Href),l)){let u={href:l,locations:{progression:0},created:new Date,title:a.Title};await this.navigate(u)}}}showIframeContents(){this.isBeingStyled=!1,setTimeout(()=>{this.isBeingStyled||this.iframes.forEach(t=>{t.style.opacity="1",t.style.border="none",t.style.overflow="hidden"})},150)}showLoadingMessageAfterDelay(){this.isLoading=!0,this.isLoading&&this.loadingMessage&&(this.loadingMessage.style.display="block",this.loadingMessage.classList.add("is-loading")),this.mediaOverlayModule!==void 0&&(this.mediaOverlayModule.settings.resourceReady=!1)}hideIframeContents(){this.isBeingStyled=!0,this.iframes.forEach(t=>{t.style.opacity="0",t.style.border="none",t.style.overflow="hidden"})}hideLoadingMessage(){setTimeout(()=>{this.isLoading=!1,this.loadingMessage&&(this.loadingMessage.style.display="none",this.loadingMessage.classList.remove("is-loading")),this.view?.layout!=="fixed"&&(this.view?.atStart()&&this.view?.atEnd()?(this.api?.resourceFitsScreen&&this.api?.resourceFitsScreen(),this.emit("resource.fits")):this.view?.atEnd()?(this.api?.resourceAtEnd&&this.api?.resourceAtEnd(),this.emit("resource.end")):this.view?.atStart()&&(this.api?.resourceAtStart&&this.api?.resourceAtStart(),this.emit("resource.start"))),this.api?.resourceReady&&this.api?.resourceReady(),this.emit("resource.ready")},150)}saveCurrentReadingPosition(){if(this.annotator){var t=this.publication.getTOCItem(this.currentChapterLink.href);this.currentTocUrl!==void 0&&(t=this.publication.getTOCItem(this.currentTocUrl)),t===void 0&&(t=this.publication.getTOCItemAbsolute(this.currentChapterLink.href));let n={progression:this.view?.getCurrentPosition()};if(t){if(t.Href.indexOf("#")!==-1){let o=t.Href.slice(t.Href.indexOf("#")+1);o!==void 0&&(n={progression:this.view?.getCurrentPosition(),fragment:o})}let r;if(this.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions){let o=this.publication.positionsByHref(this.publication.getRelativeHref(t.Href));if(o.length>0){let a=Math.ceil((n.progression??0)*(o.length-1)),l=o[a];l&&(l.locations.fragment=n.fragment,r=jt(Fe({},l),{href:t.Href,created:new Date,title:this.currentChapterLink.title}))}}else r={href:t.Href,locations:n,created:new Date,type:this.currentChapterLink.type,title:this.currentChapterLink.title};r&&(this.sample?.isSampleRead&&this.publication.positions&&this.sampleReadEventHandler?.enforceSampleRead(r),this.api?.updateCurrentLocation?this.api?.updateCurrentLocation(r).then(async o=>(Yn.default.log("api updated current location",r),this.annotator?.saveLastReadingPosition(r))):(Yn.default.log("save last reading position",r),this.annotator.saveLastReadingPosition(r)))}}}static createBase(t){let n=document.createElement("base");return n.target="_self",n.href=t,n}static createCssLink(t){let n=document.createElement("link");return n.rel="stylesheet",n.type="text/css",n.href=t,n}static createJavascriptLink(t,n){let r=document.createElement("script");return r.type="text/javascript",r.src=t,r.async=n,r}activateMarker(t,n){this.annotationModule!==void 0&&(this.annotationModule.activeAnnotationMarkerId===void 0||this.annotationModule.activeAnnotationMarkerId!==t?(this.annotationModule.activeAnnotationMarkerId=t,this.annotationModule.activeAnnotationMarkerPosition=n,this.highlighter&&(this.highlighter.activeAnnotationMarkerId=t)):this.deactivateMarker())}deactivateMarker(){this.annotationModule!==void 0&&(this.annotationModule.activeAnnotationMarkerId=void 0,this.annotationModule.activeAnnotationMarkerPosition=void 0,this.highlighter&&(this.highlighter.activeAnnotationMarkerId=void 0))}showLayer(t){let n="#",r=new xa("layer-on","layer-off",!0,t,"layer-"+t);switch(t){case"annotations":case"highlights":n+=Me.R2_ID_HIGHLIGHTS_CONTAINER,r.name=Me.R2_ID_HIGHLIGHTS_CONTAINER;break;case"readaloud":n+=Me.R2_ID_READALOUD_CONTAINER,r.name=Me.R2_ID_READALOUD_CONTAINER;break;case"pagebreak":n+=Me.R2_ID_PAGEBREAK_CONTAINER,r.name=Me.R2_ID_PAGEBREAK_CONTAINER;break;case"search":n+=Me.R2_ID_SEARCH_CONTAINER,r.name=Me.R2_ID_SEARCH_CONTAINER;break;case"definitions":n+=Me.R2_ID_DEFINITIONS_CONTAINER,r.name=Me.R2_ID_DEFINITIONS_CONTAINER;break}this.highlighter?.layerSettings.saveProperty(r);let o=this.iframes[0].contentDocument;if(o){let a=de(o,n);a&&(a.style.display="block")}}hideLayer(t){let n="#",r=new xa("layer-on","layer-off",!1,t,"layer-"+t);switch(t){case"annotations":case"highlights":n+=Me.R2_ID_HIGHLIGHTS_CONTAINER,r.name=Me.R2_ID_HIGHLIGHTS_CONTAINER;break;case"readaloud":n+=Me.R2_ID_READALOUD_CONTAINER,r.name=Me.R2_ID_READALOUD_CONTAINER;break;case"pagebreak":n+=Me.R2_ID_PAGEBREAK_CONTAINER,r.name=Me.R2_ID_PAGEBREAK_CONTAINER;break;case"search":n+=Me.R2_ID_SEARCH_CONTAINER,r.name=Me.R2_ID_SEARCH_CONTAINER;break;case"definitions":n+=Me.R2_ID_DEFINITIONS_CONTAINER,r.name=Me.R2_ID_DEFINITIONS_CONTAINER;break}this.highlighter?.layerSettings.saveProperty(r);let o=this.iframes[0].contentDocument;if(o){let a=de(o,n);a&&(a.style.display="none")}}};A();var yt=class{constructor(t){this.store=t.store}getLastReadingPosition(){let t=this.store.get(yt.LAST_READING_POSITION);return t?JSON.parse(t):null}initLastReadingPosition(t){if(typeof t=="string")this.store.set(yt.LAST_READING_POSITION,t);else{let n=JSON.stringify(t);this.store.set(yt.LAST_READING_POSITION,n)}}saveLastReadingPosition(t){if(typeof t=="string")this.store.set(yt.LAST_READING_POSITION,t);else{let n=JSON.stringify(t);this.store.set(yt.LAST_READING_POSITION,n)}}initBookmarks(t){if(typeof t=="string"){let n=JSON.parse(t);this.store.set(yt.BOOKMARKS,JSON.stringify(n))}else this.store.set(yt.BOOKMARKS,JSON.stringify(t));return t}saveBookmark(t){let n=this.store.get(yt.BOOKMARKS);if(n){let r=JSON.parse(n);r.push(t),this.store.set(yt.BOOKMARKS,JSON.stringify(r))}else{let r=[];r.push(t),this.store.set(yt.BOOKMARKS,JSON.stringify(r))}return t}locatorExists(t,n){let r;switch(n){case fr.Bookmark:r=yt.BOOKMARKS;break}let o=this.store.get(r);return o&&JSON.parse(o).filter(u=>u.href===t.href&&u.locations.progression===t.locations.progression).length>0?t:null}deleteBookmark(t){let n=this.store.get(yt.BOOKMARKS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.id!==t.id),this.store.set(yt.BOOKMARKS,JSON.stringify(r))}return t}getBookmarks(t){let n=this.store.get(yt.BOOKMARKS);if(n){let r=JSON.parse(n);if(t){let o=r.filter(a=>a.href===t);return o=o.sort((a,l)=>{if(a.locations.progression&&l.locations.progression)return a.locations.progression-l.locations.progression}),o}return r=r.sort((o,a)=>{if(o.locations.progression&&a.locations.progression)return o.locations.progression-a.locations.progression}),r}return[]}initAnnotations(t){let n;typeof t=="string"?n=JSON.parse(t):n=t;let r=[];return n.forEach(o=>{let a=`${o.highlight.selectionInfo.rangeInfo.startContainerElementCssSelector}${o.highlight.selectionInfo.rangeInfo.startContainerChildTextNodeIndex}${o.highlight.selectionInfo.rangeInfo.startOffset}${o.highlight.selectionInfo.rangeInfo.endContainerElementCssSelector}${o.highlight.selectionInfo.rangeInfo.endContainerChildTextNodeIndex}${o.highlight.selectionInfo.rangeInfo.endOffset}`,l=Cr.hash(a);o.highlight.id="R2_HIGHLIGHT_"+l;let u;o.highlight.color?u=o.highlight.color:o.color&&(u=o.color),De.isHexColor(u)&&(u=De.hexToRgbString(u)),o.highlight.color=u,o.highlight.pointerInteraction=!0,o.highlight.selectionInfo.cleanText=o.highlight.selectionInfo.rawText.trim().replace(/\n/g," ").replace(/\s\s+/g," "),r.push(o)}),this.store.set(yt.ANNOTATIONS,JSON.stringify(r)),r}saveTemporarySelectionInfo(t){this.store.set(yt.SELECTIONINFO,JSON.stringify(t))}getTemporarySelectionInfo(t){let n=this.store.get(yt.SELECTIONINFO);if(n){let r=JSON.parse(n);return r.range=vd(t,r.rangeInfo),r}return[]}deleteTemporarySelectionInfo(){this.store.remove(yt.SELECTIONINFO)}saveAnnotation(t){let n=this.store.get(yt.ANNOTATIONS);if(n){let r=JSON.parse(n);r.push(t),this.store.set(yt.ANNOTATIONS,JSON.stringify(r))}else{let r=[];r.push(t),this.store.set(yt.ANNOTATIONS,JSON.stringify(r))}return t}deleteAnnotation(t){let n=this.store.get(yt.ANNOTATIONS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.id!==t),this.store.set(yt.ANNOTATIONS,JSON.stringify(r))}return t}deleteSelectedAnnotation(t){let n=this.store.get(yt.ANNOTATIONS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.highlight?.id!==t.highlight.id),this.store.set(yt.ANNOTATIONS,JSON.stringify(r))}return t}getAnnotations(){let t=this.store.get(yt.ANNOTATIONS);if(t){let n=JSON.parse(t);return n=n.sort((r,o)=>{if(r.locations.progression&&o.locations.progression)return r.locations.progression-o.locations.progression}),n}return[]}getAnnotationPosition(t,n){let r=this.store.get(yt.ANNOTATIONS);if(r){let a=JSON.parse(r).filter(l=>l.highlight?.id===t||l.id===t);if(a.length>0){let l=n.document.getElementById(`${a[0].highlight.id}`);if(l){let u=0;if(l.hasChildNodes)for(let d=0;d<l.childNodes.length;d++){let f=l.childNodes[d],m=parseInt(f.style.top.replace("px",""));(m<u||u===0)&&(u=m)}else u=parseInt(l.style.top.replace("px",""));return u}}}return null}getAnnotationElement(t,n){let r=this.store.get(yt.ANNOTATIONS);if(r){let a=JSON.parse(r).filter(l=>l.highlight?.id===t);if(a.length>0){let l=n.document.getElementById(`${a[0].highlight.id}`);if(l){let u=0;if(l.hasChildNodes)for(let d=0;d<l.childNodes.length;d++){let f=l.childNodes[d],m=parseInt(f.style.top.replace("px",""));if(m<u||u===0)return u=m,f}else u=parseInt(l.style.top.replace("px",""));return l}}}return null}getAnnotation(t){let n=this.store.get(yt.ANNOTATIONS);if(n){let o=JSON.parse(n).filter(a=>a.highlight?.id===t.id);if(o.length>0)return o[0]}return null}getAnnotationByID(t){let n=this.store.get(yt.ANNOTATIONS);if(n){let o=JSON.parse(n).filter(a=>a.highlight?.id===t);if(o.length>0)return o[0]}return null}},uo=yt;uo.LAST_READING_POSITION="last-reading-position",uo.BOOKMARKS="bookmarks",uo.ANNOTATIONS="annotations",uo.SELECTIONINFO="selectionInfo";A();A();var Wd=class{constructor(){this.store={}}get(t){return this.store[t]||null}set(t,n){this.store[t]=n}remove(t){this.store[t]=null}};var Ys=class{constructor(t){this.prefix=t.prefix,this.useLocalStorage=t.useLocalStorage;try{let n=t.prefix+"-"+String(Math.random());this.useLocalStorage?(window.localStorage.setItem(n,"test"),window.localStorage.removeItem(n)):(window.sessionStorage.setItem(n,"test"),window.sessionStorage.removeItem(n)),this.fallbackStore=null}catch(n){this.fallbackStore=new Wd}}getLocalStorageKey(t){return this.prefix+"-"+t}get(t){let n;return this.fallbackStore?n=this.fallbackStore.get(t):this.useLocalStorage?n=window.localStorage.getItem(this.getLocalStorageKey(t)):n=window.sessionStorage.getItem(this.getLocalStorageKey(t)),n}set(t,n){this.fallbackStore?this.fallbackStore.set(t,n):this.useLocalStorage?window.localStorage.setItem(this.getLocalStorageKey(t),n):window.sessionStorage.setItem(this.getLocalStorageKey(t),n)}remove(t){this.fallbackStore?this.fallbackStore.remove(t):this.useLocalStorage?window.localStorage.removeItem(this.getLocalStorageKey(t)):window.sessionStorage.removeItem(this.getLocalStorageKey(t))}};A();var P3=Je(va()),I3=Je(Rn());var sl=class extends P3.Link{};sl=ac([(0,I3.JsonObject)()],sl);function al(i){let t,n,r,o;if(i instanceof Array)return i.map(function(a){return typeof a=="object"&&(a=al(a)),a});t={};for(n in i)i.hasOwnProperty(n)&&(r=(n.charAt(0).toLowerCase()+n.slice(1)||n).toString(),o=i[n],(o instanceof Array||o!==null&&o.constructor===Object)&&(o=al(o)),r==="href1"?t.href=o:r==="typeLink"?t.type=o:t[r]=o);return t}A();var L3=Je(Dt()),ig=class{constructor(t){this.LAYERSETTINGS="layerSetting";this.store=t,this.initialize()}static async create(t){let n=new this(t.store);return new Promise(r=>r(n))}async stop(){L3.default.log("MediaOverlay settings stop")}async initialize(){this.userProperties=await this.getLayerSettings()}async getLayerSettings(){let t=new xi,n=await this.store.get(this.LAYERSETTINGS);if(n){let r=JSON.parse(n);t.properties=r}return t}async saveProperty(t){let n=await this.store.get(this.LAYERSETTINGS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.name!==t.name),r.push(t),await this.store.set(this.LAYERSETTINGS,JSON.stringify(r))}else{let r=[];r.push(t),await this.store.set(this.LAYERSETTINGS,JSON.stringify(r))}return new Promise(r=>r(t))}async getProperty(t){let n=await this.store.get(this.LAYERSETTINGS);if(n){let r=JSON.parse(n);return r=r.filter(o=>o.name===t),r.length===0?null:r[0]}return null}};A();var ll=Je(Dt()),og=class{static async create(t){let n=new this(t.delegate,t.publication,t,t.headerMenu);return await n.start(),n}constructor(t,n,r,o){this.headerMenu=o,this.delegate=t,this.publication=n,this.properties=r}async stop(){ll.default.log("Page Break module stop")}async start(){this.delegate.pageBreakModule=this,this.headerMenu&&(this.goToPageView=de(this.headerMenu,"#sidenav-section-gotopage")),this.headerMenu&&(this.goToPageNumberInput=de(this.headerMenu,"#goToPageNumberInput")),this.headerMenu&&(this.goToPageNumberButton=de(this.headerMenu,"#goToPageNumberButton")),Z(this.goToPageNumberInput,"keypress",this.goToPageNumber.bind(this)),Z(this.goToPageNumberButton,"click",this.goToPageNumber.bind(this)),this.goToPageView&&(this.publication.pageList?.length||this.goToPageView.parentElement?.removeChild(this.goToPageView)),setTimeout(()=>{this.properties.hideLayer?this.delegate.hideLayer("pagebreak"):this.delegate.showLayer("pagebreak")},10)}async goToPageNumber(t){if(this.goToPageNumberInput.value&&(t.key==="Enter"||t.type==="click")){var n=this.publication.pageList?.filter(o=>o.Href.slice(o.Href.indexOf("#")+1).replace(/[^0-9]/g,"")===this.goToPageNumberInput.value);if(n&&n.length>0){var r=n[0];let o={progression:0};if(r.Href.indexOf("#")!==-1){let l=r.Href.slice(r.Href.indexOf("#")+1);l!==null&&(o={fragment:l})}let a={href:this.publication.getAbsoluteHref(r.Href),locations:o,type:r.TypeLink,title:r.Title};this.delegate.goTo(a)}}}async handleResize(){await this.delegate.highlighter?.destroyHighlights(qe.PageBreak),await this.drawPageBreaks()}async drawPageBreaks(){setTimeout(()=>{let t=this.delegate.iframes[0].contentDocument?.body,n=t?.querySelectorAll('[*|type="pagebreak"]');n?.length===0&&(n=t?.querySelectorAll("[epub\\:type='pagebreak']"));let r=this;function o(a){try{let l=r.delegate.iframes[0].contentDocument;return l?ln(a,l,ro):""}catch(l){return ll.default.log("uniqueCssSelector:"),ll.default.error(l),""}}if(n)for(let a=0;a<n.length;a++){let l=n[a];ll.default.log(l);let u=l.innerHTML,d=!1;l.innerHTML.length===0&&(u=l.getAttribute("title")??"",l.innerHTML=u,d=!0),l.innerHTML.length===0&&(u=(l.getAttribute("id")??"").replace(/[^0-9]/g,""),l.innerHTML=u,d=!0);let f=this.delegate.iframes[0].contentDocument;if(f){let m=this.delegate.highlighter?.dom(f.body).getWindow().document.createRange(),p=this.delegate.highlighter?.dom(f.body).getSelection();if(p.removeAllRanges(),m.selectNodeContents(l),p.addRange(m),!p.isCollapsed){let E=Pi(m,o);p.removeAllRanges(),E&&this.createPageBreakHighlight({rangeInfo:E,cleanText:"",rawText:""},u)}}d&&(l.innerHTML="")}},200)}createPageBreakHighlight(t,n){try{let o=`${t.rangeInfo.startContainerElementCssSelector}${t.rangeInfo.startContainerChildTextNodeIndex}${t.rangeInfo.startOffset}${t.rangeInfo.endContainerElementCssSelector}${t.rangeInfo.endContainerChildTextNodeIndex}${t.rangeInfo.endOffset}`,a=Cr.hash(o),l="R2_PAGEBREAK_"+a;var r=!1;let u={color:"#000000",id:l,pointerInteraction:r,selectionInfo:t,marker:Le.Custom,icon:{id:"pageBreak",title:n,color:"#000000",position:"left"},type:qe.PageBreak};zt.push(u);let d=this.delegate.highlighter?.createHighlightDom(this.delegate.iframes[0].contentWindow,u);return u.position=parseInt((d?.hasChildNodes()?d.childNodes[0]:d).style.top.replace("px","")),u}catch(o){throw"Can't create highlight: "+o}}};A();var B3=Je(Xp());var k3=Je(to());var Ke=Je(Dt()),sg=class{constructor(t,n,r,o,a,l,u){this.voices=[];this.hasEventListener=!1;this.startX=0;this.startY=0;this.index=0;this.userScrolled=!1;this.scrollPartial=!1;this.speaking=!1;this.restartIndex=-1;this.ttsQueueIndex=-1;this.ttsQueue=void 0;this.ttsPlayQueueIndexDebounced=(0,k3.debounce)((t,n)=>{this.restartIndex>=0?(this.ttsQueueIndex=this.restartIndex,this.restartIndex=-1):this.ttsQueueIndex=t,this.ttsQueue=n,this.ttsPlayQueueIndex(this.ttsQueueIndex,n)},150);this.delegate=t,this.tts=n,this.headerMenu=u,this.rights=r,this.highlighter=o,this.properties=a,this.api=l}initialize(t){this.highlighter!==void 0&&(this.tts.setControls(),this.tts.onRestart(this.restart.bind(this)),this.body=t,this.clean=(0,B3.default)(this.body.innerHTML,{allowedTags:[],allowedAttributes:{}}),this.wrapper=dt(document,"#iframe-wrapper"),window.speechSynthesis.getVoices(),this.initVoices(!0),this.hasEventListener||(this.hasEventListener=!0,Z(document,"wheel",this.wheel.bind(this)),Z(this.body,"wheel",this.wheel.bind(this)),Z(document,"keydown",this.wheel.bind(this)),Z(this.delegate.iframes[0].contentDocument,"keydown",this.wheel.bind(this))),Z(this.body,"mousedown",this.clickStart.bind(this)),Z(this.body,"mouseup",this.click.bind(this)))}clickStart(t){"clientX"in t&&(this.startX=t.clientX),"clientY"in t&&(this.startY=t.clientY)}click(t){let n=0,r=0;if("clientX"in t&&(n=t.clientX),"clientY"in t&&(r=t.clientY),window.speechSynthesis.speaking&&this.speaking&&n===this.startX&&r===this.startY){let o=this.delegate.iframes[0].contentDocument;if(o){let a=this.highlighter.dom(o.body).getSelection();if(a.isCollapsed){let m=this.delegate.iframes[0].contentDocument,p=this.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(m);a.addRange(p.range)}let l=a.getRangeAt(0),u=a.anchorNode;for(;l.toString().indexOf(" ")!==0;)try{l.setStart(u,l.startOffset-1)}catch(m){break}l.setStart(u,l.startOffset+1);do l.setEnd(u,u.length<l.endOffset?l.endOffset+1:u.length);while(l.toString().indexOf(" ")===-1&&l.toString().trim()!=="");let f=document.querySelector("main#iframe-wrapper iframe").contentWindow?.document.body;if(this.ttsQueue&&f){let m=this.findTtsQueueItemIndex(this.ttsQueue,a.anchorNode,a.anchorNode,a.anchorOffset,f);a.removeAllRanges(),m>=0&&(window.speechSynthesis.cancel(),this.restartIndex=m,this.ttsPlayQueueIndexDebounced(this.restartIndex,this.ttsQueue))}}}}initVoices(t){function n(){return new Promise(function(o,a){let l=window.speechSynthesis,u;u=setInterval(()=>{l.getVoices().length!==0&&(o(l.getVoices()),clearInterval(u))},10)})}n().then(async o=>{if(Ke.default.log(o),this.voices=[],o.forEach(l=>{l.localService===!0&&this.voices.push(l)}),Ke.default.log(this.voices),t&&this.headerMenu){var a=de(this.headerMenu,"#preferred-languages");a&&this.voices.forEach(l=>{var u=document.createElement("option");u.value=l.name+":"+l.lang,u.innerHTML=l.name+" ("+l.lang+")",a.add(u)})}})}cancel(t=!0){t&&(this.api?.stopped&&this.api?.stopped(),this.delegate.emit("readaloud.stopped","stopped")),this.userScrolled=!1,this.speaking=!1,setTimeout(()=>{window.speechSynthesis.cancel()},0),this._ttsQueueItemHighlightsWord&&(this.delegate.highlighter?.destroyHighlights(qe.ReadAloud),this._ttsQueueItemHighlightsWord=void 0)}async speak(t,n,r){this.api?.started&&this.api?.started(),this.delegate.emit("readaloud.started","started");let o=this;this.userScrolled=!1,this.cancel(!1);let a;if(n){let O=document.querySelector("main#iframe-wrapper iframe").contentWindow?.document.body,T=this.delegate.iframes[0].contentDocument;if(T){let C=this.highlighter.dom(T.body).getSelection();if(C.isCollapsed){let _=o.delegate.iframes[0].contentDocument,P=o.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(_);C.addRange(P.range)}if(O){var l=this.generateTtsQueue(O);if(!l.length)return;var u=this.findTtsQueueItemIndex(l,C.anchorNode,C.anchorNode,C.anchorOffset,O),d=this.findTtsQueueItemIndex(l,C.focusNode,C.focusNode,C.focusOffset,O);let _=Jo(l,u),P=Jo(l,d);var f;if(_&&t&&t.cleanText){let D=Ko(_),I=t.rangeInfo.startOffset,q=t.cleanText;if(P&&u+1===d){let k=Ko(P);I=(D+" "+k).indexOf(t.cleanText),q=D.slice(I,D.length),f=t.cleanText.replace(q,"").trim()}else if(d>u){let k="";for(let B=u+1;B<d;B++){let N=Jo(l,B);if(N){let W=Ko(N);k+=W,f=t.cleanText.replace(W,"")}}if(P){let B=Ko(P);k+=" "+B}I=(D+" "+k).indexOf(t.cleanText),q=D.slice(I,D.length),f=f.replace(q,"").trim()}a=new SpeechSynthesisUtterance(q),Ke.default.log(t),Ke.default.log(q,t.range?.commonAncestorContainer.textContent),Ke.default.log(_),Ke.default.log(_.item.textNodes),Ke.default.log(I),Ke.default.log(_.item.combinedText);let U=_.item.textNodes.filter(k=>k===t.range?.commonAncestorContainer)[0];Ke.default.log(U),a.onboundary=k=>{this.updateTTSInfo(_,k.charIndex,k.charLength,I,a.text)}}}}}else a=new SpeechSynthesisUtterance(this.clean);a.rate=this.tts.rate,a.pitch=this.tts.pitch,a.volume=this.tts.volume,Ke.default.log("this.tts.voice.lang",this.tts.voice.lang);var m=!0;this.tts.voice&&this.tts.voice.lang&&(m=this.tts.voice.lang.indexOf("-")!==-1,m===!1&&(this.tts.voice.lang=this.tts.voice.lang.replace("_","-"),m=!0)),Ke.default.log("initialVoiceHasHyphen",m),Ke.default.log("voices",this.voices);var p;m===!0?(p=this.tts.voice&&this.tts.voice.lang&&this.tts.voice.name?this.voices.filter(w=>{var O=w.lang.replace("_","-");return O===this.tts.voice.lang&&w.name===this.tts.voice.name})[0]:void 0,p===void 0&&(p=this.tts.voice&&this.tts.voice.lang?this.voices.filter(w=>w.lang.replace("_","-")===this.tts.voice.lang)[0]:void 0)):(p=this.tts.voice&&this.tts.voice.lang&&this.tts.voice.name?this.voices.filter(w=>w.lang===this.tts.voice.lang&&w.name===this.tts.voice.name)[0]:void 0,p===void 0&&(p=this.tts.voice&&this.tts.voice.lang?this.voices.filter(w=>w.lang===this.tts.voice.lang)[0]:void 0)),Ke.default.log("initialVoice",p);var E=o.delegate.publication.Metadata.Language[0].indexOf("-")!==-1;Ke.default.log("publicationVoiceHasHyphen",E);var S;E===!0?S=this.tts.voice&&this.tts.voice.usePublication?this.voices.filter(w=>{var O=w.lang.replace("_","-");return O.startsWith(o.delegate.publication.Metadata.Language[0])||O.endsWith(o.delegate.publication.Metadata.Language[0].toUpperCase())})[0]:void 0:S=this.tts.voice&&this.tts.voice.usePublication?this.voices.filter(w=>w.lang.startsWith(o.delegate.publication.Metadata.Language[0])||w.lang.endsWith(o.delegate.publication.Metadata.Language[0].toUpperCase()))[0]:void 0,Ke.default.log("publicationVoice",S);var v=navigator.language.indexOf("-")!==-1;Ke.default.log("defaultVoiceHasHyphen",v);var y;v===!0?y=this.voices.filter(w=>{var O=w.lang.replace("_","-");return O===navigator.language&&w.localService===!0})[0]:y=this.voices.filter(w=>{var O=w.lang;return O===navigator.language&&w.localService===!0})[0],y===void 0&&(y=this.voices.filter(w=>{var O=w.lang;return O.includes(navigator.language)&&w.localService===!0})[0]),Ke.default.log("defaultVoice",y),p?(Ke.default.log("initialVoice"),a.voice=p):S?(Ke.default.log("publicationVoice"),a.voice=S):y&&(Ke.default.log("defaultVoice"),a.voice=y),a.voice!==void 0&&a.voice!==null&&(a.lang=a.voice.lang,Ke.default.log("utterance.voice.lang",a.voice.lang),Ke.default.log("utterance.lang",a.lang)),Ke.default.log("navigator.language",navigator.language),setTimeout(()=>{window.speechSynthesis.speak(a)},0),this.index=0;function b(){a.onend=function(){if(d>u)if(u=u+1,u!==d){let w=Jo(l,u);if(w){let O=Ko(w);a=new SpeechSynthesisUtterance(O),a.onboundary=T=>{o.updateTTSInfo(w,T.charIndex,T.charLength,0,a.text)},setTimeout(()=>{window.speechSynthesis.speak(a)},0),b()}}else{let w=Jo(l,u);w&&(a=new SpeechSynthesisUtterance(f),a.onboundary=O=>{o.updateTTSInfo(w,O.charIndex,O.charLength,0,a.text)},setTimeout(()=>{window.speechSynthesis.speak(a)},0),b()),u>d&&(Ke.default.log("utterance ended"),o.highlighter.doneSpeaking(),o.api?.finished(),o.delegate.emit("readaloud.finished","finished"))}else Ke.default.log("utterance ended"),o.highlighter.doneSpeaking(),o.api?.finished(),o.delegate.emit("readaloud.finished","finished")}}b(),r()}speakPlay(){this.scrollPartial=!0,this.cancel(!1),this.api?.started&&this.api?.started(),this.delegate.emit("readaloud.started","started");let t=this,r=document.querySelector("main#iframe-wrapper iframe").contentWindow?.document.body;if(r){let l=function(){let u=t.highlighter.visibleTextRects[0],d=t.delegate.iframes[0].contentDocument;if(d){let f=t.highlighter.dom(d.body).getWindow().document.createRange(),m=t.highlighter.dom(t.delegate.iframes[0].contentDocument?.body).getSelection();m.removeAllRanges(),f.selectNodeContents(u.node),m.addRange(f);let p=0,E=m.focusNode,S=m.focusOffset;m.collapse(m.anchorNode,m.anchorOffset);for(let v=0;v<p;v++)m.modify("move","forward","line");if(m.extend(E,S),m.collapse(m.anchorNode,m.anchorOffset),r){let v=t.findTtsQueueItemIndex(o,m.anchorNode,m.anchorNode,m.anchorOffset,r);v>=0&&(a=v)}m.removeAllRanges()}},o=this.generateTtsQueue(r);if(!o.length)return;let a=0;l(),a<0&&(a=0),setTimeout(()=>{this.startTTSSession(o,a)},200)}}speakPause(){window.speechSynthesis.speaking&&(this.api?.paused&&this.api?.paused(),this.delegate.emit("readaloud.paused","paused"),this.userScrolled=!1,window.speechSynthesis.pause(),this.speaking=!1,this._ttsQueueItemHighlightsWord&&(this.delegate.highlighter?.destroyHighlights(qe.ReadAloud),this._ttsQueueItemHighlightsWord=void 0))}speakResume(){window.speechSynthesis.speaking&&(this.api?.resumed&&this.api?.resumed(),this.delegate.emit("readaloud.resumed","resumed"),this.userScrolled=!1,window.speechSynthesis.resume(),this.speaking=!0)}static async create(t){let n=new this(t.delegate,t.tts,t.rights,t.highlighter,t,t.api,t.headerMenu);return await n.start(),n}async start(){if(this.delegate.ttsModule=this,this.headerMenu){var t=de(this.headerMenu,"#menu-button-tts");t&&t.parentElement?.style.removeProperty("display")}setTimeout(()=>{this.properties?.hideLayer?this.delegate.hideLayer("readaloud"):this.delegate.showLayer("readaloud")},10)}wheel(t){if(t instanceof KeyboardEvent)switch(t.key){case"ArrowUp":this.userScrolled=!0;break;case"ArrowDown":this.userScrolled=!0;break}else this.userScrolled=!0}stop(){Ke.default.log("TTS module stop"),we(document,"wheel",this.wheel.bind(this)),we(this.body,"wheel",this.wheel.bind(this)),we(document,"keydown",this.wheel.bind(this)),we(this.delegate.iframes[0].contentDocument,"keydown",this.wheel.bind(this)),we(this.body,"click",this.click.bind(this))}generateTtsQueue(t){let n=[],r=[];function o(d){if(d.nodeType!==Node.TEXT_NODE||!d.nodeValue||!d.nodeValue.trim().length)return;let f=r[r.length-1];if(!f)return;let m=d.parentElement?N3(d.parentElement):void 0,p=d.parentElement?aN(d.parentElement):void 0,E=n[n.length-1];(!E||E.parentElement!==f||E.lang!==m||E.dir!==p)&&(E={combinedText:"",dir:p,lang:m,parentElement:f,textNodes:[]},n.push(E)),E.textNodes.push(d)}let a=!0;function l(d){if(d.nodeType!==Node.ELEMENT_NODE)return;let f=a||d.matches("h1, h2, h3, h4, h5, h6, p, th, td, caption, li, blockquote, q, dt, dd, figcaption, div, pre");a=!1,f&&r.push(d);for(let m of d.childNodes)switch(m.nodeType){case Node.ELEMENT_NODE:let p=m;if(!p.matches("img, sup, sub, audio, video, source, button, canvas, del, dialog, embed, form, head, iframe, meter, noscript, object, s, script, select, style, textarea"))l(p);else if(p.tagName&&p.tagName.toLowerCase()==="img"&&p.src){let S=p.getAttribute("alt");if(S){let v=S.trim();if(v){let y=N3(p),b=void 0;n.push({combinedText:v,dir:b,lang:y,parentElement:p,textNodes:[]})}}}break;case Node.TEXT_NODE:r.length!==0&&o(m);break;default:break}f&&r.pop()}l(t);function u(d){if(!d.textNodes||!d.textNodes.length){(!d.combinedText||!d.combinedText.length)&&(d.combinedText="");return}d.combinedText=lN(d.textNodes,!0).replace(/[\r\n]/g," ");let f=d.parentElement;for(;f;){if(f.tagName){let m=f.tagName.toLowerCase();if(m==="pre"||m==="code"||m==="video"||m==="audio")break}f=f.parentElement}}for(let d of n)u(d);return n}findTtsQueueItemIndex(t,n,r,o,a){let l=0;for(let u of t){if(r&&u.textNodes){if(u.textNodes.includes(r))return l}else if(n===u.parentElement||u.parentElement!==n.ownerDocument.body&&u.parentElement!==a&&u.parentElement.contains(n)||n.contains(u.parentElement))return l;l++}return-1}restart(){window.speechSynthesis.speaking&&(window.speechSynthesis.cancel(),this.restartIndex=this.ttsQueueIndex,this.ttsPlayQueueIndexDebounced(this.restartIndex,this.ttsQueue))}startTTSSession(t,n){if(!Jo(t,n)){this.cancel();return}this.speaking=!0,this.ttsPlayQueueIndexDebounced(n,t)}ttsPlayQueueIndex(t,n){if(t<0){this.cancel();return}let r=Jo(n,t);if(!r){this.cancel();return}let o=Ko(r);if(!o){this.cancel();return}let a=new SpeechSynthesisUtterance(o);a.rate=this.tts.rate,a.pitch=this.tts.pitch,a.volume=this.tts.volume,Ke.default.log("this.tts.voice.lang",this.tts.voice.lang);var l=!0;this.tts.voice&&this.tts.voice.lang&&(l=this.tts.voice.lang.indexOf("-")!==-1,l===!1&&(this.tts.voice.lang=this.tts.voice.lang.replace("_","-"),l=!0)),Ke.default.log("initialVoiceHasHyphen",l),Ke.default.log("voices",this.voices);var u;l===!0?(u=this.tts.voice&&this.tts.voice.lang&&this.tts.voice.name?this.voices.filter(S=>{var v=S.lang.replace("_","-");return v===this.tts.voice.lang&&S.name===this.tts.voice.name})[0]:void 0,u===void 0&&(u=this.tts.voice&&this.tts.voice.lang?this.voices.filter(S=>S.lang.replace("_","-")===this.tts.voice.lang)[0]:void 0)):(u=this.tts.voice&&this.tts.voice.lang&&this.tts.voice.name?this.voices.filter(S=>S.lang===this.tts.voice.lang&&S.name===this.tts.voice.name)[0]:void 0,u===void 0&&(u=this.tts.voice&&this.tts.voice.lang?this.voices.filter(S=>S.lang===this.tts.voice.lang)[0]:void 0)),Ke.default.log("initialVoice",u);var d=this,f=d.delegate.publication.Metadata.Language[0].indexOf("-")!==-1;Ke.default.log("publicationVoiceHasHyphen",f);var m;f===!0?m=this.tts.voice&&this.tts.voice.usePublication?this.voices.filter(S=>{var v=S.lang.replace("_","-");return v.startsWith(d.delegate.publication.Metadata.Language[0])||v.endsWith(d.delegate.publication.Metadata.Language[0].toUpperCase())})[0]:void 0:m=this.tts.voice&&this.tts.voice.usePublication?this.voices.filter(S=>S.lang.startsWith(d.delegate.publication.Metadata.Language[0])||S.lang.endsWith(d.delegate.publication.Metadata.Language[0].toUpperCase()))[0]:void 0,Ke.default.log("publicationVoice",m);var p=navigator.language.indexOf("-")!==-1;Ke.default.log("defaultVoiceHasHyphen",p);var E;p===!0?E=this.voices.filter(S=>{var v=S.lang.replace("_","-");return v===navigator.language&&S.localService===!0})[0]:E=this.voices.filter(S=>{var v=S.lang;return v===navigator.language&&S.localService===!0})[0],E===void 0&&(E=this.voices.filter(S=>{var v=S.lang;return v.includes(navigator.language)&&S.localService===!0})[0]),Ke.default.log("defaultVoice",E),u?(Ke.default.log("initialVoice"),a.voice=u):m?(Ke.default.log("publicationVoice"),a.voice=m):E&&(Ke.default.log("defaultVoice"),a.voice=E),a.voice!==void 0&&a.voice!==null&&(a.lang=a.voice.lang,Ke.default.log("utterance.voice.lang",a.voice.lang),Ke.default.log("utterance.lang",a.lang)),Ke.default.log("navigator.language",navigator.language),a.onboundary=S=>{Ke.default.log(S.name),this.updateTTSInfo(r,S.charIndex,S.charLength,0,a.text)},setTimeout(()=>{window.speechSynthesis.speak(a),d.speaking||window.speechSynthesis.pause()},0),a.onend=function(){d.speaking&&d.ttsPlayQueueIndexDebounced(t+1,n)}}updateTTSInfo(t,n,r,o,a){if(!t)return;Ke.default.log(t,n,r,a);let l=a||Ko(t);if(n>=0&&a){let u=a.slice(0,n+1).search(/\S+$/),d=a.slice(n).search(/\s/),f=d<0?a.slice(u):a.slice(u,d+n),m=u+f.length;if(r===void 0){let p=a.substring(n).match(/^[a-z\d']*/i);p&&(r=p[0].length)}r===void 0&&(r=f.length),this.wrapHighlightWord(t,a,n+o,r,f,u,m)}return l}wrapHighlightWord(t,n,r,o,a,l,u){Ke.default.log(t),Ke.default.log(n),Ke.default.log(r,o,a,l,u),this._ttsQueueItemHighlightsWord&&(this.delegate.highlighter?.destroyHighlights(qe.ReadAloud),this._ttsQueueItemHighlightsWord=void 0);let d=t.item,f=r,m=0,p,E=-1,S,v=-1,y=f+o;for(let w of d.textNodes){if(!w.nodeValue&&w.nodeValue!=="")continue;let O=w.nodeValue.length;if(m+=O,p||f<m&&(p=w,E=O-(m-f)),p&&y<=m&&(S=w,v=O-(m-y)),S)break}if(p&&S){let O=function(_){try{let P=b.delegate.iframes[0].contentDocument;return P?ln(_,P,ro):""}catch(P){return Ke.default.log("uniqueCssSelector:"),Ke.default.error(P),""}},w=new Range;w.setStart(p,E),w.setEnd(S,v);var b=this;let T=Pi(w,O);if(!T)return;let C=this.delegate.highlighter?.createHighlight(this.delegate.iframes[0].contentWindow,{rangeInfo:T,cleanText:"",rawText:"",range:void 0},this.tts.color,!1,Le.Custom,{id:"tts",title:"",position:"right"},void 0,{defaultClass:this.tts.color},qe.ReadAloud,"R2_READALOUD_");if(C){this._ttsQueueItemHighlightsWord=C[0];let D=(C[1]?.firstChild?.getBoundingClientRect()).top-this.wrapper.scrollTop>window.innerHeight/2-65;this.delegate.view?.isScrollMode()&&this.tts.autoScroll&&!this.userScrolled&&this.scrollPartial&&D?C[1]?.firstChild?.scrollIntoView({block:"center",behavior:"smooth"}):this.delegate.view?.isPaginated()&&b.delegate.view?.snap(C[1]?.firstChild)}}}};function N3(i){let t=i;for(;t&&t.nodeType===Node.ELEMENT_NODE;){let n=t.getAttribute("xml:lang");if(n||(n=t.getAttributeNS("http://www.w3.org/XML/1998/namespace","lang")),n||(n=t.getAttribute("lang")),n)return n;t=t.parentNode}}function aN(i){let t=i;for(;t&&t.nodeType===Node.ELEMENT_NODE;){let n=t.getAttribute("dir");if(n)return n;t=t.parentNode}}function lN(i,t){if(i&&i.length){let n="";for(let r of i)r.nodeValue&&(n+=t?r.nodeValue:uN(r.nodeValue));return n}return""}function cN(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function uN(i){return cN(i).replace(/\n/g," ").replace(/\s\s+/g," ")}function Jo(i,t){let n=-1,r=-1;for(let o of i)if(r++,n++,t===n)return{item:o,iArray:r,iGlobal:n,iSentence:-1}}function Ko(i){return i.item.combinedText}A();var cl=Je(Ed());var H3=Je(to());var j3=Je(Dt()),ag=class{constructor(t,n,r,o,a){this.currentChapterPopupResult=[];this.currentPopupHighlights=[];this.definitions=(0,H3.debounce)(async()=>{if(await this.highlighter.destroyHighlights(qe.Definition),this.properties.definitions)for(let t of this.properties.definitions)await this.define(t)},200);this.delegate=t,this.publication=n,this.properties=r,this.api=a,this.highlighter=o}static async create(t){let n=new this(t.delegate,t.publication,t,t.highlighter,t.api);return await n.start(),n}async stop(){j3.default.log("Definitions module stop")}async start(){this.delegate.definitionsModule=this,setTimeout(()=>{this.properties.hideLayer?this.delegate.hideLayer("definitions"):this.delegate.showLayer("definitions")},10)}async searchAndPaint(t,n){let r=this.publication.getAbsoluteHref(this.publication.readingOrder?this.publication.readingOrder[this.delegate.currentResource()??0].Href:""),o=this.publication.getTOCItem(r);o===void 0&&this.publication.readingOrder&&(o=this.publication.readingOrder[this.delegate.currentResource()??0]);let a=[];if(o)for(let l of t.terms){let u=t.terms.indexOf(l);o&&await lo(l,this.delegate.iframes[0].contentDocument,o.Href,o.Title,this.delegate.definitionsModule?.properties.fullWordSearch).then(d=>{let f;t.result===1?f=0:t.result===2&&(f=Math.floor(Math.random()*d.length-1)+1),d.forEach((m,p)=>{if(f===void 0||f===p){let E={rangeInfo:m.rangeInfo},S=this.createDefinitionHighlight(E,t);m.highlight=S,a.push(cl.omit(S,"definition")),this.currentChapterPopupResult.push(m),this.currentPopupHighlights.push(S)}}),u===t.terms.length-1&&n(a)})}}async define(t){await this.searchAndPaint(t,async n=>{this.api?.success&&(this.api?.success(cl.omit(t,"callbacks"),n),this.delegate.emit("definition.success",n),this.api?.visible&&n.forEach(r=>{let a=this.delegate.iframes[0].contentDocument?.querySelector(`#${r.id}`)?.querySelectorAll(`.${pn}`),l=new IntersectionObserver((u,d)=>{u.forEach(f=>{f.intersectionRatio===1&&(this.api?.visible(cl.omit(t,"callbacks"),cl.omit(r,"definition")),this.delegate.emit("definition.visible",t,r))})},{threshold:1});a&&a.length>0&&l.observe(a[0])}))})}async drawDefinitions(){setTimeout(async()=>{await this.definitions()},100)}async handleResize(){await this.drawDefinitions()}createDefinitionHighlight(t,n){try{let r=this.delegate.definitionsModule?.properties.color;De.isHexColor(r)&&(r=De.hexToRgbChannels(r));let o=`${t.rangeInfo.startContainerElementCssSelector}${t.rangeInfo.startContainerChildTextNodeIndex}${t.rangeInfo.startOffset}${t.rangeInfo.endContainerElementCssSelector}${t.rangeInfo.endContainerChildTextNodeIndex}${t.rangeInfo.endOffset}`,a=Cr.hash(o),l="R2_DEFINITION_"+a;this.highlighter.destroyHighlight(this.delegate.iframes[0].contentDocument,l);let u={color:r||$o,id:l,pointerInteraction:!0,selectionInfo:t,marker:Le.Underline,type:qe.Definition};zt.push(u);let d=this.highlighter.createHighlightDom(this.delegate.iframes[0].contentWindow,u);return d&&(n.definition&&(d.dataset.definition=n.definition),d.dataset.order=String(n.order),u.definition=n,u.position=parseInt((d?.hasChildNodes()?d.childNodes[0]:d).style.top.replace("px",""))),u}catch(r){throw"Can't create definitions highlight: "+r}}async addDefinition(t){await this.define(t)}async clearDefinitions(){await this.highlighter.destroyHighlights(qe.Definition)}};A();var fo=Je(Dt()),D3=.5,Gd=class{constructor(t,n,r,o){this.hasEventListener=!1;this.lines=[];this.index=0;this.isActive=!1;this.isDebug=!1;this.lineFocusContainer=document.getElementById("lineFocusContainer");this.readerContainer=document.getElementById("D2Reader-Container");this.lineFocusTopBlinder=document.getElementById("lineFocusTopBlinder");this.lineFocusBottomBlinder=document.getElementById("lineFocusBottomBlinder");this.wrapperHeight=void 0;this.delegate=t,this.properties=n,this.api=o,this.highlighter=r}static async create(t){let n=new this(t.delegate,t,t.highlighter,t.api);return await n.start(),n}async stop(){fo.default.log("Definitions module stop"),this.hasEventListener=!1,we(document,"keydown",this.keydown.bind(this)),we(document,"keyup",this.keyup.bind(this)),we(this.delegate.iframes[0].contentDocument,"keydown",this.keydown.bind(this)),we(this.delegate.iframes[0].contentDocument,"keyup",this.keyup.bind(this))}async start(){this.delegate.lineFocusModule=this;let t=dt(document,"#iframe-wrapper");t.style.height.length>0&&(this.wrapperHeight=t.style.height,this.lineFocusContainer&&this.lineFocusContainer.style.height.length===0&&(this.lineFocusContainer.style.height=this.wrapperHeight),this.readerContainer&&this.readerContainer.style.height.length===0&&(this.readerContainer.style.height=this.wrapperHeight),this.readerContainer&&(this.readerContainer.style.overflow="hidden")),this.hasEventListener||(this.hasEventListener=!0,Z(document,"keydown",this.keydown.bind(this)),Z(document,"keyup",this.keyup.bind(this)),Z(this.delegate.iframes[0].contentDocument,"keydown",this.keydown.bind(this)),Z(this.delegate.iframes[0].contentDocument,"keyup",this.keyup.bind(this)))}keydown(t){if(t instanceof KeyboardEvent&&this.isActive)switch(t.key){case"ArrowUp":t.stopPropagation();break;case"ArrowDown":t.stopPropagation();break}}keyup(t){if(t instanceof KeyboardEvent&&this.isActive)switch(t.key){case"ArrowUp":this.lineUp();break;case"ArrowDown":this.lineDown();break}}handleResize(){this.isActive&&this.lineFocus()}async enableLineFocus(){this.isActive=!0,await this.delegate.settings.scroll(!0),this.lineFocus()}disableLineFocus(t=!0){this.isActive=!1;let n=dt(document,"#iframe-wrapper");this.wrapperHeight&&(n.style.height=this.wrapperHeight),t||(this.index=0);let r=this.delegate.iframes[0].contentDocument;Qt(r,"html").style.removeProperty("--USER__maxMediaHeight"),this.wrapperHeight=void 0,this.lineFocusContainer&&(this.lineFocusContainer.style.display="none");let a=document.getElementById("container-view-timeline");a&&a.style.removeProperty("display");let l=document.getElementById("divBefore");l&&l.remove();let u=document.getElementById("divAfter");u&&u.remove(),this.highlighter.destroyHighlights(qe.LineFocus)}lineFocus(){let t=dt(document,"#iframe-wrapper"),n=this.delegate.iframes[0].contentDocument,r=Qt(n,"html"),o=this.properties.maxHeight?$r()*this.properties.maxHeight/100:$r()/2;r.style.setProperty("--USER__maxMediaHeight",o+"px");function a(m,p){m.parentNode.insertBefore(p,m.nextSibling)}function l(m,p){m.parentNode.insertBefore(p,m)}let u=document.getElementById("container-view-timeline");u&&(u.style.display="none"),this.lineFocusContainer&&this.lineFocusContainer.style.removeProperty("display");let d=document.getElementById("divBefore");if(d)d.style.height=t.clientHeight/2+"px";else{let m=document.createElement("div");m.style.height=t.clientHeight/2+"px",m.id="divBefore",l(t,m)}let f=document.getElementById("divAfter");if(f)f.style.height=t.clientHeight/2+"px";else{let m=document.createElement("div");m.style.height=t.clientHeight/2+"px",m.id="divAfter",a(t,m)}if(this.lines=[],n){let E=function(){let O=Math.round,T=Math.random,C=255;return{blue:O(T()*C),green:O(T()*C),red:O(T()*C)}},S=function(O,T){let C=[];for(let _=0,P=0;_<O.length;_++)_>=T&&_%T==0&&P++,C[P]=C[P]||[],C[P].push(O[_]);return C},v=function(O,T){let C=Math.min(O.left,T.left),_=Math.max(O.right,T.right),P=Math.min(O.top,T.top),D=Math.max(O.bottom,T.bottom);return{bottom:D,height:D-P,left:C,right:_,top:P,width:_-C}},y=function(O){if(O.length>1){let T=v(O[0],O[1]);if(O.length>2){let C=v(T,O[2]);if(O.length>3){let _=v(C,O[3]);return O.length>4?v(_,O[4]):_}return C}return T}return O[0]},m=this.findRects(n.body);m=i0(m,!0),m=m.sort(function(O,T){return O.top-T.top});let p=[];m=m.filter(function(O){let T=O.top;return p.indexOf(T)===-1&&p.indexOf(T+1)===-1&&p.indexOf(T+2)===-1&&p.indexOf(T+3)===-1&&p.indexOf(T+4)===-1&&p.indexOf(T-1)===-1&&p.indexOf(T-2)===-1&&p.indexOf(T-3)===-1&&p.indexOf(T-4)===-1?(p.push(T),!0):!1}),this.highlighter.destroyHighlights(qe.LineFocus);let b=[];this.properties.lines&&this.properties.lines>1?S(m,this.properties.lines).forEach(T=>{b.push(y(T))}):b=m;let w=de(n,"#"+Me.R2_ID_LINEFOCUS_CONTAINER);if(w)for(let O of b){let T=document.createElement("div");T.setAttribute("class",pn);let C=E();if(De.isHexColor(C)&&(C=De.hexToRgbChannels(C)),this.isDebug){let he=`border-bottom: 1px solid rgba(${C.red}, ${C.green}, ${C.blue}, ${D3}) !important`;T.setAttribute("style",`mix-blend-mode: multiply; border-radius: 1px !important; background-color: rgba(${C.red}, ${C.green}, ${C.blue}, ${D3}) !important; ${he}`)}T.style.outline="none",T.tabIndex=0;let _=this.delegate.iframes[0].contentWindow.document,P=this.delegate.view.isPaginated();P?_.body.style.position="revert":_.body.style.position="relative";let D=_.body.getBoundingClientRect(),I=this.highlighter.getScrollingElement(_),q=P?-I.scrollLeft:D.left,U=P?-I.scrollTop:D.top,k=1,B=24,N,W,ye=this.delegate.iframes[0].contentWindow?.innerWidth,be=parseInt(getComputedStyle(n.documentElement).getPropertyValue("column-count")),fe=parseInt(getComputedStyle(n.documentElement).getPropertyValue("column-width")),re=parseInt(getComputedStyle(n.body).getPropertyValue("padding-left"));if(ye){let he=ye/(be||1);he<fe&&(he=ye),P||(he=parseInt(getComputedStyle(n.body).width.replace("px","")));let Ae=this.delegate.settings.fontSize/100,ue=20*Ae;Ae<=1&&(ue=-60);let xe=0;Ae<=1&&(xe=-60),N=Math.floor(O.left/he)*he+he-(B<40?40:B)+xe,W=Math.floor(O.left/he)*he+(B<40?40:B)-ue;let Re=parseInt(n.documentElement.style.getPropertyValue("--USER__pageMargins"));Re>=2&&(W=W+re/be,N=N-re/be),P||(N=parseInt(getComputedStyle(n.body).width.replace("px","")),W=parseInt(getComputedStyle(n.body).width.replace("px",""))-he,Re>=2&&(W=W+re/2,N=N-re/2))}T.style.setProperty("pointer-events","none"),T.style.position="absolute",T.scale=k,T.rect={height:O.height,left:O.left-q,top:O.top-U,width:O.width},T.style.width=`${T.rect.width*k}px`,T.style.height=`${T.rect.height*k}px`,T.style.left=`${T.rect.left*k}px`,T.style.top=`${T.rect.top*k}px`,this.lines.push(T),w.append(T)}setTimeout(()=>{this.currentLine()},100)}}currentLine(){let t=this.lines[this.index],n=t.style.top,o=parseInt(t.style.top.replace("px",""))+parseInt(t.style.height.replace("px",""))-parseInt(n.replace("px",""));if(this.lineFocusContainer){let l=(parseInt(getComputedStyle(this.lineFocusContainer).height.replace("px",""))-o)/2;this.lineFocusTopBlinder&&(this.lineFocusTopBlinder.style.height=l+"px"),this.lineFocusBottomBlinder&&(this.lineFocusBottomBlinder.style.height=l+"px")}t.scrollIntoView({block:"center",behavior:"smooth"})}lineDown(){if(this.index<this.lines.length-1){this.index+=1,this.index>this.lines.length-1&&(this.index=this.lines.length-1);let t=this.lines[this.index],n=t.style.top,o=parseInt(t.style.top.replace("px",""))+parseInt(t.style.height.replace("px",""))-parseInt(n.replace("px",""));if(this.lineFocusContainer){let l=(parseInt(getComputedStyle(this.lineFocusContainer).height.replace("px",""))-o)/2;this.lineFocusTopBlinder&&(this.lineFocusTopBlinder.style.height=l+"px"),this.lineFocusBottomBlinder&&(this.lineFocusBottomBlinder.style.height=l+"px")}t.scrollIntoView({block:"center",behavior:"smooth"})}}lineUp(){if(this.index>0){this.index-=1,this.index<0&&(this.index=0);let t=this.lines[this.index],n=t.style.top,o=parseInt(t.style.top.replace("px",""))+parseInt(t.style.height.replace("px",""))-parseInt(n.replace("px",""));if(this.lineFocusContainer){let l=(parseInt(getComputedStyle(this.lineFocusContainer).height.replace("px",""))-o)/2;this.lineFocusTopBlinder&&(this.lineFocusTopBlinder.style.height=l+"px"),this.lineFocusBottomBlinder&&(this.lineFocusBottomBlinder.style.height=l+"px")}t.scrollIntoView({block:"center",behavior:"smooth"})}}almostEqual(t,n,r){return Math.abs(t-n)<=r}findRects(t){let n=this.findTextNodes(t),r=Array.from(t.getElementsByTagName("img")),o=[];return n.forEach(a=>{o.push(...this.measureTextNodes(a))}),r.forEach(a=>{o.push(...this.measureImageNodes(a))}),o}findTextNodes(t,n=[]){let r=t.firstChild;for(;r;)r.nodeType===1&&this.findTextNodes(r,n),r.nodeType===3&&r.textContent?.trim()&&(r.textContent.trim().length>1||r.parentElement?.tagName.toLowerCase()==="h1"||r.parentElement?.tagName.toLowerCase()==="h2"||r.parentElement?.tagName.toLowerCase()==="h3"||r.parentElement?.tagName.toLowerCase()==="h4"||r.parentElement?.tagName.toLowerCase()==="h5"||r.parentElement?.tagName.toLowerCase()==="h6")&&r.parentElement&&getComputedStyle(r.parentElement).verticalAlign==="baseline"&&n.push(r),r=r.nextSibling;return n}measureTextNodes(t){try{let n=document.createRange();n.selectNodeContents(t);let r=Array.from(n.getClientRects());return n.detach(),r}catch(n){fo.default.log("measureTextNode "+n),fo.default.log("measureTextNode "+t),fo.default.log(`${t.textContent}`)}}measureImageNodes(t){try{let n=document.createRange();n.selectNode(t);let r=Array.from(n.getClientRects());return n.detach(),r}catch(n){fo.default.log("measureTextNode "+n),fo.default.log("measureTextNode "+t),fo.default.log(`${t.textContent}`)}}};A();var Vd=Je(Dt()),lg=class{constructor(t,n,r,o,a){this.history=[];this.headerMenu=a,this.delegate=n,this.publication=r,this.properties=o,this.annotator=t}static async create(t){let n=new this(t.annotator,t.delegate,t.publication,t,t.headerMenu);return await n.start(),n}async stop(){Vd.default.log("Page Break module stop"),we(this.historyForwardAnchorElement,"click",this.handleHistoryForwardClick.bind(this)),we(this.historyBackAnchorElement,"click",this.handleHistoryBackClick.bind(this))}async handleResize(){await this.setup()}setup(){this.history.length>0&&(this.historyForwardAnchorElement&&this.historyCurrentIndex+1<this.history.length?this.historyForwardAnchorElement.className=this.historyForwardAnchorElement.className.replace(" disabled",""):this.historyForwardAnchorElement&&(this.historyForwardAnchorElement.removeAttribute("href"),this.historyForwardAnchorElement.className+=" disabled"),this.historyBackAnchorElement&&this.historyCurrentIndex>0?this.historyBackAnchorElement.className=this.historyBackAnchorElement.className.replace(" disabled",""):this.historyBackAnchorElement&&(this.historyBackAnchorElement.removeAttribute("href"),this.historyBackAnchorElement.className+=" disabled"))}async push(t,n){let r;if(n&&this.annotator){let o=await this.annotator.getLastReadingPosition();if(o&&o.locations.progression&&o.locations.progression>0&&(this.historyCurrentIndex<this.history.length-1&&(this.history=this.history.slice(0,this.historyCurrentIndex)),r=this.history[this.history.length-1],r&&r.href!==o.href||r===void 0)){let a=this.publication.getAbsoluteHref(o.href);Vd.default.log(o.href),Vd.default.log(a),o.href=a,this.history.push(o),this.historyCurrentIndex=this.history.length-1}this.historyCurrentIndex<this.history.length-1&&(this.history=this.history.slice(0,this.historyCurrentIndex)),r=this.history[this.history.length-1],(r&&r.href!==t.href||r===void 0)&&(this.history.push(t),this.historyCurrentIndex=this.history.length-1)}}async start(){this.delegate.historyModule=this,this.headerMenu&&(this.historyForwardAnchorElement=de(this.headerMenu,"#history-forward")),this.headerMenu&&(this.historyBackAnchorElement=de(this.headerMenu,"#history-back")),this.historyCurrentIndex=this.history.length-1,Z(this.historyForwardAnchorElement,"click",this.handleHistoryForwardClick.bind(this)),Z(this.historyBackAnchorElement,"click",this.handleHistoryBackClick.bind(this))}async handleHistoryForwardClick(t){this.history.length>0&&this.historyCurrentIndex+1<this.history.length&&(this.historyCurrentIndex=this.historyCurrentIndex+1,await this.delegate.navigate(this.history[this.historyCurrentIndex],!1)),t.preventDefault(),t.stopPropagation()}async handleHistoryBackClick(t){this.history.length>0&&this.historyCurrentIndex>0&&(this.historyCurrentIndex=this.historyCurrentIndex-1,await this.delegate.navigate(this.history[this.historyCurrentIndex],!1)),t.preventDefault(),t.stopPropagation()}};A();var F3=Je(Dt()),it;(function(r){r[r.Chicago=0]="Chicago",r[r.MLA=1]="MLA",r[r.APA=2]="APA"})(it||(it={}));var $3;(function(o){o.Author="Author",o.Editor="Editor",o.Translator="Translator",o.Compiler="Compiler"})($3||($3={}));var Jd=class{constructor(t,n,r,o,a){this.highlighter=r,this.delegate=t,this.properties=o,this.publication=n,this.api=a}static async create(t){let n=new this(t.delegate,t.publication,t.highlighter,t,t.api);return await n.start(),n}async stop(){F3.default.log("Timeline module stop")}copyToClipboard(t){let n=!0;if(window.clipboardData)window.clipboardData.setData("text/plain",t);else{let r=this.createElementForExecCommand(t);this.selectContent(r);try{window.netscape&&netscape.security&&netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"),n=document.execCommand("copy",!1)}catch(o){n=!1}document.body.removeChild(r)}n?this.api?.citationCreated("The text was copied to the clipboard!"):this.api?.citationFailed("Your browser doesn't allow clipboard access!")}createElementForExecCommand(t){let n=document.createElement("div");return n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.innerHTML=t,document.body.appendChild(n),n.contentEditable=!0,n}selectContent(t){let n=document.createRange();n.selectNodeContents(t);let r=window.getSelection();r?.removeAllRanges(),r?.addRange(n)}async start(){this.delegate.citationModule=this;let t=this,n={id:"citationIcon",callback:function(r){let o=function(){let I="",q="",U="";return t.publication.Metadata.Author?.length>0&&0===0&&t.publication.Metadata.Author[0].Name&&t.publication.Metadata.Author[0].Name.length>0&&(U=U+t.publication.Metadata.Author[0].Name,q=q+t.publication.Metadata.Author[0].Name,I=I+t.publication.Metadata.Author[0].Name),U.length>0&&q.length>0&&I.length>0?[I+". ",q+". ",U+". "]:["","",""]},a=function(){let I="",q="",U="";return t.publication.Metadata.Publisher&&t.publication.Metadata.Publisher[0].Name&&(q=q+t.publication.Metadata.Publisher[0].Name+", ",I=I+t.publication.Metadata.Publisher[0].Name+", "),t.publication.Metadata.PublicationDate&&t.publication.Metadata.PublicationDate.getFullYear()>0&&(U=U+"("+t.publication.Metadata.PublicationDate.getFullYear()+")",q=q+t.publication.Metadata.PublicationDate.getFullYear(),I=I+t.publication.Metadata.PublicationDate.getFullYear()),U.length>0&&q.length>0&&I.length>0?[I+". ",q+". ",U+". "]:["","",""]},l=function(){return t.publication.Metadata.Title?[t.publication.Metadata.Title+". ",t.publication.Metadata.Title+". ",t.publication.Metadata.Title+". "]:["","",""]},u=function(){return["","",""]},d=function(){let I="",q="",U="";return t.publication.Metadata.Publisher&&t.publication.Metadata.Publisher[0].Name&&(q=q+t.publication.Metadata.Publisher[0].Name+", ",I=I+t.publication.Metadata.Publisher[0].Name+", ",U=U+t.publication.Metadata.Publisher[0].Name+", "),U.length>0&&q.length>0&&I.length>0?[I+". ",q+". ",U+". "]:["","",""]},f=function(){return["","",""]},m=function(){return["","",""]},p=function(){return["","",""]},E=function(){return t.properties.library?["Retrieved from "+t.properties.library+". ","Retrieved from "+t.properties.library+". ","Retrieved from "+t.properties.library+". "]:["","",""]},S=function(){return t.properties.appName?[t.properties.appName+". ",t.properties.appName+". ",t.properties.appName+". "]:["","",""]},v=function(){return t.properties.appLink?[t.properties.appLink+". ",t.properties.appLink+". ",t.properties.appLink+". "]:["","",""]},y=function(){return["","",""]},b=function(I,q){return I.length>q?I.substring(0,q)+"...":I},w=o()[0]+l()[0]+f()[0]+u()[0]+p()[0]+a()[0]+m()[0]+E()[0]+S()[0]+v()[0],O=o()[2]+a()[2]+l()[2]+u()[2]+d()[2]+f()[2]+m()[2]+p()[2]+E()[2]+S()[2]+v()[2],T=o()[1]+l()[1]+f()[1]+u()[1]+p()[1]+a()[1]+y()[1]+E()[1]+S()[1]+v()[1],C="\u201C"+b(r,t.properties.characters)+"\u201C<br><br><em>"+w+"</em>",_="\u201C"+b(r,t.properties.characters)+"\u201C<br><br><em>"+O+"</em>",P="\u201C"+b(r,t.properties.characters)+"\u201C<br><br><em>"+T+"</em>",D="";t.properties.styles?.includes(it[0])&&(D=D+"Chicago: <br>"+C+"<br><br>"),t.properties.styles?.includes(it[2])&&(D=D+"APA: <br>"+_+"<br><br>"),t.properties.styles?.includes(it[1])&&(D=D+"MLA: <br>"+P+"<br><br>"),t.copyToClipboard(D)}};this.highlighter?.addSelectionMenuItem(n)}};var Yo=class{constructor(t,n,r,o,a,l,u,d,f,m,p,E,S,v,y,b,w){this.settings=t;this.navigator=n;this.highlighter=r;this.bookmarkModule=o;this.annotationModule=a;this.ttsSettings=l;this.ttsModule=u;this.searchModule=d;this.definitionsModule=f;this.contentProtectionModule=m;this.timelineModule=p;this.mediaOverlaySettings=E;this.mediaOverlayModule=S;this.pageBreakModule=v;this.lineFocusModule=y;this.historyModule=b;this.citationModule=w;this.startReadAloud=()=>{this.navigator.startReadAloud()};this.stopReadAloud=()=>{this.navigator.stopReadAloud()};this.pauseReadAloud=()=>{this.navigator.pauseReadAloud()};this.resumeReadAloud=()=>{this.navigator.resumeReadAloud()};this.startReadAlong=()=>{this.navigator.startReadAlong()};this.stopReadAlong=()=>{this.navigator.stopReadAlong()};this.pauseReadAlong=()=>{this.navigator.pauseReadAlong()};this.resumeReadAlong=()=>{this.navigator.resumeReadAlong()};this.saveBookmark=async()=>await this.bookmarkModule?.saveBookmark()??!1;this.saveBookmarkPlus=async()=>this.bookmarkModule?.saveBookmarkPlus();this.deleteBookmark=async t=>await this.bookmarkModule?.deleteBookmark(t)??!1;this.deleteAnnotation=async t=>await this.annotationModule?.deleteAnnotation(t)??!1;this.addAnnotation=async t=>await this.annotationModule?.addAnnotation(t)??!1;this.hideAnnotationLayer=()=>this.annotationModule?.hideAnnotationLayer();this.showAnnotationLayer=()=>this.annotationModule?.showAnnotationLayer();this.hideLayer=t=>this.navigator?.hideLayer(t);this.showLayer=t=>this.navigator?.showLayer(t);this.activateMarker=(t,n)=>this.navigator?.activateMarker(t,n);this.deactivateMarker=()=>this.navigator?.deactivateMarker();this.clearDefinitions=async()=>{await this.definitionsModule?.clearDefinitions()};this.addDefinition=async t=>{await this.definitionsModule?.addDefinition(t)};this.search=async(t,n)=>await this.searchModule?.search(t,n)??[];this.goToSearchIndex=async(t,n,r)=>{this.navigator.rights.enableSearch&&await this.searchModule?.goToSearchIndex(t,n,r)};this.goToSearchID=async(t,n,r)=>{this.navigator.rights.enableSearch&&await this.searchModule?.goToSearchID(t,n,r)};this.clearSearch=async()=>{this.navigator.rights.enableSearch&&await this.searchModule?.clearSearch()};this.resetUserSettings=async()=>await this.settings.resetUserSettings();this.applyUserSettings=async t=>await this.settings.applyUserSettings(t);this.scroll=async t=>await this.settings.scroll(t);this.increase=async t=>{this.isTTSIncrementable(t)?this.navigator.rights.enableTTS&&await this.ttsSettings?.increase(t):this.isMOIncrementable(t)?this.navigator.rights.enableMediaOverlays&&await this.mediaOverlaySettings?.increase(t):await this.settings.increase(t)};this.decrease=async t=>{this.isTTSIncrementable(t)?this.navigator.rights.enableTTS&&await this.ttsSettings?.decrease(t):this.isMOIncrementable(t)?this.navigator.rights.enableMediaOverlays&&await this.mediaOverlaySettings?.decrease(t):await this.settings.decrease(t)};this.resetTTSSettings=()=>{this.navigator.rights.enableTTS&&this.ttsSettings?.resetTTSSettings()};this.applyTTSSettings=async t=>{this.navigator.rights.enableTTS&&await this.ttsSettings?.applyTTSSettings(t)};this.applyPreferredVoice=async t=>{this.navigator.rights.enableTTS&&await this.ttsSettings?.applyPreferredVoice(t)};this.resetMediaOverlaySettings=async()=>{this.navigator.rights.enableMediaOverlays&&await this.mediaOverlaySettings?.resetMediaOverlaySettings()};this.applyMediaOverlaySettings=async t=>{this.navigator.rights.enableMediaOverlays&&await this.mediaOverlaySettings?.applyMediaOverlaySettings(t)};this.goTo=async t=>{this.navigator.goTo(t)};this.goToPosition=async t=>this.navigator.goToPosition(t);this.goToPage=async t=>{await this.navigator.goToPage(t)};this.copyToClipboard=t=>{this.contentProtectionModule?.copyToClipboard(t)};this.nextResource=()=>{this.navigator.nextResource()};this.previousResource=()=>{this.navigator.previousResource()};this.nextPage=async()=>{this.navigator.nextPage()};this.previousPage=async()=>{this.navigator.previousPage()};this.snapToSelector=async t=>{this.navigator.snapToSelector(t)};this.applyAttributes=t=>{this.navigator.applyAttributes(t)};this.stop=()=>{document.body.onscroll=()=>{},this.navigator.stop(),this.settings.stop(),this.ttsSettings?.stop(),this.ttsModule?.stop(),this.bookmarkModule?.stop(),this.annotationModule?.stop(),this.searchModule?.stop(),this.definitionsModule?.stop(),this.contentProtectionModule?.stop(),this.timelineModule?.stop(),this.mediaOverlaySettings?.stop(),this.mediaOverlayModule?.stop(),this.pageBreakModule?.stop(),this.lineFocusModule?.stop()}}addEventListener(){this.navigator.addListener(arguments[0],arguments[1])}static async load(t){let n=t.rights??{autoGeneratePositions:!1,enableAnnotations:!1,enableBookmarks:!1,enableContentProtection:!1,enableDefinitions:!1,enableLineFocus:!1,enableMediaOverlays:!1,enablePageBreaks:!1,enableSearch:!1,enableTTS:!1,enableTimeline:!1,customKeyboardEvents:!1,enableHistory:!1,enableCitations:!1};n.enableContentProtection&&t.protection&&await jd.setupPreloadProtection(t.protection);let r=dt(document,"#D2Reader-Container"),o=de(document,"#headerMenu"),a=de(document,"#footerMenu"),l=t.url,u;t.publication?(u=Cs(t.publication,Yi),u.manifestUrl=new URL(l)):u=await Yi.fromUrl(l,t.requestConfig);let d=new Ys({prefix:u.manifestUrl,useLocalStorage:t.useLocalStorage??!1}),f=new Ys({prefix:"r2d2bc-reader",useLocalStorage:t.useLocalStorage??!1}),m=new Ys({prefix:"r2d2bc-layers",useLocalStorage:t.useLocalStorage??!1}),p=new uo({store:d});u.sample=t.sample,n=dN(n,u),n.autoGeneratePositions?await u.autoGeneratePositions(t.requestConfig):(t.services?.positions&&await u.fetchPositionsFromService(t.services?.positions.href,t.requestConfig),t.services?.weight&&await u.fetchWeightsFromService(t.services?.weight.href,t.requestConfig));let E=await ig.create({store:m}),S=await jo.create({store:f,initialUserSettings:t.userSettings,headerMenu:o,api:t.api,injectables:(u.Metadata.Rendition?.Layout??"unknown")==="fixed"?t.injectablesFixed:t.injectables,layout:(u.Metadata.Rendition?.Layout??"unknown")==="fixed"?"fixed":"reflowable"}),v=await Ln.create({mainElement:r,headerMenu:o,footerMenu:a,publication:u,settings:S,annotator:p,initialLastReadingPosition:t.lastReadingPosition,api:t.api,rights:n,tts:t.tts,sample:t.sample,requestConfig:t.requestConfig,injectables:(u.Metadata.Rendition?.Layout??"unknown")==="fixed"?t.injectablesFixed??[]:t.injectables,attributes:t.attributes,services:t.services}),y=await De.create(Fe({delegate:v,layerSettings:E},t.highlighter)),b=n.enableBookmarks?await el.create(Fe({annotator:p,headerMenu:o,rights:n,publication:u,delegate:v,initialAnnotations:t.initialAnnotations},t.bookmarks)):void 0,w=n.enableAnnotations?await Qa.create(Fe({annotator:p,rights:n,publication:u,delegate:v,initialAnnotations:t.initialAnnotations,highlighter:y,headerMenu:o},t.annotations)):void 0,O=n.enableTTS,T=O?await ng.create({store:f,initialTTSSettings:t.tts,headerMenu:o}):void 0,C;O&&T&&(C=await sg.create(Fe({delegate:v,tts:T,headerMenu:o,rights:n,highlighter:y},t.tts)));let _=n.enableSearch?await tg.create(Fe({headerMenu:o,delegate:v,publication:u,highlighter:y},t.search)):void 0,P=n.enableDefinitions?await ag.create(Fe({delegate:v,publication:u,highlighter:y},t.define)):void 0,D=n.enableTimeline?await L0.create({publication:u,delegate:v}):void 0,I=n.enableContentProtection?await jd.create(Fe({delegate:v},t.protection)):void 0,q=n.enableMediaOverlays,U=q?await M0.create(Fe({store:f,initialMediaOverlaySettings:t.mediaOverlays,headerMenu:o},t.mediaOverlays)):void 0,k=q?await P0.create(Fe({publication:u,delegate:v,settings:U},t.mediaOverlays)):void 0,N=n.enablePageBreaks&&u.isReflowable?await og.create(Fe({publication:u,headerMenu:o,delegate:v},t.pagebreak)):void 0,W=n.enableLineFocus?await Gd.create(Fe({publication:u,delegate:v,highlighter:y},t.lineFocus)):void 0,ye=n.enableHistory?await lg.create({annotator:p,publication:u,delegate:v,headerMenu:o}):void 0,be=n.enableCitations?await Jd.create(Fe({publication:u,delegate:v,highlighter:y},t.citations)):void 0;return new Yo(S,v,y,b,w,T,C,_,P,I,D,U,k,N,W,ye,be)}get hasMediaOverlays(){return this.navigator.hasMediaOverlays}get tableOfContents(){return al(this.navigator.tableOfContents())??[]}get readingOrder(){return al(this.navigator.readingOrder())??[]}get bookmarks(){return this.bookmarkModule?.getBookmarks()??[]}get annotations(){return this.annotationModule?.getAnnotations()}get currentResource(){return this.navigator.currentResource()}get mostRecentNavigatedTocItem(){return this.navigator.mostRecentNavigatedTocItem()}get totalResources(){return this.navigator.totalResources()}get publicationLanguage(){return this.navigator.publication.Metadata.Language}get currentSettings(){return this.settings.currentSettings}isTTSIncrementable(t){return t==="pitch"||t==="rate"||t==="volume"}isMOIncrementable(t){return t==="mo_rate"||t==="mo_volume"}get currentLocator(){return this.navigator.currentLocator()}get positions(){return this.navigator.positions()}get atStart(){return this.navigator.atStart()}get atEnd(){return this.navigator.atEnd()}async applyLineFocusSettings(t){if(t.lines&&this.lineFocusModule){let n=this.lineFocusModule.properties.lines??1;this.lineFocusModule.index=this.lineFocusModule.index*n/parseInt(t.lines),this.lineFocusModule.index=Math.abs(parseInt(this.lineFocusModule.index.toFixed())),this.lineFocusModule.properties.lines=parseInt(t.lines),this.lineFocusModule.isActive&&await this.lineFocusModule.enableLineFocus()}t.debug!==void 0&&this.lineFocusModule&&(this.lineFocusModule.isDebug=t.debug,this.lineFocusModule.isActive&&await this.lineFocusModule.enableLineFocus())}lineUp(){this.lineFocusModule?.lineUp()}lineDown(){this.lineFocusModule?.lineDown()}async enableLineFocus(){await this.lineFocusModule?.enableLineFocus()}async lineFocus(t){t?await this.lineFocusModule?.enableLineFocus():this.lineFocusModule?.disableLineFocus()}disableLineFocus(){this.lineFocusModule?.disableLineFocus()}};function dN(i,t){return t.isFixedLayout&&(i.enableAnnotations=!1,i.enableSearch=!1,i.enableTTS=!1,i.enableDefinitions=!1,i.enablePageBreaks=!1,i.enableLineFocus=!1),t.sample?.isSampleRead&&(i.enableAnnotations=!1,i.enableSearch=!1,i.enableTTS=!1,i.enableDefinitions=!1,i.enableTimeline=!1,i.enableMediaOverlays=!1,i.enablePageBreaks=!1,i.enableLineFocus=!1),i}var fN=Yo,hN=Yo.load;return pN;})();
82
+ `;var zd=Je(to());A();var Ks=class{constructor(t){this.onBackwardSwipe=()=>{};this.onForwardSwipe=()=>{};this.setupEvents=t=>{let n=null,r=null,o=this;t&&(t.addEventListener("touchstart",function(a){a.changedTouches.length===1&&(n=a)},!1),t.addEventListener("touchend",function(a){if(a.changedTouches.length!==1||!n)return;let l=n.changedTouches[0],u=a.changedTouches[0];if(!l)return;let d=window.devicePixelRatio,f=(l.clientX-u.clientX)/d,m=(l.clientY-u.clientY)/d;if(Math.abs(f)<Ks.TAP_TOLERANCE&&Math.abs(m)<Ks.TAP_TOLERANCE){if(r){n=null,r=null;return}if(a.timeStamp-n.timeStamp>Ks.LONG_PRESS_MS){n=null,r=null;return}n=null,r=a;return}if(r=null,a.timeStamp-n.timeStamp>Ks.SLOW_SWIPE_MS){n=null;return}let p=(l.clientY-u.clientY)/(l.clientX-u.clientX);if(Math.abs(p)>.5){n=null;return}f<0?o.onBackwardSwipe(a):o.onForwardSwipe(a),n=null},!1))};this.navigator=t}},Vo=Ks;Vo.TAP_TOLERANCE=10,Vo.LONG_PRESS_MS=500,Vo.SLOW_SWIPE_MS=500;A();var $d=class{constructor(t){this.onBackwardSwipe=()=>{};this.onForwardSwipe=()=>{};this.setupEvents=t=>{t&&(this.focusin(t),this.keydown(t))};this.focusin=t=>{let n=this;t.addEventListener("focusin",function(r){n.navigator.view?.snap(r.target)},!0)};this.keydown=t=>{let n=this;this.navigator.rights.customKeyboardEvents||t.addEventListener("keydown",function(r){let o=r.target;if(/input|select|option|textarea/i.test(o.tagName)||!(o.ownerDocument||o).defaultView.getSelection().isCollapsed)return;switch(r.key){case"ArrowRight":n.onForwardSwipe(r);break;case"ArrowLeft":n.onBackwardSwipe(r);break}},!1)};this.navigator=t}};A();var C3=Je(to()),Ud=class{constructor(t){this.enforceSampleRead=(0,C3.debounce)(t=>{let n=Math.round(t.locations.totalProgression*100),r=!1;this.delegate.sample?.limit&&(r=n<=this.delegate.sample?.limit,this.delegate.view?.layout==="fixed"&&!r&&this.delegate.sample?.minimum&&t.locations.position<=this.delegate.sample?.minimum&&(r=!0));let o={37:1,38:0,39:1,40:1,32:1,33:1,34:1,35:1,36:1};function a(v){v.preventDefault()}function l(v){o[v.keyCode]&&!r&&a(v)}let u=!1,d=Object.defineProperty&&Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("test",function(){},d);let f=u?{passive:!1}:!1;function m(v){v=v||window.event;let y=Math.max(-1,Math.min(1,v.wheelDelta||-v.detail));return y===-1&&!r&&v.preventDefault(),!1}let p;function E(v){v=v||window.event;let y=v.target||v.srcElement,b=v.touches[0].clientY;if(!(b>p)){if(b<p&&!r)return y.className.match(/\baltNav\b/)||(v.returnValue=!1,v.cancelable&&(v.cancelBubble=!0),v.preventDefault&&v.cancelable&&(v.preventDefault(),v.stopPropagation())),!1}return p=b,!1}function S(v){return v=v||window.event,p=v.touches[0].clientY,!1}window.addEventListener("mousewheel",m,f),window.addEventListener("DOMMouseScroll",m,f),window.addEventListener("keydown",l,f),window.addEventListener("touchmove",E,f),window.addEventListener("touchstart",S,f),r?(this.delegate.iframes[0].focus(),this.delegate.errorMessage&&(this.delegate.errorMessage.style.display="none",this.delegate.errorMessage.style.removeProperty("background-color"))):(this.delegate.iframes[0].blur(),this.delegate.errorMessage&&(this.delegate.errorMessage.style.display="block",this.delegate.errorMessage.style.backgroundColor="rgb(255, 255, 255)",this.delegate.errorMessage.innerHTML=this.delegate.sample?.popup??""))},300);this.delegate=t}};var M3=Je(R3()),Yn=Je(Dt()),Ln=class extends M3.default{constructor(t,n=void 0,r=void 0,o,a,l,u,d,f,m,p,E){super();this.iframes=[];this.sideNavExpanded=!1;this.currentChapterLink={href:""};this.currentSpreadLinks={};this.rights={autoGeneratePositions:!1,enableAnnotations:!1,enableBookmarks:!1,enableContentProtection:!1,enableDefinitions:!1,enableLineFocus:!1,enableMediaOverlays:!1,enablePageBreaks:!1,enableSearch:!1,enableTTS:!1,enableTimeline:!1,customKeyboardEvents:!1,enableHistory:!1,enableCitations:!1};this.didInitKeyboardEventHandler=!1;this.onResize=()=>{clearTimeout(this.timeout),this.timeout=setTimeout(this.handleResize.bind(this),200)};this.reload=async()=>{let t;if(this.annotator&&(t=await this.annotator.getLastReadingPosition()),t){let n=this.publication.getAbsoluteHref(t.href);Yn.default.log(t.href),Yn.default.log(n),t.href=n,await this.navigate(t)}};this.savePosition=(0,zd.debounce)(()=>{this.annotator&&this.saveCurrentReadingPosition()},200);this.checkResourcePosition=(0,zd.debounce)(()=>{this.view?.atStart()&&this.view?.atEnd()?(this.api?.resourceFitsScreen&&this.api?.resourceFitsScreen(),this.emit("resource.fits")):this.view?.atEnd()?(this.api?.resourceAtEnd&&this.api?.resourceAtEnd(),this.emit("resource.end")):this.view?.atStart()&&(this.api?.resourceAtStart&&this.api?.resourceAtStart(),this.emit("resource.start"))},200);this.settings=t,this.annotator=n,this.view=t.view,this.view.attributes=f,this.view.delegate=this,this.eventHandler=new pd(this),this.touchEventHandler=new Vo(this),this.keyboardEventHandler=new $d(this),this.initialLastReadingPosition=r,this.publication=o,this.api=a,this.rights=l??{autoGeneratePositions:!1,enableAnnotations:!1,enableBookmarks:!1,enableContentProtection:!1,enableDefinitions:!1,enableLineFocus:!1,enableMediaOverlays:!1,enablePageBreaks:!1,enableSearch:!1,enableTTS:!1,enableTimeline:!1,customKeyboardEvents:!1,enableHistory:!1,enableCitations:!1},this.tts=u,this.injectables=d,this.attributes=f||{margin:0},this.services=m,this.sample=p,this.requestConfig=E,this.sampleReadEventHandler=new Ud(this)}static async create(t){let n=new this(t.settings,t.annotator||void 0,t.initialLastReadingPosition||void 0,t.publication,t.api,t.rights,t.tts,t.injectables,t.attributes||{margin:0},t.services,t.sample,t.requestConfig);return await n.start(t.mainElement,t.headerMenu,t.footerMenu),new Promise(r=>r(n))}stop(){Yn.default.log("Iframe navigator stop"),we(this.previousChapterAnchorElement,"click",this.handlePreviousChapterClick.bind(this)),we(this.nextChapterAnchorElement,"click",this.handleNextChapterClick.bind(this)),we(this.previousChapterTopAnchorElement,"click",this.handlePreviousPageClick.bind(this)),we(this.nextChapterBottomAnchorElement,"click",this.handleNextPageClick.bind(this)),we(this.previousPageAnchorElement,"click",this.handlePreviousPageClick.bind(this)),we(this.nextPageAnchorElement,"click",this.handleNextPageClick.bind(this)),we(this.tryAgainButton,"click",this.tryAgain.bind(this)),we(this.goBackButton,"click",Ln.goBack.bind(this)),we(this.espandMenuIcon,"click",this.handleEditClick.bind(this)),we(window,"resize",this.onResize),this.iframes.forEach(t=>{we(t,"resize",this.onResize)})}async start(t,n,r){this.headerMenu=n,this.mainElement=t;try{let S=dt(t,"main#iframe-wrapper");S.style.overflow="auto";let v=de(t,"main#iframe-wrapper iframe"),y=de(t,"#second");if(v&&this.iframes.push(v),y&&this.iframes.push(y),window.matchMedia("screen and (max-width: 600px)").matches&&(this.settings.columnCount=1),this.iframes.length===0){S.style.overflow="auto";let b=document.createElement("iframe");if(b.setAttribute("SCROLLING","no"),b.setAttribute("allowtransparency","true"),this.iframes.push(b),this.publication.isFixedLayout?(this.spreads=document.createElement("div"),this.firstSpread=document.createElement("div"),this.spreads.style.display="flex",this.spreads.style.alignItems="center",this.spreads.style.justifyContent="center",this.spreads.appendChild(this.firstSpread),this.firstSpread.appendChild(this.iframes[0]),S.appendChild(this.spreads)):(b.setAttribute("height","100%"),b.setAttribute("width","100%"),S.appendChild(this.iframes[0])),this.publication.isFixedLayout)if(this.settings.columnCount!==1&&!window.matchMedia("screen and (max-width: 600px)").matches){let w=document.createElement("div");this.spreads.appendChild(w);let O=document.createElement("iframe");O.setAttribute("SCROLLING","no"),O.setAttribute("allowtransparency","true"),O.style.opacity="1",O.style.border="none",O.style.overflow="hidden",this.iframes.push(O),w.appendChild(this.iframes[1]),this.firstSpread.style.clipPath="polygon(0% -20%, 100% -20%, 100% 120%, -20% 120%)",this.firstSpread.style.boxShadow="0 0 8px 2px #ccc",w.style.clipPath="polygon(0% -20%, 100% -20%, 120% 100%, 0% 120%)",w.style.boxShadow="0 0 8px 2px #ccc"}else this.firstSpread.style.clipPath="polygon(0% -20%, 100% -20%, 120% 100%, -20% 120%)",this.firstSpread.style.boxShadow="0 0 8px 2px #ccc";else this.iframes[0].style.paddingTop=(this.attributes?.iframePaddingTop??0)+"px"}if(this.publication.isFixedLayout){let b=S.clientHeight;var o=this.iframes[0].parentElement?.parentElement;o.style.height=b+40+"px"}else this.iframes.length===2&&this.iframes.pop();if(this.loadingMessage=de(t,"#reader-loading"),this.loadingMessage&&(this.loadingMessage.innerHTML=_3,this.loadingMessage.style.display="none"),this.errorMessage=de(t,"#reader-error"),this.errorMessage&&(this.errorMessage.innerHTML=T3,this.errorMessage.style.display="none"),this.tryAgainButton=de(t,"button[class=try-again]"),this.goBackButton=de(t,"button[class=go-back]"),this.infoTop=de(t,"div[class='info top']"),this.infoBottom=de(t,"div[class='info bottom']"),this.headerMenu&&(this.bookTitle=de(this.headerMenu,"#book-title")),this.infoBottom&&(this.chapterTitle=de(this.infoBottom,"span[class=chapter-title]")),this.infoBottom&&(this.chapterPosition=de(this.infoBottom,"span[class=chapter-position]")),this.infoBottom&&(this.remainingPositions=de(this.infoBottom,"span[class=remaining-positions]")),this.headerMenu&&(this.espandMenuIcon=de(this.headerMenu,"#expand-menu")),this.headerMenu&&(this.links=de(this.headerMenu,"ul.links.top")),this.headerMenu&&(this.linksTopLeft=de(this.headerMenu,"#nav-mobile-left")),this.headerMenu&&(this.tocView=de(this.headerMenu,"#container-view-toc")),this.headerMenu&&(this.landmarksView=de(this.headerMenu,"#container-view-landmarks")),this.headerMenu&&(this.landmarksSection=de(this.headerMenu,"#sidenav-section-landmarks")),this.headerMenu&&(this.pageListView=de(this.headerMenu,"#container-view-pagelist")),r&&(this.linksBottom=de(r,"ul.links.bottom")),r&&(this.linksMiddle=de(r,"ul.links.middle")),this.headerMenu&&(this.nextChapterAnchorElement=de(this.headerMenu,"a[rel=next]")),this.headerMenu&&(this.nextChapterBottomAnchorElement=de(t,"#next-chapter")),r&&(this.nextPageAnchorElement=de(r,"a[rel=next]")),this.headerMenu&&(this.previousChapterAnchorElement=de(this.headerMenu,"a[rel=prev]")),this.headerMenu&&(this.previousChapterTopAnchorElement=de(t,"#previous-chapter")),r&&(this.previousPageAnchorElement=de(r,"a[rel=prev]")),this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.newPosition=void 0,this.newElementId=void 0,this.isBeingStyled=!0,this.isLoading=!0,this.settings.setIframe(this.iframes[0]),this.settings.onSettingsChange(this.handleResize.bind(this)),this.settings.onColumnSettingsChange(this.handleNumberOfIframes.bind(this)),this.settings.onViewChange(this.updateBookView.bind(this)),this.initialLastReadingPosition&&this.annotator?.initLastReadingPosition(this.initialLastReadingPosition),this.headerMenu){var a=de(this.headerMenu,"#menu-button-search"),l=de(this.headerMenu,"#menu-button-tts"),u=de(this.headerMenu,"#menu-button-bookmark"),d=de(this.headerMenu,"#menu-button-play"),f=de(this.headerMenu,"#menu-button-pause"),m=de(this.headerMenu,"#menu-button-mediaoverlay");if(!this.rights.enableBookmarks){u&&u.parentElement?.style.setProperty("display","none");var p=de(this.headerMenu,"#sidenav-section-bookmarks");p&&p.style.setProperty("display","none")}if(!this.rights.enableAnnotations){var E=de(this.headerMenu,"#sidenav-section-highlights");E&&E.style.setProperty("display","none")}this.rights.enableTTS||l&&l.parentElement?.style.setProperty("display","none"),this.rights.enableSearch||a&&a.parentElement?.style.setProperty("display","none"),a&&this.view?.delegate.publication.isFixedLayout&&a.parentElement?.style.setProperty("display","none"),this.hasMediaOverlays?(d&&d.parentElement?.style.removeProperty("display"),f&&f.parentElement?.style.removeProperty("display"),m&&m.parentElement?.style.removeProperty("display")):(d&&d.parentElement?.style.setProperty("display","none"),f&&f.parentElement?.style.setProperty("display","none"),m&&m.parentElement?.style.setProperty("display","none"))}else a&&a.parentElement?.style.setProperty("display","none"),l&&l.parentElement?.style.setProperty("display","none"),u&&u.parentElement?.style.setProperty("display","none");return this.setupEvents(),await this.loadManifest()}catch(S){return Yn.default.error(S),this.abortOnError(S),Promise.reject(S)}}setupEvents(){for(let t of this.iframes)Z(t,"load",this.handleIFrameLoad.bind(this));Z(this.previousChapterAnchorElement,"click",this.handlePreviousChapterClick.bind(this)),Z(this.nextChapterAnchorElement,"click",this.handleNextChapterClick.bind(this)),Z(this.previousChapterTopAnchorElement,"click",this.handlePreviousPageClick.bind(this)),Z(this.nextChapterBottomAnchorElement,"click",this.handleNextPageClick.bind(this)),Z(this.previousPageAnchorElement,"click",this.handlePreviousPageClick.bind(this)),Z(this.nextPageAnchorElement,"click",this.handleNextPageClick.bind(this)),Z(this.tryAgainButton,"click",this.tryAgain.bind(this)),Z(this.goBackButton,"click",Ln.goBack.bind(this)),Z(this.espandMenuIcon,"click",this.handleEditClick.bind(this)),Z(window,"resize",this.onResize);for(let t of this.iframes)Z(t,"resize",this.onResize)}updateBookView(){this.view?.layout==="fixed"?(this.nextPageAnchorElement&&(this.nextPageAnchorElement.style.display="none"),this.previousPageAnchorElement&&(this.previousPageAnchorElement.style.display="none"),this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.keyboardEventHandler&&(this.keyboardEventHandler.onBackwardSwipe=this.handlePreviousChapterClick.bind(this),this.keyboardEventHandler.onForwardSwipe=this.handleNextChapterClick.bind(this)),this.touchEventHandler&&(this.touchEventHandler.onBackwardSwipe=this.handlePreviousPageClick.bind(this),this.touchEventHandler.onForwardSwipe=this.handleNextPageClick.bind(this))):(this.settings.isPaginated().then(t=>{if(t)this.view.height=$r()-40-(this.attributes?.margin??0),this.infoBottom&&this.infoBottom.style.removeProperty("display"),document.body.onscroll=()=>{},this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.nextPageAnchorElement&&(this.nextPageAnchorElement.style.display="unset"),this.previousPageAnchorElement&&(this.previousPageAnchorElement.style.display="unset"),this.chapterTitle&&(this.chapterTitle.style.display="inline"),this.chapterPosition&&(this.chapterPosition.style.display="inline"),this.remainingPositions&&(this.remainingPositions.style.display="inline"),this.eventHandler&&(this.eventHandler.onInternalLink=this.handleInternalLink.bind(this),this.eventHandler.onClickThrough=this.handleClickThrough.bind(this)),this.touchEventHandler&&(this.touchEventHandler.onBackwardSwipe=this.handlePreviousPageClick.bind(this),this.touchEventHandler.onForwardSwipe=this.handleNextPageClick.bind(this)),this.keyboardEventHandler&&(this.keyboardEventHandler.onBackwardSwipe=this.handlePreviousPageClick.bind(this),this.keyboardEventHandler.onForwardSwipe=this.handleNextPageClick.bind(this));else{this.infoBottom&&(this.infoBottom.style.display="none"),this.nextPageAnchorElement&&(this.nextPageAnchorElement.style.display="none"),this.previousPageAnchorElement&&(this.previousPageAnchorElement.style.display="none"),this.view?.layout==="fixed"?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none")):this.view?.atStart()&&this.view?.atEnd()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):this.view?.atEnd()?(this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset")):this.view?.atStart()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"));let n=(0,zd.debounce)(()=>{this.isScrolling=!1},200),r=dt(document,"#iframe-wrapper");r.onscroll=async()=>{this.isScrolling=!0,await this.savePosition(),this.view?.atEnd(),this.view?.layout==="fixed"?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none")):(this.settings.isPaginated().then(o=>{o||(this.view?.atStart()&&this.view?.atEnd()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):this.view?.atEnd()?(this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset")):this.view?.atStart()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none")))}),this.checkResourcePosition()),n()},this.chapterTitle&&(this.chapterTitle.style.display="none"),this.chapterPosition&&(this.chapterPosition.style.display="none"),this.remainingPositions&&(this.remainingPositions.style.display="none"),this.eventHandler&&(this.eventHandler.onInternalLink=this.handleInternalLink.bind(this),this.eventHandler.onClickThrough=this.handleClickThrough.bind(this)),this.touchEventHandler&&(this.touchEventHandler.onBackwardSwipe=this.handlePreviousPageClick.bind(this),this.touchEventHandler.onForwardSwipe=this.handleNextPageClick.bind(this)),this.keyboardEventHandler&&(this.keyboardEventHandler.onBackwardSwipe=this.handlePreviousPageClick.bind(this),this.keyboardEventHandler.onForwardSwipe=this.handleNextPageClick.bind(this))}}),setTimeout(async()=>{await this.highlighter?.prepareContainers(this.iframes[0].contentWindow),this.pageBreakModule!==void 0&&(await this.highlighter?.destroyHighlights(qe.PageBreak),await this.pageBreakModule.drawPageBreaks()),this.annotationModule!==void 0&&await this.annotationModule.drawHighlights(),this.bookmarkModule!==void 0&&await this.bookmarkModule.drawBookmarks(),this.rights.enableSearch&&this.searchModule!==void 0&&this.highlighter!==void 0&&(await this.highlighter.destroyHighlights(qe.Search),this.searchModule.drawSearch()),this.rights.enableDefinitions&&this.definitionsModule!==void 0&&this.highlighter!==void 0&&await this.definitionsModule.drawDefinitions()},200))}async loadManifest(){try{let t=(d,f,m=!1)=>{var p=document.createElement("ul");m&&(p=document.createElement("ol")),p.className="sidenav-toc";for(let E of f){let S=document.createElement("li"),v=document.createElement("a"),y=document.createElement("span");v.className="chapter-link",v.tabIndex=-1;let b="";E.Href?(b=this.publication.getAbsoluteHref(E.Href),v.href=b,v.innerHTML=E.Title||"",S.appendChild(v)):(y.innerHTML=E.Title||"",y.className="chapter-title",S.appendChild(y)),E.Children&&E.Children.length>0&&t(S,E.Children,!0),p.appendChild(S)}Z(p,"click",E=>{if(E.preventDefault(),E.stopPropagation(),E.target&&E.target.tagName.toLowerCase()==="a"){let S=E.target;if(S.className.indexOf("active")!==-1)this.hideView();else{let v={progression:0};if(S.href.indexOf("#")!==-1){let b=S.href.slice(S.href.indexOf("#")+1);b!==void 0&&(v={fragment:b})}let y={href:S.href,locations:v,type:S.type,title:S.title};this.hideView(),this.navigate(y)}}}),d.appendChild(p)},n=this.publication.tableOfContents,r=this.publication.landmarks,o=this.publication.pageList;this.tocView&&(n.length?t(this.tocView,n):this.tocView.parentElement?.parentElement?.removeChild(this.tocView.parentElement)),this.pageListView&&(o?.length?t(this.pageListView,o):this.pageListView.parentElement?.parentElement?.removeChild(this.pageListView.parentElement)),this.landmarksView&&(r?.length?t(this.landmarksView,r):this.landmarksSection.parentElement?.removeChild(this.landmarksSection));let a;this.annotator&&(a=await this.annotator.getLastReadingPosition());let l=this.publication.getStartLink(),u;if(l&&l.Href&&(u=this.publication.getAbsoluteHref(l.Href)),a){let d=this.publication.getAbsoluteHref(a.href);Yn.default.log(a.href),Yn.default.log(d),a.href=d,await this.navigate(a)}else if(u){let d={href:u,locations:{progression:0},created:new Date,title:l?.Title};await this.navigate(d)}return new Promise(d=>d())}catch(t){return Yn.default.error(t),this.abortOnError(t),new Promise((n,r)=>r(t)).catch(()=>{})}}async handleIFrameLoad(){this.errorMessage&&(this.errorMessage.style.display="none"),this.showLoadingMessageAfterDelay();try{let t=0;this.newPosition&&(t=this.newPosition.locations.progression),await this.handleResize(),this.updateBookView(),await this.settings.applyProperties();let n=this.currentChapterLink.href;if(n){let d=this.publication.getPreviousSpineItem(n);d&&d.Href&&(this.previousChapterLink={href:d.Href,title:d.Title,type:d.TypeLink})}this.previousChapterAnchorElement&&(this.previousChapterLink&&this.previousChapterLink.href?(this.previousChapterAnchorElement.href=this.publication.getAbsoluteHref(this.previousChapterLink.href),this.previousChapterAnchorElement.className=this.previousChapterAnchorElement.className.replace(" disabled","")):(this.previousChapterAnchorElement.removeAttribute("href"),this.previousChapterAnchorElement.className+=" disabled"));let r=this.publication.getNextSpineItem(n);r?this.nextChapterLink={href:r.Href,title:r.Title,type:r.TypeLink}:this.nextChapterLink=void 0,this.nextChapterAnchorElement&&(this.nextChapterLink&&this.nextChapterLink.href?(this.nextChapterAnchorElement.href=this.publication.getAbsoluteHref(this.nextChapterLink.href),this.nextChapterAnchorElement.className=this.nextChapterAnchorElement.className.replace(" disabled","")):(this.nextChapterAnchorElement.removeAttribute("href"),this.nextChapterAnchorElement.className+=" disabled")),this.historyModule&&this.historyModule.setup(),this.currentTocUrl!==void 0?this.setActiveTOCItem(this.currentTocUrl):this.setActiveTOCItem(n),this.publication.Metadata.Title&&this.bookTitle&&(this.bookTitle.innerHTML=this.publication.Metadata.Title.toString());let o=this.publication.getSpineItem(n);o!==void 0&&(this.currentChapterLink.title=o.Title,this.currentChapterLink.type=o.TypeLink);let a=this.publication.getTOCItem(n);this.currentTocUrl!==void 0&&(a=this.publication.getTOCItem(this.currentTocUrl)),!this.currentChapterLink.title&&a!==void 0&&a.Title&&(this.currentChapterLink.title=a.Title),!this.currentChapterLink.type&&a!==void 0&&a.TypeLink&&(this.currentChapterLink.title=a.Title),this.currentChapterLink.title?this.chapterTitle&&(this.chapterTitle.innerHTML="("+this.currentChapterLink.title+")"):this.chapterTitle&&(this.chapterTitle.innerHTML="(Current Chapter)"),await this.injectInjectablesIntoIframeHead(),this.highlighter!==void 0&&await this.highlighter.initialize();let u=this.iframes[0].contentDocument?.body?.querySelector("details");if(u){let d=this;u.addEventListener("toggle",async f=>{await d.view?.setIframeHeight?.(this.iframes[0])})}if(this.rights.enableContentProtection&&this.contentProtectionModule!==void 0&&await this.contentProtectionModule.initialize(),this.eventHandler){for(let d of this.iframes)this.eventHandler.setupEvents(d.contentDocument),this.touchEventHandler.setupEvents(d.contentDocument),this.keyboardEventHandler.setupEvents(d.contentDocument);this.touchEventHandler.setupEvents(this.errorMessage),this.didInitKeyboardEventHandler||(this.keyboardEventHandler.keydown(document),this.didInitKeyboardEventHandler=!0)}if(this.view?.layout!=="fixed"&&this.view?.isScrollMode()&&(this.iframes[0].height="0",this.view?.setIframeHeight?.(this.iframes[0])),this.annotationModule!==void 0&&await this.annotationModule.initialize(),this.bookmarkModule!==void 0&&await this.bookmarkModule.initialize(),this.rights.enableTTS)for(let d of this.iframes){let f=d.contentDocument?.body;this.ttsModule!==void 0&&await this.ttsModule.initialize(f)}return this.timelineModule!==void 0&&await this.timelineModule.initialize(),this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&await this.mediaOverlayModule.initialize(),setTimeout(async()=>{if(this.newElementId){let d=this.iframes[0].contentDocument.getElementById(this.newElementId);this.view?.goToElement?.(d),this.newElementId=void 0}else if(this.newPosition&&this.newPosition.highlight){let d=this.newPosition.highlight?.selectionInfo.rangeInfo.startContainerElementCssSelector;d&&this.view?.goToCssSelector(d)}else t&&t>=0&&this.view?.goToProgression(t);if(this.newPosition=void 0,this.rights?.enableContentProtection&&this.contentProtectionModule!==void 0&&await this.contentProtectionModule.recalculate(10),this.hideLoadingMessage(),this.showIframeContents(),this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays){let d=this.currentLink();await this.mediaOverlayModule?.initializeResource(d)}await this.updatePositionInfo(),await this.view?.setSize(),setTimeout(()=>{this.mediaOverlayModule!==void 0&&(this.mediaOverlayModule.settings.resourceReady=!0)},300)},200),new Promise(d=>d())}catch(t){return Yn.default.error(t),this.abortOnError(t),Promise.reject(t)}}async injectInjectablesIntoIframeHead(){let t=[],n=r=>{let o=new Promise((a,l)=>{r.onload=()=>{a(!0)},r.onerror=u=>{let d=typeof u=="string"?u:`Injectable failed to load at: ${"href"in r?r.href:r.src}`;l(new Error(d))}});t.push(o)};for(let r of this.iframes){let o=r.contentDocument?.head;o&&(r.contentDocument.getElementsByTagName("base").length===0&&o.insertBefore(Ln.createBase(this.currentChapterLink.href),o.firstChild),this.injectables?.forEach(l=>{if(l.type==="style"){if(l.fontFamily){if(this.settings.initAddedFont(),!l.systemFont&&l.url){let u=Ln.createCssLink(l.url);o.appendChild(u),n(u)}}else if(l.r2before&&l.url){let u=Ln.createCssLink(l.url);o.insertBefore(u,o.firstChild),n(u)}else if(l.r2default&&l.url){let u=Ln.createCssLink(l.url);o.insertBefore(u,o.childNodes[1]),n(u)}else if(l.r2after&&l.url){l.appearance&&this.settings.initAddedAppearance();let u=Ln.createCssLink(l.url);o.appendChild(u),n(u)}else if(l.url){let u=Ln.createCssLink(l.url);o.appendChild(u),n(u)}}else if(l.type==="script"&&l.url){let u=Ln.createJavascriptLink(l.url,l.async??!1);o.appendChild(u),n(u)}}))}t.length!==0&&await Promise.all(t)}abortOnError(t){if(this.api?.onError){let n=t instanceof Error?t:typeof t=="string"?new Error(t):new Error("An unknown error occurred in the IFrameNavigator.");this.api.onError(n)}else this.errorMessage&&(this.errorMessage.style.display="block"),this.isLoading&&this.hideLoadingMessage()}tryAgain(){this.precessContentForIframe()}precessContentForIframe(){let t=this;var n=this.publication.getSpineIndex(this.currentChapterLink.href),r=(n??0)%2==1;this.showLoadingMessageAfterDelay();function o(d,f){let p=new DOMParser().parseFromString(d,"application/xhtml+xml");p.head&&p.getElementsByTagName("base").length===0&&p.head.insertBefore(Ln.createBase(f),p.head.firstChild);let E=p.documentElement.outerHTML,S=t.iframes[0].contentDocument;S&&(S.open(),S.write(E),S.close())}function a(d,f){let p=new DOMParser().parseFromString(d,"application/xhtml+xml");p.head&&p.getElementsByTagName("base").length===0&&p.head.insertBefore(Ln.createBase(f),p.head.firstChild);let E=p.documentElement.outerHTML,S=t.iframes[1].contentDocument;S&&(S.open(),S.write(E),S.close())}let l=new URL(this.currentChapterLink.href),u=window.location.protocol===l.protocol&&window.location.port===l.port&&window.location.hostname===l.hostname;if(this.api?.getContent)if(this.publication.isFixedLayout)if(this.settings.columnCount!==1)if(r){if(this.currentSpreadLinks.left={href:this.currentChapterLink.href},this.api?.getContent(this.currentChapterLink.href).then(d=>{d===void 0?u?this.iframes[0].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(f=>f.text()).then(async f=>{o.call(this,f,this.currentChapterLink.href)}):o.call(this,d,this.currentChapterLink.href)}),this.iframes.length===2)if((n??0)<this.publication.readingOrder.length-1){let d=this.publication.getNextSpineItem(this.currentChapterLink.href);if(d){let f=this.publication.getAbsoluteHref(d.Href);this.currentSpreadLinks.right={href:f},this.api?.getContent(f).then(m=>{m===void 0?u?this.iframes[1].src=f:fetch(f,this.requestConfig).then(p=>p.text()).then(async p=>{a.call(this,p,f),this.currentSpreadLinks.right={href:f}}):a.call(this,m,f)})}}else this.iframes[1].src="about:blank"}else{if((n??0)>0){let d=this.publication.getPreviousSpineItem(this.currentChapterLink.href);if(d){let f=this.publication.getAbsoluteHref(d.Href);this.currentSpreadLinks.left={href:f},this.api?.getContent(f).then(m=>{m===void 0?u?this.iframes[0].src=f:fetch(f,this.requestConfig).then(p=>p.text()).then(async p=>{o.call(this,p,f)}):o.call(this,m,f)})}}else this.iframes[0].src="about:blank";this.iframes.length===2&&this.publication.isFixedLayout&&(this.currentSpreadLinks.right={href:this.currentChapterLink.href},this.api.getContent(this.currentChapterLink.href).then(d=>{d===void 0?u?this.iframes[1].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(f=>f.text()).then(async f=>{a.call(this,f,this.currentChapterLink.href)}):a.call(this,d,this.currentChapterLink.href)}))}else this.currentSpreadLinks.left={href:this.currentChapterLink.href},this.api?.getContent(this.currentChapterLink.href).then(d=>{d===void 0?u?this.iframes[0].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(f=>f.text()).then(async f=>{o.call(this,f,this.currentChapterLink.href)}):o.call(this,d,this.currentChapterLink.href)});else this.api?.getContent(this.currentChapterLink.href).then(d=>{this.currentSpreadLinks.left={href:this.currentChapterLink.href},d===void 0?u?this.iframes[0].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(f=>f.text()).then(async f=>{o.call(this,f,this.currentChapterLink.href)}):o.call(this,d,this.currentChapterLink.href)});else if(this.publication.isFixedLayout)if(this.settings.columnCount!==1)if(r){if(u){if(this.iframes[0].src=this.currentChapterLink.href,this.currentSpreadLinks.left={href:this.currentChapterLink.href},this.iframes.length===2)if((n??0)<this.publication.readingOrder.length-1){let d=this.publication.getNextSpineItem(this.currentChapterLink.href);if(d){let f=this.publication.getAbsoluteHref(d.Href);this.iframes[1].src=f,this.currentSpreadLinks.right={href:f}}}else this.iframes[1].src="about:blank"}else if(fetch(this.currentChapterLink.href,this.requestConfig).then(d=>d.text()).then(async d=>{o.call(this,d,this.currentChapterLink.href)}),this.iframes.length===2)if((n??0)<this.publication.readingOrder.length-1){let d=this.publication.getNextSpineItem(this.currentChapterLink.href);if(d){let f=this.publication.getAbsoluteHref(d.Href);this.currentSpreadLinks.right={href:f},fetch(f,this.requestConfig).then(m=>m.text()).then(async m=>{a.call(this,m,f)})}}else this.iframes[1].src="about:blank"}else{if((n??0)>0){let d=this.publication.getPreviousSpineItem(this.currentChapterLink.href);if(d){let f=this.publication.getAbsoluteHref(d.Href);this.currentSpreadLinks.left={href:f},u?(this.iframes[0].src=f,this.iframes.length===2&&(this.iframes[1].src=this.currentChapterLink.href)):(fetch(f,this.requestConfig).then(m=>m.text()).then(async m=>{o.call(this,m,f)}),this.iframes.length===2&&(this.currentSpreadLinks.right={href:this.currentChapterLink.href},fetch(this.currentChapterLink.href,this.requestConfig).then(m=>m.text()).then(async m=>{a.call(this,m,this.currentChapterLink.href)})))}}else this.iframes[0].src="about:blank";this.iframes.length===2&&(this.currentSpreadLinks.right={href:this.currentChapterLink.href},u?this.iframes[1].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(d=>d.text()).then(async d=>{a.call(this,d,this.currentChapterLink.href)}))}else this.currentSpreadLinks.left={href:this.currentChapterLink.href},u?this.iframes[0].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(d=>d.text()).then(async d=>{o.call(this,d,this.currentChapterLink.href)});else this.currentSpreadLinks.left={href:this.currentChapterLink.href},u?this.iframes[0].src=this.currentChapterLink.href:fetch(this.currentChapterLink.href,this.requestConfig).then(d=>d.text()).then(async d=>{o.call(this,d,this.currentChapterLink.href)});this.publication.isFixedLayout&&setTimeout(()=>{let d,f,m;if(n===0&&this.iframes?.length===2?m=this.iframes[1].contentDocument:m=this.iframes[0].contentDocument,m&&m.body&&(d=getComputedStyle(m.body).height,f=getComputedStyle(m.body).width,parseInt(d?.replace("px",""))===0||parseInt(f?.replace("px",""))===0)){let w=Qt(m,"head");if(w){let O=de(w,"meta[name=viewport]");if(O){var p=O.content,E=p.split(",").reduce((T,C)=>{var[_,I]=C.match(/[^\s;=]+/g);return T[_]=isNaN(Number(I))?I:+I,T},{});d=E.height+"px",f=E.width+"px"}}}var S=n===0&&this.iframes.length===2?this.iframes[1].parentElement?.parentElement:this.iframes[0].parentElement?.parentElement;if(S&&f){var v=(parseInt(getComputedStyle(S).width)-100)/(this.iframes.length===2?parseInt(f?.replace("px",""))*2+200:parseInt(f?.replace("px",""))),y=(parseInt(getComputedStyle(S).height)-100)/parseInt(d?.replace("px","")),b=Math.min(v,y);S.style.transform="scale("+b+")";for(let w of this.iframes)w.style.height=d,w.style.width=f,w.parentElement&&(w.parentElement.style.height=d)}},400)}static goBack(){window.history.back()}handleEditClick(t){var n=t.target;if(this.headerMenu){var r=de(document,".sidenav");n.className.indexOf(" active")===-1?(n.className+=" active",r.className+=" expanded",n.innerText="unfold_less",this.sideNavExpanded=!0,this.bookmarkModule?.showBookmarks(),this.annotationModule?.showHighlights()):(n.className=n.className.replace(" active",""),r.className=r.className.replace(" expanded",""),n.innerText="unfold_more",this.sideNavExpanded=!1,this.bookmarkModule?.showBookmarks(),this.annotationModule?.showHighlights())}t.preventDefault(),t.stopPropagation()}get hasMediaOverlays(){return this.publication.hasMediaOverlays}startReadAloud(){this.rights.enableTTS&&this.ttsModule.speakPlay()}startReadAlong(){this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&this.mediaOverlayModule?.startReadAloud()}stopReadAloud(){this.rights.enableTTS&&this.highlighter?.stopReadAloud()}stopReadAlong(){this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&this.mediaOverlayModule?.stopReadAloud()}pauseReadAloud(){this.rights.enableTTS&&(this.ttsModule.speakPause(),this.annotationModule!==void 0&&this.annotationModule.drawHighlights())}pauseReadAlong(){this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&this.mediaOverlayModule?.pauseReadAloud()}resumeReadAloud(){this.rights.enableTTS&&this.ttsModule.speakResume()}resumeReadAlong(){this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&this.mediaOverlayModule?.resumeReadAloud()}totalResources(){return this.publication.readingOrder.length}mostRecentNavigatedTocItem(){return this.publication.getRelativeHref(this.currentTOCRawLink)}currentResource(){let t=this.currentChapterLink.href;return this.publication.getSpineIndex(t)}currentLink(){if(this.settings.columnCount!==1&&this.currentSpreadLinks.left!==void 0&&this.currentSpreadLinks.right!==void 0){let n=this.publication.getSpineItem(this.currentSpreadLinks.left.href),r=this.publication.getSpineItem(this.currentSpreadLinks.right.href);return[n,r]}let t=this.currentChapterLink.href;return[this.publication.getSpineItem(t)]}tableOfContents(){return this.publication.tableOfContents}readingOrder(){return this.publication.readingOrder}atStart(){return this.view?.atStart()??!1}atEnd(){return this.view?.atEnd()??!1}previousPage(){this.handlePreviousPageClick(void 0)}nextPage(){this.handleNextPageClick(void 0)}previousResource(){this.handlePreviousChapterClick(void 0)}nextResource(){this.handleNextChapterClick(void 0)}goTo(t){let n=t.locations??{progression:0};if(t.href.indexOf("#")!==-1){let a=t.href.slice(t.href.indexOf("#")+1);a!==void 0&&(n=jt(Fe({},n),{fragment:a}))}let r=Fe({},t);r.locations=n;let o=this.publication.getAbsoluteHref(t.href);Yn.default.log(t.href),Yn.default.log(o),r.href=o,this.stopReadAloud(),this.navigate(r)}currentLocator(){let t;if(this.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions){let n=this.publication.positionsByHref(this.publication.getRelativeHref(this.currentChapterLink.href)),r=Math.ceil((this.view?.getCurrentPosition()??0)*(n.length-1));t=n[r]}else{let n=this.publication.getTOCItem(this.currentChapterLink.href);n&&(this.currentTocUrl!==void 0&&(n=this.publication.getTOCItem(this.currentTocUrl)),n===void 0&&(n=this.publication.getTOCItemAbsolute(this.currentChapterLink.href)),n&&(t={href:n.Href,type:this.currentChapterLink.type,title:this.currentChapterLink.title,locations:{}}))}return t&&(t.locations.progression=this.view?.getCurrentPosition(),t.displayInfo={resourceScreenIndex:Math.round(this.view?.getCurrentPage()??0),resourceScreenCount:Math.round(this.view?.getPageCount()??0)}),t}positions(){return this.publication.positions?this.publication.positions:[]}goToPosition(t){if(this.publication.positions){let n=this.publication.positions.filter(r=>r.locations.position===parseInt(String(t)))[0];this.goTo(n)}}async goToPage(t){this.pageBreakModule!==void 0&&await this.pageBreakModule.goToPageNumber(t)}snapToSelector(t){let n=this.iframes[0].contentDocument;if(n){Yn.default.log(t);let r=n.querySelectorAll(t);r.length>0&&this.view?.snap(r[0])}}applyAttributes(t){this.attributes=t,this.view.attributes=t,this.handleResize()}handlePreviousPageClick(t){this.stopReadAloud(),this.view?.layout==="fixed"?this.handlePreviousChapterClick(t):(this.view?.atStart()?this.handlePreviousChapterClick(t):(this.view?.goToPreviousPage?.(),this.updatePositionInfo(),this.savePosition()),t&&(t.preventDefault(),t.stopPropagation()))}handleNextPageClick(t){let n=!0;if(this.sample?.isSampleRead&&this.publication.positions){let r=this.currentLocator(),o=Math.round((r.locations.totalProgression??0)*100);this.sample?.limit&&(n=o<=this.sample?.limit,this.view?.layout==="fixed"&&((!n&&this.sample?.minimum&&r.locations.position)??0<=(this.sample?.minimum??0))&&(n=!0))}(n&&this.sample?.isSampleRead&&this.publication.positions||!this.sample?.isSampleRead||!this.publication.positions)&&(this.stopReadAloud(),this.view?.layout==="fixed"?this.handleNextChapterClick(t):(this.view?.atEnd()?this.handleNextChapterClick(t):(this.view?.goToNextPage?.(),this.updatePositionInfo(),this.savePosition()),t&&(t.preventDefault(),t.stopPropagation()))),!n&&this.sample?.isSampleRead&&this.publication.positions&&t&&(t.preventDefault(),t.stopPropagation())}handleClickThrough(t){}handleInternalLink(t){let n=t.target,r={progression:0},o=n;if(o.href.indexOf("#")!==-1){let l=o.href.slice(o.href.indexOf("#")+1);l!==void 0&&(r={fragment:l})}let a={href:o.href,locations:r,type:o.type,title:o.title};t.preventDefault(),t.stopPropagation(),this.stopReadAloud(),this.navigate(a)}handleNumberOfIframes(){if(this.publication.isFixedLayout){if(this.settings.columnCount!==1&&!window.matchMedia("screen and (max-width: 600px)").matches){if(this.iframes.length===1){var t=document.createElement("iframe");t.setAttribute("SCROLLING","no"),t.setAttribute("allowtransparency","true"),t.style.opacity="1",t.style.border="none",t.style.overflow="hidden",this.iframes.push(t)}let n=document.createElement("div");this.spreads.appendChild(n),n.appendChild(this.iframes[1]),this.firstSpread.style.clipPath="polygon(0% -20%, 100% -20%, 100% 120%, -20% 120%)",this.firstSpread.style.boxShadow="0 0 8px 2px #ccc",n.style.clipPath="polygon(0% -20%, 100% -20%, 120% 100%, 0% 120%)",n.style.boxShadow="0 0 8px 2px #ccc"}else this.iframes.length===2&&(this.iframes.pop(),this.spreads.lastChild&&this.spreads.removeChild(this.spreads.lastChild)),this.firstSpread.style.clipPath="polygon(0% -20%, 100% -20%, 120% 100%, -20% 120%)",this.firstSpread.style.boxShadow="0 0 8px 2px #ccc";this.precessContentForIframe()}}async handleResize(){if(this.isScrolling)return;if(this.publication.isFixedLayout){var t=this.publication.getSpineIndex(this.currentChapterLink.href);let f=$r()-40-(this.attributes?.margin??0);var n=t===0&&this.iframes.length===2?this.iframes[1].parentElement?.parentElement:this.iframes[0].parentElement?.parentElement;if(n){n.style.height=f+40+"px";let m,p,E;t===0&&this.iframes?.length===2?E=this.iframes[1].contentDocument:E=this.iframes[0].contentDocument,E&&E.body&&(m=getComputedStyle(E.body).height,p=getComputedStyle(E.body).width);let S=Qt(E,"head");if(S){let v=de(S,"meta[name=viewport]");if(v){var r=v.content,o=r.split(",").reduce((y,b)=>{var[w,O]=b.match(/[^\s;=]+/g);return y[w]=isNaN(Number(O))?O:+O,y},{});(parseInt(o.height)!==0||parseInt(o.width)!==0)&&(m=o.height+"px",p=o.width+"px")}}var a=(parseInt(getComputedStyle(n).width)-100)/(this.iframes.length===2?parseInt(p?.replace("px",""))*2+200:parseInt(p?.replace("px",""))),l=(parseInt(getComputedStyle(n).height)-100)/parseInt(m?.replace("px","")),u=Math.min(a,l);n.style.transform="scale("+u+")";for(let v of this.iframes)v.style.height=m,v.style.width=p,v.parentElement&&(v.parentElement.style.height=m)}}let d=this.view?.getCurrentPosition();await this.settings.applyProperties(),this.infoTop&&(this.infoTop.style.height=0+"px"),this.infoTop&&(this.infoTop.style.minHeight=0+"px"),this.infoBottom&&(this.infoBottom.style.height=this.attributes?.bottomInfoHeight?this.attributes.bottomInfoHeight+"px":40+"px"),this.view?.layout!=="fixed"&&this.settings.isPaginated().then(f=>{f?(this.view.height=$r()-40-(this.attributes?.margin??0),this.infoBottom&&this.infoBottom.style.removeProperty("display")):this.infoBottom&&(this.infoBottom.style.display="none")}),setTimeout(()=>{this.view?.layout!=="fixed"&&this.view?.isScrollMode()&&this.view?.setIframeHeight?.(this.iframes[0])},100),setTimeout(async()=>{d&&this.view?.goToProgression(d),await this.updatePositionInfo(!1),this.annotationModule!==void 0&&await this.annotationModule.handleResize(),this.bookmarkModule!==void 0&&await this.bookmarkModule.handleResize(),this.searchModule!==void 0&&await this.searchModule.handleResize(),this.definitionsModule!==void 0&&await this.definitionsModule.handleResize(),this.pageBreakModule!==void 0&&await this.pageBreakModule.handleResize(),this.contentProtectionModule!==void 0&&this.contentProtectionModule.handleResize(),this.lineFocusModule!==void 0&&this.lineFocusModule.handleResize(),this.historyModule!==void 0&&this.historyModule.handleResize()},150)}updatePositionInfo(t=!0){if(this.view?.layout==="fixed")this.chapterPosition&&(this.chapterPosition.innerHTML=""),this.remainingPositions&&(this.remainingPositions.innerHTML="");else if(this.view?.isPaginated()){let n=this.currentLocator();if(n){let r=n.displayInfo.resourceScreenIndex,o=n.displayInfo.resourceScreenCount;this.chapterPosition&&(this.chapterPosition.innerHTML="Page "+r+" of "+o)}}else this.chapterPosition&&(this.chapterPosition.innerHTML=""),this.remainingPositions&&(this.remainingPositions.innerHTML="");t&&this.savePosition()}handlePreviousChapterClick(t){if(this.view?.layout==="fixed"&&this.settings.columnCount!==1){let n=this.publication.getSpineIndex(this.currentChapterLink.href)??0;n=n-2,n<0&&(n=0);let r=this.publication.readingOrder[n],o={href:this.publication.getAbsoluteHref(r.Href),locations:{progression:0},type:r.TypeLink,title:r.Title};this.stopReadAloud(),this.navigate(o)}else if(this.previousChapterLink){let n={href:this.publication.getAbsoluteHref(this.previousChapterLink.href),locations:{progression:1},type:this.previousChapterLink.type,title:this.previousChapterLink.title};this.stopReadAloud(),this.navigate(n)}t&&(t.preventDefault(),t.stopPropagation())}handleNextChapterClick(t){if(this.view?.layout==="fixed"&&this.settings.columnCount!==1){let n=this.publication.getSpineIndex(this.currentChapterLink.href)??0;n=n+2,n>=this.publication.readingOrder.length-1&&(n=this.publication.readingOrder.length-1);let r=this.publication.readingOrder[n],o={href:this.publication.getAbsoluteHref(r.Href),locations:{progression:0},type:r.TypeLink,title:r.Title};this.stopReadAloud(),this.navigate(o)}else if(this.nextChapterLink){let n={href:this.publication.getAbsoluteHref(this.nextChapterLink.href),locations:{progression:0},type:this.nextChapterLink.type,title:this.nextChapterLink.title};this.stopReadAloud(),this.navigate(n)}t&&(t.preventDefault(),t.stopPropagation())}hideView(){this.view?.layout!=="fixed"&&this.view?.isScrollMode()&&(document.body.style.overflow="auto")}setActiveTOCItem(t){if(this.tocView){let n=Array.prototype.slice.call(this.tocView.querySelectorAll("li > a"));for(let o of n)o.className=o.className.replace(" active","");let r=this.tocView.querySelector('li > a[href^="'+t+'"]');r&&(r.className+=" active")}}async navigate(t,n=!0){if(this.historyModule&&this.historyModule.push(t,n),this.publication.getTOCItem(t.href)){var o=!1;if(t.href.indexOf("#")!==-1){let a=t.href.slice(0,t.href.indexOf("#"));a===this.currentChapterLink.href&&(o=!0),this.currentChapterLink.href=a,this.currentChapterLink.type=t.type,this.currentChapterLink.title=t.title}else t.href===this.currentChapterLink.href&&(o=!0),this.currentChapterLink.href=t.href,this.currentChapterLink.type=t.type,this.currentChapterLink.title=t.title;if(this.currentSpreadLinks.left!==void 0&&this.currentSpreadLinks.right!==void 0&&(t.href===this.currentSpreadLinks.left.href||t.href===this.currentSpreadLinks.right.href))return;if(o){if(t.href.indexOf("#")!==-1){let m=t.href.slice(t.href.indexOf("#")+1);t.locations={fragment:m}}if(this.newPosition=t,this.currentTOCRawLink=t.href,t.locations.fragment===void 0?this.currentTocUrl=void 0:(this.newElementId=t.locations.fragment,this.currentTocUrl=this.currentChapterLink.href+"#"+this.newElementId),this.newElementId){for(let m of this.iframes){let p=m.contentDocument.getElementById(this.newElementId);this.view?.goToElement?.(p)}this.newElementId=void 0}else if(t.highlight){let m=t.highlight?.selectionInfo.rangeInfo.startContainerElementCssSelector;m&&this.view?.goToCssSelector(m)}else this.view?.goToProgression(t.locations.progression??0);let a=this.currentChapterLink.href,l=this.publication.getPreviousSpineItem(a);l&&l.Href&&(this.previousChapterLink={href:l.Href,type:l.TypeLink,title:l.Title}),this.previousChapterAnchorElement&&(this.previousChapterLink?(this.previousChapterAnchorElement.href=this.publication.getAbsoluteHref(this.previousChapterLink.href),this.previousChapterAnchorElement.className=this.previousChapterAnchorElement.className.replace(" disabled","")):(this.previousChapterAnchorElement.removeAttribute("href"),this.previousChapterAnchorElement.className+=" disabled"));let u=this.publication.getNextSpineItem(a);u?this.nextChapterLink={href:u.Href,type:u.TypeLink,title:u.Title}:this.nextChapterLink=void 0,this.nextChapterAnchorElement&&(this.nextChapterLink?(this.nextChapterAnchorElement.href=this.publication.getAbsoluteHref(this.nextChapterLink.href),this.nextChapterAnchorElement.className=this.nextChapterAnchorElement.className.replace(" disabled","")):(this.nextChapterAnchorElement.removeAttribute("href"),this.nextChapterAnchorElement.className+=" disabled")),this.currentTocUrl!==void 0?this.setActiveTOCItem(this.currentTocUrl):this.setActiveTOCItem(a),this.publication.Metadata.Title&&this.bookTitle&&(this.bookTitle.innerHTML=this.publication.Metadata.Title.toString());let d=this.publication.getSpineItem(a);d!==void 0&&(this.currentChapterLink.title=d.Title,this.currentChapterLink.type=d.TypeLink);let f=this.publication.getTOCItem(a);this.currentTocUrl!==void 0&&(f=this.publication.getTOCItem(this.currentTocUrl)),!this.currentChapterLink.title&&f!==void 0&&f.Title&&(this.currentChapterLink.title=f.Title),!this.currentChapterLink.type&&f!==void 0&&f.TypeLink&&(this.currentChapterLink.title=f.Title),this.currentChapterLink.title?this.chapterTitle&&(this.chapterTitle.innerHTML="("+this.currentChapterLink.title+")"):this.chapterTitle&&(this.chapterTitle.innerHTML="(Current Chapter)"),await this.updatePositionInfo()}else this.lineFocusModule!==void 0&&this.lineFocusModule.disableLineFocus(!1),this.searchModule!==void 0&&this.searchModule.clearSearch(),t.locations.fragment===void 0?this.currentTocUrl=void 0:(this.newElementId=t.locations.fragment,this.currentTocUrl=this.currentChapterLink.href+"#"+this.newElementId),this.hideIframeContents(),this.showLoadingMessageAfterDelay(),t.locations===void 0&&(t.locations={progression:0}),this.newPosition=t,this.currentTOCRawLink=t.href,this.precessContentForIframe(),this.rights.enableContentProtection&&this.contentProtectionModule!==void 0&&await this.contentProtectionModule.initializeResource(),this.rights.enableMediaOverlays&&this.mediaOverlayModule!==void 0&&this.hasMediaOverlays&&await this.mediaOverlayModule.initializeResource(this.currentLink()),this.rights.enableContentProtection&&this.contentProtectionModule!==void 0&&this.contentProtectionModule.recalculate(300),this.annotationModule!==void 0&&(await this.annotationModule.drawHighlights(),await this.annotationModule.showHighlights()),this.bookmarkModule!==void 0&&(await this.bookmarkModule.drawBookmarks(),await this.bookmarkModule.showBookmarks()),this.pageBreakModule!==void 0&&(await this.highlighter?.destroyHighlights(qe.PageBreak),await this.pageBreakModule.drawPageBreaks()),this.rights.enableSearch&&this.searchModule!==void 0&&this.highlighter!==void 0&&(await this.highlighter.destroyHighlights(qe.Search),this.searchModule.drawSearch()),this.rights.enableDefinitions&&this.definitionsModule!==void 0&&this.highlighter!==void 0&&this.definitionsModule.drawDefinitions(),this.view?.layout==="fixed"?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.api?.resourceFitsScreen&&this.api?.resourceFitsScreen(),this.emit("resource.fits")):this.settings.isPaginated().then(a=>{a||(this.view?.atStart()&&this.view?.atEnd()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):this.view?.atEnd()?(this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none"),this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="unset")):this.view?.atStart()?(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="unset")):(this.nextChapterBottomAnchorElement&&(this.nextChapterBottomAnchorElement.style.display="none"),this.previousChapterTopAnchorElement&&(this.previousChapterTopAnchorElement.style.display="none")))})}else{let a=this.publication.getStartLink(),l;if(a&&a.Href&&(l=this.publication.getAbsoluteHref(a.Href),l)){let u={href:l,locations:{progression:0},created:new Date,title:a.Title};await this.navigate(u)}}}showIframeContents(){this.isBeingStyled=!1,setTimeout(()=>{this.isBeingStyled||this.iframes.forEach(t=>{t.style.opacity="1",t.style.border="none",t.style.overflow="hidden"})},150)}showLoadingMessageAfterDelay(){this.isLoading=!0,this.isLoading&&this.loadingMessage&&(this.loadingMessage.style.display="block",this.loadingMessage.classList.add("is-loading")),this.mediaOverlayModule!==void 0&&(this.mediaOverlayModule.settings.resourceReady=!1)}hideIframeContents(){this.isBeingStyled=!0,this.iframes.forEach(t=>{t.style.opacity="0",t.style.border="none",t.style.overflow="hidden"})}hideLoadingMessage(){setTimeout(()=>{this.isLoading=!1,this.loadingMessage&&(this.loadingMessage.style.display="none",this.loadingMessage.classList.remove("is-loading")),this.view?.layout!=="fixed"&&(this.view?.atStart()&&this.view?.atEnd()?(this.api?.resourceFitsScreen&&this.api?.resourceFitsScreen(),this.emit("resource.fits")):this.view?.atEnd()?(this.api?.resourceAtEnd&&this.api?.resourceAtEnd(),this.emit("resource.end")):this.view?.atStart()&&(this.api?.resourceAtStart&&this.api?.resourceAtStart(),this.emit("resource.start"))),this.api?.resourceReady&&this.api?.resourceReady(),this.emit("resource.ready")},150)}saveCurrentReadingPosition(){if(this.annotator){var t=this.publication.getTOCItem(this.currentChapterLink.href);this.currentTocUrl!==void 0&&(t=this.publication.getTOCItem(this.currentTocUrl)),t===void 0&&(t=this.publication.getTOCItemAbsolute(this.currentChapterLink.href));let n={progression:this.view?.getCurrentPosition()};if(t){if(t.Href.indexOf("#")!==-1){let o=t.Href.slice(t.Href.indexOf("#")+1);o!==void 0&&(n={progression:this.view?.getCurrentPosition(),fragment:o})}let r;if(this.rights.autoGeneratePositions&&this.publication.positions||this.publication.positions){let o=this.publication.positionsByHref(this.publication.getRelativeHref(t.Href));if(o.length>0){let a=Math.ceil((n.progression??0)*(o.length-1)),l=o[a];l&&(l.locations.fragment=n.fragment,r=jt(Fe({},l),{href:t.Href,created:new Date,title:this.currentChapterLink.title}))}}else r={href:t.Href,locations:n,created:new Date,type:this.currentChapterLink.type,title:this.currentChapterLink.title};r&&(this.sample?.isSampleRead&&this.publication.positions&&this.sampleReadEventHandler?.enforceSampleRead(r),this.api?.updateCurrentLocation?this.api?.updateCurrentLocation(r).then(async o=>(Yn.default.log("api updated current location",r),this.annotator?.saveLastReadingPosition(r))):(Yn.default.log("save last reading position",r),this.annotator.saveLastReadingPosition(r)))}}}static createBase(t){let n=document.createElement("base");return n.target="_self",n.href=t,n}static createCssLink(t){let n=document.createElement("link");return n.rel="stylesheet",n.type="text/css",n.href=t,n}static createJavascriptLink(t,n){let r=document.createElement("script");return r.type="text/javascript",r.src=t,r.async=n,r}activateMarker(t,n){this.annotationModule!==void 0&&(this.annotationModule.activeAnnotationMarkerId===void 0||this.annotationModule.activeAnnotationMarkerId!==t?(this.annotationModule.activeAnnotationMarkerId=t,this.annotationModule.activeAnnotationMarkerPosition=n,this.highlighter&&(this.highlighter.activeAnnotationMarkerId=t)):this.deactivateMarker())}deactivateMarker(){this.annotationModule!==void 0&&(this.annotationModule.activeAnnotationMarkerId=void 0,this.annotationModule.activeAnnotationMarkerPosition=void 0,this.highlighter&&(this.highlighter.activeAnnotationMarkerId=void 0))}showLayer(t){let n="#",r=new xa("layer-on","layer-off",!0,t,"layer-"+t);switch(t){case"annotations":case"highlights":n+=Me.R2_ID_HIGHLIGHTS_CONTAINER,r.name=Me.R2_ID_HIGHLIGHTS_CONTAINER;break;case"readaloud":n+=Me.R2_ID_READALOUD_CONTAINER,r.name=Me.R2_ID_READALOUD_CONTAINER;break;case"pagebreak":n+=Me.R2_ID_PAGEBREAK_CONTAINER,r.name=Me.R2_ID_PAGEBREAK_CONTAINER;break;case"search":n+=Me.R2_ID_SEARCH_CONTAINER,r.name=Me.R2_ID_SEARCH_CONTAINER;break;case"definitions":n+=Me.R2_ID_DEFINITIONS_CONTAINER,r.name=Me.R2_ID_DEFINITIONS_CONTAINER;break}this.highlighter?.layerSettings.saveProperty(r);let o=this.iframes[0].contentDocument;if(o){let a=de(o,n);a&&(a.style.display="block")}}hideLayer(t){let n="#",r=new xa("layer-on","layer-off",!1,t,"layer-"+t);switch(t){case"annotations":case"highlights":n+=Me.R2_ID_HIGHLIGHTS_CONTAINER,r.name=Me.R2_ID_HIGHLIGHTS_CONTAINER;break;case"readaloud":n+=Me.R2_ID_READALOUD_CONTAINER,r.name=Me.R2_ID_READALOUD_CONTAINER;break;case"pagebreak":n+=Me.R2_ID_PAGEBREAK_CONTAINER,r.name=Me.R2_ID_PAGEBREAK_CONTAINER;break;case"search":n+=Me.R2_ID_SEARCH_CONTAINER,r.name=Me.R2_ID_SEARCH_CONTAINER;break;case"definitions":n+=Me.R2_ID_DEFINITIONS_CONTAINER,r.name=Me.R2_ID_DEFINITIONS_CONTAINER;break}this.highlighter?.layerSettings.saveProperty(r);let o=this.iframes[0].contentDocument;if(o){let a=de(o,n);a&&(a.style.display="none")}}};A();var yt=class{constructor(t){this.store=t.store}getLastReadingPosition(){let t=this.store.get(yt.LAST_READING_POSITION);return t?JSON.parse(t):null}initLastReadingPosition(t){if(typeof t=="string")this.store.set(yt.LAST_READING_POSITION,t);else{let n=JSON.stringify(t);this.store.set(yt.LAST_READING_POSITION,n)}}saveLastReadingPosition(t){if(typeof t=="string")this.store.set(yt.LAST_READING_POSITION,t);else{let n=JSON.stringify(t);this.store.set(yt.LAST_READING_POSITION,n)}}initBookmarks(t){if(typeof t=="string"){let n=JSON.parse(t);this.store.set(yt.BOOKMARKS,JSON.stringify(n))}else this.store.set(yt.BOOKMARKS,JSON.stringify(t));return t}saveBookmark(t){let n=this.store.get(yt.BOOKMARKS);if(n){let r=JSON.parse(n);r.push(t),this.store.set(yt.BOOKMARKS,JSON.stringify(r))}else{let r=[];r.push(t),this.store.set(yt.BOOKMARKS,JSON.stringify(r))}return t}locatorExists(t,n){let r;switch(n){case fr.Bookmark:r=yt.BOOKMARKS;break}let o=this.store.get(r);return o&&JSON.parse(o).filter(u=>u.href===t.href&&u.locations.progression===t.locations.progression).length>0?t:null}deleteBookmark(t){let n=this.store.get(yt.BOOKMARKS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.id!==t.id),this.store.set(yt.BOOKMARKS,JSON.stringify(r))}return t}getBookmarks(t){let n=this.store.get(yt.BOOKMARKS);if(n){let r=JSON.parse(n);if(t){let o=r.filter(a=>a.href===t);return o=o.sort((a,l)=>{if(a.locations.progression&&l.locations.progression)return a.locations.progression-l.locations.progression}),o}return r=r.sort((o,a)=>{if(o.locations.progression&&a.locations.progression)return o.locations.progression-a.locations.progression}),r}return[]}initAnnotations(t){let n;typeof t=="string"?n=JSON.parse(t):n=t;let r=[];return n.forEach(o=>{let a=`${o.highlight.selectionInfo.rangeInfo.startContainerElementCssSelector}${o.highlight.selectionInfo.rangeInfo.startContainerChildTextNodeIndex}${o.highlight.selectionInfo.rangeInfo.startOffset}${o.highlight.selectionInfo.rangeInfo.endContainerElementCssSelector}${o.highlight.selectionInfo.rangeInfo.endContainerChildTextNodeIndex}${o.highlight.selectionInfo.rangeInfo.endOffset}`,l=Cr.hash(a);o.highlight.id="R2_HIGHLIGHT_"+l;let u;o.highlight.color?u=o.highlight.color:o.color&&(u=o.color),De.isHexColor(u)&&(u=De.hexToRgbString(u)),o.highlight.color=u,o.highlight.pointerInteraction=!0,o.highlight.selectionInfo.cleanText=o.highlight.selectionInfo.rawText.trim().replace(/\n/g," ").replace(/\s\s+/g," "),r.push(o)}),this.store.set(yt.ANNOTATIONS,JSON.stringify(r)),r}saveTemporarySelectionInfo(t){this.store.set(yt.SELECTIONINFO,JSON.stringify(t))}getTemporarySelectionInfo(t){let n=this.store.get(yt.SELECTIONINFO);if(n){let r=JSON.parse(n);return r.range=vd(t,r.rangeInfo),r}return[]}deleteTemporarySelectionInfo(){this.store.remove(yt.SELECTIONINFO)}saveAnnotation(t){let n=this.store.get(yt.ANNOTATIONS);if(n){let r=JSON.parse(n);r.push(t),this.store.set(yt.ANNOTATIONS,JSON.stringify(r))}else{let r=[];r.push(t),this.store.set(yt.ANNOTATIONS,JSON.stringify(r))}return t}deleteAnnotation(t){let n=this.store.get(yt.ANNOTATIONS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.id!==t),this.store.set(yt.ANNOTATIONS,JSON.stringify(r))}return t}deleteSelectedAnnotation(t){let n=this.store.get(yt.ANNOTATIONS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.highlight?.id!==t.highlight.id),this.store.set(yt.ANNOTATIONS,JSON.stringify(r))}return t}getAnnotations(){let t=this.store.get(yt.ANNOTATIONS);if(t){let n=JSON.parse(t);return n=n.sort((r,o)=>{if(r.locations.progression&&o.locations.progression)return r.locations.progression-o.locations.progression}),n}return[]}getAnnotationPosition(t,n){let r=this.store.get(yt.ANNOTATIONS);if(r){let a=JSON.parse(r).filter(l=>l.highlight?.id===t||l.id===t);if(a.length>0){let l=n.document.getElementById(`${a[0].highlight.id}`);if(l){let u=0;if(l.hasChildNodes)for(let d=0;d<l.childNodes.length;d++){let f=l.childNodes[d],m=parseInt(f.style.top.replace("px",""));(m<u||u===0)&&(u=m)}else u=parseInt(l.style.top.replace("px",""));return u}}}return null}getAnnotationElement(t,n){let r=this.store.get(yt.ANNOTATIONS);if(r){let a=JSON.parse(r).filter(l=>l.highlight?.id===t);if(a.length>0){let l=n.document.getElementById(`${a[0].highlight.id}`);if(l){let u=0;if(l.hasChildNodes)for(let d=0;d<l.childNodes.length;d++){let f=l.childNodes[d],m=parseInt(f.style.top.replace("px",""));if(m<u||u===0)return u=m,f}else u=parseInt(l.style.top.replace("px",""));return l}}}return null}getAnnotation(t){let n=this.store.get(yt.ANNOTATIONS);if(n){let o=JSON.parse(n).filter(a=>a.highlight?.id===t.id);if(o.length>0)return o[0]}return null}getAnnotationByID(t){let n=this.store.get(yt.ANNOTATIONS);if(n){let o=JSON.parse(n).filter(a=>a.highlight?.id===t);if(o.length>0)return o[0]}return null}},uo=yt;uo.LAST_READING_POSITION="last-reading-position",uo.BOOKMARKS="bookmarks",uo.ANNOTATIONS="annotations",uo.SELECTIONINFO="selectionInfo";A();A();var Wd=class{constructor(){this.store={}}get(t){return this.store[t]||null}set(t,n){this.store[t]=n}remove(t){this.store[t]=null}};var Ys=class{constructor(t){this.prefix=t.prefix,this.useLocalStorage=t.useLocalStorage;try{let n=t.prefix+"-"+String(Math.random());this.useLocalStorage?(window.localStorage.setItem(n,"test"),window.localStorage.removeItem(n)):(window.sessionStorage.setItem(n,"test"),window.sessionStorage.removeItem(n)),this.fallbackStore=null}catch(n){this.fallbackStore=new Wd}}getLocalStorageKey(t){return this.prefix+"-"+t}get(t){let n;return this.fallbackStore?n=this.fallbackStore.get(t):this.useLocalStorage?n=window.localStorage.getItem(this.getLocalStorageKey(t)):n=window.sessionStorage.getItem(this.getLocalStorageKey(t)),n}set(t,n){this.fallbackStore?this.fallbackStore.set(t,n):this.useLocalStorage?window.localStorage.setItem(this.getLocalStorageKey(t),n):window.sessionStorage.setItem(this.getLocalStorageKey(t),n)}remove(t){this.fallbackStore?this.fallbackStore.remove(t):this.useLocalStorage?window.localStorage.removeItem(this.getLocalStorageKey(t)):window.sessionStorage.removeItem(this.getLocalStorageKey(t))}};A();var P3=Je(va()),I3=Je(Rn());var sl=class extends P3.Link{};sl=ac([(0,I3.JsonObject)()],sl);function al(i){let t,n,r,o;if(i instanceof Array)return i.map(function(a){return typeof a=="object"&&(a=al(a)),a});t={};for(n in i)i.hasOwnProperty(n)&&(r=(n.charAt(0).toLowerCase()+n.slice(1)||n).toString(),o=i[n],(o instanceof Array||o!==null&&o.constructor===Object)&&(o=al(o)),r==="href1"?t.href=o:r==="typeLink"?t.type=o:t[r]=o);return t}A();var L3=Je(Dt()),ig=class{constructor(t){this.LAYERSETTINGS="layerSetting";this.store=t,this.initialize()}static async create(t){let n=new this(t.store);return new Promise(r=>r(n))}async stop(){L3.default.log("MediaOverlay settings stop")}async initialize(){this.userProperties=await this.getLayerSettings()}async getLayerSettings(){let t=new xi,n=await this.store.get(this.LAYERSETTINGS);if(n){let r=JSON.parse(n);t.properties=r}return t}async saveProperty(t){let n=await this.store.get(this.LAYERSETTINGS);if(n){let r=JSON.parse(n);r=r.filter(o=>o.name!==t.name),r.push(t),await this.store.set(this.LAYERSETTINGS,JSON.stringify(r))}else{let r=[];r.push(t),await this.store.set(this.LAYERSETTINGS,JSON.stringify(r))}return new Promise(r=>r(t))}async getProperty(t){let n=await this.store.get(this.LAYERSETTINGS);if(n){let r=JSON.parse(n);return r=r.filter(o=>o.name===t),r.length===0?null:r[0]}return null}};A();var ll=Je(Dt()),og=class{static async create(t){let n=new this(t.delegate,t.publication,t,t.headerMenu);return await n.start(),n}constructor(t,n,r,o){this.headerMenu=o,this.delegate=t,this.publication=n,this.properties=r}async stop(){ll.default.log("Page Break module stop")}async start(){this.delegate.pageBreakModule=this,this.headerMenu&&(this.goToPageView=de(this.headerMenu,"#sidenav-section-gotopage")),this.headerMenu&&(this.goToPageNumberInput=de(this.headerMenu,"#goToPageNumberInput")),this.headerMenu&&(this.goToPageNumberButton=de(this.headerMenu,"#goToPageNumberButton")),Z(this.goToPageNumberInput,"keypress",this.goToPageNumber.bind(this)),Z(this.goToPageNumberButton,"click",this.goToPageNumber.bind(this)),this.goToPageView&&(this.publication.pageList?.length||this.goToPageView.parentElement?.removeChild(this.goToPageView)),setTimeout(()=>{this.properties.hideLayer?this.delegate.hideLayer("pagebreak"):this.delegate.showLayer("pagebreak")},10)}async goToPageNumber(t){if(this.goToPageNumberInput.value&&(t.key==="Enter"||t.type==="click")){var n=this.publication.pageList?.filter(o=>o.Href.slice(o.Href.indexOf("#")+1).replace(/[^0-9]/g,"")===this.goToPageNumberInput.value);if(n&&n.length>0){var r=n[0];let o={progression:0};if(r.Href.indexOf("#")!==-1){let l=r.Href.slice(r.Href.indexOf("#")+1);l!==null&&(o={fragment:l})}let a={href:this.publication.getAbsoluteHref(r.Href),locations:o,type:r.TypeLink,title:r.Title};this.delegate.goTo(a)}}}async handleResize(){await this.delegate.highlighter?.destroyHighlights(qe.PageBreak),await this.drawPageBreaks()}async drawPageBreaks(){setTimeout(()=>{let t=this.delegate.iframes[0].contentDocument?.body,n=t?.querySelectorAll('[*|type="pagebreak"]');n?.length===0&&(n=t?.querySelectorAll("[epub\\:type='pagebreak']"));let r=this;function o(a){try{let l=r.delegate.iframes[0].contentDocument;return l?ln(a,l,ro):""}catch(l){return ll.default.log("uniqueCssSelector:"),ll.default.error(l),""}}if(n)for(let a=0;a<n.length;a++){let l=n[a];ll.default.log(l);let u=l.innerHTML,d=!1;l.innerHTML.length===0&&(u=l.getAttribute("title")??"",l.innerHTML=u,d=!0),l.innerHTML.length===0&&(u=(l.getAttribute("id")??"").replace(/[^0-9]/g,""),l.innerHTML=u,d=!0);let f=this.delegate.iframes[0].contentDocument;if(f){let m=this.delegate.highlighter?.dom(f.body).getWindow().document.createRange(),p=this.delegate.highlighter?.dom(f.body).getSelection();if(p.removeAllRanges(),m.selectNodeContents(l),p.addRange(m),!p.isCollapsed){let E=Pi(m,o);p.removeAllRanges(),E&&this.createPageBreakHighlight({rangeInfo:E,cleanText:"",rawText:""},u)}}d&&(l.innerHTML="")}},200)}createPageBreakHighlight(t,n){try{let o=`${t.rangeInfo.startContainerElementCssSelector}${t.rangeInfo.startContainerChildTextNodeIndex}${t.rangeInfo.startOffset}${t.rangeInfo.endContainerElementCssSelector}${t.rangeInfo.endContainerChildTextNodeIndex}${t.rangeInfo.endOffset}`,a=Cr.hash(o),l="R2_PAGEBREAK_"+a;var r=!1;let u={color:"#000000",id:l,pointerInteraction:r,selectionInfo:t,marker:Le.Custom,icon:{id:"pageBreak",title:n,color:"#000000",position:"left"},type:qe.PageBreak};zt.push(u);let d=this.delegate.highlighter?.createHighlightDom(this.delegate.iframes[0].contentWindow,u);return u.position=parseInt((d?.hasChildNodes()?d.childNodes[0]:d).style.top.replace("px","")),u}catch(o){throw"Can't create highlight: "+o}}};A();var B3=Je(Xp());var k3=Je(to());var Ke=Je(Dt()),sg=class{constructor(t,n,r,o,a,l,u){this.voices=[];this.hasEventListener=!1;this.startX=0;this.startY=0;this.index=0;this.userScrolled=!1;this.scrollPartial=!1;this.speaking=!1;this.restartIndex=-1;this.ttsQueueIndex=-1;this.ttsQueue=void 0;this.ttsPlayQueueIndexDebounced=(0,k3.debounce)((t,n)=>{this.restartIndex>=0?(this.ttsQueueIndex=this.restartIndex,this.restartIndex=-1):this.ttsQueueIndex=t,this.ttsQueue=n,this.ttsPlayQueueIndex(this.ttsQueueIndex,n)},150);this.delegate=t,this.tts=n,this.headerMenu=u,this.rights=r,this.highlighter=o,this.properties=a,this.api=l}initialize(t){this.highlighter!==void 0&&(this.tts.setControls(),this.tts.onRestart(this.restart.bind(this)),this.body=t,this.clean=(0,B3.default)(this.body.innerHTML,{allowedTags:[],allowedAttributes:{}}),this.wrapper=dt(document,"#iframe-wrapper"),window.speechSynthesis.getVoices(),this.initVoices(!0),this.hasEventListener||(this.hasEventListener=!0,Z(document,"wheel",this.wheel.bind(this)),Z(this.body,"wheel",this.wheel.bind(this)),Z(document,"keydown",this.wheel.bind(this)),Z(this.delegate.iframes[0].contentDocument,"keydown",this.wheel.bind(this))),Z(this.body,"mousedown",this.clickStart.bind(this)),Z(this.body,"mouseup",this.click.bind(this)))}clickStart(t){"clientX"in t&&(this.startX=t.clientX),"clientY"in t&&(this.startY=t.clientY)}click(t){let n=0,r=0;if("clientX"in t&&(n=t.clientX),"clientY"in t&&(r=t.clientY),window.speechSynthesis.speaking&&this.speaking&&n===this.startX&&r===this.startY){let o=this.delegate.iframes[0].contentDocument;if(o){let a=this.highlighter.dom(o.body).getSelection();if(a.isCollapsed){let m=this.delegate.iframes[0].contentDocument,p=this.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(m);a.addRange(p.range)}let l=a.getRangeAt(0),u=a.anchorNode;for(;l.toString().indexOf(" ")!==0;)try{l.setStart(u,l.startOffset-1)}catch(m){break}l.setStart(u,l.startOffset+1);do l.setEnd(u,u.length<l.endOffset?l.endOffset+1:u.length);while(l.toString().indexOf(" ")===-1&&l.toString().trim()!=="");let f=document.querySelector("main#iframe-wrapper iframe").contentWindow?.document.body;if(this.ttsQueue&&f){let m=this.findTtsQueueItemIndex(this.ttsQueue,a.anchorNode,a.anchorNode,a.anchorOffset,f);a.removeAllRanges(),m>=0&&(window.speechSynthesis.cancel(),this.restartIndex=m,this.ttsPlayQueueIndexDebounced(this.restartIndex,this.ttsQueue))}}}}initVoices(t){function n(){return new Promise(function(o,a){let l=window.speechSynthesis,u;u=setInterval(()=>{l.getVoices().length!==0&&(o(l.getVoices()),clearInterval(u))},10)})}n().then(async o=>{if(Ke.default.log(o),this.voices=[],o.forEach(l=>{l.localService===!0&&this.voices.push(l)}),Ke.default.log(this.voices),t&&this.headerMenu){var a=de(this.headerMenu,"#preferred-languages");a&&this.voices.forEach(l=>{var u=document.createElement("option");u.value=l.name+":"+l.lang,u.innerHTML=l.name+" ("+l.lang+")",a.add(u)})}})}cancel(t=!0){t&&(this.api?.stopped&&this.api?.stopped(),this.delegate.emit("readaloud.stopped","stopped")),this.userScrolled=!1,this.speaking=!1,setTimeout(()=>{window.speechSynthesis.cancel()},0),this._ttsQueueItemHighlightsWord&&(this.delegate.highlighter?.destroyHighlights(qe.ReadAloud),this._ttsQueueItemHighlightsWord=void 0)}async speak(t,n,r){this.api?.started&&this.api?.started(),this.delegate.emit("readaloud.started","started");let o=this;this.userScrolled=!1,this.cancel(!1);let a;if(n){let O=document.querySelector("main#iframe-wrapper iframe").contentWindow?.document.body,T=this.delegate.iframes[0].contentDocument;if(T){let C=this.highlighter.dom(T.body).getSelection();if(C.isCollapsed){let _=o.delegate.iframes[0].contentDocument,I=o.delegate.annotationModule?.annotator?.getTemporarySelectionInfo(_);C.addRange(I.range)}if(O){var l=this.generateTtsQueue(O);if(!l.length)return;var u=this.findTtsQueueItemIndex(l,C.anchorNode,C.anchorNode,C.anchorOffset,O),d=this.findTtsQueueItemIndex(l,C.focusNode,C.focusNode,C.focusOffset,O);let _=Jo(l,u),I=Jo(l,d);var f;if(_&&t&&t.cleanText){let D=Ko(_),P=t.rangeInfo.startOffset,q=t.cleanText;if(I&&u+1===d){let k=Ko(I);P=(D+" "+k).indexOf(t.cleanText),q=D.slice(P,D.length),f=t.cleanText.replace(q,"").trim()}else if(d>u){let k="";for(let B=u+1;B<d;B++){let N=Jo(l,B);if(N){let W=Ko(N);k+=W,f=t.cleanText.replace(W,"")}}if(I){let B=Ko(I);k+=" "+B}P=(D+" "+k).indexOf(t.cleanText),q=D.slice(P,D.length),f=f.replace(q,"").trim()}a=new SpeechSynthesisUtterance(q),Ke.default.log(t),Ke.default.log(q,t.range?.commonAncestorContainer.textContent),Ke.default.log(_),Ke.default.log(_.item.textNodes),Ke.default.log(P),Ke.default.log(_.item.combinedText);let F=_.item.textNodes.filter(k=>k===t.range?.commonAncestorContainer)[0];Ke.default.log(F),a.onboundary=k=>{this.updateTTSInfo(_,k.charIndex,k.charLength,P,a.text)}}}}}else a=new SpeechSynthesisUtterance(this.clean);a.rate=this.tts.rate,a.pitch=this.tts.pitch,a.volume=this.tts.volume,Ke.default.log("this.tts.voice.lang",this.tts.voice.lang);var m=!0;this.tts.voice&&this.tts.voice.lang&&(m=this.tts.voice.lang.indexOf("-")!==-1,m===!1&&(this.tts.voice.lang=this.tts.voice.lang.replace("_","-"),m=!0)),Ke.default.log("initialVoiceHasHyphen",m),Ke.default.log("voices",this.voices);var p;m===!0?(p=this.tts.voice&&this.tts.voice.lang&&this.tts.voice.name?this.voices.filter(w=>{var O=w.lang.replace("_","-");return O===this.tts.voice.lang&&w.name===this.tts.voice.name})[0]:void 0,p===void 0&&(p=this.tts.voice&&this.tts.voice.lang?this.voices.filter(w=>w.lang.replace("_","-")===this.tts.voice.lang)[0]:void 0)):(p=this.tts.voice&&this.tts.voice.lang&&this.tts.voice.name?this.voices.filter(w=>w.lang===this.tts.voice.lang&&w.name===this.tts.voice.name)[0]:void 0,p===void 0&&(p=this.tts.voice&&this.tts.voice.lang?this.voices.filter(w=>w.lang===this.tts.voice.lang)[0]:void 0)),Ke.default.log("initialVoice",p);var E=o.delegate.publication.Metadata.Language[0].indexOf("-")!==-1;Ke.default.log("publicationVoiceHasHyphen",E);var S;E===!0?S=this.tts.voice&&this.tts.voice.usePublication?this.voices.filter(w=>{var O=w.lang.replace("_","-");return O.startsWith(o.delegate.publication.Metadata.Language[0])||O.endsWith(o.delegate.publication.Metadata.Language[0].toUpperCase())})[0]:void 0:S=this.tts.voice&&this.tts.voice.usePublication?this.voices.filter(w=>w.lang.startsWith(o.delegate.publication.Metadata.Language[0])||w.lang.endsWith(o.delegate.publication.Metadata.Language[0].toUpperCase()))[0]:void 0,Ke.default.log("publicationVoice",S);var v=navigator.language.indexOf("-")!==-1;Ke.default.log("defaultVoiceHasHyphen",v);var y;v===!0?y=this.voices.filter(w=>{var O=w.lang.replace("_","-");return O===navigator.language&&w.localService===!0})[0]:y=this.voices.filter(w=>{var O=w.lang;return O===navigator.language&&w.localService===!0})[0],y===void 0&&(y=this.voices.filter(w=>{var O=w.lang;return O.includes(navigator.language)&&w.localService===!0})[0]),Ke.default.log("defaultVoice",y),p?(Ke.default.log("initialVoice"),a.voice=p):S?(Ke.default.log("publicationVoice"),a.voice=S):y&&(Ke.default.log("defaultVoice"),a.voice=y),a.voice!==void 0&&a.voice!==null&&(a.lang=a.voice.lang,Ke.default.log("utterance.voice.lang",a.voice.lang),Ke.default.log("utterance.lang",a.lang)),Ke.default.log("navigator.language",navigator.language),setTimeout(()=>{window.speechSynthesis.speak(a)},0),this.index=0;function b(){a.onend=function(){if(d>u)if(u=u+1,u!==d){let w=Jo(l,u);if(w){let O=Ko(w);a=new SpeechSynthesisUtterance(O),a.onboundary=T=>{o.updateTTSInfo(w,T.charIndex,T.charLength,0,a.text)},setTimeout(()=>{window.speechSynthesis.speak(a)},0),b()}}else{let w=Jo(l,u);w&&(a=new SpeechSynthesisUtterance(f),a.onboundary=O=>{o.updateTTSInfo(w,O.charIndex,O.charLength,0,a.text)},setTimeout(()=>{window.speechSynthesis.speak(a)},0),b()),u>d&&(Ke.default.log("utterance ended"),o.highlighter.doneSpeaking(),o.api?.finished(),o.delegate.emit("readaloud.finished","finished"))}else Ke.default.log("utterance ended"),o.highlighter.doneSpeaking(),o.api?.finished(),o.delegate.emit("readaloud.finished","finished")}}b(),r()}speakPlay(){this.scrollPartial=!0,this.cancel(!1),this.api?.started&&this.api?.started(),this.delegate.emit("readaloud.started","started");let t=this,r=document.querySelector("main#iframe-wrapper iframe").contentWindow?.document.body;if(r){let l=function(){let u=t.highlighter.visibleTextRects[0],d=t.delegate.iframes[0].contentDocument;if(d){let f=t.highlighter.dom(d.body).getWindow().document.createRange(),m=t.highlighter.dom(t.delegate.iframes[0].contentDocument?.body).getSelection();m.removeAllRanges(),f.selectNodeContents(u.node),m.addRange(f);let p=0,E=m.focusNode,S=m.focusOffset;m.collapse(m.anchorNode,m.anchorOffset);for(let v=0;v<p;v++)m.modify("move","forward","line");if(m.extend(E,S),m.collapse(m.anchorNode,m.anchorOffset),r){let v=t.findTtsQueueItemIndex(o,m.anchorNode,m.anchorNode,m.anchorOffset,r);v>=0&&(a=v)}m.removeAllRanges()}},o=this.generateTtsQueue(r);if(!o.length)return;let a=0;l(),a<0&&(a=0),setTimeout(()=>{this.startTTSSession(o,a)},200)}}speakPause(){window.speechSynthesis.speaking&&(this.api?.paused&&this.api?.paused(),this.delegate.emit("readaloud.paused","paused"),this.userScrolled=!1,window.speechSynthesis.pause(),this.speaking=!1,this._ttsQueueItemHighlightsWord&&(this.delegate.highlighter?.destroyHighlights(qe.ReadAloud),this._ttsQueueItemHighlightsWord=void 0))}speakResume(){window.speechSynthesis.speaking&&(this.api?.resumed&&this.api?.resumed(),this.delegate.emit("readaloud.resumed","resumed"),this.userScrolled=!1,window.speechSynthesis.resume(),this.speaking=!0)}static async create(t){let n=new this(t.delegate,t.tts,t.rights,t.highlighter,t,t.api,t.headerMenu);return await n.start(),n}async start(){if(this.delegate.ttsModule=this,this.headerMenu){var t=de(this.headerMenu,"#menu-button-tts");t&&t.parentElement?.style.removeProperty("display")}setTimeout(()=>{this.properties?.hideLayer?this.delegate.hideLayer("readaloud"):this.delegate.showLayer("readaloud")},10)}wheel(t){if(t instanceof KeyboardEvent)switch(t.key){case"ArrowUp":this.userScrolled=!0;break;case"ArrowDown":this.userScrolled=!0;break}else this.userScrolled=!0}stop(){Ke.default.log("TTS module stop"),we(document,"wheel",this.wheel.bind(this)),we(this.body,"wheel",this.wheel.bind(this)),we(document,"keydown",this.wheel.bind(this)),we(this.delegate.iframes[0].contentDocument,"keydown",this.wheel.bind(this)),we(this.body,"click",this.click.bind(this))}generateTtsQueue(t){let n=[],r=[];function o(d){if(d.nodeType!==Node.TEXT_NODE||!d.nodeValue||!d.nodeValue.trim().length)return;let f=r[r.length-1];if(!f)return;let m=d.parentElement?N3(d.parentElement):void 0,p=d.parentElement?aN(d.parentElement):void 0,E=n[n.length-1];(!E||E.parentElement!==f||E.lang!==m||E.dir!==p)&&(E={combinedText:"",dir:p,lang:m,parentElement:f,textNodes:[]},n.push(E)),E.textNodes.push(d)}let a=!0;function l(d){if(d.nodeType!==Node.ELEMENT_NODE)return;let f=a||d.matches("h1, h2, h3, h4, h5, h6, p, th, td, caption, li, blockquote, q, dt, dd, figcaption, div, pre");a=!1,f&&r.push(d);for(let m of d.childNodes)switch(m.nodeType){case Node.ELEMENT_NODE:let p=m;if(!p.matches("img, sup, sub, audio, video, source, button, canvas, del, dialog, embed, form, head, iframe, meter, noscript, object, s, script, select, style, textarea"))l(p);else if(p.tagName&&p.tagName.toLowerCase()==="img"&&p.src){let S=p.getAttribute("alt");if(S){let v=S.trim();if(v){let y=N3(p),b=void 0;n.push({combinedText:v,dir:b,lang:y,parentElement:p,textNodes:[]})}}}break;case Node.TEXT_NODE:r.length!==0&&o(m);break;default:break}f&&r.pop()}l(t);function u(d){if(!d.textNodes||!d.textNodes.length){(!d.combinedText||!d.combinedText.length)&&(d.combinedText="");return}d.combinedText=lN(d.textNodes,!0).replace(/[\r\n]/g," ");let f=d.parentElement;for(;f;){if(f.tagName){let m=f.tagName.toLowerCase();if(m==="pre"||m==="code"||m==="video"||m==="audio")break}f=f.parentElement}}for(let d of n)u(d);return n}findTtsQueueItemIndex(t,n,r,o,a){let l=0;for(let u of t){if(r&&u.textNodes){if(u.textNodes.includes(r))return l}else if(n===u.parentElement||u.parentElement!==n.ownerDocument.body&&u.parentElement!==a&&u.parentElement.contains(n)||n.contains(u.parentElement))return l;l++}return-1}restart(){window.speechSynthesis.speaking&&(window.speechSynthesis.cancel(),this.restartIndex=this.ttsQueueIndex,this.ttsPlayQueueIndexDebounced(this.restartIndex,this.ttsQueue))}startTTSSession(t,n){if(!Jo(t,n)){this.cancel();return}this.speaking=!0,this.ttsPlayQueueIndexDebounced(n,t)}ttsPlayQueueIndex(t,n){if(t<0){this.cancel();return}let r=Jo(n,t);if(!r){this.cancel();return}let o=Ko(r);if(!o){this.cancel();return}let a=new SpeechSynthesisUtterance(o);a.rate=this.tts.rate,a.pitch=this.tts.pitch,a.volume=this.tts.volume,Ke.default.log("this.tts.voice.lang",this.tts.voice.lang);var l=!0;this.tts.voice&&this.tts.voice.lang&&(l=this.tts.voice.lang.indexOf("-")!==-1,l===!1&&(this.tts.voice.lang=this.tts.voice.lang.replace("_","-"),l=!0)),Ke.default.log("initialVoiceHasHyphen",l),Ke.default.log("voices",this.voices);var u;l===!0?(u=this.tts.voice&&this.tts.voice.lang&&this.tts.voice.name?this.voices.filter(S=>{var v=S.lang.replace("_","-");return v===this.tts.voice.lang&&S.name===this.tts.voice.name})[0]:void 0,u===void 0&&(u=this.tts.voice&&this.tts.voice.lang?this.voices.filter(S=>S.lang.replace("_","-")===this.tts.voice.lang)[0]:void 0)):(u=this.tts.voice&&this.tts.voice.lang&&this.tts.voice.name?this.voices.filter(S=>S.lang===this.tts.voice.lang&&S.name===this.tts.voice.name)[0]:void 0,u===void 0&&(u=this.tts.voice&&this.tts.voice.lang?this.voices.filter(S=>S.lang===this.tts.voice.lang)[0]:void 0)),Ke.default.log("initialVoice",u);var d=this,f=d.delegate.publication.Metadata.Language[0].indexOf("-")!==-1;Ke.default.log("publicationVoiceHasHyphen",f);var m;f===!0?m=this.tts.voice&&this.tts.voice.usePublication?this.voices.filter(S=>{var v=S.lang.replace("_","-");return v.startsWith(d.delegate.publication.Metadata.Language[0])||v.endsWith(d.delegate.publication.Metadata.Language[0].toUpperCase())})[0]:void 0:m=this.tts.voice&&this.tts.voice.usePublication?this.voices.filter(S=>S.lang.startsWith(d.delegate.publication.Metadata.Language[0])||S.lang.endsWith(d.delegate.publication.Metadata.Language[0].toUpperCase()))[0]:void 0,Ke.default.log("publicationVoice",m);var p=navigator.language.indexOf("-")!==-1;Ke.default.log("defaultVoiceHasHyphen",p);var E;p===!0?E=this.voices.filter(S=>{var v=S.lang.replace("_","-");return v===navigator.language&&S.localService===!0})[0]:E=this.voices.filter(S=>{var v=S.lang;return v===navigator.language&&S.localService===!0})[0],E===void 0&&(E=this.voices.filter(S=>{var v=S.lang;return v.includes(navigator.language)&&S.localService===!0})[0]),Ke.default.log("defaultVoice",E),u?(Ke.default.log("initialVoice"),a.voice=u):m?(Ke.default.log("publicationVoice"),a.voice=m):E&&(Ke.default.log("defaultVoice"),a.voice=E),a.voice!==void 0&&a.voice!==null&&(a.lang=a.voice.lang,Ke.default.log("utterance.voice.lang",a.voice.lang),Ke.default.log("utterance.lang",a.lang)),Ke.default.log("navigator.language",navigator.language),a.onboundary=S=>{Ke.default.log(S.name),this.updateTTSInfo(r,S.charIndex,S.charLength,0,a.text)},setTimeout(()=>{window.speechSynthesis.speak(a),d.speaking||window.speechSynthesis.pause()},0),a.onend=function(){d.speaking&&d.ttsPlayQueueIndexDebounced(t+1,n)}}updateTTSInfo(t,n,r,o,a){if(!t)return;Ke.default.log(t,n,r,a);let l=a||Ko(t);if(n>=0&&a){let u=a.slice(0,n+1).search(/\S+$/),d=a.slice(n).search(/\s/),f=d<0?a.slice(u):a.slice(u,d+n),m=u+f.length;if(r===void 0){let p=a.substring(n).match(/^[a-z\d']*/i);p&&(r=p[0].length)}r===void 0&&(r=f.length),this.wrapHighlightWord(t,a,n+o,r,f,u,m)}return l}wrapHighlightWord(t,n,r,o,a,l,u){Ke.default.log(t),Ke.default.log(n),Ke.default.log(r,o,a,l,u),this._ttsQueueItemHighlightsWord&&(this.delegate.highlighter?.destroyHighlights(qe.ReadAloud),this._ttsQueueItemHighlightsWord=void 0);let d=t.item,f=r,m=0,p,E=-1,S,v=-1,y=f+o;for(let w of d.textNodes){if(!w.nodeValue&&w.nodeValue!=="")continue;let O=w.nodeValue.length;if(m+=O,p||f<m&&(p=w,E=O-(m-f)),p&&y<=m&&(S=w,v=O-(m-y)),S)break}if(p&&S){let O=function(_){try{let I=b.delegate.iframes[0].contentDocument;return I?ln(_,I,ro):""}catch(I){return Ke.default.log("uniqueCssSelector:"),Ke.default.error(I),""}},w=new Range;w.setStart(p,E),w.setEnd(S,v);var b=this;let T=Pi(w,O);if(!T)return;let C=this.delegate.highlighter?.createHighlight(this.delegate.iframes[0].contentWindow,{rangeInfo:T,cleanText:"",rawText:"",range:void 0},this.tts.color,!1,Le.Custom,{id:"tts",title:"",position:"right"},void 0,{defaultClass:this.tts.color},qe.ReadAloud,"R2_READALOUD_");if(C){this._ttsQueueItemHighlightsWord=C[0];let D=(C[1]?.firstChild?.getBoundingClientRect()).top-this.wrapper.scrollTop>window.innerHeight/2-65;this.delegate.view?.isScrollMode()&&this.tts.autoScroll&&!this.userScrolled&&this.scrollPartial&&D?C[1]?.firstChild?.scrollIntoView({block:"center",behavior:"smooth"}):this.delegate.view?.isPaginated()&&b.delegate.view?.snap(C[1]?.firstChild)}}}};function N3(i){let t=i;for(;t&&t.nodeType===Node.ELEMENT_NODE;){let n=t.getAttribute("xml:lang");if(n||(n=t.getAttributeNS("http://www.w3.org/XML/1998/namespace","lang")),n||(n=t.getAttribute("lang")),n)return n;t=t.parentNode}}function aN(i){let t=i;for(;t&&t.nodeType===Node.ELEMENT_NODE;){let n=t.getAttribute("dir");if(n)return n;t=t.parentNode}}function lN(i,t){if(i&&i.length){let n="";for(let r of i)r.nodeValue&&(n+=t?r.nodeValue:uN(r.nodeValue));return n}return""}function cN(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function uN(i){return cN(i).replace(/\n/g," ").replace(/\s\s+/g," ")}function Jo(i,t){let n=-1,r=-1;for(let o of i)if(r++,n++,t===n)return{item:o,iArray:r,iGlobal:n,iSentence:-1}}function Ko(i){return i.item.combinedText}A();var cl=Je(Ed());var H3=Je(to());var j3=Je(Dt()),ag=class{constructor(t,n,r,o,a){this.currentChapterPopupResult=[];this.currentPopupHighlights=[];this.definitions=(0,H3.debounce)(async()=>{if(await this.highlighter.destroyHighlights(qe.Definition),this.properties.definitions)for(let t of this.properties.definitions)await this.define(t)},200);this.delegate=t,this.publication=n,this.properties=r,this.api=a,this.highlighter=o}static async create(t){let n=new this(t.delegate,t.publication,t,t.highlighter,t.api);return await n.start(),n}async stop(){j3.default.log("Definitions module stop")}async start(){this.delegate.definitionsModule=this,setTimeout(()=>{this.properties.hideLayer?this.delegate.hideLayer("definitions"):this.delegate.showLayer("definitions")},10)}async searchAndPaint(t,n){let r=this.publication.getAbsoluteHref(this.publication.readingOrder?this.publication.readingOrder[this.delegate.currentResource()??0].Href:""),o=this.publication.getTOCItem(r);o===void 0&&this.publication.readingOrder&&(o=this.publication.readingOrder[this.delegate.currentResource()??0]);let a=[];if(o)for(let l of t.terms){let u=t.terms.indexOf(l);o&&await lo(l,this.delegate.iframes[0].contentDocument,o.Href,o.Title,this.delegate.definitionsModule?.properties.fullWordSearch).then(d=>{let f;t.result===1?f=0:t.result===2&&(f=Math.floor(Math.random()*d.length-1)+1),d.forEach((m,p)=>{if(f===void 0||f===p){let E={rangeInfo:m.rangeInfo},S=this.createDefinitionHighlight(E,t);m.highlight=S,a.push(cl.omit(S,"definition")),this.currentChapterPopupResult.push(m),this.currentPopupHighlights.push(S)}}),u===t.terms.length-1&&n(a)})}}async define(t){await this.searchAndPaint(t,async n=>{this.api?.success&&(this.api?.success(cl.omit(t,"callbacks"),n),this.delegate.emit("definition.success",n),this.api?.visible&&n.forEach(r=>{let a=this.delegate.iframes[0].contentDocument?.querySelector(`#${r.id}`)?.querySelectorAll(`.${pn}`),l=new IntersectionObserver((u,d)=>{u.forEach(f=>{f.intersectionRatio===1&&(this.api?.visible(cl.omit(t,"callbacks"),cl.omit(r,"definition")),this.delegate.emit("definition.visible",t,r))})},{threshold:1});a&&a.length>0&&l.observe(a[0])}))})}async drawDefinitions(){setTimeout(async()=>{await this.definitions()},100)}async handleResize(){await this.drawDefinitions()}createDefinitionHighlight(t,n){try{let r=this.delegate.definitionsModule?.properties.color;De.isHexColor(r)&&(r=De.hexToRgbChannels(r));let o=`${t.rangeInfo.startContainerElementCssSelector}${t.rangeInfo.startContainerChildTextNodeIndex}${t.rangeInfo.startOffset}${t.rangeInfo.endContainerElementCssSelector}${t.rangeInfo.endContainerChildTextNodeIndex}${t.rangeInfo.endOffset}`,a=Cr.hash(o),l="R2_DEFINITION_"+a;this.highlighter.destroyHighlight(this.delegate.iframes[0].contentDocument,l);let u={color:r||$o,id:l,pointerInteraction:!0,selectionInfo:t,marker:Le.Underline,type:qe.Definition};zt.push(u);let d=this.highlighter.createHighlightDom(this.delegate.iframes[0].contentWindow,u);return d&&(n.definition&&(d.dataset.definition=n.definition),d.dataset.order=String(n.order),u.definition=n,u.position=parseInt((d?.hasChildNodes()?d.childNodes[0]:d).style.top.replace("px",""))),u}catch(r){throw"Can't create definitions highlight: "+r}}async addDefinition(t){await this.define(t)}async clearDefinitions(){await this.highlighter.destroyHighlights(qe.Definition)}};A();var fo=Je(Dt()),D3=.5,Gd=class{constructor(t,n,r,o){this.hasEventListener=!1;this.lines=[];this.index=0;this.isActive=!1;this.isDebug=!1;this.lineFocusContainer=document.getElementById("lineFocusContainer");this.readerContainer=document.getElementById("D2Reader-Container");this.lineFocusTopBlinder=document.getElementById("lineFocusTopBlinder");this.lineFocusBottomBlinder=document.getElementById("lineFocusBottomBlinder");this.wrapperHeight=void 0;this.delegate=t,this.properties=n,this.api=o,this.highlighter=r}static async create(t){let n=new this(t.delegate,t,t.highlighter,t.api);return await n.start(),n}async stop(){fo.default.log("Definitions module stop"),this.hasEventListener=!1,we(document,"keydown",this.keydown.bind(this)),we(document,"keyup",this.keyup.bind(this)),we(this.delegate.iframes[0].contentDocument,"keydown",this.keydown.bind(this)),we(this.delegate.iframes[0].contentDocument,"keyup",this.keyup.bind(this))}async start(){this.delegate.lineFocusModule=this;let t=dt(document,"#iframe-wrapper");t.style.height.length>0&&(this.wrapperHeight=t.style.height,this.lineFocusContainer&&this.lineFocusContainer.style.height.length===0&&(this.lineFocusContainer.style.height=this.wrapperHeight),this.readerContainer&&this.readerContainer.style.height.length===0&&(this.readerContainer.style.height=this.wrapperHeight),this.readerContainer&&(this.readerContainer.style.overflow="hidden")),this.hasEventListener||(this.hasEventListener=!0,Z(document,"keydown",this.keydown.bind(this)),Z(document,"keyup",this.keyup.bind(this)),Z(this.delegate.iframes[0].contentDocument,"keydown",this.keydown.bind(this)),Z(this.delegate.iframes[0].contentDocument,"keyup",this.keyup.bind(this)))}keydown(t){if(t instanceof KeyboardEvent&&this.isActive)switch(t.key){case"ArrowUp":t.stopPropagation();break;case"ArrowDown":t.stopPropagation();break}}keyup(t){if(t instanceof KeyboardEvent&&this.isActive)switch(t.key){case"ArrowUp":this.lineUp();break;case"ArrowDown":this.lineDown();break}}handleResize(){this.isActive&&this.lineFocus()}async enableLineFocus(){this.isActive=!0,await this.delegate.settings.scroll(!0),this.lineFocus()}disableLineFocus(t=!0){this.isActive=!1;let n=dt(document,"#iframe-wrapper");this.wrapperHeight&&(n.style.height=this.wrapperHeight),t||(this.index=0);let r=this.delegate.iframes[0].contentDocument;Qt(r,"html").style.removeProperty("--USER__maxMediaHeight"),this.wrapperHeight=void 0,this.lineFocusContainer&&(this.lineFocusContainer.style.display="none");let a=document.getElementById("container-view-timeline");a&&a.style.removeProperty("display");let l=document.getElementById("divBefore");l&&l.remove();let u=document.getElementById("divAfter");u&&u.remove(),this.highlighter.destroyHighlights(qe.LineFocus)}lineFocus(){let t=dt(document,"#iframe-wrapper"),n=this.delegate.iframes[0].contentDocument,r=Qt(n,"html"),o=this.properties.maxHeight?$r()*this.properties.maxHeight/100:$r()/2;r.style.setProperty("--USER__maxMediaHeight",o+"px");function a(m,p){m.parentNode.insertBefore(p,m.nextSibling)}function l(m,p){m.parentNode.insertBefore(p,m)}let u=document.getElementById("container-view-timeline");u&&(u.style.display="none"),this.lineFocusContainer&&this.lineFocusContainer.style.removeProperty("display");let d=document.getElementById("divBefore");if(d)d.style.height=t.clientHeight/2+"px";else{let m=document.createElement("div");m.style.height=t.clientHeight/2+"px",m.id="divBefore",l(t,m)}let f=document.getElementById("divAfter");if(f)f.style.height=t.clientHeight/2+"px";else{let m=document.createElement("div");m.style.height=t.clientHeight/2+"px",m.id="divAfter",a(t,m)}if(this.lines=[],n){let E=function(){let O=Math.round,T=Math.random,C=255;return{blue:O(T()*C),green:O(T()*C),red:O(T()*C)}},S=function(O,T){let C=[];for(let _=0,I=0;_<O.length;_++)_>=T&&_%T==0&&I++,C[I]=C[I]||[],C[I].push(O[_]);return C},v=function(O,T){let C=Math.min(O.left,T.left),_=Math.max(O.right,T.right),I=Math.min(O.top,T.top),D=Math.max(O.bottom,T.bottom);return{bottom:D,height:D-I,left:C,right:_,top:I,width:_-C}},y=function(O){if(O.length>1){let T=v(O[0],O[1]);if(O.length>2){let C=v(T,O[2]);if(O.length>3){let _=v(C,O[3]);return O.length>4?v(_,O[4]):_}return C}return T}return O[0]},m=this.findRects(n.body);m=i0(m,!0),m=m.sort(function(O,T){return O.top-T.top});let p=[];m=m.filter(function(O){let T=O.top;return p.indexOf(T)===-1&&p.indexOf(T+1)===-1&&p.indexOf(T+2)===-1&&p.indexOf(T+3)===-1&&p.indexOf(T+4)===-1&&p.indexOf(T-1)===-1&&p.indexOf(T-2)===-1&&p.indexOf(T-3)===-1&&p.indexOf(T-4)===-1?(p.push(T),!0):!1}),this.highlighter.destroyHighlights(qe.LineFocus);let b=[];this.properties.lines&&this.properties.lines>1?S(m,this.properties.lines).forEach(T=>{b.push(y(T))}):b=m;let w=de(n,"#"+Me.R2_ID_LINEFOCUS_CONTAINER);if(w)for(let O of b){let T=document.createElement("div");T.setAttribute("class",pn);let C=E();if(De.isHexColor(C)&&(C=De.hexToRgbChannels(C)),this.isDebug){let he=`border-bottom: 1px solid rgba(${C.red}, ${C.green}, ${C.blue}, ${D3}) !important`;T.setAttribute("style",`mix-blend-mode: multiply; border-radius: 1px !important; background-color: rgba(${C.red}, ${C.green}, ${C.blue}, ${D3}) !important; ${he}`)}T.style.outline="none",T.tabIndex=0;let _=this.delegate.iframes[0].contentWindow.document,I=this.delegate.view.isPaginated();I?_.body.style.position="revert":_.body.style.position="relative";let D=_.body.getBoundingClientRect(),P=this.highlighter.getScrollingElement(_),q=I?-P.scrollLeft:D.left,F=I?-P.scrollTop:D.top,k=1,B=24,N,W,ye=this.delegate.iframes[0].contentWindow?.innerWidth,be=parseInt(getComputedStyle(n.documentElement).getPropertyValue("column-count")),fe=parseInt(getComputedStyle(n.documentElement).getPropertyValue("column-width")),re=parseInt(getComputedStyle(n.body).getPropertyValue("padding-left"));if(ye){let he=ye/(be||1);he<fe&&(he=ye),I||(he=parseInt(getComputedStyle(n.body).width.replace("px","")));let Ae=this.delegate.settings.fontSize/100,ue=20*Ae;Ae<=1&&(ue=-60);let xe=0;Ae<=1&&(xe=-60),N=Math.floor(O.left/he)*he+he-(B<40?40:B)+xe,W=Math.floor(O.left/he)*he+(B<40?40:B)-ue;let Re=parseInt(n.documentElement.style.getPropertyValue("--USER__pageMargins"));Re>=2&&(W=W+re/be,N=N-re/be),I||(N=parseInt(getComputedStyle(n.body).width.replace("px","")),W=parseInt(getComputedStyle(n.body).width.replace("px",""))-he,Re>=2&&(W=W+re/2,N=N-re/2))}T.style.setProperty("pointer-events","none"),T.style.position="absolute",T.scale=k,T.rect={height:O.height,left:O.left-q,top:O.top-F,width:O.width},T.style.width=`${T.rect.width*k}px`,T.style.height=`${T.rect.height*k}px`,T.style.left=`${T.rect.left*k}px`,T.style.top=`${T.rect.top*k}px`,this.lines.push(T),w.append(T)}setTimeout(()=>{this.currentLine()},100)}}currentLine(){let t=this.lines[this.index],n=t.style.top,o=parseInt(t.style.top.replace("px",""))+parseInt(t.style.height.replace("px",""))-parseInt(n.replace("px",""));if(this.lineFocusContainer){let l=(parseInt(getComputedStyle(this.lineFocusContainer).height.replace("px",""))-o)/2;this.lineFocusTopBlinder&&(this.lineFocusTopBlinder.style.height=l+"px"),this.lineFocusBottomBlinder&&(this.lineFocusBottomBlinder.style.height=l+"px")}t.scrollIntoView({block:"center",behavior:"smooth"})}lineDown(){if(this.index<this.lines.length-1){this.index+=1,this.index>this.lines.length-1&&(this.index=this.lines.length-1);let t=this.lines[this.index],n=t.style.top,o=parseInt(t.style.top.replace("px",""))+parseInt(t.style.height.replace("px",""))-parseInt(n.replace("px",""));if(this.lineFocusContainer){let l=(parseInt(getComputedStyle(this.lineFocusContainer).height.replace("px",""))-o)/2;this.lineFocusTopBlinder&&(this.lineFocusTopBlinder.style.height=l+"px"),this.lineFocusBottomBlinder&&(this.lineFocusBottomBlinder.style.height=l+"px")}t.scrollIntoView({block:"center",behavior:"smooth"})}}lineUp(){if(this.index>0){this.index-=1,this.index<0&&(this.index=0);let t=this.lines[this.index],n=t.style.top,o=parseInt(t.style.top.replace("px",""))+parseInt(t.style.height.replace("px",""))-parseInt(n.replace("px",""));if(this.lineFocusContainer){let l=(parseInt(getComputedStyle(this.lineFocusContainer).height.replace("px",""))-o)/2;this.lineFocusTopBlinder&&(this.lineFocusTopBlinder.style.height=l+"px"),this.lineFocusBottomBlinder&&(this.lineFocusBottomBlinder.style.height=l+"px")}t.scrollIntoView({block:"center",behavior:"smooth"})}}almostEqual(t,n,r){return Math.abs(t-n)<=r}findRects(t){let n=this.findTextNodes(t),r=Array.from(t.getElementsByTagName("img")),o=[];return n.forEach(a=>{o.push(...this.measureTextNodes(a))}),r.forEach(a=>{o.push(...this.measureImageNodes(a))}),o}findTextNodes(t,n=[]){let r=t.firstChild;for(;r;)r.nodeType===1&&this.findTextNodes(r,n),r.nodeType===3&&r.textContent?.trim()&&(r.textContent.trim().length>1||r.parentElement?.tagName.toLowerCase()==="h1"||r.parentElement?.tagName.toLowerCase()==="h2"||r.parentElement?.tagName.toLowerCase()==="h3"||r.parentElement?.tagName.toLowerCase()==="h4"||r.parentElement?.tagName.toLowerCase()==="h5"||r.parentElement?.tagName.toLowerCase()==="h6")&&r.parentElement&&getComputedStyle(r.parentElement).verticalAlign==="baseline"&&n.push(r),r=r.nextSibling;return n}measureTextNodes(t){try{let n=document.createRange();n.selectNodeContents(t);let r=Array.from(n.getClientRects());return n.detach(),r}catch(n){fo.default.log("measureTextNode "+n),fo.default.log("measureTextNode "+t),fo.default.log(`${t.textContent}`)}}measureImageNodes(t){try{let n=document.createRange();n.selectNode(t);let r=Array.from(n.getClientRects());return n.detach(),r}catch(n){fo.default.log("measureTextNode "+n),fo.default.log("measureTextNode "+t),fo.default.log(`${t.textContent}`)}}};A();var Vd=Je(Dt()),lg=class{constructor(t,n,r,o,a){this.history=[];this.headerMenu=a,this.delegate=n,this.publication=r,this.properties=o,this.annotator=t}static async create(t){let n=new this(t.annotator,t.delegate,t.publication,t,t.headerMenu);return await n.start(),n}async stop(){Vd.default.log("Page Break module stop"),we(this.historyForwardAnchorElement,"click",this.handleHistoryForwardClick.bind(this)),we(this.historyBackAnchorElement,"click",this.handleHistoryBackClick.bind(this))}async handleResize(){await this.setup()}setup(){this.history.length>0&&(this.historyForwardAnchorElement&&this.historyCurrentIndex+1<this.history.length?this.historyForwardAnchorElement.className=this.historyForwardAnchorElement.className.replace(" disabled",""):this.historyForwardAnchorElement&&(this.historyForwardAnchorElement.removeAttribute("href"),this.historyForwardAnchorElement.className+=" disabled"),this.historyBackAnchorElement&&this.historyCurrentIndex>0?this.historyBackAnchorElement.className=this.historyBackAnchorElement.className.replace(" disabled",""):this.historyBackAnchorElement&&(this.historyBackAnchorElement.removeAttribute("href"),this.historyBackAnchorElement.className+=" disabled"))}async push(t,n){let r;if(n&&this.annotator){let o=await this.annotator.getLastReadingPosition();if(o&&o.locations.progression&&o.locations.progression>0&&(this.historyCurrentIndex<this.history.length-1&&(this.history=this.history.slice(0,this.historyCurrentIndex)),r=this.history[this.history.length-1],r&&r.href!==o.href||r===void 0)){let a=this.publication.getAbsoluteHref(o.href);Vd.default.log(o.href),Vd.default.log(a),o.href=a,this.history.push(o),this.historyCurrentIndex=this.history.length-1}this.historyCurrentIndex<this.history.length-1&&(this.history=this.history.slice(0,this.historyCurrentIndex)),r=this.history[this.history.length-1],(r&&r.href!==t.href||r===void 0)&&(this.history.push(t),this.historyCurrentIndex=this.history.length-1)}}async start(){this.delegate.historyModule=this,this.headerMenu&&(this.historyForwardAnchorElement=de(this.headerMenu,"#history-forward")),this.headerMenu&&(this.historyBackAnchorElement=de(this.headerMenu,"#history-back")),this.historyCurrentIndex=this.history.length-1,Z(this.historyForwardAnchorElement,"click",this.handleHistoryForwardClick.bind(this)),Z(this.historyBackAnchorElement,"click",this.handleHistoryBackClick.bind(this))}async handleHistoryForwardClick(t){this.history.length>0&&this.historyCurrentIndex+1<this.history.length&&(this.historyCurrentIndex=this.historyCurrentIndex+1,await this.delegate.navigate(this.history[this.historyCurrentIndex],!1)),t.preventDefault(),t.stopPropagation()}async handleHistoryBackClick(t){this.history.length>0&&this.historyCurrentIndex>0&&(this.historyCurrentIndex=this.historyCurrentIndex-1,await this.delegate.navigate(this.history[this.historyCurrentIndex],!1)),t.preventDefault(),t.stopPropagation()}};A();var F3=Je(Dt()),it;(function(r){r[r.Chicago=0]="Chicago",r[r.MLA=1]="MLA",r[r.APA=2]="APA"})(it||(it={}));var $3;(function(o){o.Author="Author",o.Editor="Editor",o.Translator="Translator",o.Compiler="Compiler"})($3||($3={}));var Jd=class{constructor(t,n,r,o,a){this.highlighter=r,this.delegate=t,this.properties=o,this.publication=n,this.api=a}static async create(t){let n=new this(t.delegate,t.publication,t.highlighter,t,t.api);return await n.start(),n}async stop(){F3.default.log("Citation module stop")}copyToClipboard(t){this.delegate?.contentProtectionModule&&(this.delegate.contentProtectionModule.citation=!0);let n=!0;if(window.clipboardData)window.clipboardData.setData("text/plain",t);else{let r=this.createElementForExecCommand(t);this.selectContent(r);try{window.netscape&&netscape.security&&netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"),n=document.execCommand("copy",!1)}catch(o){n=!1}document.body.removeChild(r)}n?this.api?.citationCreated("The text was copied to the clipboard!"):this.api?.citationFailed("Your browser doesn't allow clipboard access!")}createElementForExecCommand(t){let n=document.createElement("div");return n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.innerHTML=t,document.body.appendChild(n),n.contentEditable=!0,n}selectContent(t){let n=document.createRange();n.selectNodeContents(t);let r=window.getSelection();r?.removeAllRanges(),r?.addRange(n)}async start(){this.delegate.citationModule=this;let t=this,n={id:"citationIcon",callback:function(r){let o=function(){let P="",q="",F="";return t.properties.author?(F=F+t.properties.author,q=q+t.properties.author,P=P+t.properties.author):t.publication.Metadata.Author?.length>0&&0===0&&t.publication.Metadata.Author[0].Name&&t.publication.Metadata.Author[0].Name.length>0&&(F=F+t.publication.Metadata.Author[0].Name,q=q+t.publication.Metadata.Author[0].Name,P=P+t.publication.Metadata.Author[0].Name),F.length>0&&q.length>0&&P.length>0?[P+". ",q+". ",F+". "]:["","",""]},a=function(){let P="",q="",F="";return t.properties.publisher?(q=q+t.properties.publisher+", ",P=P+t.properties.publisher+", "):t.publication.Metadata.Publisher&&t.publication.Metadata.Publisher[0].Name&&(q=q+t.publication.Metadata.Publisher[0].Name+", ",P=P+t.publication.Metadata.Publisher[0].Name+", "),t.properties.published?(F=F+"("+t.properties.published+")",q=q+t.properties.published,P=P+t.properties.published):t.publication.Metadata.PublicationDate&&t.publication.Metadata.PublicationDate.getFullYear()>0&&(F=F+"("+t.publication.Metadata.PublicationDate.getFullYear()+")",q=q+t.publication.Metadata.PublicationDate.getFullYear(),P=P+t.publication.Metadata.PublicationDate.getFullYear()),F.length>0&&q.length>0&&P.length>0?[P+". ",q+". ",F+". "]:["","",""]},l=function(){return t.properties.title?[t.properties.title+". ",t.properties.title+". ",t.properties.title+". "]:t.publication.Metadata.Title?[t.publication.Metadata.Title+". ",t.publication.Metadata.Title+". ",t.publication.Metadata.Title+". "]:["","",""]},u=function(){return["","",""]},d=function(){let P="",q="",F="";return t.properties.publisher?(q=q+t.properties.publisher+", ",P=P+t.properties.publisher+", ",F=F+t.properties.publisher+", "):t.publication.Metadata.Publisher&&t.publication.Metadata.Publisher[0].Name&&(q=q+t.publication.Metadata.Publisher[0].Name+", ",P=P+t.publication.Metadata.Publisher[0].Name+", ",F=F+t.publication.Metadata.Publisher[0].Name+", "),F.length>0&&q.length>0&&P.length>0?[P+". ",q+". ",F+". "]:["","",""]},f=function(){return["","",""]},m=function(){return["","",""]},p=function(){return["","",""]},E=function(){return t.properties.library?["Retrieved from "+t.properties.library+". ","Retrieved from "+t.properties.library+". ","Retrieved from "+t.properties.library+". "]:["","",""]},S=function(){return t.properties.appName?[t.properties.appName+". ",t.properties.appName+". ",t.properties.appName+". "]:["","",""]},v=function(){return t.properties.appLink?[t.properties.appLink+". ",t.properties.appLink+". ",t.properties.appLink+". "]:["","",""]},y=function(){return["","",""]},b=function(P,q){return P.length>q?P.substring(0,q)+"...":P},w=o()[0]+l()[0]+f()[0]+u()[0]+p()[0]+a()[0]+m()[0]+E()[0]+S()[0]+v()[0],O=o()[2]+a()[2]+l()[2]+u()[2]+d()[2]+f()[2]+m()[2]+p()[2]+E()[2]+S()[2]+v()[2],T=o()[1]+l()[1]+f()[1]+u()[1]+p()[1]+a()[1]+y()[1]+E()[1]+S()[1]+v()[1],C="\u201C"+b(r,t.properties.characters)+"\u201C<br><br><em>"+w+"</em>",_="\u201C"+b(r,t.properties.characters)+"\u201C<br><br><em>"+O+"</em>",I="\u201C"+b(r,t.properties.characters)+"\u201C<br><br><em>"+T+"</em>",D="";t.properties.styles?.includes(it[0])&&(D=D+"Chicago: <br>"+C+"<br><br>"),t.properties.styles?.includes(it[2])&&(D=D+"APA: <br>"+_+"<br><br>"),t.properties.styles?.includes(it[1])&&(D=D+"MLA: <br>"+I+"<br><br>"),t.copyToClipboard(D)}};this.highlighter?.addSelectionMenuItem(n)}};var Yo=class{constructor(t,n,r,o,a,l,u,d,f,m,p,E,S,v,y,b,w){this.settings=t;this.navigator=n;this.highlighter=r;this.bookmarkModule=o;this.annotationModule=a;this.ttsSettings=l;this.ttsModule=u;this.searchModule=d;this.definitionsModule=f;this.contentProtectionModule=m;this.timelineModule=p;this.mediaOverlaySettings=E;this.mediaOverlayModule=S;this.pageBreakModule=v;this.lineFocusModule=y;this.historyModule=b;this.citationModule=w;this.startReadAloud=()=>{this.navigator.startReadAloud()};this.stopReadAloud=()=>{this.navigator.stopReadAloud()};this.pauseReadAloud=()=>{this.navigator.pauseReadAloud()};this.resumeReadAloud=()=>{this.navigator.resumeReadAloud()};this.startReadAlong=()=>{this.navigator.startReadAlong()};this.stopReadAlong=()=>{this.navigator.stopReadAlong()};this.pauseReadAlong=()=>{this.navigator.pauseReadAlong()};this.resumeReadAlong=()=>{this.navigator.resumeReadAlong()};this.saveBookmark=async()=>await this.bookmarkModule?.saveBookmark()??!1;this.saveBookmarkPlus=async()=>this.bookmarkModule?.saveBookmarkPlus();this.deleteBookmark=async t=>await this.bookmarkModule?.deleteBookmark(t)??!1;this.deleteAnnotation=async t=>await this.annotationModule?.deleteAnnotation(t)??!1;this.addAnnotation=async t=>await this.annotationModule?.addAnnotation(t)??!1;this.hideAnnotationLayer=()=>this.annotationModule?.hideAnnotationLayer();this.showAnnotationLayer=()=>this.annotationModule?.showAnnotationLayer();this.hideLayer=t=>this.navigator?.hideLayer(t);this.showLayer=t=>this.navigator?.showLayer(t);this.activateMarker=(t,n)=>this.navigator?.activateMarker(t,n);this.deactivateMarker=()=>this.navigator?.deactivateMarker();this.clearDefinitions=async()=>{await this.definitionsModule?.clearDefinitions()};this.addDefinition=async t=>{await this.definitionsModule?.addDefinition(t)};this.search=async(t,n)=>await this.searchModule?.search(t,n)??[];this.goToSearchIndex=async(t,n,r)=>{this.navigator.rights.enableSearch&&await this.searchModule?.goToSearchIndex(t,n,r)};this.goToSearchID=async(t,n,r)=>{this.navigator.rights.enableSearch&&await this.searchModule?.goToSearchID(t,n,r)};this.clearSearch=async()=>{this.navigator.rights.enableSearch&&await this.searchModule?.clearSearch()};this.resetUserSettings=async()=>await this.settings.resetUserSettings();this.applyUserSettings=async t=>await this.settings.applyUserSettings(t);this.scroll=async t=>await this.settings.scroll(t);this.increase=async t=>{this.isTTSIncrementable(t)?this.navigator.rights.enableTTS&&await this.ttsSettings?.increase(t):this.isMOIncrementable(t)?this.navigator.rights.enableMediaOverlays&&await this.mediaOverlaySettings?.increase(t):await this.settings.increase(t)};this.decrease=async t=>{this.isTTSIncrementable(t)?this.navigator.rights.enableTTS&&await this.ttsSettings?.decrease(t):this.isMOIncrementable(t)?this.navigator.rights.enableMediaOverlays&&await this.mediaOverlaySettings?.decrease(t):await this.settings.decrease(t)};this.resetTTSSettings=()=>{this.navigator.rights.enableTTS&&this.ttsSettings?.resetTTSSettings()};this.applyTTSSettings=async t=>{this.navigator.rights.enableTTS&&await this.ttsSettings?.applyTTSSettings(t)};this.applyPreferredVoice=async t=>{this.navigator.rights.enableTTS&&await this.ttsSettings?.applyPreferredVoice(t)};this.resetMediaOverlaySettings=async()=>{this.navigator.rights.enableMediaOverlays&&await this.mediaOverlaySettings?.resetMediaOverlaySettings()};this.applyMediaOverlaySettings=async t=>{this.navigator.rights.enableMediaOverlays&&await this.mediaOverlaySettings?.applyMediaOverlaySettings(t)};this.goTo=async t=>{this.navigator.goTo(t)};this.goToPosition=async t=>this.navigator.goToPosition(t);this.goToPage=async t=>{await this.navigator.goToPage(t)};this.copyToClipboard=t=>{this.contentProtectionModule?.copyToClipboard(t)};this.nextResource=()=>{this.navigator.nextResource()};this.previousResource=()=>{this.navigator.previousResource()};this.nextPage=async()=>{this.navigator.nextPage()};this.previousPage=async()=>{this.navigator.previousPage()};this.snapToSelector=async t=>{this.navigator.snapToSelector(t)};this.applyAttributes=t=>{this.navigator.applyAttributes(t)};this.stop=()=>{document.body.onscroll=()=>{},this.navigator.stop(),this.settings.stop(),this.ttsSettings?.stop(),this.ttsModule?.stop(),this.bookmarkModule?.stop(),this.annotationModule?.stop(),this.searchModule?.stop(),this.definitionsModule?.stop(),this.contentProtectionModule?.stop(),this.timelineModule?.stop(),this.mediaOverlaySettings?.stop(),this.mediaOverlayModule?.stop(),this.pageBreakModule?.stop(),this.lineFocusModule?.stop()}}addEventListener(){this.navigator.addListener(arguments[0],arguments[1])}static async load(t){let n=t.rights??{autoGeneratePositions:!1,enableAnnotations:!1,enableBookmarks:!1,enableContentProtection:!1,enableDefinitions:!1,enableLineFocus:!1,enableMediaOverlays:!1,enablePageBreaks:!1,enableSearch:!1,enableTTS:!1,enableTimeline:!1,customKeyboardEvents:!1,enableHistory:!1,enableCitations:!1};n.enableContentProtection&&t.protection&&await jd.setupPreloadProtection(t.protection);let r=dt(document,"#D2Reader-Container"),o=de(document,"#headerMenu"),a=de(document,"#footerMenu"),l=t.url,u;t.publication?(u=Cs(t.publication,Yi),u.manifestUrl=new URL(l)):u=await Yi.fromUrl(l,t.requestConfig);let d=new Ys({prefix:u.manifestUrl,useLocalStorage:t.useLocalStorage??!1}),f=new Ys({prefix:"r2d2bc-reader",useLocalStorage:t.useLocalStorage??!1}),m=new Ys({prefix:"r2d2bc-layers",useLocalStorage:t.useLocalStorage??!1}),p=new uo({store:d});u.sample=t.sample,n=dN(n,u),n.autoGeneratePositions?await u.autoGeneratePositions(t.requestConfig):(t.services?.positions&&await u.fetchPositionsFromService(t.services?.positions.href,t.requestConfig),t.services?.weight&&await u.fetchWeightsFromService(t.services?.weight.href,t.requestConfig));let E=await ig.create({store:m}),S=await jo.create({store:f,initialUserSettings:t.userSettings,headerMenu:o,api:t.api,injectables:(u.Metadata.Rendition?.Layout??"unknown")==="fixed"?t.injectablesFixed:t.injectables,layout:(u.Metadata.Rendition?.Layout??"unknown")==="fixed"?"fixed":"reflowable"}),v=await Ln.create({mainElement:r,headerMenu:o,footerMenu:a,publication:u,settings:S,annotator:p,initialLastReadingPosition:t.lastReadingPosition,api:t.api,rights:n,tts:t.tts,sample:t.sample,requestConfig:t.requestConfig,injectables:(u.Metadata.Rendition?.Layout??"unknown")==="fixed"?t.injectablesFixed??[]:t.injectables,attributes:t.attributes,services:t.services}),y=await De.create(Fe({delegate:v,layerSettings:E},t.highlighter)),b=n.enableBookmarks?await el.create(Fe({annotator:p,headerMenu:o,rights:n,publication:u,delegate:v,initialAnnotations:t.initialAnnotations},t.bookmarks)):void 0,w=n.enableAnnotations?await Qa.create(Fe({annotator:p,rights:n,publication:u,delegate:v,initialAnnotations:t.initialAnnotations,highlighter:y,headerMenu:o},t.annotations)):void 0,O=n.enableTTS,T=O?await ng.create({store:f,initialTTSSettings:t.tts,headerMenu:o}):void 0,C;O&&T&&(C=await sg.create(Fe({delegate:v,tts:T,headerMenu:o,rights:n,highlighter:y},t.tts)));let _=n.enableSearch?await tg.create(Fe({headerMenu:o,delegate:v,publication:u,highlighter:y},t.search)):void 0,I=n.enableDefinitions?await ag.create(Fe({delegate:v,publication:u,highlighter:y},t.define)):void 0,D=n.enableTimeline?await L0.create({publication:u,delegate:v}):void 0,P=n.enableCitations?await Jd.create(Fe({publication:u,delegate:v,highlighter:y},t.citations)):void 0,q=n.enableContentProtection?await jd.create(Fe({delegate:v},t.protection)):void 0,F=n.enableMediaOverlays,k=F?await M0.create(Fe({store:f,initialMediaOverlaySettings:t.mediaOverlays,headerMenu:o},t.mediaOverlays)):void 0,B=F?await P0.create(Fe({publication:u,delegate:v,settings:k},t.mediaOverlays)):void 0,W=n.enablePageBreaks&&u.isReflowable?await og.create(Fe({publication:u,headerMenu:o,delegate:v},t.pagebreak)):void 0,ye=n.enableLineFocus?await Gd.create(Fe({publication:u,delegate:v,highlighter:y},t.lineFocus)):void 0,be=n.enableHistory?await lg.create({annotator:p,publication:u,delegate:v,headerMenu:o}):void 0;return new Yo(S,v,y,b,w,T,C,_,I,q,D,k,B,W,ye,be,P)}get hasMediaOverlays(){return this.navigator.hasMediaOverlays}get tableOfContents(){return al(this.navigator.tableOfContents())??[]}get readingOrder(){return al(this.navigator.readingOrder())??[]}get bookmarks(){return this.bookmarkModule?.getBookmarks()??[]}get annotations(){return this.annotationModule?.getAnnotations()}get currentResource(){return this.navigator.currentResource()}get mostRecentNavigatedTocItem(){return this.navigator.mostRecentNavigatedTocItem()}get totalResources(){return this.navigator.totalResources()}get publicationLanguage(){return this.navigator.publication.Metadata.Language}get currentSettings(){return this.settings.currentSettings}isTTSIncrementable(t){return t==="pitch"||t==="rate"||t==="volume"}isMOIncrementable(t){return t==="mo_rate"||t==="mo_volume"}get currentLocator(){return this.navigator.currentLocator()}get positions(){return this.navigator.positions()}get atStart(){return this.navigator.atStart()}get atEnd(){return this.navigator.atEnd()}async applyLineFocusSettings(t){if(t.lines&&this.lineFocusModule){let n=this.lineFocusModule.properties.lines??1;this.lineFocusModule.index=this.lineFocusModule.index*n/parseInt(t.lines),this.lineFocusModule.index=Math.abs(parseInt(this.lineFocusModule.index.toFixed())),this.lineFocusModule.properties.lines=parseInt(t.lines),this.lineFocusModule.isActive&&await this.lineFocusModule.enableLineFocus()}t.debug!==void 0&&this.lineFocusModule&&(this.lineFocusModule.isDebug=t.debug,this.lineFocusModule.isActive&&await this.lineFocusModule.enableLineFocus())}lineUp(){this.lineFocusModule?.lineUp()}lineDown(){this.lineFocusModule?.lineDown()}async enableLineFocus(){await this.lineFocusModule?.enableLineFocus()}async lineFocus(t){t?await this.lineFocusModule?.enableLineFocus():this.lineFocusModule?.disableLineFocus()}disableLineFocus(){this.lineFocusModule?.disableLineFocus()}};function dN(i,t){return t.isFixedLayout&&(i.enableAnnotations=!1,i.enableSearch=!1,i.enableTTS=!1,i.enableDefinitions=!1,i.enablePageBreaks=!1,i.enableLineFocus=!1),t.sample?.isSampleRead&&(i.enableAnnotations=!1,i.enableSearch=!1,i.enableTTS=!1,i.enableDefinitions=!1,i.enableTimeline=!1,i.enableMediaOverlays=!1,i.enablePageBreaks=!1,i.enableLineFocus=!1),i}var fN=Yo,hN=Yo.load;return pN;})();
83
83
  /*!
84
84
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
85
85
  *