var S=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function T(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}function U(h){if(h.__esModule)return h;var g=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(h).forEach(function(y){var m=Object.getOwnPropertyDescriptor(h,y);Object.defineProperty(g,y,m.get?m:{enumerable:!0,get:function(){return h[y]}})}),g}var j={exports:{}};(function(h){var g=function(){var y=String.fromCharCode,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",x={};function O(n,o){if(!x[n]){x[n]={};for(var s=0;s>>8,s[r*2+1]=p%256}return s},decompressFromUint8Array:function(n){if(n==null)return w.decompress(n);for(var o=new Array(n.length/2),s=0,r=o.length;s>1}else{for(i=1,r=0;r>1}d--,d==0&&(d=Math.pow(2,c),c++),delete _[u]}else for(i=p[u],r=0;r>1;d--,d==0&&(d=Math.pow(2,c),c++),p[A]=a++,u=String(v)}if(u!==""){if(Object.prototype.hasOwnProperty.call(_,u)){if(u.charCodeAt(0)<256){for(r=0;r>1}else{for(i=1,r=0;r>1}d--,d==0&&(d=Math.pow(2,c),c++),delete _[u]}else for(i=p[u],r=0;r>1;d--,d==0&&(d=Math.pow(2,c),c++)}for(i=2,r=0;r>1;for(;;)if(e=e<<1,f==o-1){l.push(s(e));break}else f++;return l.join("")},decompress:function(n){return n==null?"":n==""?null:w._decompress(n.length,32768,function(o){return n.charCodeAt(o)})},_decompress:function(n,o,s){var r=[],i=4,p=4,_=3,v="",A=[],u,d,a,c,l,e,f,t={val:s(0),position:o,index:1};for(u=0;u<3;u+=1)r[u]=u;for(a=0,l=Math.pow(2,2),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;switch(a){case 0:for(a=0,l=Math.pow(2,8),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;f=y(a);break;case 1:for(a=0,l=Math.pow(2,16),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;f=y(a);break;case 2:return""}for(r[3]=f,d=f,A.push(f);;){if(t.index>n)return"";for(a=0,l=Math.pow(2,_),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;switch(f=a){case 0:for(a=0,l=Math.pow(2,8),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;r[p++]=y(a),f=p-1,i--;break;case 1:for(a=0,l=Math.pow(2,16),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;r[p++]=y(a),f=p-1,i--;break;case 2:return A.join("")}if(i==0&&(i=Math.pow(2,_),_++),r[f])v=r[f];else if(f===p)v=d+d.charAt(0);else return null;A.push(v),r[p++]=d+v.charAt(0),i--,d=v,i==0&&(i=Math.pow(2,_),_++)}}};return w}();h!=null?h.exports=g:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return g})})(j);var b=j.exports;export{b as L,T as a,S as c,U as g};