kollapsminoriteten/wp-content/plugins/blocksy-companion/static/bundle/options.js

23 lines
74 KiB
JavaScript
Raw Permalink Normal View History

2025-12-12 13:13:07 +01:00
!function(){var t={251:function(t,e){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
e.read=function(t,e,n,o,r){var i,a,c=8*r-o-1,s=(1<<c)-1,l=s>>1,u=-7,f=n?r-1:0,p=n?-1:1,d=t[e+f];for(f+=p,i=d&(1<<-u)-1,d>>=-u,u+=c;u>0;i=256*i+t[e+f],f+=p,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=o;u>0;a=256*a+t[e+f],f+=p,u-=8);if(0===i)i=1-l;else{if(i===s)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,o),i-=l}return(d?-1:1)*a*Math.pow(2,i-o)},e.write=function(t,e,n,o,r,i){var a,c,s,l=8*i-r-1,u=(1<<l)-1,f=u>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,d=o?0:i-1,h=o?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+f>=1?p/s:p*Math.pow(2,1-f))*s>=2&&(a++,s/=2),a+f>=u?(c=0,a=u):a+f>=1?(c=(e*s-1)*Math.pow(2,r),a+=f):(c=e*Math.pow(2,f-1)*Math.pow(2,r),a=0));r>=8;t[n+d]=255&c,d+=h,c/=256,r-=8);for(a=a<<r|c,l+=r;l>0;t[n+d]=255&a,d+=h,a/=256,l-=8);t[n+d-h]|=128*m}},287:function(t,e,n){"use strict";
2025-08-27 08:44:30 +02:00
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
2025-12-12 13:13:07 +01:00
*/
const o=n(526),r=n(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=s,e.IS=50;const a=2147483647;function c(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return l(t,e,n)}function l(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|m(t,e);let o=c(n);const r=o.write(t,e);r!==n&&(o=o.slice(0,r));return o}(t,e);if(ArrayBuffer.isView(t))return function(t){if(J(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer))return d(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))return d(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=t.valueOf&&t.valueOf();if(null!=o&&o!==t)return s.from(o,e,n);const r=function(t){if(s.isBuffer(t)){const e=0|h(t.length),n=c(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||X(t.length)?c(0):p(t);if("Buffer"===t.type&&Array.isArray(t.data))return p(t.data)}(t);if(r)return r;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return u(t),c(t<0?0:0|h(t))}function p(t){const e=t.length<0?0:0|h(t.length),n=c(e);for(let o=0;o<e;o+=1)n[o]=255&t[o];return n}function d(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(o,s.prototype),o}function h(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function m(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||J(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let r=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(r)return o?-1:q(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,n){let o=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,n);case"utf8":case"utf-8":return B(this,e,n);case"ascii":return x(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function g(t,e,n){const o=t[e];t[e]=t[n],t[n]=o}function b(t,e,n,o,r){if(0===t.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=214748
2025-08-27 08:44:30 +02:00
/*!
* php-unserialize-js JavaScript Library
* https://github.com/bd808/php-unserialize-js
*
* Copyright 2013 Bryan Davis and contributors
* Released under the MIT license
* http://www.opensource.org/licenses/MIT
2025-12-12 13:13:07 +01:00
*/!function(){"use strict";o=[],void 0===(r="function"==typeof(n=function(){return function(t){var e,n=0,o=[],r=0,i=function(){var e=t.indexOf(":",n),o=t.substring(n,e);return n=e+2,parseInt(o,10)},a=function(){var e=t.indexOf(";",n),o=t.substring(n,e);return n=e+1,parseInt(o,10)},c=function(){var t=a();return o[r++]=t,t},s=function(){var e=t.indexOf(";",n),i=t.substring(n,e);return n=e+1,i=parseFloat(i),o[r++]=i,i},l=function(){var e=t.indexOf(";",n),i=t.substring(n,e);return n=e+1,i="1"===i,o[r++]=i,i},u=function(e){e=void 0!==e?e:'"';for(var o,r,a=i(),c=0,s=0;s<a;)(o=t.charCodeAt(n+c++))<=127?s++:s+=o>2047?3:2;return t.charAt(n+c)!==e&&(c+=t.indexOf('"',n+c)-n-c),r=t.substring(n,n+c),n+=c+2,r},f=function(){var t=u();return o[r++]=t,t},p=function(){var e=t.charAt(n);return n+=2,e},d=function(){var t=p();switch(t){case"i":return a();case"s":return u();default:throw new Error("Unknown key type '"+t+"' at position "+(n-2))}},h=function(){var t,a,c,s,l,u=i(),f=[],p={},h=f,m=r++;o[m]=h;try{for(c=0;c<u;c++)if(t=d(),a=e(),h===f&&t+""==c+"")f.push(a);else{if(h!==p){for(s=0,l=f.length;s<l;s++)p[s]=f[s];h=p,o[m]=h}p[t]=a}}catch(t){throw t.state=h,t}return n++,h},m=function(t,e){var o,r,i;if("string"==typeof t&&"\0"===t.charAt(0)){if((i=t.indexOf("\0",1))>0)return o=t.substring(1,i),r=t.substr(i+1),"*"===o||e===o?r:o+"::"+r;var a="Expected two <NUL> characters in non-public property name '"+t+"' at position "+(n-t.length-2);throw new Error(a)}return t},y=function(){var t,a,c,s,l={},f=r++,p=u();o[f]=l,t=i();try{for(s=0;s<t;s++)a=m(d(),p),c=e(),l[a]=c}catch(t){throw t.state=l,t}return n++,l},g=function(){var t=u(),e=u("}");return n--,{__PHP_Incomplete_Class_Name:t,serialized:e}},b=function(){var t=a(),e=o[t-1];return o[r++]=e,e},_=function(){var t=a();return o[t-1]},v=function(){var t=null;return o[r++]=t,t};return(e=function(){var t=p();switch(t){case"i":return c();case"d":return s();case"b":return l();case"s":case"E":return f();case"a":return h();case"O":return y();case"C":return g();case"r":return b();case"R":return _();case"N":return v();default:throw new Error("Unknown type '"+t+"' at position "+(n-2))}})()}})?n.apply(e,o):n)||(t.exports=r)}()},779:function(t){t.exports=function t(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o instanceof Array)for(var r=0;r<o.length;r++)e=e.concat(t(o[r]));else if("undefined"!=typeof URL&&o instanceof URL)e=e.concat(o.toJSON());else if(o instanceof Object)for(var i=Object.keys(o),a=0;a<i.length;a++){var c=i[a];e=e.concat([c]).concat(t(o[c]))}else e=e.concat(o)}return e}},942:function(t,e){var n;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=a(t,i(n)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)o.call(t,n)&&t[n]&&(e=a(e,n));return e}function a(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o].call(i.exports,i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";var t=window.wp.element,e=window.wp.components,o=window.wp.i18n,r=window.blocksyOptions;function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}function c(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n(942),l=n.n(s);const u=["title","id","sub_ids"];function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var d=function(e=null){const{isAdvancedMode:n,remoteConditions:o,allLanguages:r}=(0,t.useContext)(P);let i=o;return{isAdvancedMode:n,allRules:i.reduce(function(t,{rules:e,title:n}){return[...t,...e.map(function(t){return p(p({},t),{},{group:n})})]},[]).reduce(function(t,n){let{title:o,id:r,sub_ids:i=[]}=n,a=function(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(-1!==e.indexOf(o))continue;n[o]=t[o]}return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(n,u);return[...t,p({key:e&&i.length>0&&i.find(function(t){return t.id===e.rule})?e.rule:r,value:o,sub_ids:i},a)]},[]),rulesToUse:i,allLanguages:r}};function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)({}).hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},h.apply(null,arguments)}function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)