@css-inline/css-inline-wasm 0.13.0 → 0.13.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/index.js +20 -20
- package/index.min.js +2 -2
- package/index.mjs +20 -20
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -33,18 +33,6 @@ heap.push(void 0, null, true, false);
|
|
|
33
33
|
function getObject(idx) {
|
|
34
34
|
return heap[idx];
|
|
35
35
|
}
|
|
36
|
-
var heap_next = heap.length;
|
|
37
|
-
function dropObject(idx) {
|
|
38
|
-
if (idx < 132)
|
|
39
|
-
return;
|
|
40
|
-
heap[idx] = heap_next;
|
|
41
|
-
heap_next = idx;
|
|
42
|
-
}
|
|
43
|
-
function takeObject(idx) {
|
|
44
|
-
const ret = getObject(idx);
|
|
45
|
-
dropObject(idx);
|
|
46
|
-
return ret;
|
|
47
|
-
}
|
|
48
36
|
var WASM_VECTOR_LEN = 0;
|
|
49
37
|
var cachedUint8Memory0 = null;
|
|
50
38
|
function getUint8Memory0() {
|
|
@@ -116,6 +104,7 @@ function getStringFromWasm0(ptr, len) {
|
|
|
116
104
|
ptr = ptr >>> 0;
|
|
117
105
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
118
106
|
}
|
|
107
|
+
var heap_next = heap.length;
|
|
119
108
|
function addHeapObject(obj) {
|
|
120
109
|
if (heap_next === heap.length)
|
|
121
110
|
heap.push(heap.length + 1);
|
|
@@ -124,6 +113,17 @@ function addHeapObject(obj) {
|
|
|
124
113
|
heap[idx] = obj;
|
|
125
114
|
return idx;
|
|
126
115
|
}
|
|
116
|
+
function dropObject(idx) {
|
|
117
|
+
if (idx < 132)
|
|
118
|
+
return;
|
|
119
|
+
heap[idx] = heap_next;
|
|
120
|
+
heap_next = idx;
|
|
121
|
+
}
|
|
122
|
+
function takeObject(idx) {
|
|
123
|
+
const ret = getObject(idx);
|
|
124
|
+
dropObject(idx);
|
|
125
|
+
return ret;
|
|
126
|
+
}
|
|
127
127
|
var cachedFloat64Memory0 = null;
|
|
128
128
|
function getFloat64Memory0() {
|
|
129
129
|
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
@@ -261,14 +261,6 @@ function __wbg_get_imports() {
|
|
|
261
261
|
const ret = getObject(arg0) === void 0;
|
|
262
262
|
return ret;
|
|
263
263
|
};
|
|
264
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
265
|
-
takeObject(arg0);
|
|
266
|
-
};
|
|
267
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
268
|
-
const v = getObject(arg0);
|
|
269
|
-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
270
|
-
return ret;
|
|
271
|
-
};
|
|
272
264
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
273
265
|
const obj = getObject(arg1);
|
|
274
266
|
const ret = typeof obj === "string" ? obj : void 0;
|
|
@@ -277,6 +269,11 @@ function __wbg_get_imports() {
|
|
|
277
269
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
278
270
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
279
271
|
};
|
|
272
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
273
|
+
const v = getObject(arg0);
|
|
274
|
+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
275
|
+
return ret;
|
|
276
|
+
};
|
|
280
277
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
281
278
|
const val = getObject(arg0);
|
|
282
279
|
const ret = typeof val === "object" && val !== null;
|
|
@@ -325,6 +322,9 @@ function __wbg_get_imports() {
|
|
|
325
322
|
imports.wbg.__wbg_set_2357bf09366ee480 = function(arg0, arg1, arg2) {
|
|
326
323
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
327
324
|
};
|
|
325
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
326
|
+
takeObject(arg0);
|
|
327
|
+
};
|
|
328
328
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
329
329
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
330
330
|
return addHeapObject(ret);
|
package/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var cssInline=(()=>{var S=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var B=(e,n)=>{for(var t in n)S(e,t,{get:n[t],enumerable:!0})},q=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of D(n))!N.call(e,i)&&i!==t&&S(e,i,{get:()=>n[i],enumerable:!(r=$(n,i))||r.enumerable});return e};var z=e=>q(S({},"__esModule",{value:!0}),e);var Y={};B(Y,{initWasm:()=>K,inline:()=>Q,version:()=>X});var c,b=new Array(128).fill(void 0);b.push(void 0,null,!0,!1);function o(e){return b[e]}var
|
|
2
|
-
${e.stack}`:r}function T(e,n){let t,r;try{let d=c.__wbindgen_add_to_stack_pointer(-16),L=W(e,c.__wbindgen_malloc,c.__wbindgen_realloc),R=h;c.inline(d,L,R,l(n));var i=u()[d/4+0],f=u()[d/4+1],s=u()[d/4+2],_=u()[d/4+3],a=i,x=f;if(_)throw a=0,x=0,
|
|
1
|
+
"use strict";var cssInline=(()=>{var S=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var B=(e,n)=>{for(var t in n)S(e,t,{get:n[t],enumerable:!0})},q=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of D(n))!N.call(e,i)&&i!==t&&S(e,i,{get:()=>n[i],enumerable:!(r=$(n,i))||r.enumerable});return e};var z=e=>q(S({},"__esModule",{value:!0}),e);var Y={};B(Y,{initWasm:()=>K,inline:()=>Q,version:()=>X});var c,b=new Array(128).fill(void 0);b.push(void 0,null,!0,!1);function o(e){return b[e]}var h=0,g=null;function A(){return(g===null||g.byteLength===0)&&(g=new Uint8Array(c.memory.buffer)),g}var I=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},C=typeof I.encodeInto=="function"?function(e,n){return I.encodeInto(e,n)}:function(e,n){let t=I.encode(e);return n.set(t),{read:e.length,written:t.length}};function W(e,n,t){if(t===void 0){let _=I.encode(e),a=n(_.length,1)>>>0;return A().subarray(a,a+_.length).set(_),h=_.length,a}let r=e.length,i=n(r,1)>>>0,f=A(),s=0;for(;s<r;s++){let _=e.charCodeAt(s);if(_>127)break;f[i+s]=_}if(s!==r){s!==0&&(e=e.slice(s)),i=t(i,r,r=s+e.length*3,1)>>>0;let _=A().subarray(i+s,i+r),a=C(e,_);s+=a.written}return h=s,i}function j(e){return e==null}var w=null;function u(){return(w===null||w.byteLength===0)&&(w=new Int32Array(c.memory.buffer)),w}var M=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&M.decode();function m(e,n){return e=e>>>0,M.decode(A().subarray(e,e+n))}var p=b.length;function l(e){p===b.length&&b.push(b.length+1);let n=p;return p=b[n],b[n]=e,n}function P(e){e<132||(b[e]=p,p=e)}function O(e){let n=o(e);return P(e),n}var y=null;function H(){return(y===null||y.byteLength===0)&&(y=new Float64Array(c.memory.buffer)),y}function E(e){let n=typeof e;if(n=="number"||n=="boolean"||e==null)return`${e}`;if(n=="string")return`"${e}"`;if(n=="symbol"){let i=e.description;return i==null?"Symbol":`Symbol(${i})`}if(n=="function"){let i=e.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(e)){let i=e.length,f="[";i>0&&(f+=E(e[0]));for(let s=1;s<i;s++)f+=", "+E(e[s]);return f+="]",f}let t=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(t.length>1)r=t[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
+
${e.stack}`:r}function T(e,n){let t,r;try{let d=c.__wbindgen_add_to_stack_pointer(-16),L=W(e,c.__wbindgen_malloc,c.__wbindgen_realloc),R=h;c.inline(d,L,R,l(n));var i=u()[d/4+0],f=u()[d/4+1],s=u()[d/4+2],_=u()[d/4+3],a=i,x=f;if(_)throw a=0,x=0,O(s);return t=a,r=x,m(a,x)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(t,r,1)}}function k(){let e,n;try{let i=c.__wbindgen_add_to_stack_pointer(-16);c.version(i);var t=u()[i/4+0],r=u()[i/4+1];return e=t,n=r,m(t,r)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(e,n,1)}}async function J(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}else{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function V(){let e={};return e.wbg={},e.wbg.__wbindgen_is_undefined=function(n){return o(n)===void 0},e.wbg.__wbindgen_string_get=function(n,t){let r=o(t),i=typeof r=="string"?r:void 0;var f=j(i)?0:W(i,c.__wbindgen_malloc,c.__wbindgen_realloc),s=h;u()[n/4+1]=s,u()[n/4+0]=f},e.wbg.__wbindgen_boolean_get=function(n){let t=o(n);return typeof t=="boolean"?t?1:0:2},e.wbg.__wbindgen_is_object=function(n){let t=o(n);return typeof t=="object"&&t!==null},e.wbg.__wbindgen_string_new=function(n,t){let r=m(n,t);return l(r)},e.wbg.__wbindgen_object_clone_ref=function(n){let t=o(n);return l(t)},e.wbg.__wbg_getwithrefkey_4a92a5eca60879b9=function(n,t){let r=o(n)[o(t)];return l(r)},e.wbg.__wbindgen_in=function(n,t){return o(n)in o(t)},e.wbg.__wbg_isSafeInteger_f93fde0dca9820f8=function(n){return Number.isSafeInteger(o(n))},e.wbg.__wbindgen_as_number=function(n){return+o(n)},e.wbg.__wbg_length_1d25fa9e4ac21ce7=function(n){return o(n).length},e.wbg.__wbindgen_memory=function(){let n=c.memory;return l(n)},e.wbg.__wbg_buffer_a448f833075b71ba=function(n){let t=o(n).buffer;return l(t)},e.wbg.__wbg_new_8f67e318f15d7254=function(n){let t=new Uint8Array(o(n));return l(t)},e.wbg.__wbg_set_2357bf09366ee480=function(n,t,r){o(n).set(o(t),r>>>0)},e.wbg.__wbindgen_object_drop_ref=function(n){O(n)},e.wbg.__wbindgen_error_new=function(n,t){let r=new Error(m(n,t));return l(r)},e.wbg.__wbindgen_jsval_loose_eq=function(n,t){return o(n)==o(t)},e.wbg.__wbindgen_number_get=function(n,t){let r=o(t),i=typeof r=="number"?r:void 0;H()[n/8+1]=j(i)?0:i,u()[n/4+0]=!j(i)},e.wbg.__wbg_instanceof_Uint8Array_bced6f43aed8c1aa=function(n){let t;try{t=o(n)instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_instanceof_ArrayBuffer_e7d53d51371448e2=function(n){let t;try{t=o(n)instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbindgen_debug_string=function(n,t){let r=E(o(t)),i=W(r,c.__wbindgen_malloc,c.__wbindgen_realloc),f=h;u()[n/4+1]=f,u()[n/4+0]=i},e.wbg.__wbindgen_throw=function(n,t){throw new Error(m(n,t))},e}function G(e,n){return c=e.exports,U.__wbindgen_wasm_module=n,y=null,w=null,g=null,c}async function U(e){if(c!==void 0)return c;typeof e>"u"&&(e=new URL("index_bg.wasm",void 0));let n=V();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:t,module:r}=await J(await e,n);return G(t,r)}var v=U;var F=!1,K=async e=>{if(F)throw new Error("Already initialized. The `initWasm()` function can be used only once.");await v(await e),F=!0};function Q(e,n){return T(e,n)}function X(){return k()}return z(Y);})();
|
package/index.mjs
CHANGED
|
@@ -5,18 +5,6 @@ heap.push(void 0, null, true, false);
|
|
|
5
5
|
function getObject(idx) {
|
|
6
6
|
return heap[idx];
|
|
7
7
|
}
|
|
8
|
-
var heap_next = heap.length;
|
|
9
|
-
function dropObject(idx) {
|
|
10
|
-
if (idx < 132)
|
|
11
|
-
return;
|
|
12
|
-
heap[idx] = heap_next;
|
|
13
|
-
heap_next = idx;
|
|
14
|
-
}
|
|
15
|
-
function takeObject(idx) {
|
|
16
|
-
const ret = getObject(idx);
|
|
17
|
-
dropObject(idx);
|
|
18
|
-
return ret;
|
|
19
|
-
}
|
|
20
8
|
var WASM_VECTOR_LEN = 0;
|
|
21
9
|
var cachedUint8Memory0 = null;
|
|
22
10
|
function getUint8Memory0() {
|
|
@@ -88,6 +76,7 @@ function getStringFromWasm0(ptr, len) {
|
|
|
88
76
|
ptr = ptr >>> 0;
|
|
89
77
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
90
78
|
}
|
|
79
|
+
var heap_next = heap.length;
|
|
91
80
|
function addHeapObject(obj) {
|
|
92
81
|
if (heap_next === heap.length)
|
|
93
82
|
heap.push(heap.length + 1);
|
|
@@ -96,6 +85,17 @@ function addHeapObject(obj) {
|
|
|
96
85
|
heap[idx] = obj;
|
|
97
86
|
return idx;
|
|
98
87
|
}
|
|
88
|
+
function dropObject(idx) {
|
|
89
|
+
if (idx < 132)
|
|
90
|
+
return;
|
|
91
|
+
heap[idx] = heap_next;
|
|
92
|
+
heap_next = idx;
|
|
93
|
+
}
|
|
94
|
+
function takeObject(idx) {
|
|
95
|
+
const ret = getObject(idx);
|
|
96
|
+
dropObject(idx);
|
|
97
|
+
return ret;
|
|
98
|
+
}
|
|
99
99
|
var cachedFloat64Memory0 = null;
|
|
100
100
|
function getFloat64Memory0() {
|
|
101
101
|
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
@@ -233,14 +233,6 @@ function __wbg_get_imports() {
|
|
|
233
233
|
const ret = getObject(arg0) === void 0;
|
|
234
234
|
return ret;
|
|
235
235
|
};
|
|
236
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
237
|
-
takeObject(arg0);
|
|
238
|
-
};
|
|
239
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
240
|
-
const v = getObject(arg0);
|
|
241
|
-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
242
|
-
return ret;
|
|
243
|
-
};
|
|
244
236
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
245
237
|
const obj = getObject(arg1);
|
|
246
238
|
const ret = typeof obj === "string" ? obj : void 0;
|
|
@@ -249,6 +241,11 @@ function __wbg_get_imports() {
|
|
|
249
241
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
250
242
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
251
243
|
};
|
|
244
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
245
|
+
const v = getObject(arg0);
|
|
246
|
+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
247
|
+
return ret;
|
|
248
|
+
};
|
|
252
249
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
253
250
|
const val = getObject(arg0);
|
|
254
251
|
const ret = typeof val === "object" && val !== null;
|
|
@@ -297,6 +294,9 @@ function __wbg_get_imports() {
|
|
|
297
294
|
imports.wbg.__wbg_set_2357bf09366ee480 = function(arg0, arg1, arg2) {
|
|
298
295
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
299
296
|
};
|
|
297
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
298
|
+
takeObject(arg0);
|
|
299
|
+
};
|
|
300
300
|
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
301
301
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
302
302
|
return addHeapObject(ret);
|
package/index_bg.wasm
CHANGED
|
Binary file
|