diff --git a/filestorage/gd/1on1soccer/index.html b/filestorage/gd/1on1soccer/index.html new file mode 100644 index 0000000000000000000000000000000000000000..b3797915bf8aef93540001acc39a6df3cfa268ea --- /dev/null +++ b/filestorage/gd/1on1soccer/index.html @@ -0,0 +1,34 @@ + +
+ + + ++ By continuing, you acknowledge that you understand this content warning + and are comfortable proceeding to view mature content. +
+ + + + +0%
+Q&&(t=Q-s),i=t;i>=0;i--){for(var E=!0,o=0;og&&(e=g):e=g;var i=B.length;if(i%2!=0)throw new TypeError("Invalid hex string");e>i/2&&(e=i/2);for(var n=0;n>8,g=t%256,i.push(g),i.push(e);return i}(B,A.length-t),A,t,e)}function U(A,B,t){return 0===B&&t===A.length?e.fromByteArray(A):e.fromByteArray(A.slice(B,t))}function N(A,B,t){t=Math.min(A.length,t);for(var e=[],g=B;g 239?4:r>223?3:r>191?2:1;if(g+E<=t)switch(E){case 1:r<128&&(c=r);break;case 2:128==(192&(i=A[g+1]))&&(s=(31&r)<<6|63&i)>127&&(c=s);break;case 3:i=A[g+1],n=A[g+2],128==(192&i)&&128==(192&n)&&(s=(15&r)<<12|(63&i)<<6|63&n)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:i=A[g+1],n=A[g+2],Q=A[g+3],128==(192&i)&&128==(192&n)&&128==(192&Q)&&(s=(15&r)<<18|(63&i)<<12|(63&n)<<6|63&Q)>65535&&s<1114112&&(c=s)}null===c?(c=65533,E=1):c>65535&&(c-=65536,e.push(c>>>10&1023|55296),c=56320|1023&c),e.push(c),g+=E}return function(A){var B=A.length;if(B<=4096)return String.fromCharCode.apply(String,A);var t="",e=0;for(;e0&&(A=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(A+=" ... "))," "},s.prototype.compare=function(A,B,t,e,g){if(!s.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(void 0===B&&(B=0),void 0===t&&(t=A?A.length:0),void 0===e&&(e=0),void 0===g&&(g=this.length),B<0||t>A.length||e<0||g>this.length)throw new RangeError("out of range index");if(e>=g&&B>=t)return 0;if(e>=g)return-1;if(B>=t)return 1;if(this===A)return 0;for(var i=(g>>>=0)-(e>>>=0),n=(t>>>=0)-(B>>>=0),Q=Math.min(i,n),r=this.slice(e,g),c=A.slice(B,t),E=0;E g)&&(t=g),A.length>0&&(t<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var i=!1;;)switch(e){case"hex":return M(this,A,B,t);case"utf8":case"utf-8":return F(this,A,B,t);case"ascii":return D(this,A,B,t);case"latin1":case"binary":return u(this,A,B,t);case"base64":return l(this,A,B,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,A,B,t);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function m(A,B,t){var e="";t=Math.min(A.length,t);for(var g=B;ge)&&(t=e);for(var g="",i=B;i t)throw new RangeError("Trying to access beyond buffer length")}function R(A,B,t,e,g,i){if(!s.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(B>g||BA.length)throw new RangeError("Index out of range")}function y(A,B,t,e){B<0&&(B=65535+B+1);for(var g=0,i=Math.min(A.length-t,2);g>>8*(e?g:1-g)}function J(A,B,t,e){B<0&&(B=4294967295+B+1);for(var g=0,i=Math.min(A.length-t,4);g>>8*(e?g:3-g)&255}function k(A,B,t,e,g,i){if(t+e>A.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function T(A,B,t,e,i){return i||k(A,0,t,4),g.write(A,B,t,e,23,4),t+4}function j(A,B,t,e,i){return i||k(A,0,t,8),g.write(A,B,t,e,52,8),t+8}s.prototype.slice=function(A,B){var t,e=this.length;if((A=~~A)<0?(A+=e)<0&&(A=0):A>e&&(A=e),(B=void 0===B?e:~~B)<0?(B+=e)<0&&(B=0):B>e&&(B=e),B0&&(g*=256);)e+=this[A+--B]*g;return e},s.prototype.readUInt8=function(A,B){return B||p(A,1,this.length),this[A]},s.prototype.readUInt16LE=function(A,B){return B||p(A,2,this.length),this[A]|this[A+1]<<8},s.prototype.readUInt16BE=function(A,B){return B||p(A,2,this.length),this[A]<<8|this[A+1]},s.prototype.readUInt32LE=function(A,B){return B||p(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},s.prototype.readUInt32BE=function(A,B){return B||p(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},s.prototype.readIntLE=function(A,B,t){A|=0,B|=0,t||p(A,B,this.length);for(var e=this[A],g=1,i=0;++i=(g*=128)&&(e-=Math.pow(2,8*B)),e},s.prototype.readIntBE=function(A,B,t){A|=0,B|=0,t||p(A,B,this.length);for(var e=B,g=1,i=this[A+--e];e>0&&(g*=256);)i+=this[A+--e]*g;return i>=(g*=128)&&(i-=Math.pow(2,8*B)),i},s.prototype.readInt8=function(A,B){return B||p(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},s.prototype.readInt16LE=function(A,B){B||p(A,2,this.length);var t=this[A]|this[A+1]<<8;return 32768&t?4294901760|t:t},s.prototype.readInt16BE=function(A,B){B||p(A,2,this.length);var t=this[A+1]|this[A]<<8;return 32768&t?4294901760|t:t},s.prototype.readInt32LE=function(A,B){return B||p(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},s.prototype.readInt32BE=function(A,B){return B||p(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},s.prototype.readFloatLE=function(A,B){return B||p(A,4,this.length),g.read(this,A,!0,23,4)},s.prototype.readFloatBE=function(A,B){return B||p(A,4,this.length),g.read(this,A,!1,23,4)},s.prototype.readDoubleLE=function(A,B){return B||p(A,8,this.length),g.read(this,A,!0,52,8)},s.prototype.readDoubleBE=function(A,B){return B||p(A,8,this.length),g.read(this,A,!1,52,8)},s.prototype.writeUIntLE=function(A,B,t,e){(A=+A,B|=0,t|=0,e)||R(this,A,B,t,Math.pow(2,8*t)-1,0);var g=1,i=0;for(this[B]=255&A;++i =0&&(i*=256);)this[B+g]=A/i&255;return B+t},s.prototype.writeUInt8=function(A,B,t){return A=+A,B|=0,t||R(this,A,B,1,255,0),s.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[B]=255&A,B+1},s.prototype.writeUInt16LE=function(A,B,t){return A=+A,B|=0,t||R(this,A,B,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[B]=255&A,this[B+1]=A>>>8):y(this,A,B,!0),B+2},s.prototype.writeUInt16BE=function(A,B,t){return A=+A,B|=0,t||R(this,A,B,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[B]=A>>>8,this[B+1]=255&A):y(this,A,B,!1),B+2},s.prototype.writeUInt32LE=function(A,B,t){return A=+A,B|=0,t||R(this,A,B,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[B+3]=A>>>24,this[B+2]=A>>>16,this[B+1]=A>>>8,this[B]=255&A):J(this,A,B,!0),B+4},s.prototype.writeUInt32BE=function(A,B,t){return A=+A,B|=0,t||R(this,A,B,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[B]=A>>>24,this[B+1]=A>>>16,this[B+2]=A>>>8,this[B+3]=255&A):J(this,A,B,!1),B+4},s.prototype.writeIntLE=function(A,B,t,e){if(A=+A,B|=0,!e){var g=Math.pow(2,8*t-1);R(this,A,B,t,g-1,-g)}var i=0,n=1,Q=0;for(this[B]=255&A;++i >0)-Q&255;return B+t},s.prototype.writeIntBE=function(A,B,t,e){if(A=+A,B|=0,!e){var g=Math.pow(2,8*t-1);R(this,A,B,t,g-1,-g)}var i=t-1,n=1,Q=0;for(this[B+i]=255&A;--i>=0&&(n*=256);)A<0&&0===Q&&0!==this[B+i+1]&&(Q=1),this[B+i]=(A/n>>0)-Q&255;return B+t},s.prototype.writeInt8=function(A,B,t){return A=+A,B|=0,t||R(this,A,B,1,127,-128),s.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[B]=255&A,B+1},s.prototype.writeInt16LE=function(A,B,t){return A=+A,B|=0,t||R(this,A,B,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[B]=255&A,this[B+1]=A>>>8):y(this,A,B,!0),B+2},s.prototype.writeInt16BE=function(A,B,t){return A=+A,B|=0,t||R(this,A,B,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[B]=A>>>8,this[B+1]=255&A):y(this,A,B,!1),B+2},s.prototype.writeInt32LE=function(A,B,t){return A=+A,B|=0,t||R(this,A,B,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[B]=255&A,this[B+1]=A>>>8,this[B+2]=A>>>16,this[B+3]=A>>>24):J(this,A,B,!0),B+4},s.prototype.writeInt32BE=function(A,B,t){return A=+A,B|=0,t||R(this,A,B,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),s.TYPED_ARRAY_SUPPORT?(this[B]=A>>>24,this[B+1]=A>>>16,this[B+2]=A>>>8,this[B+3]=255&A):J(this,A,B,!1),B+4},s.prototype.writeFloatLE=function(A,B,t){return T(this,A,B,!0,t)},s.prototype.writeFloatBE=function(A,B,t){return T(this,A,B,!1,t)},s.prototype.writeDoubleLE=function(A,B,t){return j(this,A,B,!0,t)},s.prototype.writeDoubleBE=function(A,B,t){return j(this,A,B,!1,t)},s.prototype.copy=function(A,B,t,e){if(t||(t=0),e||0===e||(e=this.length),B>=A.length&&(B=A.length),B||(B=0),e>0&&e =this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),A.length-B =0;--g)A[g+B]=this[g+t];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(g=0;g>>=0,t=void 0===t?this.length:t>>>0,A||(A=0),"number"==typeof A)for(i=B;i 55295&&t<57344){if(!g){if(t>56319){(B-=3)>-1&&i.push(239,191,189);continue}if(n+1===e){(B-=3)>-1&&i.push(239,191,189);continue}g=t;continue}if(t<56320){(B-=3)>-1&&i.push(239,191,189),g=t;continue}t=65536+(g-55296<<10|t-56320)}else g&&(B-=3)>-1&&i.push(239,191,189);if(g=null,t<128){if((B-=1)<0)break;i.push(t)}else if(t<2048){if((B-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((B-=3)<0)break;i.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((B-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}function z(A){return e.toByteArray(function(A){if((A=function(A){return A.trim?A.trim():A.replace(/^\s+|\s+$/g,"")}(A).replace(x,"")).length<2)return"";for(;A.length%4!=0;)A+="=";return A}(A))}function L(A,B,t,e){for(var g=0;g =B.length||g>=A.length);++g)B[g+t]=A[g];return g}}).call(this,t(8))},function(A,B,t){function e(){}t(118).mixin(e),e.prototype.write=function(A,B,t){this.emit("item",A,B,t)},e.prototype.end=function(){this.emit("end"),this.removeAllListeners()},e.prototype.pipe=function(A){var B=this;function t(){A.write.apply(A,Array.prototype.slice.call(arguments))}function e(){!A._isStdio&&A.end()}return B.emit("unpipe",A),A.emit("pipe",B),B.on("item",t),B.on("end",e),B.when("unpipe",(function(g){var i=g===A||void 0===g;return i&&(B.removeListener("item",t),B.removeListener("end",e),A.emit("unpipe")),i})),A},e.prototype.unpipe=function(A){return this.emit("unpipe",A),this},e.prototype.format=function(A){throw new Error(["Warning: .format() is deprecated in Minilog v2! Use .pipe() instead. For example:","var Minilog = require('minilog');","Minilog"," .pipe(Minilog.backends.console.formatClean)"," .pipe(Minilog.backends.console);"].join("\n"))},e.mixin=function(A){var B,t=e.prototype;for(B in t)t.hasOwnProperty(B)&&(A.prototype[B]=t[B])},A.exports=e},function(A,B){A.exports=class{static simple(A){return JSON.parse(JSON.stringify(A))}}},function(A,B){class t{static get BACKGROUND_LAYER(){return"background"}static get VIDEO_LAYER(){return"video"}static get PEN_LAYER(){return"pen"}static get SPRITE_LAYER(){return"sprite"}static get LAYER_GROUPS(){return[t.BACKGROUND_LAYER,t.VIDEO_LAYER,t.PEN_LAYER,t.SPRITE_LAYER]}}A.exports=t},function(A,B,t){(function(B){class t{constructor(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.nowObj;this.startTime=0,this.nowObj=A}static get USE_PERFORMANCE(){return!1}static get legacyDateCode(){return{now:function(){return(new Date).getTime()}}}static get nowObj(){return t.USE_PERFORMANCE&&"undefined"!=typeof self&&self.performance&&"now"in self.performance?self.performance:Date.now?Date:t.legacyDateCode}time(){return this.nowObj.now()}relativeTime(){return this.nowObj.now()}start(){this.startTime=this.nowObj.now()}timeElapsed(){return this.nowObj.now()-this.startTime}setTimeout(A,t){return B.setTimeout(A,t)}clearTimeout(A){B.clearTimeout(A)}}A.exports=t}).call(this,t(8))},function(A,B,t){const e=t(203),g=t(67),i=t(28),n=t(39),Q=t(13),{Map:s}=t(24),r=t(69),c=t(70),E=t(0),o=t(9),w=t(40);class C{constructor(A,B){this.runtime=A,this._blocks={},this._scripts=[],Object.defineProperty(this,"_cache",{writable:!0,enumerable:!1}),this._cache={inputs:{},procedureParamNames:{},procedureDefinitions:{},_executeCached:{},_monitored:null,scripts:{},compiledScripts:{},compiledProcedures:{},proceduresPopulated:!1},this.forceNoGlow=B||!1}getCachedCompileResult(A){return this._cache.compiledScripts.hasOwnProperty(A)?this._cache.compiledScripts[A]:null}cacheCompileResult(A,B){this._cache.compiledScripts[A]={success:!0,value:B}}cacheCompileError(A,B){this._cache.compiledScripts[A]={success:!1,value:B}}static get BRANCH_INPUT_PREFIX(){return"SUBSTACK"}getBlock(A){return this._blocks[A]}getScripts(){return this._scripts}getNextBlock(A){const B=this._blocks[A];return void 0===B?null:B.next}getBranch(A,B){const t=this._blocks[A];if(void 0===t)return null;B||(B=1);let e=C.BRANCH_INPUT_PREFIX;B>1&&(e+=B);const g=t.inputs[e];return void 0===g?null:g.block}getOpcode(A){return void 0===A?null:A.opcode}getFields(A){return void 0===A?null:A.fields}getInputs(A){if(void 0===A)return null;let B=this._cache.inputs[A.id];if(void 0!==B)return B;B={};for(const t in A.inputs)t.substring(0,C.BRANCH_INPUT_PREFIX.length)!==C.BRANCH_INPUT_PREFIX&&(B[t]=A.inputs[t]);return this._cache.inputs[A.id]=B,B}getMutation(A){return void 0===A?null:A.mutation}getTopLevelScript(A){let B=this._blocks[A];if(void 0===B)return null;for(;null!==B.parent;)B=this._blocks[B.parent];return B.id}getProcedureDefinition(A){const B=this._cache.procedureDefinitions[A];if(void 0!==B)return B;for(const B in this._blocks){if(!this._blocks.hasOwnProperty(B))continue;const t=this._blocks[B];if("procedures_definition"===t.opcode){const e=this._getCustomBlockInternal(t);if(e&&e.mutation.proccode===A)return this._cache.procedureDefinitions[A]=B,B}}return this._cache.procedureDefinitions[A]=null,null}getProcedureParamNamesAndIds(A){return this.getProcedureParamNamesIdsAndDefaults(A).slice(0,2)}getProcedureParamNamesIdsAndDefaults(A){const B=this._cache.procedureParamNames[A];if(void 0!==B)return B;for(const B in this._blocks){if(!this._blocks.hasOwnProperty(B))continue;const t=this._blocks[B];if("procedures_prototype"===t.opcode&&t.mutation.proccode===A){const B=JSON.parse(t.mutation.argumentnames),e=JSON.parse(t.mutation.argumentids),g=JSON.parse(t.mutation.argumentdefaults);return this._cache.procedureParamNames[A]=[B,e,g],this._cache.procedureParamNames[A]}}const t=this.runtime.getAddonBlock(A);return t?(this._cache.procedureParamNames[A]=t.namesIdsDefaults,t.namesIdsDefaults):(this._cache.procedureParamNames[A]=null,null)}populateProcedureCache(){if(!this._cache.proceduresPopulated){for(const A in this._blocks){if(!this._blocks.hasOwnProperty(A))continue;const B=this._blocks[A];if("procedures_prototype"!==B.opcode){if("procedures_definition"===B.opcode){const t=this._getCustomBlockInternal(B);if(t){const B=t.mutation.proccode;this._cache.procedureDefinitions[B]||(this._cache.procedureDefinitions[B]=A);continue}}}else{const A=B.mutation.proccode;if(!this._cache.procedureParamNames[A]){const t=JSON.parse(B.mutation.argumentnames),e=JSON.parse(B.mutation.argumentids),g=JSON.parse(B.mutation.argumentdefaults);this._cache.procedureParamNames[A]=[t,e,g]}}}this._cache.proceduresPopulated=!0}}duplicate(){const A=new C(this.runtime,this.forceNoGlow);return A._blocks=Q.simple(this._blocks),A._scripts=Q.simple(this._scripts),A}blocklyListen(A){if("object"!=typeof A)return;if("string"!=typeof A.blockId&&"string"!=typeof A.varId&&"string"!=typeof A.commentId)return;const B=this.runtime.getTargetForStage(),t=this.runtime.getEditingTarget();if("stackclick"!==A.element)switch(A.type){case"create":{const B=e(A);for(let A=0;A A.isOriginal);for(const B of t)if(B.lookupVariableByNameAndType(A.varName,A.varType,!0))return;B.createVariable(A.varId,A.varName,A.varType,A.isCloud),this.emitProjectChanged()}break;case"var_rename":if(t&&t.variables.hasOwnProperty(A.varId))t.renameVariable(A.varId,A.newName),t.blocks.updateBlocksAfterVarRename(A.varId,A.newName);else{B.renameVariable(A.varId,A.newName);const t=this.runtime.targets;for(let B=0;B 0&&"data_variable"!==B.opcode&&"data_listcontents"!==B.opcode){const A=w(B.id,B.fields);let t=this.runtime.monitorBlocks.getBlock(A);t||(t=JSON.parse(JSON.stringify(B)),t.id=A,this.runtime.monitorBlocks.createBlock(t)),B=t}const t=B.isMonitored;B.isMonitored=A.value;let e=!1;"data_variable"===B.opcode?e=!this.runtime.getTargetForStage().variables[B.fields.VARIABLE.id]:"data_listcontents"===B.opcode&&(e=!this.runtime.getTargetForStage().variables[B.fields.LIST.id]);const g=e||this.runtime.monitorBlockInfo.hasOwnProperty(B.opcode)&&this.runtime.monitorBlockInfo[B.opcode].isSpriteSpecific;B.targetId=g?B.targetId||this.runtime.getEditingTarget().id:null,t&&!B.isMonitored?this.runtime.requestHideMonitor(B.id):!t&&B.isMonitored&&(this.runtime.requestShowMonitor(B.id)||this.runtime.requestAddMonitor(n({id:B.id,targetId:B.targetId,spriteName:B.targetId?this.runtime.getTargetById(B.targetId).getName():null,opcode:B.opcode,params:this._getBlockParams(B),value:"",mode:"data_listcontents"===B.opcode?"list":"default"})));break}}this.emitProjectChanged(),this.resetCache()}}moveBlock(A){if(!this._blocks.hasOwnProperty(A.id))return;const B=this._blocks[A.id];let t=!1;if(A.newCoordinate&&(t=B.x!==A.newCoordinate.x||B.y!==A.newCoordinate.y,B.x=A.newCoordinate.x,B.y=A.newCoordinate.y),void 0!==A.oldParent){const B=this._blocks[A.oldParent];void 0!==A.oldInput&&B.inputs[A.oldInput].block===A.id?B.inputs[A.oldInput].block=null:B.next===A.id&&(B.next=null),this._blocks[A.id].parent=null,t=!0}if(void 0===A.newParent)this._addScript(A.id);else{if(this._deleteScript(A.id),void 0===A.newInput)this._blocks[A.newParent].next=A.id;else{let B=null;this._blocks[A.newParent].inputs.hasOwnProperty(A.newInput)&&(B=this._blocks[A.newParent].inputs[A.newInput].shadow),this._blocks[A.id].shadow&&(B=A.id),this._blocks[A.newParent].inputs[A.newInput]={name:A.newInput,block:A.id,shadow:B}}this._blocks[A.id].parent=A.newParent,t=!0}this.resetCache(),t&&this.emitProjectChanged()}runAllMonitored(A){null===this._cache._monitored&&(this._cache._monitored=Object.keys(this._blocks).filter(A=>this.getBlock(A).isMonitored).map(B=>{const t=this.getBlock(B).targetId;return{blockId:B,target:t?A.getTargetById(t):null}}));const B=this._cache._monitored;for(let t=0;t this.blockToXML(B,A)).join()}blockToXML(A,B){const t=this._blocks[A];if(!t)return;const e=t.shadow?"shadow":"block";let g="<".concat(e,'\n id="').concat(i(t.id),'"\n type="').concat(i(t.opcode),'"\n ').concat(t.topLevel?'x="'.concat(t.x,'" y="').concat(t.y,'"'):"","\n >");const n=t.comment;n&&(B?B.hasOwnProperty(n)?g+=B[n].toXML():E.warn("Could not find comment with id: ".concat(n," in provided comment descriptions.")):E.warn("Cannot serialize comment with id: ".concat(n,"; no comment descriptions provided."))),t.mutation&&(g+=this.mutationToXML(t.mutation));for(const A in t.inputs){if(!t.inputs.hasOwnProperty(A))continue;const e=t.inputs[A];(e.block||e.shadow)&&(g+=' '),e.block&&(g+=this.blockToXML(e.block,B)),e.shadow&&e.shadow!==e.block&&(g+=this.blockToXML(e.shadow,B)),g+=" ")}for(const A in t.fields){if(!t.fields.hasOwnProperty(A))continue;const B=t.fields[A];g+='".concat(Q," ")}return t.next&&(g+="".concat(this.blockToXML(t.next,B)," ")),g+="".concat(e,">"),g}mutationToXML(A){let B="<".concat(A.tagName);for(const t in A){if("children"===t||"tagName"===t)continue;let e="string"==typeof A[t]?i(A[t]):A[t];"blockInfo"===t&&(e=i(JSON.stringify(A[t]))),B+=" ".concat(t,'="').concat(e,'"')}B+=">";for(let t=0;t"),B}_getBlockParams(A){const B={};for(const t in A.fields)B[t]=A.fields[t].value;for(const t in A.inputs){const e=this._blocks[A.inputs[t].block];for(const A in e.fields)B[A]=e.fields[A].value}return B}_getCustomBlockInternal(A){if(A.inputs&&A.inputs.custom_block)return this._blocks[A.inputs.custom_block.block]}_addScript(A){this._scripts.indexOf(A)>-1||(this._scripts.push(A),this._blocks[A].topLevel=!0)}_deleteScript(A){const B=this._scripts.indexOf(A);B>-1&&this._scripts.splice(B,1),this._blocks[A]&&(this._blocks[A].topLevel=!1)}}r.getCached=function(A,B,t){let e=A._cache._executeCached[B];if(void 0!==e)return e;const g=A.getBlock(B);return void 0===g?null:(e=void 0===t?{id:B,opcode:A.getOpcode(g),fields:A.getFields(g),inputs:A.getInputs(g),mutation:A.getMutation(g)}:new t(A,{id:B,opcode:A.getOpcode(g),fields:A.getFields(g),inputs:A.getInputs(g),mutation:A.getMutation(g)}),A._cache._executeCached[B]=e,e)};const a=c._RuntimeScriptCache;c.getScripts=function(A,B){let t=A._cache.scripts[B];if(!t){t=A._cache.scripts[B]=[];const e=A._scripts;for(let g=0;g >2]|=A[i]< >6,s[g++]=128|63&e):e<55296||e>=57344?(s[g++]=224|e>>12,s[g++]=128|e>>6&63,s[g++]=128|63&e):(e=65536+((1023&e)<<10|1023&A.charCodeAt(++i)),s[g++]=240|e>>18,s[g++]=128|e>>12&63,s[g++]=128|e>>6&63,s[g++]=128|63&e);else for(g=this.start;i >2]|=e< >2]|=(192|e>>6)< >2]|=(128|63&e)< =57344?(Q[g>>2]|=(224|e>>12)< >2]|=(128|e>>6&63)< >2]|=(128|63&e)< >2]|=(240|e>>18)< >2]|=(128|e>>12&63)< >2]|=(128|e>>6&63)< >2]|=(128|63&e)< =64?(this.start=g-64,this.hash(),this.hashed=!0):this.start=g}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var A=this.blocks,B=this.lastByteIndex;A[B>>2]|=EXTRA[3&B],B>=56&&(this.hashed||this.hash(),A[0]=A[16],A[16]=A[1]=A[2]=A[3]=A[4]=A[5]=A[6]=A[7]=A[8]=A[9]=A[10]=A[11]=A[12]=A[13]=A[14]=A[15]=0),A[14]=this.bytes<<3,A[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var A,B,t,e,g,i,n=this.blocks;this.first?B=((B=((A=((A=n[0]-680876937)<<7|A>>>25)-271733879<<0)^(t=((t=(-271733879^(e=((e=(-1732584194^2004318071&A)+n[1]-117830708)<<12|e>>>20)+A<<0)&(-271733879^A))+n[2]-1126478375)<<17|t>>>15)+e<<0)&(e^A))+n[3]-1316259209)<<22|B>>>10)+t<<0:(A=this.h0,B=this.h1,t=this.h2,B=((B+=((A=((A+=((e=this.h3)^B&(t^e))+n[0]-680876936)<<7|A>>>25)+B<<0)^(t=((t+=(B^(e=((e+=(t^A&(B^t))+n[1]-389564586)<<12|e>>>20)+A<<0)&(A^B))+n[2]+606105819)<<17|t>>>15)+e<<0)&(e^A))+n[3]-1044525330)<<22|B>>>10)+t<<0),B=((B+=((A=((A+=(e^B&(t^e))+n[4]-176418897)<<7|A>>>25)+B<<0)^(t=((t+=(B^(e=((e+=(t^A&(B^t))+n[5]+1200080426)<<12|e>>>20)+A<<0)&(A^B))+n[6]-1473231341)<<17|t>>>15)+e<<0)&(e^A))+n[7]-45705983)<<22|B>>>10)+t<<0,B=((B+=((A=((A+=(e^B&(t^e))+n[8]+1770035416)<<7|A>>>25)+B<<0)^(t=((t+=(B^(e=((e+=(t^A&(B^t))+n[9]-1958414417)<<12|e>>>20)+A<<0)&(A^B))+n[10]-42063)<<17|t>>>15)+e<<0)&(e^A))+n[11]-1990404162)<<22|B>>>10)+t<<0,B=((B+=((A=((A+=(e^B&(t^e))+n[12]+1804603682)<<7|A>>>25)+B<<0)^(t=((t+=(B^(e=((e+=(t^A&(B^t))+n[13]-40341101)<<12|e>>>20)+A<<0)&(A^B))+n[14]-1502002290)<<17|t>>>15)+e<<0)&(e^A))+n[15]+1236535329)<<22|B>>>10)+t<<0,B=((B+=((e=((e+=(B^t&((A=((A+=(t^e&(B^t))+n[1]-165796510)<<5|A>>>27)+B<<0)^B))+n[6]-1069501632)<<9|e>>>23)+A<<0)^A&((t=((t+=(A^B&(e^A))+n[11]+643717713)<<14|t>>>18)+e<<0)^e))+n[0]-373897302)<<20|B>>>12)+t<<0,B=((B+=((e=((e+=(B^t&((A=((A+=(t^e&(B^t))+n[5]-701558691)<<5|A>>>27)+B<<0)^B))+n[10]+38016083)<<9|e>>>23)+A<<0)^A&((t=((t+=(A^B&(e^A))+n[15]-660478335)<<14|t>>>18)+e<<0)^e))+n[4]-405537848)<<20|B>>>12)+t<<0,B=((B+=((e=((e+=(B^t&((A=((A+=(t^e&(B^t))+n[9]+568446438)<<5|A>>>27)+B<<0)^B))+n[14]-1019803690)<<9|e>>>23)+A<<0)^A&((t=((t+=(A^B&(e^A))+n[3]-187363961)<<14|t>>>18)+e<<0)^e))+n[8]+1163531501)<<20|B>>>12)+t<<0,B=((B+=((e=((e+=(B^t&((A=((A+=(t^e&(B^t))+n[13]-1444681467)<<5|A>>>27)+B<<0)^B))+n[2]-51403784)<<9|e>>>23)+A<<0)^A&((t=((t+=(A^B&(e^A))+n[7]+1735328473)<<14|t>>>18)+e<<0)^e))+n[12]-1926607734)<<20|B>>>12)+t<<0,B=((B+=((i=(e=((e+=((g=B^t)^(A=((A+=(g^e)+n[5]-378558)<<4|A>>>28)+B<<0))+n[8]-2022574463)<<11|e>>>21)+A<<0)^A)^(t=((t+=(i^B)+n[11]+1839030562)<<16|t>>>16)+e<<0))+n[14]-35309556)<<23|B>>>9)+t<<0,B=((B+=((i=(e=((e+=((g=B^t)^(A=((A+=(g^e)+n[1]-1530992060)<<4|A>>>28)+B<<0))+n[4]+1272893353)<<11|e>>>21)+A<<0)^A)^(t=((t+=(i^B)+n[7]-155497632)<<16|t>>>16)+e<<0))+n[10]-1094730640)<<23|B>>>9)+t<<0,B=((B+=((i=(e=((e+=((g=B^t)^(A=((A+=(g^e)+n[13]+681279174)<<4|A>>>28)+B<<0))+n[0]-358537222)<<11|e>>>21)+A<<0)^A)^(t=((t+=(i^B)+n[3]-722521979)<<16|t>>>16)+e<<0))+n[6]+76029189)<<23|B>>>9)+t<<0,B=((B+=((i=(e=((e+=((g=B^t)^(A=((A+=(g^e)+n[9]-640364487)<<4|A>>>28)+B<<0))+n[12]-421815835)<<11|e>>>21)+A<<0)^A)^(t=((t+=(i^B)+n[15]+530742520)<<16|t>>>16)+e<<0))+n[2]-995338651)<<23|B>>>9)+t<<0,B=((B+=((e=((e+=(B^((A=((A+=(t^(B|~e))+n[0]-198630844)<<6|A>>>26)+B<<0)|~t))+n[7]+1126891415)<<10|e>>>22)+A<<0)^((t=((t+=(A^(e|~B))+n[14]-1416354905)<<15|t>>>17)+e<<0)|~A))+n[5]-57434055)<<21|B>>>11)+t<<0,B=((B+=((e=((e+=(B^((A=((A+=(t^(B|~e))+n[12]+1700485571)<<6|A>>>26)+B<<0)|~t))+n[3]-1894986606)<<10|e>>>22)+A<<0)^((t=((t+=(A^(e|~B))+n[10]-1051523)<<15|t>>>17)+e<<0)|~A))+n[1]-2054922799)<<21|B>>>11)+t<<0,B=((B+=((e=((e+=(B^((A=((A+=(t^(B|~e))+n[8]+1873313359)<<6|A>>>26)+B<<0)|~t))+n[15]-30611744)<<10|e>>>22)+A<<0)^((t=((t+=(A^(e|~B))+n[6]-1560198380)<<15|t>>>17)+e<<0)|~A))+n[13]+1309151649)<<21|B>>>11)+t<<0,B=((B+=((e=((e+=(B^((A=((A+=(t^(B|~e))+n[4]-145523070)<<6|A>>>26)+B<<0)|~t))+n[11]-1120210379)<<10|e>>>22)+A<<0)^((t=((t+=(A^(e|~B))+n[2]+718787259)<<15|t>>>17)+e<<0)|~A))+n[9]-343485551)<<21|B>>>11)+t<<0,this.first?(this.h0=A+1732584193<<0,this.h1=B-271733879<<0,this.h2=t-1732584194<<0,this.h3=e+271733878<<0,this.first=!1):(this.h0=this.h0+A<<0,this.h1=this.h1+B<<0,this.h2=this.h2+t<<0,this.h3=this.h3+e<<0)},Md5.prototype.hex=function(){this.finalize();var A=this.h0,B=this.h1,t=this.h2,e=this.h3;return HEX_CHARS[A>>4&15]+HEX_CHARS[15&A]+HEX_CHARS[A>>12&15]+HEX_CHARS[A>>8&15]+HEX_CHARS[A>>20&15]+HEX_CHARS[A>>16&15]+HEX_CHARS[A>>28&15]+HEX_CHARS[A>>24&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(){this.finalize();var A=this.h0,B=this.h1,t=this.h2,e=this.h3;return[255&A,A>>8&255,A>>16&255,A>>24&255,255&B,B>>8&255,B>>16&255,B>>24&255,255&t,t>>8&255,t>>16&255,t>>24&255,255&e,e>>8&255,e>>16&255,e>>24&255]},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var A=new ArrayBuffer(16),B=new Uint32Array(A);return B[0]=this.h0,B[1]=this.h1,B[2]=this.h2,B[3]=this.h3,A},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var A,B,t,e="",g=this.array(),i=0;i<15;)A=g[i++],B=g[i++],t=g[i++],e+=BASE64_ENCODE_CHAR[A>>>2]+BASE64_ENCODE_CHAR[63&(A<<4|B>>>4)]+BASE64_ENCODE_CHAR[63&(B<<2|t>>>6)]+BASE64_ENCODE_CHAR[63&t];return A=g[i],e+=BASE64_ENCODE_CHAR[A>>>2]+BASE64_ENCODE_CHAR[A<<4&63]+"=="};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(36),__webpack_require__(8))},function(A,B,t){"use strict";var e,g="object"==typeof Reflect?Reflect:null,i=g&&"function"==typeof g.apply?g.apply:function(A,B,t){return Function.prototype.apply.call(A,B,t)};e=g&&"function"==typeof g.ownKeys?g.ownKeys:Object.getOwnPropertySymbols?function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))}:function(A){return Object.getOwnPropertyNames(A)};var n=Number.isNaN||function(A){return A!=A};function Q(){Q.init.call(this)}A.exports=Q,A.exports.once=function(A,B){return new Promise((function(t,e){function g(t){A.removeListener(B,i),e(t)}function i(){"function"==typeof A.removeListener&&A.removeListener("error",g),t([].slice.call(arguments))}h(A,B,i,{once:!0}),"error"!==B&&function(A,B,t){"function"==typeof A.on&&h(A,"error",B,t)}(A,g,{once:!0})}))},Q.EventEmitter=Q,Q.prototype._events=void 0,Q.prototype._eventsCount=0,Q.prototype._maxListeners=void 0;var s=10;function r(A){if("function"!=typeof A)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}function c(A){return void 0===A._maxListeners?Q.defaultMaxListeners:A._maxListeners}function E(A,B,t,e){var g,i,n,Q;if(r(t),void 0===(i=A._events)?(i=A._events=Object.create(null),A._eventsCount=0):(void 0!==i.newListener&&(A.emit("newListener",B,t.listener?t.listener:t),i=A._events),n=i[B]),void 0===n)n=i[B]=t,++A._eventsCount;else if("function"==typeof n?n=i[B]=e?[t,n]:[n,t]:e?n.unshift(t):n.push(t),(g=c(A))>0&&n.length>g&&!n.warned){n.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+n.length+" "+String(B)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=A,s.type=B,s.count=n.length,Q=s,console&&console.warn&&console.warn(Q)}return A}function o(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(A,B,t){var e={fired:!1,wrapFn:void 0,target:A,type:B,listener:t},g=o.bind(e);return g.listener=t,e.wrapFn=g,g}function C(A,B,t){var e=A._events;if(void 0===e)return[];var g=e[B];return void 0===g?[]:"function"==typeof g?t?[g.listener||g]:[g]:t?function(A){for(var B=new Array(A.length),t=0;t 0&&(n=B[0]),n instanceof Error)throw n;var Q=new Error("Unhandled error."+(n?" ("+n.message+")":""));throw Q.context=n,Q}var s=g[A];if(void 0===s)return!1;if("function"==typeof s)i(s,this,B);else{var r=s.length,c=I(s,r);for(t=0;t =0;i--)if(t[i]===B||t[i].listener===B){n=t[i].listener,g=i;break}if(g<0)return this;0===g?t.shift():function(A,B){for(;B+1 =0;e--)this.removeListener(A,B[e]);return this},Q.prototype.listeners=function(A){return C(this,A,!0)},Q.prototype.rawListeners=function(A){return C(this,A,!1)},Q.listenerCount=function(A,B){return"function"==typeof A.listenerCount?A.listenerCount(B):a.call(A,B)},Q.prototype.listenerCount=a,Q.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},function(A,B,t){(function(B,t,e,g){A.exports=function A(B,t,e){function g(n,Q){if(!t[n]){if(!B[n]){if(i)return i(n,!0);var s=new Error("Cannot find module '"+n+"'");throw s.code="MODULE_NOT_FOUND",s}var r=t[n]={exports:{}};B[n][0].call(r.exports,(function(A){return g(B[n][1][A]||A)}),r,r.exports,A,B,t,e)}return t[n].exports}for(var i=!1,n=0;n >2,Q=(3&B)<<4|t>>4,s=1 >6:64,r=2 >4,t=(15&n)<<4|(Q=i.indexOf(A.charAt(r++)))>>2,e=(3&Q)<<6|(s=i.indexOf(A.charAt(r++))),o[c++]=B,64!==Q&&(o[c++]=t),64!==s&&(o[c++]=e);return o}},{"./support":30,"./utils":32}],2:[function(A,B,t){"use strict";var e=A("./external"),g=A("./stream/DataWorker"),i=A("./stream/Crc32Probe"),n=A("./stream/DataLengthProbe");function Q(A,B,t,e,g){this.compressedSize=A,this.uncompressedSize=B,this.crc32=t,this.compression=e,this.compressedContent=g}Q.prototype={getContentWorker:function(){var A=new g(e.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),B=this;return A.on("end",(function(){if(this.streamInfo.data_length!==B.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),A},getCompressedWorker:function(){return new g(e.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},Q.createWorkerFrom=function(A,B,t){return A.pipe(new i).pipe(new n("uncompressedSize")).pipe(B.compressWorker(t)).pipe(new n("compressedSize")).withStreamInfo("compression",B)},B.exports=Q},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(A,B,t){"use strict";var e=A("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new e("STORE compression")},uncompressWorker:function(){return new e("STORE decompression")}},t.DEFLATE=A("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(A,B,t){"use strict";var e=A("./utils"),g=function(){for(var A,B=[],t=0;t<256;t++){A=t;for(var e=0;e<8;e++)A=1&A?3988292384^A>>>1:A>>>1;B[t]=A}return B}();B.exports=function(A,B){return void 0!==A&&A.length?"string"!==e.getTypeOf(A)?function(A,B,t,e){var i=g,n=0+t;A^=-1;for(var Q=0;Q >>8^i[255&(A^B[Q])];return-1^A}(0|B,A,A.length):function(A,B,t,e){var i=g,n=0+t;A^=-1;for(var Q=0;Q >>8^i[255&(A^B.charCodeAt(Q))];return-1^A}(0|B,A,A.length):0}},{"./utils":32}],5:[function(A,B,t){"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},{}],6:[function(A,B,t){"use strict";var e;e="undefined"!=typeof Promise?Promise:A("lie"),B.exports={Promise:e}},{lie:37}],7:[function(A,B,t){"use strict";var e="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,g=A("pako"),i=A("./utils"),n=A("./stream/GenericWorker"),Q=e?"uint8array":"array";function s(A,B){n.call(this,"FlateWorker/"+A),this._pako=null,this._pakoAction=A,this._pakoOptions=B,this.meta={}}t.magic="\b\0",i.inherits(s,n),s.prototype.processChunk=function(A){this.meta=A.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(Q,A.data),!1)},s.prototype.flush=function(){n.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},s.prototype._createPako=function(){this._pako=new g[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var A=this;this._pako.onData=function(B){A.push({data:B,meta:A.meta})}},t.compressWorker=function(A){return new s("Deflate",A)},t.uncompressWorker=function(){return new s("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(A,B,t){"use strict";function e(A,B){var t,e="";for(t=0;t>>=8;return e}function g(A,B,t,g,n,c){var E,o,w=A.file,C=A.compression,a=c!==Q.utf8encode,I=i.transformTo("string",c(w.name)),h=i.transformTo("string",Q.utf8encode(w.name)),Y=w.comment,M=i.transformTo("string",c(Y)),F=i.transformTo("string",Q.utf8encode(Y)),D=h.length!==w.name.length,u=F.length!==Y.length,l="",d="",U="",N=w.dir,m=w.date,G={crc32:0,compressedSize:0,uncompressedSize:0};B&&!t||(G.crc32=A.crc32,G.compressedSize=A.compressedSize,G.uncompressedSize=A.uncompressedSize);var f=0;B&&(f|=8),a||!D&&!u||(f|=2048);var H=0,p=0;N&&(H|=16),"UNIX"===n?(p=798,H|=function(A,B){var t=A;return A||(t=B?16893:33204),(65535&t)<<16}(w.unixPermissions,N)):(p=20,H|=function(A){return 63&(A||0)}(w.dosPermissions)),E=m.getUTCHours(),E<<=6,E|=m.getUTCMinutes(),E<<=5,E|=m.getUTCSeconds()/2,o=m.getUTCFullYear()-1980,o<<=4,o|=m.getUTCMonth()+1,o<<=5,o|=m.getUTCDate(),D&&(d=e(1,1)+e(s(I),4)+h,l+="up"+e(d.length,2)+d),u&&(U=e(1,1)+e(s(M),4)+F,l+="uc"+e(U.length,2)+U);var R="";return R+="\n\0",R+=e(f,2),R+=C.magic,R+=e(E,2),R+=e(o,2),R+=e(G.crc32,4),R+=e(G.compressedSize,4),R+=e(G.uncompressedSize,4),R+=e(I.length,2),R+=e(l.length,2),{fileRecord:r.LOCAL_FILE_HEADER+R+I+l,dirRecord:r.CENTRAL_FILE_HEADER+e(p,2)+R+e(M.length,2)+"\0\0\0\0"+e(H,4)+e(g,4)+I+l+M}}var i=A("../utils"),n=A("../stream/GenericWorker"),Q=A("../utf8"),s=A("../crc32"),r=A("../signature");function c(A,B,t,e){n.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=B,this.zipPlatform=t,this.encodeFileName=e,this.streamFiles=A,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(c,n),c.prototype.push=function(A){var B=A.meta.percent||0,t=this.entriesCount,e=this._sources.length;this.accumulate?this.contentBuffer.push(A):(this.bytesWritten+=A.data.length,n.prototype.push.call(this,{data:A.data,meta:{currentFile:this.currentFile,percent:t?(B+100*(t-e-1))/t:100}}))},c.prototype.openedSource=function(A){this.currentSourceOffset=this.bytesWritten,this.currentFile=A.file.name;var B=this.streamFiles&&!A.file.dir;if(B){var t=g(A,B,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:t.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(A){this.accumulate=!1;var B=this.streamFiles&&!A.file.dir,t=g(A,B,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(t.dirRecord),B)this.push({data:function(A){return r.DATA_DESCRIPTOR+e(A.crc32,4)+e(A.compressedSize,4)+e(A.uncompressedSize,4)}(A),meta:{percent:100}});else for(this.push({data:t.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var A=this.bytesWritten,B=0;B =this.index;B--)t=(t<<8)+this.byteAt(B);return this.index+=A,t},readString:function(A){return e.transformTo("string",this.readData(A))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var A=this.readInt(4);return new Date(Date.UTC(1980+(A>>25&127),(A>>21&15)-1,A>>16&31,A>>11&31,A>>5&63,(31&A)<<1))}},B.exports=g},{"../utils":32}],19:[function(A,B,t){"use strict";var e=A("./Uint8ArrayReader");function g(A){e.call(this,A)}A("../utils").inherits(g,e),g.prototype.readData=function(A){this.checkOffset(A);var B=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,B},B.exports=g},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(A,B,t){"use strict";var e=A("./DataReader");function g(A){e.call(this,A)}A("../utils").inherits(g,e),g.prototype.byteAt=function(A){return this.data.charCodeAt(this.zero+A)},g.prototype.lastIndexOfSignature=function(A){return this.data.lastIndexOf(A)-this.zero},g.prototype.readAndCheckSignature=function(A){return A===this.readData(4)},g.prototype.readData=function(A){this.checkOffset(A);var B=this.data.slice(this.zero+this.index,this.zero+this.index+A);return this.index+=A,B},B.exports=g},{"../utils":32,"./DataReader":18}],21:[function(A,B,t){"use strict";var e=A("./ArrayReader");function g(A){e.call(this,A)}A("../utils").inherits(g,e),g.prototype.readData=function(A){if(this.checkOffset(A),0===A)return new Uint8Array(0);var B=this.data.subarray(this.zero+this.index,this.zero+this.index+A);return this.index+=A,B},B.exports=g},{"../utils":32,"./ArrayReader":17}],22:[function(A,B,t){"use strict";var e=A("../utils"),g=A("../support"),i=A("./ArrayReader"),n=A("./StringReader"),Q=A("./NodeBufferReader"),s=A("./Uint8ArrayReader");B.exports=function(A){var B=e.getTypeOf(A);return e.checkSupport(B),"string"!==B||g.uint8array?"nodebuffer"===B?new Q(A):g.uint8array?new s(e.transformTo("uint8array",A)):new i(e.transformTo("array",A)):new n(A)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(A,B,t){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},{}],24:[function(A,B,t){"use strict";var e=A("./GenericWorker"),g=A("../utils");function i(A){e.call(this,"ConvertWorker to "+A),this.destType=A}g.inherits(i,e),i.prototype.processChunk=function(A){this.push({data:g.transformTo(this.destType,A.data),meta:A.meta})},B.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(A,B,t){"use strict";var e=A("./GenericWorker"),g=A("../crc32");function i(){e.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}A("../utils").inherits(i,e),i.prototype.processChunk=function(A){this.streamInfo.crc32=g(A.data,this.streamInfo.crc32||0),this.push(A)},B.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(A,B,t){"use strict";var e=A("../utils"),g=A("./GenericWorker");function i(A){g.call(this,"DataLengthProbe for "+A),this.propName=A,this.withStreamInfo(A,0)}e.inherits(i,g),i.prototype.processChunk=function(A){if(A){var B=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=B+A.data.length}g.prototype.processChunk.call(this,A)},B.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(A,B,t){"use strict";var e=A("../utils"),g=A("./GenericWorker");function i(A){g.call(this,"DataWorker");var B=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,A.then((function(A){B.dataIsReady=!0,B.data=A,B.max=A&&A.length||0,B.type=e.getTypeOf(A),B.isPaused||B._tickAndRepeat()}),(function(A){B.error(A)}))}e.inherits(i,g),i.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,e.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(e.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var A=null,B=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":A=this.data.substring(this.index,B);break;case"uint8array":A=this.data.subarray(this.index,B);break;case"array":case"nodebuffer":A=this.data.slice(this.index,B)}return this.index=B,this.push({data:A,meta:{percent:this.max?this.index/this.max*100:0}})},B.exports=i},{"../utils":32,"./GenericWorker":28}],28:[function(A,B,t){"use strict";function e(A){this.name=A||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}e.prototype={push:function(A){this.emit("data",A)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(A){this.emit("error",A)}return!0},error:function(A){return!this.isFinished&&(this.isPaused?this.generatedError=A:(this.isFinished=!0,this.emit("error",A),this.previous&&this.previous.error(A),this.cleanUp()),!0)},on:function(A,B){return this._listeners[A].push(B),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(A,B){if(this._listeners[A])for(var t=0;t "+A:A}},B.exports=e},{}],29:[function(A,t,e){"use strict";var g=A("../utils"),i=A("./ConvertWorker"),n=A("./GenericWorker"),Q=A("../base64"),s=A("../support"),r=A("../external"),c=null;if(s.nodestream)try{c=A("../nodejs/NodejsStreamOutputAdapter")}catch(A){}function E(A,B,t){var e=B;switch(B){case"blob":case"arraybuffer":e="uint8array";break;case"base64":e="string"}try{this._internalType=e,this._outputType=B,this._mimeType=t,g.checkSupport(e),this._worker=A.pipe(new i(e)),A.lock()}catch(A){this._worker=new n("error"),this._worker.error(A)}}E.prototype={accumulate:function(A){return function(A,t){return new r.Promise((function(e,i){var n=[],s=A._internalType,r=A._outputType,c=A._mimeType;A.on("data",(function(A,B){n.push(A),t&&t(B)})).on("error",(function(A){n=[],i(A)})).on("end",(function(){try{var A=function(A,B,t){switch(A){case"blob":return g.newBlob(g.transformTo("arraybuffer",B),t);case"base64":return Q.encode(B);default:return g.transformTo(A,B)}}(r,function(A,t){var e,g=0,i=null,n=0;for(e=0;e >>6:(t<65536?B[n++]=224|t>>>12:(B[n++]=240|t>>>18,B[n++]=128|t>>>12&63),B[n++]=128|t>>>6&63),B[n++]=128|63&t);return B}(A)},t.utf8decode=function(A){return g.nodebuffer?e.transformTo("nodebuffer",A).toString("utf-8"):function(A){var B,t,g,i,n=A.length,s=new Array(2*n);for(B=t=0;B >10&1023,s[t++]=56320|1023&g)}return s.length!==t&&(s.subarray?s=s.subarray(0,t):s.length=t),e.applyFromCharCode(s)}(A=e.transformTo(g.uint8array?"uint8array":"array",A))},e.inherits(r,n),r.prototype.processChunk=function(A){var B=e.transformTo(g.uint8array?"uint8array":"array",A.data);if(this.leftOver&&this.leftOver.length){if(g.uint8array){var i=B;(B=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),B.set(i,this.leftOver.length)}else B=this.leftOver.concat(B);this.leftOver=null}var n=function(A,B){var t;for((B=B||A.length)>A.length&&(B=A.length),t=B-1;0<=t&&128==(192&A[t]);)t--;return t<0||0===t?B:t+Q[A[t]]>B?t:B}(B),s=B;n!==B.length&&(g.uint8array?(s=B.subarray(0,n),this.leftOver=B.subarray(n,B.length)):(s=B.slice(0,n),this.leftOver=B.slice(n,B.length))),this.push({data:t.utf8decode(s),meta:A.meta})},r.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=r,e.inherits(c,n),c.prototype.processChunk=function(A){this.push({data:t.utf8encode(A.data),meta:A.meta})},t.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(A,B,e){"use strict";var g=A("./support"),i=A("./base64"),n=A("./nodejsUtils"),Q=A("./external");function s(A){return A}function r(A,B){for(var t=0;t >8;this.dir=!!(16&this.externalFileAttributes),0==A&&(this.dosPermissions=63&this.externalFileAttributes),3==A&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var A=e(this.extraFields[1].value);this.uncompressedSize===g.MAX_VALUE_32BITS&&(this.uncompressedSize=A.readInt(8)),this.compressedSize===g.MAX_VALUE_32BITS&&(this.compressedSize=A.readInt(8)),this.localHeaderOffset===g.MAX_VALUE_32BITS&&(this.localHeaderOffset=A.readInt(8)),this.diskNumberStart===g.MAX_VALUE_32BITS&&(this.diskNumberStart=A.readInt(4))}},readExtraFields:function(A){var B,t,e,g=A.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});A.index+4 >>6:(t<65536?B[n++]=224|t>>>12:(B[n++]=240|t>>>18,B[n++]=128|t>>>12&63),B[n++]=128|t>>>6&63),B[n++]=128|63&t);return B},t.buf2binstring=function(A){return s(A,A.length)},t.binstring2buf=function(A){for(var B=new e.Buf8(A.length),t=0,g=B.length;t >10&1023,r[e++]=56320|1023&g)}return s(r,e)},t.utf8border=function(A,B){var t;for((B=B||A.length)>A.length&&(B=A.length),t=B-1;0<=t&&128==(192&A[t]);)t--;return t<0||0===t?B:t+n[A[t]]>B?t:B}},{"./common":41}],43:[function(A,B,t){"use strict";B.exports=function(A,B,t,e){for(var g=65535&A|0,i=A>>>16&65535|0,n=0;0!==t;){for(t-=n=2e3 >>1:A>>>1;B[t]=A}return B}();B.exports=function(A,B,t,g){var i=e,n=g+t;A^=-1;for(var Q=g;Q >>8^i[255&(A^B[Q])];return-1^A}},{}],46:[function(A,B,t){"use strict";var e,g=A("../utils/common"),i=A("./trees"),n=A("./adler32"),Q=A("./crc32"),s=A("./messages"),r=-2,c=258,E=262,o=113;function w(A,B){return A.msg=s[B],B}function C(A){return(A<<1)-(4A.avail_out&&(t=A.avail_out),0!==t&&(g.arraySet(A.output,B.pending_buf,B.pending_out,t,A.next_out),A.next_out+=t,B.pending_out+=t,A.total_out+=t,A.avail_out-=t,B.pending-=t,0===B.pending&&(B.pending_out=0))}function h(A,B){i._tr_flush_block(A,0<=A.block_start?A.block_start:-1,A.strstart-A.block_start,B),A.block_start=A.strstart,I(A.strm)}function Y(A,B){A.pending_buf[A.pending++]=B}function M(A,B){A.pending_buf[A.pending++]=B>>>8&255,A.pending_buf[A.pending++]=255&B}function F(A,B){var t,e,g=A.max_chain_length,i=A.strstart,n=A.prev_length,Q=A.nice_match,s=A.strstart>A.w_size-E?A.strstart-(A.w_size-E):0,r=A.window,o=A.w_mask,w=A.prev,C=A.strstart+c,a=r[i+n-1],I=r[i+n];A.prev_length>=A.good_match&&(g>>=2),Q>A.lookahead&&(Q=A.lookahead);do{if(r[(t=B)+n]===I&&r[t+n-1]===a&&r[t]===r[i]&&r[++t]===r[i+1]){i+=2,t++;do{}while(r[++i]===r[++t]&&r[++i]===r[++t]&&r[++i]===r[++t]&&r[++i]===r[++t]&&r[++i]===r[++t]&&r[++i]===r[++t]&&r[++i]===r[++t]&&r[++i]===r[++t]&&i s&&0!=--g);return n<=A.lookahead?n:A.lookahead}function D(A){var B,t,e,i,s,r,c,o,w,C,a=A.w_size;do{if(i=A.window_size-A.lookahead-A.strstart,A.strstart>=a+(a-E)){for(g.arraySet(A.window,A.window,a,a,0),A.match_start-=a,A.strstart-=a,A.block_start-=a,B=t=A.hash_size;e=A.head[--B],A.head[B]=a<=e?e-a:0,--t;);for(B=t=a;e=A.prev[--B],A.prev[B]=a<=e?e-a:0,--t;);i+=a}if(0===A.strm.avail_in)break;if(r=A.strm,c=A.window,o=A.strstart+A.lookahead,C=void 0,(w=i)<(C=r.avail_in)&&(C=w),t=0===C?0:(r.avail_in-=C,g.arraySet(c,r.input,r.next_in,C,o),1===r.state.wrap?r.adler=n(r.adler,c,C,o):2===r.state.wrap&&(r.adler=Q(r.adler,c,C,o)),r.next_in+=C,r.total_in+=C,C),A.lookahead+=t,A.lookahead+A.insert>=3)for(s=A.strstart-A.insert,A.ins_h=A.window[s],A.ins_h=(A.ins_h< =3&&(A.ins_h=(A.ins_h< =3)if(e=i._tr_tally(A,A.strstart-A.match_start,A.match_length-3),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=3){for(A.match_length--;A.strstart++,A.ins_h=(A.ins_h< =3&&(A.ins_h=(A.ins_h< =3&&A.match_length<=A.prev_length){for(g=A.strstart+A.lookahead-3,e=i._tr_tally(A,A.strstart-1-A.prev_match,A.prev_length-3),A.lookahead-=A.prev_length-1,A.prev_length-=2;++A.strstart<=g&&(A.ins_h=(A.ins_h< A.pending_buf_size-5&&(t=A.pending_buf_size-5);;){if(A.lookahead<=1){if(D(A),0===A.lookahead&&0===B)return 1;if(0===A.lookahead)break}A.strstart+=A.lookahead,A.lookahead=0;var e=A.block_start+t;if((0===A.strstart||A.strstart>=e)&&(A.lookahead=A.strstart-e,A.strstart=e,h(A,!1),0===A.strm.avail_out))return 1;if(A.strstart-A.block_start>=A.w_size-E&&(h(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,4===B?(h(A,!0),0===A.strm.avail_out?3:4):(A.strstart>A.block_start&&(h(A,!1),A.strm.avail_out),1)})),new d(4,4,8,4,u),new d(4,5,16,8,u),new d(4,6,32,32,u),new d(4,4,16,16,l),new d(8,16,32,32,l),new d(8,16,128,128,l),new d(8,32,128,256,l),new d(32,128,258,1024,l),new d(32,258,258,4096,l)],t.deflateInit=function(A,B){return G(A,B,8,15,8,0)},t.deflateInit2=G,t.deflateReset=m,t.deflateResetKeep=N,t.deflateSetHeader=function(A,B){return A&&A.state?2!==A.state.wrap?r:(A.state.gzhead=B,0):r},t.deflate=function(A,B){var t,g,n,s;if(!A||!A.state||5>8&255),Y(g,g.gzhead.time>>16&255),Y(g,g.gzhead.time>>24&255),Y(g,9===g.level?2:2<=g.strategy||g.level<2?4:0),Y(g,255&g.gzhead.os),g.gzhead.extra&&g.gzhead.extra.length&&(Y(g,255&g.gzhead.extra.length),Y(g,g.gzhead.extra.length>>8&255)),g.gzhead.hcrc&&(A.adler=Q(A.adler,g.pending_buf,g.pending,0)),g.gzindex=0,g.status=69):(Y(g,0),Y(g,0),Y(g,0),Y(g,0),Y(g,0),Y(g,9===g.level?2:2<=g.strategy||g.level<2?4:0),Y(g,3),g.status=o);else{var E=8+(g.w_bits-8<<4)<<8;E|=(2<=g.strategy||g.level<2?0:g.level<6?1:6===g.level?2:3)<<6,0!==g.strstart&&(E|=32),E+=31-E%31,g.status=o,M(g,E),0!==g.strstart&&(M(g,A.adler>>>16),M(g,65535&A.adler)),A.adler=1}if(69===g.status)if(g.gzhead.extra){for(n=g.pending;g.gzindex<(65535&g.gzhead.extra.length)&&(g.pending!==g.pending_buf_size||(g.gzhead.hcrc&&g.pending>n&&(A.adler=Q(A.adler,g.pending_buf,g.pending-n,n)),I(A),n=g.pending,g.pending!==g.pending_buf_size));)Y(g,255&g.gzhead.extra[g.gzindex]),g.gzindex++;g.gzhead.hcrc&&g.pending>n&&(A.adler=Q(A.adler,g.pending_buf,g.pending-n,n)),g.gzindex===g.gzhead.extra.length&&(g.gzindex=0,g.status=73)}else g.status=73;if(73===g.status)if(g.gzhead.name){n=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>n&&(A.adler=Q(A.adler,g.pending_buf,g.pending-n,n)),I(A),n=g.pending,g.pending===g.pending_buf_size)){s=1;break}s=g.gzindex n&&(A.adler=Q(A.adler,g.pending_buf,g.pending-n,n)),0===s&&(g.gzindex=0,g.status=91)}else g.status=91;if(91===g.status)if(g.gzhead.comment){n=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>n&&(A.adler=Q(A.adler,g.pending_buf,g.pending-n,n)),I(A),n=g.pending,g.pending===g.pending_buf_size)){s=1;break}s=g.gzindex n&&(A.adler=Q(A.adler,g.pending_buf,g.pending-n,n)),0===s&&(g.status=103)}else g.status=103;if(103===g.status&&(g.gzhead.hcrc?(g.pending+2>g.pending_buf_size&&I(A),g.pending+2<=g.pending_buf_size&&(Y(g,255&A.adler),Y(g,A.adler>>8&255),A.adler=0,g.status=o)):g.status=o),0!==g.pending){if(I(A),0===A.avail_out)return g.last_flush=-1,0}else if(0===A.avail_in&&C(B)<=C(t)&&4!==B)return w(A,-5);if(666===g.status&&0!==A.avail_in)return w(A,-5);if(0!==A.avail_in||0!==g.lookahead||0!==B&&666!==g.status){var F=2===g.strategy?function(A,B){for(var t;;){if(0===A.lookahead&&(D(A),0===A.lookahead)){if(0===B)return 1;break}if(A.match_length=0,t=i._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++,t&&(h(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,4===B?(h(A,!0),0===A.strm.avail_out?3:4):A.last_lit&&(h(A,!1),0===A.strm.avail_out)?1:2}(g,B):3===g.strategy?function(A,B){for(var t,e,g,n,Q=A.window;;){if(A.lookahead<=c){if(D(A),A.lookahead<=c&&0===B)return 1;if(0===A.lookahead)break}if(A.match_length=0,A.lookahead>=3&&0 A.lookahead&&(A.match_length=A.lookahead)}if(A.match_length>=3?(t=i._tr_tally(A,1,A.match_length-3),A.lookahead-=A.match_length,A.strstart+=A.match_length,A.match_length=0):(t=i._tr_tally(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++),t&&(h(A,!1),0===A.strm.avail_out))return 1}return A.insert=0,4===B?(h(A,!0),0===A.strm.avail_out?3:4):A.last_lit&&(h(A,!1),0===A.strm.avail_out)?1:2}(g,B):e[g.level].func(g,B);if(3!==F&&4!==F||(g.status=666),1===F||3===F)return 0===A.avail_out&&(g.last_flush=-1),0;if(2===F&&(1===B?i._tr_align(g):5!==B&&(i._tr_stored_block(g,0,0,!1),3===B&&(a(g.head),0===g.lookahead&&(g.strstart=0,g.block_start=0,g.insert=0))),I(A),0===A.avail_out))return g.last_flush=-1,0}return 4!==B?0:g.wrap<=0?1:(2===g.wrap?(Y(g,255&A.adler),Y(g,A.adler>>8&255),Y(g,A.adler>>16&255),Y(g,A.adler>>24&255),Y(g,255&A.total_in),Y(g,A.total_in>>8&255),Y(g,A.total_in>>16&255),Y(g,A.total_in>>24&255)):(M(g,A.adler>>>16),M(g,65535&A.adler)),I(A),0 =t.w_size&&(0===Q&&(a(t.head),t.strstart=0,t.block_start=0,t.insert=0),o=new g.Buf8(t.w_size),g.arraySet(o,B,w-t.w_size,t.w_size,0),B=o,w=t.w_size),s=A.avail_in,c=A.next_in,E=A.input,A.avail_in=w,A.next_in=0,A.input=B,D(t);t.lookahead>=3;){for(e=t.strstart,i=t.lookahead-2;t.ins_h=(t.ins_h< >>=F=M>>>24,C-=F,0==(F=M>>>16&255))N[i++]=65535&M;else{if(!(16&F)){if(0==(64&F)){M=a[(65535&M)+(w&(1< >>=F,C-=F),C<15&&(w+=U[e++]< >>=F=M>>>24,C-=F,!(16&(F=M>>>16&255))){if(0==(64&F)){M=I[(65535&M)+(w&(1< >>=F,C-=F,(F=i-n)>3,w&=(1<<(C-=D<<3))-1,A.next_in=e,A.next_out=i,A.avail_in=e >>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function E(A){var B;return A&&A.state?(B=A.state,A.total_in=A.total_out=B.total=0,A.msg="",B.wrap&&(A.adler=1&B.wrap),B.mode=1,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new e.Buf32(852),B.distcode=B.distdyn=new e.Buf32(592),B.sane=1,B.back=-1,0):s}function o(A){var B;return A&&A.state?((B=A.state).wsize=0,B.whave=0,B.wnext=0,E(A)):s}function w(A,B){var t,e;return A&&A.state?(e=A.state,B<0?(t=0,B=-B):(t=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15=n.wsize?(e.arraySet(n.window,B,t-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(g<(i=n.wsize-n.wnext)&&(i=g),e.arraySet(n.window,B,t-g,i,n.wnext),(g-=i)?(e.arraySet(n.window,B,t-g,g,0),n.wnext=g,n.whave=n.wsize):(n.wnext+=i,n.wnext===n.wsize&&(n.wnext=0),n.whave >>8&255,t.check=i(t.check,T,2,0),h=I=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&I)<<8)+(I>>8))%31){A.msg="incorrect header check",t.mode=30;break}if(8!=(15&I)){A.msg="unknown compression method",t.mode=30;break}if(h-=4,p=8+(15&(I>>>=4)),0===t.wbits)t.wbits=p;else if(p>t.wbits){A.msg="invalid window size",t.mode=30;break}t.dmax=1< >8&1),512&t.flags&&(T[0]=255&I,T[1]=I>>>8&255,t.check=i(t.check,T,2,0)),h=I=0,t.mode=3;case 3:for(;h<32;){if(0===C)break A;C--,I+=c[o++]<
>>8&255,T[2]=I>>>16&255,T[3]=I>>>24&255,t.check=i(t.check,T,4,0)),h=I=0,t.mode=4;case 4:for(;h<16;){if(0===C)break A;C--,I+=c[o++]< >8),512&t.flags&&(T[0]=255&I,T[1]=I>>>8&255,t.check=i(t.check,T,2,0)),h=I=0,t.mode=5;case 5:if(1024&t.flags){for(;h<16;){if(0===C)break A;C--,I+=c[o++]< >>8&255,t.check=i(t.check,T,2,0)),h=I=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&(C<(u=t.length)&&(u=C),u&&(t.head&&(p=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),e.arraySet(t.head.extra,c,o,u,p)),512&t.flags&&(t.check=i(t.check,c,u,o)),C-=u,o+=u,t.length-=u),t.length))break A;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===C)break A;for(u=0;p=c[o+u++],t.head&&p&&t.length<65536&&(t.head.name+=String.fromCharCode(p)),p&&u >9&1,t.head.done=!0),A.adler=t.check=0,t.mode=12;break;case 10:for(;h<32;){if(0===C)break A;C--,I+=c[o++]< >>=7&h,h-=7&h,t.mode=27;break}for(;h<3;){if(0===C)break A;C--,I+=c[o++]< >>=1)){case 0:t.mode=14;break;case 1:if(Y(t),t.mode=20,6!==B)break;I>>>=2,h-=2;break A;case 2:t.mode=17;break;case 3:A.msg="invalid block type",t.mode=30}I>>>=2,h-=2;break;case 14:for(I>>>=7&h,h-=7&h;h<32;){if(0===C)break A;C--,I+=c[o++]< >>16^65535)){A.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&I,h=I=0,t.mode=15,6===B)break A;case 15:t.mode=16;case 16:if(u=t.length){if(C>>=5,h-=5,t.ndist=1+(31&I),I>>>=5,h-=5,t.ncode=4+(15&I),I>>>=4,h-=4,286 >>=3,h-=3}for(;t.have<19;)t.lens[j[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,y={bits:t.lenbits},R=Q(0,t.lens,0,19,t.lencode,0,t.work,y),t.lenbits=y.bits,R){A.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have >>16&255,m=65535&k,!((U=k>>>24)<=h);){if(0===C)break A;C--,I+=c[o++]< >>=U,h-=U,t.lens[t.have++]=m;else{if(16===m){for(J=U+2;h >>=U,h-=U,0===t.have){A.msg="invalid bit length repeat",t.mode=30;break}p=t.lens[t.have-1],u=3+(3&I),I>>>=2,h-=2}else if(17===m){for(J=U+3;h >>=U)),I>>>=3,h-=3}else{for(J=U+7;h >>=U)),I>>>=7,h-=7}if(t.have+u>t.nlen+t.ndist){A.msg="invalid bit length repeat",t.mode=30;break}for(;u--;)t.lens[t.have++]=p}}if(30===t.mode)break;if(0===t.lens[256]){A.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,y={bits:t.lenbits},R=Q(1,t.lens,0,t.nlen,t.lencode,0,t.work,y),t.lenbits=y.bits,R){A.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,y={bits:t.distbits},R=Q(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,y),t.distbits=y.bits,R){A.msg="invalid distances set",t.mode=30;break}if(t.mode=20,6===B)break A;case 20:t.mode=21;case 21:if(6<=C&&258<=a){A.next_out=w,A.avail_out=a,A.next_in=o,A.avail_in=C,t.hold=I,t.bits=h,n(A,D),w=A.next_out,E=A.output,a=A.avail_out,o=A.next_in,c=A.input,C=A.avail_in,I=t.hold,h=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;N=(k=t.lencode[I&(1< >>16&255,m=65535&k,!((U=k>>>24)<=h);){if(0===C)break A;C--,I+=c[o++]< >G)])>>>16&255,m=65535&k,!(G+(U=k>>>24)<=h);){if(0===C)break A;C--,I+=c[o++]< >>=G,h-=G,t.back+=G}if(I>>>=U,h-=U,t.back+=U,t.length=m,0===N){t.mode=26;break}if(32&N){t.back=-1,t.mode=12;break}if(64&N){A.msg="invalid literal/length code",t.mode=30;break}t.extra=15&N,t.mode=22;case 22:if(t.extra){for(J=t.extra;h >>=t.extra,h-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;N=(k=t.distcode[I&(1< >>16&255,m=65535&k,!((U=k>>>24)<=h);){if(0===C)break A;C--,I+=c[o++]< >G)])>>>16&255,m=65535&k,!(G+(U=k>>>24)<=h);){if(0===C)break A;C--,I+=c[o++]< >>=G,h-=G,t.back+=G}if(I>>>=U,h-=U,t.back+=U,64&N){A.msg="invalid distance code",t.mode=30;break}t.offset=m,t.extra=15&N,t.mode=24;case 24:if(t.extra){for(J=t.extra;h >>=t.extra,h-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){A.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===a)break A;if(u=D-a,t.offset>u){if((u=t.offset-u)>t.whave&&t.sane){A.msg="invalid distance too far back",t.mode=30;break}l=u>t.wnext?(u-=t.wnext,t.wsize-u):t.wnext-u,u>t.length&&(u=t.length),d=t.window}else d=E,l=w-t.offset,u=t.length;for(aY?(F=j[x+E[d]],y[J+E[d]]):(F=96,0),w=1< >f)+(C-=w)]=M<<24|F<<16|D|0,0!==C;);for(w=1< >=1;if(0!==w?(R&=w-1,R+=w):R=0,d++,0==--k[l]){if(l===N)break;l=B[t+E[d]]}if(m >>7)]}function U(A,B){A.pending_buf[A.pending++]=255&B,A.pending_buf[A.pending++]=B>>>8&255}function N(A,B,t){A.bi_valid>16-t?(A.bi_buf|=B< >16-A.bi_valid,A.bi_valid+=t-16):(A.bi_buf|=B< >>=1,t<<=1,0<--B;);return t>>>1}function f(A,B,t){var e,g,i=new Array(16),n=0;for(e=1;e<=s;e++)i[e]=n=n+t[e-1]<<1;for(g=0;g<=B;g++){var Q=A[2*g+1];0!==Q&&(A[2*g]=G(i[Q]++,Q))}}function H(A){var B;for(B=0;B >1;1<=t;t--)y(A,i,t);for(g=r;t=A.heap[1],A.heap[1]=A.heap[A.heap_len--],y(A,i,1),e=A.heap[1],A.heap[--A.heap_max]=t,A.heap[--A.heap_max]=e,i[2*g]=i[2*t]+i[2*e],A.depth[g]=(A.depth[t]>=A.depth[e]?A.depth[t]:A.depth[e])+1,i[2*t+1]=i[2*e+1]=g,A.heap[1]=g++,y(A,i,1),2<=A.heap_len;);A.heap[--A.heap_max]=A.heap[1],function(A,B){var t,e,g,i,n,Q,r=B.dyn_tree,c=B.max_code,E=B.stat_desc.static_tree,o=B.stat_desc.has_stree,w=B.stat_desc.extra_bits,C=B.stat_desc.extra_base,a=B.stat_desc.max_length,I=0;for(i=0;i<=s;i++)A.bl_count[i]=0;for(r[2*A.heap[A.heap_max]+1]=0,t=A.heap_max+1;t<573;t++)a<(i=r[2*r[2*(e=A.heap[t])+1]+1]+1)&&(i=a,I++),r[2*e+1]=i,c >=7;e >>=1)if(1&t&&0!==A.dyn_ltree[2*B])return 0;if(0!==A.dyn_ltree[18]||0!==A.dyn_ltree[20]||0!==A.dyn_ltree[26])return 1;for(B=32;B>>3,(n=A.static_len+3+7>>>3)<=g&&(g=n)):g=n=t+5,t+4<=g&&-1!==B?S(A,B,t,e):4===A.strategy||n===g?(N(A,2+(e?1:0),3),J(A,w,C)):(N(A,4+(e?1:0),3),function(A,B,t,e){var g;for(N(A,B-257,5),N(A,t-1,5),N(A,e-4,4),g=0;g>>8&255,A.pending_buf[A.d_buf+2*A.last_lit+1]=255&B,A.pending_buf[A.l_buf+A.last_lit]=255&t,A.last_lit++,0===B?A.dyn_ltree[2*t]++:(A.matches++,B--,A.dyn_ltree[2*(I[t]+i+1)]++,A.dyn_dtree[2*d(B)]++),A.last_lit===A.lit_bufsize-1},t._tr_align=function(A){N(A,2,3),m(A,256,w),function(A){16===A.bi_valid?(U(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):8<=A.bi_valid&&(A.pending_buf[A.pending++]=255&A.bi_buf,A.bi_buf>>=8,A.bi_valid-=8)}(A)}},{"../utils/common":41}],53:[function(A,B,t){"use strict";B.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(A,B,t){(function(A){!function(A,B){"use strict";if(!A.setImmediate){var t,e,i,n,Q=1,s={},r=!1,c=A.document,E=Object.getPrototypeOf&&Object.getPrototypeOf(A);E=E&&E.setTimeout?E:A,t="[object process]"==={}.toString.call(A.process)?function(A){g.nextTick((function(){w(A)}))}:function(){if(A.postMessage&&!A.importScripts){var B=!0,t=A.onmessage;return A.onmessage=function(){B=!1},A.postMessage("","*"),A.onmessage=t,B}}()?(n="setImmediate$"+Math.random()+"$",A.addEventListener?A.addEventListener("message",C,!1):A.attachEvent("onmessage",C),function(B){A.postMessage(n+B,"*")}):A.MessageChannel?((i=new MessageChannel).port1.onmessage=function(A){w(A.data)},function(A){i.port2.postMessage(A)}):c&&"onreadystatechange"in c.createElement("script")?(e=c.documentElement,function(A){var B=c.createElement("script");B.onreadystatechange=function(){w(A),B.onreadystatechange=null,e.removeChild(B),B=null},e.appendChild(B)}):function(A){setTimeout(w,0,A)},E.setImmediate=function(A){"function"!=typeof A&&(A=new Function(""+A));for(var B=new Array(arguments.length-1),e=0;e >24&255;return{r:A>>16&255,g:A>>8&255,b:255&A,a:B>0?B:255}}static hexToRgb(A){A.startsWith("#")&&(A=A.substring(1));const B=parseInt(A,16);if(isNaN(B))return null;if(6===A.length)return{r:B>>16&255,g:B>>8&255,b:255&B};if(3===A.length){const A=B>>8&15,t=B>>4&15,e=15&B;return{r:A<<4|A,g:t<<4|t,b:e<<4|e}}return null}static rgbToHex(A){return t.decimalToHex(t.rgbToDecimal(A))}static rgbToDecimal(A){return(A.r<<16)+(A.g<<8)+A.b}static hexToDecimal(A){return t.rgbToDecimal(t.hexToRgb(A))}static hsvToRgb(A){let B=A.h%360;B<0&&(B+=360);const t=Math.max(0,Math.min(A.s,1)),e=Math.max(0,Math.min(A.v,1)),g=Math.floor(B/60),i=B/60-g,n=e*(1-t),Q=e*(1-t*i),s=e*(1-t*(1-i));let r,c,E;switch(g){default:case 0:r=e,c=s,E=n;break;case 1:r=Q,c=e,E=n;break;case 2:r=n,c=e,E=s;break;case 3:r=n,c=Q,E=e;break;case 4:r=s,c=n,E=e;break;case 5:r=e,c=n,E=Q}return{r:Math.floor(255*r),g:Math.floor(255*c),b:Math.floor(255*E)}}static rgbToHsv(A){const B=A.r/255,t=A.g/255,e=A.b/255,g=Math.min(Math.min(B,t),e),i=Math.max(Math.max(B,t),e);let n=0,Q=0;if(g!==i){n=60*((B===g?3:t===g?5:1)-(B===g?t-e:t===g?e-B:B-t)/(i-g))%360,Q=(i-g)/i}return{h:n,s:Q,v:i}}static mixRgb(A,B,t){if(t<=0)return A;if(t>=1)return B;const e=1-t;return{r:e*A.r+t*B.r,g:e*A.g+t*B.g,b:e*A.b+t*B.b}}}A.exports=t},function(A,B,t){A.exports=function(){"use strict";var A=Array.prototype.slice;function B(A,B){B&&(A.prototype=Object.create(B.prototype)),A.prototype.constructor=A}function t(A){return n(A)?A:L(A)}function e(A){return Q(A)?A:P(A)}function g(A){return s(A)?A:v(A)}function i(A){return n(A)&&!r(A)?A:W(A)}function n(A){return!(!A||!A[E])}function Q(A){return!(!A||!A[o])}function s(A){return!(!A||!A[w])}function r(A){return Q(A)||s(A)}function c(A){return!(!A||!A[C])}B(e,t),B(g,t),B(i,t),t.isIterable=n,t.isKeyed=Q,t.isIndexed=s,t.isAssociative=r,t.isOrdered=c,t.Keyed=e,t.Indexed=g,t.Set=i;var E="@@__IMMUTABLE_ITERABLE__@@",o="@@__IMMUTABLE_KEYED__@@",w="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",a={},I={value:!1},h={value:!1};function Y(A){return A.value=!1,A}function M(A){A&&(A.value=!0)}function F(){}function D(A,B){B=B||0;for(var t=Math.max(0,A.length-B),e=new Array(t),g=0;g >>0;if(""+t!==B||4294967295===t)return NaN;B=t}return B<0?u(A)+B:B}function d(){return!0}function U(A,B,t){return(0===A||void 0!==t&&A<=-t)&&(void 0===B||void 0!==t&&B>=t)}function N(A,B){return G(A,B,0)}function m(A,B){return G(A,B,B)}function G(A,B,t){return void 0===A?t:A<0?Math.max(0,B+A):void 0===B?A:Math.min(B,A)}var f,H,p,R="function"==typeof Symbol&&Symbol.iterator,y=R||"@@iterator";function J(A){this.next=A}function k(A,B,t,e){var g=0===A?B:1===A?t:[B,t];return e?e.value=g:e={value:g,done:!1},e}function T(){return{value:void 0,done:!0}}function j(A){return!!b(A)}function x(A){return A&&"function"==typeof A.next}function S(A){var B=b(A);return B&&B.call(A)}function b(A){var B=A&&(R&&A[R]||A["@@iterator"]);if("function"==typeof B)return B}function z(A){return A&&"number"==typeof A.length}function L(A){return null==A?_():n(A)?A.toSeq():function(A){var B=AA(A)||"object"==typeof A&&new K(A);if(!B)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+A);return B}(A)}function P(A){return null==A?_().toKeyedSeq():n(A)?Q(A)?A.toSeq():A.fromEntrySeq():q(A)}function v(A){return null==A?_():n(A)?Q(A)?A.entrySeq():A.toIndexedSeq():$(A)}function W(A){return(null==A?_():n(A)?Q(A)?A.entrySeq():A:$(A)).toSetSeq()}function V(A){this._array=A,this.size=A.length}function K(A){var B=Object.keys(A);this._object=A,this._keys=B,this.size=B.length}function O(A){this._iterable=A,this.size=A.length||A.size}function X(A){this._iterator=A,this._iteratorCache=[]}function Z(A){return!(!A||!A["@@__IMMUTABLE_SEQ__@@"])}function _(){return f||(f=new V([]))}function q(A){var B=Array.isArray(A)?new V(A).fromEntrySeq():x(A)?new X(A).fromEntrySeq():j(A)?new O(A).fromEntrySeq():"object"==typeof A?new K(A):void 0;if(!B)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+A);return B}function $(A){var B=AA(A);if(!B)throw new TypeError("Expected Array or iterable object of values: "+A);return B}function AA(A){return z(A)?new V(A):x(A)?new X(A):j(A)?new O(A):void 0}function BA(A,B,t,e){var g=A._cache;if(g){for(var i=g.length-1,n=0;n<=i;n++){var Q=g[t?i-n:n];if(!1===B(Q[1],e?Q[0]:n,A))return n+1}return n}return A.__iterateUncached(B,t)}function tA(A,B,t,e){var g=A._cache;if(g){var i=g.length-1,n=0;return new J((function(){var A=g[t?i-n:n];return n++>i?{value:void 0,done:!0}:k(B,e?A[0]:n-1,A[1])}))}return A.__iteratorUncached(B,t)}function eA(A,B){return B?function A(B,t,e,g){return Array.isArray(t)?B.call(g,e,v(t).map((function(e,g){return A(B,e,g,t)}))):iA(t)?B.call(g,e,P(t).map((function(e,g){return A(B,e,g,t)}))):t}(B,A,"",{"":A}):gA(A)}function gA(A){return Array.isArray(A)?v(A).map(gA).toList():iA(A)?P(A).map(gA).toMap():A}function iA(A){return A&&(A.constructor===Object||void 0===A.constructor)}function nA(A,B){if(A===B||A!=A&&B!=B)return!0;if(!A||!B)return!1;if("function"==typeof A.valueOf&&"function"==typeof B.valueOf){if((A=A.valueOf())===(B=B.valueOf())||A!=A&&B!=B)return!0;if(!A||!B)return!1}return!("function"!=typeof A.equals||"function"!=typeof B.equals||!A.equals(B))}function QA(A,B){if(A===B)return!0;if(!n(B)||void 0!==A.size&&void 0!==B.size&&A.size!==B.size||void 0!==A.__hash&&void 0!==B.__hash&&A.__hash!==B.__hash||Q(A)!==Q(B)||s(A)!==s(B)||c(A)!==c(B))return!1;if(0===A.size&&0===B.size)return!0;var t=!r(A);if(c(A)){var e=A.entries();return B.every((function(A,B){var g=e.next().value;return g&&nA(g[1],A)&&(t||nA(g[0],B))}))&&e.next().done}var g=!1;if(void 0===A.size)if(void 0===B.size)"function"==typeof A.cacheResult&&A.cacheResult();else{g=!0;var i=A;A=B,B=i}var E=!0,o=B.__iterate((function(B,e){if(t?!A.has(B):g?!nA(B,A.get(e,a)):!nA(A.get(e,a),B))return E=!1,!1}));return E&&A.size===o}function sA(A,B){if(!(this instanceof sA))return new sA(A,B);if(this._value=A,this.size=void 0===B?1/0:Math.max(0,B),0===this.size){if(H)return H;H=this}}function rA(A,B){if(!A)throw new Error(B)}function cA(A,B,t){if(!(this instanceof cA))return new cA(A,B,t);if(rA(0!==t,"Cannot step a Range by 0"),A=A||0,void 0===B&&(B=1/0),t=void 0===t?1:Math.abs(t),Be?{value:void 0,done:!0}:k(A,g,t[B?e-g++:g++])}))},B(K,P),K.prototype.get=function(A,B){return void 0===B||this.has(A)?this._object[A]:B},K.prototype.has=function(A){return this._object.hasOwnProperty(A)},K.prototype.__iterate=function(A,B){for(var t=this._object,e=this._keys,g=e.length-1,i=0;i<=g;i++){var n=e[B?g-i:i];if(!1===A(t[n],n,this))return i+1}return i},K.prototype.__iterator=function(A,B){var t=this._object,e=this._keys,g=e.length-1,i=0;return new J((function(){var n=e[B?g-i:i];return i++>g?{value:void 0,done:!0}:k(A,n,t[n])}))},K.prototype[C]=!0,B(O,v),O.prototype.__iterateUncached=function(A,B){if(B)return this.cacheResult().__iterate(A,B);var t=S(this._iterable),e=0;if(x(t))for(var g;!(g=t.next()).done&&!1!==A(g.value,e++,this););return e},O.prototype.__iteratorUncached=function(A,B){if(B)return this.cacheResult().__iterator(A,B);var t=S(this._iterable);if(!x(t))return new J(T);var e=0;return new J((function(){var B=t.next();return B.done?B:k(A,e++,B.value)}))},B(X,v),X.prototype.__iterateUncached=function(A,B){if(B)return this.cacheResult().__iterate(A,B);for(var t,e=this._iterator,g=this._iteratorCache,i=0;i =e.length){var B=t.next();if(B.done)return B;e[g]=B.value}return k(A,g,e[g++])}))},B(sA,v),sA.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},sA.prototype.get=function(A,B){return this.has(A)?this._value:B},sA.prototype.includes=function(A){return nA(this._value,A)},sA.prototype.slice=function(A,B){var t=this.size;return U(A,B,t)?this:new sA(this._value,m(B,t)-N(A,t))},sA.prototype.reverse=function(){return this},sA.prototype.indexOf=function(A){return nA(this._value,A)?0:-1},sA.prototype.lastIndexOf=function(A){return nA(this._value,A)?this.size:-1},sA.prototype.__iterate=function(A,B){for(var t=0;t =0&&B =0&&t t?{value:void 0,done:!0}:k(A,i++,n)}))},cA.prototype.equals=function(A){return A instanceof cA?this._start===A._start&&this._end===A._end&&this._step===A._step:QA(this,A)},B(EA,t),B(oA,EA),B(wA,EA),B(CA,EA),EA.Keyed=oA,EA.Indexed=wA,EA.Set=CA;var aA="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(A,B){var t=65535&(A|=0),e=65535&(B|=0);return t*e+((A>>>16)*e+t*(B>>>16)<<16>>>0)|0};function IA(A){return A>>>1&1073741824|3221225471&A}function hA(A){if(!1===A||null==A)return 0;if("function"==typeof A.valueOf&&(!1===(A=A.valueOf())||null==A))return 0;if(!0===A)return 1;var B=typeof A;if("number"===B){if(A!=A||A===1/0)return 0;var t=0|A;for(t!==A&&(t^=4294967295*A);A>4294967295;)t^=A/=4294967295;return IA(t)}if("string"===B)return A.length>UA?function(A){var B=GA[A];return void 0===B&&(B=YA(A),mA===NA&&(mA=0,GA={}),mA++,GA[A]=B),B}(A):YA(A);if("function"==typeof A.hashCode)return A.hashCode();if("object"===B)return function(A){var B;if(uA&&void 0!==(B=MA.get(A)))return B;if(void 0!==(B=A[dA]))return B;if(!DA){if(void 0!==(B=A.propertyIsEnumerable&&A.propertyIsEnumerable[dA]))return B;if(void 0!==(B=function(A){if(A&&A.nodeType>0)switch(A.nodeType){case 1:return A.uniqueID;case 9:return A.documentElement&&A.documentElement.uniqueID}}(A)))return B}if(B=++lA,1073741824&lA&&(lA=0),uA)MA.set(A,B);else{if(void 0!==FA&&!1===FA(A))throw new Error("Non-extensible objects are not allowed as keys.");if(DA)Object.defineProperty(A,dA,{enumerable:!1,configurable:!1,writable:!1,value:B});else if(void 0!==A.propertyIsEnumerable&&A.propertyIsEnumerable===A.constructor.prototype.propertyIsEnumerable)A.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},A.propertyIsEnumerable[dA]=B;else{if(void 0===A.nodeType)throw new Error("Unable to set a non-enumerable property on object.");A[dA]=B}}return B}(A);if("function"==typeof A.toString)return YA(A.toString());throw new Error("Value type "+B+" cannot be hashed.")}function YA(A){for(var B=0,t=0;t =B.length)throw new Error("Missing value for key: "+B[t]);A.set(B[t],B[t+1])}}))},HA.prototype.toString=function(){return this.__toString("Map {","}")},HA.prototype.get=function(A,B){return this._root?this._root.get(0,void 0,A,B):B},HA.prototype.set=function(A,B){return WA(this,A,B)},HA.prototype.setIn=function(A,B){return this.updateIn(A,a,(function(){return B}))},HA.prototype.remove=function(A){return WA(this,A,a)},HA.prototype.deleteIn=function(A){return this.updateIn(A,(function(){return a}))},HA.prototype.update=function(A,B,t){return 1===arguments.length?A(this):this.updateIn([A],B,t)},HA.prototype.updateIn=function(A,B,t){t||(t=B,B=void 0);var e=function A(B,t,e,g){var i=B===a,n=t.next();if(n.done){var Q=i?e:B,s=g(Q);return s===Q?B:s}rA(i||B&&B.set,"invalid keyPath");var r=n.value,c=i?a:B.get(r,a),E=A(c,t,e,g);return E===c?B:E===a?B.remove(r):(i?vA():B).set(r,E)}(this,XB(A),B,t);return e===a?void 0:e},HA.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):vA()},HA.prototype.merge=function(){return XA(this,void 0,arguments)},HA.prototype.mergeWith=function(B){var t=A.call(arguments,1);return XA(this,B,t)},HA.prototype.mergeIn=function(B){var t=A.call(arguments,1);return this.updateIn(B,vA(),(function(A){return"function"==typeof A.merge?A.merge.apply(A,t):t[t.length-1]}))},HA.prototype.mergeDeep=function(){return XA(this,ZA,arguments)},HA.prototype.mergeDeepWith=function(B){var t=A.call(arguments,1);return XA(this,_A(B),t)},HA.prototype.mergeDeepIn=function(B){var t=A.call(arguments,1);return this.updateIn(B,vA(),(function(A){return"function"==typeof A.mergeDeep?A.mergeDeep.apply(A,t):t[t.length-1]}))},HA.prototype.sort=function(A){return DB(xB(this,A))},HA.prototype.sortBy=function(A,B){return DB(xB(this,B,A))},HA.prototype.withMutations=function(A){var B=this.asMutable();return A(B),B.wasAltered()?B.__ensureOwner(this.__ownerID):this},HA.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new F)},HA.prototype.asImmutable=function(){return this.__ensureOwner()},HA.prototype.wasAltered=function(){return this.__altered},HA.prototype.__iterator=function(A,B){return new bA(this,A,B)},HA.prototype.__iterate=function(A,B){var t=this,e=0;return this._root&&this._root.iterate((function(B){return e++,A(B[1],B[0],t)}),B),e},HA.prototype.__ensureOwner=function(A){return A===this.__ownerID?this:A?PA(this.size,this._root,A,this.__hash):(this.__ownerID=A,this.__altered=!1,this)},HA.isMap=pA;var RA,yA="@@__IMMUTABLE_MAP__@@",JA=HA.prototype;function kA(A,B){this.ownerID=A,this.entries=B}function TA(A,B,t){this.ownerID=A,this.bitmap=B,this.nodes=t}function jA(A,B,t){this.ownerID=A,this.count=B,this.nodes=t}function xA(A,B,t){this.ownerID=A,this.keyHash=B,this.entries=t}function SA(A,B,t){this.ownerID=A,this.keyHash=B,this.entry=t}function bA(A,B,t){this._type=B,this._reverse=t,this._stack=A._root&&LA(A._root)}function zA(A,B){return k(A,B[0],B[1])}function LA(A,B){return{node:A,index:0,__prev:B}}function PA(A,B,t,e){var g=Object.create(JA);return g.size=A,g._root=B,g.__ownerID=t,g.__hash=e,g.__altered=!1,g}function vA(){return RA||(RA=PA(0))}function WA(A,B,t){var e,g;if(A._root){var i=Y(I),n=Y(h);if(e=VA(A._root,A.__ownerID,0,void 0,B,t,i,n),!n.value)return A;g=A.size+(i.value?t===a?-1:1:0)}else{if(t===a)return A;g=1,e=new kA(A.__ownerID,[[B,t]])}return A.__ownerID?(A.size=g,A._root=e,A.__hash=void 0,A.__altered=!0,A):e?PA(g,e):vA()}function VA(A,B,t,e,g,i,n,Q){return A?A.update(B,t,e,g,i,n,Q):i===a?A:(M(Q),M(n),new SA(B,e,[g,i]))}function KA(A){return A.constructor===SA||A.constructor===xA}function OA(A,B,t,e,g){if(A.keyHash===e)return new xA(B,e,[A.entry,g]);var i,n=31&(0===t?A.keyHash:A.keyHash>>>t),Q=31&(0===t?e:e>>>t);return new TA(B,1< >1&1431655765))+(A>>2&858993459))+(A>>4)&252645135,A+=A>>8,127&(A+=A>>16)}function AB(A,B,t,e){var g=e?A:D(A);return g[B]=t,g}JA[yA]=!0,JA.delete=JA.remove,JA.removeIn=JA.deleteIn,kA.prototype.get=function(A,B,t,e){for(var g=this.entries,i=0,n=g.length;i =BB)return function(A,B,t,e){A||(A=new F);for(var g=new SA(A,hA(t),[t,e]),i=0;i >>A)),i=this.bitmap;return 0==(i&g)?e:this.nodes[$A(i&g-1)].get(A+5,B,t,e)},TA.prototype.update=function(A,B,t,e,g,i,n){void 0===t&&(t=hA(e));var Q=31&(0===B?t:t>>>B),s=1< =tB)return function(A,B,t,e,g){for(var i=0,n=new Array(32),Q=0;0!==t;Q++,t>>>=1)n[Q]=1&t?B[i++]:void 0;return n[e]=g,new jA(A,i+1,n)}(A,o,r,Q,C);if(c&&!C&&2===o.length&&KA(o[1^E]))return o[1^E];if(c&&C&&1===o.length&&KA(C))return C;var I=A&&A===this.ownerID,h=c?C?r:r^s:r|s,Y=c?C?AB(o,E,C,I):function(A,B,t){var e=A.length-1;if(t&&B===e)return A.pop(),A;for(var g=new Array(e),i=0,n=0;n>>A),i=this.nodes[g];return i?i.get(A+5,B,t,e):e},jA.prototype.update=function(A,B,t,e,g,i,n){void 0===t&&(t=hA(e));var Q=31&(0===B?t:t>>>B),s=g===a,r=this.nodes,c=r[Q];if(s&&!c)return this;var E=VA(c,A,B+5,t,e,g,i,n);if(E===c)return this;var o=this.count;if(c){if(!E&&--o 0&&e<32?wB(0,e,5,null,new sB(t.toArray())):B.withMutations((function(A){A.setSize(e),t.forEach((function(B,t){return A.set(t,B)}))})))}function iB(A){return!(!A||!A[nB])}B(gB,wA),gB.of=function(){return this(arguments)},gB.prototype.toString=function(){return this.__toString("List [","]")},gB.prototype.get=function(A,B){if((A=l(this,A))>=0&&A =A.size||B<0)return A.withMutations((function(A){B<0?YB(A,B).set(0,t):YB(A,0,B+1).set(B,t)}));B+=A._origin;var e=A._tail,g=A._root,i=Y(h);return B>=FB(A._capacity)?e=aB(e,A.__ownerID,0,B,t,i):g=aB(g,A.__ownerID,A._level,B,t,i),i.value?A.__ownerID?(A._root=g,A._tail=e,A.__hash=void 0,A.__altered=!0,A):wB(A._origin,A._capacity,A._level,g,e):A}(this,A,B)},gB.prototype.remove=function(A){return this.has(A)?0===A?this.shift():A===this.size-1?this.pop():this.splice(A,1):this},gB.prototype.insert=function(A,B){return this.splice(A,0,B)},gB.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):CB()},gB.prototype.push=function(){var A=arguments,B=this.size;return this.withMutations((function(t){YB(t,0,B+A.length);for(var e=0;e >>B&31;if(e>=this.array.length)return new sB([],A);var g,i=0===e;if(B>0){var n=this.array[e];if((g=n&&n.removeBefore(A,B-5,t))===n&&i)return this}if(i&&!g)return this;var Q=IB(this,A);if(!i)for(var s=0;s >>B&31;if(g>=this.array.length)return this;if(B>0){var i=this.array[g];if((e=i&&i.removeAfter(A,B-5,t))===i&&g===this.array.length-1)return this}var n=IB(this,A);return n.array.splice(g+1),e&&(n.array[g]=e),n};var rB,cB,EB={};function oB(A,B){var t=A._origin,e=A._capacity,g=FB(e),i=A._tail;return n(A._root,A._level,0);function n(A,Q,s){return 0===Q?function(A,n){var Q=n===g?i&&i.array:A&&A.array,s=n>t?0:t-n,r=e-n;return r>32&&(r=32),function(){if(s===r)return EB;var A=B?--r:s++;return Q&&Q[A]}}(A,s):function(A,g,i){var Q,s=A&&A.array,r=i>t?0:t-i>>g,c=1+(e-i>>g);return c>32&&(c=32),function(){for(;;){if(Q){var A=Q();if(A!==EB)return A;Q=null}if(r===c)return EB;var t=B?--c:r++;Q=n(s&&s[t],g-5,i+(t< >>t&31,s=A&&Q 0){var r=A&&A.array[Q],c=aB(r,B,t-5,e,g,i);return c===r?A:((n=IB(A,B)).array[Q]=c,n)}return s&&A.array[Q]===g?A:(M(i),n=IB(A,B),void 0===g&&Q===n.array.length-1?n.array.pop():n.array[Q]=g,n)}function IB(A,B){return B&&A&&B===A.ownerID?A:new sB(A?A.array.slice():[],B)}function hB(A,B){if(B>=FB(A._capacity))return A._tail;if(B<1< 0;)t=t.array[B>>>e&31],e-=5;return t}}function YB(A,B,t){void 0!==B&&(B|=0),void 0!==t&&(t|=0);var e=A.__ownerID||new F,g=A._origin,i=A._capacity,n=g+B,Q=void 0===t?i:t<0?i+t:g+t;if(n===g&&Q===i)return A;if(n>=Q)return A.clear();for(var s=A._level,r=A._root,c=0;n+c<0;)r=new sB(r&&r.array.length?[void 0,r]:[],e),c+=1<<(s+=5);c&&(n+=c,g+=c,Q+=c,i+=c);for(var E=FB(i),o=FB(Q);o>=1< E?new sB([],e):w;if(w&&o>E&&n5;I-=5){var h=E>>>I&31;a=a.array[h]=IB(a.array[h],e)}a.array[E>>>5&31]=w}if(Q=o)n-=o,Q-=o,s=5,r=null,C=C&&C.removeBefore(e,0,n);else if(n>g||o