@triflare/fx 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +73 -2
- package/bin/fx.js +1166 -0
- package/package.json +64 -4
- package/product.yml +28 -0
- package/src/brand.js +105 -0
- package/src/build.js +181 -0
- package/src/catalog.js +753 -0
- package/src/compiler.js +1658 -0
- package/src/config-edit.js +338 -0
- package/src/config.js +400 -0
- package/src/decompiler.js +551 -0
- package/src/dev.js +390 -0
- package/src/errors.js +56 -0
- package/src/extensions.js +747 -0
- package/src/index.js +35 -0
- package/src/language.js +12 -0
- package/src/lexer.js +202 -0
- package/src/log.js +70 -0
- package/src/package.js +202 -0
- package/src/packager.js +177 -0
- package/src/parser.js +608 -0
- package/src/product.js +27 -0
- package/src/project.js +156 -0
- package/src/sb3.js +340 -0
- package/src/sprite.js +81 -0
- package/vendor/pm-packager-dist/.fx-build.json +6 -0
- package/vendor/pm-packager-dist/LICENSE +202 -0
- package/vendor/pm-packager-dist/NOTICE +6 -0
- package/vendor/pm-packager-dist/dist/290e09e569a1cab8e61ba93b0d23863f.png +0 -0
- package/vendor/pm-packager-dist/dist/icns.js +1 -0
- package/vendor/pm-packager-dist/dist/packager.js +154 -0
- package/vendor/pm-packager-dist/dist/scaffolding/addons.js +2 -0
- package/vendor/pm-packager-dist/dist/scaffolding/extension worker.js +2 -0
- package/vendor/pm-packager-dist/dist/scaffolding/scaffolding-full.js +93 -0
- package/vendor/pm-packager-dist/dist/scaffolding/scaffolding-min.js +93 -0
- package/vendor/pm-packager-dist/dist/scaffolding/vendors~iframe-extension-worker.js +2 -0
- package/vendor/pm-packager-dist/dist/vendors~sha256.js +3 -0
- package/vendor/pm-packager-dist/package.json +3 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{564:function(t,e,n){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,a=t}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}const i=n(9),o=n(565),s="'none'",c={accelerometer:s,"ambient-light-sensor":s,battery:s,camera:s,"display-capture":s,"document-domain":s,"encrypted-media":s,fullscreen:s,geolocation:s,gyroscope:s,magnetometer:s,microphone:s,midi:s,payment:s,"picture-in-picture":s,"publickey-credentials-get":s,"speaker-selection":s,usb:s,vibrate:s,vr:s,"screen-wake-lock":s,"web-share":s,"interest-cohort":s};t.exports=class{constructor(){this.id=i(),this.isRemote=!0,this.ready=!1,this.queuedMessages=[],this.iframe=document.createElement("iframe"),this.iframe.className="tw-custom-extension-frame",this.iframe.dataset.id=this.id,this.iframe.style.display="none",this.iframe.setAttribute("aria-hidden","true"),this.iframe.sandbox="allow-scripts",this.iframe.allow=Object.entries(c).map(t=>{let e=r(t,2),n=e[0],a=e[1];return"".concat(n," ").concat(a)}).join("; "),document.body.appendChild(this.iframe),window.addEventListener("message",this._onWindowMessage.bind(this));const t=new Blob(["<!DOCTYPE html><body><script>window.__WRAPPED_IFRAME_ID__=".concat(JSON.stringify(this.id),";").concat(o,"<\/script></body>")],{type:"text/html; charset=utf-8"});this.iframe.src=URL.createObjectURL(t)}_onWindowMessage(t){if(t.data&&t.data.vmIframeId===this.id){if(t.data.ready){this.ready=!0;for(const t of this.queuedMessages){const e=t.data,n=t.transfer;this.postMessage(e,n)}this.queuedMessages.length=0}t.data.message&&this.onmessage({data:t.data.message})}}onmessage(){}postMessage(t,e){this.ready?e?this.iframe.contentWindow.postMessage(t,"*",e):this.iframe.contentWindow.postMessage(t,"*"):this.queuedMessages.push({data:t,transfer:e})}}},565:function(t,e){t.exports='!function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=11)}([function(t,e,n){function r(){}n(15).mixin(r),r.prototype.write=function(t,e,n){this.emit("item",t,e,n)},r.prototype.end=function(){this.emit("end"),this.removeAllListeners()},r.prototype.pipe=function(t){var e=this;function n(){t.write.apply(t,Array.prototype.slice.call(arguments))}function r(){!t._isStdio&&t.end()}return e.emit("unpipe",t),t.emit("pipe",e),e.on("item",n),e.on("end",r),e.when("unpipe",(function(a){var i=a===t||void 0===a;return i&&(e.removeListener("item",n),e.removeListener("end",r),t.emit("unpipe")),i})),t},r.prototype.unpipe=function(t){return this.emit("unpipe",t),this},r.prototype.format=function(t){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"))},r.mixin=function(t){var e,n=r.prototype;for(e in n)n.hasOwnProperty(e)&&(t.prototype[e]=n[e])},t.exports=r},function(t,e,n){const r=n(13);r.enable(),t.exports=r("vm")},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports={isWorker:!0,centralDispatchService:self}},function(t,e){var n={black:"#000",red:"#c23621",green:"#25bc26",yellow:"#bbbb00",blue:"#492ee1",magenta:"#d338d3",cyan:"#33bbc8",gray:"#808080",purple:"#708"};t.exports=function(t,e){return e?"color: #fff; background: "+n[t]+";":"color: "+n[t]+";"}},function(t,e){t.exports={ANGLE:"angle",BOOLEAN:"Boolean",COLOR:"color",NUMBER:"number",STRING:"string",MATRIX:"matrix",NOTE:"note",IMAGE:"image",POLYGON:"polygon",CUSTOM:"custom",COSTUME:"costume",SOUND:"sound",VARIABLE:"variable",LIST:"list",BROADCAST:"broadcast",SEPERATOR:"seperator"}},function(t,e){t.exports={BOOLEAN:"Boolean",BUTTON:"button",LABEL:"label",COMMAND:"command",CONDITIONAL:"conditional",EVENT:"event",HAT:"hat",LOOP:"loop",REPORTER:"reporter",XML:"xml"}},function(t,e){class n{static get RGB_BLACK(){return{r:0,g:0,b:0}}static get RGB_WHITE(){return{r:255,g:255,b:255}}static decimalToHex(t){t<0&&(t+=16777216);let e=Math.round(Number(t)).toString(16);return e="#".concat("000000".substr(0,6-e.length)).concat(e),e}static decimalToRgb(t){const e=t>>24&255;return{r:t>>16&255,g:t>>8&255,b:255&t,a:e>0?e:255}}static hexToRgb(t){t.startsWith("#")&&(t=t.substring(1)),8===t.length&&(t=t.slice(0,6));const e=parseInt(t,16);if(isNaN(e))return null;if(6===t.length)return{r:e>>16&255,g:e>>8&255,b:255&e};if(3===t.length){const t=e>>8&15,n=e>>4&15,r=15&e;return{r:t<<4|t,g:n<<4|n,b:r<<4|r}}return null}static rgbToHex(t){return n.decimalToHex(n.rgbToDecimal(t))}static rgbToDecimal(t){return(t.r<<16)+(t.g<<8)+t.b}static hexToDecimal(t){return n.rgbToDecimal(n.hexToRgb(t))}static hsvToRgb(t){let e=t.h%360;e<0&&(e+=360);const n=Math.max(0,Math.min(t.s,1)),r=Math.max(0,Math.min(t.v,1)),a=Math.floor(e/60),i=e/60-a,o=r*(1-n),s=r*(1-n*i),c=r*(1-n*(1-i));let l,u,d;switch(a){default:case 0:l=r,u=c,d=o;break;case 1:l=s,u=r,d=o;break;case 2:l=o,u=r,d=c;break;case 3:l=o,u=s,d=r;break;case 4:l=c,u=o,d=r;break;case 5:l=r,u=o,d=s}return{r:Math.floor(255*l),g:Math.floor(255*u),b:Math.floor(255*d)}}static rgbToHsv(t){const e=t.r/255,n=t.g/255,r=t.b/255,a=Math.min(Math.min(e,n),r),i=Math.max(Math.max(e,n),r);let o=0,s=0;if(a!==i){o=60*((e===a?3:n===a?5:1)-(e===a?n-r:n===a?r-e:e-n)/(i-a))%360,s=(i-a)/i}return{h:o,s:s,v:i}}static mixRgb(t,e,n){if(n<=0)return t;if(n>=1)return e;const r=1-n;return{r:r*t.r+n*e.r,g:r*t.g+n*e.g,b:r*t.b+n*e.b}}}t.exports=n},function(t,e){var n="long",r="short",a="numeric";t.exports={number:{decimal:{style:"decimal"},integer:{style:"decimal",maximumFractionDigits:0},currency:{style:"currency",currency:"USD"},percent:{style:"percent"},default:{style:"decimal"}},date:{short:{month:a,day:a,year:"2-digit"},medium:{month:r,day:a,year:a},long:{month:n,day:a,year:a},full:{month:n,day:a,year:a,weekday:n},default:{month:r,day:a,year:a}},time:{short:{hour:a,minute:a},medium:{hour:a,minute:a,second:a},long:{hour:a,minute:a,second:a,timeZoneName:r},full:{hour:a,minute:a,second:a,timeZoneName:r},default:{hour:a,minute:a,second:a}},duration:{default:{hours:{minimumIntegerDigits:1,maximumFractionDigits:0},minutes:{minimumIntegerDigits:2,maximumFractionDigits:0},seconds:{minimumIntegerDigits:2,maximumFractionDigits:3}}},parseNumberPattern:function(t){if(t){var e={},n=t.match(/\\b[A-Z]{3}\\b/i),r=t.replace(/[^¤]/g,"").length;if(!r&&n&&(r=1),r?(e.style="currency",e.currencyDisplay=1===r?"symbol":2===r?"code":"name",e.currency=n?n[0].toUpperCase():"USD"):t.indexOf("%")>=0&&(e.style="percent"),!/[@#0]/.test(t))return e.style?e:void 0;if(e.useGrouping=t.indexOf(",")>=0,/E\\+?[@#0]+/i.test(t)||t.indexOf("@")>=0){var a=t.replace(/E\\+?[@#0]+|[^@#0]/gi,"");e.minimumSignificantDigits=Math.min(Math.max(a.replace(/[^@0]/g,"").length,1),21),e.maximumSignificantDigits=Math.min(Math.max(a.length,1),21)}else{for(var i=t.replace(/[^#0.]/g,"").split("."),o=i[0],s=o.length-1;"0"===o[s];)--s;e.minimumIntegerDigits=Math.min(Math.max(o.length-1-s,1),21);var c=i[1]||"";for(s=0;"0"===c[s];)++s;for(e.minimumFractionDigits=Math.min(Math.max(s,0),20);"#"===c[s];)++s;e.maximumFractionDigits=Math.min(Math.max(s,0),20)}return e}},parseDatePattern:function(t){if(t){for(var e={},i=0;i<t.length;){for(var o=t[i],s=1;t[++i]===o;)++s;switch(o){case"G":e.era=5===s?"narrow":4===s?n:r;break;case"y":case"Y":e.year=2===s?"2-digit":a;break;case"M":case"L":s=Math.min(Math.max(s-1,0),4),e.month=[a,"2-digit",r,n,"narrow"][s];break;case"E":case"e":case"c":e.weekday=5===s?"narrow":4===s?n:r;break;case"d":case"D":e.day=2===s?"2-digit":a;break;case"h":case"K":e.hour12=!0,e.hour=2===s?"2-digit":a;break;case"H":case"k":e.hour12=!1,e.hour=2===s?"2-digit":a;break;case"m":e.minute=2===s?"2-digit":a;break;case"s":case"S":e.second=2===s?"2-digit":a;break;case"z":case"Z":case"v":case"V":e.timeZoneName=1===s?r:n}}return Object.keys(e).length?e:void 0}}}},function(t,e){t.exports=function(t,e){if("string"==typeof t&&e[t])return t;for(var n=[].concat(t||[]),r=0,a=n.length;r<a;++r)for(var i=n[r].split("-");i.length;){var o=i.join("-");if(e[o])return o;i.pop()}}},function(t,e,n){"use strict";var r="one",a="two",i="few",o="many",s="other",c=[function(t){return 1===+t?r:s},function(t){var e=+t;return 0<=e&&e<=1?r:s},function(t){return 0===Math.floor(Math.abs(+t))||1===+t?r:s},function(t){var e=+t;return 0===e?"zero":1===e?r:2===e?a:3<=e%100&&e%100<=10?i:11<=e%100&&e%100<=99?o:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length;return 1===e&&0===n?r:s},function(t){var e=+t;return e%10==1&&e%100!=11?r:2<=e%10&&e%10<=4&&(e%100<12||14<e%100)?i:e%10==0||5<=e%10&&e%10<=9||11<=e%100&&e%100<=14?o:s},function(t){var e=+t;return e%10==1&&e%100!=11&&e%100!=71&&e%100!=91?r:e%10==2&&e%100!=12&&e%100!=72&&e%100!=92?a:(3<=e%10&&e%10<=4||e%10==9)&&(e%100<10||19<e%100)&&(e%100<70||79<e%100)&&(e%100<90||99<e%100)?i:0!==e&&e%1e6==0?o:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length,a=+(t+".").split(".")[1];return 0===n&&e%10==1&&e%100!=11||a%10==1&&a%100!=11?r:0===n&&2<=e%10&&e%10<=4&&(e%100<12||14<e%100)||2<=a%10&&a%10<=4&&(a%100<12||14<a%100)?i:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length;return 1===e&&0===n?r:2<=e&&e<=4&&0===n?i:0!==n?o:s},function(t){var e=+t;return 0===e?"zero":1===e?r:2===e?a:3===e?i:6===e?o:s},function(t){var e=Math.floor(Math.abs(+t)),n=+(""+t).replace(/^[^.]*.?|0+$/g,"");return 1===+t||0!==n&&(0===e||1===e)?r:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length,o=+(t+".").split(".")[1];return 0===n&&e%100==1||o%100==1?r:0===n&&e%100==2||o%100==2?a:0===n&&3<=e%100&&e%100<=4||3<=o%100&&o%100<=4?i:s},function(t){var e=Math.floor(Math.abs(+t));return 0===e||1===e?r:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length,a=+(t+".").split(".")[1];return 0===n&&(1===e||2===e||3===e)||0===n&&e%10!=4&&e%10!=6&&e%10!=9||0!==n&&a%10!=4&&a%10!=6&&a%10!=9?r:s},function(t){var e=+t;return 1===e?r:2===e?a:3<=e&&e<=6?i:7<=e&&e<=10?o:s},function(t){var e=+t;return 1===e||11===e?r:2===e||12===e?a:3<=e&&e<=10||13<=e&&e<=19?i:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length;return 0===n&&e%10==1?r:0===n&&e%10==2?a:0!==n||e%100!=0&&e%100!=20&&e%100!=40&&e%100!=60&&e%100!=80?0!==n?o:s:i},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length,i=+t;return 1===e&&0===n?r:2===e&&0===n?a:0===n&&(i<0||10<i)&&i%10==0?o:s},function(t){var e=Math.floor(Math.abs(+t)),n=+(""+t).replace(/^[^.]*.?|0+$/g,"");return 0===n&&e%10==1&&e%100!=11||0!==n?r:s},function(t){var e=+t;return 1===e?r:2===e?a:s},function(t){var e=+t;return 0===e?"zero":1===e?r:s},function(t){var e=Math.floor(Math.abs(+t)),n=+t;return 0===n?"zero":0!==e&&1!==e||0===n?s:r},function(t){var e=+(t+".").split(".")[1],n=+t;return n%10==1&&(n%100<11||19<n%100)?r:2<=n%10&&n%10<=9&&(n%100<11||19<n%100)?i:0!==e?o:s},function(t){var e=(t+".").split(".")[1].length,n=+(t+".").split(".")[1],a=+t;return a%10==0||11<=a%100&&a%100<=19||2===e&&11<=n%100&&n%100<=19?"zero":a%10==1&&a%100!=11||2===e&&n%10==1&&n%100!=11||2!==e&&n%10==1?r:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length,a=+(t+".").split(".")[1];return 0===n&&e%10==1&&e%100!=11||a%10==1&&a%100!=11?r:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length,a=+t;return 1===e&&0===n?r:0!==n||0===a||1!==a&&1<=a%100&&a%100<=19?i:s},function(t){var e=+t;return 1===e?r:0===e||2<=e%100&&e%100<=10?i:11<=e%100&&e%100<=19?o:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length;return 1===e&&0===n?r:0===n&&2<=e%10&&e%10<=4&&(e%100<12||14<e%100)?i:0===n&&1!==e&&0<=e%10&&e%10<=1||0===n&&5<=e%10&&e%10<=9||0===n&&12<=e%100&&e%100<=14?o:s},function(t){var e=Math.floor(Math.abs(+t));return 0<=e&&e<=1?r:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length;return 0===n&&e%10==1&&e%100!=11?r:0===n&&2<=e%10&&e%10<=4&&(e%100<12||14<e%100)?i:0===n&&e%10==0||0===n&&5<=e%10&&e%10<=9||0===n&&11<=e%100&&e%100<=14?o:s},function(t){var e=+t;return 0===Math.floor(Math.abs(+t))||1===e?r:2<=e&&e<=10?i:s},function(t){var e=Math.floor(Math.abs(+t)),n=+(t+".").split(".")[1],a=+t;return 0===a||1===a||0===e&&1===n?r:s},function(t){var e=Math.floor(Math.abs(+t)),n=(t+".").split(".")[1].length;return 0===n&&e%100==1?r:0===n&&e%100==2?a:0===n&&3<=e%100&&e%100<=4||0!==n?i:s},function(t){var e=+t;return 0<=e&&e<=1||11<=e&&e<=99?r:s},function(t){var e=+t;return 1===e||5===e||7===e||8===e||9===e||10===e?r:2===e||3===e?a:4===e?i:6===e?o:s},function(t){var e=Math.floor(Math.abs(+t));return e%10==1||e%10==2||e%10==5||e%10==7||e%10==8||e%100==20||e%100==50||e%100==70||e%100==80?r:e%10==3||e%10==4||e%1e3==100||e%1e3==200||e%1e3==300||e%1e3==400||e%1e3==500||e%1e3==600||e%1e3==700||e%1e3==800||e%1e3==900?i:0===e||e%10==6||e%100==40||e%100==60||e%100==90?o:s},function(t){var e=+t;return e%10!=2&&e%10!=3||e%100==12||e%100==13?s:i},function(t){var e=+t;return 1===e||3===e?r:2===e?a:4===e?i:s},function(t){var e=+t;return 0===e||7===e||8===e||9===e?"zero":1===e?r:2===e?a:3===e||4===e?i:5===e||6===e?o:s},function(t){var e=+t;return e%10==1&&e%100!=11?r:e%10==2&&e%100!=12?a:e%10==3&&e%100!=13?i:s},function(t){var e=+t;return 1===e||11===e?r:2===e||12===e?a:3===e||13===e?i:s},function(t){var e=+t;return 1===e?r:2===e||3===e?a:4===e?i:6===e?o:s},function(t){var e=+t;return 1===e||5===e?r:s},function(t){var e=+t;return 11===e||8===e||80===e||800===e?o:s},function(t){var e=Math.floor(Math.abs(+t));return 1===e?r:0===e||2<=e%100&&e%100<=20||e%100==40||e%100==60||e%100==80?o:s},function(t){var e=+t;return e%10==6||e%10==9||e%10==0&&0!==e?o:s},function(t){var e=Math.floor(Math.abs(+t));return e%10==1&&e%100!=11?r:e%10==2&&e%100!=12?a:e%10!=7&&e%10!=8||e%100==17||e%100==18?s:o},function(t){var e=+t;return 1===e?r:2===e||3===e?a:4===e?i:s},function(t){var e=+t;return 1<=e&&e<=4?r:s},function(t){var e=+t;return 1===e||5===e||7<=e&&e<=9?r:2===e||3===e?a:4===e?i:6===e?o:s},function(t){var e=+t;return 1===e?r:e%10==4&&e%100!=14?o:s},function(t){var e=+t;return e%10!=1&&e%10!=2||e%100==11||e%100==12?s:r},function(t){var e=+t;return e%10==6||e%10==9||10===e?i:s},function(t){var e=+t;return e%10==3&&e%100!=13?i:s}];t.exports={af:{cardinal:c[0]},ak:{cardinal:c[1]},am:{cardinal:c[2]},ar:{cardinal:c[3]},ars:{cardinal:c[3]},as:{cardinal:c[2],ordinal:c[34]},asa:{cardinal:c[0]},ast:{cardinal:c[4]},az:{cardinal:c[0],ordinal:c[35]},be:{cardinal:c[5],ordinal:c[36]},bem:{cardinal:c[0]},bez:{cardinal:c[0]},bg:{cardinal:c[0]},bh:{cardinal:c[1]},bn:{cardinal:c[2],ordinal:c[34]},br:{cardinal:c[6]},brx:{cardinal:c[0]},bs:{cardinal:c[7]},ca:{cardinal:c[4],ordinal:c[37]},ce:{cardinal:c[0]},cgg:{cardinal:c[0]},chr:{cardinal:c[0]},ckb:{cardinal:c[0]},cs:{cardinal:c[8]},cy:{cardinal:c[9],ordinal:c[38]},da:{cardinal:c[10]},de:{cardinal:c[4]},dsb:{cardinal:c[11]},dv:{cardinal:c[0]},ee:{cardinal:c[0]},el:{cardinal:c[0]},en:{cardinal:c[4],ordinal:c[39]},eo:{cardinal:c[0]},es:{cardinal:c[0]},et:{cardinal:c[4]},eu:{cardinal:c[0]},fa:{cardinal:c[2]},ff:{cardinal:c[12]},fi:{cardinal:c[4]},fil:{cardinal:c[13],ordinal:c[0]},fo:{cardinal:c[0]},fr:{cardinal:c[12],ordinal:c[0]},fur:{cardinal:c[0]},fy:{cardinal:c[4]},ga:{cardinal:c[14],ordinal:c[0]},gd:{cardinal:c[15],ordinal:c[40]},gl:{cardinal:c[4]},gsw:{cardinal:c[0]},gu:{cardinal:c[2],ordinal:c[41]},guw:{cardinal:c[1]},gv:{cardinal:c[16]},ha:{cardinal:c[0]},haw:{cardinal:c[0]},he:{cardinal:c[17]},hi:{cardinal:c[2],ordinal:c[41]},hr:{cardinal:c[7]},hsb:{cardinal:c[11]},hu:{cardinal:c[0],ordinal:c[42]},hy:{cardinal:c[12],ordinal:c[0]},ia:{cardinal:c[4]},io:{cardinal:c[4]},is:{cardinal:c[18]},it:{cardinal:c[4],ordinal:c[43]},iu:{cardinal:c[19]},iw:{cardinal:c[17]},jgo:{cardinal:c[0]},ji:{cardinal:c[4]},jmc:{cardinal:c[0]},ka:{cardinal:c[0],ordinal:c[44]},kab:{cardinal:c[12]},kaj:{cardinal:c[0]},kcg:{cardinal:c[0]},kk:{cardinal:c[0],ordinal:c[45]},kkj:{cardinal:c[0]},kl:{cardinal:c[0]},kn:{cardinal:c[2]},ks:{cardinal:c[0]},ksb:{cardinal:c[0]},ksh:{cardinal:c[20]},ku:{cardinal:c[0]},kw:{cardinal:c[19]},ky:{cardinal:c[0]},lag:{cardinal:c[21]},lb:{cardinal:c[0]},lg:{cardinal:c[0]},ln:{cardinal:c[1]},lt:{cardinal:c[22]},lv:{cardinal:c[23]},mas:{cardinal:c[0]},mg:{cardinal:c[1]},mgo:{cardinal:c[0]},mk:{cardinal:c[24],ordinal:c[46]},ml:{cardinal:c[0]},mn:{cardinal:c[0]},mo:{cardinal:c[25],ordinal:c[0]},mr:{cardinal:c[2],ordinal:c[47]},mt:{cardinal:c[26]},nah:{cardinal:c[0]},naq:{cardinal:c[19]},nb:{cardinal:c[0]},nd:{cardinal:c[0]},ne:{cardinal:c[0],ordinal:c[48]},nl:{cardinal:c[4]},nn:{cardinal:c[0]},nnh:{cardinal:c[0]},no:{cardinal:c[0]},nr:{cardinal:c[0]},nso:{cardinal:c[1]},ny:{cardinal:c[0]},nyn:{cardinal:c[0]},om:{cardinal:c[0]},or:{cardinal:c[0],ordinal:c[49]},os:{cardinal:c[0]},pa:{cardinal:c[1]},pap:{cardinal:c[0]},pl:{cardinal:c[27]},prg:{cardinal:c[23]},ps:{cardinal:c[0]},pt:{cardinal:c[28]},"pt-PT":{cardinal:c[4]},rm:{cardinal:c[0]},ro:{cardinal:c[25],ordinal:c[0]},rof:{cardinal:c[0]},ru:{cardinal:c[29]},rwk:{cardinal:c[0]},saq:{cardinal:c[0]},sc:{cardinal:c[4],ordinal:c[43]},scn:{cardinal:c[4],ordinal:c[43]},sd:{cardinal:c[0]},sdh:{cardinal:c[0]},se:{cardinal:c[19]},seh:{cardinal:c[0]},sh:{cardinal:c[7]},shi:{cardinal:c[30]},si:{cardinal:c[31]},sk:{cardinal:c[8]},sl:{cardinal:c[32]},sma:{cardinal:c[19]},smi:{cardinal:c[19]},smj:{cardinal:c[19]},smn:{cardinal:c[19]},sms:{cardinal:c[19]},sn:{cardinal:c[0]},so:{cardinal:c[0]},sq:{cardinal:c[0],ordinal:c[50]},sr:{cardinal:c[7]},ss:{cardinal:c[0]},ssy:{cardinal:c[0]},st:{cardinal:c[0]},sv:{cardinal:c[4],ordinal:c[51]},sw:{cardinal:c[4]},syr:{cardinal:c[0]},ta:{cardinal:c[0]},te:{cardinal:c[0]},teo:{cardinal:c[0]},ti:{cardinal:c[1]},tig:{cardinal:c[0]},tk:{cardinal:c[0],ordinal:c[52]},tl:{cardinal:c[13],ordinal:c[0]},tn:{cardinal:c[0]},tr:{cardinal:c[0]},ts:{cardinal:c[0]},tzm:{cardinal:c[33]},ug:{cardinal:c[0]},uk:{cardinal:c[29],ordinal:c[53]},ur:{cardinal:c[4]},uz:{cardinal:c[0]},ve:{cardinal:c[0]},vo:{cardinal:c[0]},vun:{cardinal:c[0]},wa:{cardinal:c[1]},wae:{cardinal:c[0]},xh:{cardinal:c[0]},xog:{cardinal:c[0]},yi:{cardinal:c[4]},zu:{cardinal:c[2]},lo:{ordinal:c[0]},ms:{ordinal:c[0]},vi:{ordinal:c[0]}}},function(t,e,n){(function(t){const e=n(3),r=n(12);t.$=r,t.jQuery=r;const a=window.__WRAPPED_IFRAME_ID__;e.isWorker=!1,e.centralDispatchService={postMessage(t,e){const n={vmIframeId:a,message:t};e?window.parent.postMessage(n,"*",e):window.parent.postMessage(n,"*")}},n(23),window.parent.postMessage({vmIframeId:a,ready:!0},"*")}).call(this,n(2))},function(t,e,n){(function(e){const r=n(1),a=()=>{throw new Error("Not implemented")};a.getScript=(t,e)=>{const n=document.createElement("script");n.src=t,e&&(n.onload=()=>e()),document.body.appendChild(n)};let i=0;a.ajax=async(t,n)=>{let o={};t&&n?(o=n,o.url=t):t&&(o=t);const s=(t=>{const e=new URLSearchParams;if(t)for(const n of Object.keys(t))e.set(n,t[n]);return e})(o.data),c=()=>{const t=s.toString();let e=o.url;return t&&(e+="?".concat(t)),e.startsWith("http://")&&(e=e.replace("http://","https://")),e},l=t=>{o.success&&o.success(t)};try{if("jsonp"===o.dataType){const t="_jsonp_callback".concat(i++);e[t]=n=>{delete e[t],l(n)};const n=o.jsonp||"callback";return s.set(n,t),void a.getScript(c())}if("script"===o.dataType)return void a.getScript(c(),l);const t=await fetch(c(),{headers:o.headers});l(await t.json())}catch(t){u=t,r.error(u),o.error&&o.error(u)}var u},t.exports=a}).call(this,n(2))},function(t,e,n){var r=n(14),a=r.enable,i=r.disable,o="undefined"!=typeof navigator&&/chrome/i.test(navigator.userAgent),s=n(17);if(r.defaultBackend=o?s.minilog:s,"undefined"!=typeof window){try{r.enable(JSON.parse(window.localStorage.minilogSettings))}catch(t){}if(window.location&&window.location.search){var c=RegExp("[?&]minilog=([^&]*)").exec(window.location.search);c&&r.enable(decodeURIComponent(c[1]))}}r.enable=function(){a.call(r,!0);try{window.localStorage.minilogSettings=JSON.stringify(!0)}catch(t){}return this},r.disable=function(){i.call(r);try{delete window.localStorage.minilogSettings}catch(t){}return this},(t.exports=r).backends={array:n(20),browser:r.defaultBackend,localStorage:n(21),jQuery:n(22)}},function(t,e,n){var r=n(0),a=n(16),i=new r,o=Array.prototype.slice;(e=t.exports=function(t){var n=function(){return i.write(t,void 0,o.call(arguments)),n};return n.debug=function(){return i.write(t,"debug",o.call(arguments)),n},n.info=function(){return i.write(t,"info",o.call(arguments)),n},n.warn=function(){return i.write(t,"warn",o.call(arguments)),n},n.error=function(){return i.write(t,"error",o.call(arguments)),n},n.log=n.debug,n.suggest=e.suggest,n.format=i.format,n}).defaultBackend=e.defaultFormatter=null,e.pipe=function(t){return i.pipe(t)},e.end=e.unpipe=e.disable=function(t){return i.unpipe(t)},e.Transform=r,e.Filter=a,e.suggest=new a,e.enable=function(){return e.defaultFormatter?i.pipe(e.suggest).pipe(e.defaultFormatter).pipe(e.defaultBackend):i.pipe(e.suggest).pipe(e.defaultBackend)}},function(t,e){function n(){this._events={}}n.prototype={on:function(t,e){this._events||(this._events={});var n=this._events;return(n[t]||(n[t]=[])).push(e),this},removeListener:function(t,e){var n,r=this._events[t]||[];for(n=r.length-1;n>=0&&r[n];n--)r[n]!==e&&r[n].cb!==e||r.splice(n,1)},removeAllListeners:function(t){t?this._events[t]&&(this._events[t]=[]):this._events={}},listeners:function(t){return this._events&&this._events[t]||[]},emit:function(t){this._events||(this._events={});var e,n=Array.prototype.slice.call(arguments,1),r=this._events[t]||[];for(e=r.length-1;e>=0&&r[e];e--)r[e].apply(this,n);return this},when:function(t,e){return this.once(t,e,!0)},once:function(t,e,n){if(!e)return this;function r(){n||this.removeListener(t,r),e.apply(this,arguments)&&n&&this.removeListener(t,r)}return r.cb=e,this.on(t,r),this}},n.mixin=function(t){var e,r=n.prototype;for(e in r)r.hasOwnProperty(e)&&(t.prototype[e]=r[e])},t.exports=n},function(t,e,n){var r=n(0),a={debug:1,info:2,warn:3,error:4};function i(){this.enabled=!0,this.defaultResult=!0,this.clear()}function o(t,e){return t.n.test?t.n.test(e):t.n==e}r.mixin(i),i.prototype.allow=function(t,e){return this._white.push({n:t,l:a[e]}),this},i.prototype.deny=function(t,e){return this._black.push({n:t,l:a[e]}),this},i.prototype.clear=function(){return this._white=[],this._black=[],this},i.prototype.test=function(t,e){var n,r=Math.max(this._white.length,this._black.length);for(n=0;n<r;n++){if(this._white[n]&&o(this._white[n],t)&&a[e]>=this._white[n].l)return!0;if(this._black[n]&&o(this._black[n],t)&&a[e]<=this._black[n].l)return!1}return this.defaultResult},i.prototype.write=function(t,e,n){if(!this.enabled||this.test(t,e))return this.emit("item",t,e,n)},t.exports=i},function(t,e,n){var r=n(0),a=/\\n+$/,i=new r;i.write=function(t,e,n){var r=n.length-1;if("undefined"!=typeof console&&console.log){if(console.log.apply)return console.log.apply(console,[t,e].concat(n));if(JSON&&JSON.stringify){n[r]&&"string"==typeof n[r]&&(n[r]=n[r].replace(a,""));try{for(r=0;r<n.length;r++)n[r]=JSON.stringify(n[r])}catch(t){}console.log(n.join(" "))}}},i.formatters=["color","minilog"],i.color=n(18),i.minilog=n(19),t.exports=i},function(t,e,n){var r=n(0),a=n(4),i={debug:["cyan"],info:["purple"],warn:["yellow",!0],error:["red",!0]},o=new r;o.write=function(t,e,n){console.log;console[e]&&console[e].apply&&console[e].apply(console,["%c"+t+" %c"+e,a("gray"),a.apply(a,i[e])].concat(n))},o.pipe=function(){},t.exports=o},function(t,e,n){var r=n(0),a=n(4),i={debug:["gray"],info:["purple"],warn:["yellow",!0],error:["red",!0]},o=new r;o.write=function(t,e,n){var r=console.log;"debug"!=e&&console[e]&&(r=console[e]);var o=0;if("info"!=e){for(;o<n.length&&"string"==typeof n[o];o++);r.apply(console,["%c"+t+" "+n.slice(0,o).join(" "),a.apply(a,i[e])].concat(n.slice(o)))}else r.apply(console,["%c"+t,a.apply(a,i[e])].concat(n))},o.pipe=function(){},t.exports=o},function(t,e,n){var r=n(0),a=[],i=new r;i.write=function(t,e,n){a.push([t,e,n])},i.get=function(){return a},i.empty=function(){a=[]},t.exports=i},function(t,e,n){var r=n(0),a=!1,i=new r;i.write=function(t,e,n){if("undefined"!=typeof window&&"undefined"!=typeof JSON&&JSON.stringify&&JSON.parse)try{a||(a=window.localStorage.minilog?JSON.parse(window.localStorage.minilog):[]),a.push([(new Date).toString(),t,e,n]),window.localStorage.minilog=JSON.stringify(a)}catch(t){}},t.exports=i},function(t,e,n){var r=n(0),a=(new Date).valueOf().toString(36);function i(t){this.url=t.url||"",this.cache=[],this.timer=null,this.interval=t.interval||3e4,this.enabled=!0,this.jQuery=window.jQuery,this.extras={}}r.mixin(i),i.prototype.write=function(t,e,n){this.timer||this.init(),this.cache.push([t,e].concat(n))},i.prototype.init=function(){if(this.enabled&&this.jQuery){var t=this;this.timer=setTimeout((function(){var e,n,r=[],i=t.url;if(0==t.cache.length)return t.init();for(e=0;e<t.cache.length;e++)try{JSON.stringify(t.cache[e]),r.push(t.cache[e])}catch(t){}t.jQuery.isEmptyObject(t.extras)?(n=JSON.stringify({logs:r}),i=t.url+"?client_id="+a):n=JSON.stringify(t.jQuery.extend({logs:r},t.extras)),t.jQuery.ajax(i,{type:"POST",cache:!1,processData:!1,data:n,contentType:"application/json",timeout:1e4}).success((function(e,n,r){e.interval&&(t.interval=Math.max(1e3,e.interval))})).error((function(){t.interval=3e4})).always((function(){t.init()})),t.cache=[]}),this.interval)}},i.prototype.end=function(){},i.jQueryWait=function(t){if("undefined"!=typeof window&&(window.jQuery||window.$))return t(window.jQuery||window.$);"undefined"!=typeof window&&setTimeout((function(){i.jQueryWait(t)}),200)},t.exports=i},function(t,e,n){(function(t){function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,a=t}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}const a=n(24),i=n(32),o=n(34),s=n(1),c=n(3).isWorker,l=n(36)(null);t.Scratch=t.Scratch||{},Object.assign(t.Scratch,a,{canFetch:()=>Promise.resolve(!0),fetch:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((t,e)=>fetch(t,e)),canOpenWindow:()=>Promise.resolve(!1),openWindow:()=>Promise.reject(new Error("Scratch.openWindow not supported in sandboxed extensions")),canRedirect:()=>Promise.resolve(!1),redirect:()=>Promise.reject(new Error("Scratch.redirect not supported in sandboxed extensions")),canRecordAudio:()=>Promise.resolve(!1),canRecordVideo:()=>Promise.resolve(!1),canReadClipboard:()=>Promise.resolve(!1),canNotify:()=>Promise.resolve(!1),canGeolocate:()=>Promise.resolve(!1),canEmbed:()=>Promise.resolve(!1),canUnsandbox:()=>Promise.resolve(!1),canScreenshotCamera:()=>Promise.resolve(!1),canDownload:()=>Promise.resolve(!1),download:()=>Promise.reject(new Error("Scratch.download not supported in sandboxed extensions")),translate:l});const u=new class{constructor(){this.nextExtensionId=0,this.initialRegistrations=[],this.firstRegistrationPromise=new Promise(t=>{this.firstRegistrationCallback=t}),o.waitForConnection.then(()=>{o.call("extensions","allocateWorker").then(async t=>{const n=e(t,2),r=n[0],a=n[1];this.workerId=r;try{await(t=>{if(!c)return new Promise((e,n)=>{const r=document.createElement("script");r.onload=()=>e(),r.onerror=()=>{n(new Error("Error in sandboxed script: ".concat(t,". Check the console for more information.")))},r.src=t,document.body.appendChild(r)});importScripts(t)})(a),await this.firstRegistrationPromise;const t=this.initialRegistrations;this.initialRegistrations=null,Promise.all(t).then(()=>o.call("extensions","onWorkerInit",r))}catch(t){s.error(t),o.call("extensions","onWorkerInit",r,"".concat(t))}})}),this.extensions=[]}register(t){const e=this.nextExtensionId++;this.extensions.push(t);const n="extension.".concat(this.workerId,".").concat(e),r=o.setService(n,t).then(()=>o.call("extensions","registerExtensionService",n));return this.initialRegistrations&&(this.firstRegistrationCallback(),this.initialRegistrations.push(r)),r}};t.Scratch.extensions={register:u.register.bind(u)},t.ScratchExtensions=i(t.Scratch)}).call(this,n(2))},function(t,e,n){const r={ArgumentType:n(5),ArgumentAlignment:n(25),BlockType:n(6),BlockShape:n(26),NotchShape:n(27),TargetType:n(28),Cast:n(29),Clone:n(30),Color:n(7),external:n(31)};t.exports=r},function(t,e){t.exports={DEFAULT:null,LEFT:"LEFT",CENTER:"CENTRE",RIGHT:"RIGHT"}},function(t,e){t.exports={HEXAGONAL:1,ROUND:2,SQUARE:3,LEAF:4,PLUS:5,OCTAGONAL:6,BUMPED:7,INDENTED:8,SCRAPPED:9,ARROW:10,TICKET:11}},function(t,e){t.exports={SWITCH:"switchCase",HEXAGON:"hexagon",ROUND:"round",SQUARE:"square",LEAF:"leaf",PLUS:"plus",OCTAGONAL:"octagonal",BUMPED:"bumped",INDENTED:"indented",SCRAPPED:"scrapped",ARROW:"arrow",TICKET:"ticket",JIGSAW:"jigsaw",INVERTED:"inverted",PINCER:"pincer"}},function(t,e){t.exports={SPRITE:"sprite",STAGE:"stage"}},function(t,e,n){const r=n(7),a=t=>{if("string"!=typeof t)return!1;for(let e=0;e<t.length;e++){const n=t.charCodeAt(e);if(48===n||9===n)return!1}return!0};class i{static toNumber(t){if("number"==typeof t)return Number.isNaN(t)?0:t;const e=Number(t);return Number.isNaN(e)?0:e}static toBoolean(t){return"boolean"==typeof t?t:"string"==typeof t?""!==t&&"0"!==t&&"false"!==t.toLowerCase():Boolean(t)}static toString(t){return String(t)}static toRgbColorList(t){const e=i.toRgbColorObject(t);return[e.r,e.g,e.b]}static toRgbColorObject(t){let e;return"object"==typeof t&&(t+=""),"string"==typeof t&&"#"===t.substring(0,1)?(e=r.hexToRgb(t),e||(e={r:0,g:0,b:0,a:255})):e=r.decimalToRgb(i.toNumber(t)),e}static isWhiteSpace(t){return null===t||"string"==typeof t&&0===t.trim().length}static compare(t,e){let n=Number(t),r=Number(e);if(0===n&&a(t)?n=NaN:0===r&&a(e)&&(r=NaN),isNaN(n)||isNaN(r)){const n=String(t).toLowerCase(),r=String(e).toLowerCase();return n<r?-1:n>r?1:0}return n===1/0&&r===1/0||n===-1/0&&r===-1/0?0:n-r}static isInt(t){return"number"==typeof t?!!isNaN(t)||t===Math.floor(t):"boolean"==typeof t||"string"==typeof t&&t.indexOf(".")<0}static get LIST_INVALID(){return"INVALID"}static get LIST_ALL(){return"ALL"}static toListIndex(t,e,n){if("number"!=typeof t){if("all"===t)return n?i.LIST_ALL:i.LIST_INVALID;if("last"===t)return e>0?e:i.LIST_INVALID;if("random"===t||"any"===t)return e>0?1+Math.floor(Math.random()*e):i.LIST_INVALID}return(t=Math.floor(i.toNumber(t)))<1||t>e?i.LIST_INVALID:t}}t.exports=i},function(t,e){t.exports=class{static simple(t){return JSON.parse(JSON.stringify(t))}}},function(t,e){const n=t=>{if(!(t.startsWith("http:")||t.startsWith("https:")||t.startsWith("data:")||t.startsWith("blob:")))throw new Error("Unsupported URL: ".concat(t))},r={importModule:t=>(n(t),import(t)),fetch:async t=>{n(t);const e=await fetch(t);if(!e.ok)throw new Error("HTTP ".concat(e.status," fetching ").concat(t));return e},dataURL:async t=>{const e=await r.fetch(t),n=await e.blob();return new Promise((t,e)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>e(r.error),r.readAsDataURL(n)})},blob:async t=>(await r.fetch(t)).blob(),evalAndReturn:async(t,e)=>{const n=await r.fetch(t),a=await n.text(),i="".concat(a,"\\nreturn ").concat(e,";");return new Function(i)()}};t.exports=r},function(t,e,n){const r=n(5),a=n(6),i=n(33),o=i.argumentIndexToId,s=i.generateExtensionId,c=t=>{if(""===t||" "===t||"w"===t)return{type:a.COMMAND,async:"w"===t};if("r"===t||"R"===t)return{type:a.REPORTER,async:"R"===t};if("b"===t)return{type:a.BOOLEAN,async:!1};if("h"===t)return{type:a.HAT,async:!1};throw new Error("Unknown ScratchX block type: ".concat(t))},l=(t,e)=>{const n={},a="string"==typeof(i=e)||"number"==typeof i||"boolean"==typeof i;var i;if(a&&(n.defaultValue=e),"s"===t)n.type=r.STRING,a||(n.defaultValue="");else if("n"===t)n.type=r.NUMBER,a||(n.defaultValue=0);else{if("m"!==t[0])throw new Error("Unknown ScratchX argument type: ".concat(t));{n.type=r.STRING;const e=t.split(/\\.|:/)[1];n.menu=e}}return n},u=(t,e,n)=>r=>{const a=[];for(let t=0;t<e;t++)a.push(r[o(t)]);return n?new Promise(e=>{t(...a,e)}):t(...a)},d=new Map;t.exports=t=>({register:(e,n,r)=>{const a=((t,e,n)=>{const r={id:s(t),name:e.displayName||t,blocks:[],color1:"#4a4a5e",color2:"#31323f",color3:"#191a21"},a={getInfo:()=>r,_getStatus:n._getStatus};e.url&&(r.docsURI=e.url);for(const t of e.blocks){if(1===t.length){r.blocks.push("---");continue}const e=t[0],i=t[1],s=t[2],d=t.slice(3);let f="";const h=[],p=i.split(/%([\\w.:]+)/g);for(let t=0;t<p.length;t++){const e=p[t];if(t%2==1){l(e);const n=Math.floor(t/2).toString(),r=d[n],a=o(n);h[a]=l(e,r),f+="[".concat(a,"]")}else f+=e}const m=c(e),g={opcode:s,blockType:m.type,text:f,arguments:h};r.blocks.push(g);const y=n[s],v=h.length;a[s]=u(y,v,m.async)}const i=e.menus;if(i){const t={};for(const e of Object.keys(i)||{}){const n={items:i[e]};t[e]=n}r.menus=t}return a})(e,n,r);d.set(e,a),t.extensions.register(a)},getStatus:t=>{const e=d.get(t);return e?e._getStatus():{status:0,msg:"does not exist"}}})},function(t,e){t.exports={generateExtensionId:t=>{const e=t.replace(/[^a-z0-9]/gi,"").toLowerCase();return"sbx".concat(e)},argumentIndexToId:t=>t.toString()}},function(t,e,n){const r=n(35),a=n(1),i=n(3).centralDispatchService;t.exports=new class extends r{constructor(){super(),this._connectionPromise=new Promise(t=>{this._onConnect=t}),this.services={},this._onMessage=this._onMessage.bind(this,i),"undefined"!=typeof self&&(self.onmessage=this._onMessage)}get waitForConnection(){return this._connectionPromise}setService(t,e){return this.services.hasOwnProperty(t)&&a.warn("Worker dispatch replacing existing service provider for ".concat(t)),this.services[t]=e,this.waitForConnection.then(()=>this._remoteCall(i,"dispatch","setService",t))}_getServiceProvider(t){const e=this.services[t];return{provider:e||i,isRemote:!e}}_onDispatchMessage(t,e){let n;switch(e.method){case"handshake":n=this._onConnect();break;case"terminate":setTimeout(()=>self.close(),0),n=Promise.resolve();break;default:a.error("Worker dispatch received message for unknown method: ".concat(e.method))}return n}}},function(t,e,n){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],c=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){l=!0,a=t}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw a}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}const i=n(1);t.exports=class{constructor(){this.callbacks=[],this.nextResponseId=0}call(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return this.transferCall(t,e,null,...r)}transferCall(t,e,n){try{const o=this._getServiceProvider(t),s=o.provider,c=o.isRemote;if(s){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];if(c)return this._remoteTransferCall(s,t,e,n,...a);const o=s[e].apply(s,a);return Promise.resolve(o)}return Promise.reject(new Error("Service not found: ".concat(t)))}catch(t){return Promise.reject(t)}}_isRemoteService(t){var e,n;return null!==(e=null===(n=this._getServiceProvider(t))||void 0===n?void 0:n.isRemote)&&void 0!==e&&e}_remoteCall(t,e,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];return this._remoteTransferCall(t,e,n,null,...a)}_remoteTransferCall(t,e,n,r){for(var a=arguments.length,i=new Array(a>4?a-4:0),o=4;o<a;o++)i[o-4]=arguments[o];return new Promise((a,o)=>{const s=this._storeCallbacks(a,o);i.length>0&&"function"==typeof i[i.length-1].func&&(i.pop(),i.pop()),r?t.postMessage({service:e,method:n,responseId:s,args:i},r):t.postMessage({service:e,method:n,responseId:s,args:i})})}_storeCallbacks(t,e){const n=this.nextResponseId++;return this.callbacks[n]=[t,e],n}_deliverResponse(t,e){try{const n=r(this.callbacks[t],2),a=n[0],i=n[1];delete this.callbacks[t],e.error?i(e.error):a(e.result)}catch(t){i.error("Dispatch callback failed: ".concat(t))}}_onMessage(t,e){const n=e.data;let r;n.args=n.args||[],n.service?r="dispatch"===n.service?this._onDispatchMessage(t,n):this.call(n.service,n.method,...n.args):void 0===n.responseId?i.error("Dispatch caught malformed message from a worker: ".concat(JSON.stringify(e))):this._deliverResponse(n.responseId,n),r&&(void 0===n.responseId?i.error("Dispatch message missing required response ID: ".concat(JSON.stringify(e))):r.then(e=>t.postMessage({responseId:n.responseId,result:e}),e=>t.postMessage({responseId:n.responseId,error:"".concat(e)})))}_getServiceProvider(t){throw new Error("Could not get provider for ".concat(t,": _getServiceProvider not implemented"))}_onDispatchMessage(t,e){throw new Error("Unimplemented dispatch message handler cannot handle ".concat(e.method," method"))}}},function(t,e,n){const r=n(37);t.exports=t=>{const e=r.namespace(),n=(t,n)=>{if(t&&"object"==typeof t);else{if("string"!=typeof t)throw new Error("unsupported data type in translate()");t={default:t}}return e(t,n)},a=t=>"_".concat(t),i=()=>t?t.getLocale():"undefined"!=typeof navigator?navigator.language:"en";let o={};return n.setup=t=>{t&&(o=t),e.setup({locale:i(),missingTranslation:"ignore",generateId:a,translations:o})},Object.defineProperty(n,"language",{configurable:!0,enumerable:!0,get:()=>i()}),n.setup({}),t&&t.on("LOCALE_CHANGED",()=>{n.setup(null)}),n}},function(t,e,n){"use strict";var r=n(38),a=n(39),i=n(10),o=n(9),s=n(8);function c(t,e){return Object.keys(e).forEach((function(n){t[n]=e[n]})),t}t.exports=function t(){var e=c({},s),n="en",l={},u=function(t){return t},d=null,f="warning",h={};function p(t,e,i){var o="string"==typeof t?t:t.default,s=y(o,"object"==typeof t&&t.id||u(o),i||n);return(s.format||(s.format=a(r(s.message),i||n,h)))(e)}p.rich=function(t,e,i){var o="string"==typeof t?t:t.default,s=y(o,"object"==typeof t&&t.id||u(o),i||n);return(s.toParts||(s.toParts=a.toParts(r(s.message,{tagsType:m}),i||n,h)))(e)};var m="<>";function g(t,e){var n=t[2];return function(t,e){var r="object"==typeof n?function(t,e){return Object.keys(t).reduce((function(n,r){return n[r]=t[r](e),n}),{})}(n,e):n;return"function"==typeof t?t(r):t}}function y(t,e,n){var r=o(n,l)||"en",a=l[r]||(l[r]={}),i=a[e];if("string"==typeof i&&(i=a[e]={message:i}),!i){var s=\'Translation for "\'+e+\'" in "\'+r+\'" is missing\';if("warning"===f)"undefined"!=typeof console&&console.warn(s);else if("ignore"!==f)throw new Error(s);var c="function"==typeof d?d(t,e,r)||t:d||t;i=a[e]={message:c}}return i}function v(t,e,r,a,s){"object"==typeof r&&"object"!=typeof a&&(s=a,a=r,r=0);var c=o(s||n,i),l=c&&i[c][t]||b;return a["="+ +e]||a[l(e-r)]||a.other}function b(){return"other"}return h[m]=g,p.setup=function(t){return(t=t||{}).locale&&(n=t.locale),"translations"in t&&(l=t.translations||{}),t.generateId&&(u=t.generateId),"missingReplacement"in t&&(d=t.missingReplacement),t.missingTranslation&&(f=t.missingTranslation),t.formats&&(t.formats.number&&c(e.number,t.formats.number),t.formats.date&&c(e.date,t.formats.date),t.formats.time&&c(e.time,t.formats.time)),t.types&&((h=t.types)[m]=g),{locale:n,translations:l,generateId:u,missingReplacement:d,missingTranslation:f,formats:e,types:h}},p.number=function(t,r,a){var i=r&&e.number[r]||e.parseNumberPattern(r)||e.number.default;return new Intl.NumberFormat(a||n,i).format(t)},p.date=function(t,r,a){var i=r&&e.date[r]||e.parseDatePattern(r)||e.date.default;return new Intl.DateTimeFormat(a||n,i).format(t)},p.time=function(t,r,a){var i=r&&e.time[r]||e.parseDatePattern(r)||e.time.default;return new Intl.DateTimeFormat(a||n,i).format(t)},p.select=function(t,e){return e[t]||e.other},p.custom=function(t,e,n,r){return t[1]in h?h[t[1]](t,e)(n,r):n},p.plural=v.bind(null,"cardinal"),p.selectordinal=v.bind(null,"ordinal"),p.namespace=t,p}()},function(t,e,n){"use strict";var r=["number","date","time","ordinal","duration","spellout"],a=["plural","select","selectordinal"];function i(t,e){var n=t.pattern,r=n.length,a=[],i=t.index,s=o(t,e);for(s&&a.push(s),s&&t.tokens&&t.tokens.push(["text",n.slice(i,t.index)]);t.index<r;){if("}"===n[t.index]){if(!e)throw p(t);break}if(e&&t.tagsType&&"</"===n.slice(t.index,t.index+"</".length))break;a.push(l(t)),i=t.index,(s=o(t,e))&&a.push(s),s&&t.tokens&&t.tokens.push(["text",n.slice(i,t.index)])}return a}function o(t,e){for(var n=t.pattern,r=n.length,a="plural"===e||"selectordinal"===e,i=!!t.tagsType,o="{style}"===e,c="";t.index<r;){var l=n[t.index];if("{"===l||"}"===l||a&&"#"===l||i&&"<"===l||o&&s(l.charCodeAt(0)))break;if("\'"===l)if("\'"===(l=n[++t.index]))c+=l,++t.index;else if("{"===l||"}"===l||a&&"#"===l||i&&"<"===l||o)for(c+=l;++t.index<r;)if("\'"===(l=n[t.index])&&"\'"===n[t.index+1])c+="\'",++t.index;else{if("\'"===l){++t.index;break}c+=l}else c+="\'";else c+=l,++t.index}return c}function s(t){return t>=9&&t<=13||32===t||133===t||160===t||6158===t||t>=8192&&t<=8205||8232===t||8233===t||8239===t||8287===t||8288===t||12288===t||65279===t}function c(t){for(var e=t.pattern,n=e.length,r=t.index;t.index<n&&s(e.charCodeAt(t.index));)++t.index;r<t.index&&t.tokens&&t.tokens.push(["space",t.pattern.slice(r,t.index)])}function l(t){var e=t.pattern;if("#"===e[t.index])return t.tokens&&t.tokens.push(["syntax","#"]),++t.index,["#"];var n=function(t){var e=t.tagsType;if(!e||"<"!==t.pattern[t.index])return;if("</"===t.pattern.slice(t.index,t.index+"</".length))throw p(t,null,"closing tag without matching opening tag");t.tokens&&t.tokens.push(["syntax","<"]);++t.index;var n=u(t,!0);if(!n)throw p(t,"placeholder id");t.tokens&&t.tokens.push(["id",n]);if(c(t),"/>"===t.pattern.slice(t.index,t.index+"/>".length))return t.tokens&&t.tokens.push(["syntax","/>"]),t.index+="/>".length,[n,e];if(">"!==t.pattern[t.index])throw p(t,">");t.tokens&&t.tokens.push(["syntax",">"]);++t.index;var r=i(t,e),a=t.index;if("</"!==t.pattern.slice(t.index,t.index+"</".length))throw p(t,"</"+n+">");t.tokens&&t.tokens.push(["syntax","</"]);t.index+="</".length;var o=u(t,!0);o&&t.tokens&&t.tokens.push(["id",o]);if(n!==o)throw t.index=a,p(t,"</"+n+">","</"+o+">");if(c(t),">"!==t.pattern[t.index])throw p(t,">");t.tokens&&t.tokens.push(["syntax",">"]);return++t.index,[n,e,{children:r}]}(t);if(n)return n;if("{"!==e[t.index])throw p(t,"{");t.tokens&&t.tokens.push(["syntax","{"]),++t.index,c(t);var a=u(t);if(!a)throw p(t,"placeholder id");t.tokens&&t.tokens.push(["id",a]),c(t);var o=e[t.index];if("}"===o)return t.tokens&&t.tokens.push(["syntax","}"]),++t.index,[a];if(","!==o)throw p(t,", or }");t.tokens&&t.tokens.push(["syntax",","]),++t.index,c(t);var s,l=u(t);if(!l)throw p(t,"placeholder type");if(t.tokens&&t.tokens.push(["type",l]),c(t),"}"===(o=e[t.index])){if(t.tokens&&t.tokens.push(["syntax","}"]),"plural"===l||"selectordinal"===l||"select"===l)throw p(t,l+" sub-messages");return++t.index,[a,l]}if(","!==o)throw p(t,", or }");if(t.tokens&&t.tokens.push(["syntax",","]),++t.index,c(t),"plural"===l||"selectordinal"===l){var h=function(t){var e=t.pattern,n=e.length,r=0;if("offset:"===e.slice(t.index,t.index+"offset:".length)){t.tokens&&t.tokens.push(["offset","offset"],["syntax",":"]),t.index+="offset:".length,c(t);for(var a=t.index;t.index<n&&((i=e.charCodeAt(t.index))>=48&&i<=57);)++t.index;if(a===t.index)throw p(t,"offset number");t.tokens&&t.tokens.push(["number",e.slice(a,t.index)]),r=+e.slice(a,t.index)}var i;return r}(t);c(t),s=[a,l,h,f(t,l)]}else if("select"===l)s=[a,l,f(t,l)];else if(r.indexOf(l)>=0)s=[a,l,d(t)];else{var m=t.index,g=d(t);c(t),"{"===e[t.index]&&(t.index=m,g=f(t,l)),s=[a,l,g]}if(c(t),"}"!==e[t.index])throw p(t,"}");return t.tokens&&t.tokens.push(["syntax","}"]),++t.index,s}function u(t,e){for(var n=t.pattern,r=n.length,a="";t.index<r;){var i=n[t.index];if("{"===i||"}"===i||","===i||"#"===i||"\'"===i||s(i.charCodeAt(0))||e&&("<"===i||">"===i||"/"===i))break;a+=i,++t.index}return a}function d(t){var e=t.index,n=o(t,"{style}");if(!n)throw p(t,"placeholder style name");return t.tokens&&t.tokens.push(["style",t.pattern.slice(e,t.index)]),n}function f(t,e){for(var n=t.pattern,r=n.length,i={};t.index<r&&"}"!==n[t.index];){var o=u(t);if(!o)throw p(t,"sub-message selector");t.tokens&&t.tokens.push(["selector",o]),c(t),i[o]=h(t,e),c(t)}if(!i.other&&a.indexOf(e)>=0)throw p(t,null,null,\'"other" sub-message must be specified in \'+e);return i}function h(t,e){if("{"!==t.pattern[t.index])throw p(t,"{ to start sub-message");t.tokens&&t.tokens.push(["syntax","{"]),++t.index;var n=i(t,e);if("}"!==t.pattern[t.index])throw p(t,"} to end sub-message");return t.tokens&&t.tokens.push(["syntax","}"]),++t.index,n}function p(t,e,n,r){var a=t.pattern,i=a.slice(0,t.index).split(/\\r?\\n/),o=t.index,s=i.length,c=i.slice(-1)[0].length;return n=n||(t.index>=a.length?"end of message pattern":u(t)||a[t.index]),r||(r=function(t,e){return t?"Expected "+t+" but found "+e:"Unexpected "+e+" found"}(e,n)),new m(r+=" in "+a.replace(/\\r?\\n/g,"\\n"),e,n,o,s,c)}function m(t,e,n,r,a,i){Error.call(this,t),this.name="SyntaxError",this.message=t,this.expected=e,this.found=n,this.offset=r,this.line=a,this.column=i}e=t.exports=function(t,e){return i({pattern:String(t),index:0,tagsType:e&&e.tagsType||null,tokens:e&&e.tokens||null},"")},m.prototype=Object.create(Error.prototype),e.SyntaxError=m},function(t,e,n){"use strict";var r=n(8),a=n(9),i=n(10);function o(t,e,n,r,a){var i=t.map((function(t){return function(t,e,n,r,a){if("string"==typeof t){var i=t;return function(){return i}}var c,l=t[0],u=t[1];if(e&&"#"===t[0]){l=e[0];var d=e[2],h=(r.number||f.number)([l,"number"],n);return function(t){return h(s(l,t)-d,t)}}"plural"===u||"selectordinal"===u?(c={},Object.keys(t[3]).forEach((function(e){c[e]=o(t[3][e],t,n,r,a)})),t=[t[0],t[1],t[2],c]):t[2]&&"object"==typeof t[2]&&(c={},Object.keys(t[2]).forEach((function(e){c[e]=o(t[2][e],t,n,r,a)})),t=[t[0],t[1],c]);var p=u&&(r[u]||f[u]);if(p){var m=p(t,n);return function(t){return m(s(l,t),t)}}return a?function(t){return String(s(l,t))}:function(t){return s(l,t)}}(t,e,n,r,a)}));return a?1===i.length?i[0]:function(t){for(var e="",n=0;n<i.length;++n)e+=i[n](t);return e}:function(t){return i.reduce((function(e,n){return e.concat(n(t))}),[])}}function s(t,e){if(e&&t in e)return e[t];for(var n=t.split("."),r=e,a=0,i=n.length;r&&a<i;++a)r=r[n[a]];return r}function c(t,e){var n=t[2],a=r.number[n]||r.parseNumberPattern(n)||r.number.default;return new Intl.NumberFormat(e,a).format}function l(t,e){var n=t[1],a=t[2],i=r[n][a]||r.parseDatePattern(a)||r[n].default;return new Intl.DateTimeFormat(e,i).format}function u(t,e){var n,r="selectordinal"===t[1]?"ordinal":"cardinal",o=t[2],s=t[3];if(Intl.PluralRules&&Intl.PluralRules.supportedLocalesOf(e).length>0)n=new Intl.PluralRules(e,{type:r});else{var c=a(e,i),l=c&&i[c][r]||d;n={select:l}}return function(t,e){return(s["="+ +t]||s[n.select(t-o)]||s.other)(e)}}function d(){return"other"}(e=t.exports=function(t,e,n){return o(t,null,e||"en",n||{},!0)}).toParts=function(t,e,n){return o(t,null,e||"en",n||{},!1)};var f={number:c,ordinal:c,spellout:c,duration:function(t,e){var n=t[2],a=r.duration[n]||r.duration.default,i=new Intl.NumberFormat(e,a.seconds).format,o=new Intl.NumberFormat(e,a.minutes).format,s=new Intl.NumberFormat(e,a.hours).format,c=/^fi$|^fi-|^da/.test(String(e))?".":":";return function(t,e){if(t=+t,!isFinite(t))return i(t);var n=~~(t/60/60),r=~~(t/60%60),a=(n?s(Math.abs(n))+c:"")+o(Math.abs(r))+c+i(Math.abs(t%60));return t<0?s(-1).replace(s(1),a):a}},date:l,time:l,plural:u,selectordinal:u,select:function(t,e){var n=t[2];return function(t,e){return(n[t]||n.other)(e)}}};e.types=f}]);'}}]);
|
|
2
|
+
// d4717322ac8ca2bf1148dfb59dc94708ea2b21582c2e2dd1e8397545d363d2cb =^..^=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
exports.ids=[2],exports.modules=[,,,,,,,,,,,function(t,r,e){"use strict";t.exports=TypeError},function(t,r,e){"use strict";var o=e(47);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},function(t,r,e){"use strict";var o=e(50);t.exports=Function.prototype.bind||o},function(t,r,e){"use strict";var o=Object.defineProperty||!1;if(o)try{o({},"a",{value:1})}catch(t){o=!1}t.exports=o},function(t,r,e){
|
|
2
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3
|
+
var o=e(8),n=o.Buffer;function i(t,r){for(var e in t)r[e]=t[e]}function a(t,r,e){return n(t,r,e)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=o:(i(o,r),r.Buffer=a),a.prototype=Object.create(n.prototype),i(n,a),a.from=function(t,r,e){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,r,e)},a.alloc=function(t,r,e){if("number"!=typeof t)throw new TypeError("Argument must be a number");var o=n(t);return void 0!==r?"string"==typeof e?o.fill(r,e):o.fill(r):o.fill(0),o},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,r,e){"use strict";var o=e(13),n=e(11),i=e(17),a=e(27);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return a(o,i,t)}},function(t,r,e){"use strict";t.exports=Function.prototype.call},function(t,r,e){"use strict";t.exports=Function.prototype.apply},function(t,r,e){"use strict";var o=e(20),n=e(16),i=n([o("%String.prototype.indexOf%")]);t.exports=function(t,r){var e=o(t,!!r);return"function"==typeof e&&i(t,".prototype.")>-1?n([e]):e}},function(t,r,e){"use strict";var o=e(21),n=e(34),i=e(35),a=e(36),f=e(37),u=e(22),p=e(11),c=e(38),y=e(39),s=e(40),l=e(41),h=e(42),b=e(43),d=e(44),g=e(45),v=Function,A=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},m=e(12),w=e(14),_=function(){throw new p},S=m?function(){try{return _}catch(t){try{return m(arguments,"callee").get}catch(t){return _}}}():_,P=e(48)(),x=e(24),O=e(26),E=e(25),j=e(18),I=e(17),U={},F="undefined"!=typeof Uint8Array&&x?x(Uint8Array):void 0,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":P&&x?x([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":i,"%Float16Array%":"undefined"==typeof Float16Array?void 0:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":U,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&x?x(x([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&P&&x?x((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":a,"%ReferenceError%":f,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&P&&x?x((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&x?x(""[Symbol.iterator]()):void 0,"%Symbol%":P?Symbol:void 0,"%SyntaxError%":u,"%ThrowTypeError%":S,"%TypedArray%":F,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":j,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":O,"%Math.abs%":y,"%Math.floor%":s,"%Math.max%":l,"%Math.min%":h,"%Math.pow%":b,"%Math.round%":d,"%Math.sign%":g,"%Reflect.getPrototypeOf%":E};if(x)try{null.error}catch(t){var R=x(x(t));B["%Error.prototype%"]=R}var T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=e(13),k=e(52),N=M.call(I,Array.prototype.concat),G=M.call(j,Array.prototype.splice),D=M.call(I,String.prototype.replace),C=M.call(I,String.prototype.slice),W=M.call(I,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,V=function(t){var r=C(t,0,1),e=C(t,-1);if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected opening `%`");var o=[];return D(t,z,(function(t,r,e,n){o[o.length]=e?D(n,L,"$1"):r||t})),o},J=function(t,r){var e,o=t;if(k(T,o)&&(o="%"+(e=T[o])[0]+"%"),k(B,o)){var n=B[o];if(n===U&&(n=function t(r){var e;if("%AsyncFunction%"===r)e=A("async function () {}");else if("%GeneratorFunction%"===r)e=A("function* () {}");else if("%AsyncGeneratorFunction%"===r)e=A("async function* () {}");else if("%AsyncGenerator%"===r){var o=t("%AsyncGeneratorFunction%");o&&(e=o.prototype)}else if("%AsyncIteratorPrototype%"===r){var n=t("%AsyncGenerator%");n&&x&&(e=x(n.prototype))}return B[r]=e,e}(o)),void 0===n&&!r)throw new p("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:e,name:o,value:n}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,r){if("string"!=typeof t||0===t.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof r)throw new p('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var e=V(t),o=e.length>0?e[0]:"",n=J("%"+o+"%",r),i=n.name,a=n.value,f=!1,c=n.alias;c&&(o=c[0],G(e,N([0,1],c)));for(var y=1,s=!0;y<e.length;y+=1){var l=e[y],h=C(l,0,1),b=C(l,-1);if(('"'===h||"'"===h||"`"===h||'"'===b||"'"===b||"`"===b)&&h!==b)throw new u("property names with quotes must have matching quotes");if("constructor"!==l&&s||(f=!0),k(B,i="%"+(o+="."+l)+"%"))a=B[i];else if(null!=a){if(!(l in a)){if(!r)throw new p("base intrinsic for "+t+" exists, but the property is not available.");return}if(m&&y+1>=e.length){var d=m(a,l);a=(s=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[l]}else s=k(a,l),a=a[l];s&&!f&&(B[i]=a)}}return a}},function(t,r,e){"use strict";t.exports=Object},function(t,r,e){"use strict";t.exports=SyntaxError},function(t,r,e){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},r=Symbol("test"),e=Object(r);if("string"==typeof r)return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;for(var o in t[r]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==r)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,r);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(t,r,e){"use strict";var o=e(25),n=e(26),i=e(49);t.exports=o?function(t){return o(t)}:n?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return n(t)}:i?function(t){return i(t)}:null},function(t,r,e){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},function(t,r,e){"use strict";var o=e(21);t.exports=o.getPrototypeOf||null},function(t,r,e){"use strict";var o=e(13),n=e(18),i=e(17),a=e(51);t.exports=a||o.call(i,n)},function(t,r,e){try{var o=e(2);if("function"!=typeof o.inherits)throw"";t.exports=o.inherits}catch(r){t.exports=e(29)}},function(t,r){"function"==typeof Object.create?t.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,r){if(r){t.super_=r;var e=function(){};e.prototype=r.prototype,t.prototype=new e,t.prototype.constructor=t}}},function(t,r,e){"use strict";var o=e(15).Buffer,n=e(31);function i(t,r){this._block=o.alloc(t),this._finalSize=r,this._blockSize=t,this._len=0}i.prototype.update=function(t,r){t=n(t,r||"utf8");for(var e=this._block,o=this._blockSize,i=t.length,a=this._len,f=0;f<i;){for(var u=a%o,p=Math.min(i-f,o-u),c=0;c<p;c++)e[u+c]=t[f+c];f+=p,(a+=p)%o==0&&this._update(e)}return this._len+=i,this},i.prototype.digest=function(t){var r=this._len%this._blockSize;this._block[r]=128,this._block.fill(0,r+1),r>=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=8*this._len;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var o=(4294967295&e)>>>0,n=(e-o)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(o,this._blockSize-4)}this._update(this._block);var i=this._hash();return t?i.toString(t):i},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,r,e){"use strict";var o=e(15).Buffer,n=e(32),i=e(33),a=ArrayBuffer.isView||function(t){try{return i(t),!0}catch(t){return!1}},f="undefined"!=typeof Uint8Array,u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,p=u&&(o.prototype instanceof Uint8Array||o.TYPED_ARRAY_SUPPORT);t.exports=function(t,r){if(o.isBuffer(t))return t.constructor&&!("isBuffer"in t)?o.from(t):t;if("string"==typeof t)return o.from(t,r);if(u&&a(t)){if(0===t.byteLength)return o.alloc(0);if(p){var e=o.from(t.buffer,t.byteOffset,t.byteLength);if(e.byteLength===t.byteLength)return e}var i=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),c=o.from(i);if(c.length===t.byteLength)return c}if(f&&t instanceof Uint8Array)return o.from(t);var y=n(t);if(y)for(var s=0;s<t.length;s+=1){var l=t[s];if("number"!=typeof l||l<0||l>255||~~l!==l)throw new RangeError("Array items must be numbers in the range 0-255.")}if(y||o.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return o.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,r,e){"use strict";var o=e(11),n=e(19)("TypedArray.prototype.buffer",!0),i=e(53);t.exports=n||function(t){if(!i(t))throw new o("Not a Typed Array");return t.buffer}},function(t,r,e){"use strict";t.exports=Error},function(t,r,e){"use strict";t.exports=EvalError},function(t,r,e){"use strict";t.exports=RangeError},function(t,r,e){"use strict";t.exports=ReferenceError},function(t,r,e){"use strict";t.exports=URIError},function(t,r,e){"use strict";t.exports=Math.abs},function(t,r,e){"use strict";t.exports=Math.floor},function(t,r,e){"use strict";t.exports=Math.max},function(t,r,e){"use strict";t.exports=Math.min},function(t,r,e){"use strict";t.exports=Math.pow},function(t,r,e){"use strict";t.exports=Math.round},function(t,r,e){"use strict";var o=e(46);t.exports=function(t){return o(t)||0===t?t:t<0?-1:1}},function(t,r,e){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},function(t,r,e){"use strict";t.exports=Object.getOwnPropertyDescriptor},function(t,r,e){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=e(23);t.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},function(t,r,e){"use strict";var o,n=e(16),i=e(12);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!o&&i&&i(Object.prototype,"__proto__"),f=Object,u=f.getPrototypeOf;t.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof u&&function(t){return u(null==t?t:f(t))}},function(t,r,e){"use strict";var o="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,i=Math.max,a=function(t,r){for(var e=[],o=0;o<t.length;o+=1)e[o]=t[o];for(var n=0;n<r.length;n+=1)e[n+t.length]=r[n];return e},f=function(t,r){for(var e=[],o=r||0,n=0;o<t.length;o+=1,n+=1)e[n]=t[o];return e},u=function(t,r){for(var e="",o=0;o<t.length;o+=1)e+=t[o],o+1<t.length&&(e+=r);return e};t.exports=function(t){var r=this;if("function"!=typeof r||"[object Function]"!==n.apply(r))throw new TypeError(o+r);for(var e,p=f(arguments,1),c=function(){if(this instanceof e){var o=r.apply(this,a(p,arguments));return Object(o)===o?o:this}return r.apply(t,a(p,arguments))},y=i(0,r.length-p.length),s=[],l=0;l<y;l++)s[l]="$"+l;if(e=Function("binder","return function ("+u(s,",")+"){ return binder.apply(this,arguments); }")(c),r.prototype){var h=function(){};h.prototype=r.prototype,e.prototype=new h,h.prototype=null}return e}},function(t,r,e){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},function(t,r,e){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=e(13);t.exports=i.call(o,n)},function(t,r,e){"use strict";var o=e(54);t.exports=function(t){return!!o(t)}},function(t,r,e){"use strict";var o=e(55),n=e(57),i=e(59),a=e(19),f=e(12),u=e(24),p=a("Object.prototype.toString"),c=e(64)(),y="undefined"==typeof globalThis?global:globalThis,s=n(),l=a("String.prototype.slice"),h=a("Array.prototype.indexOf",!0)||function(t,r){for(var e=0;e<t.length;e+=1)if(t[e]===r)return e;return-1},b={__proto__:null};o(s,c&&f&&u?function(t){var r=new y[t];if(Symbol.toStringTag in r&&u){var e=u(r),o=f(e,Symbol.toStringTag);if(!o&&e){var n=u(e);o=f(n,Symbol.toStringTag)}if(o&&o.get){var a=i(o.get);b["$"+t]=a}}}:function(t){var r=new y[t],e=r.slice||r.set;if(e){var o=i(e);b["$"+t]=o}}),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!c){var r=l(p(t),8,-1);return function(t){return h(s,t)>-1}(r)?r:"Object"===r&&function(t){var r=!1;return o(b,(function(e,o){if(!r)try{e(t),r=l(o,1)}catch(t){}})),r}(t)}return f?function(t){var r=!1;return o(b,(function(e,o){if(!r)try{"$"+e(t)===o&&(r=l(o,1))}catch(t){}})),r}(t):null}},function(t,r,e){"use strict";var o=e(56),n=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(t,r,e){for(var o=0,n=t.length;o<n;o++)i.call(t,o)&&(null==e?r(t[o],o,t):r.call(e,t[o],o,t))},f=function(t,r,e){for(var o=0,n=t.length;o<n;o++)null==e?r(t.charAt(o),o,t):r.call(e,t.charAt(o),o,t)},u=function(t,r,e){for(var o in t)i.call(t,o)&&(null==e?r(t[o],o,t):r.call(e,t[o],o,t))};function p(t){return"[object Array]"===n.call(t)}t.exports=function(t,r,e){if(!o(r))throw new TypeError("iterator must be a function");var n;arguments.length>=3&&(n=e),p(t)?a(t,r,n):"string"==typeof t?f(t,r,n):u(t,r,n)}},function(t,r,e){"use strict";var o,n,i=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{o=Object.defineProperty({},"length",{get:function(){throw n}}),n={},a((function(){throw 42}),null,o)}catch(t){t!==n&&(a=null)}else a=null;var f=/^\s*class\b/,u=function(t){try{var r=i.call(t);return f.test(r)}catch(t){return!1}},p=function(t){try{return!u(t)&&(i.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,y="function"==typeof Symbol&&!!Symbol.toStringTag,s=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(l=function(t){if((s||!t)&&(void 0===t||"object"==typeof t))try{var r=c.call(t);return("[object HTMLAllCollection]"===r||"[object HTML document.all class]"===r||"[object HTMLCollection]"===r||"[object Object]"===r)&&null==t("")}catch(t){}return!1})}t.exports=a?function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{a(t,null,o)}catch(t){if(t!==n)return!1}return!u(t)&&p(t)}:function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(y)return p(t);if(u(t))return!1;var r=c.call(t);return!("[object Function]"!==r&&"[object GeneratorFunction]"!==r&&!/^\[object HTML/.test(r))&&p(t)}},function(t,r,e){"use strict";var o=e(58),n="undefined"==typeof globalThis?global:globalThis;t.exports=function(){for(var t=[],r=0;r<o.length;r++)"function"==typeof n[o[r]]&&(t[t.length]=o[r]);return t}},function(t,r,e){"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},function(t,r,e){"use strict";var o=e(60),n=e(14),i=e(16),a=e(63);t.exports=function(t){var r=i(arguments),e=1+t.length-(arguments.length-1);return o(r,e>0?e:0,!0)},n?n(t.exports,"apply",{value:a}):t.exports.apply=a},function(t,r,e){"use strict";var o=e(20),n=e(61),i=e(62)(),a=e(12),f=e(11),u=o("%Math.floor%");t.exports=function(t,r){if("function"!=typeof t)throw new f("`fn` is not a function");if("number"!=typeof r||r<0||r>4294967295||u(r)!==r)throw new f("`length` must be a positive 32-bit integer");var e=arguments.length>2&&!!arguments[2],o=!0,p=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(o=!1),c&&!c.writable&&(p=!1)}return(o||p||!e)&&(i?n(t,"length",r,!0,!0):n(t,"length",r)),t}},function(t,r,e){"use strict";var o=e(14),n=e(22),i=e(11),a=e(12);t.exports=function(t,r,e){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new i("`obj` must be an object or a function`");if("string"!=typeof r&&"symbol"!=typeof r)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],y=!!a&&a(t,r);if(o)o(t,r,{configurable:null===p&&y?y.configurable:!p,enumerable:null===f&&y?y.enumerable:!f,value:e,writable:null===u&&y?y.writable:!u});else{if(!c&&(f||u||p))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[r]=e}}},function(t,r,e){"use strict";var o=e(14),n=function(){return!!o};n.hasArrayLengthDefineBug=function(){if(!o)return null;try{return 1!==o([],"length",{value:1}).length}catch(t){return!0}},t.exports=n},function(t,r,e){"use strict";var o=e(13),n=e(18),i=e(27);t.exports=function(){return i(o,n,arguments)}},function(t,r,e){"use strict";var o=e(23);t.exports=function(){return o()&&!!Symbol.toStringTag}},function(t,r,e){"use strict";var o=e(28),n=e(30),i=e(15).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],f=new Array(64);function u(){this.init(),this._w=f,n.call(this,64,56)}function p(t,r,e){return e^t&(r^e)}function c(t,r,e){return t&r|e&(t|r)}function y(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function s(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function l(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}o(u,n),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var r,e=this._w,o=0|this._a,n=0|this._b,i=0|this._c,f=0|this._d,u=0|this._e,h=0|this._f,b=0|this._g,d=0|this._h,g=0;g<16;++g)e[g]=t.readInt32BE(4*g);for(;g<64;++g)e[g]=0|(((r=e[g-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+e[g-7]+l(e[g-15])+e[g-16];for(var v=0;v<64;++v){var A=d+s(u)+p(u,h,b)+a[v]+e[v]|0,m=y(o)+c(o,n,i)|0;d=b,b=h,h=u,u=f+A|0,f=i,i=n,n=o,o=A+m|0}this._a=o+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=f+this._d|0,this._e=u+this._e|0,this._f=h+this._f|0,this._g=b+this._g|0,this._h=d+this._h|0},u.prototype._hash=function(){var t=i.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u}];
|