(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var k,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ca=ba(this);
function da(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}}da("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push(b[d]);return c}});
function ea(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}da("Array.prototype.values",function(a){return a?a:function(){return ea(this,function(b,c){return c})}});var n=this||self;
function p(a,b,c){a=a.split(".");c=c||n;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b}function fa(a){var b=typeof a;b="object"!=b?b:a?Array.isArray(a)?"array":b:"null";return"array"==b||"object"==b&&"number"==typeof a.length}function ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}
function ia(a){return Object.prototype.hasOwnProperty.call(a,ja)&&a[ja]||(a[ja]=++la)}var ja="closure_uid_"+(1E9*Math.random()>>>0),la=0;function ma(a,b,c){return a.call.apply(a.bind,arguments)}function na(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}
function oa(a,b,c){oa=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ma:na;return oa.apply(null,arguments)}function q(a,b){function c(){}c.prototype=b.prototype;a.Cc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.zc=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};function pa(a){if(n.Lb)return n.Lb(a);try{const b=new XMLHttpRequest;b.open("get",a,!1);b.send();return 0==b.status||200==b.status?b.responseText:null}catch(b){return null}}function qa(a){return a&&a.includes("file:///")?a.substr(8):a}n.rc=function(a,b){a=qa(a);b?eval(b):(b=pa(a),eval(b));return!0};function t(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)}q(t,Error);t.prototype.name="CustomError";function ra(a,b){a=a.split("%s");let c="";const d=a.length-1;for(let e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");t.call(this,c+a[d])}q(ra,t);ra.prototype.name="AssertionError";function sa(a){throw a;}function ta(a,b){sa(new ra("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};function u(a){this.ua=a;this.D=this.ua.length/4;this.Y=this.D+6;this.H=[[],[],[],[]];this.ia=[[],[],[],[]];this.B=Array(v*(this.Y+1));for(a=0;a<this.D;a++)this.B[a]=[this.ua[4*a],this.ua[4*a+1],this.ua[4*a+2],this.ua[4*a+3]];var b=Array(4);for(a=this.D;a<v*(this.Y+1);a++){b[0]=this.B[a-1][0];b[1]=this.B[a-1][1];b[2]=this.B[a-1][2];b[3]=this.B[a-1][3];if(0==a%this.D){var c=b,d=c[0];c[0]=c[1];c[1]=c[2];c[2]=c[3];c[3]=d;ua(b);b[0]^=w[a/this.D][0];b[1]^=w[a/this.D][1];b[2]^=w[a/this.D][2];b[3]^=w[a/this.D][3]}else 6<
this.D&&4==a%this.D&&ua(b);this.B[a]=Array(4);this.B[a][0]=this.B[a-this.D][0]^b[0];this.B[a][1]=this.B[a-this.D][1]^b[1];this.B[a][2]=this.B[a-this.D][2]^b[2];this.B[a][3]=this.B[a-this.D][3]^b[3]}}u.prototype.ja=16;var v=u.prototype.ja/4;
u.prototype.encrypt=function(a){va(this,a);x(this,0);for(a=1;a<this.Y;++a){y(this,z);wa(this);for(var b=this.H,c=this.ia[0],d=0;4>d;d++)c[0]=b[0][d],c[1]=b[1][d],c[2]=b[2][d],c[3]=b[3][d],b[0][d]=A[c[0]]^B[c[1]]^c[2]^c[3],b[1][d]=c[0]^A[c[1]]^B[c[2]]^c[3],b[2][d]=c[0]^c[1]^A[c[2]]^B[c[3]],b[3][d]=B[c[0]]^c[1]^c[2]^A[c[3]];x(this,a)}y(this,z);wa(this);x(this,this.Y);return xa(this)};
u.prototype.decrypt=function(a){va(this,a);x(this,this.Y);for(a=1;a<this.Y;++a){ya(this);y(this,za);x(this,this.Y-a);for(var b=this.H,c=this.ia[0],d=0;4>d;d++)c[0]=b[0][d],c[1]=b[1][d],c[2]=b[2][d],c[3]=b[3][d],b[0][d]=Aa[c[0]]^Ba[c[1]]^Ca[c[2]]^Da[c[3]],b[1][d]=Da[c[0]]^Aa[c[1]]^Ba[c[2]]^Ca[c[3]],b[2][d]=Ca[c[0]]^Da[c[1]]^Aa[c[2]]^Ba[c[3]],b[3][d]=Ba[c[0]]^Ca[c[1]]^Da[c[2]]^Aa[c[3]]}ya(this);y(this,za);x(this,0);return xa(this)};
function va(a,b){for(var c,d=0;d<v;d++)for(var e=0;4>e;e++)c=4*e+d,c=b[c],a.H[d][e]=c}function xa(a){for(var b=[],c=0;c<v;c++)for(var d=0;4>d;d++)b[4*d+c]=a.H[c][d];return b}function x(a,b){for(var c=0;4>c;c++)for(var d=0;4>d;d++)a.H[c][d]^=a.B[4*b+d][c]}function y(a,b){for(var c=0;4>c;c++)for(var d=0;4>d;d++)a.H[c][d]=b[a.H[c][d]]}function wa(a){for(var b=1;4>b;b++)for(var c=0;4>c;c++)a.ia[b][c]=a.H[b][c];for(b=1;4>b;b++)for(c=0;4>c;c++)a.H[b][c]=a.ia[b][(c+b)%v]}
function ya(a){for(var b=1;4>b;b++)for(var c=0;4>c;c++)a.ia[b][(c+b)%v]=a.H[b][c];for(b=1;4>b;b++)for(c=0;4>c;c++)a.H[b][c]=a.ia[b][c]}function ua(a){a[0]=z[a[0]];a[1]=z[a[1]];a[2]=z[a[2]];a[3]=z[a[3]]}
var z=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,
61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],za=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,
255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,
26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],w=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],A=[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,
34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,27,25,31,29,19,17,23,21,11,9,15,13,3,1,7,5,59,57,63,61,51,49,55,53,43,41,47,45,35,33,39,37,
91,89,95,93,83,81,87,85,75,73,79,77,67,65,71,69,123,121,127,125,115,113,119,117,107,105,111,109,99,97,103,101,155,153,159,157,147,145,151,149,139,137,143,141,131,129,135,133,187,185,191,189,179,177,183,181,171,169,175,173,163,161,167,165,219,217,223,221,211,209,215,213,203,201,207,205,195,193,199,197,251,249,255,253,243,241,247,245,235,233,239,237,227,225,231,229],B=[0,3,6,5,12,15,10,9,24,27,30,29,20,23,18,17,48,51,54,53,60,63,58,57,40,43,46,45,36,39,34,33,96,99,102,101,108,111,106,105,120,123,126,
125,116,119,114,113,80,83,86,85,92,95,90,89,72,75,78,77,68,71,66,65,192,195,198,197,204,207,202,201,216,219,222,221,212,215,210,209,240,243,246,245,252,255,250,249,232,235,238,237,228,231,226,225,160,163,166,165,172,175,170,169,184,187,190,189,180,183,178,177,144,147,150,149,156,159,154,153,136,139,142,141,132,135,130,129,155,152,157,158,151,148,145,146,131,128,133,134,143,140,137,138,171,168,173,174,167,164,161,162,179,176,181,182,191,188,185,186,251,248,253,254,247,244,241,242,227,224,229,230,239,
236,233,234,203,200,205,206,199,196,193,194,211,208,213,214,223,220,217,218,91,88,93,94,87,84,81,82,67,64,69,70,79,76,73,74,107,104,109,110,103,100,97,98,115,112,117,118,127,124,121,122,59,56,61,62,55,52,49,50,35,32,37,38,47,44,41,42,11,8,13,14,7,4,1,2,19,16,21,22,31,28,25,26],Da=[0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,59,50,41,32,31,22,13,4,115,122,97,104,87,94,69,76,171,162,185,176,143,134,157,148,227,234,241,248,199,206,
213,220,118,127,100,109,82,91,64,73,62,55,44,37,26,19,8,1,230,239,244,253,194,203,208,217,174,167,188,181,138,131,152,145,77,68,95,86,105,96,123,114,5,12,23,30,33,40,51,58,221,212,207,198,249,240,235,226,149,156,135,142,177,184,163,170,236,229,254,247,200,193,218,211,164,173,182,191,128,137,146,155,124,117,110,103,88,81,74,67,52,61,38,47,16,25,2,11,215,222,197,204,243,250,225,232,159,150,141,132,187,178,169,160,71,78,85,92,99,106,113,120,15,6,29,20,43,34,57,48,154,147,136,129,190,183,172,165,210,
219,192,201,246,255,228,237,10,3,24,17,46,39,60,53,66,75,80,89,102,111,116,125,161,168,179,186,133,140,151,158,233,224,251,242,205,196,223,214,49,56,35,42,21,28,7,14,121,112,107,98,93,84,79,70],Ba=[0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,123,112,109,102,87,92,65,74,35,40,53,62,15,4,25,18,203,192,221,214,231,236,241,250,147,152,133,142,191,180,169,162,246,253,224,235,218,209,204,199,174,165,184,179,130,137,148,159,70,77,80,91,
106,97,124,119,30,21,8,3,50,57,36,47,141,134,155,144,161,170,183,188,213,222,195,200,249,242,239,228,61,54,43,32,17,26,7,12,101,110,115,120,73,66,95,84,247,252,225,234,219,208,205,198,175,164,185,178,131,136,149,158,71,76,81,90,107,96,125,118,31,20,9,2,51,56,37,46,140,135,154,145,160,171,182,189,212,223,194,201,248,243,238,229,60,55,42,33,16,27,6,13,100,111,114,121,72,67,94,85,1,10,23,28,45,38,59,48,89,82,79,68,117,126,99,104,177,186,167,172,157,150,139,128,233,226,255,244,197,206,211,216,122,113,
108,103,86,93,64,75,34,41,52,63,14,5,24,19,202,193,220,215,230,237,240,251,146,153,132,143,190,181,168,163],Ca=[0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,187,182,161,172,143,130,149,152,211,222,201,196,231,234,253,240,107,102,113,124,95,82,69,72,3,14,25,20,55,58,45,32,109,96,119,122,89,84,67,78,5,8,31,18,49,60,43,38,189,176,167,170,137,132,147,158,213,216,207,194,225,236,251,246,214,219,204,193,226,239,248,245,190,179,164,169,
138,135,144,157,6,11,28,17,50,63,40,37,110,99,116,121,90,87,64,77,218,215,192,205,238,227,244,249,178,191,168,165,134,139,156,145,10,7,16,29,62,51,36,41,98,111,120,117,86,91,76,65,97,108,123,118,85,88,79,66,9,4,19,30,61,48,39,42,177,188,171,166,133,136,159,146,217,212,195,206,237,224,247,250,183,186,173,160,131,142,153,148,223,210,197,200,235,230,241,252,103,106,125,112,83,94,73,68,15,2,21,24,59,54,33,44,12,1,22,27,56,53,34,47,100,105,126,115,80,93,74,71,220,209,198,203,232,229,242,255,180,185,174,
163,128,141,154,151],Aa=[0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,219,213,199,201,227,237,255,241,171,165,183,185,147,157,143,129,59,53,39,41,3,13,31,17,75,69,87,89,115,125,111,97,173,163,177,191,149,155,137,135,221,211,193,207,229,235,249,247,77,67,81,95,117,123,105,103,61,51,33,47,5,11,25,23,118,120,106,100,78,64,82,92,6,8,26,20,62,48,34,44,150,152,138,132,174,160,178,188,230,232,250,244,222,208,194,204,65,79,93,83,121,119,
101,107,49,63,45,35,9,7,21,27,161,175,189,179,153,151,133,139,209,223,205,195,233,231,245,251,154,148,134,136,162,172,190,176,234,228,246,248,210,220,206,192,122,116,102,104,66,76,94,80,10,4,22,24,50,60,46,32,236,226,240,254,212,218,200,198,156,146,128,142,164,170,184,182,12,2,16,30,52,58,40,38,124,114,96,110,68,74,88,86,55,57,43,37,15,1,19,29,71,73,91,85,127,113,99,109,215,217,203,197,239,225,243,253,167,169,187,181,159,145,131,141];const C=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(let c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ea=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){const d=a.length,e="string"===typeof a?a.split(""):a;for(let f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
function Fa(a,b){a:{const c=a.length,d="string"===typeof a?a.split(""):a;for(let e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:"string"===typeof a?a.charAt(b):a[b]}function Ga(a){const b=a.length;if(0<b){const c=Array(b);for(let d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ha(a,b){for(let c=1;c<arguments.length;c++){const d=arguments[c];if(fa(d)){const e=a.length||0,f=d.length||0;a.length=e+f;for(let g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}}
function Ia(a,b,c,d){Array.prototype.splice.apply(a,Ka(arguments,1))}function Ka(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};function D(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b}function La(a,b){for(var c=[],d=0;d<a.length;d++)c.push(a[d]^b[d]);return c};function Ma(a){this.fa=a}Ma.prototype.encrypt=function(a,b){var c=[],d=b;for(b=0;b<a.length;b+=this.fa.ja)d=La(Array.prototype.slice.call(a,b,b+this.fa.ja),d),d=this.fa.encrypt(d),Ha(c,d);return c};Ma.prototype.decrypt=function(a,b){for(var c=[],d=0,e=b;d<a.length;){b=Array.prototype.slice.call(a,d,d+this.fa.ja);var f=this.fa.decrypt(b);e=La(e,f);Ha(c,e);e=b;d+=this.fa.ja}return c};var Na=D("343ebcf014a7e244ba703229647cf607"),Oa=D("429ab6bc5b161fb66503db4b4b7e310b"),Pa=D("410f951a7436c2bcae986399fe12d772"),Qa=D("b3ee0a61544dc2e8b07cfc41277893ac");function Ra(a,b,c){const [d,e]=a.split(":");var f=D(e);a=parseInt(d,10);b=new u(b);c=(new Ma(b)).decrypt(f,c);c=a?c.slice(0,-a):c;for(b=a=0;a<c.length;)f=c[a++],128>f||(191<f&&224>f?a++:239<f&&365>f?(a++,a++,a++,b++):(a++,a++)),b++};class Sa{constructor(a){this.Ub=a}};var Ta=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Ua=/&/g,Va=/</g,Wa=/>/g,Xa=/"/g,Ya=/'/g,Za=/\x00/g,$a=/[\x00&<>"']/;function ab(a,b){for(const c in a)b.call(void 0,a[c],c,a)}function bb(a){const b=[];let c=0;for(const d in a)b[c++]=a[d];return b}function E(a,b,c){return null!==a&&b in a?a[b]:c};function cb(){var a=n.navigator;return a&&(a=a.userAgent)?a:""}function F(a){return-1!=cb().indexOf(a)};function db(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}function eb(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};class fb{constructor(a){this.Xa=a}ic(a,b,c){c=this.Xa.hasOwnProperty(a)?this.Xa[a]:c;if(void 0!==c){if(void 0!==b){a=this.Ob;for(let d in b)if(b.hasOwnProperty(d)){const e=b[d];a&&(d=a(d));c=c.replace(new RegExp(d,"g"),e)}}return c}ta("unknown message id: "+a);return a}messages(){return this.Xa}Ob(a){return"%"+a.toUpperCase()+"%"}}fb.prototype.getMessage=fb.prototype.ic;function gb(a,b,c,d){this.eb=b;this.Pb=new fb(c);this.K=d}gb.prototype.i18n=function(){return this.Pb};var hb=F("Opera"),ib=F("Trident")||F("MSIE"),jb=F("Gecko")&&!(-1!=cb().toLowerCase().indexOf("webkit")&&!F("Edge"))&&!(F("Trident")||F("MSIE"))&&!F("Edge"),kb=-1!=cb().toLowerCase().indexOf("webkit")&&!F("Edge");class lb{};function G(a,b){return 0==b?a.ea:a.X[b]}function mb(a,b){return 0==b?a.ea||[]:b in a.X?G(a,b):[]}function nb(a){if(!a.X)return a.ea?a.ea.slice():[];const b=[],c=a.za;for(let d=0;d<c.length;++d){const e=G(a,c[d]);e&&Ha(b,e)}return b}
class ob{constructor(){this.ea=this.X=this.za=null}push(a,b){if(0==b)this.ea=this.ea||[];else if(this.za=this.za||[0],this.X=this.X||{},!(b in this.X)){this.X[b]=[];var c=this.za;var d=0;let f=c.length,g;for(;d<f;){const h=d+(f-d>>>1);var e=void 0;e=c[h];e=b>e?1:b<e?-1:0;0<e?d=h+1:(f=h,g=!e)}d=g?d:-d-1;0>d&&Ia(c,-(d+1),0,b)}G(this,b).push(a)}remove(a,b){if(b=G(this,b))a=C(b,a),0<=a&&Array.prototype.splice.call(b,a,1)}};class H extends lb{constructor(){super();this.Vb=this.Ab=this.J=null}hc(){return this.Vb}addHandler(a,b,c){this.J=this.J||new ob;this.J.push({kb:a,context:b},c||0)}removeHandler(a,b,c){c=c||0;if(this.J){var d=mb(this.J,c),e=d.length;for(let f=0;f<e;++f){const g=d[f];if(g.kb==a&&g.context==b){(a=G(this.J,c))&&Array.prototype.splice.call(a,f,1);break}}}else ta("EventDispatcher has no handlers!")}jc(a,b,c){if(!this.J)return!1;c=mb(this.J,c||0);const d=c.length;for(let e=0;e<d;++e){const f=c[e];if(f.kb==
a&&f.context==b)return!0}return!1}Ga(...a){if(this.J){const b=nb(this.J),c=b.length;for(let d=0;d<c;++d){const e=b[d];if(-1!=C(nb(this.J),e))try{e.kb.apply(e.context,arguments)}catch(f){pb(f,!0)}}}this.Ab&&this.Ab.forEach(b=>{b.Ga(...a)})}}H.prototype.dispatch=H.prototype.Ga;H.prototype.hasHandler=H.prototype.jc;H.prototype.removeHandler=H.prototype.removeHandler;H.prototype.addHandler=H.prototype.addHandler;H.prototype.eventOwner=H.prototype.hc;class qb{constructor(){this.cc=new H}};function rb(a){let b=0;for(let c=0;c<a.length;++c)b+=a[c];return b};function sb(a,b,c,d,e,f){this.V=a;this.ac=b;this.ec=e;this.Wb=f;this.M={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.M[b[0]]=e,0<e&&++this.la;this.ca={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.ca[c[0]]=b,0<b&&++this.la}k=sb.prototype;k.la=0;k.slidesWeight=function(){return 0<this.V?this.ac:0};k.slidesToView=function(){return this.V};k.totalScore=function(){return this.ec};k.passingScore=function(){return this.Wb};function tb(a,b,c,d){this.dc=a;this.Ra=b;this.$b=c;this.Rb=d}tb.prototype.timeLimit=function(){return this.dc};tb.prototype.message=function(){return this.Rb};function ub(a,b){this.ib=a;this.Fb=b;this.Gb=new H}k=ub.prototype;k.hb=!1;k.ba=0;k.Aa=0;k.Ba=-1;k.Ca=0;k.Qa=0;k.started=function(){return this.hb};k.start=function(a){this.started()||(this.Ca=this.ba=a||0,a=this.ba>=this.ib,a&&this.Fb||(this.hb=!0,this.Aa=Date.now(),a||(this.Ba=setTimeout(this.ab.bind(this),this.ib-this.ba))))};k.ab=function(){this.Fb&&(this.stop(),this.Ca=this.ib);this.Gb.Ga()};
k.stop=function(){this.started()&&(this.hb=!1,0<this.Ba&&(clearTimeout(this.Ba),this.Ba=-1),this.Qa=Date.now()-this.Aa,this.Ca=this.Qa+this.ba)};function vb(a){return a.started()?Date.now()-a.Aa+a.ba:a.Ca};function wb(a){this.pa=a}k=wb.prototype;k.R="";k.A=null;k.C=null;k.ra="unanticipated";k.Bb=0;k.Na=null;k.S=null;k.jb=null;k.I=null;k.id=function(){return this.pa};k.type=function(){return this.m};k.description=function(){return this.R};k.nb=function(){return this.A};function xb(a,b){a.C=b}k.result=function(){return this.ra};k.score=function(){return this.Bb};k.ha=function(a){this.Bb=a};k.awardedScore=function(){return this.Na};k.duration=function(){return this.S};k.Ka=function(a){this.S=a};k.ob=function(){return this.jb};
k.details=function(){return this.I};function yb(a,b){a.I=b};function zb(a,b){this.pa=a;this.Sb=b;this.Nb=""}zb.prototype.id=function(){return this.pa};zb.prototype.name=function(){return this.Sb};zb.prototype.email=function(){return this.Nb};function Ab(a,b,c){const d=window.iSpring.LMSAPI;switch(a){case "1.2":return new d.Scorm12Api(b);case "2004":return new d.Scorm2004Api(b);case "aicc":return new d.AiccApi(b);case "tincan":return new d.TinCanApi(b,c);case "cmi-5":return new d.Cmi5Api(b,c);default:throw Error("unknown api");}};function I(a){a=Ta(a);return a=a.replace(/[^\w-]/g,"_")}function J(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};class Bb{constructor(a,b){this.u=a;this.gb=b}};var Cb=F("Firefox")||F("FxiOS");var Db={},Eb=null,Fb=jb||kb||"function"==typeof n.btoa;function Gb(a){this.Ia=a}Gb.prototype.serialize=function(a){const b=[];Hb(this,a,b);return b.join("")};
function Hb(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");var e="";for(var f=0;f<b;f++)c.push(e),e=d[f],Hb(a,a.Ia?a.Ia.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),Ib(d,c),c.push(":"),Hb(a,a.Ia?a.Ia.call(b,d,e):e,c),f=","));c.push("}");
return}}switch(typeof b){case "string":Ib(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}}var Jb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Kb=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function Ib(a,b){b.push('"',a.replace(Kb,function(c){let d=Jb[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Jb[c]=d);return d}),'"')};function Mb(a,b){ab(b,function(c,d){c&&"object"==typeof c&&c.Bc&&(c=c.Ac());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Nb.hasOwnProperty(d)?a.setAttribute(Nb[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})}
var Nb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Ob(a,b,c){var d=arguments,e=document,f=d[1],g=Pb(e,String(d[0]));f&&("string"===typeof f?g.className=f:Array.isArray(f)?g.className=f.join(" "):Mb(g,f));2<d.length&&Qb(e,g,d);return g}
function Qb(a,b,c){function d(h){h&&b.appendChild("string"===typeof h?a.createTextNode(h):h)}for(var e=2;e<c.length;e++){var f=c[e];if(!fa(f)||ha(f)&&0<f.nodeType)d(f);else{a:{if(f&&"number"==typeof f.length){if(ha(f)){var g="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){g="function"==typeof f.item;break a}}g=!1}Ea(g?Ga(f):f,d)}}}function Pb(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)}
var Rb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Sb={IMG:" ",BR:"\n"};function Tb(a){var b=[];Ub(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");" "!=a&&(a=a.replace(/^\s*/,""));return a}function Ub(a,b,c){if(!(a.nodeName in Rb))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Sb)b.push(Sb[a.nodeName]);else for(a=a.firstChild;a;)Ub(a,b,c),a=a.nextSibling};function Vb(a,b){if("function"!==typeof a)if(a&&"function"==typeof a.handleEvent)a=oa(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||n.setTimeout(a,b||0)};function Wb(a){var b={width:"1px",height:"1px",border:"0"};if("string"===typeof b)(b=Xb(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=Xb(d,c);f&&(d.style[f]=e)}}var Yb={};function Xb(a,b){var c=Yb[b];if(!c){var d=db(b);c=d;void 0===a.style[d]&&(d=(kb?"Webkit":jb?"Moz":ib?"ms":null)+eb(d),void 0!==a.style[d]&&(c=d));Yb[b]=c}return c};function Zb(a,b){this.m=a;this.Mb=b||[]}p("iSpring.ios.mobile.MobileAppCommand",Zb);Zb.prototype.id=function(){return ia(this)};function $b(a){try{const b=Pb(document,"iframe");Wb(b);b.src=a;document.body.appendChild(b);Vb(()=>{b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(b){}};function K(a){this.length=a.length||a;for(let b=0;b<this.length;b++)this[b]=a[b]||0}K.prototype.BYTES_PER_ELEMENT=4;K.prototype.set=function(a,b){b=b||0;for(let c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};K.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(K.BYTES_PER_ELEMENT=4,K.prototype.BYTES_PER_ELEMENT=K.prototype.BYTES_PER_ELEMENT,K.prototype.set=K.prototype.set,K.prototype.toString=K.prototype.toString,p("Float32Array",K));function L(a){this.length=a.length||a;for(let b=0;b<this.length;b++)this[b]=a[b]||0}L.prototype.BYTES_PER_ELEMENT=8;L.prototype.set=function(a,b){b=b||0;for(let c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};L.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{L.BYTES_PER_ELEMENT=8}catch(a){}L.prototype.BYTES_PER_ELEMENT=L.prototype.BYTES_PER_ELEMENT;L.prototype.set=L.prototype.set;L.prototype.toString=L.prototype.toString;p("Float64Array",L)};new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function M(){var a=window.location.search.substr(1);if(a){var b={};a=a.split("&");for(let e=0;e<a.length;++e){const f=a[e].split("=");if(2==f.length){try{var c=decodeURIComponent(f[0].replace(/\+/g," "))}catch(g){c=f[0]}try{var d=decodeURIComponent(f[1].replace(/\+/g," "))}catch(g){d=f[1]}c=c.toLowerCase();b[c]=d}}}else b={};return b};function N(a){var b="\r";if(0==a.length)return"";null==b&&(b="");var c=0;let d="";const e=a.length;do{var f=ac(a,["<p>","<p "],c);if(f&&f.Ha>c){c=a.substr(c,f.Ha-c);var g=Ob("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||Tb(g))+b;c=f.Ha}if(g=ac(a,["</p>","</p >"],c)){f=g.Ha+g.oc.length-c;const h=a.substr(c,f);g=Ob("DIV");g.innerHTML=h;d+=(g.textContent||g.innerText||Tb(g))+b;c+=f}else return g=Ob("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||Tb(g))}while(c<e);return d}
function ac(a,b,c){Array.isArray(b)||(b=[b]);let d=void 0,e=void 0;Ea(b,f=>{const g=a.indexOf(f,c);0<=g&&(void 0===d||g<d)&&(d=g,e=f)});return void 0!==e&&void 0!==d?new bc(e,d):null}function bc(a,b){this.oc=a;this.Ha=b};function O(a,b){this.pa=a;this.R=b}O.prototype.id=function(){return this.pa};O.prototype.description=function(){return this.R};function P(){this.i=[]}P.prototype.count=function(){return this.i.length};function Q(a,b){a.i.push(b)}P.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.i[a]};function R(){this.i=new P};function cc(a,b,c,d){this.gb=a;this.Yb=b;this.Zb=c;this.Xb=d;this.fb=void 0}function dc(a){a=N(a.text());$a.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(Ua,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(Va,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(Wa,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(Xa,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(Ya,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(Za,"&#0;")));if(!a)return"";const b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
cc.prototype.create=function(){var a=0;const b=[];var c=this.Yb,d=this.Xb;const e=new wb(c.id()+"_"+a);a+=1;e.m="choice";if(c.message()){var f=c.message().text();f=N(f);e.R=f;f=c.message().replies();null!=c.speech()&&0<N(c.speech())&&(a=new wb(c.id()+"_"+a),a.m="other",c=N(c.speech()),a.R=c,a.ra="neutral",ec(this,a),b.push(a))}else f=N(c.speech()),e.R=f,f=c.replies();0==f.count()&&(e.m="other");c=null;let g=a=0;var h=-1;const m=[];for(var l=0;l<f.count();l++){const r=f.getReply(l);null!=d&&r==d&&
(h=l);a=Math.max(a,r.score());m.push(fc(this,l,dc(r)))}null!=d&&(c=fc(this,h,dc(d)),g=Math.max(g,d.score()));d=f;f=new R;for(h=0;h<d.count();++h)l=dc(d.getReply(h)),Q(f.i,new O(I(h+"_"+l),l));e.I=f;e.A=c;e.C=m;this.gb.scenario().settings().evaluationSettings().enabled()&&(e.ha(a),e.Na=g);e.ra="neutral";ec(this,e);b.push(e);return b};function fc(a,b,c){c=I(b+"_"+c);b=J(b);return a.Zb?b:c}function ec(a,b){null!=a.fb&&(b.jb=new Date(a.fb),b.Ka(Date.now()-a.fb))};bb({sc:"\u202a",xc:"\u202b",vc:"\u202c",tc:"\u200e",yc:"\u200f"});function gc(){function a(c){try{for(let d=0;255>d;++d){if(c.API)return c.API;const e=c.parent;if(!e||c==e)break;c=e}}catch(d){}return null}var b=window;return a(b)||b.opener&&a(b.opener)}function hc(a){var b=Math.floor(a/3600),c=Math.floor(a%3600/60);a=Math.floor(a%60);return(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)+":"+(10>a?"0"+a:a)}
function ic(){if(jc)if(jc){var a=new Zb("closeWindow");if(jc){var b=a.m,c=a.Mb;a=a.id();var d=(new Gb(null)).serialize(c);if(Fb)c=n.btoa(d);else{c=[];for(var e=0,f=0;f<d.length;f++){var g=d.charCodeAt(f);255<g&&(c[e++]=g&255,g>>=8);c[e++]=g}d=void 0;void 0===d&&(d=0);if(!Eb)for(Eb={},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),f=["+/=","+/","-_=","-_.","-_"],g=0;5>g;g++){var h=e.concat(f[g].split(""));Db[g]=h;for(var m=0;m<h.length;m++){var l=h[m];void 0===Eb[l]&&
(Eb[l]=m)}}d=Db[d];e=Array(Math.floor(c.length/3));f=d[64]||"";for(g=h=0;h<c.length-2;h+=3){var r=c[h],ka=c[h+1];l=c[h+2];m=d[r>>2];r=d[(r&3)<<4|ka>>4];ka=d[(ka&15)<<2|l>>6];l=d[l&63];e[g++]=""+m+r+ka+l}m=0;l=f;switch(c.length-h){case 2:m=c[h+1],l=d[(m&15)<<2]||f;case 1:c=c[h],e[g]=""+d[c>>2]+d[(c&3)<<4|m>>4]+l+f}c=e.join("")}$b("isplayer://"+b+"/"+a+"/"+c)}}else try{kc||(window.open("","_self",""),window.close())}catch(ad){}else try{kc||(window.Ja=window,b=lc(),b==window.top?(window.open("","_self",
""),window.close()):mc(b))}catch(ad){mc(window.top)}}function mc(a){if(a&&a.Ja){var b=document.createElement("a");b.href="data/goodbye.html";a.Ja.location.replace(b.href)}}function lc(){let a=window;if(a.Ja)return a;let b=0;for(;a!=window.top&&100>b++;){if(a.Ja)return a;a=a.parent}console.log("Unable to locate content root");return null}function nc(){try{const a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(a){}};var oc={wc:"prompt",qc:"always",uc:"never"};p("ispring.presenter.presentation.settings.PresentationResumeMode",oc);p("PROMPT_TO_RESUME","prompt",oc);p("ALWAYS_RESUME","always",oc);p("NEVER_RESUME","never",oc);(function(){function a(b){try{return b.ISPlayer&&(window.ISPlayer=b.ISPlayer),b.ISPVideoPlayer&&(window.ISPVideoPlayer=b.ISPVideoPlayer),b.ISPQuizPlayer&&(window.ISPQuizPlayer=b.ISPQuizPlayer),b.ISPInteractionPlayerCore&&(window.ISPInteractionPlayerCore=b.ISPInteractionPlayerCore),b.ISPBookPlayer&&(window.ISPBookPlayer=b.ISPBookPlayer),b.ISPScenarioPlayer&&(window.ISPScenarioPlayer=b.ISPScenarioPlayer),b.ISPFlipPlayer&&(window.ISPFlipPlayer=b.ISPFlipPlayer),!0}catch(c){return!1}}if(function(){let b;
try{b=window.frameElement}catch(c){}return null!=b}()){let b=window,c=7;for(;b&&b.parent!=b&&0!=c--&&!a(b.parent);)b=b.parent}})();var S;const pc=M().user_agent;S=pc?pc:cb()||"";M();M();var qc=-1!=S.toLowerCase().indexOf("chrome"),kc=-1==S.toLowerCase().indexOf("windows phone")&&-1!=S.toLowerCase().indexOf("android")&&!qc&&!Cb&&!hb,jc=-1!=S.indexOf("ismobile");const sc=document.createElement("audio"),tc=sc.play&&sc.play();tc&&tc.then(()=>{sc.pause()},()=>{});M();M();
function uc(){return 1==window._ispringDebug||"1"==M().isdebug}setTimeout(function(){vc=uc},0);function wc(){this.bc=new P;this.ta=new P}wc.prototype.sources=function(){return this.bc};function T(a,b,c){return b.textWithEquations(a.l||!c?"Equation":"")}function U(a,b){return b.join(a.l?",":"[,]")}function V(a,b,c){return a.l?J(b):I(`${b}_${c}`)}
class W{constructor({nc:a,pc:b,slideIndex:c}){this.l=a;this.Hb=b;this.s=!1;this.Db=c}create(a){if(!a.submitted())return null;var b=(void 0!==this.Db?"Slide"+this.Db+"_":"")+"Q_"+a.slide().id();b=new wb(I(b));this.g(b,a);return b}g(a,b){var c=b.slide();c=T(this,c.description(),!0);a.R=c;b.hasBeenVisited()&&(a.Ka(b.visitDuration()),c=b.firstVisitTime(),a.jb=c);if(c=b.slide().settings().evaluation()){if(a.ha(b.maxScore()),b=b.review()){var d=Math.max(0,b.awardedScore());a.Na=d;d="unanticipated";switch(b.status()){case "correct":d=
"correct";break;case "incorrect":case "partially":d="incorrect"}a.ra=d}}else a.ra="neutral";this.s=!!c}};class xc extends W{g(a,b){super.g(a,b);a.m="matching";var c=b.contentState();b=b.slide().content();const {details:d,premises:e,responses:f,kc:g}=this.cb(b);c=this.Ua(c.chainsStates(),e,f,g);a.A=c;this.s&&(c=[this.s?this.Va(b.chains(),e,f,g):c],a.C=c);a.I=d}cb(a){const b=new wc,c=[],d=[];a=a.chains();for(var e of a){var f=e.object().slideObject();a=e.destination().slideObject();if(f&&0>c.indexOf(f)){c.push(f);const g=f.name();Q(b.sources(),new O(I(c.indexOf(f)+"_"+g),g))}a&&0>d.indexOf(a)&&(d.push(a),
f=a.name(),Q(b.ta,new O(I(d.indexOf(a)+"_"+f),f)))}e=this.l?J(d.length,!1):`${d.length}_${"None"}`;Q(b.ta,new O(e,"None"));return{details:b,premises:c,responses:d,kc:e}}Ua(a,b,c,d){const e=[];var f=b.slice();for(const h of a){a=h.objectState().slideObject();var g=h.destinationState().slideObject();g=this.$(a,g,b,c,d);e.push(g);f.splice(f.indexOf(a),1)}for(const h of f)f=this.$(h,null,b,c,d),e.push(f);return this.ma(e)}Va(a,b,c,d){const e=[];for(const f of a){a=f.object().slideObject();const g=f.destination().slideObject();
a&&(a=this.$(a,g,b,c,d),e.push(a))}return this.ma(e)}oa(a,b,c){this.l?b=J(b,c):(a=a.name(),a=I(a),b=`${b}_${a}`);return b}$(a,b,c,d,e){a=this.oa(a,c.indexOf(a),!0);b=b?this.oa(b,d.indexOf(b),!1):e;d=this.l?".":"[.]";return I(a)+d+I(b)}ma(a){return a.join(this.l?",":"[,]")}};class yc extends W{g(a,b){super.g(a,b);a.m="long-fill-in";b=b.contentState().response();a.A=b}};class zc extends W{g(a,b){super.g(a,b);a.m=this.l?"other":"fill-in";var c=b.contentState();b=[];const d=[];for(var e of c.placeholders())b.push(e.response()),(c=e.correctAnswers())&&(this.Hb?d.push(c[0]):d.push(c.join("[,]")));a.A=b.join("[,]");if(this.s){e=d;if(this.l||this.Hb)e=[e.join(this.l?"[.]":"[,]")];a.C=e}}};class Ac extends W{g(a,b){super.g(a,b);a.m="choice";const c=[],d=[],e=new R;this.Sa(b.contentState(),e,d,c);a.A=U(this,c);this.s&&(a.C=[U(this,d)]);a.I=e}Sa(a,b,c,d){a.areas().forEach((f,g)=>{const h=f.area(),m=h.label().text();g=V(this,g,m);h.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);Q(b.i,new O(g,m))});const e=a.areas().length;for(let f=e;f<e+a.freePointsCount();++f){const g=V(this,f,"Untitled_Spot");d.push(g)}}};class Bc extends W{g(a,b){super.g(a,b);a.m="choice";const c=[],d=new R;b.contentState().statementsStates().forEach((e,f)=>{var g=e.statement().text();Q(d.i,new O(V(this,f,g),g));if(g=e.selectedScale())e=c.push,f=f+"_"+g.text(),f=I(f),e.call(c,f)});a.A=U(this,c);a.I=d}};class Cc extends W{g(a,b){super.g(a,b);a.m="matching";var c=b.contentState();b=b.slide().content();const {details:d,premises:e,responses:f}=this.cb(b);c=this.Ua(c.matches(),e,f,this.l);a.A=c;this.s&&(c=[this.Va(b.matches(),this.l)],a.C=c);a.I=d}cb(a){const b=new wc,c=[],d=[];var e=a.matches();for(var f=0;f<e.count();++f){var g=e.getChoice(f);c.push(g.premise());d.push(g.response());const h=T(this,g.premise().textRange(),!1);g=T(this,g.response().textRange(),!1);Q(b.sources(),new O(I(f+"_"+h),h));
Q(b.ta,new O(I(f+"_"+g),g))}a=a.distractors();for(e=0;e<a.count();++e)f=a.getChoice(e),d.push(f),f=T(this,f.textRange(),!1),Q(b.ta,new O(I(e+"_"+f),f));return{details:b,premises:c,responses:d}}Ua(a,b,c,d){const e=[];for(const f of a){a=f.premise();const g=f.response();a=this.$(a,C(b,a),g,C(c,g),d);e.push(a)}return this.ma(e,d)}Va(a,b){const c=[];for(let e=0;e<a.count();++e){var d=a.getChoice(e);d=this.$(d.premise(),e,d.response(),e,b);c.push(d)}return this.ma(c,b)}oa(a,b,c,d){return c?J(b,d):`${b}_${T(this,
a.textRange(),!1)}`}$(a,b,c,d,e){a=this.oa(a,b,e,!0);c=this.oa(c,d,e,!1);e=e?".":"[.]";return I(a)+e+I(c)}ma(a,b){return a.join(b?",":"[,]")}};function Dc(){this.i=new P;this.pb=[]}q(Dc,R);class Ec extends W{g(a,b){super.g(a,b);a.m="choice";var c=b.slide();b=b.contentState();const d=c.content();c=this.Wa(c.content(),b);a.A=c;if(this.s){a:{for(c=0;c<d.count();++c){const e=d.getChoice(c);if(e.correct()){c=V(this,c,T(this,e.textRange(),!1));break a}}c=""}a.C=[c]}b=this.na(d,b);a.I=b}na(a,b){let c=new R;if(this.qb()){c=new Dc;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d);const f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.pb[g]=e)}}for(b=0;b<a.count();++b)d=
a.getChoice(b),d=T(this,d.textRange(),!1),Q(c.i,new O(I(`${b}_${d}`),d));return c}qb(){return!this.s}Wa(a,b){for(let c=0;c<b.count();++c){const d=b.getChoiceState(c);if(d.selected())return a=a.getChoiceIndex(d.choice()),V(this,a,T(this,d.choice().textRange(),!1))}return""}};function Fc(a){const b=new wc;let c=0;Ea(a.placeholders(),(d,e)=>{e+="";Q(b.sources(),new O(e,e));d.values.forEach(f=>{f=f.text();var g=`${c++}_${f}`;g=I(g);Q(b.ta,new O(g,f))})});return b}
class Gc extends W{g(a,b){super.g(a,b);a.m=this.l?"other":"matching";const c=[],d=[],e=new R;b.contentState().placeholders().forEach((f,g)=>{const h=f.response(),m=f.correctAnswer();f.answers().forEach(l=>{var r=e.i.count();r=`${g}[.]${I(r+"_"+l)}`;l==m&&d.push(r);l==h&&c.push(r);Q(e.i,new O(r,l))})});a.A=c.join("[,]");this.s&&xb(a,[d.join("[,]")]);yb(a,Fc(b.slide().content()))}};class Hc extends W{g(a,b){super.g(a,b);a.m="choice";const c=b.slide().content();var d=this.Wa(c,b.contentState());a.A=d;this.s&&(d=[this.Ta(c)],a.C=d);b=this.na(c,b.contentState());a.I=b}na(a,b){let c=new R;if(!this.s){c=new Dc;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d);const f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.pb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=T(this,d.textRange(),!1),Q(c.i,new O(I(b+"_"+d),d));return c}Wa(a,b){const c=[];for(let f=
0;f<b.count();++f){var d=b.getChoiceState(f);const g=d.choice();var e=T(this,g.textRange(),!1);d.selected()&&(d=a.getChoiceIndex(g),e=V(this,d,e),c.push(e))}return U(this,c)}Ta(a){const b=[];for(let d=0;d<a.count();++d){var c=a.getChoice(d);c.correct()&&(c=V(this,d,T(this,c.textRange(),!1)),b.push(c))}return U(this,b)}};class Ic extends W{g(a,b){super.g(a,b);var c=b.slide();b=b.contentState().response();c=c.content();var d;a:{for(d=0;d<c.count();++d)if("notEqual"==c.getAnswer(d).comparisonOperation()){d=!0;break a}d=!1}a.m=this.l||d?"fill-in":"numeric";a.A=b;if(this.s){d=(b=this.l||d)?"[,]":"[.]";const h=[];for(let m=0;m<c.count();++m){var e="",f=c.getAnswer(m),g=f.comparisonOperation();if("between"==g)g=f,e=g.leftOperand(),g=g.rightOperand(),e=b?"between "+e+" and "+g:e+"[:]"+g;else switch(f=f.operand(),g){case "notEqual":b&&
(e="not equal to "+f);break;case "equal":e=b?"equal to "+f:f+"[:]"+f;break;case "greaterThan":e=b?"greater than "+f:f+"[:]";break;case "greaterThanOrEqual":e=b?"greater than or equal to "+f:f+"[:]";break;case "lessThan":e=b?"less than "+f:"[:]"+f;break;case "lessThanOrEqual":e=b?"less than or equal to "+f:"[:]"+f}h.push(e)}a.C=[h.join(d)]}}};function Jc(a,b,c,d){const e=d?",":"[,]",f=[];c.forEach(g=>{const h=T(a,g.textRange(),!1);g=b.getChoiceIndex(g);f.push(I(d?J(g,!0):g+"_"+h))});return f.join(e)}class Kc extends W{g(a,b){super.g(a,b);a.m="sequencing";var c=b.slide().content();b=Jc(this,c,b.contentState().studentResponse(),this.l);a.A=b;this.s&&(b=[Jc(this,c,c,this.l)],a.C=b);c=this.na(c);a.I=c}na(a){const b=new R;for(let c=0;c<a.count();++c){const d=a.getChoice(c).textRange().text();Q(b.i,new O(I(c+"_"+d),d))}return b}};class Lc extends Ec{g(a,b){super.g(a,b);if(this.l&&this.s){a.m="true-false";var c=b.slide().content();b=b.contentState();const d=c.getChoice(0).correct()?"t":"f",e="t"==d?"f":"t";c=c.getChoice(0).correct()?c.getChoice(0).id():c.getChoice(1).id();let f=null;for(let g=0;2>g;++g){const h=b.getChoiceState(g);if(h.selected()){f=h.choice().id()==c?d:e;break}}a.A=f;a.C=[d]}}qb(){return!1}};class Mc extends W{g(a,b){super.g(a,b);a.m="fill-in";var c=b.slide();b=b.contentState().response().text();a.A=b;this.s&&(c=this.Ta(c.content()),a.C=c)}Ta(a){const b=[];for(let c=0;c<a.count();++c){const d=a.getChoice(c);b.push(d.textRange().text())}return b}};function Nc(a,b){this.length=b;for(let c=0;c<b;++c)this[c]=a(c)};function Oc(a,b,c){for(const d of a){const e=d.response();null!=e&&(a=new Nc(f=>b.i.getChoice(f),b.i.count()),a=Fa(a,f=>Ta(f.description())==e),c.push(a.id()))}}
class Pc extends W{g(a,b){super.g(a,b);a.m=this.l?"other":"choice";var c=b.slide().content();const d=[],e=new R;c=c.extraWords();for(var f of c){c=f.text();var g=e.i.count();g=I(`${g}_${c}`);Q(e.i,new O(g,c))}b=b.contentState().placeholders();this.s&&(f=[],this.Sa(b,e,f),a.C=[f.join("[,]")]);Oc(b,e,d);a.A=d.join("[,]");a.I=e}Sa(a,b,c){for(const e of a){a=e.placeholder().value||"";var d=b.i.count();d=I(`${d}_${a}`);c.push(d);Q(b.i,new O(d,a))}}};const Qc={FillInTheBlank:zc,WordBank:Pc,TypeIn:Mc,Numeric:Ic,MultipleChoice:Ec,MultipleResponse:Hc,MultipleChoiceText:Gc,Sequence:Kc,Matching:Cc,TrueFalse:Lc,Essay:yc,Hotspot:Ac,LikertScale:Bc,DND:xc};class X{constructor(a,b,c,d,e,f){this.type=b;this.Kb=a;this.lc=c;this.maxScore=void 0!==d?d:null;this.mc=void 0!==e?e:null;this.mb=void 0!==f?f:null}lb(){const a={};a[Rc]=this.Kb;a[Sc]=this.lc;a[Tc]=this.maxScore;a[Uc]=this.mc;a[Vc]=this.mb;a[Wc]=this.type;return a}}var Rc="e",Sc="p",Tc="m",Uc="r",Vc="s",Wc="t";class Xc{constructor(a){this.ya=null;this.S=0;this.xa=-1;this.O={};this.Da=[];this.da=[];this.Ea=a}duration(){return this.S}Ka(a){this.S=a}lb(){const a={};a[Yc]=this.S;a[Zc]=this.xa;a[$c]=this.da;a[bd]=this.Da;a[cd]=this.Ea;a[dd]=this.ya;const b={};for(const c in this.O)b[c]=this.O[c].lb();a[ed]=b;return a}}var Zc="l",$c="v",bd="vh",cd="V",Yc="d",dd="p",ed="q";function fd(a,b){var c=new Xc(E(b,cd,[]));c.S=E(b,Yc,0);c.xa=E(b,Zc,-1);c.da=E(b,$c,[]);c.Da=E(b,bd,[]);c.ya=E(b,dd,null);const d={};b=E(b,ed,{});for(const f in b){var e=b[f];d[f]=new X(e[Rc],e[Wc],e[Sc],e[Tc],e[Uc],e[Vc])}c.O=d;a.U=c;c=a.U.duration();if(a.P.Ra&&c>=a.P.timeLimit())alert("You have already exceeded available time for viewing this content."),nc(),ic();else return a.U.ya}
function gd(a,b){a.va&&(a.va=!1,a.Eb&&(a.W.stop(),hd(a),a.v.view().playbackController().slideChangeEvent().removeHandler(a.Ya,a)),a.v.closeWindowEvent().removeHandler(a.rb,a),a.v.stateChangedEvent().removeHandler(a.xb,a),b?a.u.suspend():a.u.terminate())}
function hd(a){var b=vb(a.W);var c=a.W;c=c.started()?Date.now()-c.Aa:c.Qa;a.o.Ka(b);a.u.j.h("cmi.core.session_time",hc(c/1E3));b=a.v.persistState();a.o.ya=b;b=a.o.lb();a=a.u.j;b=(new Gb).serialize(b);b=LZString.compressToBase64(b);a.h("cmi.suspend_data",b)}
function id(a){var b=a.T;if(0<b.V||0<b.la){var c=jd(a),d=b.totalScore()*c;a.u.ha(c,0,b.totalScore(),d)}b=a.u;c=b.Z;a:if(d=a.T,0<d.V||0<d.la){if(a.K){var e=a.P.timeLimit(),f=vb(a.W);b:{var g=a.o;g=g.da.concat(g.Da);if(0<a.T.V&&0<g.length)var h=!0;else{var m=a.o.O;for(h in m){var l=parseInt(h,10);if(m[h].Kb&&-1!=C(g,l)){h=!0;break b}}h=!1}}if(!h&&e>f){h=null;break a}}h=jd(a)*d.totalScore()>=d.passingScore()}else h=null;a:{d=a.T;e=a.o.da;f=a.o.Ea;g=a.o.O;m=a.v.presentation().slides();for(l=0;l<m.count();++l)if(f.includes(l)&&
!e.includes(l)||(l in d.M||l in d.ca)&&!g[l+""]){d=!1;break a}d=!0}c.call(b,h,d);hd(a);a.u.commit()}function jd(a){var b=a.T;if(!(0<b.V||0<b.la))return 0;let c=0;var d=a.o.O;for(var e in d){const f=d[e],g=parseInt(e,10);c+=(null!=f.mb?f.mb:1)*(null!=(g in b.M?b.M[g]:null)?g in b.M?b.M[g]:0:g in b.ca?b.ca[g]:0)}d=0;0<b.V&&(d=a.o.da.length/a.o.Ea.length*b.slidesWeight());a=bb(b.M);a=rb(a);e=bb(b.ca);b=a+rb(e)+b.slidesWeight();return(c+d)/b}
function kd(a,b){if("normal"==a.aa){b.sessionModeChangedEvent().addHandler(a.zb,a);var c=b.slidePoolState();for(const d of c.questions())d.submittedEvent().addHandler(a.yb,a);a.G.id();b.quiz().title()}}function ld(a,b){b.sessionModeChangedEvent().removeHandler(a.zb,a);b=b.slidePoolState();for(const c of b.questions())c.submittedEvent().removeHandler(a.yb,a)}
function md(a,b){"normal"==a.aa&&(a.sa=b,b.showTerminalSceneEvent().addHandler(a.$a,a),b.onReplySelectedEvent().addHandler(a.Za,a),b.scenario().id(),b.scenario().title(),b.completed()&&a.$a())}function nd(a){const b=a.sa;a.sa=null;b.showTerminalSceneEvent().removeHandler(a.$a,a);b.onReplySelectedEvent().removeHandler(a.Za,a)}
class Y{constructor(a,b){this.G=this.N=this.sa=null;this.Eb=!1;this.v=this.U=null;this.va=!1;this.qa=null;this.L=!1;try{this.Ma=a;this.wa={};this.Pa=null;this.T=new sb(b.slidesToView,b.slidesWeight,b.quizzes||{},b.scenarios||{},b.totalScore,b.passingScore);this.P=new tb(1E3*b.timeLimit,b.exitOnTimeout,b.showMessageOnTimeout,b.timeoutMessage);this.W=new ub(this.P.timeLimit(),this.P.Ra);const e=new Sa(b.flags),f=b.tincan.auth;var c=f.login;c&&Ra(c,Qa,Oa);var d=f.password;d&&Ra(d,Pa,Na);this.K="never"!=
b.resumeMode;const g=new gb("ispring://presentations/"+encodeURIComponent(b.presentationId),e,b.tincan.i18n,this.K);this.Cb=new qb;this.u=Ab(a,g,this.Cb)}catch(e){uc()&&alert(e)}}initialize(a){this.qa=a;null==this.u?this.ub():this.u.initialize(this.Tb.bind(this),this.ub.bind(this))}Tb(){this.aa="normal";var a=null;var b=this.u.j.ga("cmi.suspend_data");if(b)a:{b=LZString.decompressFromBase64(b);try{const d=JSON.parse(b);var c="object"==typeof d?d:null;break a}catch(d){}c=null}else c=null;switch(this.aa){case "browse":a=
null;break;case "review":c&&(a=fd(this,c));break;case "normal":this.K&&c&&(a=fd(this,c))}window.launchMode=this.aa;void 0!==a&&(this.L=!0,this.qa&&this.qa(a))}ub(){this.qa&&this.qa()}start(a){if(this.L){const b=a.presentation().slides(),c=[];for(let d=0;d<b.visibleSlidesCount();++d){const e=b.getVisibleSlide(d).index();c.push(e)}this.o=new Xc(c);this.v=a;this.va=!0;this.Cb.cc.Ga(a.presentation().title());a.startupEvent().addHandler(this.vb,this);a.startupCompletedEvent().addHandler(this.wb,this);
a.closeWindowEvent().addHandler(this.rb,this)}}vb(a){this.v.startupEvent().removeHandler(this.vb,this);var b=(this.K||"review"==this.aa)&&this.U?this.U.xa:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.v.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))}wb(a,b){this.v.startupCompletedEvent().removeHandler(this.wb,this);this.Eb=!0;"resumePlayback"==a&&this.U&&(this.o=this.U);a=this.o.duration();this.W.started()||(this.W.Gb.addHandler(this.ab,
this),this.W.start(a));a=this.v.view().playbackController();a.slideChangeEvent().addHandler(this.Ya,this);a=a.currentSlideIndex();a==b&&this.Ya(a);this.v.stateChangedEvent().addHandler(this.xb,this)}Ib(){this.va&&gd(this,this.K)}Ya(a){if(this.G){var b=this.G;b.currentSessionChangedEvent().removeHandler(this.sb,this);(b=b.currentSession())&&ld(this,b);this.G=null}this.N&&(this.N.currentSessionChangedEvent().removeHandler(this.tb,this),this.sa&&nd(this),this.N=null);b=this.v.view().playbackController();
if(a in this.T.M){var c=this.G=b.quizPlayer(),d=ia(c)+"";d in this.wa||(this.wa[d]=!0,(d=od(this.u.j))&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.sb,this);(c=c.currentSession())&&kd(this,c)}a in this.T.ca&&(b=this.N=b.scenarioPlayer(),c=ia(b)+"",c in this.wa||(this.wa[c]=!0,c=od(this.u.j),d=!b.userInfoIsLoaded(),c&&d&&b.setUserInfo(c.id(),{USER_NAME:c.name(),USER_EMAIL:c.email()})),c=b.currentSession(),null!=c&&md(this,c),b.currentSessionChangedEvent().addHandler(this.tb,
this));b=this.v.presentation().slides().getSlide(a);"normal"==this.aa&&b.title()&&b.title();b=this.o;0<=b.Ea.indexOf(a)?(b=b.da,0<=C(b,a)||b.push(a)):(b=b.Da,0<=C(b,a)||b.push(a));this.o.xa=a;id(this)}tb(){this.sa&&nd(this);const a=this.N.currentSession();md(this,a)}$a(){const a=this.N.currentSession();var b=a.currentSceneState().scene();null!=b&&(b.speech()&&0<b.speech().length||b.message()&&0<b.message().text().length)&&this.Za();if(a.scenario().settings().evaluationSettings().enabled()){b=Math.max(0,
a.maxScore());var c=Math.max(0,a.userScore());const d=0<b-0?c/(b-0):1;b=new X(!0,"scenario",a.scenarioPassed(),b,c,d)}else b=new X(!1,"scenario",!0);c=this.v.view().playbackController().currentSlideIndex();this.o.O[c+""]=b;a.duration();a.scenario().settings().evaluationSettings().enabled()&&(a.maxScore(),a.userScore(),a.scenarioPassed());a.scenario().id();a.scenario().title();id(this)}Za(a){const b=this.N.currentSession(),c=b.currentSceneState().scene();null!=c&&(a=(new cc(b,c,"1.2"==this.Ma,a)).create(),
Ea(a,function(d){if("tincan"==this.Ma||"choice"==d.type()){var e="/scenarios/"+b.scenario().id();d.id();d.type();this.u.Fa(e,d)}},this))}sb(){const a=this.G.currentSession();this.Pa&&ld(this,this.Pa);(this.Pa=a)&&kd(this,a)}zb(a){if("testing"==a){a=this.G.currentSession();var b;if(b=a.evaluation()){var c=b.maxScore();const d=b.awardedScore(),e=b.awardedPercent()/100;b=new X(!0,"quiz",b.quizPassed(),c,d,e)}else b=new X(!1,"quiz",!0);c=this.v.view().playbackController().currentSlideIndex();this.o.O[c+
""]=b;a.quizDuration();if(b=a.evaluation())b.maxScore(),b.awardedScore(),b.quizPassed(),b=this.G.currentSession(),(new Bb(this.u,b)).gb.settings();this.G.id();a.quiz().title();id(this)}}yb(a){this.G.currentSession();if(a.initiated()){const d=this.v.view().playbackController().currentSlideIndex()+1;var b=a.slide().type(),c=this.Ma;if(a=(new Qc[b]({nc:"1.2"==c||"aicc"==c,pc:"tincan"==c,slideIndex:d})).create(a))b="/quizzes/"+this.G.id(),a.id(),this.u.Fa(b,a)}}rb(a){a.preventAction();this.Ib()}ab(){id(this);
this.P.$b&&alert(this.P.message());this.P.Ra&&gd(this,!1)}xb(a){a.actionPrevented()||(a.preventAction(),hd(this))}}Y.prototype.closeLms=Y.prototype.Ib;Y.prototype.start=Y.prototype.start;Y.prototype.initialize=Y.prototype.initialize;var pd=null;p("iSpring.LMS.create",function(a,b,c){return pd=new Y(b,c)});p("iSpring.LMS.instance",function(){return pd});function qd(){}k=qd.prototype;k.j=null;k.Jb=function(){throw Error("unimplemented abstract method");};k.initialize=function(a,b){if(this.j=this.Jb()){var c=this.j;c.L?a():null!=c.F?(c.L=c.F.initialize(),c.L?a():b()):(c.L=!1,b())}else b()};k.commit=function(){this.j.commit()};k.suspend=function(){this.j.terminate(!0);nc();ic()};k.terminate=function(){this.j.terminate(!1);nc();ic()};k.Z=function(a,b){this.j.La(a);this.j.Z(a,b)};k.ha=function(a,b,c,d){this.j.ha(d,b,c,a)};k.Fa=function(a,b){this.j.Fa(b)};class rd{constructor(a,b){this.ka=a;this.bb=!1;this.Oa=0;this.K=b}initialize(){try{return"true"==this.ka.LMSInitialize("").toString()}catch(a){}return!1}terminate(a){this.h("cmi.core.exit",a?this.bb?"":"suspend":"");this.commit();try{return"true"==this.ka.LMSFinish("").toString()}catch(b){}return!1}commit(){0==this.Oa&&this.h("cmi.core.exit",this.K?this.bb?"":"suspend":"");try{const a="true"==this.ka.LMSCommit("").toString();this.Oa+=1;return a}catch(a){}return!1}La(a){this.bb=a}ga(a){try{return this.ka.LMSGetValue(a)}catch(b){}return""}h(a,
b){"number"===typeof b&&(b=parseFloat(b.toFixed(2))+"");try{return"true"==this.ka.LMSSetValue(a,b).toString()}catch(c){}return!1}};var Z={id:"id",type:"type",score:"weighting",fc:"correct_responses.%INDEX%.pattern",nb:"student_response",result:"result",duration:"latency",ob:"time"},sd={};p("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){const d=null.Qb[a];if(null==d)return"";delete null.Qb[a];Vb(()=>{if(b)d.onload(c);else d.onerror()},10);return"ok"});function od(a){return new zb(a.ga("cmi.core.student_id"),a.ga("cmi.core.student_name"))};class td{constructor(a){const b=gc();this.F=b?new rd(b,a):null;this.L=!1}initialize(){return this.L?!0:this.L=null!=this.F?this.F.initialize():!1}terminate(a){return null!=this.F?this.F.terminate(a):!1}commit(){return null!=this.F?this.F.commit():!1}ga(a){return null!=this.F?this.F.ga(a):""}h(a,b){return null!=this.F?this.F.h(a,b):!1}ha(a,b,c){this.h("cmi.core.score.raw",a);this.h("cmi.core.score.min",b);this.h("cmi.core.score.max",c)}Z(a,b){null!==a?this.h("cmi.core.lesson_status",a?"passed":"failed"):
null!==b?this.h("cmi.core.lesson_status",b?"completed":"incomplete"):this.h("cmi.core.lesson_status","unknown")}La(a){this.F.La(a)}Fa(a){var b=a.id();if(a.id()in sd)var c=sd[b];else c=parseInt(this.ga("cmi.interactions._count"),10),sd[b]=c;if(!(0>c)){b="cmi.interactions."+c+".";c=a.id()+"_"+a.description();c=I(c.substr(0,255));this.h(b+Z.id,c);this.h(b+Z.type,a.type());this.h(b+Z.score,a.score());c=a.C||[];for(var d=0;d<c.length;++d){var e=Z.fc.replace("%INDEX%",d);this.h(b+e,c[d])}c=a.nb();null!=
c&&this.h(b+Z.nb,c);c=this.h;d=b+Z.result;e=a.result();c.call(this,d,"incorrect"==e?"wrong":e);c=a.duration();null!==c&&this.h(b+Z.duration,hc(c/1E3));a=a.ob();null!==a&&this.h(b+Z.ob,hc(3600*a.getHours()+60*a.getMinutes()+a.getSeconds()))}}};function ud(a){this.eb=a.eb;this.K=a.K}q(ud,qd);p("iSpring.LMSAPI.Scorm12Api",ud);ud.prototype.Jb=function(){return new td(this.K)};ud.prototype.Z=function(a,b){const c=null===a;b=c?b:a;this.j.La(a);null!==b?!c&&this.eb.Ub&(b?2:1)?this.j.Z(b,null):this.j.Z(null,b):this.j.Z(null,null)};let vc=()=>!1;function vd(a,b){vc()&&(b?n.console.error(a):n.console.warn(a))}function pb(a,b){const c=a.stack||a.toString();0>String(c).indexOf(a.message)&&vd(a.message,b);vd(c,b)}window.onerror=function(...a){const [b,,,,c]=a;c?pb(c,!0):vd(b,!0);return!0};sa=a=>{try{throw Error(a.message);}catch(b){pb(b,!1)}};n.console||(window._log="",n.console={log:function(a){window._log+="\n"+a},warn:function(a){window._log+="\nwarn: "+a},error:function(a){window._log+="\nerror: "+a}});})();
var LZString={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_f:String.fromCharCode,compressToBase64:function(e){if(e==null)return"";var t="";var n,r,i,s,o,u,a;var f=0;e=LZString.compress(e);while(f<e.length*2){if(f%2==0){n=e.charCodeAt(f/2)>>8;r=e.charCodeAt(f/2)&255;if(f/2+1<e.length)i=e.charCodeAt(f/2+1)>>8;else i=NaN}else{n=e.charCodeAt((f-1)/2)&255;if((f+1)/2<e.length){r=e.charCodeAt((f+1)/2)>>8;i=e.charCodeAt((f+1)/2)&255}else r=i=NaN}f+=3;s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+LZString._keyStr.charAt(s)+LZString._keyStr.charAt(o)+LZString._keyStr.charAt(u)+LZString._keyStr.charAt(a)}return t},decompressFromBase64:function(e){if(e==null)return"";var t="",n=0,r,i,s,o,u,a,f,l,c=0,h=LZString._f;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<e.length){u=LZString._keyStr.indexOf(e.charAt(c++));a=LZString._keyStr.indexOf(e.charAt(c++));f=LZString._keyStr.indexOf(e.charAt(c++));l=LZString._keyStr.indexOf(e.charAt(c++));i=u<<2|a>>4;s=(a&15)<<4|f>>2;o=(f&3)<<6|l;if(n%2==0){r=i<<8;if(f!=64){t+=h(r|s)}if(l!=64){r=o<<8}}else{t=t+h(r|i);if(f!=64){r=s<<8}if(l!=64){t+=h(r|o)}}n+=3}return LZString.decompress(t)},compressToUTF16:function(e){if(e==null)return"";var t="",n,r,i,s=0,o=LZString._f;e=LZString.compress(e);for(n=0;n<e.length;n++){r=e.charCodeAt(n);switch(s++){case 0:t+=o((r>>1)+32);i=(r&1)<<14;break;case 1:t+=o(i+(r>>2)+32);i=(r&3)<<13;break;case 2:t+=o(i+(r>>3)+32);i=(r&7)<<12;break;case 3:t+=o(i+(r>>4)+32);i=(r&15)<<11;break;case 4:t+=o(i+(r>>5)+32);i=(r&31)<<10;break;case 5:t+=o(i+(r>>6)+32);i=(r&63)<<9;break;case 6:t+=o(i+(r>>7)+32);i=(r&127)<<8;break;case 7:t+=o(i+(r>>8)+32);i=(r&255)<<7;break;case 8:t+=o(i+(r>>9)+32);i=(r&511)<<6;break;case 9:t+=o(i+(r>>10)+32);i=(r&1023)<<5;break;case 10:t+=o(i+(r>>11)+32);i=(r&2047)<<4;break;case 11:t+=o(i+(r>>12)+32);i=(r&4095)<<3;break;case 12:t+=o(i+(r>>13)+32);i=(r&8191)<<2;break;case 13:t+=o(i+(r>>14)+32);i=(r&16383)<<1;break;case 14:t+=o(i+(r>>15)+32,(r&32767)+32);s=0;break}}return t+o(i+32)},decompressFromUTF16:function(e){if(e==null)return"";var t="",n,r,i=0,s=0,o=LZString._f;while(s<e.length){r=e.charCodeAt(s)-32;switch(i++){case 0:n=r<<1;break;case 1:t+=o(n|r>>14);n=(r&16383)<<2;break;case 2:t+=o(n|r>>13);n=(r&8191)<<3;break;case 3:t+=o(n|r>>12);n=(r&4095)<<4;break;case 4:t+=o(n|r>>11);n=(r&2047)<<5;break;case 5:t+=o(n|r>>10);n=(r&1023)<<6;break;case 6:t+=o(n|r>>9);n=(r&511)<<7;break;case 7:t+=o(n|r>>8);n=(r&255)<<8;break;case 8:t+=o(n|r>>7);n=(r&127)<<9;break;case 9:t+=o(n|r>>6);n=(r&63)<<10;break;case 10:t+=o(n|r>>5);n=(r&31)<<11;break;case 11:t+=o(n|r>>4);n=(r&15)<<12;break;case 12:t+=o(n|r>>3);n=(r&7)<<13;break;case 13:t+=o(n|r>>2);n=(r&3)<<14;break;case 14:t+=o(n|r>>1);n=(r&1)<<15;break;case 15:t+=o(n|r);i=0;break}s++}return LZString.decompress(t)},compress:function(e){if(e==null)return"";var t,n,r={},i={},s="",o="",u="",a=2,f=3,l=2,c="",h=0,p=0,d,v=LZString._f;for(d=0;d<e.length;d+=1){s=e.charAt(d);if(!Object.prototype.hasOwnProperty.call(r,s)){r[s]=f++;i[s]=true}o=u+s;if(Object.prototype.hasOwnProperty.call(r,o)){u=o}else{if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}r[o]=f++;u=String(s)}}if(u!==""){if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}}n=2;for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}while(true){h=h<<1;if(p==15){c+=v(h);break}else p++}return c},decompress:function(e){if(e==null)return"";if(e=="")return null;var t=[],n,r=4,i=4,s=3,o="",u="",a,f,l,c,h,p,d,v=LZString._f,m={string:e,val:e.charCodeAt(0),position:32768,index:1};for(a=0;a<3;a+=1){t[a]=a}l=0;h=Math.pow(2,2);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(n=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 2:return""}t[3]=d;f=u=d;while(true){if(m.index>m.string.length){return""}l=0;h=Math.pow(2,s);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(d=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 2:return u}if(r==0){r=Math.pow(2,s);s++}if(t[d]){o=t[d]}else{if(d===i){o=f+f.charAt(0)}else{return null}}u+=o;t[i++]=f+o.charAt(0);r--;f=o;if(r==0){r=Math.pow(2,s);s++}}}};if(typeof module!=="undefined"&&module!=null){module.exports=LZString}
