@dimina-kit/compiler 0.0.2-dev.20260718085557 → 0.0.2-dev.20260718143821

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.
@@ -0,0 +1,1530 @@
1
+ import {
2
+ isMainThread
3
+ } from "./chunk-KLXXOLDF.js";
4
+ import {
5
+ __commonJS,
6
+ __toESM,
7
+ getViewScriptTags,
8
+ miniProgramBuiltinTags,
9
+ tagWhiteList
10
+ } from "./chunk-7F3E2G42.js";
11
+
12
+ // ../../dimina/fe/node_modules/.pnpm/@vue+shared@3.5.40/node_modules/@vue/shared/dist/shared.cjs.prod.js
13
+ var require_shared_cjs_prod = __commonJS({
14
+ "../../dimina/fe/node_modules/.pnpm/@vue+shared@3.5.40/node_modules/@vue/shared/dist/shared.cjs.prod.js"(exports) {
15
+ "use strict";
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // @__NO_SIDE_EFFECTS__
18
+ function makeMap(str) {
19
+ const map = /* @__PURE__ */ Object.create(null);
20
+ for (const key of str.split(",")) map[key] = 1;
21
+ return (val) => val in map;
22
+ }
23
+ var EMPTY_OBJ = {};
24
+ var EMPTY_ARR = [];
25
+ var NOOP = () => {
26
+ };
27
+ var NO = () => false;
28
+ var isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
29
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
30
+ var isModelListener = (key) => key.startsWith("onUpdate:");
31
+ var extend = Object.assign;
32
+ var remove = (arr, el) => {
33
+ const i = arr.indexOf(el);
34
+ if (i > -1) {
35
+ arr.splice(i, 1);
36
+ }
37
+ };
38
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
39
+ var hasOwn = (val, key) => hasOwnProperty.call(val, key);
40
+ var isArray = Array.isArray;
41
+ var isMap = (val) => toTypeString(val) === "[object Map]";
42
+ var isSet = (val) => toTypeString(val) === "[object Set]";
43
+ var isDate = (val) => toTypeString(val) === "[object Date]";
44
+ var isRegExp = (val) => toTypeString(val) === "[object RegExp]";
45
+ var isFunction = (val) => typeof val === "function";
46
+ var isString = (val) => typeof val === "string";
47
+ var isSymbol = (val) => typeof val === "symbol";
48
+ var isObject = (val) => val !== null && typeof val === "object";
49
+ var isPromise = (val) => {
50
+ return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);
51
+ };
52
+ var objectToString = Object.prototype.toString;
53
+ var toTypeString = (value) => objectToString.call(value);
54
+ var toRawType = (value) => {
55
+ return toTypeString(value).slice(8, -1);
56
+ };
57
+ var isPlainObject = (val) => toTypeString(val) === "[object Object]";
58
+ var isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
59
+ var isReservedProp = /* @__PURE__ */ makeMap(
60
+ // the leading comma is intentional so empty string "" is also included
61
+ ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
62
+ );
63
+ var isBuiltInDirective = /* @__PURE__ */ makeMap(
64
+ "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
65
+ );
66
+ var cacheStringFunction = (fn) => {
67
+ const cache = /* @__PURE__ */ Object.create(null);
68
+ return ((str) => {
69
+ const hit = cache[str];
70
+ return hit || (cache[str] = fn(str));
71
+ });
72
+ };
73
+ var camelizeRE = /-\w/g;
74
+ var camelize = cacheStringFunction(
75
+ (str) => {
76
+ return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
77
+ }
78
+ );
79
+ var hyphenateRE = /\B([A-Z])/g;
80
+ var hyphenate = cacheStringFunction(
81
+ (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
82
+ );
83
+ var capitalize = cacheStringFunction((str) => {
84
+ return str.charAt(0).toUpperCase() + str.slice(1);
85
+ });
86
+ var toHandlerKey = cacheStringFunction(
87
+ (str) => {
88
+ const s = str ? `on${capitalize(str)}` : ``;
89
+ return s;
90
+ }
91
+ );
92
+ var hasChanged = (value, oldValue) => !Object.is(value, oldValue);
93
+ var invokeArrayFns = (fns, ...arg) => {
94
+ for (let i = 0; i < fns.length; i++) {
95
+ fns[i](...arg);
96
+ }
97
+ };
98
+ var def = (obj, key, value, writable = false) => {
99
+ Object.defineProperty(obj, key, {
100
+ configurable: true,
101
+ enumerable: false,
102
+ writable,
103
+ value
104
+ });
105
+ };
106
+ var looseToNumber = (val) => {
107
+ const n = parseFloat(val);
108
+ return isNaN(n) ? val : n;
109
+ };
110
+ var toNumber = (val) => {
111
+ const n = isString(val) ? Number(val) : NaN;
112
+ return isNaN(n) ? val : n;
113
+ };
114
+ var _globalThis;
115
+ var getGlobalThis = () => {
116
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
117
+ };
118
+ var identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;
119
+ function genPropsAccessExp(name) {
120
+ return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`;
121
+ }
122
+ function genCacheKey(source, options) {
123
+ return source + JSON.stringify(
124
+ options,
125
+ (_, val) => typeof val === "function" ? val.toString() : val
126
+ );
127
+ }
128
+ var PatchFlags = {
129
+ "TEXT": 1,
130
+ "1": "TEXT",
131
+ "CLASS": 2,
132
+ "2": "CLASS",
133
+ "STYLE": 4,
134
+ "4": "STYLE",
135
+ "PROPS": 8,
136
+ "8": "PROPS",
137
+ "FULL_PROPS": 16,
138
+ "16": "FULL_PROPS",
139
+ "NEED_HYDRATION": 32,
140
+ "32": "NEED_HYDRATION",
141
+ "STABLE_FRAGMENT": 64,
142
+ "64": "STABLE_FRAGMENT",
143
+ "KEYED_FRAGMENT": 128,
144
+ "128": "KEYED_FRAGMENT",
145
+ "UNKEYED_FRAGMENT": 256,
146
+ "256": "UNKEYED_FRAGMENT",
147
+ "NEED_PATCH": 512,
148
+ "512": "NEED_PATCH",
149
+ "DYNAMIC_SLOTS": 1024,
150
+ "1024": "DYNAMIC_SLOTS",
151
+ "DEV_ROOT_FRAGMENT": 2048,
152
+ "2048": "DEV_ROOT_FRAGMENT",
153
+ "CACHED": -1,
154
+ "-1": "CACHED",
155
+ "BAIL": -2,
156
+ "-2": "BAIL"
157
+ };
158
+ var PatchFlagNames = {
159
+ [1]: `TEXT`,
160
+ [2]: `CLASS`,
161
+ [4]: `STYLE`,
162
+ [8]: `PROPS`,
163
+ [16]: `FULL_PROPS`,
164
+ [32]: `NEED_HYDRATION`,
165
+ [64]: `STABLE_FRAGMENT`,
166
+ [128]: `KEYED_FRAGMENT`,
167
+ [256]: `UNKEYED_FRAGMENT`,
168
+ [512]: `NEED_PATCH`,
169
+ [1024]: `DYNAMIC_SLOTS`,
170
+ [2048]: `DEV_ROOT_FRAGMENT`,
171
+ [-1]: `CACHED`,
172
+ [-2]: `BAIL`
173
+ };
174
+ var ShapeFlags = {
175
+ "ELEMENT": 1,
176
+ "1": "ELEMENT",
177
+ "FUNCTIONAL_COMPONENT": 2,
178
+ "2": "FUNCTIONAL_COMPONENT",
179
+ "STATEFUL_COMPONENT": 4,
180
+ "4": "STATEFUL_COMPONENT",
181
+ "TEXT_CHILDREN": 8,
182
+ "8": "TEXT_CHILDREN",
183
+ "ARRAY_CHILDREN": 16,
184
+ "16": "ARRAY_CHILDREN",
185
+ "SLOTS_CHILDREN": 32,
186
+ "32": "SLOTS_CHILDREN",
187
+ "TELEPORT": 64,
188
+ "64": "TELEPORT",
189
+ "SUSPENSE": 128,
190
+ "128": "SUSPENSE",
191
+ "COMPONENT_SHOULD_KEEP_ALIVE": 256,
192
+ "256": "COMPONENT_SHOULD_KEEP_ALIVE",
193
+ "COMPONENT_KEPT_ALIVE": 512,
194
+ "512": "COMPONENT_KEPT_ALIVE",
195
+ "COMPONENT": 6,
196
+ "6": "COMPONENT"
197
+ };
198
+ var SlotFlags = {
199
+ "STABLE": 1,
200
+ "1": "STABLE",
201
+ "DYNAMIC": 2,
202
+ "2": "DYNAMIC",
203
+ "FORWARDED": 3,
204
+ "3": "FORWARDED"
205
+ };
206
+ var slotFlagsText = {
207
+ [1]: "STABLE",
208
+ [2]: "DYNAMIC",
209
+ [3]: "FORWARDED"
210
+ };
211
+ var GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
212
+ var isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
213
+ var isGloballyWhitelisted = isGloballyAllowed;
214
+ var range = 2;
215
+ function generateCodeFrame(source, start = 0, end = source.length) {
216
+ start = Math.max(0, Math.min(start, source.length));
217
+ end = Math.max(0, Math.min(end, source.length));
218
+ if (start > end) return "";
219
+ let lines = source.split(/(\r?\n)/);
220
+ const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);
221
+ lines = lines.filter((_, idx) => idx % 2 === 0);
222
+ let count = 0;
223
+ const res = [];
224
+ for (let i = 0; i < lines.length; i++) {
225
+ count += lines[i].length + (newlineSequences[i] && newlineSequences[i].length || 0);
226
+ if (count >= start) {
227
+ for (let j = i - range; j <= i + range || end > count; j++) {
228
+ if (j < 0 || j >= lines.length) continue;
229
+ const line = j + 1;
230
+ res.push(
231
+ `${line}${" ".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`
232
+ );
233
+ const lineLength = lines[j].length;
234
+ const newLineSeqLength = newlineSequences[j] && newlineSequences[j].length || 0;
235
+ if (j === i) {
236
+ const pad = start - (count - (lineLength + newLineSeqLength));
237
+ const length = Math.max(
238
+ 1,
239
+ end > count ? lineLength - pad : end - start
240
+ );
241
+ res.push(` | ` + " ".repeat(pad) + "^".repeat(length));
242
+ } else if (j > i) {
243
+ if (end > count) {
244
+ const length = Math.max(Math.min(end - count, lineLength), 1);
245
+ res.push(` | ` + "^".repeat(length));
246
+ }
247
+ count += lineLength + newLineSeqLength;
248
+ }
249
+ }
250
+ break;
251
+ }
252
+ }
253
+ return res.join("\n");
254
+ }
255
+ function normalizeStyle(value) {
256
+ if (isArray(value)) {
257
+ const res = {};
258
+ for (let i = 0; i < value.length; i++) {
259
+ const item = value[i];
260
+ const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
261
+ if (normalized) {
262
+ for (const key in normalized) {
263
+ res[key] = normalized[key];
264
+ }
265
+ }
266
+ }
267
+ return res;
268
+ } else if (isString(value) || isObject(value)) {
269
+ return value;
270
+ }
271
+ }
272
+ var listDelimiterRE = /;(?![^(]*\))/g;
273
+ var propertyDelimiterRE = /:([^]+)/;
274
+ var styleCommentRE = /\/\*[^]*?\*\//g;
275
+ function parseStringStyle(cssText) {
276
+ const ret = {};
277
+ cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
278
+ if (item) {
279
+ const tmp = item.split(propertyDelimiterRE);
280
+ tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
281
+ }
282
+ });
283
+ return ret;
284
+ }
285
+ function stringifyStyle(styles) {
286
+ if (!styles) return "";
287
+ if (isString(styles)) return styles;
288
+ let ret = "";
289
+ for (const key in styles) {
290
+ const value = styles[key];
291
+ if (isString(value) || typeof value === "number") {
292
+ const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
293
+ ret += `${normalizedKey}:${value};`;
294
+ }
295
+ }
296
+ return ret;
297
+ }
298
+ function normalizeClass(value) {
299
+ let res = "";
300
+ if (isString(value)) {
301
+ res = value;
302
+ } else if (isArray(value)) {
303
+ for (let i = 0; i < value.length; i++) {
304
+ const normalized = normalizeClass(value[i]);
305
+ if (normalized) {
306
+ res += normalized + " ";
307
+ }
308
+ }
309
+ } else if (isObject(value)) {
310
+ for (const name in value) {
311
+ if (value[name]) {
312
+ res += name + " ";
313
+ }
314
+ }
315
+ }
316
+ return res.trim();
317
+ }
318
+ function normalizeProps(props) {
319
+ if (!props) return null;
320
+ let { class: klass, style } = props;
321
+ if (klass && !isString(klass)) {
322
+ props.class = normalizeClass(klass);
323
+ }
324
+ if (style) {
325
+ props.style = normalizeStyle(style);
326
+ }
327
+ return props;
328
+ }
329
+ var HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
330
+ var SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
331
+ var MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
332
+ var VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
333
+ var isHTMLTag2 = /* @__PURE__ */ makeMap(HTML_TAGS);
334
+ var isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
335
+ var isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
336
+ var isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
337
+ var specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
338
+ var isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
339
+ var isBooleanAttr = /* @__PURE__ */ makeMap(
340
+ specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`
341
+ );
342
+ function includeBooleanAttr(value) {
343
+ return !!value || value === "";
344
+ }
345
+ var unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/;
346
+ var attrValidationCache = {};
347
+ function isSSRSafeAttrName(name) {
348
+ if (attrValidationCache.hasOwnProperty(name)) {
349
+ return attrValidationCache[name];
350
+ }
351
+ const isUnsafe = unsafeAttrCharRE.test(name);
352
+ if (isUnsafe) {
353
+ console.error(`unsafe attribute name: ${name}`);
354
+ }
355
+ return attrValidationCache[name] = !isUnsafe;
356
+ }
357
+ var propsToAttrMap = {
358
+ acceptCharset: "accept-charset",
359
+ className: "class",
360
+ htmlFor: "for",
361
+ httpEquiv: "http-equiv"
362
+ };
363
+ var isKnownHtmlAttr = /* @__PURE__ */ makeMap(
364
+ `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`
365
+ );
366
+ var isKnownSvgAttr = /* @__PURE__ */ makeMap(
367
+ `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`
368
+ );
369
+ var isKnownMathMLAttr = /* @__PURE__ */ makeMap(
370
+ `accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`
371
+ );
372
+ function isRenderableAttrValue(value) {
373
+ if (value == null) {
374
+ return false;
375
+ }
376
+ const type = typeof value;
377
+ return type === "string" || type === "number" || type === "boolean";
378
+ }
379
+ var escapeRE = /["'&<>]/;
380
+ function escapeHtml(string) {
381
+ const str = "" + string;
382
+ const match = escapeRE.exec(str);
383
+ if (!match) {
384
+ return str;
385
+ }
386
+ let html = "";
387
+ let escaped;
388
+ let index;
389
+ let lastIndex = 0;
390
+ for (index = match.index; index < str.length; index++) {
391
+ switch (str.charCodeAt(index)) {
392
+ case 34:
393
+ escaped = "&quot;";
394
+ break;
395
+ case 38:
396
+ escaped = "&amp;";
397
+ break;
398
+ case 39:
399
+ escaped = "&#39;";
400
+ break;
401
+ case 60:
402
+ escaped = "&lt;";
403
+ break;
404
+ case 62:
405
+ escaped = "&gt;";
406
+ break;
407
+ default:
408
+ continue;
409
+ }
410
+ if (lastIndex !== index) {
411
+ html += str.slice(lastIndex, index);
412
+ }
413
+ lastIndex = index + 1;
414
+ html += escaped;
415
+ }
416
+ return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
417
+ }
418
+ var commentStripRE = /^(?:-?>)+|<!--|-->|--!>|<!-$/g;
419
+ function escapeHtmlComment(src) {
420
+ let prev;
421
+ do {
422
+ prev = src;
423
+ src = src.replace(commentStripRE, "");
424
+ } while (src !== prev);
425
+ return src;
426
+ }
427
+ var cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
428
+ function getEscapedCssVarName(key, doubleEscape) {
429
+ return key.replace(
430
+ cssVarNameEscapeSymbolsRE,
431
+ (s) => doubleEscape ? s === '"' ? '\\\\\\"' : `\\\\${s}` : `\\${s}`
432
+ );
433
+ }
434
+ function looseCompareArrays(a, b) {
435
+ if (a.length !== b.length) return false;
436
+ let equal = true;
437
+ for (let i = 0; equal && i < a.length; i++) {
438
+ equal = looseEqual(a[i], b[i]);
439
+ }
440
+ return equal;
441
+ }
442
+ function looseEqual(a, b) {
443
+ if (a === b) return true;
444
+ let aValidType = isDate(a);
445
+ let bValidType = isDate(b);
446
+ if (aValidType || bValidType) {
447
+ return aValidType && bValidType ? a.getTime() === b.getTime() : false;
448
+ }
449
+ aValidType = isSymbol(a);
450
+ bValidType = isSymbol(b);
451
+ if (aValidType || bValidType) {
452
+ return a === b;
453
+ }
454
+ aValidType = isArray(a);
455
+ bValidType = isArray(b);
456
+ if (aValidType || bValidType) {
457
+ return aValidType && bValidType ? looseCompareArrays(a, b) : false;
458
+ }
459
+ aValidType = isObject(a);
460
+ bValidType = isObject(b);
461
+ if (aValidType || bValidType) {
462
+ if (!aValidType || !bValidType) {
463
+ return false;
464
+ }
465
+ const aKeysCount = Object.keys(a).length;
466
+ const bKeysCount = Object.keys(b).length;
467
+ if (aKeysCount !== bKeysCount) {
468
+ return false;
469
+ }
470
+ for (const key in a) {
471
+ const aHasKey = a.hasOwnProperty(key);
472
+ const bHasKey = b.hasOwnProperty(key);
473
+ if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) {
474
+ return false;
475
+ }
476
+ }
477
+ }
478
+ return String(a) === String(b);
479
+ }
480
+ function looseIndexOf(arr, val) {
481
+ return arr.findIndex((item) => looseEqual(item, val));
482
+ }
483
+ var isRef = (val) => {
484
+ return !!(val && val["__v_isRef"] === true);
485
+ };
486
+ var toDisplayString = (val) => {
487
+ return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);
488
+ };
489
+ var replacer = (_key, val) => {
490
+ if (isRef(val)) {
491
+ return replacer(_key, val.value);
492
+ } else if (isMap(val)) {
493
+ return {
494
+ [`Map(${val.size})`]: [...val.entries()].reduce(
495
+ (entries, [key, val2], i) => {
496
+ entries[stringifySymbol(key, i) + " =>"] = val2;
497
+ return entries;
498
+ },
499
+ {}
500
+ )
501
+ };
502
+ } else if (isSet(val)) {
503
+ return {
504
+ [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
505
+ };
506
+ } else if (isSymbol(val)) {
507
+ return stringifySymbol(val);
508
+ } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
509
+ return String(val);
510
+ }
511
+ return val;
512
+ };
513
+ var stringifySymbol = (v, i = "") => {
514
+ var _a;
515
+ return (
516
+ // Symbol.description in es2019+ so we need to cast here to pass
517
+ // the lib: es2016 check
518
+ isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v
519
+ );
520
+ };
521
+ function normalizeCssVarValue(value) {
522
+ if (value == null) {
523
+ return "initial";
524
+ }
525
+ if (typeof value === "string") {
526
+ return value === "" ? " " : value;
527
+ }
528
+ return String(value);
529
+ }
530
+ exports.EMPTY_ARR = EMPTY_ARR;
531
+ exports.EMPTY_OBJ = EMPTY_OBJ;
532
+ exports.NO = NO;
533
+ exports.NOOP = NOOP;
534
+ exports.PatchFlagNames = PatchFlagNames;
535
+ exports.PatchFlags = PatchFlags;
536
+ exports.ShapeFlags = ShapeFlags;
537
+ exports.SlotFlags = SlotFlags;
538
+ exports.camelize = camelize;
539
+ exports.capitalize = capitalize;
540
+ exports.cssVarNameEscapeSymbolsRE = cssVarNameEscapeSymbolsRE;
541
+ exports.def = def;
542
+ exports.escapeHtml = escapeHtml;
543
+ exports.escapeHtmlComment = escapeHtmlComment;
544
+ exports.extend = extend;
545
+ exports.genCacheKey = genCacheKey;
546
+ exports.genPropsAccessExp = genPropsAccessExp;
547
+ exports.generateCodeFrame = generateCodeFrame;
548
+ exports.getEscapedCssVarName = getEscapedCssVarName;
549
+ exports.getGlobalThis = getGlobalThis;
550
+ exports.hasChanged = hasChanged;
551
+ exports.hasOwn = hasOwn;
552
+ exports.hyphenate = hyphenate;
553
+ exports.includeBooleanAttr = includeBooleanAttr;
554
+ exports.invokeArrayFns = invokeArrayFns;
555
+ exports.isArray = isArray;
556
+ exports.isBooleanAttr = isBooleanAttr;
557
+ exports.isBuiltInDirective = isBuiltInDirective;
558
+ exports.isDate = isDate;
559
+ exports.isFunction = isFunction;
560
+ exports.isGloballyAllowed = isGloballyAllowed;
561
+ exports.isGloballyWhitelisted = isGloballyWhitelisted;
562
+ exports.isHTMLTag = isHTMLTag2;
563
+ exports.isIntegerKey = isIntegerKey;
564
+ exports.isKnownHtmlAttr = isKnownHtmlAttr;
565
+ exports.isKnownMathMLAttr = isKnownMathMLAttr;
566
+ exports.isKnownSvgAttr = isKnownSvgAttr;
567
+ exports.isMap = isMap;
568
+ exports.isMathMLTag = isMathMLTag;
569
+ exports.isModelListener = isModelListener;
570
+ exports.isObject = isObject;
571
+ exports.isOn = isOn;
572
+ exports.isPlainObject = isPlainObject;
573
+ exports.isPromise = isPromise;
574
+ exports.isRegExp = isRegExp;
575
+ exports.isRenderableAttrValue = isRenderableAttrValue;
576
+ exports.isReservedProp = isReservedProp;
577
+ exports.isSSRSafeAttrName = isSSRSafeAttrName;
578
+ exports.isSVGTag = isSVGTag;
579
+ exports.isSet = isSet;
580
+ exports.isSpecialBooleanAttr = isSpecialBooleanAttr;
581
+ exports.isString = isString;
582
+ exports.isSymbol = isSymbol;
583
+ exports.isVoidTag = isVoidTag;
584
+ exports.looseEqual = looseEqual;
585
+ exports.looseIndexOf = looseIndexOf;
586
+ exports.looseToNumber = looseToNumber;
587
+ exports.makeMap = makeMap;
588
+ exports.normalizeClass = normalizeClass;
589
+ exports.normalizeCssVarValue = normalizeCssVarValue;
590
+ exports.normalizeProps = normalizeProps;
591
+ exports.normalizeStyle = normalizeStyle;
592
+ exports.objectToString = objectToString;
593
+ exports.parseStringStyle = parseStringStyle;
594
+ exports.propsToAttrMap = propsToAttrMap;
595
+ exports.remove = remove;
596
+ exports.slotFlagsText = slotFlagsText;
597
+ exports.stringifyStyle = stringifyStyle;
598
+ exports.toDisplayString = toDisplayString;
599
+ exports.toHandlerKey = toHandlerKey;
600
+ exports.toNumber = toNumber;
601
+ exports.toRawType = toRawType;
602
+ exports.toTypeString = toTypeString;
603
+ }
604
+ });
605
+
606
+ // ../../dimina/fe/node_modules/.pnpm/@vue+shared@3.5.40/node_modules/@vue/shared/dist/shared.cjs.js
607
+ var require_shared_cjs = __commonJS({
608
+ "../../dimina/fe/node_modules/.pnpm/@vue+shared@3.5.40/node_modules/@vue/shared/dist/shared.cjs.js"(exports) {
609
+ "use strict";
610
+ Object.defineProperty(exports, "__esModule", { value: true });
611
+ // @__NO_SIDE_EFFECTS__
612
+ function makeMap(str) {
613
+ const map = /* @__PURE__ */ Object.create(null);
614
+ for (const key of str.split(",")) map[key] = 1;
615
+ return (val) => val in map;
616
+ }
617
+ var EMPTY_OBJ = Object.freeze({});
618
+ var EMPTY_ARR = Object.freeze([]);
619
+ var NOOP = () => {
620
+ };
621
+ var NO = () => false;
622
+ var isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
623
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
624
+ var isModelListener = (key) => key.startsWith("onUpdate:");
625
+ var extend = Object.assign;
626
+ var remove = (arr, el) => {
627
+ const i = arr.indexOf(el);
628
+ if (i > -1) {
629
+ arr.splice(i, 1);
630
+ }
631
+ };
632
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
633
+ var hasOwn = (val, key) => hasOwnProperty.call(val, key);
634
+ var isArray = Array.isArray;
635
+ var isMap = (val) => toTypeString(val) === "[object Map]";
636
+ var isSet = (val) => toTypeString(val) === "[object Set]";
637
+ var isDate = (val) => toTypeString(val) === "[object Date]";
638
+ var isRegExp = (val) => toTypeString(val) === "[object RegExp]";
639
+ var isFunction = (val) => typeof val === "function";
640
+ var isString = (val) => typeof val === "string";
641
+ var isSymbol = (val) => typeof val === "symbol";
642
+ var isObject = (val) => val !== null && typeof val === "object";
643
+ var isPromise = (val) => {
644
+ return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);
645
+ };
646
+ var objectToString = Object.prototype.toString;
647
+ var toTypeString = (value) => objectToString.call(value);
648
+ var toRawType = (value) => {
649
+ return toTypeString(value).slice(8, -1);
650
+ };
651
+ var isPlainObject = (val) => toTypeString(val) === "[object Object]";
652
+ var isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
653
+ var isReservedProp = /* @__PURE__ */ makeMap(
654
+ // the leading comma is intentional so empty string "" is also included
655
+ ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
656
+ );
657
+ var isBuiltInDirective = /* @__PURE__ */ makeMap(
658
+ "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
659
+ );
660
+ var cacheStringFunction = (fn) => {
661
+ const cache = /* @__PURE__ */ Object.create(null);
662
+ return ((str) => {
663
+ const hit = cache[str];
664
+ return hit || (cache[str] = fn(str));
665
+ });
666
+ };
667
+ var camelizeRE = /-\w/g;
668
+ var camelize = cacheStringFunction(
669
+ (str) => {
670
+ return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
671
+ }
672
+ );
673
+ var hyphenateRE = /\B([A-Z])/g;
674
+ var hyphenate = cacheStringFunction(
675
+ (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
676
+ );
677
+ var capitalize = cacheStringFunction((str) => {
678
+ return str.charAt(0).toUpperCase() + str.slice(1);
679
+ });
680
+ var toHandlerKey = cacheStringFunction(
681
+ (str) => {
682
+ const s = str ? `on${capitalize(str)}` : ``;
683
+ return s;
684
+ }
685
+ );
686
+ var hasChanged = (value, oldValue) => !Object.is(value, oldValue);
687
+ var invokeArrayFns = (fns, ...arg) => {
688
+ for (let i = 0; i < fns.length; i++) {
689
+ fns[i](...arg);
690
+ }
691
+ };
692
+ var def = (obj, key, value, writable = false) => {
693
+ Object.defineProperty(obj, key, {
694
+ configurable: true,
695
+ enumerable: false,
696
+ writable,
697
+ value
698
+ });
699
+ };
700
+ var looseToNumber = (val) => {
701
+ const n = parseFloat(val);
702
+ return isNaN(n) ? val : n;
703
+ };
704
+ var toNumber = (val) => {
705
+ const n = isString(val) ? Number(val) : NaN;
706
+ return isNaN(n) ? val : n;
707
+ };
708
+ var _globalThis;
709
+ var getGlobalThis = () => {
710
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
711
+ };
712
+ var identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;
713
+ function genPropsAccessExp(name) {
714
+ return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`;
715
+ }
716
+ function genCacheKey(source, options) {
717
+ return source + JSON.stringify(
718
+ options,
719
+ (_, val) => typeof val === "function" ? val.toString() : val
720
+ );
721
+ }
722
+ var PatchFlags = {
723
+ "TEXT": 1,
724
+ "1": "TEXT",
725
+ "CLASS": 2,
726
+ "2": "CLASS",
727
+ "STYLE": 4,
728
+ "4": "STYLE",
729
+ "PROPS": 8,
730
+ "8": "PROPS",
731
+ "FULL_PROPS": 16,
732
+ "16": "FULL_PROPS",
733
+ "NEED_HYDRATION": 32,
734
+ "32": "NEED_HYDRATION",
735
+ "STABLE_FRAGMENT": 64,
736
+ "64": "STABLE_FRAGMENT",
737
+ "KEYED_FRAGMENT": 128,
738
+ "128": "KEYED_FRAGMENT",
739
+ "UNKEYED_FRAGMENT": 256,
740
+ "256": "UNKEYED_FRAGMENT",
741
+ "NEED_PATCH": 512,
742
+ "512": "NEED_PATCH",
743
+ "DYNAMIC_SLOTS": 1024,
744
+ "1024": "DYNAMIC_SLOTS",
745
+ "DEV_ROOT_FRAGMENT": 2048,
746
+ "2048": "DEV_ROOT_FRAGMENT",
747
+ "CACHED": -1,
748
+ "-1": "CACHED",
749
+ "BAIL": -2,
750
+ "-2": "BAIL"
751
+ };
752
+ var PatchFlagNames = {
753
+ [1]: `TEXT`,
754
+ [2]: `CLASS`,
755
+ [4]: `STYLE`,
756
+ [8]: `PROPS`,
757
+ [16]: `FULL_PROPS`,
758
+ [32]: `NEED_HYDRATION`,
759
+ [64]: `STABLE_FRAGMENT`,
760
+ [128]: `KEYED_FRAGMENT`,
761
+ [256]: `UNKEYED_FRAGMENT`,
762
+ [512]: `NEED_PATCH`,
763
+ [1024]: `DYNAMIC_SLOTS`,
764
+ [2048]: `DEV_ROOT_FRAGMENT`,
765
+ [-1]: `CACHED`,
766
+ [-2]: `BAIL`
767
+ };
768
+ var ShapeFlags = {
769
+ "ELEMENT": 1,
770
+ "1": "ELEMENT",
771
+ "FUNCTIONAL_COMPONENT": 2,
772
+ "2": "FUNCTIONAL_COMPONENT",
773
+ "STATEFUL_COMPONENT": 4,
774
+ "4": "STATEFUL_COMPONENT",
775
+ "TEXT_CHILDREN": 8,
776
+ "8": "TEXT_CHILDREN",
777
+ "ARRAY_CHILDREN": 16,
778
+ "16": "ARRAY_CHILDREN",
779
+ "SLOTS_CHILDREN": 32,
780
+ "32": "SLOTS_CHILDREN",
781
+ "TELEPORT": 64,
782
+ "64": "TELEPORT",
783
+ "SUSPENSE": 128,
784
+ "128": "SUSPENSE",
785
+ "COMPONENT_SHOULD_KEEP_ALIVE": 256,
786
+ "256": "COMPONENT_SHOULD_KEEP_ALIVE",
787
+ "COMPONENT_KEPT_ALIVE": 512,
788
+ "512": "COMPONENT_KEPT_ALIVE",
789
+ "COMPONENT": 6,
790
+ "6": "COMPONENT"
791
+ };
792
+ var SlotFlags = {
793
+ "STABLE": 1,
794
+ "1": "STABLE",
795
+ "DYNAMIC": 2,
796
+ "2": "DYNAMIC",
797
+ "FORWARDED": 3,
798
+ "3": "FORWARDED"
799
+ };
800
+ var slotFlagsText = {
801
+ [1]: "STABLE",
802
+ [2]: "DYNAMIC",
803
+ [3]: "FORWARDED"
804
+ };
805
+ var GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
806
+ var isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
807
+ var isGloballyWhitelisted = isGloballyAllowed;
808
+ var range = 2;
809
+ function generateCodeFrame(source, start = 0, end = source.length) {
810
+ start = Math.max(0, Math.min(start, source.length));
811
+ end = Math.max(0, Math.min(end, source.length));
812
+ if (start > end) return "";
813
+ let lines = source.split(/(\r?\n)/);
814
+ const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);
815
+ lines = lines.filter((_, idx) => idx % 2 === 0);
816
+ let count = 0;
817
+ const res = [];
818
+ for (let i = 0; i < lines.length; i++) {
819
+ count += lines[i].length + (newlineSequences[i] && newlineSequences[i].length || 0);
820
+ if (count >= start) {
821
+ for (let j = i - range; j <= i + range || end > count; j++) {
822
+ if (j < 0 || j >= lines.length) continue;
823
+ const line = j + 1;
824
+ res.push(
825
+ `${line}${" ".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`
826
+ );
827
+ const lineLength = lines[j].length;
828
+ const newLineSeqLength = newlineSequences[j] && newlineSequences[j].length || 0;
829
+ if (j === i) {
830
+ const pad = start - (count - (lineLength + newLineSeqLength));
831
+ const length = Math.max(
832
+ 1,
833
+ end > count ? lineLength - pad : end - start
834
+ );
835
+ res.push(` | ` + " ".repeat(pad) + "^".repeat(length));
836
+ } else if (j > i) {
837
+ if (end > count) {
838
+ const length = Math.max(Math.min(end - count, lineLength), 1);
839
+ res.push(` | ` + "^".repeat(length));
840
+ }
841
+ count += lineLength + newLineSeqLength;
842
+ }
843
+ }
844
+ break;
845
+ }
846
+ }
847
+ return res.join("\n");
848
+ }
849
+ function normalizeStyle(value) {
850
+ if (isArray(value)) {
851
+ const res = {};
852
+ for (let i = 0; i < value.length; i++) {
853
+ const item = value[i];
854
+ const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
855
+ if (normalized) {
856
+ for (const key in normalized) {
857
+ res[key] = normalized[key];
858
+ }
859
+ }
860
+ }
861
+ return res;
862
+ } else if (isString(value) || isObject(value)) {
863
+ return value;
864
+ }
865
+ }
866
+ var listDelimiterRE = /;(?![^(]*\))/g;
867
+ var propertyDelimiterRE = /:([^]+)/;
868
+ var styleCommentRE = /\/\*[^]*?\*\//g;
869
+ function parseStringStyle(cssText) {
870
+ const ret = {};
871
+ cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
872
+ if (item) {
873
+ const tmp = item.split(propertyDelimiterRE);
874
+ tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
875
+ }
876
+ });
877
+ return ret;
878
+ }
879
+ function stringifyStyle(styles) {
880
+ if (!styles) return "";
881
+ if (isString(styles)) return styles;
882
+ let ret = "";
883
+ for (const key in styles) {
884
+ const value = styles[key];
885
+ if (isString(value) || typeof value === "number") {
886
+ const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
887
+ ret += `${normalizedKey}:${value};`;
888
+ }
889
+ }
890
+ return ret;
891
+ }
892
+ function normalizeClass(value) {
893
+ let res = "";
894
+ if (isString(value)) {
895
+ res = value;
896
+ } else if (isArray(value)) {
897
+ for (let i = 0; i < value.length; i++) {
898
+ const normalized = normalizeClass(value[i]);
899
+ if (normalized) {
900
+ res += normalized + " ";
901
+ }
902
+ }
903
+ } else if (isObject(value)) {
904
+ for (const name in value) {
905
+ if (value[name]) {
906
+ res += name + " ";
907
+ }
908
+ }
909
+ }
910
+ return res.trim();
911
+ }
912
+ function normalizeProps(props) {
913
+ if (!props) return null;
914
+ let { class: klass, style } = props;
915
+ if (klass && !isString(klass)) {
916
+ props.class = normalizeClass(klass);
917
+ }
918
+ if (style) {
919
+ props.style = normalizeStyle(style);
920
+ }
921
+ return props;
922
+ }
923
+ var HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
924
+ var SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
925
+ var MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
926
+ var VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
927
+ var isHTMLTag2 = /* @__PURE__ */ makeMap(HTML_TAGS);
928
+ var isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
929
+ var isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
930
+ var isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
931
+ var specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
932
+ var isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
933
+ var isBooleanAttr = /* @__PURE__ */ makeMap(
934
+ specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`
935
+ );
936
+ function includeBooleanAttr(value) {
937
+ return !!value || value === "";
938
+ }
939
+ var unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/;
940
+ var attrValidationCache = {};
941
+ function isSSRSafeAttrName(name) {
942
+ if (attrValidationCache.hasOwnProperty(name)) {
943
+ return attrValidationCache[name];
944
+ }
945
+ const isUnsafe = unsafeAttrCharRE.test(name);
946
+ if (isUnsafe) {
947
+ console.error(`unsafe attribute name: ${name}`);
948
+ }
949
+ return attrValidationCache[name] = !isUnsafe;
950
+ }
951
+ var propsToAttrMap = {
952
+ acceptCharset: "accept-charset",
953
+ className: "class",
954
+ htmlFor: "for",
955
+ httpEquiv: "http-equiv"
956
+ };
957
+ var isKnownHtmlAttr = /* @__PURE__ */ makeMap(
958
+ `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap`
959
+ );
960
+ var isKnownSvgAttr = /* @__PURE__ */ makeMap(
961
+ `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`
962
+ );
963
+ var isKnownMathMLAttr = /* @__PURE__ */ makeMap(
964
+ `accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns`
965
+ );
966
+ function isRenderableAttrValue(value) {
967
+ if (value == null) {
968
+ return false;
969
+ }
970
+ const type = typeof value;
971
+ return type === "string" || type === "number" || type === "boolean";
972
+ }
973
+ var escapeRE = /["'&<>]/;
974
+ function escapeHtml(string) {
975
+ const str = "" + string;
976
+ const match = escapeRE.exec(str);
977
+ if (!match) {
978
+ return str;
979
+ }
980
+ let html = "";
981
+ let escaped;
982
+ let index;
983
+ let lastIndex = 0;
984
+ for (index = match.index; index < str.length; index++) {
985
+ switch (str.charCodeAt(index)) {
986
+ case 34:
987
+ escaped = "&quot;";
988
+ break;
989
+ case 38:
990
+ escaped = "&amp;";
991
+ break;
992
+ case 39:
993
+ escaped = "&#39;";
994
+ break;
995
+ case 60:
996
+ escaped = "&lt;";
997
+ break;
998
+ case 62:
999
+ escaped = "&gt;";
1000
+ break;
1001
+ default:
1002
+ continue;
1003
+ }
1004
+ if (lastIndex !== index) {
1005
+ html += str.slice(lastIndex, index);
1006
+ }
1007
+ lastIndex = index + 1;
1008
+ html += escaped;
1009
+ }
1010
+ return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
1011
+ }
1012
+ var commentStripRE = /^(?:-?>)+|<!--|-->|--!>|<!-$/g;
1013
+ function escapeHtmlComment(src) {
1014
+ let prev;
1015
+ do {
1016
+ prev = src;
1017
+ src = src.replace(commentStripRE, "");
1018
+ } while (src !== prev);
1019
+ return src;
1020
+ }
1021
+ var cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
1022
+ function getEscapedCssVarName(key, doubleEscape) {
1023
+ return key.replace(
1024
+ cssVarNameEscapeSymbolsRE,
1025
+ (s) => doubleEscape ? s === '"' ? '\\\\\\"' : `\\\\${s}` : `\\${s}`
1026
+ );
1027
+ }
1028
+ function looseCompareArrays(a, b) {
1029
+ if (a.length !== b.length) return false;
1030
+ let equal = true;
1031
+ for (let i = 0; equal && i < a.length; i++) {
1032
+ equal = looseEqual(a[i], b[i]);
1033
+ }
1034
+ return equal;
1035
+ }
1036
+ function looseEqual(a, b) {
1037
+ if (a === b) return true;
1038
+ let aValidType = isDate(a);
1039
+ let bValidType = isDate(b);
1040
+ if (aValidType || bValidType) {
1041
+ return aValidType && bValidType ? a.getTime() === b.getTime() : false;
1042
+ }
1043
+ aValidType = isSymbol(a);
1044
+ bValidType = isSymbol(b);
1045
+ if (aValidType || bValidType) {
1046
+ return a === b;
1047
+ }
1048
+ aValidType = isArray(a);
1049
+ bValidType = isArray(b);
1050
+ if (aValidType || bValidType) {
1051
+ return aValidType && bValidType ? looseCompareArrays(a, b) : false;
1052
+ }
1053
+ aValidType = isObject(a);
1054
+ bValidType = isObject(b);
1055
+ if (aValidType || bValidType) {
1056
+ if (!aValidType || !bValidType) {
1057
+ return false;
1058
+ }
1059
+ const aKeysCount = Object.keys(a).length;
1060
+ const bKeysCount = Object.keys(b).length;
1061
+ if (aKeysCount !== bKeysCount) {
1062
+ return false;
1063
+ }
1064
+ for (const key in a) {
1065
+ const aHasKey = a.hasOwnProperty(key);
1066
+ const bHasKey = b.hasOwnProperty(key);
1067
+ if (aHasKey && !bHasKey || !aHasKey && bHasKey || !looseEqual(a[key], b[key])) {
1068
+ return false;
1069
+ }
1070
+ }
1071
+ }
1072
+ return String(a) === String(b);
1073
+ }
1074
+ function looseIndexOf(arr, val) {
1075
+ return arr.findIndex((item) => looseEqual(item, val));
1076
+ }
1077
+ var isRef = (val) => {
1078
+ return !!(val && val["__v_isRef"] === true);
1079
+ };
1080
+ var toDisplayString = (val) => {
1081
+ return isString(val) ? val : val == null ? "" : isArray(val) || isObject(val) && (val.toString === objectToString || !isFunction(val.toString)) ? isRef(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);
1082
+ };
1083
+ var replacer = (_key, val) => {
1084
+ if (isRef(val)) {
1085
+ return replacer(_key, val.value);
1086
+ } else if (isMap(val)) {
1087
+ return {
1088
+ [`Map(${val.size})`]: [...val.entries()].reduce(
1089
+ (entries, [key, val2], i) => {
1090
+ entries[stringifySymbol(key, i) + " =>"] = val2;
1091
+ return entries;
1092
+ },
1093
+ {}
1094
+ )
1095
+ };
1096
+ } else if (isSet(val)) {
1097
+ return {
1098
+ [`Set(${val.size})`]: [...val.values()].map((v) => stringifySymbol(v))
1099
+ };
1100
+ } else if (isSymbol(val)) {
1101
+ return stringifySymbol(val);
1102
+ } else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
1103
+ return String(val);
1104
+ }
1105
+ return val;
1106
+ };
1107
+ var stringifySymbol = (v, i = "") => {
1108
+ var _a;
1109
+ return (
1110
+ // Symbol.description in es2019+ so we need to cast here to pass
1111
+ // the lib: es2016 check
1112
+ isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v
1113
+ );
1114
+ };
1115
+ function normalizeCssVarValue(value) {
1116
+ if (value == null) {
1117
+ return "initial";
1118
+ }
1119
+ if (typeof value === "string") {
1120
+ return value === "" ? " " : value;
1121
+ }
1122
+ if (typeof value !== "number" || !Number.isFinite(value)) {
1123
+ {
1124
+ console.warn(
1125
+ "[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:",
1126
+ value
1127
+ );
1128
+ }
1129
+ }
1130
+ return String(value);
1131
+ }
1132
+ exports.EMPTY_ARR = EMPTY_ARR;
1133
+ exports.EMPTY_OBJ = EMPTY_OBJ;
1134
+ exports.NO = NO;
1135
+ exports.NOOP = NOOP;
1136
+ exports.PatchFlagNames = PatchFlagNames;
1137
+ exports.PatchFlags = PatchFlags;
1138
+ exports.ShapeFlags = ShapeFlags;
1139
+ exports.SlotFlags = SlotFlags;
1140
+ exports.camelize = camelize;
1141
+ exports.capitalize = capitalize;
1142
+ exports.cssVarNameEscapeSymbolsRE = cssVarNameEscapeSymbolsRE;
1143
+ exports.def = def;
1144
+ exports.escapeHtml = escapeHtml;
1145
+ exports.escapeHtmlComment = escapeHtmlComment;
1146
+ exports.extend = extend;
1147
+ exports.genCacheKey = genCacheKey;
1148
+ exports.genPropsAccessExp = genPropsAccessExp;
1149
+ exports.generateCodeFrame = generateCodeFrame;
1150
+ exports.getEscapedCssVarName = getEscapedCssVarName;
1151
+ exports.getGlobalThis = getGlobalThis;
1152
+ exports.hasChanged = hasChanged;
1153
+ exports.hasOwn = hasOwn;
1154
+ exports.hyphenate = hyphenate;
1155
+ exports.includeBooleanAttr = includeBooleanAttr;
1156
+ exports.invokeArrayFns = invokeArrayFns;
1157
+ exports.isArray = isArray;
1158
+ exports.isBooleanAttr = isBooleanAttr;
1159
+ exports.isBuiltInDirective = isBuiltInDirective;
1160
+ exports.isDate = isDate;
1161
+ exports.isFunction = isFunction;
1162
+ exports.isGloballyAllowed = isGloballyAllowed;
1163
+ exports.isGloballyWhitelisted = isGloballyWhitelisted;
1164
+ exports.isHTMLTag = isHTMLTag2;
1165
+ exports.isIntegerKey = isIntegerKey;
1166
+ exports.isKnownHtmlAttr = isKnownHtmlAttr;
1167
+ exports.isKnownMathMLAttr = isKnownMathMLAttr;
1168
+ exports.isKnownSvgAttr = isKnownSvgAttr;
1169
+ exports.isMap = isMap;
1170
+ exports.isMathMLTag = isMathMLTag;
1171
+ exports.isModelListener = isModelListener;
1172
+ exports.isObject = isObject;
1173
+ exports.isOn = isOn;
1174
+ exports.isPlainObject = isPlainObject;
1175
+ exports.isPromise = isPromise;
1176
+ exports.isRegExp = isRegExp;
1177
+ exports.isRenderableAttrValue = isRenderableAttrValue;
1178
+ exports.isReservedProp = isReservedProp;
1179
+ exports.isSSRSafeAttrName = isSSRSafeAttrName;
1180
+ exports.isSVGTag = isSVGTag;
1181
+ exports.isSet = isSet;
1182
+ exports.isSpecialBooleanAttr = isSpecialBooleanAttr;
1183
+ exports.isString = isString;
1184
+ exports.isSymbol = isSymbol;
1185
+ exports.isVoidTag = isVoidTag;
1186
+ exports.looseEqual = looseEqual;
1187
+ exports.looseIndexOf = looseIndexOf;
1188
+ exports.looseToNumber = looseToNumber;
1189
+ exports.makeMap = makeMap;
1190
+ exports.normalizeClass = normalizeClass;
1191
+ exports.normalizeCssVarValue = normalizeCssVarValue;
1192
+ exports.normalizeProps = normalizeProps;
1193
+ exports.normalizeStyle = normalizeStyle;
1194
+ exports.objectToString = objectToString;
1195
+ exports.parseStringStyle = parseStringStyle;
1196
+ exports.propsToAttrMap = propsToAttrMap;
1197
+ exports.remove = remove;
1198
+ exports.slotFlagsText = slotFlagsText;
1199
+ exports.stringifyStyle = stringifyStyle;
1200
+ exports.toDisplayString = toDisplayString;
1201
+ exports.toHandlerKey = toHandlerKey;
1202
+ exports.toNumber = toNumber;
1203
+ exports.toRawType = toRawType;
1204
+ exports.toTypeString = toTypeString;
1205
+ }
1206
+ });
1207
+
1208
+ // ../../dimina/fe/node_modules/.pnpm/@vue+shared@3.5.40/node_modules/@vue/shared/index.js
1209
+ var require_shared = __commonJS({
1210
+ "../../dimina/fe/node_modules/.pnpm/@vue+shared@3.5.40/node_modules/@vue/shared/index.js"(exports, module) {
1211
+ "use strict";
1212
+ if (process.env.NODE_ENV === "production") {
1213
+ module.exports = require_shared_cjs_prod();
1214
+ } else {
1215
+ module.exports = require_shared_cjs();
1216
+ }
1217
+ }
1218
+ });
1219
+
1220
+ // ../../dimina/fe/packages/compiler/src/common/compatibility.js
1221
+ var import_shared = __toESM(require_shared(), 1);
1222
+ import { Parser } from "htmlparser2";
1223
+
1224
+ // ../../dimina/fe/packages/compiler/src/common/compatibility-reference.js
1225
+ var supportedBuiltinComponents = [
1226
+ "block",
1227
+ "button",
1228
+ "canvas",
1229
+ "checkbox",
1230
+ "checkbox-group",
1231
+ "cover-image",
1232
+ "cover-view",
1233
+ "form",
1234
+ "icon",
1235
+ "image",
1236
+ "input",
1237
+ "label",
1238
+ "movable-area",
1239
+ "movable-view",
1240
+ "navigation-bar",
1241
+ "navigator",
1242
+ "picker",
1243
+ "picker-view",
1244
+ "picker-view-column",
1245
+ "progress",
1246
+ "radio",
1247
+ "radio-group",
1248
+ "rich-text",
1249
+ "scroll-view",
1250
+ "slider",
1251
+ "slot",
1252
+ "swiper",
1253
+ "swiper-item",
1254
+ "switch",
1255
+ "template",
1256
+ "text",
1257
+ "textarea",
1258
+ "video",
1259
+ "view",
1260
+ "web-view",
1261
+ "wxs",
1262
+ "include",
1263
+ "import"
1264
+ ];
1265
+ var supportedWxApis = [
1266
+ "env",
1267
+ "canIUse",
1268
+ "getUpdateManager",
1269
+ "openSystemBluetoothSetting",
1270
+ "getWindowInfo",
1271
+ "getSystemSetting",
1272
+ "getSystemInfoSync",
1273
+ "getSystemInfoAsync",
1274
+ "getSystemInfo",
1275
+ "getAppBaseInfo",
1276
+ "getDeviceInfo",
1277
+ "onThemeChange",
1278
+ "offThemeChange",
1279
+ "openBluetoothAdapter",
1280
+ "closeBluetoothAdapter",
1281
+ "getBluetoothAdapterState",
1282
+ "startBluetoothDevicesDiscovery",
1283
+ "stopBluetoothDevicesDiscovery",
1284
+ "getBluetoothDevices",
1285
+ "getConnectedBluetoothDevices",
1286
+ "onBluetoothAdapterStateChange",
1287
+ "offBluetoothAdapterStateChange",
1288
+ "onBluetoothDeviceFound",
1289
+ "offBluetoothDeviceFound",
1290
+ "createBLEConnection",
1291
+ "closeBLEConnection",
1292
+ "getBLEDeviceServices",
1293
+ "getBLEDeviceCharacteristics",
1294
+ "readBLECharacteristicValue",
1295
+ "writeBLECharacteristicValue",
1296
+ "notifyBLECharacteristicValueChange",
1297
+ "getBLEDeviceRSSI",
1298
+ "setBLEMTU",
1299
+ "getBLEMTU",
1300
+ "onBLEConnectionStateChange",
1301
+ "offBLEConnectionStateChange",
1302
+ "onBLECharacteristicValueChange",
1303
+ "offBLECharacteristicValueChange",
1304
+ "onBLEMTUChange",
1305
+ "offBLEMTUChange",
1306
+ "isBluetoothDevicePaired",
1307
+ "makeBluetoothPair",
1308
+ "reLaunch",
1309
+ "redirectTo",
1310
+ "navigateTo",
1311
+ "navigateBack",
1312
+ "showToast",
1313
+ "showModal",
1314
+ "showLoading",
1315
+ "showActionSheet",
1316
+ "hideToast",
1317
+ "hideLoading",
1318
+ "setNavigationBarTitle",
1319
+ "setNavigationBarColor",
1320
+ "pageScrollTo",
1321
+ "getMenuButtonBoundingClientRect",
1322
+ "onMenuButtonBoundingClientRectWeightChange",
1323
+ "offMenuButtonBoundingClientRectWeightChange",
1324
+ "nextTick",
1325
+ "createAnimation",
1326
+ "createCanvasContext",
1327
+ "createOffscreenCanvas",
1328
+ "canvasToTempFilePath",
1329
+ "createSelectorQuery",
1330
+ "createIntersectionObserver",
1331
+ "request",
1332
+ "downloadFile",
1333
+ "uploadFile",
1334
+ "startLocalServiceDiscovery",
1335
+ "stopLocalServiceDiscovery",
1336
+ "onLocalServiceDiscoveryStop",
1337
+ "offLocalServiceDiscoveryStop",
1338
+ "onLocalServiceFound",
1339
+ "offLocalServiceFound",
1340
+ "onLocalServiceLost",
1341
+ "offLocalServiceLost",
1342
+ "onLocalServiceResolveFail",
1343
+ "offLocalServiceResolveFail",
1344
+ "createUDPSocket",
1345
+ "UDPSocket.bind",
1346
+ "UDPSocket.close",
1347
+ "UDPSocket.connect",
1348
+ "UDPSocket.send",
1349
+ "UDPSocket.write",
1350
+ "UDPSocket.setTTL",
1351
+ "UDPSocket.onClose",
1352
+ "UDPSocket.offClose",
1353
+ "UDPSocket.onError",
1354
+ "UDPSocket.offError",
1355
+ "UDPSocket.onListening",
1356
+ "UDPSocket.offListening",
1357
+ "UDPSocket.onMessage",
1358
+ "UDPSocket.offMessage",
1359
+ "createTCPSocket",
1360
+ "TCPSocket.bindWifi",
1361
+ "TCPSocket.close",
1362
+ "TCPSocket.connect",
1363
+ "TCPSocket.write",
1364
+ "TCPSocket.onBindWifi",
1365
+ "TCPSocket.offBindWifi",
1366
+ "TCPSocket.onClose",
1367
+ "TCPSocket.offClose",
1368
+ "TCPSocket.onConnect",
1369
+ "TCPSocket.offConnect",
1370
+ "TCPSocket.onError",
1371
+ "TCPSocket.offError",
1372
+ "TCPSocket.onMessage",
1373
+ "TCPSocket.offMessage",
1374
+ "setStorageSync",
1375
+ "getStorageSync",
1376
+ "removeStorageSync",
1377
+ "clearStorageSync",
1378
+ "setStorage",
1379
+ "getStorage",
1380
+ "removeStorage",
1381
+ "clearStorage",
1382
+ "getStorageInfoSync",
1383
+ "getStorageInfo",
1384
+ "saveImageToPhotosAlbum",
1385
+ "previewImage",
1386
+ "compressImage",
1387
+ "chooseImage",
1388
+ "chooseMedia",
1389
+ "chooseContact",
1390
+ "addPhoneContact",
1391
+ "setClipboardData",
1392
+ "getClipboardData",
1393
+ "vibrateShort",
1394
+ "vibrateLong",
1395
+ "hideKeyboard",
1396
+ "getNetworkType",
1397
+ "makePhoneCall",
1398
+ "extBridge",
1399
+ "extOnBridge",
1400
+ "extOffBridge"
1401
+ ];
1402
+
1403
+ // ../../dimina/fe/packages/compiler/src/common/compatibility.js
1404
+ var cachedReference = null;
1405
+ var warnedItems = /* @__PURE__ */ new Set();
1406
+ var pendingWarnings = [];
1407
+ function loadReference() {
1408
+ if (cachedReference) {
1409
+ return cachedReference;
1410
+ }
1411
+ cachedReference = {
1412
+ supportedBuiltinComponents: new Set(supportedBuiltinComponents),
1413
+ supportedWxApis: new Set(supportedWxApis)
1414
+ };
1415
+ return cachedReference;
1416
+ }
1417
+ function getWxMemberName(node) {
1418
+ if (node?.type !== "MemberExpression") {
1419
+ return null;
1420
+ }
1421
+ if (node.object?.type !== "Identifier" || node.object.name !== "wx") {
1422
+ return null;
1423
+ }
1424
+ if (!node.computed && node.property?.type === "Identifier") {
1425
+ return node.property.name;
1426
+ }
1427
+ if (node.computed && (node.property?.type === "StringLiteral" || node.property?.type === "Literal") && typeof node.property.value === "string") {
1428
+ return node.property.value;
1429
+ }
1430
+ return null;
1431
+ }
1432
+ function warnUnsupportedWxApi(apiName, filePath, line) {
1433
+ const { supportedWxApis: supportedWxApis2 } = loadReference();
1434
+ if (!apiName || supportedWxApis2.has(apiName)) {
1435
+ return;
1436
+ }
1437
+ const location = formatLocation(filePath, line);
1438
+ warnOnce("api", apiName, location, `[compat] Unsupported wx API: wx.${apiName}${location}`);
1439
+ }
1440
+ function warnUnsupportedComponent(tagName, filePath, line) {
1441
+ const { supportedBuiltinComponents: supportedBuiltinComponents2 } = loadReference();
1442
+ if (!tagName || supportedBuiltinComponents2.has(tagName) || tagWhiteList.includes(tagName) || getViewScriptTags().includes(tagName)) {
1443
+ return;
1444
+ }
1445
+ if (!miniProgramBuiltinTags.has(tagName) && (0, import_shared.isHTMLTag)(tagName)) {
1446
+ return;
1447
+ }
1448
+ const location = formatLocation(filePath, line);
1449
+ warnOnce("component", tagName, location, `[compat] Unsupported or undeclared component: <${tagName}>${location}`);
1450
+ }
1451
+ function checkTemplateCompatibility(content, filePath, components = {}) {
1452
+ let parser;
1453
+ parser = new Parser(
1454
+ {
1455
+ onopentag(tagName) {
1456
+ if (components?.[tagName]) {
1457
+ return;
1458
+ }
1459
+ const line = getLineByIndex(content, parser.startIndex);
1460
+ warnUnsupportedComponent(tagName, filePath, line);
1461
+ },
1462
+ onerror(error) {
1463
+ warnOnce(
1464
+ "parse",
1465
+ filePath,
1466
+ error.message,
1467
+ `[compat] Failed to parse template for compatibility diagnostics: ${filePath} ${error.message}`
1468
+ );
1469
+ }
1470
+ },
1471
+ {
1472
+ xmlMode: true,
1473
+ lowerCaseTags: false,
1474
+ lowerCaseAttributeNames: false,
1475
+ withStartIndices: true
1476
+ }
1477
+ );
1478
+ parser.write(content);
1479
+ parser.end();
1480
+ }
1481
+ function getLineByIndex(content, index) {
1482
+ if (typeof index !== "number" || index < 0) {
1483
+ return null;
1484
+ }
1485
+ let line = 1;
1486
+ for (let i = 0; i < index; i++) {
1487
+ if (content.charCodeAt(i) === 10) {
1488
+ line++;
1489
+ }
1490
+ }
1491
+ return line;
1492
+ }
1493
+ function formatLocation(filePath, line) {
1494
+ if (!filePath) {
1495
+ return "";
1496
+ }
1497
+ return line ? ` (${filePath}:${line})` : ` (${filePath})`;
1498
+ }
1499
+ function warnOnce(type, name, location, message) {
1500
+ const key = `${type}:${name}:${location}`;
1501
+ if (warnedItems.has(key)) {
1502
+ return;
1503
+ }
1504
+ warnedItems.add(key);
1505
+ if (isMainThread) {
1506
+ console.warn(message);
1507
+ } else {
1508
+ pendingWarnings.push(message);
1509
+ }
1510
+ }
1511
+ function takeCompatibilityWarnings() {
1512
+ return pendingWarnings.splice(0);
1513
+ }
1514
+
1515
+ export {
1516
+ getWxMemberName,
1517
+ warnUnsupportedWxApi,
1518
+ checkTemplateCompatibility,
1519
+ takeCompatibilityWarnings
1520
+ };
1521
+ /*! Bundled license information:
1522
+
1523
+ @vue/shared/dist/shared.cjs.prod.js:
1524
+ @vue/shared/dist/shared.cjs.js:
1525
+ (**
1526
+ * @vue/shared v3.5.40
1527
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
1528
+ * @license MIT
1529
+ **)
1530
+ */