@meursyphus/flitter 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -4,6 +4,9 @@ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
4
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
6
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __typeError = (msg) => {
8
+ throw TypeError(msg);
9
+ };
7
10
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
11
  var __spreadValues = (a, b) => {
9
12
  for (var prop in b || (b = {}))
@@ -33,32 +36,12 @@ var __export = (target, all) => {
33
36
  for (var name in all)
34
37
  __defProp(target, name, { get: all[name], enumerable: true });
35
38
  };
36
- var __publicField = (obj, key, value) => {
37
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
38
- return value;
39
- };
40
- var __accessCheck = (obj, member, msg) => {
41
- if (!member.has(obj))
42
- throw TypeError("Cannot " + msg);
43
- };
44
- var __privateGet = (obj, member, getter) => {
45
- __accessCheck(obj, member, "read from private field");
46
- return getter ? getter.call(obj) : member.get(obj);
47
- };
48
- var __privateAdd = (obj, member, value) => {
49
- if (member.has(obj))
50
- throw TypeError("Cannot add the same private member more than once");
51
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
52
- };
53
- var __privateSet = (obj, member, value, setter) => {
54
- __accessCheck(obj, member, "write to private field");
55
- setter ? setter.call(obj, value) : member.set(obj, value);
56
- return value;
57
- };
58
- var __privateMethod = (obj, member, method) => {
59
- __accessCheck(obj, member, "access private method");
60
- return method;
61
- };
39
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
40
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
41
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
42
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
43
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
44
+ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
62
45
 
63
46
  // src/framework/renderer/canvas/layer.ts
64
47
  var Layer = class {
@@ -75,7 +58,7 @@ var _paintBounds;
75
58
  var PictureLayer = class extends Layer {
76
59
  constructor(paintBounds) {
77
60
  super();
78
- __privateAdd(this, _paintBounds, void 0);
61
+ __privateAdd(this, _paintBounds);
79
62
  __publicField(this, "picture");
80
63
  __privateSet(this, _paintBounds, paintBounds);
81
64
  }
@@ -144,7 +127,7 @@ _pictures = new WeakMap();
144
127
  var _source;
145
128
  var Picture = class {
146
129
  constructor(source) {
147
- __privateAdd(this, _source, void 0);
130
+ __privateAdd(this, _source);
148
131
  __privateSet(this, _source, source);
149
132
  }
150
133
  toImage() {
@@ -165,7 +148,7 @@ var PictureRecorder = class {
165
148
  * @implements: This recorder is currently under implementation and does not actually record but directly reflects on the canvas context. Temporarily, it requires the paintSize immediately. The recorder is intended to manage the drawing order for implementing z-index. Once implemented, it will function as a recorder by not directly drawing on the canvas context but recording the operations.
166
149
  */
167
150
  constructor(paintBounds) {
168
- __privateAdd(this, _source2, void 0);
151
+ __privateAdd(this, _source2);
169
152
  __privateSet(this, _source2, document.createElement("canvas"));
170
153
  const dpr = window.devicePixelRatio;
171
154
  __privateGet(this, _source2).width = paintBounds.width * dpr;
@@ -208,8 +191,7 @@ var BuildOwner = class {
208
191
  const dirtyElements = this.dirtyElements;
209
192
  this.dirtyElements = [];
210
193
  dirtyElements.sort((a, b) => a.depth - b.depth).forEach((elememt) => {
211
- if (!elememt.dirty)
212
- return;
194
+ if (!elememt.dirty) return;
213
195
  elememt.rebuild();
214
196
  });
215
197
  }
@@ -401,8 +383,7 @@ var _Alignment = class _Alignment extends calculable_default {
401
383
  return new _Alignment({ x: this.x * value, y: this.y * value });
402
384
  }
403
385
  equals(other) {
404
- if (other === this)
405
- return true;
386
+ if (other === this) return true;
406
387
  return this.x === other.x && this.y === other.y;
407
388
  }
408
389
  /**
@@ -608,8 +589,7 @@ var _Utils = class _Utils {
608
589
  return Math.min(max, Math.max(min, value));
609
590
  }
610
591
  static arrayEqual(a, b) {
611
- if (a.length !== b.length)
612
- return false;
592
+ if (a.length !== b.length) return false;
613
593
  return a.every((value, i) => value === b[i]);
614
594
  }
615
595
  static lerp(a, b, t) {
@@ -635,8 +615,7 @@ var _Size = class _Size {
635
615
  this.height = height;
636
616
  }
637
617
  equal(other) {
638
- if (this === other)
639
- return true;
618
+ if (this === other) return true;
640
619
  return this.width === other.width && this.height === other.height;
641
620
  }
642
621
  static maximum() {
@@ -880,8 +859,7 @@ var Constraints = class _Constraints extends data_default {
880
859
  return this.equals(other);
881
860
  }
882
861
  equals(other) {
883
- if (this === other)
884
- return true;
862
+ if (this === other) return true;
885
863
  return this.maxWidth === other.maxWidth && this.minWidth === other.minWidth && this.maxHeight === other.maxHeight && this.minHeight === other.minHeight;
886
864
  }
887
865
  clampDouble(value, min, max) {
@@ -920,8 +898,7 @@ var EdgeInsetsGeometry = class _EdgeInsetsGeometry extends calculable_default {
920
898
  });
921
899
  }
922
900
  equals(other) {
923
- if (this === other)
924
- return;
901
+ if (this === other) return;
925
902
  return this.top === other.top && this.bottom === other.bottom && this.left === other.left && this.right === other.right;
926
903
  }
927
904
  /**
@@ -1043,8 +1020,7 @@ var BorderRadiusGeometry = class extends calculable_default {
1043
1020
  return result;
1044
1021
  }
1045
1022
  equals(other) {
1046
- if (this === other)
1047
- return true;
1023
+ if (this === other) return true;
1048
1024
  return this.topLeft.equals(other.topLeft) && this.topRight.equals(other.topRight) && this.bottomLeft.equals(other.bottomLeft) && this.bottomRight.equals(other.bottomRight);
1049
1025
  }
1050
1026
  /**
@@ -1176,8 +1152,7 @@ var Path = class _Path {
1176
1152
  })).close();
1177
1153
  }
1178
1154
  addPolygons(points) {
1179
- if (points.length < 3)
1180
- throw Error("polygons need at least 3 points");
1155
+ if (points.length < 3) throw Error("polygons need at least 3 points");
1181
1156
  this.moveTo(points[0]);
1182
1157
  points.slice(1).forEach((point) => this.lineTo(point));
1183
1158
  return this.close();
@@ -1247,8 +1222,7 @@ var _Radius = class _Radius extends calculable_default {
1247
1222
  return new _Radius(this.x * value, this.y * value);
1248
1223
  }
1249
1224
  equals(other) {
1250
- if (this === other)
1251
- return true;
1225
+ if (this === other) return true;
1252
1226
  return this.x === other.x && this.y === other.y;
1253
1227
  }
1254
1228
  /**
@@ -9543,8 +9517,7 @@ var _Matrix4 = class _Matrix4 extends calculable_default {
9543
9517
  return cloned;
9544
9518
  }
9545
9519
  equals(other) {
9546
- if (this === other)
9547
- return true;
9520
+ if (this === other) return true;
9548
9521
  return this.storage.every((value, i) => {
9549
9522
  return other._m4storage[i] === value;
9550
9523
  });
@@ -11176,8 +11149,7 @@ var Color = class _Color extends calculable_default {
11176
11149
  });
11177
11150
  }
11178
11151
  equals(other) {
11179
- if (this === other)
11180
- return true;
11152
+ if (this === other) return true;
11181
11153
  return this.r === other.r && this.g === other.g && this.b === other.b && this.a === other.a;
11182
11154
  }
11183
11155
  };
@@ -11220,8 +11192,7 @@ var _BorderSide = class _BorderSide extends data_default {
11220
11192
  return this.equals(other);
11221
11193
  }
11222
11194
  equals(other) {
11223
- if (this === other)
11224
- return true;
11195
+ if (this === other) return true;
11225
11196
  return this.color === other.color && this.width === other.width && this.style === other.style && this.strokeAlign === other.strokeAlign;
11226
11197
  }
11227
11198
  static get none() {
@@ -11299,8 +11270,7 @@ var Border = class _Border extends _BoxBorder {
11299
11270
  });
11300
11271
  }
11301
11272
  equals(other) {
11302
- if (this === other)
11303
- return true;
11273
+ if (this === other) return true;
11304
11274
  return this.top.equals(other.top) && this.right.equals(other.right) && this.bottom.equals(other.bottom) && this.left.equals(other.left);
11305
11275
  }
11306
11276
  /**
@@ -11920,8 +11890,7 @@ var BoxShadow = class _BoxShadow extends calculable_default {
11920
11890
  });
11921
11891
  }
11922
11892
  equals(other) {
11923
- if (this === other)
11924
- return true;
11893
+ if (this === other) return true;
11925
11894
  return this.color === other.color && this.offset.equals(other.offset) && this.blurRadius === other.blurRadius;
11926
11895
  }
11927
11896
  };
@@ -11974,8 +11943,7 @@ var BoxDecoration = class _BoxDecoration extends data_default {
11974
11943
  });
11975
11944
  }
11976
11945
  equals(other) {
11977
- if (this === other)
11978
- return true;
11946
+ if (this === other) return true;
11979
11947
  if (!(this.color == null && other.color == null) && (!(this.color != null && other.color != null) || !this.color.equals(other.color))) {
11980
11948
  return false;
11981
11949
  }
@@ -11988,8 +11956,7 @@ var BoxDecoration = class _BoxDecoration extends data_default {
11988
11956
  if (!(this.boxShadow == null && other.boxShadow == null) && (!(this.boxShadow != null && other.boxShadow != null) || !box_shadow_default.equals(this.boxShadow, other.boxShadow))) {
11989
11957
  return false;
11990
11958
  }
11991
- if (this.shape !== other.shape)
11992
- return false;
11959
+ if (this.shape !== other.shape) return false;
11993
11960
  return true;
11994
11961
  }
11995
11962
  get padding() {
@@ -12221,8 +12188,7 @@ var TextStyle = class _TextStyle {
12221
12188
  this.height = height;
12222
12189
  }
12223
12190
  equals(other) {
12224
- if (this === other)
12225
- return true;
12191
+ if (this === other) return true;
12226
12192
  return this.inherit === other.inherit && this.color === other.color && this.fontSize === other.fontSize && this.fontWeight === other.fontWeight && this.fontFamily === other.fontFamily && this.textBaseline === other.textBaseline && this.fontStyle === other.fontStyle;
12227
12193
  }
12228
12194
  copyWidth({
@@ -12247,10 +12213,8 @@ var TextStyle = class _TextStyle {
12247
12213
  });
12248
12214
  }
12249
12215
  merge(other) {
12250
- if (other == null)
12251
- return this;
12252
- if (!other.inherit)
12253
- return other;
12216
+ if (other == null) return this;
12217
+ if (!other.inherit) return other;
12254
12218
  return this.copyWidth(__spreadValues({}, other));
12255
12219
  }
12256
12220
  getParagraphStyle({
@@ -12319,16 +12283,14 @@ var InlineSpan = class {
12319
12283
  this.style = style;
12320
12284
  }
12321
12285
  static equals(targets, values) {
12322
- if (targets.length !== values.length)
12323
- return false;
12286
+ if (targets.length !== values.length) return false;
12324
12287
  return targets.every((value, i) => values[i].equals(value));
12325
12288
  }
12326
12289
  equals(other) {
12327
12290
  if (this.style != null || other.style != null) {
12328
12291
  return this.style.equals(other.style);
12329
12292
  }
12330
- if (this.style == null && other.style == null)
12331
- return true;
12293
+ if (this.style == null && other.style == null) return true;
12332
12294
  return false;
12333
12295
  }
12334
12296
  computeToPlainText() {
@@ -12360,8 +12322,7 @@ var TextSpan = class extends Inline_span_default {
12360
12322
  this.text = text;
12361
12323
  }
12362
12324
  equals(other) {
12363
- if (other === this)
12364
- return true;
12325
+ if (other === this) return true;
12365
12326
  return this.text === other.text && this.style.equals(other.style) && Inline_span_default.equals(this.children, other.children);
12366
12327
  }
12367
12328
  visitChildren(visitor) {
@@ -12445,28 +12406,23 @@ var TextPainter = class {
12445
12406
  return ((_a = this.text) == null ? void 0 : _a.toPlainText()) || "";
12446
12407
  }
12447
12408
  get width() {
12448
- if (this.paragraph == null)
12449
- return 0;
12409
+ if (this.paragraph == null) return 0;
12450
12410
  return this.paragraph.width;
12451
12411
  }
12452
12412
  get height() {
12453
- if (this.paragraph == null)
12454
- return 0;
12413
+ if (this.paragraph == null) return 0;
12455
12414
  return this.paragraph.height;
12456
12415
  }
12457
12416
  get intrinsicWidth() {
12458
- if (this.paragraph == null)
12459
- return 0;
12417
+ if (this.paragraph == null) return 0;
12460
12418
  return this.paragraph.intrinsicWidth;
12461
12419
  }
12462
12420
  get intrinsicHeight() {
12463
- if (this.paragraph == null)
12464
- return 0;
12421
+ if (this.paragraph == null) return 0;
12465
12422
  return this.paragraph.intrinsicHeight;
12466
12423
  }
12467
12424
  get longestLine() {
12468
- if (this.paragraph == null)
12469
- return 0;
12425
+ if (this.paragraph == null) return 0;
12470
12426
  return this.paragraph.longestLine;
12471
12427
  }
12472
12428
  paintOnCanvas(ctx, offset) {
@@ -13204,8 +13160,7 @@ var RenderPipeline = class {
13204
13160
  const dirties = this.needsLayoutRenderObjects;
13205
13161
  this.needsLayoutRenderObjects = [];
13206
13162
  dirties.sort((a, b) => a.depth - b.depth).forEach((renderObject) => {
13207
- if (!renderObject.needsLayout)
13208
- return;
13163
+ if (!renderObject.needsLayout) return;
13209
13164
  renderObject.layoutWithoutResize();
13210
13165
  });
13211
13166
  }
@@ -13214,8 +13169,7 @@ var RenderPipeline = class {
13214
13169
  this.requestVisualUpdate();
13215
13170
  }
13216
13171
  recalculateZOrder() {
13217
- if (!__privateGet(this, _zOrderChanged))
13218
- return [];
13172
+ if (!__privateGet(this, _zOrderChanged)) return [];
13219
13173
  __privateSet(this, _zOrderChanged, false);
13220
13174
  const visitor = new ZOrderCalculatorVisitor();
13221
13175
  this.renderView.accept(visitor);
@@ -13230,8 +13184,7 @@ var RenderPipeline = class {
13230
13184
  const dirties = this.needsPaintTransformUpdateRenderObjects;
13231
13185
  this.needsPaintTransformUpdateRenderObjects = [];
13232
13186
  dirties.sort((a, b) => a.depth - b.depth).forEach((renderObject) => {
13233
- if (!renderObject.needsPaintTransformUpdate)
13234
- return;
13187
+ if (!renderObject.needsPaintTransformUpdate) return;
13235
13188
  renderObject.updatePaintTransform();
13236
13189
  });
13237
13190
  }
@@ -13273,21 +13226,21 @@ var Painter = class {
13273
13226
  this.renderObject.paintTransform = newValue;
13274
13227
  }
13275
13228
  };
13276
- var _visit, visit_fn;
13229
+ var _ZOrderCalculatorVisitor_instances, visit_fn;
13277
13230
  var ZOrderCalculatorVisitor = class {
13278
13231
  constructor() {
13279
- __privateAdd(this, _visit);
13232
+ __privateAdd(this, _ZOrderCalculatorVisitor_instances);
13280
13233
  __publicField(this, "collectedRenderObjects", []);
13281
13234
  __publicField(this, "currentVisitedOrder", 0);
13282
13235
  __publicField(this, "currentStackingContext", []);
13283
13236
  }
13284
13237
  visit(renderObject) {
13285
- __privateMethod(this, _visit, visit_fn).call(this, renderObject, {
13238
+ __privateMethod(this, _ZOrderCalculatorVisitor_instances, visit_fn).call(this, renderObject, {
13286
13239
  willCollect: renderObject.isPainter
13287
13240
  });
13288
13241
  }
13289
13242
  visitGestureDetector(gestureDetector) {
13290
- __privateMethod(this, _visit, visit_fn).call(this, gestureDetector, { willCollect: true });
13243
+ __privateMethod(this, _ZOrderCalculatorVisitor_instances, visit_fn).call(this, gestureDetector, { willCollect: true });
13291
13244
  }
13292
13245
  visitZIndex(renderObject) {
13293
13246
  this.currentStackingContext = [...this.currentStackingContext];
@@ -13295,7 +13248,7 @@ var ZOrderCalculatorVisitor = class {
13295
13248
  visitedOrder: this.currentVisitedOrder,
13296
13249
  zIndex: renderObject.zIndex
13297
13250
  });
13298
- __privateMethod(this, _visit, visit_fn).call(this, renderObject, { willCollect: false });
13251
+ __privateMethod(this, _ZOrderCalculatorVisitor_instances, visit_fn).call(this, renderObject, { willCollect: false });
13299
13252
  this.currentStackingContext = [...this.currentStackingContext];
13300
13253
  this.currentStackingContext.pop();
13301
13254
  }
@@ -13338,7 +13291,7 @@ var ZOrderCalculatorVisitor = class {
13338
13291
  return sorted.map(({ renderObject }) => renderObject);
13339
13292
  }
13340
13293
  };
13341
- _visit = new WeakSet();
13294
+ _ZOrderCalculatorVisitor_instances = new WeakSet();
13342
13295
  visit_fn = function(renderObject, { willCollect }) {
13343
13296
  if (willCollect) {
13344
13297
  this.collectedRenderObjects.push({
@@ -13353,11 +13306,11 @@ visit_fn = function(renderObject, { willCollect }) {
13353
13306
  };
13354
13307
 
13355
13308
  // src/framework/renderer/svg/svg-renderer.ts
13356
- var _rearrangeDomOrder, rearrangeDomOrder_fn;
13309
+ var _SvgRenderPipeline_instances, rearrangeDomOrder_fn;
13357
13310
  var SvgRenderPipeline = class extends RenderPipeline {
13358
13311
  constructor() {
13359
13312
  super(...arguments);
13360
- __privateAdd(this, _rearrangeDomOrder);
13313
+ __privateAdd(this, _SvgRenderPipeline_instances);
13361
13314
  __publicField(this, "paintContext", {
13362
13315
  isOnBrowser: () => typeof this.renderContext.window !== "undefined",
13363
13316
  createSvgEl: (tagName) => {
@@ -13385,21 +13338,20 @@ var SvgRenderPipeline = class extends RenderPipeline {
13385
13338
  this.flushPaintTransformUpdate();
13386
13339
  this.flushPaint();
13387
13340
  const painterRenderObjects = this.recalculateZOrder();
13388
- __privateMethod(this, _rearrangeDomOrder, rearrangeDomOrder_fn).call(this, painterRenderObjects);
13341
+ __privateMethod(this, _SvgRenderPipeline_instances, rearrangeDomOrder_fn).call(this, painterRenderObjects);
13389
13342
  }
13390
13343
  reinitializeFrame() {
13391
13344
  this.renderView.layout(constraints_default.tight(this.renderContext.viewSize));
13392
13345
  this.renderView.updatePaintTransform();
13393
13346
  this.renderView.svgPainter.paint(this.paintContext);
13394
13347
  const painterRenderObjects = this.recalculateZOrder();
13395
- __privateMethod(this, _rearrangeDomOrder, rearrangeDomOrder_fn).call(this, painterRenderObjects);
13348
+ __privateMethod(this, _SvgRenderPipeline_instances, rearrangeDomOrder_fn).call(this, painterRenderObjects);
13396
13349
  }
13397
13350
  flushPaint() {
13398
13351
  const dirties = this.needsPaintRenderObjects;
13399
13352
  this.needsPaintRenderObjects = [];
13400
13353
  dirties.sort((a, b) => a.depth - b.depth).forEach((renderObject) => {
13401
- if (!renderObject.needsPaint)
13402
- return;
13354
+ if (!renderObject.needsPaint) return;
13403
13355
  renderObject.svgPainter.paintWithoutLayout(this.paintContext);
13404
13356
  });
13405
13357
  }
@@ -13422,7 +13374,7 @@ var SvgRenderPipeline = class extends RenderPipeline {
13422
13374
  renderObject.svgPainter.didChangePaintTransform();
13423
13375
  }
13424
13376
  };
13425
- _rearrangeDomOrder = new WeakSet();
13377
+ _SvgRenderPipeline_instances = new WeakSet();
13426
13378
  rearrangeDomOrder_fn = function(painterRenderObjects) {
13427
13379
  painterRenderObjects.reverse();
13428
13380
  painterRenderObjects.forEach((child) => {
@@ -13442,16 +13394,15 @@ function canNotReach(type) {
13442
13394
  }
13443
13395
 
13444
13396
  // src/framework/renderer/canvas/canvas-painting-context.ts
13445
- var _estimateBound, _containerLayer, _currentLayer, _recorder, _ctx2, _startRecording, startRecording_fn, _appendLayer, appendLayer_fn;
13397
+ var _estimateBound, _containerLayer, _currentLayer, _recorder, _ctx2, _CanvasPaintingContext_instances, startRecording_fn, appendLayer_fn;
13446
13398
  var _CanvasPaintingContext = class _CanvasPaintingContext {
13447
13399
  constructor(containerLayer, estimateBound) {
13448
- __privateAdd(this, _startRecording);
13449
- __privateAdd(this, _appendLayer);
13450
- __privateAdd(this, _estimateBound, void 0);
13451
- __privateAdd(this, _containerLayer, void 0);
13452
- __privateAdd(this, _currentLayer, void 0);
13453
- __privateAdd(this, _recorder, void 0);
13454
- __privateAdd(this, _ctx2, void 0);
13400
+ __privateAdd(this, _CanvasPaintingContext_instances);
13401
+ __privateAdd(this, _estimateBound);
13402
+ __privateAdd(this, _containerLayer);
13403
+ __privateAdd(this, _currentLayer);
13404
+ __privateAdd(this, _recorder);
13405
+ __privateAdd(this, _ctx2);
13455
13406
  __privateSet(this, _containerLayer, containerLayer);
13456
13407
  __privateSet(this, _estimateBound, estimateBound);
13457
13408
  }
@@ -13484,7 +13435,7 @@ var _CanvasPaintingContext = class _CanvasPaintingContext {
13484
13435
  }
13485
13436
  get canvas() {
13486
13437
  if (__privateGet(this, _ctx2) == null) {
13487
- __privateMethod(this, _startRecording, startRecording_fn).call(this);
13438
+ __privateMethod(this, _CanvasPaintingContext_instances, startRecording_fn).call(this);
13488
13439
  }
13489
13440
  return __privateGet(this, _ctx2);
13490
13441
  }
@@ -13496,7 +13447,7 @@ var _CanvasPaintingContext = class _CanvasPaintingContext {
13496
13447
  }
13497
13448
  addLayer(layer) {
13498
13449
  this.stopRecording();
13499
- __privateMethod(this, _appendLayer, appendLayer_fn).call(this, layer);
13450
+ __privateMethod(this, _CanvasPaintingContext_instances, appendLayer_fn).call(this, layer);
13500
13451
  }
13501
13452
  /**
13502
13453
  *
@@ -13516,39 +13467,37 @@ _containerLayer = new WeakMap();
13516
13467
  _currentLayer = new WeakMap();
13517
13468
  _recorder = new WeakMap();
13518
13469
  _ctx2 = new WeakMap();
13519
- _startRecording = new WeakSet();
13470
+ _CanvasPaintingContext_instances = new WeakSet();
13520
13471
  startRecording_fn = function() {
13521
13472
  __privateSet(this, _currentLayer, new PictureLayer(__privateGet(this, _estimateBound)));
13522
13473
  __privateSet(this, _recorder, new PictureRecorder(__privateGet(this, _estimateBound)));
13523
13474
  __privateSet(this, _ctx2, __privateGet(this, _recorder).createCanvasContext());
13524
13475
  __privateGet(this, _containerLayer).append(__privateGet(this, _currentLayer));
13525
13476
  };
13526
- _appendLayer = new WeakSet();
13527
13477
  appendLayer_fn = function(layer) {
13528
13478
  __privateGet(this, _containerLayer).append(layer);
13529
13479
  };
13530
13480
  var CanvasPaintingContext = _CanvasPaintingContext;
13531
13481
 
13532
13482
  // src/framework/renderer/canvas/canvas-renderer.ts
13533
- var _compositeFrame, compositeFrame_fn, _prepareCanvas, prepareCanvas_fn;
13483
+ var _CanvasRenderPipeline_instances, compositeFrame_fn, prepareCanvas_fn;
13534
13484
  var CanvasRenderPipeline = class extends RenderPipeline {
13535
13485
  constructor() {
13536
13486
  super(...arguments);
13537
- __privateAdd(this, _compositeFrame);
13538
- __privateAdd(this, _prepareCanvas);
13487
+ __privateAdd(this, _CanvasRenderPipeline_instances);
13539
13488
  }
13540
13489
  drawFrame() {
13541
13490
  this.flushLayout();
13542
13491
  this.flushPaintTransformUpdate();
13543
13492
  this.flushPaint();
13544
13493
  this.recalculateZOrder();
13545
- __privateMethod(this, _compositeFrame, compositeFrame_fn).call(this);
13494
+ __privateMethod(this, _CanvasRenderPipeline_instances, compositeFrame_fn).call(this);
13546
13495
  }
13547
13496
  reinitializeFrame() {
13548
13497
  this.renderView.layout(constraints_default.tight(this.renderContext.viewSize));
13549
13498
  this.renderView.updatePaintTransform();
13550
13499
  CanvasPaintingContext.repaintCompositedChild(this.renderView);
13551
- __privateMethod(this, _compositeFrame, compositeFrame_fn).call(this);
13500
+ __privateMethod(this, _CanvasRenderPipeline_instances, compositeFrame_fn).call(this);
13552
13501
  }
13553
13502
  flushPaint() {
13554
13503
  const dirties = this.needsPaintRenderObjects;
@@ -13593,14 +13542,13 @@ var CanvasRenderPipeline = class extends RenderPipeline {
13593
13542
  renderObjet.markNeedsPaint();
13594
13543
  }
13595
13544
  };
13596
- _compositeFrame = new WeakSet();
13545
+ _CanvasRenderPipeline_instances = new WeakSet();
13597
13546
  compositeFrame_fn = function() {
13598
13547
  const builder = new SceneBuilder();
13599
- const ctx = __privateMethod(this, _prepareCanvas, prepareCanvas_fn).call(this, this.renderContext.view);
13548
+ const ctx = __privateMethod(this, _CanvasRenderPipeline_instances, prepareCanvas_fn).call(this, this.renderContext.view);
13600
13549
  this.renderView.canvasPainter.layer.buildScene(builder);
13601
13550
  builder.render(ctx);
13602
13551
  };
13603
- _prepareCanvas = new WeakSet();
13604
13552
  prepareCanvas_fn = function(canvas) {
13605
13553
  const size = this.renderContext.viewSize;
13606
13554
  const dpr = window.devicePixelRatio;
@@ -13633,9 +13581,9 @@ var _clipId, _opacity, _domNode, _domOrderChanged, _didChangePaintTransform;
13633
13581
  var SvgPainter = class extends Painter {
13634
13582
  constructor() {
13635
13583
  super(...arguments);
13636
- __privateAdd(this, _clipId, void 0);
13584
+ __privateAdd(this, _clipId);
13637
13585
  __privateAdd(this, _opacity, 1);
13638
- __privateAdd(this, _domNode, void 0);
13586
+ __privateAdd(this, _domNode);
13639
13587
  /**
13640
13588
  * domOrder is used to rearrange dom order
13641
13589
  */
@@ -13745,8 +13693,7 @@ var SvgPainter = class extends Painter {
13745
13693
  * It is currently only used on ZIndexRenderObject
13746
13694
  */
13747
13695
  rearrangeDomOrder() {
13748
- if (!__privateGet(this, _domOrderChanged))
13749
- return;
13696
+ if (!__privateGet(this, _domOrderChanged)) return;
13750
13697
  if (this.isPainter && this.domNode) {
13751
13698
  this.renderOwner.paintContext.insertSvgEl(
13752
13699
  this.domNode,
@@ -13774,7 +13721,7 @@ var _layer;
13774
13721
  var CanvasPainter = class extends Painter {
13775
13722
  constructor() {
13776
13723
  super(...arguments);
13777
- __privateAdd(this, _layer, void 0);
13724
+ __privateAdd(this, _layer);
13778
13725
  }
13779
13726
  get renderOwner() {
13780
13727
  return this.renderObject.renderOwner;
@@ -13854,8 +13801,7 @@ var Scheduler = class {
13854
13801
  }
13855
13802
  }
13856
13803
  schedule() {
13857
- if (this.hasScheduledFrame)
13858
- return;
13804
+ if (this.hasScheduledFrame) return;
13859
13805
  this.renderFrameDispatcher.dispatch();
13860
13806
  this.hasScheduledFrame = true;
13861
13807
  }
@@ -13895,8 +13841,7 @@ var RenderFrameDispatcher = class {
13895
13841
  this.onFrame = () => callback();
13896
13842
  }
13897
13843
  dispatch() {
13898
- if (typeof window === "undefined")
13899
- return;
13844
+ if (typeof window === "undefined") return;
13900
13845
  window.requestAnimationFrame(() => {
13901
13846
  var _a;
13902
13847
  (_a = this.onFrame) == null ? void 0 : _a.call(this);
@@ -13922,10 +13867,10 @@ var GlobalKey = class {
13922
13867
  var Globalkey_default = GlobalKey;
13923
13868
 
13924
13869
  // src/renderobject/RenderObject.ts
13925
- var _zOrder, _svgPainter, _canvasPainter, _didChangePaintTransform2, didChangePaintTransform_fn;
13870
+ var _zOrder, _svgPainter, _canvasPainter, _RenderObject_instances, didChangePaintTransform_fn;
13926
13871
  var RenderObject = class {
13927
13872
  constructor({ isPainter }) {
13928
- __privateAdd(this, _didChangePaintTransform2);
13873
+ __privateAdd(this, _RenderObject_instances);
13929
13874
  __publicField(this, "runtimeType", this.constructor.name);
13930
13875
  __publicField(this, "isPainter");
13931
13876
  __publicField(this, "ownerElement");
@@ -13940,9 +13885,9 @@ var RenderObject = class {
13940
13885
  * zOrder is used to order the render objects in the z axis
13941
13886
  * Also related to event bubbling on HitTestDispatcher
13942
13887
  */
13943
- __privateAdd(this, _zOrder, void 0);
13944
- __privateAdd(this, _svgPainter, void 0);
13945
- __privateAdd(this, _canvasPainter, void 0);
13888
+ __privateAdd(this, _zOrder);
13889
+ __privateAdd(this, _svgPainter);
13890
+ __privateAdd(this, _canvasPainter);
13946
13891
  __publicField(this, "type", this.constructor.name);
13947
13892
  __publicField(this, "constraints", constraints_default.loose(size_default.maximum()));
13948
13893
  __publicField(this, "_offset", offset_default.zero());
@@ -13954,8 +13899,7 @@ var RenderObject = class {
13954
13899
  return __privateGet(this, _zOrder);
13955
13900
  }
13956
13901
  updateZOrder(value) {
13957
- if (__privateGet(this, _zOrder) === value)
13958
- return;
13902
+ if (__privateGet(this, _zOrder) === value) return;
13959
13903
  __privateSet(this, _zOrder, value);
13960
13904
  if (__privateGet(this, _svgPainter) != null) {
13961
13905
  __privateGet(this, _svgPainter).didDomOrderChange();
@@ -13992,8 +13936,7 @@ var RenderObject = class {
13992
13936
  return this._offset;
13993
13937
  }
13994
13938
  set offset(value) {
13995
- if (this.offset.x === value.x && this.offset.y === value.y)
13996
- return;
13939
+ if (this.offset.x === value.x && this.offset.y === value.y) return;
13997
13940
  this._offset = value;
13998
13941
  this.markNeedsPaintTransformUpdate();
13999
13942
  }
@@ -14089,7 +14032,7 @@ var RenderObject = class {
14089
14032
  }
14090
14033
  this.needsPaintTransformUpdate = false;
14091
14034
  this.paintTransform = newTransform;
14092
- __privateMethod(this, _didChangePaintTransform2, didChangePaintTransform_fn).call(this);
14035
+ __privateMethod(this, _RenderObject_instances, didChangePaintTransform_fn).call(this);
14093
14036
  const childPaintTransform = this.applyPaintTransform(newTransform);
14094
14037
  this.visitChildren((child) => {
14095
14038
  child.updatePaintTransform(childPaintTransform);
@@ -14099,7 +14042,7 @@ var RenderObject = class {
14099
14042
  _zOrder = new WeakMap();
14100
14043
  _svgPainter = new WeakMap();
14101
14044
  _canvasPainter = new WeakMap();
14102
- _didChangePaintTransform2 = new WeakSet();
14045
+ _RenderObject_instances = new WeakSet();
14103
14046
  didChangePaintTransform_fn = function() {
14104
14047
  this.renderOwner.didChangePaintTransform(this);
14105
14048
  };
@@ -14117,8 +14060,7 @@ var RenderView = class extends RenderObject_default {
14117
14060
  const constraint = this.constraints;
14118
14061
  if (!constraint.isTight)
14119
14062
  throw new Error("constraint must be tight on render view");
14120
- if (constraint.maxWidth === 0 || constraint.maxHeight === 0)
14121
- return;
14063
+ if (constraint.maxWidth === 0 || constraint.maxHeight === 0) return;
14122
14064
  this.size = new size_default({
14123
14065
  width: constraint.maxWidth,
14124
14066
  height: constraint.maxHeight
@@ -14186,8 +14128,7 @@ var Element = class {
14186
14128
  result = child.renderObject;
14187
14129
  }
14188
14130
  });
14189
- if (result == null)
14190
- throw new Error("can not find render object");
14131
+ if (result == null) throw new Error("can not find render object");
14191
14132
  return result;
14192
14133
  }
14193
14134
  //There are 5 case
@@ -14240,8 +14181,7 @@ var Element = class {
14240
14181
  return newChild;
14241
14182
  }
14242
14183
  rebuild({ force = false } = {}) {
14243
- if (!this.dirty && !force)
14244
- return;
14184
+ if (!this.dirty && !force) return;
14245
14185
  this.dirty = false;
14246
14186
  this.performRebuild();
14247
14187
  }
@@ -14316,8 +14256,7 @@ var RenderObjectElement = class extends Element_default {
14316
14256
  return this.updateChild(matchedChild, newWidget);
14317
14257
  });
14318
14258
  oldChildren.forEach((oldChild, i) => {
14319
- if (updatedChildIndexes.includes(i))
14320
- return;
14259
+ if (updatedChildIndexes.includes(i)) return;
14321
14260
  this.updateChild(oldChild, null);
14322
14261
  });
14323
14262
  this.children = newChildren;
@@ -14399,7 +14338,7 @@ var HitTestDispatcher = class {
14399
14338
  __privateAdd(this, _activated, typeof window !== "undefined");
14400
14339
  __privateAdd(this, _detectors, []);
14401
14340
  __privateAdd(this, _rootPosition, null);
14402
- __privateAdd(this, _renderContext, void 0);
14341
+ __privateAdd(this, _renderContext);
14403
14342
  __privateAdd(this, _hitPosition, new offset_default({ x: 0, y: 0 }));
14404
14343
  __privateAdd(this, _handleMouseDown, (e) => {
14405
14344
  this.hitTest(e, "onMouseDown");
@@ -14416,8 +14355,7 @@ var HitTestDispatcher = class {
14416
14355
  e.isPropagationStopped = false;
14417
14356
  for (const i in __privateGet(this, _detectors)) {
14418
14357
  const detector = __privateGet(this, _detectors)[i];
14419
- if (e.isPropagationStopped)
14420
- return;
14358
+ if (e.isPropagationStopped) return;
14421
14359
  if (!__privateGet(this, _hitHistory)[i] && detector.hitTest({ globalPoint: __privateGet(this, _hitPosition) })) {
14422
14360
  detector.onMouseEnter(e);
14423
14361
  }
@@ -14425,8 +14363,7 @@ var HitTestDispatcher = class {
14425
14363
  e.isPropagationStopped = false;
14426
14364
  for (const i in __privateGet(this, _detectors)) {
14427
14365
  const detector = __privateGet(this, _detectors)[i];
14428
- if (e.isPropagationStopped)
14429
- return;
14366
+ if (e.isPropagationStopped) return;
14430
14367
  if (__privateGet(this, _hitHistory)[i] && !detector.hitTest({ globalPoint: __privateGet(this, _hitPosition) })) {
14431
14368
  detector.onMouseLeave(e);
14432
14369
  }
@@ -14450,10 +14387,8 @@ var HitTestDispatcher = class {
14450
14387
  this.hitTest(e, "onWheel");
14451
14388
  e.isPropagationStopped = false;
14452
14389
  for (const detector of __privateGet(this, _detectors)) {
14453
- if (e.isPropagationStopped)
14454
- return;
14455
- if (!detector.hitTest({ globalPoint: __privateGet(this, _hitPosition) }))
14456
- continue;
14390
+ if (e.isPropagationStopped) return;
14391
+ if (!detector.hitTest({ globalPoint: __privateGet(this, _hitPosition) })) continue;
14457
14392
  detector.onMouseEnter(e);
14458
14393
  }
14459
14394
  e.isPropagationStopped = false;
@@ -14470,10 +14405,8 @@ var HitTestDispatcher = class {
14470
14405
  });
14471
14406
  __publicField(this, "hitTest", (e, type) => {
14472
14407
  for (const detector of __privateGet(this, _detectors)) {
14473
- if (e.isPropagationStopped)
14474
- return;
14475
- if (!detector.hitTest({ globalPoint: __privateGet(this, _hitPosition) }))
14476
- continue;
14408
+ if (e.isPropagationStopped) return;
14409
+ if (!detector.hitTest({ globalPoint: __privateGet(this, _hitPosition) })) continue;
14477
14410
  detector.invokeCallback(type, e);
14478
14411
  }
14479
14412
  });
@@ -14494,8 +14427,7 @@ var HitTestDispatcher = class {
14494
14427
  __privateAdd(this, _didDomOrderChangeState, "idle");
14495
14428
  }
14496
14429
  init({ renderContext }) {
14497
- if (!__privateGet(this, _activated))
14498
- return;
14430
+ if (!__privateGet(this, _activated)) return;
14499
14431
  __privateSet(this, _renderContext, renderContext);
14500
14432
  const { view } = __privateGet(this, _renderContext);
14501
14433
  view.addEventListener("mousedown", __privateGet(this, _wrapEvent).call(this, __privateGet(this, _handleMouseDown)));
@@ -14507,14 +14439,12 @@ var HitTestDispatcher = class {
14507
14439
  view.addEventListener("mouseleave", __privateGet(this, _handleMouseLeave));
14508
14440
  }
14509
14441
  traceHitPosition(e) {
14510
- if (__privateGet(this, _rootPosition) == null)
14511
- return;
14442
+ if (__privateGet(this, _rootPosition) == null) return;
14512
14443
  __privateGet(this, _hitPosition).x = e.clientX - __privateGet(this, _rootPosition).x;
14513
14444
  __privateGet(this, _hitPosition).y = e.clientY - __privateGet(this, _rootPosition).y;
14514
14445
  }
14515
14446
  didZOrderChange() {
14516
- if (__privateGet(this, _didDomOrderChangeState) === "processing")
14517
- return;
14447
+ if (__privateGet(this, _didDomOrderChangeState) === "processing") return;
14518
14448
  __privateSet(this, _didDomOrderChangeState, "processing");
14519
14449
  setTimeout(() => {
14520
14450
  __privateSet(this, _detectors, __privateGet(this, _detectors).sort((a, b) => b.zOrder - a.zOrder));
@@ -14522,13 +14452,11 @@ var HitTestDispatcher = class {
14522
14452
  }, 0);
14523
14453
  }
14524
14454
  addDetector(detector) {
14525
- if (!__privateGet(this, _activated))
14526
- return;
14455
+ if (!__privateGet(this, _activated)) return;
14527
14456
  __privateGet(this, _detectors).push(detector);
14528
14457
  }
14529
14458
  removeDetector(detector) {
14530
- if (!__privateGet(this, _activated))
14531
- return;
14459
+ if (!__privateGet(this, _activated)) return;
14532
14460
  __privateSet(this, _detectors, __privateGet(this, _detectors).filter((d) => d !== detector));
14533
14461
  }
14534
14462
  };
@@ -14753,10 +14681,8 @@ var Provider = class extends Widget_default {
14753
14681
  while (parent != null) {
14754
14682
  const current = parent;
14755
14683
  parent = current.parent;
14756
- if (!(current.type === 1 /* provider */))
14757
- continue;
14758
- if (current.providerKey !== key)
14759
- continue;
14684
+ if (!(current.type === 1 /* provider */)) continue;
14685
+ if (current.providerKey !== key) continue;
14760
14686
  return current.value;
14761
14687
  }
14762
14688
  throw { message: "can not find requested provider value" };
@@ -14962,8 +14888,7 @@ var AnimationController = class extends Animation_default {
14962
14888
  return this.status === "completed";
14963
14889
  }
14964
14890
  get value() {
14965
- if (this._value == null)
14966
- return 0;
14891
+ if (this._value == null) return 0;
14967
14892
  return this._value;
14968
14893
  }
14969
14894
  set value(value) {
@@ -15034,8 +14959,7 @@ var AnimationController = class extends Animation_default {
15034
14959
  }
15035
14960
  animate(target, overrideOptions = {}) {
15036
14961
  var _a;
15037
- if (typeof window === "undefined")
15038
- return;
14962
+ if (typeof window === "undefined") return;
15039
14963
  (_a = this.animation) == null ? void 0 : _a.stop();
15040
14964
  this.animation = _popmotion.animate.call(void 0, __spreadValues({
15041
14965
  from: this.value,
@@ -15181,10 +15105,8 @@ var Tween = class extends Animatable_default {
15181
15105
  this.end = end != null ? end : begin;
15182
15106
  }
15183
15107
  transform(value) {
15184
- if (value === 0)
15185
- return this.begin;
15186
- if (value === 1)
15187
- return this.end;
15108
+ if (value === 0) return this.begin;
15109
+ if (value === 1) return this.end;
15188
15110
  return this.lerp(value);
15189
15111
  }
15190
15112
  lerp(t) {
@@ -15381,8 +15303,7 @@ function ReactiveChangeNotifier(value) {
15381
15303
  function reactivate(obj) {
15382
15304
  return new Proxy(obj, {
15383
15305
  set(target, key, value2) {
15384
- if (target[key] === value2)
15385
- return false;
15306
+ if (target[key] === value2) return false;
15386
15307
  target[key] = value2;
15387
15308
  notifier.notifyListeners();
15388
15309
  return true;
@@ -15430,8 +15351,7 @@ var RenderAligningShiftedBox = class extends SingleChildRenderObject_default {
15430
15351
  return this._alignment;
15431
15352
  }
15432
15353
  set alignment(value) {
15433
- if (this._alignment.equals(value))
15434
- return;
15354
+ if (this._alignment.equals(value)) return;
15435
15355
  this._alignment = value;
15436
15356
  this.markNeedsLayout();
15437
15357
  }
@@ -15439,8 +15359,7 @@ var RenderAligningShiftedBox = class extends SingleChildRenderObject_default {
15439
15359
  return this._textDirection;
15440
15360
  }
15441
15361
  set textDirection(value) {
15442
- if (this._textDirection == value)
15443
- return;
15362
+ if (this._textDirection == value) return;
15444
15363
  this._textDirection = value;
15445
15364
  this.markNeedsLayout();
15446
15365
  }
@@ -15448,8 +15367,7 @@ var RenderAligningShiftedBox = class extends SingleChildRenderObject_default {
15448
15367
  return this.alignment.resolve(this.textDirection);
15449
15368
  }
15450
15369
  alignChild() {
15451
- if (this.child == null)
15452
- throw Error("child must not be null");
15370
+ if (this.child == null) throw Error("child must not be null");
15453
15371
  if (this.resolvedAlignment == null)
15454
15372
  throw Error("resolved alignment must not be null");
15455
15373
  this.child.offset = this.resolvedAlignment.alongOffset(
@@ -15490,8 +15408,7 @@ var RenderClipPath = class extends SingleChildRenderObject_default {
15490
15408
  return this._clipper;
15491
15409
  }
15492
15410
  set clipper(value) {
15493
- if (this._clipper === value)
15494
- return;
15411
+ if (this._clipper === value) return;
15495
15412
  this._clipper = value;
15496
15413
  this.markNeedsPaint();
15497
15414
  }
@@ -15586,8 +15503,7 @@ var ClipPath = class extends StatelessWidget_default {
15586
15503
  this.clipped = clipped;
15587
15504
  }
15588
15505
  build(_) {
15589
- if (!this.clipped)
15590
- return this.child;
15506
+ if (!this.clipped) return this.child;
15591
15507
  return new BaseClipPath_default({ child: this.child, clipper: this.clipper });
15592
15508
  }
15593
15509
  };
@@ -15672,8 +15588,7 @@ var RenderFlex = class extends MultiChildRenderObject_default {
15672
15588
  return this._direction;
15673
15589
  }
15674
15590
  set direction(newDirection) {
15675
- if (this._direction === newDirection)
15676
- return;
15591
+ if (this._direction === newDirection) return;
15677
15592
  this._direction = newDirection;
15678
15593
  this.markNeedsLayout();
15679
15594
  }
@@ -15681,8 +15596,7 @@ var RenderFlex = class extends MultiChildRenderObject_default {
15681
15596
  return this._mainAxisAlignment;
15682
15597
  }
15683
15598
  set mainAxisAlignment(newMainAxisAlignment) {
15684
- if (this._mainAxisAlignment === newMainAxisAlignment)
15685
- return;
15599
+ if (this._mainAxisAlignment === newMainAxisAlignment) return;
15686
15600
  this._mainAxisAlignment = newMainAxisAlignment;
15687
15601
  this.markNeedsLayout();
15688
15602
  }
@@ -15690,8 +15604,7 @@ var RenderFlex = class extends MultiChildRenderObject_default {
15690
15604
  return this._crossAxisAlignment;
15691
15605
  }
15692
15606
  set crossAxisAlignment(newCrossAxisAlignment) {
15693
- if (this._crossAxisAlignment === newCrossAxisAlignment)
15694
- return;
15607
+ if (this._crossAxisAlignment === newCrossAxisAlignment) return;
15695
15608
  this._crossAxisAlignment = newCrossAxisAlignment;
15696
15609
  this.markNeedsLayout();
15697
15610
  }
@@ -15699,8 +15612,7 @@ var RenderFlex = class extends MultiChildRenderObject_default {
15699
15612
  return this._verticalDirection;
15700
15613
  }
15701
15614
  set verticalDirection(newVerticalDirection) {
15702
- if (this._verticalDirection === newVerticalDirection)
15703
- return;
15615
+ if (this._verticalDirection === newVerticalDirection) return;
15704
15616
  this._verticalDirection = newVerticalDirection;
15705
15617
  this.markNeedsLayout();
15706
15618
  }
@@ -15708,8 +15620,7 @@ var RenderFlex = class extends MultiChildRenderObject_default {
15708
15620
  return this._mainAxisSize;
15709
15621
  }
15710
15622
  set mainAxisSize(newMainAxisSize) {
15711
- if (this._mainAxisSize === newMainAxisSize)
15712
- return;
15623
+ if (this._mainAxisSize === newMainAxisSize) return;
15713
15624
  this._mainAxisSize = newMainAxisSize;
15714
15625
  this.markNeedsLayout();
15715
15626
  }
@@ -16022,24 +15933,15 @@ var RichText = class extends RenderObjectWidget_default {
16022
15933
  });
16023
15934
  }
16024
15935
  updateRenderObject(renderObject) {
16025
- if (this.softWrap != null)
16026
- renderObject.softWrap = this.softWrap;
16027
- if (this.overflow != null)
16028
- renderObject.overflow = this.overflow;
16029
- if (this.textScaleFactor != null)
16030
- renderObject.textScaleFactor = this.textScaleFactor;
16031
- if (this.maxLines != null)
16032
- renderObject.maxLines = this.maxLines;
16033
- if (this.textWidthBasis != null)
16034
- renderObject.textWidthBasis = this.textWidthBasis;
16035
- if (this.text != null)
16036
- renderObject.text = this.text;
16037
- if (this.textAlign != null)
16038
- renderObject.textAlign = this.textAlign;
16039
- if (this.textDirection != null)
16040
- renderObject.textDirection = this.textDirection;
16041
- if (this.textPainter != null)
16042
- renderObject.textPainter = this.textPainter;
15936
+ if (this.softWrap != null) renderObject.softWrap = this.softWrap;
15937
+ if (this.overflow != null) renderObject.overflow = this.overflow;
15938
+ if (this.textScaleFactor != null) renderObject.textScaleFactor = this.textScaleFactor;
15939
+ if (this.maxLines != null) renderObject.maxLines = this.maxLines;
15940
+ if (this.textWidthBasis != null) renderObject.textWidthBasis = this.textWidthBasis;
15941
+ if (this.text != null) renderObject.text = this.text;
15942
+ if (this.textAlign != null) renderObject.textAlign = this.textAlign;
15943
+ if (this.textDirection != null) renderObject.textDirection = this.textDirection;
15944
+ if (this.textPainter != null) renderObject.textPainter = this.textPainter;
16043
15945
  }
16044
15946
  };
16045
15947
  var _softWrap, _overflow, _textPainter;
@@ -16056,9 +15958,9 @@ var RenderParagraph = class extends RenderObject_default {
16056
15958
  textPainter
16057
15959
  }) {
16058
15960
  super({ isPainter: true });
16059
- __privateAdd(this, _softWrap, void 0);
16060
- __privateAdd(this, _overflow, void 0);
16061
- __privateAdd(this, _textPainter, void 0);
15961
+ __privateAdd(this, _softWrap);
15962
+ __privateAdd(this, _overflow);
15963
+ __privateAdd(this, _textPainter);
16062
15964
  __publicField(this, "previousWidth");
16063
15965
  __publicField(this, "previousHeight");
16064
15966
  __publicField(this, "changedLayout");
@@ -16086,8 +15988,7 @@ var RenderParagraph = class extends RenderObject_default {
16086
15988
  return __privateGet(this, _softWrap);
16087
15989
  }
16088
15990
  set softWrap(newSoftWrap) {
16089
- if (__privateGet(this, _softWrap) === newSoftWrap)
16090
- return;
15991
+ if (__privateGet(this, _softWrap) === newSoftWrap) return;
16091
15992
  __privateSet(this, _softWrap, newSoftWrap);
16092
15993
  this.markNeedsLayout();
16093
15994
  }
@@ -16095,8 +15996,7 @@ var RenderParagraph = class extends RenderObject_default {
16095
15996
  return __privateGet(this, _overflow);
16096
15997
  }
16097
15998
  set overflow(newOverflow) {
16098
- if (__privateGet(this, _overflow) === newOverflow)
16099
- return;
15999
+ if (__privateGet(this, _overflow) === newOverflow) return;
16100
16000
  __privateSet(this, _overflow, newOverflow);
16101
16001
  this.markNeedsLayout();
16102
16002
  }
@@ -16104,8 +16004,7 @@ var RenderParagraph = class extends RenderObject_default {
16104
16004
  return __privateGet(this, _textPainter);
16105
16005
  }
16106
16006
  set textPainter(value) {
16107
- if (__privateGet(this, _textPainter) === value)
16108
- return;
16007
+ if (__privateGet(this, _textPainter) === value) return;
16109
16008
  __privateSet(this, _textPainter, value);
16110
16009
  this.markNeedsLayout();
16111
16010
  }
@@ -16113,8 +16012,7 @@ var RenderParagraph = class extends RenderObject_default {
16113
16012
  return this.textPainter.text;
16114
16013
  }
16115
16014
  set text(value) {
16116
- if (this.textPainter.text.equals(value))
16117
- return;
16015
+ if (this.textPainter.text.equals(value)) return;
16118
16016
  this.textPainter.text = value;
16119
16017
  this.markNeedsLayout();
16120
16018
  }
@@ -16122,8 +16020,7 @@ var RenderParagraph = class extends RenderObject_default {
16122
16020
  return this.textPainter.textWidthBasis;
16123
16021
  }
16124
16022
  set textWidthBasis(value) {
16125
- if (this.textPainter.textWidthBasis === value)
16126
- return;
16023
+ if (this.textPainter.textWidthBasis === value) return;
16127
16024
  this.textPainter.textWidthBasis = value;
16128
16025
  this.markNeedsLayout();
16129
16026
  }
@@ -16131,8 +16028,7 @@ var RenderParagraph = class extends RenderObject_default {
16131
16028
  return this.textPainter.textAlign;
16132
16029
  }
16133
16030
  set textAlign(textAlign) {
16134
- if (this.textPainter.textAlign === textAlign)
16135
- return;
16031
+ if (this.textPainter.textAlign === textAlign) return;
16136
16032
  this.textPainter.textAlign = textAlign;
16137
16033
  this.markNeedsLayout();
16138
16034
  }
@@ -16140,8 +16036,7 @@ var RenderParagraph = class extends RenderObject_default {
16140
16036
  return this.textPainter.textDirection;
16141
16037
  }
16142
16038
  set textDirection(direction) {
16143
- if (this.textPainter.textDirection === direction)
16144
- return;
16039
+ if (this.textPainter.textDirection === direction) return;
16145
16040
  this.textPainter.textDirection = direction;
16146
16041
  this.markNeedsLayout();
16147
16042
  }
@@ -16149,8 +16044,7 @@ var RenderParagraph = class extends RenderObject_default {
16149
16044
  return this.textPainter.textScaleFactor;
16150
16045
  }
16151
16046
  set textScaleFactor(scaleFactor) {
16152
- if (this.textPainter.textScaleFactor === scaleFactor)
16153
- return;
16047
+ if (this.textPainter.textScaleFactor === scaleFactor) return;
16154
16048
  this.textPainter.textScaleFactor = scaleFactor;
16155
16049
  this.markNeedsLayout();
16156
16050
  }
@@ -16158,8 +16052,7 @@ var RenderParagraph = class extends RenderObject_default {
16158
16052
  return this.textPainter.maxLines;
16159
16053
  }
16160
16054
  set maxLines(value) {
16161
- if (this.textPainter.maxLines === value)
16162
- return;
16055
+ if (this.textPainter.maxLines === value) return;
16163
16056
  this.textPainter.maxLines = value;
16164
16057
  this.markNeedsLayout();
16165
16058
  }
@@ -16230,8 +16123,7 @@ var ParagraphSvgPainter = class extends SvgPainter {
16230
16123
  this.textPainter.paintOnSvg(newTextEl, context);
16231
16124
  return;
16232
16125
  }
16233
- if (!this.needsPaint && !this.changedLayout)
16234
- return;
16126
+ if (!this.needsPaint && !this.changedLayout) return;
16235
16127
  this.textPainter.paintOnSvg(textEl, context);
16236
16128
  }
16237
16129
  };
@@ -16344,8 +16236,7 @@ var Flexible = class extends SingleChildRenderObjectWidget_default {
16344
16236
  __publicField(this, "isFlexible", true);
16345
16237
  __publicField(this, "flex");
16346
16238
  __publicField(this, "fit");
16347
- if (flex < 0)
16348
- throw new Error("flex must not be under zero");
16239
+ if (flex < 0) throw new Error("flex must not be under zero");
16349
16240
  this.flex = flex;
16350
16241
  this.fit = fit;
16351
16242
  }
@@ -16370,8 +16261,7 @@ var RenderFlexible = class extends SingleChildRenderObject_default {
16370
16261
  return this._flex;
16371
16262
  }
16372
16263
  set flex(newFlex) {
16373
- if (this._flex === newFlex)
16374
- return;
16264
+ if (this._flex === newFlex) return;
16375
16265
  this._flex = newFlex;
16376
16266
  this.markNeedsLayout();
16377
16267
  }
@@ -16379,8 +16269,7 @@ var RenderFlexible = class extends SingleChildRenderObject_default {
16379
16269
  return this._fit;
16380
16270
  }
16381
16271
  set fit(newFit) {
16382
- if (this._fit === newFit)
16383
- return;
16272
+ if (this._fit === newFit) return;
16384
16273
  this._fit = newFit;
16385
16274
  this.markNeedsLayout();
16386
16275
  }
@@ -16433,8 +16322,7 @@ var RenderConstrainedBox = class extends SingleChildRenderObject_default {
16433
16322
  return this._additionalConstraint;
16434
16323
  }
16435
16324
  set additionalConstraint(constraint) {
16436
- if (constraint.equals(this._additionalConstraint))
16437
- return;
16325
+ if (constraint.equals(this._additionalConstraint)) return;
16438
16326
  this._additionalConstraint = constraint;
16439
16327
  this.markNeedsLayout();
16440
16328
  }
@@ -16553,8 +16441,7 @@ var RenderAlign = class extends RenderAligningShiftedBox_default {
16553
16441
  return this._widthFactor;
16554
16442
  }
16555
16443
  set widthFactor(value) {
16556
- if (this._widthFactor === value)
16557
- return;
16444
+ if (this._widthFactor === value) return;
16558
16445
  this._widthFactor = value;
16559
16446
  this.markNeedsLayout();
16560
16447
  }
@@ -16562,8 +16449,7 @@ var RenderAlign = class extends RenderAligningShiftedBox_default {
16562
16449
  return this._heightFactor;
16563
16450
  }
16564
16451
  set heightFactor(value) {
16565
- if (this._heightFactor === value)
16566
- return;
16452
+ if (this._heightFactor === value) return;
16567
16453
  this._heightFactor = value;
16568
16454
  this.markNeedsLayout();
16569
16455
  }
@@ -16620,8 +16506,7 @@ var RenderColoredBox = class extends SingleChildRenderObject_default {
16620
16506
  return this._color;
16621
16507
  }
16622
16508
  set color(value) {
16623
- if (value === this._color)
16624
- return;
16509
+ if (value === this._color) return;
16625
16510
  this._color = value;
16626
16511
  this.markNeedsPaint();
16627
16512
  }
@@ -16694,8 +16579,7 @@ var RenderDecoratedBox = class extends SingleChildRenderObject_default {
16694
16579
  return this._decoration;
16695
16580
  }
16696
16581
  set decoration(value) {
16697
- if (this.decoration.equals(value))
16698
- return;
16582
+ if (this.decoration.equals(value)) return;
16699
16583
  this._decoration = value;
16700
16584
  this.markNeedsPaint();
16701
16585
  }
@@ -16787,8 +16671,7 @@ var RenderLimitedBox = class extends SingleChildRenderObject_default {
16787
16671
  return this._maxWidth;
16788
16672
  }
16789
16673
  set maxWidth(newMaxWidth) {
16790
- if (this._maxWidth === newMaxWidth)
16791
- return;
16674
+ if (this._maxWidth === newMaxWidth) return;
16792
16675
  this._maxWidth = newMaxWidth;
16793
16676
  this.markNeedsLayout();
16794
16677
  }
@@ -16796,8 +16679,7 @@ var RenderLimitedBox = class extends SingleChildRenderObject_default {
16796
16679
  return this._maxHeight;
16797
16680
  }
16798
16681
  set maxHeight(newMaxHeight) {
16799
- if (this._maxHeight === newMaxHeight)
16800
- return;
16682
+ if (this._maxHeight === newMaxHeight) return;
16801
16683
  this._maxHeight = newMaxHeight;
16802
16684
  this.markNeedsLayout();
16803
16685
  }
@@ -16855,14 +16737,12 @@ var RenderPadding = class extends SingleChildRenderObject_default {
16855
16737
  return this._padding;
16856
16738
  }
16857
16739
  set padding(value) {
16858
- if (value.eqaul(this._padding))
16859
- return;
16740
+ if (value.eqaul(this._padding)) return;
16860
16741
  this._padding = value;
16861
16742
  this.markNeedsLayout();
16862
16743
  }
16863
16744
  preformLayout() {
16864
- if (this.child == null)
16865
- return;
16745
+ if (this.child == null) return;
16866
16746
  const { top, left, right, bottom } = this.padding;
16867
16747
  const childConstraints = this.constraints.deflate(this.padding);
16868
16748
  this.child.layout(childConstraints);
@@ -17028,8 +16908,7 @@ var RenderTransform = class extends SingleChildRenderObject_default {
17028
16908
  return this._origin;
17029
16909
  }
17030
16910
  set origin(value) {
17031
- if (value == null && this._origin == null)
17032
- return;
16911
+ if (value == null && this._origin == null) return;
17033
16912
  if (value != null && this._origin != null && this._origin.x === value.x && this._origin.y === value.y)
17034
16913
  return;
17035
16914
  this._origin = value;
@@ -17039,8 +16918,7 @@ var RenderTransform = class extends SingleChildRenderObject_default {
17039
16918
  return this._alignment;
17040
16919
  }
17041
16920
  set alignment(value) {
17042
- if (this._alignment.equal(value))
17043
- return;
16921
+ if (this._alignment.equal(value)) return;
17044
16922
  this._alignment = value;
17045
16923
  this.markNeedsLayout();
17046
16924
  }
@@ -17048,8 +16926,7 @@ var RenderTransform = class extends SingleChildRenderObject_default {
17048
16926
  return this._transform;
17049
16927
  }
17050
16928
  set transform(value) {
17051
- if (this.transform.equals(value))
17052
- return;
16929
+ if (this.transform.equals(value)) return;
17053
16930
  this._transform = value;
17054
16931
  this.markNeedsLayout();
17055
16932
  this.markNeedsPaintTransformUpdate();
@@ -17058,8 +16935,7 @@ var RenderTransform = class extends SingleChildRenderObject_default {
17058
16935
  return this._textDirection;
17059
16936
  }
17060
16937
  set textDirection(value) {
17061
- if (this._textDirection == value)
17062
- return;
16938
+ if (this._textDirection == value) return;
17063
16939
  this._textDirection = value;
17064
16940
  this.markNeedsLayout();
17065
16941
  }
@@ -17361,8 +17237,7 @@ var RenderBaseGrid = class extends MultiChildRenderObject_default {
17361
17237
  return this._templateRows;
17362
17238
  }
17363
17239
  set templateRows(value) {
17364
- if (GridTemplate.equals(value, this._templateRows))
17365
- return;
17240
+ if (GridTemplate.equals(value, this._templateRows)) return;
17366
17241
  this._templateRows = value;
17367
17242
  this.markNeedsLayout();
17368
17243
  }
@@ -17370,8 +17245,7 @@ var RenderBaseGrid = class extends MultiChildRenderObject_default {
17370
17245
  return this._templateColumns;
17371
17246
  }
17372
17247
  set templateColumns(value) {
17373
- if (GridTemplate.equals(value, this._templateColumns))
17374
- return;
17248
+ if (GridTemplate.equals(value, this._templateColumns)) return;
17375
17249
  this._templateColumns = value;
17376
17250
  this.markNeedsLayout();
17377
17251
  }
@@ -17379,8 +17253,7 @@ var RenderBaseGrid = class extends MultiChildRenderObject_default {
17379
17253
  return this._autoColumn;
17380
17254
  }
17381
17255
  set autoColumn(value) {
17382
- if (value.equals(this._autoColumn))
17383
- return;
17256
+ if (value.equals(this._autoColumn)) return;
17384
17257
  this._autoColumn = value;
17385
17258
  this.markNeedsLayout();
17386
17259
  }
@@ -17388,8 +17261,7 @@ var RenderBaseGrid = class extends MultiChildRenderObject_default {
17388
17261
  return this._autoRow;
17389
17262
  }
17390
17263
  set autoRow(value) {
17391
- if (value.equals(this._autoRow))
17392
- return;
17264
+ if (value.equals(this._autoRow)) return;
17393
17265
  this._autoRow = value;
17394
17266
  this.markNeedsLayout();
17395
17267
  }
@@ -17397,8 +17269,7 @@ var RenderBaseGrid = class extends MultiChildRenderObject_default {
17397
17269
  return this._columnCounts;
17398
17270
  }
17399
17271
  set columnCounts(value) {
17400
- if (Utils.arrayEqual(value, this._columnCounts))
17401
- return;
17272
+ if (Utils.arrayEqual(value, this._columnCounts)) return;
17402
17273
  this._columnCounts = value;
17403
17274
  this.markNeedsLayout();
17404
17275
  }
@@ -17548,13 +17419,11 @@ var GridTemplate = class _GridTemplate {
17548
17419
  this.value = value;
17549
17420
  }
17550
17421
  static equals(target, other) {
17551
- if (target.length !== other.length)
17552
- return false;
17422
+ if (target.length !== other.length) return false;
17553
17423
  return target.every((value, i) => value.equals(other[i]));
17554
17424
  }
17555
17425
  equals(other) {
17556
- if (this === other)
17557
- return true;
17426
+ if (this === other) return true;
17558
17427
  return this.type === other.type && this.value === other.value;
17559
17428
  }
17560
17429
  static Fr(value) {
@@ -17636,8 +17505,7 @@ var RenderStack = class _RenderStack extends MultiChildRenderObject_default {
17636
17505
  return this._alignment;
17637
17506
  }
17638
17507
  set alignment(value) {
17639
- if (value.equal(this._alignment))
17640
- return;
17508
+ if (value.equal(this._alignment)) return;
17641
17509
  this._alignment = value;
17642
17510
  this.markNeedsLayout();
17643
17511
  }
@@ -17645,8 +17513,7 @@ var RenderStack = class _RenderStack extends MultiChildRenderObject_default {
17645
17513
  return this._fit;
17646
17514
  }
17647
17515
  set fit(value) {
17648
- if (this._fit !== value)
17649
- return;
17516
+ if (this._fit !== value) return;
17650
17517
  this._fit = value;
17651
17518
  this.markNeedsLayout();
17652
17519
  }
@@ -17654,8 +17521,7 @@ var RenderStack = class _RenderStack extends MultiChildRenderObject_default {
17654
17521
  return this._textDirection;
17655
17522
  }
17656
17523
  set textDirection(value) {
17657
- if (this._textDirection !== value)
17658
- return;
17524
+ if (this._textDirection !== value) return;
17659
17525
  this._textDirection = value;
17660
17526
  this.markNeedsPaint();
17661
17527
  }
@@ -17868,8 +17734,7 @@ var RenderPositioned = class extends SingleChildRenderObject_default {
17868
17734
  return this._top;
17869
17735
  }
17870
17736
  set top(newTop) {
17871
- if (this._top === newTop)
17872
- return;
17737
+ if (this._top === newTop) return;
17873
17738
  this._top = newTop;
17874
17739
  this.markNeedsLayout();
17875
17740
  }
@@ -17877,8 +17742,7 @@ var RenderPositioned = class extends SingleChildRenderObject_default {
17877
17742
  return this._bottom;
17878
17743
  }
17879
17744
  set bottom(newBottom) {
17880
- if (this._bottom === newBottom)
17881
- return;
17745
+ if (this._bottom === newBottom) return;
17882
17746
  this._bottom = newBottom;
17883
17747
  this.markNeedsLayout();
17884
17748
  }
@@ -17886,8 +17750,7 @@ var RenderPositioned = class extends SingleChildRenderObject_default {
17886
17750
  return this._right;
17887
17751
  }
17888
17752
  set right(newRight) {
17889
- if (this._right === newRight)
17890
- return;
17753
+ if (this._right === newRight) return;
17891
17754
  this._right = newRight;
17892
17755
  this.markNeedsLayout();
17893
17756
  }
@@ -17895,8 +17758,7 @@ var RenderPositioned = class extends SingleChildRenderObject_default {
17895
17758
  return this._left;
17896
17759
  }
17897
17760
  set left(newLeft) {
17898
- if (this._left === newLeft)
17899
- return;
17761
+ if (this._left === newLeft) return;
17900
17762
  this._left = newLeft;
17901
17763
  this.markNeedsLayout();
17902
17764
  }
@@ -17904,8 +17766,7 @@ var RenderPositioned = class extends SingleChildRenderObject_default {
17904
17766
  return this._width;
17905
17767
  }
17906
17768
  set width(newWidth) {
17907
- if (this._width === newWidth)
17908
- return;
17769
+ if (this._width === newWidth) return;
17909
17770
  this._width = newWidth;
17910
17771
  this.markNeedsLayout();
17911
17772
  }
@@ -17913,8 +17774,7 @@ var RenderPositioned = class extends SingleChildRenderObject_default {
17913
17774
  return this._height;
17914
17775
  }
17915
17776
  set height(newHeight) {
17916
- if (this._height === newHeight)
17917
- return;
17777
+ if (this._height === newHeight) return;
17918
17778
  this._height = newHeight;
17919
17779
  this.markNeedsLayout();
17920
17780
  }
@@ -18011,8 +17871,7 @@ var RenderConstraintsTransformBox = class extends RenderAligningShiftedBox_defau
18011
17871
  return this._constraintsTransform;
18012
17872
  }
18013
17873
  set constraintsTransform(value) {
18014
- if (value === this._constraintsTransform)
18015
- return;
17874
+ if (value === this._constraintsTransform) return;
18016
17875
  this._constraintsTransform = value;
18017
17876
  this.markNeedsLayout();
18018
17877
  }
@@ -18166,8 +18025,7 @@ var RenderOverflowBox = class extends RenderAligningShiftedBox_default {
18166
18025
  return this._minWidth;
18167
18026
  }
18168
18027
  set minWidth(newMinWidth) {
18169
- if (this._minWidth === newMinWidth)
18170
- return;
18028
+ if (this._minWidth === newMinWidth) return;
18171
18029
  this._minWidth = newMinWidth;
18172
18030
  this.markNeedsLayout();
18173
18031
  }
@@ -18175,8 +18033,7 @@ var RenderOverflowBox = class extends RenderAligningShiftedBox_default {
18175
18033
  return this._maxWidth;
18176
18034
  }
18177
18035
  set maxWidth(newMaxWidth) {
18178
- if (this._maxWidth === newMaxWidth)
18179
- return;
18036
+ if (this._maxWidth === newMaxWidth) return;
18180
18037
  this._maxWidth = newMaxWidth;
18181
18038
  this.markNeedsLayout();
18182
18039
  }
@@ -18184,8 +18041,7 @@ var RenderOverflowBox = class extends RenderAligningShiftedBox_default {
18184
18041
  return this._minHeight;
18185
18042
  }
18186
18043
  set minHeight(newMinHeight) {
18187
- if (this._minHeight === newMinHeight)
18188
- return;
18044
+ if (this._minHeight === newMinHeight) return;
18189
18045
  this._minHeight = newMinHeight;
18190
18046
  this.markNeedsLayout();
18191
18047
  }
@@ -18193,8 +18049,7 @@ var RenderOverflowBox = class extends RenderAligningShiftedBox_default {
18193
18049
  return this._maxHeight;
18194
18050
  }
18195
18051
  set maxHeight(newMaxHeight) {
18196
- if (this._maxHeight === newMaxHeight)
18197
- return;
18052
+ if (this._maxHeight === newMaxHeight) return;
18198
18053
  this._maxHeight = newMaxHeight;
18199
18054
  this.markNeedsLayout();
18200
18055
  }
@@ -18280,8 +18135,7 @@ var RenderFractionallySizedBox = class extends RenderAligningShiftedBox_default
18280
18135
  return this._widthFactor;
18281
18136
  }
18282
18137
  set widthFactor(newWidthFactor) {
18283
- if (this._widthFactor === newWidthFactor)
18284
- return;
18138
+ if (this._widthFactor === newWidthFactor) return;
18285
18139
  this._widthFactor = newWidthFactor;
18286
18140
  this.markNeedsLayout();
18287
18141
  }
@@ -18289,8 +18143,7 @@ var RenderFractionallySizedBox = class extends RenderAligningShiftedBox_default
18289
18143
  return this._heightFactor;
18290
18144
  }
18291
18145
  set heightFactor(newHeightFactor) {
18292
- if (this._heightFactor === newHeightFactor)
18293
- return;
18146
+ if (this._heightFactor === newHeightFactor) return;
18294
18147
  this._heightFactor = newHeightFactor;
18295
18148
  this.markNeedsLayout();
18296
18149
  }
@@ -18360,8 +18213,7 @@ var BaseIntrinsicHeight = class extends SingleChildRenderObjectWidget_default {
18360
18213
  };
18361
18214
  var RenderIntrinsicHeight = class extends SingleChildRenderObject_default {
18362
18215
  preformLayout() {
18363
- if (this.child == null)
18364
- return;
18216
+ if (this.child == null) return;
18365
18217
  const height = this.child.getIntrinsicHeight(this.constraints.maxWidth) || 0;
18366
18218
  const constraint = constraints_default.tightFor({ height }).enforce(
18367
18219
  this.constraints
@@ -18384,8 +18236,7 @@ var BaseIntrinsicWidth = class extends SingleChildRenderObjectWidget_default {
18384
18236
  };
18385
18237
  var RenderIntrinsicWidth = class extends SingleChildRenderObject_default {
18386
18238
  preformLayout() {
18387
- if (this.child == null)
18388
- return;
18239
+ if (this.child == null) return;
18389
18240
  const width = this.child.getIntrinsicWidth(this.constraints.maxHeight) || 0;
18390
18241
  const constraint = constraints_default.tightFor({ width }).enforce(
18391
18242
  this.constraints
@@ -18729,26 +18580,22 @@ var RenderCustomPaint = class extends SingleChildRenderObject_default {
18729
18580
  return this._painter;
18730
18581
  }
18731
18582
  set painter(value) {
18732
- if (this._painter === value)
18733
- return;
18583
+ if (this._painter === value) return;
18734
18584
  const oldPainter = this._painter;
18735
18585
  this._painter = value;
18736
18586
  this.didUpdatePainter(this._painter, oldPainter);
18737
18587
  }
18738
18588
  didUpdatePainter(newPainter, oldPainter) {
18739
18589
  const { shouldRepaint } = newPainter;
18740
- if (shouldRepaint == null)
18741
- return;
18742
- if (!shouldRepaint(oldPainter))
18743
- return;
18590
+ if (shouldRepaint == null) return;
18591
+ if (!shouldRepaint(oldPainter)) return;
18744
18592
  this.markNeedsPaint();
18745
18593
  }
18746
18594
  get preferredSize() {
18747
18595
  return this._preferredSize;
18748
18596
  }
18749
18597
  set preferredSize(value) {
18750
- if (value.equal(this.preferredSize))
18751
- return;
18598
+ if (value.equal(this.preferredSize)) return;
18752
18599
  this.preferredSize = value;
18753
18600
  this.markNeedsLayout();
18754
18601
  }
@@ -18779,13 +18626,11 @@ var SvgPainterCustomPaint = class extends SvgPainter {
18779
18626
  return this.renderObject.painter;
18780
18627
  }
18781
18628
  performPaint(svgEls, _) {
18782
- if (this.painter.svg == null)
18783
- throw new Error("svg painter is not defined");
18629
+ if (this.painter.svg == null) throw new Error("svg painter is not defined");
18784
18630
  this.painter.svg.paint(svgEls, this.size);
18785
18631
  }
18786
18632
  createDefaultSvgEl(paintContext) {
18787
- if (this.painter.svg == null)
18788
- throw new Error("svg painter is not defined");
18633
+ if (this.painter.svg == null) throw new Error("svg painter is not defined");
18789
18634
  return this.painter.svg.createDefaultSvgEl(paintContext);
18790
18635
  }
18791
18636
  };
@@ -18935,8 +18780,7 @@ var RenderGestureDetector = class extends SingleChildRenderObject_default {
18935
18780
  return this._cursor;
18936
18781
  }
18937
18782
  set cursor(prop) {
18938
- if (this._cursor === prop)
18939
- return;
18783
+ if (this._cursor === prop) return;
18940
18784
  this._cursor = prop;
18941
18785
  this.markNeedsPaint();
18942
18786
  }
@@ -18944,88 +18788,77 @@ var RenderGestureDetector = class extends SingleChildRenderObject_default {
18944
18788
  return this._onClick;
18945
18789
  }
18946
18790
  set onClick(prop) {
18947
- if (this.onClick === prop)
18948
- return;
18791
+ if (this.onClick === prop) return;
18949
18792
  this._onClick = prop;
18950
18793
  }
18951
18794
  get onMouseDown() {
18952
18795
  return this._onMouseDown;
18953
18796
  }
18954
18797
  set onMouseDown(prop) {
18955
- if (this._onMouseDown === prop)
18956
- return;
18798
+ if (this._onMouseDown === prop) return;
18957
18799
  this._onMouseDown = prop;
18958
18800
  }
18959
18801
  get onMouseMove() {
18960
18802
  return this._onMouseMove;
18961
18803
  }
18962
18804
  set onMouseMove(prop) {
18963
- if (this._onMouseMove === prop)
18964
- return;
18805
+ if (this._onMouseMove === prop) return;
18965
18806
  this._onMouseMove = prop;
18966
18807
  }
18967
18808
  get onMouseUp() {
18968
18809
  return this._onMouseUp;
18969
18810
  }
18970
18811
  set onMouseUp(prop) {
18971
- if (this._onMouseUp === prop)
18972
- return;
18812
+ if (this._onMouseUp === prop) return;
18973
18813
  this._onMouseUp = prop;
18974
18814
  }
18975
18815
  get onMouseOver() {
18976
18816
  return this._onMouseOver;
18977
18817
  }
18978
18818
  set onMouseOver(prop) {
18979
- if (this._onMouseOver === prop)
18980
- return;
18819
+ if (this._onMouseOver === prop) return;
18981
18820
  this._onMouseOver = prop;
18982
18821
  }
18983
18822
  get onMouseEnter() {
18984
18823
  return this._onMouseEnter;
18985
18824
  }
18986
18825
  set onMouseEnter(prop) {
18987
- if (this._onMouseEnter === prop)
18988
- return;
18826
+ if (this._onMouseEnter === prop) return;
18989
18827
  this._onMouseEnter = prop;
18990
18828
  }
18991
18829
  get onMouseLeave() {
18992
18830
  return this._onMouseLeave;
18993
18831
  }
18994
18832
  set onMouseLeave(prop) {
18995
- if (this._onMouseLeave === prop)
18996
- return;
18833
+ if (this._onMouseLeave === prop) return;
18997
18834
  this._onMouseLeave = prop;
18998
18835
  }
18999
18836
  get onDragStart() {
19000
18837
  return this._onDragStart;
19001
18838
  }
19002
18839
  set onDragStart(prop) {
19003
- if (this._onDragStart === prop)
19004
- return;
18840
+ if (this._onDragStart === prop) return;
19005
18841
  this._onDragStart = prop;
19006
18842
  }
19007
18843
  get onDragMove() {
19008
18844
  return this._onDragMove;
19009
18845
  }
19010
18846
  set onDragMove(prop) {
19011
- if (this._onDragMove === prop)
19012
- return;
18847
+ if (this._onDragMove === prop) return;
19013
18848
  this._onDragMove = prop;
19014
18849
  }
19015
18850
  get onDragEnd() {
19016
18851
  return this._onDragEnd;
19017
18852
  }
19018
18853
  set onDragEnd(prop) {
19019
- if (this._onDragEnd === prop)
19020
- return;
18854
+ if (this._onDragEnd === prop) return;
19021
18855
  this._onDragEnd = prop;
19022
18856
  }
19023
18857
  get onWheel() {
19024
18858
  return this._onWheel;
19025
18859
  }
19026
18860
  set onWheel(prop) {
19027
- if (this._onWheel === prop)
19028
- return;
18861
+ if (this._onWheel === prop) return;
19029
18862
  this._onWheel = prop;
19030
18863
  }
19031
18864
  attach(ownerElement) {
@@ -19048,8 +18881,7 @@ var RenderGestureDetector = class extends SingleChildRenderObject_default {
19048
18881
  }
19049
18882
  addEventListeners() {
19050
18883
  const isBrowser = typeof window !== "undefined";
19051
- if (!isBrowser)
19052
- return;
18884
+ if (!isBrowser) return;
19053
18885
  const dragBackend = getSingletonDragBackend();
19054
18886
  dragBackend.isSetup || dragBackend.setup();
19055
18887
  backendRefCount++;
@@ -19091,14 +18923,12 @@ var DragBackend = class {
19091
18923
  __publicField(this, "dragEndListener", {});
19092
18924
  __publicField(this, "handleMouseMoveTop", (e) => {
19093
18925
  var _a, _b;
19094
- if (this.activeDragSourceId == null)
19095
- return;
18926
+ if (this.activeDragSourceId == null) return;
19096
18927
  (_b = (_a = this.dragMoveListener)[this.activeDragSourceId]) == null ? void 0 : _b.call(_a, e);
19097
18928
  });
19098
18929
  __publicField(this, "handleMouseUpTop", (e) => {
19099
18930
  var _a, _b;
19100
- if (this.activeDragSourceId == null)
19101
- return;
18931
+ if (this.activeDragSourceId == null) return;
19102
18932
  (_b = (_a = this.dragEndListener)[this.activeDragSourceId]) == null ? void 0 : _b.call(_a, e);
19103
18933
  this.activeDragSourceId = null;
19104
18934
  });
@@ -19111,17 +18941,14 @@ var DragBackend = class {
19111
18941
  return document;
19112
18942
  }
19113
18943
  setup() {
19114
- if (typeof window === "undefined")
19115
- return;
19116
- if (this.isSetup)
19117
- return;
18944
+ if (typeof window === "undefined") return;
18945
+ if (this.isSetup) return;
19118
18946
  this.root.addEventListener("mousemove", this.handleMouseMoveTop);
19119
18947
  this.root.addEventListener("mouseup", this.handleMouseUpTop);
19120
18948
  this.isSetup = true;
19121
18949
  }
19122
18950
  teardown() {
19123
- if (typeof window === "undefined")
19124
- return;
18951
+ if (typeof window === "undefined") return;
19125
18952
  this.root.removeEventListener("mousemove", this.handleMouseMoveTop);
19126
18953
  this.root.removeEventListener("mouseup", this.handleMouseUpTop);
19127
18954
  this.isSetup = false;
@@ -19793,8 +19620,7 @@ var DraggableState = class extends State {
19793
19620
  });
19794
19621
  });
19795
19622
  __publicField(this, "handleMouseMove", ({ x, y }) => {
19796
- if (this.origin == null)
19797
- return;
19623
+ if (this.origin == null) return;
19798
19624
  this.setState(() => {
19799
19625
  var _a, _b;
19800
19626
  this.delta = this.lastDelta.plus(
@@ -19928,15 +19754,14 @@ var _zIndex;
19928
19754
  var RenderZIndex = class extends SingleChildRenderObject_default {
19929
19755
  constructor({ zIndex }) {
19930
19756
  super({ isPainter: false });
19931
- __privateAdd(this, _zIndex, void 0);
19757
+ __privateAdd(this, _zIndex);
19932
19758
  __privateSet(this, _zIndex, zIndex);
19933
19759
  }
19934
19760
  get zIndex() {
19935
19761
  return __privateGet(this, _zIndex);
19936
19762
  }
19937
19763
  set zIndex(value) {
19938
- if (__privateGet(this, _zIndex) === value)
19939
- return;
19764
+ if (__privateGet(this, _zIndex) === value) return;
19940
19765
  __privateSet(this, _zIndex, value);
19941
19766
  this.markNeedsUpdateZOrder();
19942
19767
  }
@@ -20004,52 +19829,39 @@ var TextField = class extends StatefulWidget_default {
20004
19829
  }
20005
19830
  };
20006
19831
  var ZERO_WIDTH_SPACE = "\u200B";
20007
- var _nativeInput, _selection, _textPainter2, _selectionUI, _textKey, _selectionStart, _textFieldPosition, _focused, _isTyping, _typingTimer, _isComposing, _lineInfo, _currentCharUI, _hasSelection, hasSelection_get, _resetTypingTimer, resetTypingTimer_fn, _setText, setText_fn, _toTextSpan, toTextSpan_fn, _syncThis, syncThis_fn, _syncBlur, _render, render_fn, _calculateLineInfo, calculateLineInfo_fn, _findLineIndexForPosition, findLineIndexForPosition_fn, _calculateCurrentCharRect, calculateCurrentCharRect_fn, _calculateSelectionUI, calculateSelectionUI_fn, _setSelection, setSelection_fn, _getCharIndexFromMouseEvent;
19832
+ var _nativeInput, _selection, _textPainter2, _selectionUI, _textKey, _selectionStart, _textFieldPosition, _focused, _isTyping, _typingTimer, _isComposing, _lineInfo, _currentCharUI, _TextFieldState_instances, hasSelection_get, resetTypingTimer_fn, setText_fn, toTextSpan_fn, syncThis_fn, _syncBlur, render_fn, calculateLineInfo_fn, findLineIndexForPosition_fn, calculateCurrentCharRect_fn, calculateSelectionUI_fn, setSelection_fn, _getCharIndexFromMouseEvent;
20008
19833
  var TextFieldState = class extends State {
20009
19834
  constructor() {
20010
19835
  super();
20011
- __privateAdd(this, _hasSelection);
20012
- __privateAdd(this, _resetTypingTimer);
20013
- __privateAdd(this, _setText);
20014
- __privateAdd(this, _toTextSpan);
20015
- /**
20016
- * Sync the text field with the native input.
20017
- */
20018
- __privateAdd(this, _syncThis);
20019
- __privateAdd(this, _render);
20020
- __privateAdd(this, _calculateLineInfo);
20021
- __privateAdd(this, _findLineIndexForPosition);
20022
- __privateAdd(this, _calculateCurrentCharRect);
20023
- __privateAdd(this, _calculateSelectionUI);
20024
- __privateAdd(this, _setSelection);
19836
+ __privateAdd(this, _TextFieldState_instances);
20025
19837
  __privateAdd(this, _nativeInput, new NativeInput());
20026
19838
  __publicField(this, "value", "");
20027
19839
  __privateAdd(this, _selection, [0, 0]);
20028
- __privateAdd(this, _textPainter2, void 0);
19840
+ __privateAdd(this, _textPainter2);
20029
19841
  __privateAdd(this, _selectionUI, []);
20030
19842
  __privateAdd(this, _textKey, new Globalkey_default());
20031
19843
  __privateAdd(this, _selectionStart, 0);
20032
19844
  __privateAdd(this, _textFieldPosition, null);
20033
19845
  __privateAdd(this, _focused, false);
20034
19846
  __privateAdd(this, _isTyping, false);
20035
- __privateAdd(this, _typingTimer, void 0);
19847
+ __privateAdd(this, _typingTimer);
20036
19848
  __privateAdd(this, _isComposing, false);
20037
19849
  __privateAdd(this, _lineInfo, []);
20038
- __privateAdd(this, _currentCharUI, void 0);
19850
+ __privateAdd(this, _currentCharUI);
20039
19851
  __privateAdd(this, _syncBlur, () => {
20040
19852
  __privateSet(this, _selection, [0, 0]);
20041
19853
  __privateSet(this, _currentCharUI, null);
20042
19854
  __privateSet(this, _selectionUI, null);
20043
19855
  __privateSet(this, _focused, false);
20044
- __privateMethod(this, _render, render_fn).call(this);
19856
+ __privateMethod(this, _TextFieldState_instances, render_fn).call(this);
20045
19857
  });
20046
19858
  __publicField(this, "focus", (location = this.value.length) => {
20047
19859
  __privateGet(this, _nativeInput).value = this.value;
20048
19860
  __privateGet(this, _nativeInput).focus();
20049
- __privateMethod(this, _setSelection, setSelection_fn).call(this, location);
19861
+ __privateMethod(this, _TextFieldState_instances, setSelection_fn).call(this, location);
20050
19862
  __privateGet(this, _nativeInput).setCaret(location);
20051
19863
  __privateSet(this, _focused, true);
20052
- __privateMethod(this, _render, render_fn).call(this);
19864
+ __privateMethod(this, _TextFieldState_instances, render_fn).call(this);
20053
19865
  });
20054
19866
  __publicField(this, "blur", () => {
20055
19867
  __privateGet(this, _syncBlur).call(this);
@@ -20138,12 +19950,11 @@ var TextFieldState = class extends State {
20138
19950
  this.focus(globalCharIndex);
20139
19951
  });
20140
19952
  __publicField(this, "handleMouseMove", (e) => {
20141
- if (!__privateGet(this, _textFieldPosition))
20142
- return;
19953
+ if (!__privateGet(this, _textFieldPosition)) return;
20143
19954
  const currentIndex = __privateGet(this, _getCharIndexFromMouseEvent).call(this, e);
20144
19955
  const start = Math.min(__privateGet(this, _selectionStart), currentIndex);
20145
19956
  const end = Math.max(__privateGet(this, _selectionStart), currentIndex);
20146
- __privateMethod(this, _setSelection, setSelection_fn).call(this, start, end);
19957
+ __privateMethod(this, _TextFieldState_instances, setSelection_fn).call(this, start, end);
20147
19958
  __privateGet(this, _nativeInput).setSelection(start, end);
20148
19959
  });
20149
19960
  __publicField(this, "handleMouseUp", () => {
@@ -20152,7 +19963,7 @@ var TextFieldState = class extends State {
20152
19963
  }
20153
19964
  didUpdateWidget(oldWidget) {
20154
19965
  if (oldWidget.text !== this.widget.text || !oldWidget.style.equals(this.widget.style)) {
20155
- __privateMethod(this, _setText, setText_fn).call(this, this.widget.text);
19966
+ __privateMethod(this, _TextFieldState_instances, setText_fn).call(this, this.widget.text);
20156
19967
  return;
20157
19968
  }
20158
19969
  }
@@ -20161,7 +19972,7 @@ var TextFieldState = class extends State {
20161
19972
  return (_a = __privateGet(this, _textPainter2).paragraph) == null ? void 0 : _a.lines;
20162
19973
  }
20163
19974
  initState() {
20164
- __privateMethod(this, _setText, setText_fn).call(this, this.widget.text);
19975
+ __privateMethod(this, _TextFieldState_instances, setText_fn).call(this, this.widget.text);
20165
19976
  __privateGet(this, _nativeInput).addEventListener("compositionstart", () => {
20166
19977
  this.setState(() => {
20167
19978
  __privateSet(this, _isComposing, true);
@@ -20183,7 +19994,7 @@ var TextFieldState = class extends State {
20183
19994
  return;
20184
19995
  }
20185
19996
  setTimeout(() => {
20186
- __privateMethod(this, _syncThis, syncThis_fn).call(this);
19997
+ __privateMethod(this, _TextFieldState_instances, syncThis_fn).call(this);
20187
19998
  }, 0);
20188
19999
  });
20189
20000
  __privateGet(this, _nativeInput).addEventListener("blur", () => {
@@ -20294,25 +20105,23 @@ _typingTimer = new WeakMap();
20294
20105
  _isComposing = new WeakMap();
20295
20106
  _lineInfo = new WeakMap();
20296
20107
  _currentCharUI = new WeakMap();
20297
- _hasSelection = new WeakSet();
20108
+ _TextFieldState_instances = new WeakSet();
20298
20109
  hasSelection_get = function() {
20299
20110
  return __privateGet(this, _selection)[0] !== __privateGet(this, _selection)[1];
20300
20111
  };
20301
- _resetTypingTimer = new WeakSet();
20302
20112
  resetTypingTimer_fn = function() {
20303
20113
  if (__privateGet(this, _typingTimer)) {
20304
20114
  clearTimeout(__privateGet(this, _typingTimer));
20305
20115
  }
20306
20116
  __privateSet(this, _typingTimer, setTimeout(() => {
20307
20117
  __privateSet(this, _isTyping, false);
20308
- __privateMethod(this, _render, render_fn).call(this);
20118
+ __privateMethod(this, _TextFieldState_instances, render_fn).call(this);
20309
20119
  }, 10));
20310
20120
  };
20311
- _setText = new WeakSet();
20312
20121
  setText_fn = function(text) {
20313
20122
  this.value = text;
20314
20123
  __privateSet(this, _textPainter2, new TextPainter({
20315
- text: __privateMethod(this, _toTextSpan, toTextSpan_fn).call(this),
20124
+ text: __privateMethod(this, _TextFieldState_instances, toTextSpan_fn).call(this),
20316
20125
  textDirection: this.widget.textDirection,
20317
20126
  textScaleFactor: 1,
20318
20127
  textWidthBasis: text_width_basis_default.parent,
@@ -20320,12 +20129,11 @@ setText_fn = function(text) {
20320
20129
  maxLines: this.widget.maxLines,
20321
20130
  ellipsis: void 0
20322
20131
  }));
20323
- __privateMethod(this, _render, render_fn).call(this);
20132
+ __privateMethod(this, _TextFieldState_instances, render_fn).call(this);
20324
20133
  this.element.scheduler.addPostFrameCallbacks(() => {
20325
- __privateSet(this, _lineInfo, __privateMethod(this, _calculateLineInfo, calculateLineInfo_fn).call(this));
20134
+ __privateSet(this, _lineInfo, __privateMethod(this, _TextFieldState_instances, calculateLineInfo_fn).call(this));
20326
20135
  });
20327
20136
  };
20328
- _toTextSpan = new WeakSet();
20329
20137
  toTextSpan_fn = function() {
20330
20138
  return new text_span_default({
20331
20139
  /**
@@ -20342,22 +20150,22 @@ toTextSpan_fn = function() {
20342
20150
  )
20343
20151
  });
20344
20152
  };
20345
- _syncThis = new WeakSet();
20153
+ /**
20154
+ * Sync the text field with the native input.
20155
+ */
20346
20156
  syncThis_fn = function() {
20347
- __privateMethod(this, _setText, setText_fn).call(this, __privateGet(this, _nativeInput).value);
20157
+ __privateMethod(this, _TextFieldState_instances, setText_fn).call(this, __privateGet(this, _nativeInput).value);
20348
20158
  __privateSet(this, _isTyping, true);
20349
- __privateMethod(this, _resetTypingTimer, resetTypingTimer_fn).call(this);
20159
+ __privateMethod(this, _TextFieldState_instances, resetTypingTimer_fn).call(this);
20350
20160
  this.element.scheduler.addPostFrameCallbacks(() => {
20351
- __privateMethod(this, _setSelection, setSelection_fn).call(this, ...__privateGet(this, _nativeInput).getSelection());
20352
- __privateMethod(this, _render, render_fn).call(this);
20161
+ __privateMethod(this, _TextFieldState_instances, setSelection_fn).call(this, ...__privateGet(this, _nativeInput).getSelection());
20162
+ __privateMethod(this, _TextFieldState_instances, render_fn).call(this);
20353
20163
  });
20354
20164
  };
20355
20165
  _syncBlur = new WeakMap();
20356
- _render = new WeakSet();
20357
20166
  render_fn = function() {
20358
20167
  this.setState();
20359
20168
  };
20360
- _calculateLineInfo = new WeakSet();
20361
20169
  calculateLineInfo_fn = function() {
20362
20170
  const lines = __privateGet(this, _textPainter2).paragraph.lines;
20363
20171
  let accumulatedChars = 0;
@@ -20374,7 +20182,6 @@ calculateLineInfo_fn = function() {
20374
20182
  return lineInfo;
20375
20183
  });
20376
20184
  };
20377
- _findLineIndexForPosition = new WeakSet();
20378
20185
  findLineIndexForPosition_fn = function(position) {
20379
20186
  let low = 0;
20380
20187
  let high = __privateGet(this, _lineInfo).length - 1;
@@ -20392,10 +20199,9 @@ findLineIndexForPosition_fn = function(position) {
20392
20199
  }
20393
20200
  return __privateGet(this, _lineInfo).length - 1;
20394
20201
  };
20395
- _calculateCurrentCharRect = new WeakSet();
20396
20202
  calculateCurrentCharRect_fn = function(caretLocation) {
20397
20203
  var _a, _b, _c, _d, _e;
20398
- const lineIndex = __privateMethod(this, _findLineIndexForPosition, findLineIndexForPosition_fn).call(this, caretLocation);
20204
+ const lineIndex = __privateMethod(this, _TextFieldState_instances, findLineIndexForPosition_fn).call(this, caretLocation);
20399
20205
  const line = __privateGet(this, _lineInfo)[lineIndex];
20400
20206
  const localCaretPosition = caretLocation - line.accumulatedChars;
20401
20207
  const lines = (_c = (_b = (_a = __privateGet(this, _textPainter2)) == null ? void 0 : _a.paragraph) == null ? void 0 : _b.lines) != null ? _c : [];
@@ -20433,11 +20239,10 @@ calculateCurrentCharRect_fn = function(caretLocation) {
20433
20239
  }
20434
20240
  return charUI;
20435
20241
  };
20436
- _calculateSelectionUI = new WeakSet();
20437
20242
  calculateSelectionUI_fn = function(start, end) {
20438
20243
  var _a, _b, _c, _d, _e, _f, _g, _h;
20439
- const startLineIndex = __privateMethod(this, _findLineIndexForPosition, findLineIndexForPosition_fn).call(this, start);
20440
- const endLineIndex = __privateMethod(this, _findLineIndexForPosition, findLineIndexForPosition_fn).call(this, end);
20244
+ const startLineIndex = __privateMethod(this, _TextFieldState_instances, findLineIndexForPosition_fn).call(this, start);
20245
+ const endLineIndex = __privateMethod(this, _TextFieldState_instances, findLineIndexForPosition_fn).call(this, end);
20441
20246
  const segments = [];
20442
20247
  const lines = (_c = (_b = (_a = __privateGet(this, _textPainter2)) == null ? void 0 : _a.paragraph) == null ? void 0 : _b.lines) != null ? _c : [];
20443
20248
  for (let i = startLineIndex; i <= endLineIndex; i++) {
@@ -20456,18 +20261,17 @@ calculateSelectionUI_fn = function(start, end) {
20456
20261
  }
20457
20262
  return segments;
20458
20263
  };
20459
- _setSelection = new WeakSet();
20460
20264
  setSelection_fn = function(start, end = start) {
20461
20265
  __privateSet(this, _selection, [start, end]);
20462
20266
  const caretLocation = start;
20463
- if (__privateGet(this, _hasSelection, hasSelection_get)) {
20464
- __privateSet(this, _selectionUI, __privateMethod(this, _calculateSelectionUI, calculateSelectionUI_fn).call(this, start, end));
20267
+ if (__privateGet(this, _TextFieldState_instances, hasSelection_get)) {
20268
+ __privateSet(this, _selectionUI, __privateMethod(this, _TextFieldState_instances, calculateSelectionUI_fn).call(this, start, end));
20465
20269
  __privateSet(this, _currentCharUI, null);
20466
20270
  } else {
20467
20271
  __privateSet(this, _selectionUI, null);
20468
- __privateSet(this, _currentCharUI, __privateMethod(this, _calculateCurrentCharRect, calculateCurrentCharRect_fn).call(this, caretLocation));
20272
+ __privateSet(this, _currentCharUI, __privateMethod(this, _TextFieldState_instances, calculateCurrentCharRect_fn).call(this, caretLocation));
20469
20273
  }
20470
- __privateMethod(this, _render, render_fn).call(this);
20274
+ __privateMethod(this, _TextFieldState_instances, render_fn).call(this);
20471
20275
  };
20472
20276
  _getCharIndexFromMouseEvent = new WeakMap();
20473
20277
  var Caret = class extends StatefulWidget_default {
@@ -20540,12 +20344,10 @@ var CaretState = class extends State {
20540
20344
  });
20541
20345
  }
20542
20346
  };
20543
- var _isComposing2, _element, _listeners, _createElement, createElement_fn, _setComposing, setComposing_fn, _disposed, _dispatch, dispatch_fn;
20347
+ var _isComposing2, _element, _listeners, _NativeInput_instances, createElement_fn, setComposing_fn, _disposed, dispatch_fn;
20544
20348
  var NativeInput = class {
20545
20349
  constructor() {
20546
- __privateAdd(this, _createElement);
20547
- __privateAdd(this, _setComposing);
20548
- __privateAdd(this, _dispatch);
20350
+ __privateAdd(this, _NativeInput_instances);
20549
20351
  __privateAdd(this, _isComposing2, false);
20550
20352
  __privateAdd(this, _element, null);
20551
20353
  __privateAdd(this, _listeners, {});
@@ -20580,7 +20382,7 @@ var NativeInput = class {
20580
20382
  assert(!__privateGet(this, _disposed), "invalid access. because native input is disposed");
20581
20383
  if (__privateGet(this, _element) == null) {
20582
20384
  if (browser) {
20583
- __privateSet(this, _element, __privateMethod(this, _createElement, createElement_fn).call(this));
20385
+ __privateSet(this, _element, __privateMethod(this, _NativeInput_instances, createElement_fn).call(this));
20584
20386
  document.body.appendChild(__privateGet(this, _element));
20585
20387
  } else {
20586
20388
  __privateSet(this, _element, {
@@ -20613,7 +20415,7 @@ var NativeInput = class {
20613
20415
  _isComposing2 = new WeakMap();
20614
20416
  _element = new WeakMap();
20615
20417
  _listeners = new WeakMap();
20616
- _createElement = new WeakSet();
20418
+ _NativeInput_instances = new WeakSet();
20617
20419
  createElement_fn = function() {
20618
20420
  const el = document.createElement("textarea");
20619
20421
  el.setAttribute(
@@ -20621,46 +20423,43 @@ createElement_fn = function() {
20621
20423
  "position: absolute; opacity: 0; height: 0; width: 0;"
20622
20424
  );
20623
20425
  el.addEventListener("input", (e) => {
20624
- __privateMethod(this, _dispatch, dispatch_fn).call(this, "input", { value: this.value });
20426
+ __privateMethod(this, _NativeInput_instances, dispatch_fn).call(this, "input", { value: this.value });
20625
20427
  if (e.isComposing && this.value[this.value.length - 1] === " ") {
20626
- __privateMethod(this, _setComposing, setComposing_fn).call(this, false);
20428
+ __privateMethod(this, _NativeInput_instances, setComposing_fn).call(this, false);
20627
20429
  return;
20628
20430
  }
20629
- __privateMethod(this, _setComposing, setComposing_fn).call(this, e.isComposing);
20431
+ __privateMethod(this, _NativeInput_instances, setComposing_fn).call(this, e.isComposing);
20630
20432
  });
20631
20433
  el.addEventListener("keydown", (e) => {
20632
20434
  if (e.key === "Enter" && !e.shiftKey) {
20633
20435
  e.preventDefault();
20634
- __privateMethod(this, _setComposing, setComposing_fn).call(this, false);
20436
+ __privateMethod(this, _NativeInput_instances, setComposing_fn).call(this, false);
20635
20437
  }
20636
- __privateMethod(this, _setComposing, setComposing_fn).call(this, e.isComposing);
20637
- __privateMethod(this, _dispatch, dispatch_fn).call(this, "keydown", {
20438
+ __privateMethod(this, _NativeInput_instances, setComposing_fn).call(this, e.isComposing);
20439
+ __privateMethod(this, _NativeInput_instances, dispatch_fn).call(this, "keydown", {
20638
20440
  key: e.key,
20639
20441
  ctrlKey: e.ctrlKey,
20640
20442
  shiftKey: e.shiftKey
20641
20443
  });
20642
20444
  });
20643
20445
  el.addEventListener("focus", () => {
20644
- __privateMethod(this, _dispatch, dispatch_fn).call(this, "focus", void 0);
20446
+ __privateMethod(this, _NativeInput_instances, dispatch_fn).call(this, "focus", void 0);
20645
20447
  });
20646
20448
  el.addEventListener("blur", () => {
20647
- __privateMethod(this, _dispatch, dispatch_fn).call(this, "blur", void 0);
20449
+ __privateMethod(this, _NativeInput_instances, dispatch_fn).call(this, "blur", void 0);
20648
20450
  });
20649
20451
  return el;
20650
20452
  };
20651
- _setComposing = new WeakSet();
20652
20453
  setComposing_fn = function(isComposing) {
20653
- if (__privateGet(this, _isComposing2) === isComposing)
20654
- return;
20454
+ if (__privateGet(this, _isComposing2) === isComposing) return;
20655
20455
  __privateSet(this, _isComposing2, isComposing);
20656
20456
  if (isComposing) {
20657
- __privateMethod(this, _dispatch, dispatch_fn).call(this, "compositionstart", void 0);
20457
+ __privateMethod(this, _NativeInput_instances, dispatch_fn).call(this, "compositionstart", void 0);
20658
20458
  } else {
20659
- __privateMethod(this, _dispatch, dispatch_fn).call(this, "compositionend", void 0);
20459
+ __privateMethod(this, _NativeInput_instances, dispatch_fn).call(this, "compositionend", void 0);
20660
20460
  }
20661
20461
  };
20662
20462
  _disposed = new WeakMap();
20663
- _dispatch = new WeakSet();
20664
20463
  dispatch_fn = function(type, event) {
20665
20464
  var _a;
20666
20465
  (_a = __privateGet(this, _listeners)[type]) == null ? void 0 : _a.forEach((listener) => listener(event));
@@ -20840,11 +20639,11 @@ var RenderImage = class extends SingleChildRenderObject_default {
20840
20639
  objectPosition
20841
20640
  }) {
20842
20641
  super({ isPainter: true });
20843
- __privateAdd(this, _src, void 0);
20844
- __privateAdd(this, _fit, void 0);
20845
- __privateAdd(this, _width, void 0);
20846
- __privateAdd(this, _height, void 0);
20847
- __privateAdd(this, _position, void 0);
20642
+ __privateAdd(this, _src);
20643
+ __privateAdd(this, _fit);
20644
+ __privateAdd(this, _width);
20645
+ __privateAdd(this, _height);
20646
+ __privateAdd(this, _position);
20848
20647
  __publicField(this, "image");
20849
20648
  __publicField(this, "imageLoaded", false);
20850
20649
  __publicField(this, "calculatedImageSize");
@@ -20858,8 +20657,7 @@ var RenderImage = class extends SingleChildRenderObject_default {
20858
20657
  this.image = new Image();
20859
20658
  this.image.onload = () => {
20860
20659
  this.imageLoaded = true;
20861
- if (!__privateGet(this, _mounted))
20862
- return;
20660
+ if (!__privateGet(this, _mounted)) return;
20863
20661
  this.markNeedsLayout();
20864
20662
  };
20865
20663
  this.image.src = src;
@@ -20869,8 +20667,7 @@ var RenderImage = class extends SingleChildRenderObject_default {
20869
20667
  return __privateGet(this, _src);
20870
20668
  }
20871
20669
  set src(value) {
20872
- if (__privateGet(this, _src) === value)
20873
- return;
20670
+ if (__privateGet(this, _src) === value) return;
20874
20671
  __privateSet(this, _src, value);
20875
20672
  if (this.image != null) {
20876
20673
  this.image.src = value;
@@ -20881,8 +20678,7 @@ var RenderImage = class extends SingleChildRenderObject_default {
20881
20678
  return __privateGet(this, _fit);
20882
20679
  }
20883
20680
  set fit(value) {
20884
- if (__privateGet(this, _fit) === value)
20885
- return;
20681
+ if (__privateGet(this, _fit) === value) return;
20886
20682
  __privateSet(this, _fit, value);
20887
20683
  this.markNeedsLayout();
20888
20684
  }
@@ -20890,8 +20686,7 @@ var RenderImage = class extends SingleChildRenderObject_default {
20890
20686
  return __privateGet(this, _width);
20891
20687
  }
20892
20688
  set width(value) {
20893
- if (__privateGet(this, _width) === value)
20894
- return;
20689
+ if (__privateGet(this, _width) === value) return;
20895
20690
  __privateSet(this, _width, value);
20896
20691
  this.markNeedsLayout();
20897
20692
  }
@@ -20899,8 +20694,7 @@ var RenderImage = class extends SingleChildRenderObject_default {
20899
20694
  return __privateGet(this, _height);
20900
20695
  }
20901
20696
  set height(value) {
20902
- if (__privateGet(this, _height) === value)
20903
- return;
20697
+ if (__privateGet(this, _height) === value) return;
20904
20698
  __privateSet(this, _height, value);
20905
20699
  this.markNeedsLayout();
20906
20700
  }
@@ -20908,19 +20702,16 @@ var RenderImage = class extends SingleChildRenderObject_default {
20908
20702
  return __privateGet(this, _position);
20909
20703
  }
20910
20704
  set position(value) {
20911
- if (__privateGet(this, _position) === value)
20912
- return;
20705
+ if (__privateGet(this, _position) === value) return;
20913
20706
  __privateSet(this, _position, value);
20914
20707
  this.markNeedsLayout();
20915
20708
  }
20916
20709
  getIntrinsicWidth() {
20917
- if (this.width != null)
20918
- return this.width;
20710
+ if (this.width != null) return this.width;
20919
20711
  return 0;
20920
20712
  }
20921
20713
  getIntrinsicHeight() {
20922
- if (this.height != null)
20923
- return this.height;
20714
+ if (this.height != null) return this.height;
20924
20715
  return 0;
20925
20716
  }
20926
20717
  preformLayout() {
@@ -20978,10 +20769,8 @@ var ImageCanvasPatiner = class extends CanvasPainter {
20978
20769
  calculatedImageSize: imageSize,
20979
20770
  position = "center"
20980
20771
  } = this.renderObject;
20981
- if (!image)
20982
- return;
20983
- if (!imageLoaded)
20984
- return;
20772
+ if (!image) return;
20773
+ if (!imageLoaded) return;
20985
20774
  assert(imageSize != null);
20986
20775
  const { sx, sy, sWidth, sHeight, dx, dy, dWidth, dHeight } = calculateImageRendering(
20987
20776
  { width: image.width, height: image.height },