soma-core 2.2.9 → 2.2.11
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/README.md +8 -19
- package/bin/service-codegen.cjs +2 -3
- package/bin/soma.cjs +2 -2
- package/core/build/compiler/soma-precompile.js +19 -6
- package/core/client/data/region-scope-port.ts +8 -3
- package/core/client/engine/event-engine.ts +1 -1
- package/core/client/engine/soma-bootstrap.ts +9 -0
- package/core/client/engines/diff/code.ts +205 -0
- package/core/client/engines/diff/index.ts +27 -1
- package/core/client/engines/diff/port.ts +75 -0
- package/core/client/parser/confirm-spec.ts +10 -4
- package/core/client/parser/ui-config-parser.ts +14 -2
- package/core/index.ts +1 -1
- package/core/server/api/load-host-service.ts +0 -1
- package/core/server/host/source-packages.cjs +3 -0
- package/core/shared/registry-generated/diagnostic-registry-index.ts +16 -0
- package/core/shared/registry-generated/diagnostic-registry.ts +130 -0
- package/core/shared/registry-generated/limits.ts +6 -2
- package/core/shared/registry-generated/std-grammar-views.ts +1 -1
- package/core/shared/registry-generated/std-grammar.ts +1 -1
- package/core/shared/types/region-scope.types.ts +6 -0
- package/dist/browser/runtime-bundle.manifest.json +12 -12
- package/dist/browser/soma-runtime.js +752 -489
- package/dist/core/index.cjs +752 -489
- package/dist/host-native/aot-builder.cjs +366 -226
- package/dist/host-native/native-server.cjs +131 -56
- package/dist/lsp/component-tree.cjs +23 -10
- package/dist/types/client/data/region-scope-port.d.ts +1 -1
- package/dist/types/client/engine/soma-bootstrap.d.ts +5 -0
- package/dist/types/client/engines/diff/code.d.ts +27 -0
- package/dist/types/client/engines/diff/index.d.ts +2 -1
- package/dist/types/client/engines/diff/port.d.ts +77 -0
- package/dist/types/client/parser/confirm-spec.d.ts +1 -1
- package/dist/types/server/host/source-packages.d.cts +5 -0
- package/dist/types/shared/registry-generated/diagnostic-registry.d.ts +113 -1
- package/dist/types/shared/registry-generated/limits.d.ts +4 -0
- package/dist/types/shared/registry-generated/std-grammar-views.d.ts +1 -1
- package/dist/types/shared/registry-generated/std-grammar.d.ts +1 -1
- package/dist/types/shared/types/region-scope.types.d.ts +6 -0
- package/host-native/bin/host-native.cjs +1 -1
- package/host-native/client/browser-entry.ts +12 -1
- package/host-native/client/first-frame.ts +8 -0
- package/host-native/client/router-bridge.ts +8 -2
- package/host-native/src/aot-builder.ts +173 -93
- package/host-native/src/native-server.ts +131 -25
- package/host-native/src/public-packages.cjs +156 -50
- package/host-native/styles/globals.css +28 -2
- package/package.json +2 -2
- package/dist/core/adaptive-pure.cjs +0 -41
- package/dist/core/theme-pure.cjs +0 -38
- package/dist/preview-export.cjs +0 -3401
|
@@ -14732,7 +14732,7 @@ var init_temporal_polyfill = __esm({
|
|
|
14732
14732
|
}
|
|
14733
14733
|
});
|
|
14734
14734
|
|
|
14735
|
-
// ../node_modules/
|
|
14735
|
+
// ../node_modules/tslib/tslib.es6.js
|
|
14736
14736
|
function __extends(d2, b2) {
|
|
14737
14737
|
if (typeof b2 !== "function" && b2 !== null)
|
|
14738
14738
|
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
@@ -14744,7 +14744,7 @@ function __extends(d2, b2) {
|
|
|
14744
14744
|
}
|
|
14745
14745
|
var extendStatics;
|
|
14746
14746
|
var init_tslib_es6 = __esm({
|
|
14747
|
-
"../node_modules/
|
|
14747
|
+
"../node_modules/tslib/tslib.es6.js"() {
|
|
14748
14748
|
extendStatics = function(d2, b2) {
|
|
14749
14749
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
14750
14750
|
d3.__proto__ = b3;
|
|
@@ -15495,30 +15495,6 @@ var init_util = __esm({
|
|
|
15495
15495
|
}
|
|
15496
15496
|
});
|
|
15497
15497
|
|
|
15498
|
-
// ../node_modules/zrender/node_modules/tslib/tslib.es6.js
|
|
15499
|
-
function __extends2(d2, b2) {
|
|
15500
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
15501
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
15502
|
-
extendStatics2(d2, b2);
|
|
15503
|
-
function __() {
|
|
15504
|
-
this.constructor = d2;
|
|
15505
|
-
}
|
|
15506
|
-
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
15507
|
-
}
|
|
15508
|
-
var extendStatics2;
|
|
15509
|
-
var init_tslib_es62 = __esm({
|
|
15510
|
-
"../node_modules/zrender/node_modules/tslib/tslib.es6.js"() {
|
|
15511
|
-
extendStatics2 = function(d2, b2) {
|
|
15512
|
-
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
15513
|
-
d3.__proto__ = b3;
|
|
15514
|
-
} || function(d3, b3) {
|
|
15515
|
-
for (var p2 in b3) if (Object.prototype.hasOwnProperty.call(b3, p2)) d3[p2] = b3[p2];
|
|
15516
|
-
};
|
|
15517
|
-
return extendStatics2(d2, b2);
|
|
15518
|
-
};
|
|
15519
|
-
}
|
|
15520
|
-
});
|
|
15521
|
-
|
|
15522
15498
|
// ../node_modules/zrender/lib/core/vector.js
|
|
15523
15499
|
var vector_exports = {};
|
|
15524
15500
|
__export(vector_exports, {
|
|
@@ -16882,7 +16858,7 @@ function isOutsideBoundary(handlerInstance, x2, y2) {
|
|
|
16882
16858
|
var SILENT, EmptyProxy, HoveredResult, handlerNames, tmpRect, Handler, Handler_default;
|
|
16883
16859
|
var init_Handler = __esm({
|
|
16884
16860
|
"../node_modules/zrender/lib/Handler.js"() {
|
|
16885
|
-
|
|
16861
|
+
init_tslib_es6();
|
|
16886
16862
|
init_util();
|
|
16887
16863
|
init_vector();
|
|
16888
16864
|
init_Draggable();
|
|
@@ -16892,7 +16868,7 @@ var init_Handler = __esm({
|
|
|
16892
16868
|
init_BoundingRect();
|
|
16893
16869
|
SILENT = "silent";
|
|
16894
16870
|
EmptyProxy = (function(_super) {
|
|
16895
|
-
|
|
16871
|
+
__extends(EmptyProxy2, _super);
|
|
16896
16872
|
function EmptyProxy2() {
|
|
16897
16873
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
16898
16874
|
_this.handler = null;
|
|
@@ -16923,7 +16899,7 @@ var init_Handler = __esm({
|
|
|
16923
16899
|
];
|
|
16924
16900
|
tmpRect = new BoundingRect_default(0, 0, 0, 0);
|
|
16925
16901
|
Handler = (function(_super) {
|
|
16926
|
-
|
|
16902
|
+
__extends(Handler2, _super);
|
|
16927
16903
|
function Handler2(storage2, painter, proxy, painterRoot, pointerSize) {
|
|
16928
16904
|
var _this = _super.call(this) || this;
|
|
16929
16905
|
_this._hovered = new HoveredResult(0, 0);
|
|
@@ -19904,12 +19880,12 @@ function getTime() {
|
|
|
19904
19880
|
var Animation, Animation_default;
|
|
19905
19881
|
var init_Animation = __esm({
|
|
19906
19882
|
"../node_modules/zrender/lib/animation/Animation.js"() {
|
|
19907
|
-
|
|
19883
|
+
init_tslib_es6();
|
|
19908
19884
|
init_Eventful();
|
|
19909
19885
|
init_requestAnimationFrame();
|
|
19910
19886
|
init_Animator();
|
|
19911
19887
|
Animation = (function(_super) {
|
|
19912
|
-
|
|
19888
|
+
__extends(Animation2, _super);
|
|
19913
19889
|
function Animation2(opts) {
|
|
19914
19890
|
var _this = _super.call(this) || this;
|
|
19915
19891
|
_this._running = false;
|
|
@@ -20138,7 +20114,7 @@ function unmountDOMEventListeners(scope) {
|
|
|
20138
20114
|
var TOUCH_CLICK_DELAY, globalEventSupported, localNativeListenerNames, globalNativeListenerNames, wheelEventSupported, FakeGlobalEvent, localDOMHandlers, globalDOMHandlers, DOMHandlerScope, HandlerDomProxy, HandlerProxy_default;
|
|
20139
20115
|
var init_HandlerProxy = __esm({
|
|
20140
20116
|
"../node_modules/zrender/lib/dom/HandlerProxy.js"() {
|
|
20141
|
-
|
|
20117
|
+
init_tslib_es6();
|
|
20142
20118
|
init_event2();
|
|
20143
20119
|
init_util();
|
|
20144
20120
|
init_Eventful();
|
|
@@ -20316,7 +20292,7 @@ var init_HandlerProxy = __esm({
|
|
|
20316
20292
|
return DOMHandlerScope2;
|
|
20317
20293
|
})();
|
|
20318
20294
|
HandlerDomProxy = (function(_super) {
|
|
20319
|
-
|
|
20295
|
+
__extends(HandlerDomProxy2, _super);
|
|
20320
20296
|
function HandlerDomProxy2(dom, painterRoot) {
|
|
20321
20297
|
var _this = _super.call(this) || this;
|
|
20322
20298
|
_this.__pointerCapturing = false;
|
|
@@ -21852,12 +21828,12 @@ var init_Element = __esm({
|
|
|
21852
21828
|
var Group, Group_default;
|
|
21853
21829
|
var init_Group = __esm({
|
|
21854
21830
|
"../node_modules/zrender/lib/graphic/Group.js"() {
|
|
21855
|
-
|
|
21831
|
+
init_tslib_es6();
|
|
21856
21832
|
init_util();
|
|
21857
21833
|
init_Element();
|
|
21858
21834
|
init_BoundingRect();
|
|
21859
21835
|
Group = (function(_super) {
|
|
21860
|
-
|
|
21836
|
+
__extends(Group5, _super);
|
|
21861
21837
|
function Group5(opts) {
|
|
21862
21838
|
var _this = _super.call(this) || this;
|
|
21863
21839
|
_this.isGroup = true;
|
|
@@ -24224,7 +24200,7 @@ function isDisplayableCulled(el2, width, height) {
|
|
|
24224
24200
|
var STYLE_MAGIC_KEY, DEFAULT_COMMON_STYLE, DEFAULT_COMMON_ANIMATION_PROPS, PRIMARY_STATES_KEYS2, PRIMARY_STATES_KEYS_IN_HOVER_LAYER, Displayable, tmpRect2, viewRect, Displayable_default;
|
|
24225
24201
|
var init_Displayable = __esm({
|
|
24226
24202
|
"../node_modules/zrender/lib/graphic/Displayable.js"() {
|
|
24227
|
-
|
|
24203
|
+
init_tslib_es6();
|
|
24228
24204
|
init_Element();
|
|
24229
24205
|
init_BoundingRect();
|
|
24230
24206
|
init_util();
|
|
@@ -24251,7 +24227,7 @@ var init_Displayable = __esm({
|
|
|
24251
24227
|
PRIMARY_STATES_KEYS2 = ["z", "z2", "invisible"];
|
|
24252
24228
|
PRIMARY_STATES_KEYS_IN_HOVER_LAYER = ["invisible"];
|
|
24253
24229
|
Displayable = (function(_super) {
|
|
24254
|
-
|
|
24230
|
+
__extends(Displayable2, _super);
|
|
24255
24231
|
function Displayable2(props) {
|
|
24256
24232
|
return _super.call(this, props) || this;
|
|
24257
24233
|
}
|
|
@@ -25810,7 +25786,7 @@ var init_path = __esm({
|
|
|
25810
25786
|
var DEFAULT_PATH_STYLE, DEFAULT_PATH_ANIMATION_PROPS, pathCopyParams, Path, Path_default;
|
|
25811
25787
|
var init_Path = __esm({
|
|
25812
25788
|
"../node_modules/zrender/lib/graphic/Path.js"() {
|
|
25813
|
-
|
|
25789
|
+
init_tslib_es6();
|
|
25814
25790
|
init_Displayable();
|
|
25815
25791
|
init_Element();
|
|
25816
25792
|
init_PathProxy();
|
|
@@ -25854,7 +25830,7 @@ var init_Path = __esm({
|
|
|
25854
25830
|
"parent"
|
|
25855
25831
|
]);
|
|
25856
25832
|
Path = (function(_super) {
|
|
25857
|
-
|
|
25833
|
+
__extends(Path2, _super);
|
|
25858
25834
|
function Path2(opts) {
|
|
25859
25835
|
return _super.call(this, opts) || this;
|
|
25860
25836
|
}
|
|
@@ -26170,7 +26146,7 @@ var init_Path = __esm({
|
|
|
26170
26146
|
};
|
|
26171
26147
|
Path2.extend = function(defaultProps) {
|
|
26172
26148
|
var Sub = (function(_super2) {
|
|
26173
|
-
|
|
26149
|
+
__extends(Sub2, _super2);
|
|
26174
26150
|
function Sub2(opts) {
|
|
26175
26151
|
var _this = _super2.call(this, opts) || this;
|
|
26176
26152
|
defaultProps.init && defaultProps.init.call(_this, opts);
|
|
@@ -26210,7 +26186,7 @@ var init_Path = __esm({
|
|
|
26210
26186
|
var DEFAULT_TSPAN_STYLE, TSpan, TSpan_default;
|
|
26211
26187
|
var init_TSpan = __esm({
|
|
26212
26188
|
"../node_modules/zrender/lib/graphic/TSpan.js"() {
|
|
26213
|
-
|
|
26189
|
+
init_tslib_es6();
|
|
26214
26190
|
init_Displayable();
|
|
26215
26191
|
init_Path();
|
|
26216
26192
|
init_util();
|
|
@@ -26226,7 +26202,7 @@ var init_TSpan = __esm({
|
|
|
26226
26202
|
miterLimit: 2
|
|
26227
26203
|
}, DEFAULT_PATH_STYLE);
|
|
26228
26204
|
TSpan = (function(_super) {
|
|
26229
|
-
|
|
26205
|
+
__extends(TSpan2, _super);
|
|
26230
26206
|
function TSpan2() {
|
|
26231
26207
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26232
26208
|
}
|
|
@@ -26268,7 +26244,7 @@ function isImageLike(source) {
|
|
|
26268
26244
|
var DEFAULT_IMAGE_STYLE, DEFAULT_IMAGE_ANIMATION_PROPS, ZRImage, Image_default;
|
|
26269
26245
|
var init_Image = __esm({
|
|
26270
26246
|
"../node_modules/zrender/lib/graphic/Image.js"() {
|
|
26271
|
-
|
|
26247
|
+
init_tslib_es6();
|
|
26272
26248
|
init_Displayable();
|
|
26273
26249
|
init_BoundingRect();
|
|
26274
26250
|
init_util();
|
|
@@ -26289,7 +26265,7 @@ var init_Image = __esm({
|
|
|
26289
26265
|
}, DEFAULT_COMMON_ANIMATION_PROPS.style)
|
|
26290
26266
|
};
|
|
26291
26267
|
ZRImage = (function(_super) {
|
|
26292
|
-
|
|
26268
|
+
__extends(ZRImage2, _super);
|
|
26293
26269
|
function ZRImage2() {
|
|
26294
26270
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26295
26271
|
}
|
|
@@ -26479,7 +26455,7 @@ var init_subPixelOptimize = __esm({
|
|
|
26479
26455
|
var RectShape, subPixelOptimizeOutputShape, Rect, Rect_default;
|
|
26480
26456
|
var init_Rect = __esm({
|
|
26481
26457
|
"../node_modules/zrender/lib/graphic/shape/Rect.js"() {
|
|
26482
|
-
|
|
26458
|
+
init_tslib_es6();
|
|
26483
26459
|
init_Path();
|
|
26484
26460
|
init_roundRect();
|
|
26485
26461
|
init_subPixelOptimize();
|
|
@@ -26494,7 +26470,7 @@ var init_Rect = __esm({
|
|
|
26494
26470
|
})();
|
|
26495
26471
|
subPixelOptimizeOutputShape = {};
|
|
26496
26472
|
Rect = (function(_super) {
|
|
26497
|
-
|
|
26473
|
+
__extends(Rect4, _super);
|
|
26498
26474
|
function Rect4(opts) {
|
|
26499
26475
|
return _super.call(this, opts) || this;
|
|
26500
26476
|
}
|
|
@@ -26598,7 +26574,7 @@ function needDrawBackground(style) {
|
|
|
26598
26574
|
var DEFAULT_RICH_TEXT_COLOR, DEFAULT_STROKE_LINE_WIDTH, tmpCITOverflowAreaOut, DEFAULT_TEXT_ANIMATION_PROPS, ZRText, VALID_TEXT_ALIGN, VALID_TEXT_VERTICAL_ALIGN, FONT_PARTS, Text_default;
|
|
26599
26575
|
var init_Text = __esm({
|
|
26600
26576
|
"../node_modules/zrender/lib/graphic/Text.js"() {
|
|
26601
|
-
|
|
26577
|
+
init_tslib_es6();
|
|
26602
26578
|
init_parseText();
|
|
26603
26579
|
init_TSpan();
|
|
26604
26580
|
init_util();
|
|
@@ -26636,7 +26612,7 @@ var init_Text = __esm({
|
|
|
26636
26612
|
}, DEFAULT_COMMON_ANIMATION_PROPS.style)
|
|
26637
26613
|
};
|
|
26638
26614
|
ZRText = (function(_super) {
|
|
26639
|
-
|
|
26615
|
+
__extends(ZRText2, _super);
|
|
26640
26616
|
function ZRText2(opts) {
|
|
26641
26617
|
var _this = _super.call(this) || this;
|
|
26642
26618
|
_this.type = "text";
|
|
@@ -28048,7 +28024,7 @@ function createFromString(str2, opts) {
|
|
|
28048
28024
|
function extendFromString(str2, defaultOpts) {
|
|
28049
28025
|
var innerOpts = createPathOptions(str2, defaultOpts);
|
|
28050
28026
|
var Sub = (function(_super) {
|
|
28051
|
-
|
|
28027
|
+
__extends(Sub2, _super);
|
|
28052
28028
|
function Sub2(opts) {
|
|
28053
28029
|
var _this = _super.call(this, opts) || this;
|
|
28054
28030
|
_this.applyTransform = innerOpts.applyTransform;
|
|
@@ -28082,7 +28058,7 @@ function mergePath(pathEls, opts) {
|
|
|
28082
28058
|
var mathSqrt3, mathSin3, mathCos3, PI3, commandReg, numberReg, SVGPath;
|
|
28083
28059
|
var init_path2 = __esm({
|
|
28084
28060
|
"../node_modules/zrender/lib/tool/path.js"() {
|
|
28085
|
-
|
|
28061
|
+
init_tslib_es6();
|
|
28086
28062
|
init_Path();
|
|
28087
28063
|
init_PathProxy();
|
|
28088
28064
|
init_transformPath();
|
|
@@ -28094,7 +28070,7 @@ var init_path2 = __esm({
|
|
|
28094
28070
|
commandReg = /([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig;
|
|
28095
28071
|
numberReg = /-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;
|
|
28096
28072
|
SVGPath = (function(_super) {
|
|
28097
|
-
|
|
28073
|
+
__extends(SVGPath2, _super);
|
|
28098
28074
|
function SVGPath2() {
|
|
28099
28075
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
28100
28076
|
}
|
|
@@ -28109,7 +28085,7 @@ var init_path2 = __esm({
|
|
|
28109
28085
|
var CircleShape, Circle, Circle_default;
|
|
28110
28086
|
var init_Circle = __esm({
|
|
28111
28087
|
"../node_modules/zrender/lib/graphic/shape/Circle.js"() {
|
|
28112
|
-
|
|
28088
|
+
init_tslib_es6();
|
|
28113
28089
|
init_Path();
|
|
28114
28090
|
CircleShape = /* @__PURE__ */ (function() {
|
|
28115
28091
|
function CircleShape2() {
|
|
@@ -28120,7 +28096,7 @@ var init_Circle = __esm({
|
|
|
28120
28096
|
return CircleShape2;
|
|
28121
28097
|
})();
|
|
28122
28098
|
Circle = (function(_super) {
|
|
28123
|
-
|
|
28099
|
+
__extends(Circle2, _super);
|
|
28124
28100
|
function Circle2(opts) {
|
|
28125
28101
|
return _super.call(this, opts) || this;
|
|
28126
28102
|
}
|
|
@@ -28142,7 +28118,7 @@ var init_Circle = __esm({
|
|
|
28142
28118
|
var EllipseShape, Ellipse, Ellipse_default;
|
|
28143
28119
|
var init_Ellipse = __esm({
|
|
28144
28120
|
"../node_modules/zrender/lib/graphic/shape/Ellipse.js"() {
|
|
28145
|
-
|
|
28121
|
+
init_tslib_es6();
|
|
28146
28122
|
init_Path();
|
|
28147
28123
|
EllipseShape = /* @__PURE__ */ (function() {
|
|
28148
28124
|
function EllipseShape2() {
|
|
@@ -28154,7 +28130,7 @@ var init_Ellipse = __esm({
|
|
|
28154
28130
|
return EllipseShape2;
|
|
28155
28131
|
})();
|
|
28156
28132
|
Ellipse = (function(_super) {
|
|
28157
|
-
|
|
28133
|
+
__extends(Ellipse2, _super);
|
|
28158
28134
|
function Ellipse2(opts) {
|
|
28159
28135
|
return _super.call(this, opts) || this;
|
|
28160
28136
|
}
|
|
@@ -28409,7 +28385,7 @@ var init_roundSector = __esm({
|
|
|
28409
28385
|
var SectorShape, Sector, Sector_default;
|
|
28410
28386
|
var init_Sector = __esm({
|
|
28411
28387
|
"../node_modules/zrender/lib/graphic/shape/Sector.js"() {
|
|
28412
|
-
|
|
28388
|
+
init_tslib_es6();
|
|
28413
28389
|
init_Path();
|
|
28414
28390
|
init_roundSector();
|
|
28415
28391
|
SectorShape = /* @__PURE__ */ (function() {
|
|
@@ -28426,7 +28402,7 @@ var init_Sector = __esm({
|
|
|
28426
28402
|
return SectorShape2;
|
|
28427
28403
|
})();
|
|
28428
28404
|
Sector = (function(_super) {
|
|
28429
|
-
|
|
28405
|
+
__extends(Sector2, _super);
|
|
28430
28406
|
function Sector2(opts) {
|
|
28431
28407
|
return _super.call(this, opts) || this;
|
|
28432
28408
|
}
|
|
@@ -28450,7 +28426,7 @@ var init_Sector = __esm({
|
|
|
28450
28426
|
var RingShape, Ring, Ring_default;
|
|
28451
28427
|
var init_Ring = __esm({
|
|
28452
28428
|
"../node_modules/zrender/lib/graphic/shape/Ring.js"() {
|
|
28453
|
-
|
|
28429
|
+
init_tslib_es6();
|
|
28454
28430
|
init_Path();
|
|
28455
28431
|
RingShape = /* @__PURE__ */ (function() {
|
|
28456
28432
|
function RingShape2() {
|
|
@@ -28462,7 +28438,7 @@ var init_Ring = __esm({
|
|
|
28462
28438
|
return RingShape2;
|
|
28463
28439
|
})();
|
|
28464
28440
|
Ring = (function(_super) {
|
|
28465
|
-
|
|
28441
|
+
__extends(Ring2, _super);
|
|
28466
28442
|
function Ring2(opts) {
|
|
28467
28443
|
return _super.call(this, opts) || this;
|
|
28468
28444
|
}
|
|
@@ -28586,7 +28562,7 @@ var init_poly = __esm({
|
|
|
28586
28562
|
var PolygonShape, Polygon, Polygon_default;
|
|
28587
28563
|
var init_Polygon = __esm({
|
|
28588
28564
|
"../node_modules/zrender/lib/graphic/shape/Polygon.js"() {
|
|
28589
|
-
|
|
28565
|
+
init_tslib_es6();
|
|
28590
28566
|
init_Path();
|
|
28591
28567
|
init_poly();
|
|
28592
28568
|
PolygonShape = /* @__PURE__ */ (function() {
|
|
@@ -28598,7 +28574,7 @@ var init_Polygon = __esm({
|
|
|
28598
28574
|
return PolygonShape2;
|
|
28599
28575
|
})();
|
|
28600
28576
|
Polygon = (function(_super) {
|
|
28601
|
-
|
|
28577
|
+
__extends(Polygon2, _super);
|
|
28602
28578
|
function Polygon2(opts) {
|
|
28603
28579
|
return _super.call(this, opts) || this;
|
|
28604
28580
|
}
|
|
@@ -28619,7 +28595,7 @@ var init_Polygon = __esm({
|
|
|
28619
28595
|
var PolylineShape, Polyline, Polyline_default;
|
|
28620
28596
|
var init_Polyline = __esm({
|
|
28621
28597
|
"../node_modules/zrender/lib/graphic/shape/Polyline.js"() {
|
|
28622
|
-
|
|
28598
|
+
init_tslib_es6();
|
|
28623
28599
|
init_Path();
|
|
28624
28600
|
init_poly();
|
|
28625
28601
|
PolylineShape = /* @__PURE__ */ (function() {
|
|
@@ -28632,7 +28608,7 @@ var init_Polyline = __esm({
|
|
|
28632
28608
|
return PolylineShape2;
|
|
28633
28609
|
})();
|
|
28634
28610
|
Polyline = (function(_super) {
|
|
28635
|
-
|
|
28611
|
+
__extends(Polyline2, _super);
|
|
28636
28612
|
function Polyline2(opts) {
|
|
28637
28613
|
return _super.call(this, opts) || this;
|
|
28638
28614
|
}
|
|
@@ -28659,7 +28635,7 @@ var init_Polyline = __esm({
|
|
|
28659
28635
|
var subPixelOptimizeOutputShape2, LineShape, Line, Line_default;
|
|
28660
28636
|
var init_Line = __esm({
|
|
28661
28637
|
"../node_modules/zrender/lib/graphic/shape/Line.js"() {
|
|
28662
|
-
|
|
28638
|
+
init_tslib_es6();
|
|
28663
28639
|
init_Path();
|
|
28664
28640
|
init_subPixelOptimize();
|
|
28665
28641
|
subPixelOptimizeOutputShape2 = {};
|
|
@@ -28674,7 +28650,7 @@ var init_Line = __esm({
|
|
|
28674
28650
|
return LineShape2;
|
|
28675
28651
|
})();
|
|
28676
28652
|
Line = (function(_super) {
|
|
28677
|
-
|
|
28653
|
+
__extends(Line4, _super);
|
|
28678
28654
|
function Line4(opts) {
|
|
28679
28655
|
return _super.call(this, opts) || this;
|
|
28680
28656
|
}
|
|
@@ -28748,7 +28724,7 @@ function someVectorAt(shape, t3, isTangent) {
|
|
|
28748
28724
|
var out, BezierCurveShape, BezierCurve, BezierCurve_default;
|
|
28749
28725
|
var init_BezierCurve = __esm({
|
|
28750
28726
|
"../node_modules/zrender/lib/graphic/shape/BezierCurve.js"() {
|
|
28751
|
-
|
|
28727
|
+
init_tslib_es6();
|
|
28752
28728
|
init_Path();
|
|
28753
28729
|
init_vector();
|
|
28754
28730
|
init_curve();
|
|
@@ -28766,7 +28742,7 @@ var init_BezierCurve = __esm({
|
|
|
28766
28742
|
return BezierCurveShape2;
|
|
28767
28743
|
})();
|
|
28768
28744
|
BezierCurve = (function(_super) {
|
|
28769
|
-
|
|
28745
|
+
__extends(BezierCurve2, _super);
|
|
28770
28746
|
function BezierCurve2(opts) {
|
|
28771
28747
|
return _super.call(this, opts) || this;
|
|
28772
28748
|
}
|
|
@@ -28835,7 +28811,7 @@ var init_BezierCurve = __esm({
|
|
|
28835
28811
|
var ArcShape, Arc, Arc_default;
|
|
28836
28812
|
var init_Arc = __esm({
|
|
28837
28813
|
"../node_modules/zrender/lib/graphic/shape/Arc.js"() {
|
|
28838
|
-
|
|
28814
|
+
init_tslib_es6();
|
|
28839
28815
|
init_Path();
|
|
28840
28816
|
ArcShape = /* @__PURE__ */ (function() {
|
|
28841
28817
|
function ArcShape2() {
|
|
@@ -28849,7 +28825,7 @@ var init_Arc = __esm({
|
|
|
28849
28825
|
return ArcShape2;
|
|
28850
28826
|
})();
|
|
28851
28827
|
Arc = (function(_super) {
|
|
28852
|
-
|
|
28828
|
+
__extends(Arc2, _super);
|
|
28853
28829
|
function Arc2(opts) {
|
|
28854
28830
|
return _super.call(this, opts) || this;
|
|
28855
28831
|
}
|
|
@@ -28885,10 +28861,10 @@ var init_Arc = __esm({
|
|
|
28885
28861
|
var CompoundPath, CompoundPath_default;
|
|
28886
28862
|
var init_CompoundPath = __esm({
|
|
28887
28863
|
"../node_modules/zrender/lib/graphic/CompoundPath.js"() {
|
|
28888
|
-
|
|
28864
|
+
init_tslib_es6();
|
|
28889
28865
|
init_Path();
|
|
28890
28866
|
CompoundPath = (function(_super) {
|
|
28891
|
-
|
|
28867
|
+
__extends(CompoundPath2, _super);
|
|
28892
28868
|
function CompoundPath2() {
|
|
28893
28869
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
28894
28870
|
_this.type = "compound";
|
|
@@ -28961,10 +28937,10 @@ var init_Gradient = __esm({
|
|
|
28961
28937
|
var LinearGradient, LinearGradient_default;
|
|
28962
28938
|
var init_LinearGradient = __esm({
|
|
28963
28939
|
"../node_modules/zrender/lib/graphic/LinearGradient.js"() {
|
|
28964
|
-
|
|
28940
|
+
init_tslib_es6();
|
|
28965
28941
|
init_Gradient();
|
|
28966
28942
|
LinearGradient = (function(_super) {
|
|
28967
|
-
|
|
28943
|
+
__extends(LinearGradient2, _super);
|
|
28968
28944
|
function LinearGradient2(x2, y2, x22, y22, colorStops, globalCoord) {
|
|
28969
28945
|
var _this = _super.call(this, colorStops) || this;
|
|
28970
28946
|
_this.x = x2 == null ? 0 : x2;
|
|
@@ -28985,10 +28961,10 @@ var init_LinearGradient = __esm({
|
|
|
28985
28961
|
var RadialGradient, RadialGradient_default;
|
|
28986
28962
|
var init_RadialGradient = __esm({
|
|
28987
28963
|
"../node_modules/zrender/lib/graphic/RadialGradient.js"() {
|
|
28988
|
-
|
|
28964
|
+
init_tslib_es6();
|
|
28989
28965
|
init_Gradient();
|
|
28990
28966
|
RadialGradient = (function(_super) {
|
|
28991
|
-
|
|
28967
|
+
__extends(RadialGradient2, _super);
|
|
28992
28968
|
function RadialGradient2(x2, y2, r2, colorStops, globalCoord) {
|
|
28993
28969
|
var _this = _super.call(this, colorStops) || this;
|
|
28994
28970
|
_this.x = x2 == null ? 0.5 : x2;
|
|
@@ -29159,13 +29135,13 @@ var init_types2 = __esm({
|
|
|
29159
29135
|
var m2, IncrementalDisplayable, IncrementalDisplayable_default;
|
|
29160
29136
|
var init_IncrementalDisplayable = __esm({
|
|
29161
29137
|
"../node_modules/zrender/lib/graphic/IncrementalDisplayable.js"() {
|
|
29162
|
-
|
|
29138
|
+
init_tslib_es6();
|
|
29163
29139
|
init_Displayable();
|
|
29164
29140
|
init_BoundingRect();
|
|
29165
29141
|
init_types2();
|
|
29166
29142
|
m2 = [];
|
|
29167
29143
|
IncrementalDisplayable = (function(_super) {
|
|
29168
|
-
|
|
29144
|
+
__extends(IncrementalDisplayable2, _super);
|
|
29169
29145
|
function IncrementalDisplayable2() {
|
|
29170
29146
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
29171
29147
|
_this.notClear = true;
|
|
@@ -91030,7 +91006,7 @@ function getStartEndFromCursor(layer) {
|
|
|
91030
91006
|
var Layer, Layer_default;
|
|
91031
91007
|
var init_Layer = __esm({
|
|
91032
91008
|
"../node_modules/zrender/lib/canvas/Layer.js"() {
|
|
91033
|
-
|
|
91009
|
+
init_tslib_es6();
|
|
91034
91010
|
init_util();
|
|
91035
91011
|
init_config();
|
|
91036
91012
|
init_types2();
|
|
@@ -91041,7 +91017,7 @@ var init_Layer = __esm({
|
|
|
91041
91017
|
init_constants();
|
|
91042
91018
|
init_platform2();
|
|
91043
91019
|
Layer = (function(_super) {
|
|
91044
|
-
|
|
91020
|
+
__extends(Layer2, _super);
|
|
91045
91021
|
function Layer2(id2, painter, dpr2) {
|
|
91046
91022
|
var _this = _super.call(this) || this;
|
|
91047
91023
|
_this.motionBlur = false;
|
|
@@ -97404,7 +97380,6 @@ function buildTree(data) {
|
|
|
97404
97380
|
let contextHash = 0, lookAhead = 0;
|
|
97405
97381
|
function takeNode(parentStart, minPos, children2, positions2, inRepeat, depth) {
|
|
97406
97382
|
let { id: id2, start: start3, end: end2, size: size3 } = cursor;
|
|
97407
|
-
let lookAheadAtStart = lookAhead, contextAtStart = contextHash;
|
|
97408
97383
|
if (size3 < 0) {
|
|
97409
97384
|
cursor.next();
|
|
97410
97385
|
if (size3 == -1) {
|
|
@@ -97432,6 +97407,7 @@ function buildTree(data) {
|
|
|
97432
97407
|
node = new TreeBuffer(data2, end2 - buffer2.start, nodeSet);
|
|
97433
97408
|
startPos = buffer2.start - parentStart;
|
|
97434
97409
|
} else {
|
|
97410
|
+
let lookAheadAtStart = lookAhead, contextAtStart = contextHash;
|
|
97435
97411
|
let endPos = cursor.pos - size3;
|
|
97436
97412
|
cursor.next();
|
|
97437
97413
|
let localChildren = [], localPositions = [];
|
|
@@ -97440,7 +97416,7 @@ function buildTree(data) {
|
|
|
97440
97416
|
while (cursor.pos > endPos) {
|
|
97441
97417
|
if (localInRepeat >= 0 && cursor.id == localInRepeat && cursor.size >= 0) {
|
|
97442
97418
|
if (cursor.end <= lastEnd - maxBufferLength) {
|
|
97443
|
-
makeRepeatLeaf(localChildren, localPositions, start3, lastGroup, cursor.end, lastEnd, localInRepeat, groupLookAhead,
|
|
97419
|
+
makeRepeatLeaf(localChildren, localPositions, start3, lastGroup, cursor.end, lastEnd, localInRepeat, groupLookAhead, contextHash);
|
|
97444
97420
|
lastGroup = localChildren.length;
|
|
97445
97421
|
lastEnd = cursor.end;
|
|
97446
97422
|
groupLookAhead = lookAhead;
|
|
@@ -97451,7 +97427,7 @@ function buildTree(data) {
|
|
|
97451
97427
|
} else {
|
|
97452
97428
|
if (localInRepeat >= 0 && cursor.size == -1 && reused[cursor.id].type == nodeSet.types[localInRepeat]) {
|
|
97453
97429
|
if (lastGroup < localChildren.length)
|
|
97454
|
-
makeRepeatLeaf(localChildren, localPositions, start3, lastGroup, cursor.end, lastEnd, localInRepeat, groupLookAhead,
|
|
97430
|
+
makeRepeatLeaf(localChildren, localPositions, start3, lastGroup, cursor.end, lastEnd, localInRepeat, groupLookAhead, contextHash);
|
|
97455
97431
|
lastGroup = localChildren.length + 1;
|
|
97456
97432
|
lastEnd = cursor.start;
|
|
97457
97433
|
groupLookAhead = lookAhead;
|
|
@@ -97460,11 +97436,11 @@ function buildTree(data) {
|
|
|
97460
97436
|
}
|
|
97461
97437
|
}
|
|
97462
97438
|
if (localInRepeat >= 0 && lastGroup > 0 && lastGroup < localChildren.length)
|
|
97463
|
-
makeRepeatLeaf(localChildren, localPositions, start3, lastGroup, start3, lastEnd, localInRepeat, groupLookAhead,
|
|
97439
|
+
makeRepeatLeaf(localChildren, localPositions, start3, lastGroup, start3, lastEnd, localInRepeat, groupLookAhead, contextHash);
|
|
97464
97440
|
localChildren.reverse();
|
|
97465
97441
|
localPositions.reverse();
|
|
97466
97442
|
if (localInRepeat > -1 && lastGroup > 0) {
|
|
97467
|
-
let make = makeBalanced(type2
|
|
97443
|
+
let make = makeBalanced(type2);
|
|
97468
97444
|
node = balanceRange(type2, localChildren, localPositions, 0, localChildren.length, 0, end2 - start3, make, make);
|
|
97469
97445
|
} else {
|
|
97470
97446
|
node = makeTree(type2, localChildren, localPositions, end2 - start3, lookAheadAtStart - end2, contextAtStart);
|
|
@@ -97503,8 +97479,9 @@ function buildTree(data) {
|
|
|
97503
97479
|
positions2.push(start3 - parentStart);
|
|
97504
97480
|
}
|
|
97505
97481
|
}
|
|
97506
|
-
function makeBalanced(type2
|
|
97482
|
+
function makeBalanced(type2) {
|
|
97507
97483
|
return (children2, positions2, length3) => {
|
|
97484
|
+
var _a3;
|
|
97508
97485
|
let lookAhead2 = 0, lastI = children2.length - 1, last, lookAheadProp;
|
|
97509
97486
|
if (lastI >= 0 && (last = children2[lastI]) instanceof Tree2) {
|
|
97510
97487
|
if (!lastI && last.type == type2 && last.length == length3)
|
|
@@ -97512,6 +97489,12 @@ function buildTree(data) {
|
|
|
97512
97489
|
if (lookAheadProp = last.prop(NodeProp.lookAhead))
|
|
97513
97490
|
lookAhead2 = positions2[lastI] + last.length + lookAheadProp - length3;
|
|
97514
97491
|
}
|
|
97492
|
+
let contextHash2 = 0;
|
|
97493
|
+
for (let i2 = 0; i2 < children2.length; i2++)
|
|
97494
|
+
if (children2[i2] instanceof Tree2) {
|
|
97495
|
+
contextHash2 = (_a3 = children2[i2].prop(NodeProp.contextHash)) !== null && _a3 !== void 0 ? _a3 : 0;
|
|
97496
|
+
break;
|
|
97497
|
+
}
|
|
97515
97498
|
return makeTree(type2, children2, positions2, length3, lookAhead2, contextHash2);
|
|
97516
97499
|
};
|
|
97517
97500
|
}
|
|
@@ -99451,6 +99434,13 @@ function pushStackDedup(stack, newStacks) {
|
|
|
99451
99434
|
}
|
|
99452
99435
|
newStacks.push(stack);
|
|
99453
99436
|
}
|
|
99437
|
+
function wrapContextOp(op2) {
|
|
99438
|
+
if (!op2)
|
|
99439
|
+
return id;
|
|
99440
|
+
if (op2.length < 3)
|
|
99441
|
+
return op2;
|
|
99442
|
+
return (context, arg, stack, input, pos) => op2(context, arg, stack, input.reset(pos));
|
|
99443
|
+
}
|
|
99454
99444
|
function pair(data, off) {
|
|
99455
99445
|
return data[off] | data[off + 1] << 16;
|
|
99456
99446
|
}
|
|
@@ -99685,7 +99675,7 @@ var init_dist5 = __esm({
|
|
|
99685
99675
|
/* size == -1 means this is a reused value */
|
|
99686
99676
|
);
|
|
99687
99677
|
if (this.curContext)
|
|
99688
|
-
this.updateContext(this.curContext.tracker.reuse(this.curContext.context, value, this, this.p.stream
|
|
99678
|
+
this.updateContext(this.curContext.tracker.reuse(this.curContext.context, value, this, this.p.stream, this.pos - value.length));
|
|
99689
99679
|
}
|
|
99690
99680
|
// Split the stack. Due to the buffer sharing and the fact
|
|
99691
99681
|
// that `this.stack` tends to stay quite shallow, this isn't very
|
|
@@ -99905,11 +99895,11 @@ var init_dist5 = __esm({
|
|
|
99905
99895
|
}
|
|
99906
99896
|
shiftContext(term, start3) {
|
|
99907
99897
|
if (this.curContext)
|
|
99908
|
-
this.updateContext(this.curContext.tracker.shift(this.curContext.context, term, this, this.p.stream
|
|
99898
|
+
this.updateContext(this.curContext.tracker.shift(this.curContext.context, term, this, this.p.stream, start3));
|
|
99909
99899
|
}
|
|
99910
99900
|
reduceContext(term, start3) {
|
|
99911
99901
|
if (this.curContext)
|
|
99912
|
-
this.updateContext(this.curContext.tracker.reduce(this.curContext.context, term, this, this.p.stream
|
|
99902
|
+
this.updateContext(this.curContext.tracker.reduce(this.curContext.context, term, this, this.p.stream, start3));
|
|
99913
99903
|
}
|
|
99914
99904
|
/**
|
|
99915
99905
|
@internal
|
|
@@ -100813,9 +100803,9 @@ var init_dist5 = __esm({
|
|
|
100813
100803
|
*/
|
|
100814
100804
|
constructor(spec) {
|
|
100815
100805
|
this.start = spec.start;
|
|
100816
|
-
this.shift = spec.shift
|
|
100817
|
-
this.reduce = spec.reduce
|
|
100818
|
-
this.reuse = spec.reuse
|
|
100806
|
+
this.shift = wrapContextOp(spec.shift);
|
|
100807
|
+
this.reduce = wrapContextOp(spec.reduce);
|
|
100808
|
+
this.reuse = wrapContextOp(spec.reuse);
|
|
100819
100809
|
this.hash = spec.hash || (() => 0);
|
|
100820
100810
|
this.strict = spec.strict !== false;
|
|
100821
100811
|
}
|
|
@@ -106255,7 +106245,7 @@ var init_build = __esm({
|
|
|
106255
106245
|
}
|
|
106256
106246
|
});
|
|
106257
106247
|
|
|
106258
|
-
// ../node_modules/
|
|
106248
|
+
// ../node_modules/entities/dist/decode-codepoint.js
|
|
106259
106249
|
function isInvalidCodePoint(codePoint) {
|
|
106260
106250
|
return codePoint === 0 || codePoint >= 55296 && codePoint <= 57343 || codePoint > 1114111;
|
|
106261
106251
|
}
|
|
@@ -106273,7 +106263,7 @@ function codePointToString(codePoint) {
|
|
|
106273
106263
|
}
|
|
106274
106264
|
var c1;
|
|
106275
106265
|
var init_decode_codepoint = __esm({
|
|
106276
|
-
"../node_modules/
|
|
106266
|
+
"../node_modules/entities/dist/decode-codepoint.js"() {
|
|
106277
106267
|
c1 = [
|
|
106278
106268
|
8364,
|
|
106279
106269
|
0,
|
|
@@ -106311,7 +106301,7 @@ var init_decode_codepoint = __esm({
|
|
|
106311
106301
|
}
|
|
106312
106302
|
});
|
|
106313
106303
|
|
|
106314
|
-
// ../node_modules/
|
|
106304
|
+
// ../node_modules/entities/dist/internal/decode-shared.js
|
|
106315
106305
|
function decodeTrieDict(input, resultLength, atomCount, dict1AtomCount, ngramCount, dictSize) {
|
|
106316
106306
|
const base3 = 91;
|
|
106317
106307
|
const inputLength = input.length;
|
|
@@ -106407,7 +106397,7 @@ function decodeTrieDict(input, resultLength, atomCount, dict1AtomCount, ngramCou
|
|
|
106407
106397
|
}
|
|
106408
106398
|
var BASE91_INVERSE;
|
|
106409
106399
|
var init_decode_shared = __esm({
|
|
106410
|
-
"../node_modules/
|
|
106400
|
+
"../node_modules/entities/dist/internal/decode-shared.js"() {
|
|
106411
106401
|
BASE91_INVERSE = /* @__PURE__ */ (() => {
|
|
106412
106402
|
const table2 = new Uint8Array(127);
|
|
106413
106403
|
let code2 = 0;
|
|
@@ -106421,19 +106411,19 @@ var init_decode_shared = __esm({
|
|
|
106421
106411
|
}
|
|
106422
106412
|
});
|
|
106423
106413
|
|
|
106424
|
-
// ../node_modules/
|
|
106414
|
+
// ../node_modules/entities/dist/generated/decode-data-html.js
|
|
106425
106415
|
var htmlDecodeTree;
|
|
106426
106416
|
var init_decode_data_html = __esm({
|
|
106427
|
-
"../node_modules/
|
|
106417
|
+
"../node_modules/entities/dist/generated/decode-data-html.js"() {
|
|
106428
106418
|
init_decode_shared();
|
|
106429
106419
|
htmlDecodeTree = /* @__PURE__ */ decodeTrieDict("!}.&u%}'&}*'~!6*)%&,~!J~!J~%L~y<~!R,~~%Lu~~#GD~~#|)1#%}^%}2%+#.##%##%}&%##%'#%##&%#%#'%#&#%#&#'#%%#&#%##%#)%''%&%#%#'%#%%#%%}%%%#%#&(23#%%#&-%0%('1#(##%#'##+%'*.:1}#%#6-+(%'%%#%%%}#L'2351&('%}&/N'(0(/*-%(%%}#'+&T%7.2}#&%&#%#36/5##%&%%#&#%%#))2%%##%&&'0~!#*+&'%1~!%).'3q?&%'1~!.##%6(~!+%%%(Gw'rT~!E#<nA%#jZ~!H%(~!42##~!*31&~!G%U~#)5~#`3~!J~!Z~%]~%Y~%C~!q~!u~#kz~%#~!6'~!D~!U~!?~#T~!c%~!G#'~%7|~!G~!J~!G&~#pb~(Df}#%}*&}#%##%##%##&#-}&'#'&%#.++}%mI,#,@&(}*%}*'%&##&#%##%}&0}#.},U},%}+%}&%}#%##&}B%(}(%}+%)})%##%#&}&%##%&}<%}>%#%&}*%}(%}9%}/%})%}*%}*%}?&}&%}3%}&*#%})%#%#)}#&#-#+*%E%%'%'#%}#*V##&##I}#&&##%&%#&&Qf%%))w/0+&%#(#.%-''''++++7}>%4'',##1,#%#&%##&#'##&#*#9)%&%}#*}%,#+P(%A&%#'&##wSD',9E00#y#@}(+}&%&>~!#~!X}#*}(&&}(&}(,%}%&#+&}#&}I%#%}%)#(},'%#*}4%%#%}(''}#/##(##),%-##%%)#&}(.}&%#&}%%}*&#%},&&}&%}#%*'#%})%}D&}&%}-&}6&#&}-,%}#%})-(~+`~,=?~I9'9%~!,#%})%})%}@%}?%}(~!?~#<~#pP~#BG~#=1#%K+~#?#~%;)~#A~#mF1~#A'~'X%'~#lR~#N~'N~#r~#m#-~#i'?%#'%~#B%##%,%#~#_%#0%~#]732~,w~2+#:&#%&'0%&>%}#>##F+)#%&&#(+_}4&}-%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#T)2@SmYM?C2F|HAxPhH(!a#U#`a*-5Abb|4~@:RhJ9:4E|R@52B5G|F:2<BaY?C2F|Sc^#Xa2j=Qq5CJvB!-g<v{z;hhM?C2F|Zi[vrv{z;hiM?C2F|XKsA>!a)-g<v{z;h[eb?C2F|]i[vrv{z;h]eb?C2F|^iZu.vix,hZq3ah!.(?C2F|QOu!5ShXM:2<BaY?C2F|P", 13494, 2713, 49, 25, 61);
|
|
106430
106420
|
}
|
|
106431
106421
|
});
|
|
106432
106422
|
|
|
106433
|
-
// ../node_modules/
|
|
106423
|
+
// ../node_modules/entities/dist/internal/bin-trie-flags.js
|
|
106434
106424
|
var BinTrieFlags;
|
|
106435
106425
|
var init_bin_trie_flags = __esm({
|
|
106436
|
-
"../node_modules/
|
|
106426
|
+
"../node_modules/entities/dist/internal/bin-trie-flags.js"() {
|
|
106437
106427
|
(function(BinTrieFlags2) {
|
|
106438
106428
|
BinTrieFlags2[BinTrieFlags2["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
|
|
106439
106429
|
BinTrieFlags2[BinTrieFlags2["FLAG13"] = 8192] = "FLAG13";
|
|
@@ -106444,7 +106434,7 @@ var init_bin_trie_flags = __esm({
|
|
|
106444
106434
|
}
|
|
106445
106435
|
});
|
|
106446
106436
|
|
|
106447
|
-
// ../node_modules/
|
|
106437
|
+
// ../node_modules/entities/dist/decode.js
|
|
106448
106438
|
function unpackConsumed(packed) {
|
|
106449
106439
|
const consumed = packed >>> CONSUMED_SHIFT;
|
|
106450
106440
|
return consumed === CONSUMED_OVERFLOW ? longNumericConsumed : consumed;
|
|
@@ -106689,7 +106679,7 @@ function decodeHTMLStrict(htmlString) {
|
|
|
106689
106679
|
}
|
|
106690
106680
|
var CharCodes, TO_LOWER_BIT, CONSUMED_SHIFT, CODE_POINT_MASK, CONSUMED_OVERFLOW, longNumericConsumed, EntityDecoderState, DecodingMode;
|
|
106691
106681
|
var init_decode2 = __esm({
|
|
106692
|
-
"../node_modules/
|
|
106682
|
+
"../node_modules/entities/dist/decode.js"() {
|
|
106693
106683
|
init_decode_codepoint();
|
|
106694
106684
|
init_decode_data_html();
|
|
106695
106685
|
init_bin_trie_flags();
|
|
@@ -106723,10 +106713,10 @@ var init_decode2 = __esm({
|
|
|
106723
106713
|
}
|
|
106724
106714
|
});
|
|
106725
106715
|
|
|
106726
|
-
// ../node_modules/
|
|
106716
|
+
// ../node_modules/entities/dist/index.js
|
|
106727
106717
|
var EntityLevel, EncodingMode;
|
|
106728
106718
|
var init_dist17 = __esm({
|
|
106729
|
-
"../node_modules/
|
|
106719
|
+
"../node_modules/entities/dist/index.js"() {
|
|
106730
106720
|
init_decode2();
|
|
106731
106721
|
(function(EntityLevel2) {
|
|
106732
106722
|
EntityLevel2[EntityLevel2["XML"] = 0] = "XML";
|
|
@@ -114266,8 +114256,14 @@ function substituteConfirmText(text3, context, onMissing) {
|
|
|
114266
114256
|
function resolveConfirmSpec(spec, context, onMissing) {
|
|
114267
114257
|
const text3 = substituteConfirmText(spec.text, context, onMissing);
|
|
114268
114258
|
const impact = spec.impact === void 0 ? void 0 : substituteConfirmText(spec.impact, context, onMissing);
|
|
114269
|
-
|
|
114270
|
-
|
|
114259
|
+
let phraseMissing = false;
|
|
114260
|
+
const phrase = spec.phrase === void 0 ? void 0 : substituteConfirmText(spec.phrase, context, (name3) => {
|
|
114261
|
+
phraseMissing = true;
|
|
114262
|
+
onMissing?.(name3);
|
|
114263
|
+
});
|
|
114264
|
+
const finalPhrase = phrase === void 0 ? void 0 : phraseMissing ? "" : phrase;
|
|
114265
|
+
if (text3 === spec.text && impact === spec.impact && finalPhrase === spec.phrase) return spec;
|
|
114266
|
+
return { ...spec, text: text3, ...impact !== void 0 ? { impact } : {}, ...finalPhrase !== void 0 ? { phrase: finalPhrase } : {} };
|
|
114271
114267
|
}
|
|
114272
114268
|
function warnConfirmMissing(name3, where) {
|
|
114273
114269
|
if (warnedMissing.has(name3)) return;
|
|
@@ -115081,7 +115077,7 @@ var SOMA_STD_PAGE_FORBIDDEN_LOGIC_KEYS = {
|
|
|
115081
115077
|
"roleBy": { "code": "CORE-PAGE-ROLE-BY-INVALID", "pathPattern": "^[A-Za-z_$][\\w$]*(?:\\.[A-Za-z_$][\\w$]*)*$", "positions": ["bind.role_by"], "was": "bind.role_by \u5199\u4E86\u8868\u8FBE\u5F0F / \u53D6\u53CD / \u7BA1\u9053 / \u6620\u5C04", "remedy": 'role_by \u53EA\u8BB8\u7EAF\u8DEF\u5F84\uFF1A\u884C\u5B57\u6BB5\u7684\u503C\u76F4\u63A5\u4F5C\u4E3A\u6A21\u677F\u540D\uFF0C\u5339\u914D data-soma-role="item:\u53D6\u503C"\uFF1B\u884C\u6570\u636E\u81EA\u5E26\u6A21\u677F\u540D' }
|
|
115082
115078
|
},
|
|
115083
115079
|
"exemptContexts": ["diagnostics", "diagnosticExamples", "rejected", "title", "basis", "was", "summary", "docSummary"],
|
|
115084
|
-
"exampleRoots": ["soma-kit-demo/pages", "soma-kit/examples", "soma-ui/tests/fixtures/hosts"
|
|
115080
|
+
"exampleRoots": ["soma-kit-demo/pages", "soma-kit/examples", "soma-ui/tests/fixtures/hosts"],
|
|
115085
115081
|
"exampleFilePatterns": ["_ui.yaml", ".kit.yaml", "_style.yaml"],
|
|
115086
115082
|
"exampleSkipDirs": ["node_modules", "negative", "__negative__"],
|
|
115087
115083
|
"note": "forbiddenShape: 'object' = \u53EA\u7981\u5BF9\u8C61 / \u5217\u8868\u5F62\uFF0C\u503C\u4E3A\u5B57\u7B26\u4E32\uFF08\u7EAF\u8DEF\u5F84\u7ED1\u5B9A\uFF09\u653E\u884C\uFF1Bscope: 'standard' = \u53EA\u5728 core \u6807\u51C6\u683C\u5F0F\uFF08\u56DB\u4EF6\u5957 / \u6CE8\u5165\u53E3\uFF09\u5224\u5B9A\uFF0C\u4E0D\u8FDB G83 \u7684\u8DE8\u65B9\u8A00\u8BED\u6CD5\u6E90\u4E0E\u793A\u4F8B\u9875\u626B\u63CF\uFF08\u65B9\u8A00\u540C\u540D\u952E\u542B\u4E49\u4E0D\u540C\uFF0C\u5982 steps \u9875\u9762\u6A21\u5F0F\uFF09"
|
|
@@ -115794,7 +115790,7 @@ function parseUiConfig(raw, options) {
|
|
|
115794
115790
|
config2.initProps = parseInitProps(raw.initProps, "initProps");
|
|
115795
115791
|
}
|
|
115796
115792
|
if ("adaptive" in raw && raw.adaptive !== void 0) {
|
|
115797
|
-
throw new SomaUiConfigError("adaptive \u58F0\u660E\u5DF2\u9000\u5F79\uFF1A\u81EA\u9002\u5E94\u5728\u7F16\u8BD1\u671F\u7531
|
|
115793
|
+
throw new SomaUiConfigError("adaptive \u58F0\u660E\u5DF2\u9000\u5F79\uFF1A\u81EA\u9002\u5E94\u5728\u7F16\u8BD1\u671F\u7531\u4E0A\u5C42\u65B9\u8A00\u51B3\u5B9A\uFF0C\u9875\u9762\u58F0\u660E\u91CC\u4E0D\u518D\u5199 adaptive", "adaptive");
|
|
115798
115794
|
}
|
|
115799
115795
|
if ("state" in raw && raw.state !== void 0) {
|
|
115800
115796
|
config2.state = parsePageState(
|
|
@@ -115904,6 +115900,13 @@ function isMapValue(value) {
|
|
|
115904
115900
|
function isTextValue(value) {
|
|
115905
115901
|
return typeof value === "string" && value.trim() !== "";
|
|
115906
115902
|
}
|
|
115903
|
+
function isPlainJsonValue(value) {
|
|
115904
|
+
if (value === null || typeof value === "string" || typeof value === "boolean") return true;
|
|
115905
|
+
if (typeof value === "number") return Number.isFinite(value);
|
|
115906
|
+
if (Array.isArray(value)) return value.every(isPlainJsonValue);
|
|
115907
|
+
if (typeof value === "object" && [Object.prototype, null].includes(Object.getPrototypeOf(value))) return Object.values(value).every(isPlainJsonValue);
|
|
115908
|
+
return false;
|
|
115909
|
+
}
|
|
115907
115910
|
function shapeError(message, path) {
|
|
115908
115911
|
throw new SomaUiConfigError(message, path);
|
|
115909
115912
|
}
|
|
@@ -115927,7 +115930,7 @@ function shapeClosedKeys(value, allowed, what, path) {
|
|
|
115927
115930
|
var SCOPE_DECL_KEYS = { id: true, object: true, slices: true, mirrors: true, gates: true };
|
|
115928
115931
|
var SCOPE_MIRROR_KEYS = { key: true, slice: true, path: true, as: true };
|
|
115929
115932
|
var SCOPE_GATE_KEYS = { hook: true, slice: true, path: true };
|
|
115930
|
-
var SCOPE_SLICE_KEYS = { name: true, owner: true, writers: true, readers: true, ready: true };
|
|
115933
|
+
var SCOPE_SLICE_KEYS = { name: true, owner: true, writers: true, readers: true, ready: true, initial: true };
|
|
115931
115934
|
function parseScopeDeclarations(raw, path) {
|
|
115932
115935
|
if (!Array.isArray(raw)) shapeError(`${path} \u5FC5\u987B\u662F\u6570\u7EC4\uFF08\u533A\u57DF\u534F\u8C03\u4F5C\u7528\u57DF\u58F0\u660E\uFF09`, path);
|
|
115933
115936
|
const decls = raw.map((item, index) => {
|
|
@@ -115958,12 +115961,14 @@ function parseScopeDeclarations(raw, path) {
|
|
|
115958
115961
|
readers = slice2.readers;
|
|
115959
115962
|
}
|
|
115960
115963
|
if (slice2.ready !== void 0 && typeof slice2.ready !== "boolean") shapeError("ready \u5FC5\u987B\u662F\u5E03\u5C14\u503C", `${sliceAt}.ready`);
|
|
115964
|
+
if (slice2.initial !== void 0 && !isPlainJsonValue(slice2.initial)) shapeError("initial \u5FC5\u987B\u662F\u7EAF JSON \u503C\uFF08\u5BF9\u8C61 / \u6570\u7EC4 / \u5B57\u7B26\u4E32 / \u6570\u5B57 / \u5E03\u5C14 / null\uFF09", `${sliceAt}.initial`);
|
|
115961
115965
|
return {
|
|
115962
115966
|
name: name3,
|
|
115963
115967
|
owner,
|
|
115964
115968
|
...writers !== void 0 ? { writers } : {},
|
|
115965
115969
|
...readers !== void 0 ? { readers } : {},
|
|
115966
|
-
...slice2.ready === true ? { ready: true } : {}
|
|
115970
|
+
...slice2.ready === true ? { ready: true } : {},
|
|
115971
|
+
...slice2.initial !== void 0 ? { initial: slice2.initial } : {}
|
|
115967
115972
|
};
|
|
115968
115973
|
});
|
|
115969
115974
|
const object = entry.object === void 0 ? void 0 : shapeText(entry.object, "object", `${at2}.object`);
|
|
@@ -123423,6 +123428,603 @@ function assertDiffAdapter(adapter2) {
|
|
|
123423
123428
|
assertAdapterMethods("diff", adapter2, ["diff"]);
|
|
123424
123429
|
}
|
|
123425
123430
|
|
|
123431
|
+
// core/client/engines/diff/prose.ts
|
|
123432
|
+
var now3 = () => typeof performance !== "undefined" && typeof performance.now === "function" ? performance.now() : Date.now();
|
|
123433
|
+
var clock = now3;
|
|
123434
|
+
var HAN = /[⺀--ヿ㐀-䶿一-鿿豈-]/u;
|
|
123435
|
+
var CJK_PUNCT = /[ -〿-“”‘’…—]/u;
|
|
123436
|
+
var PUNCT = /^[\p{P}\p{S}\s]+$/u;
|
|
123437
|
+
var SPACE = /\s/u;
|
|
123438
|
+
var hasHan = (s2) => HAN.test(s2);
|
|
123439
|
+
var isCjk = (ch) => HAN.test(ch) || CJK_PUNCT.test(ch);
|
|
123440
|
+
function normalizeWithMap(source, cfg) {
|
|
123441
|
+
const chars = [];
|
|
123442
|
+
const origin = [];
|
|
123443
|
+
let i2 = 0;
|
|
123444
|
+
for (const cp2 of source) {
|
|
123445
|
+
const at2 = i2;
|
|
123446
|
+
i2 += cp2.length;
|
|
123447
|
+
if (cfg.newline && cp2 === "\r") continue;
|
|
123448
|
+
let mapped = cfg.nfkc ? cp2.normalize("NFKC") : cp2;
|
|
123449
|
+
if (cfg.collapseWhitespace && SPACE.test(mapped)) mapped = " ";
|
|
123450
|
+
for (const unit of mapped.split("")) {
|
|
123451
|
+
chars.push(unit);
|
|
123452
|
+
origin.push(at2);
|
|
123453
|
+
}
|
|
123454
|
+
}
|
|
123455
|
+
if (!cfg.collapseWhitespace) return { text: chars.join(""), origin, source };
|
|
123456
|
+
const outC = [];
|
|
123457
|
+
const outO = [];
|
|
123458
|
+
for (let k2 = 0; k2 < chars.length; k2 += 1) {
|
|
123459
|
+
const ch = chars[k2];
|
|
123460
|
+
if (ch !== " ") {
|
|
123461
|
+
outC.push(ch);
|
|
123462
|
+
outO.push(origin[k2]);
|
|
123463
|
+
continue;
|
|
123464
|
+
}
|
|
123465
|
+
const prev = outC.length > 0 ? outC[outC.length - 1] : "";
|
|
123466
|
+
if (prev === "" || prev === " ") continue;
|
|
123467
|
+
let n2 = k2 + 1;
|
|
123468
|
+
while (n2 < chars.length && chars[n2] === " ") n2 += 1;
|
|
123469
|
+
const next = n2 < chars.length ? chars[n2] : "";
|
|
123470
|
+
if (next === "" || isCjk(prev) || isCjk(next)) continue;
|
|
123471
|
+
outC.push(" ");
|
|
123472
|
+
outO.push(origin[k2]);
|
|
123473
|
+
}
|
|
123474
|
+
return { text: outC.join(""), origin: outO, source };
|
|
123475
|
+
}
|
|
123476
|
+
function originSlice(n2, s2, e3) {
|
|
123477
|
+
const from = s2 === 0 ? 0 : n2.origin[s2];
|
|
123478
|
+
const to2 = e3 >= n2.text.length ? n2.source.length : n2.origin[e3];
|
|
123479
|
+
return n2.source.slice(from, to2);
|
|
123480
|
+
}
|
|
123481
|
+
function diceSimilarity(a2, b2) {
|
|
123482
|
+
const ca = Array.from(a2);
|
|
123483
|
+
const cb = Array.from(b2);
|
|
123484
|
+
if (ca.length + cb.length === 0) return 1;
|
|
123485
|
+
const bag = /* @__PURE__ */ new Map();
|
|
123486
|
+
for (const ch of ca) bag.set(ch, (bag.get(ch) ?? 0) + 1);
|
|
123487
|
+
let common2 = 0;
|
|
123488
|
+
for (const ch of cb) {
|
|
123489
|
+
const left2 = bag.get(ch) ?? 0;
|
|
123490
|
+
if (left2 > 0) {
|
|
123491
|
+
common2 += 1;
|
|
123492
|
+
bag.set(ch, left2 - 1);
|
|
123493
|
+
}
|
|
123494
|
+
}
|
|
123495
|
+
return 2 * common2 / (ca.length + cb.length);
|
|
123496
|
+
}
|
|
123497
|
+
var cpLen = (s2) => Array.from(s2).length;
|
|
123498
|
+
var PUA_BASE = "\uE000".codePointAt(0);
|
|
123499
|
+
var PUA_END = "\uF8FF".codePointAt(0);
|
|
123500
|
+
var PUA_SIZE = PUA_END - PUA_BASE + 1;
|
|
123501
|
+
async function alignKeys(run, aKeys, bKeys, maxTokens) {
|
|
123502
|
+
if (aKeys.length === 0 || bKeys.length === 0) {
|
|
123503
|
+
return [...aKeys.map((_2, a2) => ({ op: "del", a: a2 })), ...bKeys.map((_2, b2) => ({ op: "ins", b: b2 }))];
|
|
123504
|
+
}
|
|
123505
|
+
const ids = /* @__PURE__ */ new Map();
|
|
123506
|
+
const code2 = (k2) => {
|
|
123507
|
+
let id2 = ids.get(k2);
|
|
123508
|
+
if (id2 === void 0) {
|
|
123509
|
+
id2 = ids.size;
|
|
123510
|
+
ids.set(k2, id2);
|
|
123511
|
+
}
|
|
123512
|
+
return String.fromCharCode(PUA_BASE + id2 % PUA_SIZE);
|
|
123513
|
+
};
|
|
123514
|
+
const sa2 = aKeys.map(code2).join("");
|
|
123515
|
+
const sb = bKeys.map(code2).join("");
|
|
123516
|
+
if (ids.size > Math.min(maxTokens, PUA_SIZE)) return null;
|
|
123517
|
+
const parts = await safeDiff(run, sa2, sb, "chars");
|
|
123518
|
+
if (parts === null) return null;
|
|
123519
|
+
const ops = [];
|
|
123520
|
+
let ia = 0;
|
|
123521
|
+
let ib = 0;
|
|
123522
|
+
for (const p2 of parts) {
|
|
123523
|
+
for (let k2 = 0; k2 < p2.text.length; k2 += 1) {
|
|
123524
|
+
if (p2.op === "equal") ops.push({ op: "eq", a: ia++, b: ib++ });
|
|
123525
|
+
else if (p2.op === "delete") ops.push({ op: "del", a: ia++ });
|
|
123526
|
+
else ops.push({ op: "ins", b: ib++ });
|
|
123527
|
+
}
|
|
123528
|
+
}
|
|
123529
|
+
if (ia !== aKeys.length || ib !== bKeys.length) return null;
|
|
123530
|
+
return ops;
|
|
123531
|
+
}
|
|
123532
|
+
async function safeDiff(run, a2, b2, mode) {
|
|
123533
|
+
const left2 = Math.floor(run.deadline - now3());
|
|
123534
|
+
if (left2 <= 0) {
|
|
123535
|
+
run.degraded ??= "timeout";
|
|
123536
|
+
return null;
|
|
123537
|
+
}
|
|
123538
|
+
try {
|
|
123539
|
+
const parts = await run.adapter.diff(a2, b2, mode, { timeoutMs: left2 });
|
|
123540
|
+
if (parts === null) run.degraded ??= "timeout";
|
|
123541
|
+
return parts;
|
|
123542
|
+
} catch {
|
|
123543
|
+
run.degraded ??= "timeout";
|
|
123544
|
+
return null;
|
|
123545
|
+
}
|
|
123546
|
+
}
|
|
123547
|
+
function pairRun(dels, inss, at2, maxMatrix) {
|
|
123548
|
+
const pairs2 = /* @__PURE__ */ new Map();
|
|
123549
|
+
if (dels.length === 0 || inss.length === 0 || dels.length * inss.length > maxMatrix) return pairs2;
|
|
123550
|
+
const cand = [];
|
|
123551
|
+
for (let d2 = 0; d2 < dels.length; d2 += 1) {
|
|
123552
|
+
for (let i2 = 0; i2 < inss.length; i2 += 1) {
|
|
123553
|
+
const s2 = diceSimilarity(dels[d2], inss[i2]);
|
|
123554
|
+
if (s2 >= at2) cand.push({ d: d2, i: i2, s: s2 });
|
|
123555
|
+
}
|
|
123556
|
+
}
|
|
123557
|
+
cand.sort((x2, y2) => y2.s - x2.s || x2.d - y2.d || x2.i - y2.i);
|
|
123558
|
+
const usedI = /* @__PURE__ */ new Set();
|
|
123559
|
+
for (const c2 of cand) {
|
|
123560
|
+
if (pairs2.has(c2.d) || usedI.has(c2.i)) continue;
|
|
123561
|
+
let crosses = false;
|
|
123562
|
+
for (const [d2, i2] of pairs2) if (d2 < c2.d && i2 > c2.i || d2 > c2.d && i2 < c2.i) {
|
|
123563
|
+
crosses = true;
|
|
123564
|
+
break;
|
|
123565
|
+
}
|
|
123566
|
+
if (crosses) continue;
|
|
123567
|
+
pairs2.set(c2.d, c2.i);
|
|
123568
|
+
usedI.add(c2.i);
|
|
123569
|
+
}
|
|
123570
|
+
return pairs2;
|
|
123571
|
+
}
|
|
123572
|
+
function pairAligned(ops, aKeys, bKeys, at2, maxMatrix) {
|
|
123573
|
+
const out2 = [];
|
|
123574
|
+
let k2 = 0;
|
|
123575
|
+
while (k2 < ops.length) {
|
|
123576
|
+
const op2 = ops[k2];
|
|
123577
|
+
if (op2.op === "eq") {
|
|
123578
|
+
out2.push(op2);
|
|
123579
|
+
k2 += 1;
|
|
123580
|
+
continue;
|
|
123581
|
+
}
|
|
123582
|
+
const dels = [];
|
|
123583
|
+
const inss = [];
|
|
123584
|
+
while (k2 < ops.length && ops[k2].op !== "eq") {
|
|
123585
|
+
const o2 = ops[k2];
|
|
123586
|
+
if (o2.op === "del") dels.push(o2.a);
|
|
123587
|
+
else if (o2.op === "ins") inss.push(o2.b);
|
|
123588
|
+
k2 += 1;
|
|
123589
|
+
}
|
|
123590
|
+
const pairs2 = pairRun(dels.map((a2) => aKeys[a2]), inss.map((b2) => bKeys[b2]), at2, maxMatrix);
|
|
123591
|
+
let di = 0;
|
|
123592
|
+
let ii = 0;
|
|
123593
|
+
const ordered = [...pairs2.entries()].sort((x2, y2) => x2[0] - y2[0]);
|
|
123594
|
+
for (const [d2, i2] of ordered) {
|
|
123595
|
+
for (; di < d2; di += 1) out2.push({ op: "del", a: dels[di] });
|
|
123596
|
+
for (; ii < i2; ii += 1) out2.push({ op: "ins", b: inss[ii] });
|
|
123597
|
+
out2.push({ op: "mod", a: dels[d2], b: inss[i2] });
|
|
123598
|
+
di = d2 + 1;
|
|
123599
|
+
ii = i2 + 1;
|
|
123600
|
+
}
|
|
123601
|
+
for (; di < dels.length; di += 1) out2.push({ op: "del", a: dels[di] });
|
|
123602
|
+
for (; ii < inss.length; ii += 1) out2.push({ op: "ins", b: inss[ii] });
|
|
123603
|
+
}
|
|
123604
|
+
return out2;
|
|
123605
|
+
}
|
|
123606
|
+
function splitParagraphs(text3) {
|
|
123607
|
+
return text3.split(/\r?\n/u).filter((line) => line.trim() !== "");
|
|
123608
|
+
}
|
|
123609
|
+
var sentenceSeg;
|
|
123610
|
+
function sentenceSegmenter() {
|
|
123611
|
+
if (sentenceSeg !== void 0) return sentenceSeg;
|
|
123612
|
+
const ctor = Intl.Segmenter;
|
|
123613
|
+
sentenceSeg = typeof ctor === "function" ? new ctor("zh", { granularity: "sentence" }) : null;
|
|
123614
|
+
return sentenceSeg;
|
|
123615
|
+
}
|
|
123616
|
+
function hasSegmenter() {
|
|
123617
|
+
return typeof Intl.Segmenter === "function";
|
|
123618
|
+
}
|
|
123619
|
+
function splitSentences(paragraph2) {
|
|
123620
|
+
const seg = sentenceSegmenter();
|
|
123621
|
+
const out2 = [];
|
|
123622
|
+
if (seg !== null) {
|
|
123623
|
+
for (const s2 of seg.segment(paragraph2)) if (s2.segment !== "") out2.push(s2.segment);
|
|
123624
|
+
} else {
|
|
123625
|
+
const re2 = /[^。!?!?;;]*[。!?!?;;]+[”’」』))]*\s*|[^。!?!?;;]+$/gu;
|
|
123626
|
+
for (const m4 of paragraph2.matchAll(re2)) if (m4[0] !== "") out2.push(m4[0]);
|
|
123627
|
+
}
|
|
123628
|
+
return out2.length > 0 ? out2 : [paragraph2];
|
|
123629
|
+
}
|
|
123630
|
+
function tidy(frags) {
|
|
123631
|
+
const out2 = [];
|
|
123632
|
+
let del = "";
|
|
123633
|
+
let ins = "";
|
|
123634
|
+
const flush = () => {
|
|
123635
|
+
if (del !== "") out2.push({ op: "del", v: del });
|
|
123636
|
+
if (ins !== "") out2.push({ op: "ins", v: ins });
|
|
123637
|
+
del = "";
|
|
123638
|
+
ins = "";
|
|
123639
|
+
};
|
|
123640
|
+
for (const f2 of frags) {
|
|
123641
|
+
if (f2.v === "") continue;
|
|
123642
|
+
if (f2.op === "del") del += f2.v;
|
|
123643
|
+
else if (f2.op === "ins") ins += f2.v;
|
|
123644
|
+
else {
|
|
123645
|
+
flush();
|
|
123646
|
+
const last = out2[out2.length - 1];
|
|
123647
|
+
if (last !== void 0 && last.op === "eq") out2[out2.length - 1] = { op: "eq", v: last.v + f2.v };
|
|
123648
|
+
else out2.push(f2);
|
|
123649
|
+
}
|
|
123650
|
+
}
|
|
123651
|
+
flush();
|
|
123652
|
+
return out2;
|
|
123653
|
+
}
|
|
123654
|
+
function absorbOrphans(frags, max6) {
|
|
123655
|
+
if (max6 <= 0) return tidy(frags);
|
|
123656
|
+
const out2 = [];
|
|
123657
|
+
for (let k2 = 0; k2 < frags.length; k2 += 1) {
|
|
123658
|
+
const f2 = frags[k2];
|
|
123659
|
+
const prev = frags[k2 - 1];
|
|
123660
|
+
const next = frags[k2 + 1];
|
|
123661
|
+
if (f2.op === "eq" && prev !== void 0 && next !== void 0 && prev.op !== "eq" && next.op !== "eq" && cpLen(f2.v) <= max6 && !PUNCT.test(f2.v)) {
|
|
123662
|
+
out2.push({ op: "del", v: f2.v }, { op: "ins", v: f2.v });
|
|
123663
|
+
} else out2.push(f2);
|
|
123664
|
+
}
|
|
123665
|
+
return tidy(out2);
|
|
123666
|
+
}
|
|
123667
|
+
function countChanges(frags) {
|
|
123668
|
+
let n2 = 0;
|
|
123669
|
+
let inChange = false;
|
|
123670
|
+
for (const f2 of frags) {
|
|
123671
|
+
if (f2.op === "eq") inChange = false;
|
|
123672
|
+
else if (!inChange) {
|
|
123673
|
+
n2 += 1;
|
|
123674
|
+
inChange = true;
|
|
123675
|
+
}
|
|
123676
|
+
}
|
|
123677
|
+
return n2;
|
|
123678
|
+
}
|
|
123679
|
+
async function diffWordsMapped(run, cfg, a2, b2) {
|
|
123680
|
+
const na = normalizeWithMap(a2, cfg);
|
|
123681
|
+
const nb = normalizeWithMap(b2, cfg);
|
|
123682
|
+
if (na.text === nb.text) return [{ op: "eq", v: b2 }];
|
|
123683
|
+
const whole = [{ op: "del", v: a2 }, { op: "ins", v: b2 }];
|
|
123684
|
+
if (na.text.length + nb.text.length > cfg.maxCharsPerCompare) {
|
|
123685
|
+
run.degraded ??= "too-large";
|
|
123686
|
+
return whole;
|
|
123687
|
+
}
|
|
123688
|
+
const zh = hasHan(na.text) || hasHan(nb.text);
|
|
123689
|
+
let mode = zh ? "words-zh" : "words";
|
|
123690
|
+
if (zh && !hasSegmenter()) {
|
|
123691
|
+
mode = "chars";
|
|
123692
|
+
run.usedChars = true;
|
|
123693
|
+
run.degraded ??= "no-segmenter";
|
|
123694
|
+
}
|
|
123695
|
+
if (zh && mode === "words-zh") run.usedZh = true;
|
|
123696
|
+
let parts = await safeDiff(run, na.text, nb.text, mode);
|
|
123697
|
+
if (parts === null) return whole;
|
|
123698
|
+
let mapped = mapParts(parts, na, nb);
|
|
123699
|
+
if (mapped === null && mode !== "chars") {
|
|
123700
|
+
parts = await safeDiff(run, na.text, nb.text, "chars");
|
|
123701
|
+
mapped = parts === null ? null : mapParts(parts, na, nb);
|
|
123702
|
+
}
|
|
123703
|
+
return mapped ?? whole;
|
|
123704
|
+
}
|
|
123705
|
+
function mapParts(parts, na, nb) {
|
|
123706
|
+
const out2 = [];
|
|
123707
|
+
let ia = 0;
|
|
123708
|
+
let ib = 0;
|
|
123709
|
+
for (const p2 of parts) {
|
|
123710
|
+
const len2 = p2.text.length;
|
|
123711
|
+
if (p2.op === "equal") {
|
|
123712
|
+
if (na.text.slice(ia, ia + len2) !== p2.text || nb.text.slice(ib, ib + len2) !== p2.text) return null;
|
|
123713
|
+
out2.push({ op: "eq", v: originSlice(nb, ib, ib + len2) });
|
|
123714
|
+
ia += len2;
|
|
123715
|
+
ib += len2;
|
|
123716
|
+
} else if (p2.op === "delete") {
|
|
123717
|
+
if (na.text.slice(ia, ia + len2) !== p2.text) return null;
|
|
123718
|
+
out2.push({ op: "del", v: originSlice(na, ia, ia + len2) });
|
|
123719
|
+
ia += len2;
|
|
123720
|
+
} else {
|
|
123721
|
+
if (nb.text.slice(ib, ib + len2) !== p2.text) return null;
|
|
123722
|
+
out2.push({ op: "ins", v: originSlice(nb, ib, ib + len2) });
|
|
123723
|
+
ib += len2;
|
|
123724
|
+
}
|
|
123725
|
+
}
|
|
123726
|
+
if (ia !== na.text.length || ib !== nb.text.length) return null;
|
|
123727
|
+
return out2;
|
|
123728
|
+
}
|
|
123729
|
+
async function diffParagraph(run, cfg, a2, b2) {
|
|
123730
|
+
const sa2 = splitSentences(a2);
|
|
123731
|
+
const sb = splitSentences(b2);
|
|
123732
|
+
const ka2 = sa2.map((s2) => normalizeWithMap(s2, cfg).text);
|
|
123733
|
+
const kb = sb.map((s2) => normalizeWithMap(s2, cfg).text);
|
|
123734
|
+
const aligned = await alignKeys(run, ka2, kb, cfg.maxAlignTokens);
|
|
123735
|
+
if (aligned === null) return [{ op: "del", v: a2 }, { op: "ins", v: b2 }];
|
|
123736
|
+
const units = pairAligned(aligned, ka2, kb, cfg.pairAt, cfg.maxPairMatrix);
|
|
123737
|
+
const frags = [];
|
|
123738
|
+
for (const u2 of units) {
|
|
123739
|
+
if (u2.op === "eq") frags.push({ op: "eq", v: sb[u2.b] });
|
|
123740
|
+
else if (u2.op === "del") frags.push({ op: "del", v: sa2[u2.a] });
|
|
123741
|
+
else if (u2.op === "ins") frags.push({ op: "ins", v: sb[u2.b] });
|
|
123742
|
+
else frags.push(...await diffWordsMapped(run, cfg, sa2[u2.a], sb[u2.b]));
|
|
123743
|
+
}
|
|
123744
|
+
return absorbOrphans(frags, cfg.absorbOrphan);
|
|
123745
|
+
}
|
|
123746
|
+
function statsOf(blocks) {
|
|
123747
|
+
let ins = 0;
|
|
123748
|
+
let del = 0;
|
|
123749
|
+
let changes = 0;
|
|
123750
|
+
for (const blk of blocks) {
|
|
123751
|
+
for (const f2 of blk.fragments) {
|
|
123752
|
+
if (f2.op === "ins") ins += cpLen(f2.v.replace(/\s+/gu, ""));
|
|
123753
|
+
else if (f2.op === "del") del += cpLen(f2.v.replace(/\s+/gu, ""));
|
|
123754
|
+
}
|
|
123755
|
+
if (blk.op === "ins" || blk.op === "del") changes += 1;
|
|
123756
|
+
else if (blk.op === "mod") changes += countChanges(blk.fragments);
|
|
123757
|
+
}
|
|
123758
|
+
return { insChars: ins, delChars: del, changes };
|
|
123759
|
+
}
|
|
123760
|
+
function similarityOf(blocks, aLen, bLen) {
|
|
123761
|
+
if (aLen + bLen === 0) return 1;
|
|
123762
|
+
let eq = 0;
|
|
123763
|
+
for (const blk of blocks) for (const f2 of blk.fragments) if (f2.op === "eq") eq += cpLen(f2.v.replace(/\s+/gu, ""));
|
|
123764
|
+
return Math.min(1, 2 * eq / (aLen + bLen));
|
|
123765
|
+
}
|
|
123766
|
+
var compact2 = (s2) => cpLen(s2.replace(/\s+/gu, ""));
|
|
123767
|
+
function rewriteBlocks(pa2, pb) {
|
|
123768
|
+
return [...pa2.map((v4) => ({ op: "del", fragments: [{ op: "del", v: v4 }] })), ...pb.map((v4) => ({ op: "ins", fragments: [{ op: "ins", v: v4 }] }))];
|
|
123769
|
+
}
|
|
123770
|
+
async function runProse(run, cfg, a2, b2) {
|
|
123771
|
+
const pa2 = splitParagraphs(a2);
|
|
123772
|
+
const pb = splitParagraphs(b2);
|
|
123773
|
+
const granularity = () => run.usedChars ? "chars" : run.usedZh ? "words-zh" : hasHan(a2) || hasHan(b2) ? hasSegmenter() ? "words-zh" : "chars" : "words";
|
|
123774
|
+
const aLen = compact2(a2);
|
|
123775
|
+
const bLen = compact2(b2);
|
|
123776
|
+
const finish = (kind, blocks2, formatOnly = false) => {
|
|
123777
|
+
const stats = statsOf(blocks2);
|
|
123778
|
+
const out2 = { kind, formatOnly, similarity: kind === "same" ? 1 : similarityOf(blocks2, aLen, bLen), blocks: blocks2, stats, granularity: granularity() };
|
|
123779
|
+
return run.degraded !== void 0 ? { ...out2, degraded: run.degraded } : out2;
|
|
123780
|
+
};
|
|
123781
|
+
if (a2.length + b2.length > cfg.maxChars) {
|
|
123782
|
+
run.degraded = "too-large";
|
|
123783
|
+
return finish(pa2.length > 0 && pb.length > 0 ? "rewrite" : "inline", rewriteBlocks(pa2, pb));
|
|
123784
|
+
}
|
|
123785
|
+
const ka2 = pa2.map((p2) => normalizeWithMap(p2, cfg).text);
|
|
123786
|
+
const kb = pb.map((p2) => normalizeWithMap(p2, cfg).text);
|
|
123787
|
+
if (ka2.length === kb.length && ka2.every((k2, i2) => k2 === kb[i2])) {
|
|
123788
|
+
return finish("same", pb.map((v4) => ({ op: "eq", fragments: [{ op: "eq", v: v4 }] })), a2 !== b2);
|
|
123789
|
+
}
|
|
123790
|
+
if (pa2.length === 0 || pb.length === 0) return finish("inline", rewriteBlocks(pa2, pb));
|
|
123791
|
+
const aligned = await alignKeys(run, ka2, kb, cfg.maxAlignTokens);
|
|
123792
|
+
if (aligned === null) return finish("rewrite", rewriteBlocks(pa2, pb));
|
|
123793
|
+
const units = pairAligned(aligned, ka2, kb, cfg.pairAt, cfg.maxPairMatrix);
|
|
123794
|
+
const blocks = [];
|
|
123795
|
+
for (const u2 of units) {
|
|
123796
|
+
if (u2.op === "eq") blocks.push({ op: "eq", fragments: [{ op: "eq", v: pb[u2.b] }] });
|
|
123797
|
+
else if (u2.op === "del") blocks.push({ op: "del", fragments: [{ op: "del", v: pa2[u2.a] }] });
|
|
123798
|
+
else if (u2.op === "ins") blocks.push({ op: "ins", fragments: [{ op: "ins", v: pb[u2.b] }] });
|
|
123799
|
+
else blocks.push({ op: "mod", fragments: await diffParagraph(run, cfg, pa2[u2.a], pb[u2.b]) });
|
|
123800
|
+
}
|
|
123801
|
+
const sim = similarityOf(blocks, aLen, bLen);
|
|
123802
|
+
if (sim < cfg.rewriteBelow) return finish("rewrite", rewriteBlocks(pa2, pb));
|
|
123803
|
+
return finish("inline", blocks);
|
|
123804
|
+
}
|
|
123805
|
+
|
|
123806
|
+
// core/client/engines/diff/code.ts
|
|
123807
|
+
var toFrags = (parts) => tidy(parts.map((p2) => ({ v: p2.text, op: p2.op === "equal" ? "eq" : p2.op === "insert" ? "ins" : "del" })));
|
|
123808
|
+
var linesOf = (s2) => s2 === "" ? [] : s2.replace(/\r\n?/gu, "\n").split("\n");
|
|
123809
|
+
var squash = (s2) => s2.replace(/\s+/gu, "");
|
|
123810
|
+
function hunksOf(lines, context) {
|
|
123811
|
+
const changed = [];
|
|
123812
|
+
lines.forEach((l2, i2) => {
|
|
123813
|
+
if (l2.op !== "eq") changed.push(i2);
|
|
123814
|
+
});
|
|
123815
|
+
if (changed.length === 0) return [];
|
|
123816
|
+
const ranges = [];
|
|
123817
|
+
for (const i2 of changed) {
|
|
123818
|
+
const from = Math.max(0, i2 - context);
|
|
123819
|
+
const to2 = Math.min(lines.length - 1, i2 + context);
|
|
123820
|
+
const last = ranges[ranges.length - 1];
|
|
123821
|
+
if (last && from <= last[1] + 1) last[1] = Math.max(last[1], to2);
|
|
123822
|
+
else ranges.push([from, to2]);
|
|
123823
|
+
}
|
|
123824
|
+
return ranges.map(([from, to2]) => {
|
|
123825
|
+
const slice2 = lines.slice(from, to2 + 1);
|
|
123826
|
+
const firstA = slice2.find((l2) => l2.a !== void 0)?.a ?? 0;
|
|
123827
|
+
const firstB = slice2.find((l2) => l2.b !== void 0)?.b ?? 0;
|
|
123828
|
+
return {
|
|
123829
|
+
aStart: firstA,
|
|
123830
|
+
aLines: slice2.filter((l2) => l2.a !== void 0).length,
|
|
123831
|
+
bStart: firstB,
|
|
123832
|
+
bLines: slice2.filter((l2) => l2.b !== void 0).length,
|
|
123833
|
+
from,
|
|
123834
|
+
to: to2,
|
|
123835
|
+
lines: slice2
|
|
123836
|
+
};
|
|
123837
|
+
});
|
|
123838
|
+
}
|
|
123839
|
+
async function runCode(run, cfg, a2, b2) {
|
|
123840
|
+
const aLines = linesOf(a2);
|
|
123841
|
+
const bLines = linesOf(b2);
|
|
123842
|
+
const whitespaceOnly = a2 !== b2 && squash(a2) === squash(b2);
|
|
123843
|
+
if (a2 === b2) {
|
|
123844
|
+
const lines2 = aLines.map((text3, i2) => ({ op: "eq", a: i2 + 1, b: i2 + 1, text: text3 }));
|
|
123845
|
+
return { kind: "same", lines: lines2, hunks: [], stats: { added: 0, removed: 0, modified: 0 }, whitespaceOnly: false };
|
|
123846
|
+
}
|
|
123847
|
+
const plain2 = (degraded) => {
|
|
123848
|
+
const lines2 = [
|
|
123849
|
+
...aLines.map((text3, i2) => ({ op: "del", a: i2 + 1, text: text3 })),
|
|
123850
|
+
...bLines.map((text3, i2) => ({ op: "ins", b: i2 + 1, text: text3 }))
|
|
123851
|
+
];
|
|
123852
|
+
return { kind: "changed", lines: lines2, hunks: [{ aStart: 1, aLines: aLines.length, bStart: 1, bLines: bLines.length, from: 0, to: lines2.length - 1, lines: lines2 }], stats: { added: bLines.length, removed: aLines.length, modified: 0 }, whitespaceOnly, degraded };
|
|
123853
|
+
};
|
|
123854
|
+
if (a2.length + b2.length > cfg.maxChars) return plain2("too-large");
|
|
123855
|
+
const ops = await alignKeys(run, aLines, bLines, cfg.maxAlignTokens);
|
|
123856
|
+
if (ops === null) return plain2(run.degraded === "timeout" ? "timeout" : "too-large");
|
|
123857
|
+
const units = pairAligned(ops, aLines, bLines, cfg.pairAt, cfg.maxPairMatrix);
|
|
123858
|
+
const lines = [];
|
|
123859
|
+
let added = 0;
|
|
123860
|
+
let removed = 0;
|
|
123861
|
+
let modified = 0;
|
|
123862
|
+
let pendingDel = [];
|
|
123863
|
+
let pendingIns = [];
|
|
123864
|
+
const flush = () => {
|
|
123865
|
+
lines.push(...pendingDel, ...pendingIns);
|
|
123866
|
+
pendingDel = [];
|
|
123867
|
+
pendingIns = [];
|
|
123868
|
+
};
|
|
123869
|
+
for (const u2 of units) {
|
|
123870
|
+
if (u2.op === "eq") {
|
|
123871
|
+
flush();
|
|
123872
|
+
lines.push({ op: "eq", a: u2.a + 1, b: u2.b + 1, text: aLines[u2.a] });
|
|
123873
|
+
continue;
|
|
123874
|
+
}
|
|
123875
|
+
if (u2.op === "del") {
|
|
123876
|
+
removed += 1;
|
|
123877
|
+
pendingDel.push({ op: "del", a: u2.a + 1, text: aLines[u2.a] });
|
|
123878
|
+
continue;
|
|
123879
|
+
}
|
|
123880
|
+
if (u2.op === "ins") {
|
|
123881
|
+
added += 1;
|
|
123882
|
+
pendingIns.push({ op: "ins", b: u2.b + 1, text: bLines[u2.b] });
|
|
123883
|
+
continue;
|
|
123884
|
+
}
|
|
123885
|
+
modified += 1;
|
|
123886
|
+
const la = aLines[u2.a];
|
|
123887
|
+
const lb2 = bLines[u2.b];
|
|
123888
|
+
let frags = null;
|
|
123889
|
+
if (la.length <= cfg.intraMaxLine && lb2.length <= cfg.intraMaxLine) {
|
|
123890
|
+
const parts = await safeDiff(run, la, lb2, "chars");
|
|
123891
|
+
if (parts !== null) frags = toFrags(parts);
|
|
123892
|
+
}
|
|
123893
|
+
pendingDel.push({ op: "del", a: u2.a + 1, text: la, pair: u2.b + 1, ...frags ? { fragments: frags.filter((f2) => f2.op !== "ins") } : {} });
|
|
123894
|
+
pendingIns.push({ op: "ins", b: u2.b + 1, text: lb2, pair: u2.a + 1, ...frags ? { fragments: frags.filter((f2) => f2.op !== "del") } : {} });
|
|
123895
|
+
}
|
|
123896
|
+
flush();
|
|
123897
|
+
const out2 = { kind: "changed", lines, hunks: hunksOf(lines, cfg.context), stats: { added, removed, modified }, whitespaceOnly };
|
|
123898
|
+
return run.degraded !== void 0 ? { ...out2, degraded: run.degraded === "timeout" ? "timeout" : "too-large" } : out2;
|
|
123899
|
+
}
|
|
123900
|
+
function splitMarkdownBlocks(source) {
|
|
123901
|
+
const out2 = [];
|
|
123902
|
+
let cur = [];
|
|
123903
|
+
let fence2 = null;
|
|
123904
|
+
for (const line of source.replace(/\r\n?/gu, "\n").split("\n")) {
|
|
123905
|
+
const m4 = /^\s{0,3}(`{3,}|~{3,})/u.exec(line);
|
|
123906
|
+
if (fence2 !== null) {
|
|
123907
|
+
cur.push(line);
|
|
123908
|
+
if (m4 && m4[1].startsWith(fence2)) {
|
|
123909
|
+
out2.push(cur.join("\n"));
|
|
123910
|
+
cur = [];
|
|
123911
|
+
fence2 = null;
|
|
123912
|
+
}
|
|
123913
|
+
continue;
|
|
123914
|
+
}
|
|
123915
|
+
if (m4) {
|
|
123916
|
+
if (cur.length > 0) out2.push(cur.join("\n"));
|
|
123917
|
+
cur = [line];
|
|
123918
|
+
fence2 = m4[1].slice(0, 3);
|
|
123919
|
+
continue;
|
|
123920
|
+
}
|
|
123921
|
+
if (line.trim() === "") {
|
|
123922
|
+
if (cur.length > 0) out2.push(cur.join("\n"));
|
|
123923
|
+
cur = [];
|
|
123924
|
+
continue;
|
|
123925
|
+
}
|
|
123926
|
+
cur.push(line);
|
|
123927
|
+
}
|
|
123928
|
+
if (cur.length > 0) out2.push(cur.join("\n"));
|
|
123929
|
+
return out2;
|
|
123930
|
+
}
|
|
123931
|
+
function markdownBlockKind(block2) {
|
|
123932
|
+
const first = block2.split("\n", 1)[0].trimStart();
|
|
123933
|
+
const h2 = /^(#{1,6})\s/u.exec(first);
|
|
123934
|
+
if (h2) return { kind: "heading", detail: String(h2[1].length) };
|
|
123935
|
+
const f2 = /^(`{3,}|~{3,})\s*([^\s`]*)/u.exec(first);
|
|
123936
|
+
if (f2) return { kind: "code", detail: f2[2] ?? "" };
|
|
123937
|
+
if (/^>/u.test(first)) return { kind: "quote", detail: "" };
|
|
123938
|
+
if (/^\d+[.)]\s/u.test(first)) return { kind: "list", detail: "ordered" };
|
|
123939
|
+
if (/^[-*+]\s/u.test(first)) return { kind: "list", detail: "bullet" };
|
|
123940
|
+
if (/^\|/u.test(first)) return { kind: "table", detail: "" };
|
|
123941
|
+
if (/^(-{3,}|\*{3,}|_{3,})\s*$/u.test(first)) return { kind: "hr", detail: "" };
|
|
123942
|
+
return { kind: "paragraph", detail: "" };
|
|
123943
|
+
}
|
|
123944
|
+
function markdownBlockText(block2, kind) {
|
|
123945
|
+
if (kind === "code") return block2.split("\n").slice(1).filter((l2, i2, arr) => !(i2 === arr.length - 1 && /^\s*(`{3,}|~{3,})\s*$/u.test(l2))).join("\n");
|
|
123946
|
+
return block2.split("\n").map((l2) => l2.replace(/^\s{0,3}(#{1,6}\s+|>\s?|[-*+]\s+(\[[ xX]\]\s+)?|\d+[.)]\s+)/u, "")).join("\n").trim();
|
|
123947
|
+
}
|
|
123948
|
+
async function runMarkdown(run, cfg, a2, b2) {
|
|
123949
|
+
if (a2 === b2) {
|
|
123950
|
+
const blocks2 = splitMarkdownBlocks(a2).map((s2) => ({ op: "eq", kind: markdownBlockKind(s2).kind, before: s2, after: s2 }));
|
|
123951
|
+
return { kind: "same", blocks: blocks2, stats: { added: 0, removed: 0, modified: 0, same: blocks2.length } };
|
|
123952
|
+
}
|
|
123953
|
+
const aBlocks = splitMarkdownBlocks(a2);
|
|
123954
|
+
const bBlocks = splitMarkdownBlocks(b2);
|
|
123955
|
+
if (a2.length + b2.length > cfg.maxChars || aBlocks.length + bBlocks.length > cfg.maxBlocks) {
|
|
123956
|
+
return { kind: "changed", blocks: [], stats: { added: 0, removed: 0, modified: 0, same: 0 }, degraded: "too-large" };
|
|
123957
|
+
}
|
|
123958
|
+
const meta2 = (s2) => {
|
|
123959
|
+
const k2 = markdownBlockKind(s2);
|
|
123960
|
+
return { ...k2, text: markdownBlockText(s2, k2.kind) };
|
|
123961
|
+
};
|
|
123962
|
+
const am = aBlocks.map(meta2);
|
|
123963
|
+
const bm2 = bBlocks.map(meta2);
|
|
123964
|
+
const key = (m4) => `${m4.kind}\0${m4.text.replace(/\s+/gu, " ")}`;
|
|
123965
|
+
const ops = await alignKeys(run, am.map(key), bm2.map(key), cfg.maxAlignTokens);
|
|
123966
|
+
if (ops === null) return { kind: "changed", blocks: [], stats: { added: 0, removed: 0, modified: 0, same: 0 }, degraded: run.degraded === "timeout" ? "timeout" : "too-large" };
|
|
123967
|
+
const units = pairAligned(ops, am.map((m4) => `${m4.kind}:${m4.text}`), bm2.map((m4) => `${m4.kind}:${m4.text}`), cfg.pairAt, cfg.maxPairMatrix);
|
|
123968
|
+
const blocks = [];
|
|
123969
|
+
let added = 0;
|
|
123970
|
+
let removed = 0;
|
|
123971
|
+
let modified = 0;
|
|
123972
|
+
let same = 0;
|
|
123973
|
+
for (const u2 of units) {
|
|
123974
|
+
if (u2.op === "eq") {
|
|
123975
|
+
const x3 = am[u2.a];
|
|
123976
|
+
const y3 = bm2[u2.b];
|
|
123977
|
+
const notes2 = structureNotes(x3, y3);
|
|
123978
|
+
if (notes2.length === 0 && aBlocks[u2.a] === bBlocks[u2.b]) {
|
|
123979
|
+
same += 1;
|
|
123980
|
+
blocks.push({ op: "eq", kind: y3.kind, before: aBlocks[u2.a], after: bBlocks[u2.b] });
|
|
123981
|
+
continue;
|
|
123982
|
+
}
|
|
123983
|
+
modified += 1;
|
|
123984
|
+
blocks.push({ op: "mod", kind: y3.kind, before: aBlocks[u2.a], after: bBlocks[u2.b], fragments: [{ v: y3.text, op: "eq" }], ...notes2.length > 0 ? { notes: notes2 } : {} });
|
|
123985
|
+
continue;
|
|
123986
|
+
}
|
|
123987
|
+
if (u2.op === "del") {
|
|
123988
|
+
removed += 1;
|
|
123989
|
+
blocks.push({ op: "del", kind: am[u2.a].kind, before: aBlocks[u2.a] });
|
|
123990
|
+
continue;
|
|
123991
|
+
}
|
|
123992
|
+
if (u2.op === "ins") {
|
|
123993
|
+
added += 1;
|
|
123994
|
+
blocks.push({ op: "ins", kind: bm2[u2.b].kind, after: bBlocks[u2.b] });
|
|
123995
|
+
continue;
|
|
123996
|
+
}
|
|
123997
|
+
const x2 = am[u2.a];
|
|
123998
|
+
const y2 = bm2[u2.b];
|
|
123999
|
+
if (x2.kind !== y2.kind) {
|
|
124000
|
+
removed += 1;
|
|
124001
|
+
added += 1;
|
|
124002
|
+
blocks.push({ op: "del", kind: x2.kind, before: aBlocks[u2.a] }, { op: "ins", kind: y2.kind, after: bBlocks[u2.b] });
|
|
124003
|
+
continue;
|
|
124004
|
+
}
|
|
124005
|
+
modified += 1;
|
|
124006
|
+
const mode = hasHan(x2.text) || hasHan(y2.text) ? "words-zh" : "words";
|
|
124007
|
+
const parts = x2.kind === "code" ? null : await safeDiff(run, x2.text, y2.text, mode);
|
|
124008
|
+
const notes = structureNotes(x2, y2);
|
|
124009
|
+
blocks.push({
|
|
124010
|
+
op: "mod",
|
|
124011
|
+
kind: y2.kind,
|
|
124012
|
+
before: aBlocks[u2.a],
|
|
124013
|
+
after: bBlocks[u2.b],
|
|
124014
|
+
...parts !== null ? { fragments: toFrags(parts) } : {},
|
|
124015
|
+
...notes.length > 0 ? { notes } : {},
|
|
124016
|
+
similarity: diceSimilarity(x2.text, y2.text)
|
|
124017
|
+
});
|
|
124018
|
+
}
|
|
124019
|
+
const out2 = { kind: "changed", blocks, stats: { added, removed, modified, same } };
|
|
124020
|
+
return run.degraded !== void 0 ? { ...out2, degraded: run.degraded === "timeout" ? "timeout" : "too-large" } : out2;
|
|
124021
|
+
}
|
|
124022
|
+
function structureNotes(x2, y2) {
|
|
124023
|
+
if (x2.kind !== y2.kind || x2.detail === y2.detail) return [];
|
|
124024
|
+
const what = x2.kind === "heading" ? "heading-level" : x2.kind === "list" ? "list-type" : x2.kind === "code" ? "code-language" : null;
|
|
124025
|
+
return what === null ? [] : [{ what, before: x2.detail, after: y2.detail }];
|
|
124026
|
+
}
|
|
124027
|
+
|
|
123426
124028
|
// core/client/engines/diff/index.ts
|
|
123427
124029
|
init_engine_error();
|
|
123428
124030
|
|
|
@@ -124058,7 +124660,9 @@ var SOMA_PIPELINE_LIMITS = {
|
|
|
124058
124660
|
"bodyAt": "\u65E0 key \u6761\u76EE\u6309\u6B63\u6587\u914D\u5BF9\u7684\u76F8\u4F3C\u5EA6\u9608\u503C\uFF08\u7B14\u8BB0 C.2 ItemOpts.match.bodyAt 0.5\uFF09",
|
|
124059
124661
|
"maxAlignTokens": "\u5E8F\u5217\u5BF9\u9F50\u7684\u4E0D\u540C\u952E\u6570\u4E0A\u9650\uFF08\u6BCF\u4E2A\u952E\u6620\u5C04\u4E3A\u4E00\u4E2A BMP \u79C1\u7528\u533A\u5B57\u7B26\uFF0CU+E000\u2013U+F8FF \u5171 6400 \u4E2A\uFF09",
|
|
124060
124662
|
"maxPairMatrix": "\u4E00\u6BB5\u5220\u589E\u533A\u95F4\u5185\u53E5 / \u6BB5\u914D\u5BF9\u7684\u5019\u9009\u77E9\u9635\u4E0A\u9650\uFF08\u5220\u6570 \xD7 \u589E\u6570\uFF09\uFF0C\u8D85\u51FA\u4E0D\u914D\u5BF9\u3001\u6309\u5220 + \u589E\u5448\u73B0\uFF1B\u7ECF\u9A8C\u503C\uFF0C\u8BC1\u636E\u5F31",
|
|
124061
|
-
"maxPairCandidates": "\u65E0 key \u6761\u76EE\u6309\u76F8\u4F3C\u5EA6\u914D\u5BF9\u7684\u5019\u9009\u77E9\u9635\u4E0A\u9650\uFF08\u5269\u4F59\u65E7\u6761\u76EE \xD7 \u5269\u4F59\u65B0\u6761\u76EE\uFF09\uFF1B\u7ECF\u9A8C\u503C\uFF0C\u8BC1\u636E\u5F31"
|
|
124663
|
+
"maxPairCandidates": "\u65E0 key \u6761\u76EE\u6309\u76F8\u4F3C\u5EA6\u914D\u5BF9\u7684\u5019\u9009\u77E9\u9635\u4E0A\u9650\uFF08\u5269\u4F59\u65E7\u6761\u76EE \xD7 \u5269\u4F59\u65B0\u6761\u76EE\uFF09\uFF1B\u7ECF\u9A8C\u503C\uFF0C\u8BC1\u636E\u5F31",
|
|
124664
|
+
"codeContext": "\u4EE3\u7801\u5DEE\u5F02\u6BCF\u5757\u7684\u4E0A\u4E0B\u6587\u884C\u6570\uFF08\u7B14\u8BB0 C.5\u300C\u4E0A\u4E0B\u6587 3 \u884C\u300D\uFF0C\u540C git diff -U3 / VS Code\uFF09",
|
|
124665
|
+
"codeIntraMaxLine": "\u4EE3\u7801\u6539\u884C\u505A\u884C\u5185\u5B57\u7B26\u5DEE\u5F02\u7684\u5355\u884C\u957F\u5EA6\u4E0A\u9650\uFF08\u5B57\u7B26\uFF09\uFF1B\u66F4\u957F\u7684\u884C\u53EA\u6807\u6574\u884C\u589E\u5220\uFF08\u7ECF\u9A8C\u503C\uFF1A\u538B\u7F29\u540E\u7684\u957F\u884C\u9010\u5B57\u6BD4\u8F83\u65E0\u610F\u4E49\u4E14\u8017\u65F6\uFF09"
|
|
124062
124666
|
},
|
|
124063
124667
|
"maxChars": 2e5,
|
|
124064
124668
|
"maxCharsPerCompare": 2e4,
|
|
@@ -124073,7 +124677,9 @@ var SOMA_PIPELINE_LIMITS = {
|
|
|
124073
124677
|
"bodyAt": 0.5,
|
|
124074
124678
|
"maxAlignTokens": 6400,
|
|
124075
124679
|
"maxPairMatrix": 2500,
|
|
124076
|
-
"maxPairCandidates": 25e4
|
|
124680
|
+
"maxPairCandidates": 25e4,
|
|
124681
|
+
"codeContext": 3,
|
|
124682
|
+
"codeIntraMaxLine": 500
|
|
124077
124683
|
},
|
|
124078
124684
|
"highlight": {
|
|
124079
124685
|
"basis": {
|
|
@@ -124143,381 +124749,6 @@ function createJsdiffAdapter(adapterOptions = {}) {
|
|
|
124143
124749
|
};
|
|
124144
124750
|
}
|
|
124145
124751
|
|
|
124146
|
-
// core/client/engines/diff/prose.ts
|
|
124147
|
-
var now3 = () => typeof performance !== "undefined" && typeof performance.now === "function" ? performance.now() : Date.now();
|
|
124148
|
-
var clock = now3;
|
|
124149
|
-
var HAN = /[⺀--ヿ㐀-䶿一-鿿豈-]/u;
|
|
124150
|
-
var CJK_PUNCT = /[ -〿-“”‘’…—]/u;
|
|
124151
|
-
var PUNCT = /^[\p{P}\p{S}\s]+$/u;
|
|
124152
|
-
var SPACE = /\s/u;
|
|
124153
|
-
var hasHan = (s2) => HAN.test(s2);
|
|
124154
|
-
var isCjk = (ch) => HAN.test(ch) || CJK_PUNCT.test(ch);
|
|
124155
|
-
function normalizeWithMap(source, cfg) {
|
|
124156
|
-
const chars = [];
|
|
124157
|
-
const origin = [];
|
|
124158
|
-
let i2 = 0;
|
|
124159
|
-
for (const cp2 of source) {
|
|
124160
|
-
const at2 = i2;
|
|
124161
|
-
i2 += cp2.length;
|
|
124162
|
-
if (cfg.newline && cp2 === "\r") continue;
|
|
124163
|
-
let mapped = cfg.nfkc ? cp2.normalize("NFKC") : cp2;
|
|
124164
|
-
if (cfg.collapseWhitespace && SPACE.test(mapped)) mapped = " ";
|
|
124165
|
-
for (const unit of mapped.split("")) {
|
|
124166
|
-
chars.push(unit);
|
|
124167
|
-
origin.push(at2);
|
|
124168
|
-
}
|
|
124169
|
-
}
|
|
124170
|
-
if (!cfg.collapseWhitespace) return { text: chars.join(""), origin, source };
|
|
124171
|
-
const outC = [];
|
|
124172
|
-
const outO = [];
|
|
124173
|
-
for (let k2 = 0; k2 < chars.length; k2 += 1) {
|
|
124174
|
-
const ch = chars[k2];
|
|
124175
|
-
if (ch !== " ") {
|
|
124176
|
-
outC.push(ch);
|
|
124177
|
-
outO.push(origin[k2]);
|
|
124178
|
-
continue;
|
|
124179
|
-
}
|
|
124180
|
-
const prev = outC.length > 0 ? outC[outC.length - 1] : "";
|
|
124181
|
-
if (prev === "" || prev === " ") continue;
|
|
124182
|
-
let n2 = k2 + 1;
|
|
124183
|
-
while (n2 < chars.length && chars[n2] === " ") n2 += 1;
|
|
124184
|
-
const next = n2 < chars.length ? chars[n2] : "";
|
|
124185
|
-
if (next === "" || isCjk(prev) || isCjk(next)) continue;
|
|
124186
|
-
outC.push(" ");
|
|
124187
|
-
outO.push(origin[k2]);
|
|
124188
|
-
}
|
|
124189
|
-
return { text: outC.join(""), origin: outO, source };
|
|
124190
|
-
}
|
|
124191
|
-
function originSlice(n2, s2, e3) {
|
|
124192
|
-
const from = s2 === 0 ? 0 : n2.origin[s2];
|
|
124193
|
-
const to2 = e3 >= n2.text.length ? n2.source.length : n2.origin[e3];
|
|
124194
|
-
return n2.source.slice(from, to2);
|
|
124195
|
-
}
|
|
124196
|
-
function diceSimilarity(a2, b2) {
|
|
124197
|
-
const ca = Array.from(a2);
|
|
124198
|
-
const cb = Array.from(b2);
|
|
124199
|
-
if (ca.length + cb.length === 0) return 1;
|
|
124200
|
-
const bag = /* @__PURE__ */ new Map();
|
|
124201
|
-
for (const ch of ca) bag.set(ch, (bag.get(ch) ?? 0) + 1);
|
|
124202
|
-
let common2 = 0;
|
|
124203
|
-
for (const ch of cb) {
|
|
124204
|
-
const left2 = bag.get(ch) ?? 0;
|
|
124205
|
-
if (left2 > 0) {
|
|
124206
|
-
common2 += 1;
|
|
124207
|
-
bag.set(ch, left2 - 1);
|
|
124208
|
-
}
|
|
124209
|
-
}
|
|
124210
|
-
return 2 * common2 / (ca.length + cb.length);
|
|
124211
|
-
}
|
|
124212
|
-
var cpLen = (s2) => Array.from(s2).length;
|
|
124213
|
-
var PUA_BASE = "\uE000".codePointAt(0);
|
|
124214
|
-
var PUA_END = "\uF8FF".codePointAt(0);
|
|
124215
|
-
var PUA_SIZE = PUA_END - PUA_BASE + 1;
|
|
124216
|
-
async function alignKeys(run, aKeys, bKeys, maxTokens) {
|
|
124217
|
-
if (aKeys.length === 0 || bKeys.length === 0) {
|
|
124218
|
-
return [...aKeys.map((_2, a2) => ({ op: "del", a: a2 })), ...bKeys.map((_2, b2) => ({ op: "ins", b: b2 }))];
|
|
124219
|
-
}
|
|
124220
|
-
const ids = /* @__PURE__ */ new Map();
|
|
124221
|
-
const code2 = (k2) => {
|
|
124222
|
-
let id2 = ids.get(k2);
|
|
124223
|
-
if (id2 === void 0) {
|
|
124224
|
-
id2 = ids.size;
|
|
124225
|
-
ids.set(k2, id2);
|
|
124226
|
-
}
|
|
124227
|
-
return String.fromCharCode(PUA_BASE + id2 % PUA_SIZE);
|
|
124228
|
-
};
|
|
124229
|
-
const sa2 = aKeys.map(code2).join("");
|
|
124230
|
-
const sb = bKeys.map(code2).join("");
|
|
124231
|
-
if (ids.size > Math.min(maxTokens, PUA_SIZE)) return null;
|
|
124232
|
-
const parts = await safeDiff(run, sa2, sb, "chars");
|
|
124233
|
-
if (parts === null) return null;
|
|
124234
|
-
const ops = [];
|
|
124235
|
-
let ia = 0;
|
|
124236
|
-
let ib = 0;
|
|
124237
|
-
for (const p2 of parts) {
|
|
124238
|
-
for (let k2 = 0; k2 < p2.text.length; k2 += 1) {
|
|
124239
|
-
if (p2.op === "equal") ops.push({ op: "eq", a: ia++, b: ib++ });
|
|
124240
|
-
else if (p2.op === "delete") ops.push({ op: "del", a: ia++ });
|
|
124241
|
-
else ops.push({ op: "ins", b: ib++ });
|
|
124242
|
-
}
|
|
124243
|
-
}
|
|
124244
|
-
if (ia !== aKeys.length || ib !== bKeys.length) return null;
|
|
124245
|
-
return ops;
|
|
124246
|
-
}
|
|
124247
|
-
async function safeDiff(run, a2, b2, mode) {
|
|
124248
|
-
const left2 = Math.floor(run.deadline - now3());
|
|
124249
|
-
if (left2 <= 0) {
|
|
124250
|
-
run.degraded ??= "timeout";
|
|
124251
|
-
return null;
|
|
124252
|
-
}
|
|
124253
|
-
try {
|
|
124254
|
-
const parts = await run.adapter.diff(a2, b2, mode, { timeoutMs: left2 });
|
|
124255
|
-
if (parts === null) run.degraded ??= "timeout";
|
|
124256
|
-
return parts;
|
|
124257
|
-
} catch {
|
|
124258
|
-
run.degraded ??= "timeout";
|
|
124259
|
-
return null;
|
|
124260
|
-
}
|
|
124261
|
-
}
|
|
124262
|
-
function pairRun(dels, inss, at2, maxMatrix) {
|
|
124263
|
-
const pairs2 = /* @__PURE__ */ new Map();
|
|
124264
|
-
if (dels.length === 0 || inss.length === 0 || dels.length * inss.length > maxMatrix) return pairs2;
|
|
124265
|
-
const cand = [];
|
|
124266
|
-
for (let d2 = 0; d2 < dels.length; d2 += 1) {
|
|
124267
|
-
for (let i2 = 0; i2 < inss.length; i2 += 1) {
|
|
124268
|
-
const s2 = diceSimilarity(dels[d2], inss[i2]);
|
|
124269
|
-
if (s2 >= at2) cand.push({ d: d2, i: i2, s: s2 });
|
|
124270
|
-
}
|
|
124271
|
-
}
|
|
124272
|
-
cand.sort((x2, y2) => y2.s - x2.s || x2.d - y2.d || x2.i - y2.i);
|
|
124273
|
-
const usedI = /* @__PURE__ */ new Set();
|
|
124274
|
-
for (const c2 of cand) {
|
|
124275
|
-
if (pairs2.has(c2.d) || usedI.has(c2.i)) continue;
|
|
124276
|
-
let crosses = false;
|
|
124277
|
-
for (const [d2, i2] of pairs2) if (d2 < c2.d && i2 > c2.i || d2 > c2.d && i2 < c2.i) {
|
|
124278
|
-
crosses = true;
|
|
124279
|
-
break;
|
|
124280
|
-
}
|
|
124281
|
-
if (crosses) continue;
|
|
124282
|
-
pairs2.set(c2.d, c2.i);
|
|
124283
|
-
usedI.add(c2.i);
|
|
124284
|
-
}
|
|
124285
|
-
return pairs2;
|
|
124286
|
-
}
|
|
124287
|
-
function pairAligned(ops, aKeys, bKeys, at2, maxMatrix) {
|
|
124288
|
-
const out2 = [];
|
|
124289
|
-
let k2 = 0;
|
|
124290
|
-
while (k2 < ops.length) {
|
|
124291
|
-
const op2 = ops[k2];
|
|
124292
|
-
if (op2.op === "eq") {
|
|
124293
|
-
out2.push(op2);
|
|
124294
|
-
k2 += 1;
|
|
124295
|
-
continue;
|
|
124296
|
-
}
|
|
124297
|
-
const dels = [];
|
|
124298
|
-
const inss = [];
|
|
124299
|
-
while (k2 < ops.length && ops[k2].op !== "eq") {
|
|
124300
|
-
const o2 = ops[k2];
|
|
124301
|
-
if (o2.op === "del") dels.push(o2.a);
|
|
124302
|
-
else if (o2.op === "ins") inss.push(o2.b);
|
|
124303
|
-
k2 += 1;
|
|
124304
|
-
}
|
|
124305
|
-
const pairs2 = pairRun(dels.map((a2) => aKeys[a2]), inss.map((b2) => bKeys[b2]), at2, maxMatrix);
|
|
124306
|
-
let di = 0;
|
|
124307
|
-
let ii = 0;
|
|
124308
|
-
const ordered = [...pairs2.entries()].sort((x2, y2) => x2[0] - y2[0]);
|
|
124309
|
-
for (const [d2, i2] of ordered) {
|
|
124310
|
-
for (; di < d2; di += 1) out2.push({ op: "del", a: dels[di] });
|
|
124311
|
-
for (; ii < i2; ii += 1) out2.push({ op: "ins", b: inss[ii] });
|
|
124312
|
-
out2.push({ op: "mod", a: dels[d2], b: inss[i2] });
|
|
124313
|
-
di = d2 + 1;
|
|
124314
|
-
ii = i2 + 1;
|
|
124315
|
-
}
|
|
124316
|
-
for (; di < dels.length; di += 1) out2.push({ op: "del", a: dels[di] });
|
|
124317
|
-
for (; ii < inss.length; ii += 1) out2.push({ op: "ins", b: inss[ii] });
|
|
124318
|
-
}
|
|
124319
|
-
return out2;
|
|
124320
|
-
}
|
|
124321
|
-
function splitParagraphs(text3) {
|
|
124322
|
-
return text3.split(/\r?\n/u).filter((line) => line.trim() !== "");
|
|
124323
|
-
}
|
|
124324
|
-
var sentenceSeg;
|
|
124325
|
-
function sentenceSegmenter() {
|
|
124326
|
-
if (sentenceSeg !== void 0) return sentenceSeg;
|
|
124327
|
-
const ctor = Intl.Segmenter;
|
|
124328
|
-
sentenceSeg = typeof ctor === "function" ? new ctor("zh", { granularity: "sentence" }) : null;
|
|
124329
|
-
return sentenceSeg;
|
|
124330
|
-
}
|
|
124331
|
-
function hasSegmenter() {
|
|
124332
|
-
return typeof Intl.Segmenter === "function";
|
|
124333
|
-
}
|
|
124334
|
-
function splitSentences(paragraph2) {
|
|
124335
|
-
const seg = sentenceSegmenter();
|
|
124336
|
-
const out2 = [];
|
|
124337
|
-
if (seg !== null) {
|
|
124338
|
-
for (const s2 of seg.segment(paragraph2)) if (s2.segment !== "") out2.push(s2.segment);
|
|
124339
|
-
} else {
|
|
124340
|
-
const re2 = /[^。!?!?;;]*[。!?!?;;]+[”’」』))]*\s*|[^。!?!?;;]+$/gu;
|
|
124341
|
-
for (const m4 of paragraph2.matchAll(re2)) if (m4[0] !== "") out2.push(m4[0]);
|
|
124342
|
-
}
|
|
124343
|
-
return out2.length > 0 ? out2 : [paragraph2];
|
|
124344
|
-
}
|
|
124345
|
-
function tidy(frags) {
|
|
124346
|
-
const out2 = [];
|
|
124347
|
-
let del = "";
|
|
124348
|
-
let ins = "";
|
|
124349
|
-
const flush = () => {
|
|
124350
|
-
if (del !== "") out2.push({ op: "del", v: del });
|
|
124351
|
-
if (ins !== "") out2.push({ op: "ins", v: ins });
|
|
124352
|
-
del = "";
|
|
124353
|
-
ins = "";
|
|
124354
|
-
};
|
|
124355
|
-
for (const f2 of frags) {
|
|
124356
|
-
if (f2.v === "") continue;
|
|
124357
|
-
if (f2.op === "del") del += f2.v;
|
|
124358
|
-
else if (f2.op === "ins") ins += f2.v;
|
|
124359
|
-
else {
|
|
124360
|
-
flush();
|
|
124361
|
-
const last = out2[out2.length - 1];
|
|
124362
|
-
if (last !== void 0 && last.op === "eq") out2[out2.length - 1] = { op: "eq", v: last.v + f2.v };
|
|
124363
|
-
else out2.push(f2);
|
|
124364
|
-
}
|
|
124365
|
-
}
|
|
124366
|
-
flush();
|
|
124367
|
-
return out2;
|
|
124368
|
-
}
|
|
124369
|
-
function absorbOrphans(frags, max6) {
|
|
124370
|
-
if (max6 <= 0) return tidy(frags);
|
|
124371
|
-
const out2 = [];
|
|
124372
|
-
for (let k2 = 0; k2 < frags.length; k2 += 1) {
|
|
124373
|
-
const f2 = frags[k2];
|
|
124374
|
-
const prev = frags[k2 - 1];
|
|
124375
|
-
const next = frags[k2 + 1];
|
|
124376
|
-
if (f2.op === "eq" && prev !== void 0 && next !== void 0 && prev.op !== "eq" && next.op !== "eq" && cpLen(f2.v) <= max6 && !PUNCT.test(f2.v)) {
|
|
124377
|
-
out2.push({ op: "del", v: f2.v }, { op: "ins", v: f2.v });
|
|
124378
|
-
} else out2.push(f2);
|
|
124379
|
-
}
|
|
124380
|
-
return tidy(out2);
|
|
124381
|
-
}
|
|
124382
|
-
function countChanges(frags) {
|
|
124383
|
-
let n2 = 0;
|
|
124384
|
-
let inChange = false;
|
|
124385
|
-
for (const f2 of frags) {
|
|
124386
|
-
if (f2.op === "eq") inChange = false;
|
|
124387
|
-
else if (!inChange) {
|
|
124388
|
-
n2 += 1;
|
|
124389
|
-
inChange = true;
|
|
124390
|
-
}
|
|
124391
|
-
}
|
|
124392
|
-
return n2;
|
|
124393
|
-
}
|
|
124394
|
-
async function diffWordsMapped(run, cfg, a2, b2) {
|
|
124395
|
-
const na = normalizeWithMap(a2, cfg);
|
|
124396
|
-
const nb = normalizeWithMap(b2, cfg);
|
|
124397
|
-
if (na.text === nb.text) return [{ op: "eq", v: b2 }];
|
|
124398
|
-
const whole = [{ op: "del", v: a2 }, { op: "ins", v: b2 }];
|
|
124399
|
-
if (na.text.length + nb.text.length > cfg.maxCharsPerCompare) {
|
|
124400
|
-
run.degraded ??= "too-large";
|
|
124401
|
-
return whole;
|
|
124402
|
-
}
|
|
124403
|
-
const zh = hasHan(na.text) || hasHan(nb.text);
|
|
124404
|
-
let mode = zh ? "words-zh" : "words";
|
|
124405
|
-
if (zh && !hasSegmenter()) {
|
|
124406
|
-
mode = "chars";
|
|
124407
|
-
run.usedChars = true;
|
|
124408
|
-
run.degraded ??= "no-segmenter";
|
|
124409
|
-
}
|
|
124410
|
-
if (zh && mode === "words-zh") run.usedZh = true;
|
|
124411
|
-
let parts = await safeDiff(run, na.text, nb.text, mode);
|
|
124412
|
-
if (parts === null) return whole;
|
|
124413
|
-
let mapped = mapParts(parts, na, nb);
|
|
124414
|
-
if (mapped === null && mode !== "chars") {
|
|
124415
|
-
parts = await safeDiff(run, na.text, nb.text, "chars");
|
|
124416
|
-
mapped = parts === null ? null : mapParts(parts, na, nb);
|
|
124417
|
-
}
|
|
124418
|
-
return mapped ?? whole;
|
|
124419
|
-
}
|
|
124420
|
-
function mapParts(parts, na, nb) {
|
|
124421
|
-
const out2 = [];
|
|
124422
|
-
let ia = 0;
|
|
124423
|
-
let ib = 0;
|
|
124424
|
-
for (const p2 of parts) {
|
|
124425
|
-
const len2 = p2.text.length;
|
|
124426
|
-
if (p2.op === "equal") {
|
|
124427
|
-
if (na.text.slice(ia, ia + len2) !== p2.text || nb.text.slice(ib, ib + len2) !== p2.text) return null;
|
|
124428
|
-
out2.push({ op: "eq", v: originSlice(nb, ib, ib + len2) });
|
|
124429
|
-
ia += len2;
|
|
124430
|
-
ib += len2;
|
|
124431
|
-
} else if (p2.op === "delete") {
|
|
124432
|
-
if (na.text.slice(ia, ia + len2) !== p2.text) return null;
|
|
124433
|
-
out2.push({ op: "del", v: originSlice(na, ia, ia + len2) });
|
|
124434
|
-
ia += len2;
|
|
124435
|
-
} else {
|
|
124436
|
-
if (nb.text.slice(ib, ib + len2) !== p2.text) return null;
|
|
124437
|
-
out2.push({ op: "ins", v: originSlice(nb, ib, ib + len2) });
|
|
124438
|
-
ib += len2;
|
|
124439
|
-
}
|
|
124440
|
-
}
|
|
124441
|
-
if (ia !== na.text.length || ib !== nb.text.length) return null;
|
|
124442
|
-
return out2;
|
|
124443
|
-
}
|
|
124444
|
-
async function diffParagraph(run, cfg, a2, b2) {
|
|
124445
|
-
const sa2 = splitSentences(a2);
|
|
124446
|
-
const sb = splitSentences(b2);
|
|
124447
|
-
const ka2 = sa2.map((s2) => normalizeWithMap(s2, cfg).text);
|
|
124448
|
-
const kb = sb.map((s2) => normalizeWithMap(s2, cfg).text);
|
|
124449
|
-
const aligned = await alignKeys(run, ka2, kb, cfg.maxAlignTokens);
|
|
124450
|
-
if (aligned === null) return [{ op: "del", v: a2 }, { op: "ins", v: b2 }];
|
|
124451
|
-
const units = pairAligned(aligned, ka2, kb, cfg.pairAt, cfg.maxPairMatrix);
|
|
124452
|
-
const frags = [];
|
|
124453
|
-
for (const u2 of units) {
|
|
124454
|
-
if (u2.op === "eq") frags.push({ op: "eq", v: sb[u2.b] });
|
|
124455
|
-
else if (u2.op === "del") frags.push({ op: "del", v: sa2[u2.a] });
|
|
124456
|
-
else if (u2.op === "ins") frags.push({ op: "ins", v: sb[u2.b] });
|
|
124457
|
-
else frags.push(...await diffWordsMapped(run, cfg, sa2[u2.a], sb[u2.b]));
|
|
124458
|
-
}
|
|
124459
|
-
return absorbOrphans(frags, cfg.absorbOrphan);
|
|
124460
|
-
}
|
|
124461
|
-
function statsOf(blocks) {
|
|
124462
|
-
let ins = 0;
|
|
124463
|
-
let del = 0;
|
|
124464
|
-
let changes = 0;
|
|
124465
|
-
for (const blk of blocks) {
|
|
124466
|
-
for (const f2 of blk.fragments) {
|
|
124467
|
-
if (f2.op === "ins") ins += cpLen(f2.v.replace(/\s+/gu, ""));
|
|
124468
|
-
else if (f2.op === "del") del += cpLen(f2.v.replace(/\s+/gu, ""));
|
|
124469
|
-
}
|
|
124470
|
-
if (blk.op === "ins" || blk.op === "del") changes += 1;
|
|
124471
|
-
else if (blk.op === "mod") changes += countChanges(blk.fragments);
|
|
124472
|
-
}
|
|
124473
|
-
return { insChars: ins, delChars: del, changes };
|
|
124474
|
-
}
|
|
124475
|
-
function similarityOf(blocks, aLen, bLen) {
|
|
124476
|
-
if (aLen + bLen === 0) return 1;
|
|
124477
|
-
let eq = 0;
|
|
124478
|
-
for (const blk of blocks) for (const f2 of blk.fragments) if (f2.op === "eq") eq += cpLen(f2.v.replace(/\s+/gu, ""));
|
|
124479
|
-
return Math.min(1, 2 * eq / (aLen + bLen));
|
|
124480
|
-
}
|
|
124481
|
-
var compact2 = (s2) => cpLen(s2.replace(/\s+/gu, ""));
|
|
124482
|
-
function rewriteBlocks(pa2, pb) {
|
|
124483
|
-
return [...pa2.map((v4) => ({ op: "del", fragments: [{ op: "del", v: v4 }] })), ...pb.map((v4) => ({ op: "ins", fragments: [{ op: "ins", v: v4 }] }))];
|
|
124484
|
-
}
|
|
124485
|
-
async function runProse(run, cfg, a2, b2) {
|
|
124486
|
-
const pa2 = splitParagraphs(a2);
|
|
124487
|
-
const pb = splitParagraphs(b2);
|
|
124488
|
-
const granularity = () => run.usedChars ? "chars" : run.usedZh ? "words-zh" : hasHan(a2) || hasHan(b2) ? hasSegmenter() ? "words-zh" : "chars" : "words";
|
|
124489
|
-
const aLen = compact2(a2);
|
|
124490
|
-
const bLen = compact2(b2);
|
|
124491
|
-
const finish = (kind, blocks2, formatOnly = false) => {
|
|
124492
|
-
const stats = statsOf(blocks2);
|
|
124493
|
-
const out2 = { kind, formatOnly, similarity: kind === "same" ? 1 : similarityOf(blocks2, aLen, bLen), blocks: blocks2, stats, granularity: granularity() };
|
|
124494
|
-
return run.degraded !== void 0 ? { ...out2, degraded: run.degraded } : out2;
|
|
124495
|
-
};
|
|
124496
|
-
if (a2.length + b2.length > cfg.maxChars) {
|
|
124497
|
-
run.degraded = "too-large";
|
|
124498
|
-
return finish(pa2.length > 0 && pb.length > 0 ? "rewrite" : "inline", rewriteBlocks(pa2, pb));
|
|
124499
|
-
}
|
|
124500
|
-
const ka2 = pa2.map((p2) => normalizeWithMap(p2, cfg).text);
|
|
124501
|
-
const kb = pb.map((p2) => normalizeWithMap(p2, cfg).text);
|
|
124502
|
-
if (ka2.length === kb.length && ka2.every((k2, i2) => k2 === kb[i2])) {
|
|
124503
|
-
return finish("same", pb.map((v4) => ({ op: "eq", fragments: [{ op: "eq", v: v4 }] })), a2 !== b2);
|
|
124504
|
-
}
|
|
124505
|
-
if (pa2.length === 0 || pb.length === 0) return finish("inline", rewriteBlocks(pa2, pb));
|
|
124506
|
-
const aligned = await alignKeys(run, ka2, kb, cfg.maxAlignTokens);
|
|
124507
|
-
if (aligned === null) return finish("rewrite", rewriteBlocks(pa2, pb));
|
|
124508
|
-
const units = pairAligned(aligned, ka2, kb, cfg.pairAt, cfg.maxPairMatrix);
|
|
124509
|
-
const blocks = [];
|
|
124510
|
-
for (const u2 of units) {
|
|
124511
|
-
if (u2.op === "eq") blocks.push({ op: "eq", fragments: [{ op: "eq", v: pb[u2.b] }] });
|
|
124512
|
-
else if (u2.op === "del") blocks.push({ op: "del", fragments: [{ op: "del", v: pa2[u2.a] }] });
|
|
124513
|
-
else if (u2.op === "ins") blocks.push({ op: "ins", fragments: [{ op: "ins", v: pb[u2.b] }] });
|
|
124514
|
-
else blocks.push({ op: "mod", fragments: await diffParagraph(run, cfg, pa2[u2.a], pb[u2.b]) });
|
|
124515
|
-
}
|
|
124516
|
-
const sim = similarityOf(blocks, aLen, bLen);
|
|
124517
|
-
if (sim < cfg.rewriteBelow) return finish("rewrite", rewriteBlocks(pa2, pb));
|
|
124518
|
-
return finish("inline", blocks);
|
|
124519
|
-
}
|
|
124520
|
-
|
|
124521
124752
|
// core/client/engines/diff/items.ts
|
|
124522
124753
|
function recOf(item) {
|
|
124523
124754
|
if (item !== null && typeof item === "object" && !Array.isArray(item)) return item;
|
|
@@ -124745,6 +124976,16 @@ function configOf(o2) {
|
|
|
124745
124976
|
maxPairCandidates: LIMITS.maxPairCandidates
|
|
124746
124977
|
};
|
|
124747
124978
|
}
|
|
124979
|
+
function codeConfigOf(o2) {
|
|
124980
|
+
return {
|
|
124981
|
+
maxChars: LIMITS.maxChars,
|
|
124982
|
+
maxAlignTokens: LIMITS.maxAlignTokens,
|
|
124983
|
+
maxPairMatrix: LIMITS.maxPairMatrix,
|
|
124984
|
+
pairAt: LIMITS.pairAt,
|
|
124985
|
+
context: typeof o2?.context === "number" && Number.isInteger(o2.context) && o2.context >= 0 ? Math.min(o2.context, LIMITS.codeContext) : LIMITS.codeContext,
|
|
124986
|
+
intraMaxLine: LIMITS.codeIntraMaxLine
|
|
124987
|
+
};
|
|
124988
|
+
}
|
|
124748
124989
|
function wholeReplace(a2, b2) {
|
|
124749
124990
|
if (a2 === b2) return a2 === "" ? [] : [{ op: "equal", text: a2 }];
|
|
124750
124991
|
const parts = [];
|
|
@@ -124793,6 +125034,18 @@ function createDiffPort(adapter2, options = {}) {
|
|
|
124793
125034
|
});
|
|
124794
125035
|
record2("items", started);
|
|
124795
125036
|
return out2;
|
|
125037
|
+
},
|
|
125038
|
+
async diffCode(a2, b2, codeOptions) {
|
|
125039
|
+
const started = clock();
|
|
125040
|
+
const out2 = await runCode(newRun(codeOptions?.timeoutMs), codeConfigOf(codeOptions), textOrEmpty(a2), textOrEmpty(b2));
|
|
125041
|
+
record2("code", started);
|
|
125042
|
+
return out2;
|
|
125043
|
+
},
|
|
125044
|
+
async diffMarkdown(a2, b2, mdOptions) {
|
|
125045
|
+
const started = clock();
|
|
125046
|
+
const out2 = await runMarkdown(newRun(mdOptions?.timeoutMs), { ...codeConfigOf(mdOptions), maxBlocks: LIMITS.maxItems }, textOrEmpty(a2), textOrEmpty(b2));
|
|
125047
|
+
record2("markdown", started);
|
|
125048
|
+
return out2;
|
|
124796
125049
|
}
|
|
124797
125050
|
};
|
|
124798
125051
|
}
|
|
@@ -130723,6 +130976,9 @@ function createLocaleTextBinder() {
|
|
|
130723
130976
|
}
|
|
130724
130977
|
|
|
130725
130978
|
// core/client/data/region-scope-port.ts
|
|
130979
|
+
function initialOf(decl) {
|
|
130980
|
+
return decl.initial === void 0 ? void 0 : structuredClone(decl.initial);
|
|
130981
|
+
}
|
|
130726
130982
|
function writeAtPath(base3, segments, value) {
|
|
130727
130983
|
if (segments.length === 0) return value;
|
|
130728
130984
|
const [head, ...rest] = segments;
|
|
@@ -130821,7 +131077,7 @@ function createRegionScopeStore() {
|
|
|
130821
131077
|
for (const sliceDecl of decl.slices) {
|
|
130822
131078
|
slices.set(sliceDecl.name, {
|
|
130823
131079
|
decl: sliceDecl,
|
|
130824
|
-
value:
|
|
131080
|
+
value: initialOf(sliceDecl),
|
|
130825
131081
|
ready: sliceDecl.ready !== true,
|
|
130826
131082
|
revision: 0,
|
|
130827
131083
|
listeners: /* @__PURE__ */ new Set(),
|
|
@@ -130898,7 +131154,7 @@ function createRegionScopeStore() {
|
|
|
130898
131154
|
if (scopeIds !== void 0 && !scopeIds.includes(id2)) continue;
|
|
130899
131155
|
for (const [name3, slice2] of scope.slices) {
|
|
130900
131156
|
if (names !== void 0 && !names.includes(name3)) continue;
|
|
130901
|
-
slice2.value =
|
|
131157
|
+
slice2.value = initialOf(slice2.decl);
|
|
130902
131158
|
slice2.ready = slice2.decl.ready !== true;
|
|
130903
131159
|
slice2.revision += 1;
|
|
130904
131160
|
notify(slice2);
|
|
@@ -134545,6 +134801,14 @@ var SomaBootstrap = class {
|
|
|
134545
134801
|
isSettled() {
|
|
134546
134802
|
return this.isInitialized() && (this.componentManager?.isInitialized() ?? true) && this.scheduler.isSettled() && (this.domainInstance?._services?.http.pendingCount() ?? 0) === 0;
|
|
134547
134803
|
}
|
|
134804
|
+
/**
|
|
134805
|
+
* 首轮渲染落定:组件初始化完成、调度队列清空;不等在途请求(与 whenSettled 的区别)。
|
|
134806
|
+
* 宿主据此在数据到位前判断页面是否已画出自己声明的加载态(见 host-native 首帧显示)。
|
|
134807
|
+
*/
|
|
134808
|
+
async whenRendered() {
|
|
134809
|
+
await this.componentManager?.whenInitialized();
|
|
134810
|
+
await this.scheduler.whenSettled();
|
|
134811
|
+
}
|
|
134548
134812
|
async whenSettled() {
|
|
134549
134813
|
do {
|
|
134550
134814
|
await this.componentManager?.whenInitialized();
|
|
@@ -136427,7 +136691,6 @@ export {
|
|
|
136427
136691
|
* @license MIT
|
|
136428
136692
|
*)
|
|
136429
136693
|
|
|
136430
|
-
tslib/tslib.es6.js:
|
|
136431
136694
|
tslib/tslib.es6.js:
|
|
136432
136695
|
(*! *****************************************************************************
|
|
136433
136696
|
Copyright (c) Microsoft Corporation.
|