(function(){var g;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function h(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ba(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var ca="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},l;
if("function"==typeof Object.setPrototypeOf)l=Object.setPrototypeOf;else{var m;a:{var da={ja:!0},n={};try{n.__proto__=da;m=n.ja;break a}catch(a){}m=!1}l=m?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var p=l,ea="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},fa="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ha(a){if(a){for(var b=fa,c=["Object","is"],d=0;d<c.length-1;d++){var e=c[d];e in b||(b[e]={});b=b[e]}c=c[c.length-1];d=b[c];a=a(d);a!=d&&null!=a&&ea(b,c,{configurable:!0,writable:!0,value:a})}}
ha(function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});var q=this;
function r(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}var t="closure_uid_"+(1E9*Math.random()>>>0),ia=0;function ja(a,b,c){return a.call.apply(a.bind,arguments)}function ka(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
function u(a,b,c){u=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ja:ka;return u.apply(null,arguments)}function v(a,b){a=a.split(".");var c=q;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 w(a,b){function c(){}c.prototype=b.prototype;a.oa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.pa=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};function x(a){if(Error.captureStackTrace)Error.captureStackTrace(this,x);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}w(x,Error);x.prototype.name="CustomError";function z(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");x.call(this,c+a[d])}w(z,x);z.prototype.name="AssertionError";function A(a){throw a;}function B(a,b,c){if(!a){var d="Assertion failed";if(b){d+=": "+b;var e=Array.prototype.slice.call(arguments,2)}d=new z(""+d,e||[]);A(d)}return a}function C(a,b){A(new z("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};function D(){return!1}function E(a,b){D()&&(b?q.console.error(a):q.console.warn(a))}function F(a,b){var c=a.stack||a.toString();0>String(c).indexOf(a.message)&&E(a.message,b);E(c,b)}window.onerror=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=h(b);b=c.next().value;c.next();c.next();c.next();(c=c.next().value)?F(c,!0):E(b,!0);return!0};A=function(a){try{throw Error(a.message);}catch(b){F(b,!1)}};
q.console||(window._log="",q.console={log:function(a){window._log+="\n"+a},warn:function(a){window._log+="\nwarn: "+a},error:function(a){window._log+="\nerror: "+a}});var G=Array.prototype.indexOf?function(a,b){B(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"==typeof a)return"string"==typeof b&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};function la(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e=d,f=r(e);if("array"==f||"object"==f&&"number"==typeof e.length){e=a.length||0;f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}}
function ma(a,b,c,d){B(null!=a.length);Array.prototype.splice.apply(a,na(arguments,1))}function na(a,b,c){B(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};function H(){this.w=this.o=this.F=null}H.prototype.push=function(a,b){if(0==b)this.w=this.w||[];else if(this.F=this.F||[0],this.o=this.o||{},!(b in this.o)){this.o[b]=[];var c=this.F;var d=0;for(var e=c.length,f;d<e;){var k=d+e>>1;var y=c[k];y=b>y?1:b<y?-1:0;0<y?d=k+1:(e=k,f=!y)}d=f?d:~d;0>d&&ma(c,-(d+1),0,b)}b=I(this,b);B(b).push(a)};H.prototype.remove=function(a,b){if(b=I(this,b))a=G(b,a),0<=a&&(B(null!=b.length),Array.prototype.splice.call(b,a,1))};
function J(a,b){return 0==b?a.w||[]:b in B(a.o)?B(I(a,b)):[]}function K(a){if(!a.o)return a.w?a.w.slice():[];for(var b=[],c=B(a.F),d=0;d<c.length;++d){var e=I(a,c[d]);e&&la(b,e)}return b}function I(a,b){return 0==b?a.w:B(a.o)[b]};function L(a){this.X=this.f=null;this.ha=void 0===a?null:a}function M(){}L.prototype=ca(M.prototype);L.prototype.constructor=L;if(p)p(L,M);else for(var N in M)if("prototype"!=N)if(Object.defineProperties){var O=Object.getOwnPropertyDescriptor(M,N);O&&Object.defineProperty(L,N,O)}else L[N]=M[N];L.oa=M.prototype;g=L.prototype;g.la=function(){return this.ha};g.addHandler=function(a,b,c){this.f=this.f||new H;this.f.push({O:a,context:b},c||0)};
g.removeHandler=function(a,b,c){c=c||0;if(this.f)for(var d=J(this.f,c),e=d.length,f=0;f<e;++f){var k=d[f];if(k.O==a&&k.context==b){a=f;if(c=I(this.f,c))B(null!=c.length),Array.prototype.splice.call(c,a,1);break}}else C("EventDispatcher has no handlers!")};g.na=function(a,b,c){if(!this.f)return!1;c=J(this.f,c||0);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(f.O==a&&f.context==b)return!0}return!1};
g.G=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(this.f){c=K(this.f);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(-1!=G(K(this.f),f))try{f.O.apply(f.context,arguments)}catch(k){F(k,!0)}}}this.X&&this.X.forEach(function(a){a.G.apply(a,b instanceof Array?b:ba(h(b)))})};L.prototype.dispatch=L.prototype.G;L.prototype.hasHandler=L.prototype.na;L.prototype.removeHandler=L.prototype.removeHandler;L.prototype.addHandler=L.prototype.addHandler;L.prototype.eventOwner=L.prototype.la;function P(a){this.L=a}P.prototype.ma=function(a,b,c){c=this.L.hasOwnProperty(a)?this.L[a]:c;if(void 0!==c){if(void 0!==b){a=this.da;for(var d in b)if(b.hasOwnProperty(d)){var e=b[d];a&&(d=a(d));c=c.replace(new RegExp(d,"g"),e)}}return c}C("unknown message id: "+a);return a};P.prototype.messages=function(){return this.L};P.prototype.da=function(a){return"%"+a.toUpperCase()+"%"};P.prototype.getMessage=P.prototype.ma;function Q(a,b,c,d){this.ea=new P(b);this.ba=c;this.i=d}Q.prototype.i18n=function(){return this.ea};function oa(){this.ia=new L;this.ca=new L};function R(){this.u=[];this.W=1;this.N=2}R.prototype.D=function(){return this.u};R.prototype.C=function(){return this.W};R.prototype.setPageNumber=function(a){this.W=a};R.prototype.viewMode=function(){return this.N};function S(){}S.prototype.encode=function(a){var b={};return b.p=a.C+1,b.m=a.viewMode,b.v=a.D,b};S.prototype.decode=function(a){return{C:a.p,viewMode:a.m,D:a.v}};function pa(){this.$=new S}pa.prototype.R=function(a){a={C:a.C(),viewMode:a.viewMode(),D:a.D()};return this.$.encode(a)};function qa(a,b,c){var d=window.iSpring.pdfviewer.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 T(a,b){try{this.I=this.g=!1;this.i=!0;this.M=new oa;this.l=null;this.j=new R;this.Z=new pa;var c=new Q("ispring://pdfviewer/"+encodeURIComponent(b.docId),b.tincan.i18n,b.scorm2004?b.scorm2004.edition:"",this.i);this.h=qa(a,c,this.M)}catch(d){ra()&&alert(d)}}var U=null;T.prototype.s=function(a){B(!this.g);null!=this.h?this.h.s(u(this.ga,this,a),u(this.V,this,a)):this.V(a)};T.prototype.initialize=T.prototype.s;
T.prototype.start=function(a){this.g&&(this.l=a,this.I=!0,this.M.ia.G(this.l.title()),a.stateChangedEvent().addHandler(this.aa,this))};T.prototype.start=T.prototype.start;T.prototype.ka=function(){this.I&&(this.I=!1,sa(this),this.l.stateChangedEvent().removeHandler(this.aa,this),this.M.ca.G(),this.i?this.h.suspend():this.h.terminate())};T.prototype.closeLms=T.prototype.ka;
T.prototype.ga=function(a){var b=ta(this.h.c);if(this.i&&b){b=this.Z.$.decode(b);var c=new R;c.u=b.D;c.setPageNumber(b.C);c.N=b.viewMode;this.j=c}this.g=!0;b=this.i?ta(this.h.c):null;a&&a(b)};T.prototype.V=function(a){a&&a()};T.prototype.aa=function(){for(var a=this.l.viewPages(),b=0;b<a.length;++b){var c=this.j.u,d=a[b];0<=G(c,d)||c.push(d);this.j.setPageNumber(a[b])}a=this.l.viewMode();this.j.N=a;sa(this)};
function sa(a){var b=a.j.u.length/a.l.pagesCount();a.h.S(b);a.h.T(a.j.u.length,0,a.l.pagesCount(),100);b=a.j.u.length==a.l.pagesCount();a.h.U(null,b);if(a.i){var c=a.Z.R(a.j);b=a.h.c;c=(new ua).R(c);c=LZString.compressToBase64(c);c.length<=("2"==b.a.K?4E3:64E3)&&b.b("cmi.suspend_data",c)}a.h.A()}v("iSpring.pdfviewer.LMS.create",function(a,b){U||(U=new T(a,b));return U});v("iSpring.pdfviewer.LMS.instance",function(){B(U);return U});function va(a){if("function"!=r(a))if(a&&"function"==typeof a.handleEvent)a=u(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(10)||q.setTimeout(a,10)};function wa(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}function xa(a){a=String(a);if(wa(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function ua(){this.H=void 0}ua.prototype.R=function(a){var b=[];V(this,a,b);return b.join("")};
function V(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if("array"==r(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],V(a,a.H?a.H.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),ya(d,c),c.push(":"),V(a,a.H?a.H.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":ya(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 za={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},Aa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function ya(a,b){b.push('"',a.replace(Aa,function(a){var b=za[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),za[a]=b);return b}),'"')};function Ba(){}v("iSpring.ios.mobile.MobileAppCommand",Ba);Ba.prototype.id=function(){return this[t]||(this[t]=++ia)};function W(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}W.prototype.BYTES_PER_ELEMENT=4;W.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};W.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(W.BYTES_PER_ELEMENT=4,W.prototype.BYTES_PER_ELEMENT=W.prototype.BYTES_PER_ELEMENT,W.prototype.set=W.prototype.set,W.prototype.toString=W.prototype.toString,v("Float32Array",W));function X(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}X.prototype.BYTES_PER_ELEMENT=8;X.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};X.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{X.BYTES_PER_ELEMENT=8}catch(a){}X.prototype.BYTES_PER_ELEMENT=X.prototype.BYTES_PER_ELEMENT;X.prototype.set=X.prototype.set;X.prototype.toString=X.prototype.toString;v("Float64Array",X)};function Y(){var a=window.location.search.substr(1);if(a){var b={};a=a.split("&");for(var c=0;c<a.length;++c){var d=a[c].split("=");if(2==d.length){try{var e=decodeURIComponent(d[0].replace(/\+/g," "))}catch(k){e=d[0]}try{var f=decodeURIComponent(d[1].replace(/\+/g," "))}catch(k){f=d[1]}e=e.toLowerCase();b[e]=f}}}else b={};return b};function Ca(){function a(a){try{for(var b=0;255>b;++b){if(a.API_1484_11)return a.API_1484_11;var c=a.parent;if(!c||a==c)break;a=c}}catch(f){}return null}var b=window;return a(b)||b.opener&&a(b.opener)};function Da(a,b,c){this.B=a;this.K=b;this.Y=!1;this.J=0;this.i=c}g=Da.prototype;g.s=function(){try{return"true"==this.B.Initialize("")}catch(a){}return!1};g.terminate=function(a){this.b("cmi.exit",a?this.Y?"":"suspend":"normal");this.b("adl.nav.request","exitAll");this.A();try{return"true"==this.B.Terminate("")}catch(b){}return!1};g.A=function(){0==this.J&&this.b("cmi.exit",this.i?this.Y?"":"suspend":"normal");try{var a="true"==this.B.Commit("");this.J+=1;return a}catch(b){}return!1};g.P=function(a){try{return this.B.GetValue(a)}catch(b){}return""};
g.b=function(a,b){if("number"==typeof b){if(void 0!==c?c:1)b=parseFloat(b.toFixed(7))+"";else{var c=Math.pow(10,7);b=Math.floor(b*c)/c+""}b+=""}try{return"true"==this.B.SetValue(a,b)}catch(d){}return!1};v("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d=null.fa[a];if(null==d)return"";delete null.fa[a];va(function(){if(b)d.onload(c);else d.onerror()});return"ok"});(function(){function a(a){try{return a.ISPlayer&&(window.ISPlayer=a.ISPlayer),a.ISPVideoPlayer&&(window.ISPVideoPlayer=a.ISPVideoPlayer),a.ISPQuizPlayer&&(window.ISPQuizPlayer=a.ISPQuizPlayer),a.ISPInteractionPlayerCore&&(window.ISPInteractionPlayerCore=a.ISPInteractionPlayerCore),a.ISPBookPlayer&&(window.ISPBookPlayer=a.ISPBookPlayer),a.ISPScenarioPlayer&&(window.ISPScenarioPlayer=a.ISPScenarioPlayer),a.ISPFlipPlayer&&(window.ISPFlipPlayer=a.ISPFlipPlayer),!0}catch(e){return!1}}if(function(){try{var a=
window.frameElement}catch(e){}return null!=a}())for(var b=window,c=7;b&&b.parent!=b&&0!=c--&&!a(b.parent);)b=b.parent})();Y();Y();Y();var Z=document.createElement("audio"),Ea=Z.play&&Z.play();Ea&&Ea.then(function(){Z.pause()},function(){});Y();Y();function ra(){return 1==window._ispringDebug||"1"==Y().isdebug}setTimeout(function(){D=ra},0);function Fa(a,b){var c=Ca();this.a=c?new Da(c,a,b):null;this.g=!1}g=Fa.prototype;g.s=function(){return this.g?!0:this.g=null!=this.a?this.a.s():!1};g.terminate=function(a){return null!=this.a?this.a.terminate(a):!1};g.A=function(){return null!=this.a?this.a.A():!1};g.P=function(a){return null!=this.a?this.a.P(a):""};g.b=function(a,b){return null!=this.a?this.a.b(a,b):!1};
g.T=function(a,b,c,d){null!=d||(d=0);this.b("cmi.score.raw",a);this.b("cmi.score.min",b);this.b("cmi.score.max",c);this.b("cmi.score.scaled",d)};g.S=function(a){this.b("cmi.progress_measure",a)};function ta(a){a=a.P("cmi.suspend_data");if(a)a:{a=LZString.decompressFromBase64(a);try{var b=xa(a);break a}catch(c){}b=null}else b=null;return b}g.U=function(a,b){this.b("cmi.success_status",null===a?"unknown":a?"passed":"failed");this.b("cmi.completion_status",null===b?"unknown":b?"completed":"incomplete")};function Ga(){this.c=null}g=Ga.prototype;g.s=function(a,b){this.c=new Fa(this.K,this.i);var c=this.c;c.g?a():null!=c.a?(c.g=c.a.s(),c.g?a():b()):(c.g=!1,b())};g.A=function(){this.c.A()};g.suspend=function(){this.c.terminate(!0)};g.terminate=function(){this.c.terminate(!1)};g.S=function(a){this.c.S(a)};g.U=function(a,b){this.c.U(a,b)};g.T=function(a,b,c,d){null!=d&&(a=0<c-b?a/(c-b)*d:0,c=d);this.c.T(a,b,c,0<c-b?a/(c-b):0)};function Ha(a){this.K=a.ba||"2";this.i=a.i}w(Ha,Ga);v("iSpring.pdfviewer.LMSAPI.Scorm2004Api",Ha);})();
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}
