@everymatrix/lottery-program-wof 1.24.0 → 1.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5197,9 +5197,10 @@
5197
5197
  RemainingTimes: `Remaining Times`,
5198
5198
  Retry: 'Network is a bit busy now, please click OK to re-spin',
5199
5199
  ShowNext: `The Wheel will be available on<br /> <strong>{startTime}</strong> <br />Please wait till it is open.`,
5200
- SpinFailed: `We are sorry that you don't have any Wheels available, please <strong>check T&C</strong> here to get a chance!`,
5201
5200
  DrawFailed: 'The prize assignment may be failed, please contact customer support for more details',
5202
5201
  Timeout: 'Network is a bit busy now, please try again later.',
5202
+ ErrorNetwork: 'You are offline, please check your network settings',
5203
+ ErrorJSON: 'Unexpected Data Response, please contact customer support',
5203
5204
  Congratulation: `Congratulations! You won a {prize}!`,
5204
5205
  OK: `OK`,
5205
5206
  Rewards: `Rewards`,
@@ -5297,7 +5298,7 @@
5297
5298
  res = JSON.parse(res);
5298
5299
  }
5299
5300
  catch (e) {
5300
- console.log(e);
5301
+ throw new Error(e.message);
5301
5302
  }
5302
5303
  return res;
5303
5304
  };
@@ -5332,7 +5333,7 @@
5332
5333
  const { Object: Object_1$2 } = globals;
5333
5334
  const file$6 = "src/private.message.svelte";
5334
5335
 
5335
- // (83:0) {#if isShown && isOptionsReady}
5336
+ // (89:0) {#if isShown && isOptionsReady}
5336
5337
  function create_if_block$5(ctx) {
5337
5338
  let div;
5338
5339
  let t0;
@@ -5340,14 +5341,16 @@
5340
5341
  let t2;
5341
5342
  let t3;
5342
5343
  let t4;
5344
+ let t5;
5343
5345
  let show_if = !['init-failed', 'show-next', 'NoNext'].includes(/*mode*/ ctx[5]);
5344
5346
  let div_style_value;
5345
- let if_block0 = (/*mode*/ ctx[5] === 'normal' || /*mode*/ ctx[5] === 'init-failed' || /*mode*/ ctx[5] === 'timeout') && create_if_block_7(ctx);
5346
- let if_block1 = /*mode*/ ctx[5] === 'show-next' && create_if_block_6(ctx);
5347
- let if_block2 = /*mode*/ ctx[5] === 'NoNext' && create_if_block_5(ctx);
5348
- let if_block3 = /*mode*/ ctx[5] === 'gift' && create_if_block_3$1(ctx);
5349
- let if_block4 = /*mode*/ ctx[5] === 'nogift' && create_if_block_2$1(ctx);
5350
- let if_block5 = show_if && create_if_block_1$4(ctx);
5347
+ let if_block0 = (/*mode*/ ctx[5] === 'normal' || /*mode*/ ctx[5] === 'init-failed' || /*mode*/ ctx[5] === 'timeout') && create_if_block_8(ctx);
5348
+ let if_block1 = /*mode*/ ctx[5] === 'show-next' && create_if_block_7(ctx);
5349
+ let if_block2 = /*mode*/ ctx[5] === 'NoNext' && create_if_block_6(ctx);
5350
+ let if_block3 = /*mode*/ ctx[5] === 'gift' && create_if_block_4(ctx);
5351
+ let if_block4 = /*mode*/ ctx[5] === 'nogift' && create_if_block_3$1(ctx);
5352
+ let if_block5 = /*errorCodeMap*/ ctx[13][/*modeValue*/ ctx[1]] && create_if_block_2$1(ctx);
5353
+ let if_block6 = show_if && create_if_block_1$4(ctx);
5351
5354
 
5352
5355
  const block = {
5353
5356
  c: function create() {
@@ -5363,6 +5366,8 @@
5363
5366
  if (if_block4) if_block4.c();
5364
5367
  t4 = space();
5365
5368
  if (if_block5) if_block5.c();
5369
+ t5 = space();
5370
+ if (if_block6) if_block6.c();
5366
5371
  attr_dev(div, "class", "MessagePanel");
5367
5372
 
5368
5373
  attr_dev(div, "style", div_style_value = [
@@ -5372,7 +5377,7 @@
5372
5377
  /*isShown*/ ctx[4] ? 'opacity: 1' : ''
5373
5378
  ].join(';'));
5374
5379
 
5375
- add_location(div, file$6, 83, 0, 2786);
5380
+ add_location(div, file$6, 89, 0, 2905);
5376
5381
  },
5377
5382
  m: function mount(target, anchor) {
5378
5383
  insert_dev(target, div, anchor);
@@ -5387,14 +5392,16 @@
5387
5392
  if (if_block4) if_block4.m(div, null);
5388
5393
  append_dev(div, t4);
5389
5394
  if (if_block5) if_block5.m(div, null);
5390
- /*div_binding*/ ctx[20](div);
5395
+ append_dev(div, t5);
5396
+ if (if_block6) if_block6.m(div, null);
5397
+ /*div_binding*/ ctx[21](div);
5391
5398
  },
5392
5399
  p: function update(ctx, dirty) {
5393
5400
  if (/*mode*/ ctx[5] === 'normal' || /*mode*/ ctx[5] === 'init-failed' || /*mode*/ ctx[5] === 'timeout') {
5394
5401
  if (if_block0) {
5395
5402
  if_block0.p(ctx, dirty);
5396
5403
  } else {
5397
- if_block0 = create_if_block_7(ctx);
5404
+ if_block0 = create_if_block_8(ctx);
5398
5405
  if_block0.c();
5399
5406
  if_block0.m(div, t0);
5400
5407
  }
@@ -5407,7 +5414,7 @@
5407
5414
  if (if_block1) {
5408
5415
  if_block1.p(ctx, dirty);
5409
5416
  } else {
5410
- if_block1 = create_if_block_6(ctx);
5417
+ if_block1 = create_if_block_7(ctx);
5411
5418
  if_block1.c();
5412
5419
  if_block1.m(div, t1);
5413
5420
  }
@@ -5420,7 +5427,7 @@
5420
5427
  if (if_block2) {
5421
5428
  if_block2.p(ctx, dirty);
5422
5429
  } else {
5423
- if_block2 = create_if_block_5(ctx);
5430
+ if_block2 = create_if_block_6(ctx);
5424
5431
  if_block2.c();
5425
5432
  if_block2.m(div, t2);
5426
5433
  }
@@ -5433,7 +5440,7 @@
5433
5440
  if (if_block3) {
5434
5441
  if_block3.p(ctx, dirty);
5435
5442
  } else {
5436
- if_block3 = create_if_block_3$1(ctx);
5443
+ if_block3 = create_if_block_4(ctx);
5437
5444
  if_block3.c();
5438
5445
  if_block3.m(div, t3);
5439
5446
  }
@@ -5446,7 +5453,7 @@
5446
5453
  if (if_block4) {
5447
5454
  if_block4.p(ctx, dirty);
5448
5455
  } else {
5449
- if_block4 = create_if_block_2$1(ctx);
5456
+ if_block4 = create_if_block_3$1(ctx);
5450
5457
  if_block4.c();
5451
5458
  if_block4.m(div, t4);
5452
5459
  }
@@ -5455,21 +5462,34 @@
5455
5462
  if_block4 = null;
5456
5463
  }
5457
5464
 
5458
- if (dirty & /*mode*/ 32) show_if = !['init-failed', 'show-next', 'NoNext'].includes(/*mode*/ ctx[5]);
5459
-
5460
- if (show_if) {
5465
+ if (/*errorCodeMap*/ ctx[13][/*modeValue*/ ctx[1]]) {
5461
5466
  if (if_block5) {
5462
5467
  if_block5.p(ctx, dirty);
5463
5468
  } else {
5464
- if_block5 = create_if_block_1$4(ctx);
5469
+ if_block5 = create_if_block_2$1(ctx);
5465
5470
  if_block5.c();
5466
- if_block5.m(div, null);
5471
+ if_block5.m(div, t5);
5467
5472
  }
5468
5473
  } else if (if_block5) {
5469
5474
  if_block5.d(1);
5470
5475
  if_block5 = null;
5471
5476
  }
5472
5477
 
5478
+ if (dirty & /*mode*/ 32) show_if = !['init-failed', 'show-next', 'NoNext'].includes(/*mode*/ ctx[5]);
5479
+
5480
+ if (show_if) {
5481
+ if (if_block6) {
5482
+ if_block6.p(ctx, dirty);
5483
+ } else {
5484
+ if_block6 = create_if_block_1$4(ctx);
5485
+ if_block6.c();
5486
+ if_block6.m(div, null);
5487
+ }
5488
+ } else if (if_block6) {
5489
+ if_block6.d(1);
5490
+ if_block6 = null;
5491
+ }
5492
+
5473
5493
  if (dirty & /*top, left, width, isShown*/ 1560 && div_style_value !== (div_style_value = [
5474
5494
  `top: ${/*top*/ ctx[9]}px`,
5475
5495
  `left: ${/*left*/ ctx[10]}px`,
@@ -5487,7 +5507,8 @@
5487
5507
  if (if_block3) if_block3.d();
5488
5508
  if (if_block4) if_block4.d();
5489
5509
  if (if_block5) if_block5.d();
5490
- /*div_binding*/ ctx[20](null);
5510
+ if (if_block6) if_block6.d();
5511
+ /*div_binding*/ ctx[21](null);
5491
5512
  }
5492
5513
  };
5493
5514
 
@@ -5495,15 +5516,15 @@
5495
5516
  block,
5496
5517
  id: create_if_block$5.name,
5497
5518
  type: "if",
5498
- source: "(83:0) {#if isShown && isOptionsReady}",
5519
+ source: "(89:0) {#if isShown && isOptionsReady}",
5499
5520
  ctx
5500
5521
  });
5501
5522
 
5502
5523
  return block;
5503
5524
  }
5504
5525
 
5505
- // (95:2) {#if mode === 'normal' || mode === 'init-failed' || mode === 'timeout'}
5506
- function create_if_block_7(ctx) {
5526
+ // (101:2) {#if mode === 'normal' || mode === 'init-failed' || mode === 'timeout'}
5527
+ function create_if_block_8(ctx) {
5507
5528
  let p;
5508
5529
  let t_value = /*$_*/ ctx[11](`wof.${/*modeValue*/ ctx[1]}`) + "";
5509
5530
  let t;
@@ -5512,7 +5533,7 @@
5512
5533
  c: function create() {
5513
5534
  p = element("p");
5514
5535
  t = text(t_value);
5515
- add_location(p, file$6, 95, 2, 3051);
5536
+ add_location(p, file$6, 101, 2, 3170);
5516
5537
  },
5517
5538
  m: function mount(target, anchor) {
5518
5539
  insert_dev(target, p, anchor);
@@ -5528,17 +5549,17 @@
5528
5549
 
5529
5550
  dispatch_dev("SvelteRegisterBlock", {
5530
5551
  block,
5531
- id: create_if_block_7.name,
5552
+ id: create_if_block_8.name,
5532
5553
  type: "if",
5533
- source: "(95:2) {#if mode === 'normal' || mode === 'init-failed' || mode === 'timeout'}",
5554
+ source: "(101:2) {#if mode === 'normal' || mode === 'init-failed' || mode === 'timeout'}",
5534
5555
  ctx
5535
5556
  });
5536
5557
 
5537
5558
  return block;
5538
5559
  }
5539
5560
 
5540
- // (99:2) {#if mode === 'show-next'}
5541
- function create_if_block_6(ctx) {
5561
+ // (105:2) {#if mode === 'show-next'}
5562
+ function create_if_block_7(ctx) {
5542
5563
  let p;
5543
5564
 
5544
5565
  let raw_value = /*$_*/ ctx[11]('wof.ShowNext', {
@@ -5548,7 +5569,7 @@
5548
5569
  const block = {
5549
5570
  c: function create() {
5550
5571
  p = element("p");
5551
- add_location(p, file$6, 99, 2, 3123);
5572
+ add_location(p, file$6, 105, 2, 3242);
5552
5573
  },
5553
5574
  m: function mount(target, anchor) {
5554
5575
  insert_dev(target, p, anchor);
@@ -5565,51 +5586,51 @@
5565
5586
 
5566
5587
  dispatch_dev("SvelteRegisterBlock", {
5567
5588
  block,
5568
- id: create_if_block_6.name,
5589
+ id: create_if_block_7.name,
5569
5590
  type: "if",
5570
- source: "(99:2) {#if mode === 'show-next'}",
5591
+ source: "(105:2) {#if mode === 'show-next'}",
5571
5592
  ctx
5572
5593
  });
5573
5594
 
5574
5595
  return block;
5575
5596
  }
5576
5597
 
5577
- // (103:2) {#if mode === 'NoNext'}
5578
- function create_if_block_5(ctx) {
5598
+ // (109:2) {#if mode === 'NoNext'}
5599
+ function create_if_block_6(ctx) {
5579
5600
  let p;
5580
5601
  let raw_value = /*$_*/ ctx[11](`wof.NoNext`) + "";
5581
5602
 
5582
5603
  const block = {
5583
5604
  c: function create() {
5584
5605
  p = element("p");
5585
- add_location(p, file$6, 103, 2, 3219);
5606
+ add_location(p, file$6, 109, 2, 3338);
5586
5607
  },
5587
5608
  m: function mount(target, anchor) {
5588
5609
  insert_dev(target, p, anchor);
5589
5610
  p.innerHTML = raw_value;
5590
- /*p_binding*/ ctx[19](p);
5611
+ /*p_binding*/ ctx[20](p);
5591
5612
  },
5592
5613
  p: function update(ctx, dirty) {
5593
5614
  if (dirty & /*$_*/ 2048 && raw_value !== (raw_value = /*$_*/ ctx[11](`wof.NoNext`) + "")) p.innerHTML = raw_value; },
5594
5615
  d: function destroy(detaching) {
5595
5616
  if (detaching) detach_dev(p);
5596
- /*p_binding*/ ctx[19](null);
5617
+ /*p_binding*/ ctx[20](null);
5597
5618
  }
5598
5619
  };
5599
5620
 
5600
5621
  dispatch_dev("SvelteRegisterBlock", {
5601
5622
  block,
5602
- id: create_if_block_5.name,
5623
+ id: create_if_block_6.name,
5603
5624
  type: "if",
5604
- source: "(103:2) {#if mode === 'NoNext'}",
5625
+ source: "(109:2) {#if mode === 'NoNext'}",
5605
5626
  ctx
5606
5627
  });
5607
5628
 
5608
5629
  return block;
5609
5630
  }
5610
5631
 
5611
- // (107:2) {#if mode === 'gift'}
5612
- function create_if_block_3$1(ctx) {
5632
+ // (113:2) {#if mode === 'gift'}
5633
+ function create_if_block_4(ctx) {
5613
5634
  let p0;
5614
5635
  let img;
5615
5636
  let img_src_value;
@@ -5618,7 +5639,7 @@
5618
5639
  let p1;
5619
5640
 
5620
5641
  function select_block_type(ctx, dirty) {
5621
- if (/*modeValue*/ ctx[1].prizeText) return create_if_block_4;
5642
+ if (/*modeValue*/ ctx[1].prizeText) return create_if_block_5;
5622
5643
  return create_else_block$2;
5623
5644
  }
5624
5645
 
@@ -5636,9 +5657,9 @@
5636
5657
  if (!src_url_equal(img.src, img_src_value = /*prizeSrc*/ ctx[7])) attr_dev(img, "src", img_src_value);
5637
5658
  attr_dev(img, "alt", "");
5638
5659
  attr_dev(img, "class", "GiftImage");
5639
- add_location(img, file$6, 108, 4, 3315);
5640
- add_location(p0, file$6, 107, 2, 3307);
5641
- add_location(p1, file$6, 115, 2, 3533);
5660
+ add_location(img, file$6, 114, 4, 3434);
5661
+ add_location(p0, file$6, 113, 2, 3426);
5662
+ add_location(p1, file$6, 121, 2, 3652);
5642
5663
  },
5643
5664
  m: function mount(target, anchor) {
5644
5665
  insert_dev(target, p0, anchor);
@@ -5676,16 +5697,16 @@
5676
5697
 
5677
5698
  dispatch_dev("SvelteRegisterBlock", {
5678
5699
  block,
5679
- id: create_if_block_3$1.name,
5700
+ id: create_if_block_4.name,
5680
5701
  type: "if",
5681
- source: "(107:2) {#if mode === 'gift'}",
5702
+ source: "(113:2) {#if mode === 'gift'}",
5682
5703
  ctx
5683
5704
  });
5684
5705
 
5685
5706
  return block;
5686
5707
  }
5687
5708
 
5688
- // (113:4) {:else}
5709
+ // (119:4) {:else}
5689
5710
  function create_else_block$2(ctx) {
5690
5711
  let html_tag;
5691
5712
 
@@ -5720,15 +5741,15 @@
5720
5741
  block,
5721
5742
  id: create_else_block$2.name,
5722
5743
  type: "else",
5723
- source: "(113:4) {:else}",
5744
+ source: "(119:4) {:else}",
5724
5745
  ctx
5725
5746
  });
5726
5747
 
5727
5748
  return block;
5728
5749
  }
5729
5750
 
5730
- // (111:4) {#if modeValue.prizeText}
5731
- function create_if_block_4(ctx) {
5751
+ // (117:4) {#if modeValue.prizeText}
5752
+ function create_if_block_5(ctx) {
5732
5753
  let html_tag;
5733
5754
  let raw_value = /*modeValue*/ ctx[1].prizeText + "";
5734
5755
  let html_anchor;
@@ -5754,17 +5775,17 @@
5754
5775
 
5755
5776
  dispatch_dev("SvelteRegisterBlock", {
5756
5777
  block,
5757
- id: create_if_block_4.name,
5778
+ id: create_if_block_5.name,
5758
5779
  type: "if",
5759
- source: "(111:4) {#if modeValue.prizeText}",
5780
+ source: "(117:4) {#if modeValue.prizeText}",
5760
5781
  ctx
5761
5782
  });
5762
5783
 
5763
5784
  return block;
5764
5785
  }
5765
5786
 
5766
- // (121:2) {#if mode === 'nogift'}
5767
- function create_if_block_2$1(ctx) {
5787
+ // (127:2) {#if mode === 'nogift'}
5788
+ function create_if_block_3$1(ctx) {
5768
5789
  let p0;
5769
5790
  let img;
5770
5791
  let img_src_value;
@@ -5781,9 +5802,9 @@
5781
5802
  if (!src_url_equal(img.src, img_src_value = /*modeValue*/ ctx[1].image)) attr_dev(img, "src", img_src_value);
5782
5803
  attr_dev(img, "alt", "");
5783
5804
  attr_dev(img, "class", "GiftImage");
5784
- add_location(img, file$6, 122, 4, 3590);
5785
- add_location(p0, file$6, 121, 2, 3582);
5786
- add_location(p1, file$6, 124, 2, 3652);
5805
+ add_location(img, file$6, 128, 4, 3709);
5806
+ add_location(p0, file$6, 127, 2, 3701);
5807
+ add_location(p1, file$6, 130, 2, 3771);
5787
5808
  },
5788
5809
  m: function mount(target, anchor) {
5789
5810
  insert_dev(target, p0, anchor);
@@ -5805,18 +5826,57 @@
5805
5826
  }
5806
5827
  };
5807
5828
 
5829
+ dispatch_dev("SvelteRegisterBlock", {
5830
+ block,
5831
+ id: create_if_block_3$1.name,
5832
+ type: "if",
5833
+ source: "(127:2) {#if mode === 'nogift'}",
5834
+ ctx
5835
+ });
5836
+
5837
+ return block;
5838
+ }
5839
+
5840
+ // (135:2) {#if errorCodeMap[modeValue]}
5841
+ function create_if_block_2$1(ctx) {
5842
+ let p;
5843
+ let t0;
5844
+ let t1_value = /*errorCodeMap*/ ctx[13][/*modeValue*/ ctx[1]] + "";
5845
+ let t1;
5846
+
5847
+ const block = {
5848
+ c: function create() {
5849
+ p = element("p");
5850
+ t0 = text("Errorcode: ");
5851
+ t1 = text(t1_value);
5852
+ attr_dev(p, "class", "ErrorCode");
5853
+ add_location(p, file$6, 135, 2, 3847);
5854
+ },
5855
+ m: function mount(target, anchor) {
5856
+ insert_dev(target, p, anchor);
5857
+ append_dev(p, t0);
5858
+ append_dev(p, t1);
5859
+ },
5860
+ p: function update(ctx, dirty) {
5861
+ if (dirty & /*modeValue*/ 2 && t1_value !== (t1_value = /*errorCodeMap*/ ctx[13][/*modeValue*/ ctx[1]] + "")) set_data_dev(t1, t1_value);
5862
+ },
5863
+ d: function destroy(detaching) {
5864
+ if (detaching) detach_dev(p);
5865
+ }
5866
+ };
5867
+
5808
5868
  dispatch_dev("SvelteRegisterBlock", {
5809
5869
  block,
5810
5870
  id: create_if_block_2$1.name,
5811
5871
  type: "if",
5812
- source: "(121:2) {#if mode === 'nogift'}",
5872
+ source: "(135:2) {#if errorCodeMap[modeValue]}",
5813
5873
  ctx
5814
5874
  });
5815
5875
 
5816
5876
  return block;
5817
5877
  }
5818
5878
 
5819
- // (128:2) {#if !['init-failed', 'show-next', 'NoNext'].includes(mode)}
5879
+ // (141:2) {#if !['init-failed', 'show-next', 'NoNext'].includes(mode)}
5820
5880
  function create_if_block_1$4(ctx) {
5821
5881
  let div;
5822
5882
  let button;
@@ -5831,8 +5891,8 @@
5831
5891
  button = element("button");
5832
5892
  t = text(t_value);
5833
5893
  attr_dev(button, "class", "MessagePanelButton");
5834
- add_location(button, file$6, 129, 4, 3766);
5835
- add_location(div, file$6, 128, 2, 3756);
5894
+ add_location(button, file$6, 142, 4, 4001);
5895
+ add_location(div, file$6, 141, 2, 3991);
5836
5896
  },
5837
5897
  m: function mount(target, anchor) {
5838
5898
  insert_dev(target, div, anchor);
@@ -5858,7 +5918,7 @@
5858
5918
  block,
5859
5919
  id: create_if_block_1$4.name,
5860
5920
  type: "if",
5861
- source: "(128:2) {#if !['init-failed', 'show-next', 'NoNext'].includes(mode)}",
5921
+ source: "(141:2) {#if !['init-failed', 'show-next', 'NoNext'].includes(mode)}",
5862
5922
  ctx
5863
5923
  });
5864
5924
 
@@ -5983,11 +6043,18 @@
5983
6043
  ].join(' ');
5984
6044
  };
5985
6045
 
6046
+ const errorCodeMap = {
6047
+ ErrorNetwork: 'N0001',
6048
+ ErrorJSON: 'N0002',
6049
+ Retry: 'N0003',
6050
+ Timeout: 'N0004'
6051
+ };
6052
+
5986
6053
  const setObserver = () => {
5987
6054
  const resizeObserver = new ResizeObserver(entries => {
5988
6055
  entries.map(entry => {
5989
6056
  if (entry.target === rootContainer) {
5990
- $$invalidate(18, topOffset = entry.target.clientHeight / 2);
6057
+ $$invalidate(19, topOffset = entry.target.clientHeight / 2);
5991
6058
  }
5992
6059
  });
5993
6060
  });
@@ -6023,11 +6090,11 @@
6023
6090
  }
6024
6091
 
6025
6092
  $$self.$$set = $$props => {
6026
- if ('r' in $$props) $$invalidate(13, r = $$props.r);
6027
- if ('size' in $$props) $$invalidate(14, size = $$props.size);
6028
- if ('id' in $$props) $$invalidate(15, id = $$props.id);
6029
- if ('clientstyling' in $$props) $$invalidate(16, clientstyling = $$props.clientstyling);
6030
- if ('giftimagesrc' in $$props) $$invalidate(17, giftimagesrc = $$props.giftimagesrc);
6093
+ if ('r' in $$props) $$invalidate(14, r = $$props.r);
6094
+ if ('size' in $$props) $$invalidate(15, size = $$props.size);
6095
+ if ('id' in $$props) $$invalidate(16, id = $$props.id);
6096
+ if ('clientstyling' in $$props) $$invalidate(17, clientstyling = $$props.clientstyling);
6097
+ if ('giftimagesrc' in $$props) $$invalidate(18, giftimagesrc = $$props.giftimagesrc);
6031
6098
  };
6032
6099
 
6033
6100
  $$self.$capture_state = () => ({
@@ -6050,6 +6117,7 @@
6050
6117
  _postMessageScoped,
6051
6118
  eventButton,
6052
6119
  getTimeString,
6120
+ errorCodeMap,
6053
6121
  setObserver,
6054
6122
  handlerTC,
6055
6123
  holderTC,
@@ -6063,13 +6131,13 @@
6063
6131
  });
6064
6132
 
6065
6133
  $$self.$inject_state = $$props => {
6066
- if ('r' in $$props) $$invalidate(13, r = $$props.r);
6067
- if ('size' in $$props) $$invalidate(14, size = $$props.size);
6068
- if ('id' in $$props) $$invalidate(15, id = $$props.id);
6069
- if ('clientstyling' in $$props) $$invalidate(16, clientstyling = $$props.clientstyling);
6070
- if ('giftimagesrc' in $$props) $$invalidate(17, giftimagesrc = $$props.giftimagesrc);
6134
+ if ('r' in $$props) $$invalidate(14, r = $$props.r);
6135
+ if ('size' in $$props) $$invalidate(15, size = $$props.size);
6136
+ if ('id' in $$props) $$invalidate(16, id = $$props.id);
6137
+ if ('clientstyling' in $$props) $$invalidate(17, clientstyling = $$props.clientstyling);
6138
+ if ('giftimagesrc' in $$props) $$invalidate(18, giftimagesrc = $$props.giftimagesrc);
6071
6139
  if ('rootContainer' in $$props) $$invalidate(0, rootContainer = $$props.rootContainer);
6072
- if ('topOffset' in $$props) $$invalidate(18, topOffset = $$props.topOffset);
6140
+ if ('topOffset' in $$props) $$invalidate(19, topOffset = $$props.topOffset);
6073
6141
  if ('isShown' in $$props) $$invalidate(4, isShown = $$props.isShown);
6074
6142
  if ('mode' in $$props) $$invalidate(5, mode = $$props.mode);
6075
6143
  if ('modeValue' in $$props) $$invalidate(1, modeValue = $$props.modeValue);
@@ -6087,7 +6155,7 @@
6087
6155
  }
6088
6156
 
6089
6157
  $$self.$$.update = () => {
6090
- if ($$self.$$.dirty & /*clientstyling, rootContainer*/ 65537) {
6158
+ if ($$self.$$.dirty & /*clientstyling, rootContainer*/ 131073) {
6091
6159
  clientstyling && rootContainer && setClientStyling(rootContainer, clientstyling);
6092
6160
  }
6093
6161
 
@@ -6095,15 +6163,15 @@
6095
6163
  rootContainer && setObserver();
6096
6164
  }
6097
6165
 
6098
- if ($$self.$$.dirty & /*r*/ 8192) {
6166
+ if ($$self.$$.dirty & /*r*/ 16384) {
6099
6167
  $$invalidate(3, width = r * 2);
6100
6168
  }
6101
6169
 
6102
- if ($$self.$$.dirty & /*size, width*/ 16392) {
6170
+ if ($$self.$$.dirty & /*size, width*/ 32776) {
6103
6171
  $$invalidate(10, left = size / 2 - width / 2);
6104
6172
  }
6105
6173
 
6106
- if ($$self.$$.dirty & /*size, topOffset*/ 278528) {
6174
+ if ($$self.$$.dirty & /*size, topOffset*/ 557056) {
6107
6175
  $$invalidate(9, top = size / 2 - topOffset);
6108
6176
  }
6109
6177
 
@@ -6115,7 +6183,7 @@
6115
6183
  : modeValue.startTime));
6116
6184
  }
6117
6185
 
6118
- if ($$self.$$.dirty & /*modeValue, giftimagesrc*/ 131074) {
6186
+ if ($$self.$$.dirty & /*modeValue, giftimagesrc*/ 262146) {
6119
6187
  $$invalidate(7, prizeSrc = (modeValue === null || modeValue === void 0
6120
6188
  ? void 0
6121
6189
  : modeValue.prizeSrc) || giftimagesrc || img$m);
@@ -6140,6 +6208,7 @@
6140
6208
  left,
6141
6209
  $_,
6142
6210
  eventButton,
6211
+ errorCodeMap,
6143
6212
  r,
6144
6213
  size,
6145
6214
  id,
@@ -6155,7 +6224,7 @@
6155
6224
  constructor(options) {
6156
6225
  super();
6157
6226
  const style = document.createElement('style');
6158
- style.textContent = `:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";position:absolute;width:100%}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GiftImage{max-width:80%;height:100px}.MessagePanel{position:absolute;background-color:#FFFFFF;color:#000000;padding:15px 30px;border-radius:8px;text-align:center;font-size:16px;opacity:0.3;box-shadow:0 0 1px #a1a1a1;transition:margin-top opacity 0.3s ease-out}.MessagePanelButton{padding:4px 24px;margin-top:40px;font-size:16px;line-height:24px;color:#FFFFFF;background:#FF0000;border-radius:5px;font-weight:700;border:0;box-shadow:0 0 3px #ff0000;cursor:pointer}`;
6227
+ style.textContent = `:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";position:absolute;width:100%}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GiftImage{max-width:80%;height:100px}.MessagePanel{position:absolute;background-color:#FFFFFF;color:#000000;padding:15px 30px;border-radius:8px;text-align:center;font-size:16px;opacity:0.3;box-shadow:0 0 1px #a1a1a1;transition:margin-top opacity 0.3s ease-out}.MessagePanelButton{padding:4px 24px;margin-top:40px;font-size:16px;line-height:24px;color:#FFFFFF;background:#FF0000;border-radius:5px;font-weight:700;border:0;box-shadow:0 0 3px #ff0000;cursor:pointer}.ErrorCode{color:#b50000;margin-top:10px;font-size:14px;font-weight:500}`;
6159
6228
  this.shadowRoot.appendChild(style);
6160
6229
 
6161
6230
  init(
@@ -6169,11 +6238,11 @@
6169
6238
  create_fragment$6,
6170
6239
  safe_not_equal,
6171
6240
  {
6172
- r: 13,
6173
- size: 14,
6174
- id: 15,
6175
- clientstyling: 16,
6176
- giftimagesrc: 17
6241
+ r: 14,
6242
+ size: 15,
6243
+ id: 16,
6244
+ clientstyling: 17,
6245
+ giftimagesrc: 18
6177
6246
  },
6178
6247
  null
6179
6248
  );
@@ -6195,7 +6264,7 @@
6195
6264
  }
6196
6265
 
6197
6266
  get r() {
6198
- return this.$$.ctx[13];
6267
+ return this.$$.ctx[14];
6199
6268
  }
6200
6269
 
6201
6270
  set r(r) {
@@ -6204,7 +6273,7 @@
6204
6273
  }
6205
6274
 
6206
6275
  get size() {
6207
- return this.$$.ctx[14];
6276
+ return this.$$.ctx[15];
6208
6277
  }
6209
6278
 
6210
6279
  set size(size) {
@@ -6213,7 +6282,7 @@
6213
6282
  }
6214
6283
 
6215
6284
  get id() {
6216
- return this.$$.ctx[15];
6285
+ return this.$$.ctx[16];
6217
6286
  }
6218
6287
 
6219
6288
  set id(id) {
@@ -6222,7 +6291,7 @@
6222
6291
  }
6223
6292
 
6224
6293
  get clientstyling() {
6225
- return this.$$.ctx[16];
6294
+ return this.$$.ctx[17];
6226
6295
  }
6227
6296
 
6228
6297
  set clientstyling(clientstyling) {
@@ -6231,7 +6300,7 @@
6231
6300
  }
6232
6301
 
6233
6302
  get giftimagesrc() {
6234
- return this.$$.ctx[17];
6303
+ return this.$$.ctx[18];
6235
6304
  }
6236
6305
 
6237
6306
  set giftimagesrc(giftimagesrc) {
@@ -8334,10 +8403,10 @@
8334
8403
  return;
8335
8404
  }
8336
8405
  this.retryingTimes += 1;
8337
- let isFetchSucceeded = false;
8406
+ let isFetchCompleted = false;
8338
8407
  let isTimeouted = false;
8339
8408
  setTimeout(() => {
8340
- if (!isFetchSucceeded) {
8409
+ if (!isFetchCompleted) {
8341
8410
  isTimeouted = true;
8342
8411
  this.setMessage({
8343
8412
  mode: 'timeout',
@@ -8348,7 +8417,7 @@
8348
8417
  try {
8349
8418
  const { data, message, index: _index } = await this.fetcher(this.guid);
8350
8419
  this.drawnIndex = _index;
8351
- isFetchSucceeded = true;
8420
+ isFetchCompleted = true;
8352
8421
  if (!data.success)
8353
8422
  throw new Error();
8354
8423
  switch (data.item.state) {
@@ -8365,6 +8434,16 @@
8365
8434
  this.drawInit();
8366
8435
  }
8367
8436
  catch (e) {
8437
+ if (e.message === "Failed to fetch") {
8438
+ isFetchCompleted = true;
8439
+ this.handleHaltProcess(undefined, 'ErrorNetwork');
8440
+ return;
8441
+ }
8442
+ if (e.message.includes("is not valid JSON")) {
8443
+ isFetchCompleted = true;
8444
+ this.handleHaltProcess(undefined, 'ErrorJSON');
8445
+ return;
8446
+ }
8368
8447
  if (isTimeouted)
8369
8448
  return;
8370
8449
  this.drawer();
@@ -8670,7 +8749,7 @@
8670
8749
  attr_dev(foreignObject3, "height", 100);
8671
8750
  add_location(foreignObject3, file$2, 282, 6, 8378);
8672
8751
  attr_dev(g6, "class", "Center");
8673
- toggle_class(g6, "disabled", /*isSpinning*/ ctx[9]);
8752
+ toggle_class(g6, "spinning", /*isSpinning*/ ctx[9]);
8674
8753
  add_location(g6, file$2, 277, 4, 8259);
8675
8754
  add_location(g7, file$2, 291, 4, 8545);
8676
8755
  attr_dev(svg_1, "width", /*size*/ ctx[0]);
@@ -8921,7 +9000,7 @@
8921
9000
  }
8922
9001
 
8923
9002
  if (dirty[0] & /*isSpinning*/ 512) {
8924
- toggle_class(g6, "disabled", /*isSpinning*/ ctx[9]);
9003
+ toggle_class(g6, "spinning", /*isSpinning*/ ctx[9]);
8925
9004
  }
8926
9005
 
8927
9006
  if (dirty[0] & /*calc, options*/ 40) {
@@ -9956,7 +10035,7 @@
9956
10035
  constructor(options) {
9957
10036
  super();
9958
10037
  const style = document.createElement('style');
9959
- style.textContent = `:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LotteryProgramWof{background:var(--emfe-w-color-contrast, #07072A);display:flex;align-items:center;flex-direction:column;padding:20px 0}svg{transition:opacity 0.3s}.FortuneContainer{width:100%;display:flex;align-items:center;flex-direction:column}.Center{cursor:pointer;transition:filter;transition-duration:1s}.Center.disabled{filter:grayscale(80%)}.Center .CenterCircle{fill:#3CE4BB;stroke:rgb(150, 54, 88);stroke-width:2px;cursor:pointer;transition:fill;transition-duration:1s}.Center .CenterText{fill:#FFFFFF}.PointerPartition{opacity:0.3;fill:lightgoldenrodyellow;stroke:red;stroke-width:6px;stroke-dasharray:12}.Current{color:#FFFFFF}.PartitionText{color:#FFFFFF;font-style:normal;font-weight:700;text-anchor:end;text-shadow:0px 3px #000;dominant-baseline:central}.PartitionsShadow{background-blend-mode:multiply;mix-blend-mode:multiply}.PartitionTextEntityContainer{height:100%;display:flex;align-items:center}.PartitionTextEntity{width:100%}.PartitionTextEntity.Anticlockwise{text-align:end}.theme1 foreignObject.Bottom,.theme4 foreignObject.Bottom,.theme5 foreignObject.Bottom{background-image:var(--img-theme1-bg3), var(--img-theme-BgBlackRing), var(--img-theme-BgHalo);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 7px), calc(var(--radius) * 2px + var(--ratio) * 37px), calc(var(--radius) * 2px + var(--ratio) * 130px)}.theme2 foreignObject.Bottom,.theme6 foreignObject.Bottom{background-image:var(--img-theme2-bg3), var(--img-theme-BgHalo), var(--img-theme-BgBlackRing);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 8px), calc(var(--radius) * 2px + var(--ratio) * 123px), calc(var(--radius) * 2px + var(--ratio) * 37px)}.theme3 foreignObject.Bottom{background-image:var(--img-theme3-bg2), var(--img-theme3-bg1);background-position:center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 57px), calc(var(--radius) * 2px + var(--ratio) * 125px)}.theme7 foreignObject.Bottom{background-image:var(--img-theme7-bg3), var(--img-theme7-bg2), var(--img-theme7-bg1);background-position:center, center calc(var(--size) * 1px - var(--ratio) * 95px), calc(var(--ratio) * 42px) calc(var(--ratio) * -5px);background-size:calc(var(--radius) * 2px + 35px), calc(var(--radius) * 2px * 0.6), calc(var(--radius) * 2.7px)}.theme1 foreignObject.Middle,.theme4 foreignObject.Middle{background-image:var(--img-theme-center1);background-position:center}.theme2 foreignObject.Middle{background-image:var(--img-theme2-center), var(--img-theme2-arrow);background-position:center, center 60px}.theme3 foreignObject.Middle{background-image:var(--img-theme3-center), var(--img-theme3-arrow);background-position:center, center 39px}.theme5 foreignObject.Middle,.theme6 foreignObject.Middle{background-image:var(--img-theme-center2);background-position:center}.theme7 foreignObject.Middle{background-image:var(--img-theme7-center), var(--img-theme7-arrow);background-position:center, center 36px}.theme7 foreignObject.Top{background-image:var(--img-theme7-light);background-position:294px 135px}.theme1 foreignObject.Top,.theme2 foreignObject.Top,.theme3 foreignObject.Top,.theme4 foreignObject.Top,.theme5 foreignObject.Top,.theme6 foreignObject.Top{background-image:var(--img-theme-shadow);background-position:center;mix-blend-mode:multiply;background-size:calc(var(--radius) * 2px)}.theme2 foreignObject.Partition1{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc(var(--index) * 360deg / var(--length)))}.theme2 foreignObject.Partition2{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc((var(--index) + 0.5) * 360deg / var(--length)))}foreignObject.PointerArea{background-image:var(--img-theme-pointer-area);background-position:center -3px;mix-blend-mode:screen;background-size:51%}foreignObject.Partition1,foreignObject.Partition2{transform-origin:center}.PartitionsCustomable1,.PartitionsCustomable2{visibility:hidden}.PartitionsCustomable1.active,.PartitionsCustomable2.active{visibility:visible}foreignObject.Customable{overflow:visible;background-repeat:no-repeat}.PartitionBackground{background-size:calc(var(--radius) * 2 / var(--size) * 100%) calc(var(--radius) * 2 / var(--size) * 100%);background-position:center}.theme1 .PartitionBackground:nth-child(4n+1),.theme2 .PartitionBackground:nth-child(4n+1){background-image:radial-gradient(#009C9C 0%, #002634 100%)}.theme1 .PartitionBackground:nth-child(4n+2),.theme2 .PartitionBackground:nth-child(4n+2){background-image:radial-gradient(#AA00BF 0%, #3B0031 100%)}.theme1 .PartitionBackground:nth-child(4n+3),.theme2 .PartitionBackground:nth-child(4n+3){background-image:radial-gradient(#0068CD 0%, #150D42 100%)}.theme1 .PartitionBackground:nth-child(4n+4),.theme2 .PartitionBackground:nth-child(4n+4){background-image:radial-gradient(#DA005B 0%, #400021 100%)}.theme3 .PartitionBackground:nth-child(4n+1){background-image:radial-gradient(#066 0%, #007F76 13%, #00B59B 42%, #00DDB5 67.01%, #00F6C6 88.01%, #0FC 100.01%)}.theme3 .PartitionBackground:nth-child(4n+2){background-image:radial-gradient(#580065 22.67%, #D453FF 91.3%)}.theme3 .PartitionBackground:nth-child(4n+3){background-image:radial-gradient(#FFE767 -0.01%, #F28F00 100%)}.theme3 .PartitionBackground:nth-child(4n+4){background-image:radial-gradient(#900A42 22.59%, #960A44 23.94%, #B60B53 31.36%, #D00C5E 39.45%, #E40D67 48.22%, #F30D6E 57.66%, #FB0D71 69.8%, #FE0E73 90.03%)}.theme4 .PartitionBackground:nth-child(4n+1),.theme5 .PartitionBackground:nth-child(4n+1),.theme6 .PartitionBackground:nth-child(4n+1){background:radial-gradient(#3B0031 0%, #7E008E 100.01%)}.theme4 .PartitionBackground:nth-child(4n+2),.theme5 .PartitionBackground:nth-child(4n+2),.theme6 .PartitionBackground:nth-child(4n+2){background:radial-gradient(#5A005F 22.67%, #EA53FF 91.3%)}.theme4 .PartitionBackground:nth-child(4n+3),.theme5 .PartitionBackground:nth-child(4n+3),.theme6 .PartitionBackground:nth-child(4n+3){background:radial-gradient(#B300C3 -0.01%, #4D003B 100%)}.theme4 .PartitionBackground:nth-child(4n+4),.theme5 .PartitionBackground:nth-child(4n+4),.theme6 .PartitionBackground:nth-child(4n+4){background:radial-gradient(#59007B 22.59%, #B753FF 90.03%)}.theme7 .PartitionBackground:nth-child(2n+1){background:linear-gradient(90.23deg, #F6AD3F 16.59%, #AF8531 99.8%)}.theme7 .PartitionBackground:nth-child(2n+2){background:linear-gradient(90deg, #323234 -0.01%, #272425 54.99%, #231F1F 99.99%)}.PartitionBackground{transform-origin:center}.PartitionBackgroundStroke{fill:transparent;stroke-width:0.5px;stroke-dasharray:var(--radius) calc(6.2831853072 / var(--length) * var(--radius))}.theme1 .PartitionBackgroundStroke,.theme2 .PartitionBackgroundStroke{stroke:#FCD755}.PointerPartitionFrame{stroke:#FFDD64;fill:transparent;stroke-dasharray:var(--radius) calc(6.2831853072 / var(--length) * var(--radius));stroke-width:0px}.PointerPartitionFrame.active{stroke-width:3px}`;
10038
+ style.textContent = `:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.LotteryProgramWof{background:var(--emfe-w-color-contrast, #07072A);display:flex;align-items:center;flex-direction:column;padding:20px 0}svg{transition:opacity 0.3s}.FortuneContainer{width:100%;display:flex;align-items:center;flex-direction:column}.Center{cursor:pointer;transition:filter;transition-duration:1s}.Center.disabled{filter:grayscale(80%)}.Center .CenterCircle{fill:#3CE4BB;stroke:rgb(150, 54, 88);stroke-width:2px;cursor:pointer;transition:fill;transition-duration:1s}.Center .CenterText{fill:#FFFFFF}.PointerPartition{opacity:0.3;fill:lightgoldenrodyellow;stroke:red;stroke-width:6px;stroke-dasharray:12}.Current{color:#FFFFFF}.PartitionText{color:#FFFFFF;font-style:normal;font-weight:700;text-anchor:end;text-shadow:0px 3px #000;dominant-baseline:central}.PartitionsShadow{background-blend-mode:multiply;mix-blend-mode:multiply}.PartitionTextEntityContainer{height:100%;display:flex;align-items:center}.PartitionTextEntity{width:100%}.PartitionTextEntity.Anticlockwise{text-align:end}.theme1 foreignObject.Bottom,.theme4 foreignObject.Bottom,.theme5 foreignObject.Bottom{background-image:var(--img-theme1-bg3), var(--img-theme-BgBlackRing), var(--img-theme-BgHalo);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 7px), calc(var(--radius) * 2px + var(--ratio) * 37px), calc(var(--radius) * 2px + var(--ratio) * 130px)}.theme2 foreignObject.Bottom,.theme6 foreignObject.Bottom{background-image:var(--img-theme2-bg3), var(--img-theme-BgHalo), var(--img-theme-BgBlackRing);background-position:center, center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 8px), calc(var(--radius) * 2px + var(--ratio) * 123px), calc(var(--radius) * 2px + var(--ratio) * 37px)}.theme3 foreignObject.Bottom{background-image:var(--img-theme3-bg2), var(--img-theme3-bg1);background-position:center, center;background-size:calc(var(--radius) * 2px + var(--ratio) * 57px), calc(var(--radius) * 2px + var(--ratio) * 125px)}.theme7 foreignObject.Bottom{background-image:var(--img-theme7-bg3), var(--img-theme7-bg2), var(--img-theme7-bg1);background-position:center, center calc(var(--size) * 1px - var(--ratio) * 95px), calc(var(--ratio) * 42px) calc(var(--ratio) * -5px);background-size:calc(var(--radius) * 2px + 35px), calc(var(--radius) * 2px * 0.6), calc(var(--radius) * 2.7px)}.theme1 foreignObject.Middle,.theme4 foreignObject.Middle{background-image:var(--img-theme-center1);background-position:center}.theme2 foreignObject.Middle{background-image:var(--img-theme2-center), var(--img-theme2-arrow);background-position:center, center 60px}.theme3 foreignObject.Middle{background-image:var(--img-theme3-center), var(--img-theme3-arrow);background-position:center, center 39px}.theme5 foreignObject.Middle,.theme6 foreignObject.Middle{background-image:var(--img-theme-center2);background-position:center}.theme7 foreignObject.Middle{background-image:var(--img-theme7-center), var(--img-theme7-arrow);background-position:center, center 36px}.theme7 foreignObject.Top{background-image:var(--img-theme7-light);background-position:294px 135px}.theme1 foreignObject.Top,.theme2 foreignObject.Top,.theme3 foreignObject.Top,.theme4 foreignObject.Top,.theme5 foreignObject.Top,.theme6 foreignObject.Top{background-image:var(--img-theme-shadow);background-position:center;mix-blend-mode:multiply;background-size:calc(var(--radius) * 2px)}.theme2 foreignObject.Partition1{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc(var(--index) * 360deg / var(--length)))}.theme2 foreignObject.Partition2{background-image:var(--img-theme-partition-light);background-position:center calc((var(--size) / 2 - var(--radius)) * 1px - var(--ratio) * 22px);transform:rotate(calc((var(--index) + 0.5) * 360deg / var(--length)))}foreignObject.PointerArea{background-image:var(--img-theme-pointer-area);background-position:center -3px;mix-blend-mode:screen;background-size:51%}foreignObject.Partition1,foreignObject.Partition2{transform-origin:center}.PartitionsCustomable1,.PartitionsCustomable2{visibility:hidden}.PartitionsCustomable1.active,.PartitionsCustomable2.active{visibility:visible}foreignObject.Customable{overflow:visible;background-repeat:no-repeat}.PartitionBackground{background-size:calc(var(--radius) * 2 / var(--size) * 100%) calc(var(--radius) * 2 / var(--size) * 100%);background-position:center}.theme1 .PartitionBackground:nth-child(4n+1),.theme2 .PartitionBackground:nth-child(4n+1){background-image:radial-gradient(#009C9C 0%, #002634 100%)}.theme1 .PartitionBackground:nth-child(4n+2),.theme2 .PartitionBackground:nth-child(4n+2){background-image:radial-gradient(#AA00BF 0%, #3B0031 100%)}.theme1 .PartitionBackground:nth-child(4n+3),.theme2 .PartitionBackground:nth-child(4n+3){background-image:radial-gradient(#0068CD 0%, #150D42 100%)}.theme1 .PartitionBackground:nth-child(4n+4),.theme2 .PartitionBackground:nth-child(4n+4){background-image:radial-gradient(#DA005B 0%, #400021 100%)}.theme3 .PartitionBackground:nth-child(4n+1){background-image:radial-gradient(#066 0%, #007F76 13%, #00B59B 42%, #00DDB5 67.01%, #00F6C6 88.01%, #0FC 100.01%)}.theme3 .PartitionBackground:nth-child(4n+2){background-image:radial-gradient(#580065 22.67%, #D453FF 91.3%)}.theme3 .PartitionBackground:nth-child(4n+3){background-image:radial-gradient(#FFE767 -0.01%, #F28F00 100%)}.theme3 .PartitionBackground:nth-child(4n+4){background-image:radial-gradient(#900A42 22.59%, #960A44 23.94%, #B60B53 31.36%, #D00C5E 39.45%, #E40D67 48.22%, #F30D6E 57.66%, #FB0D71 69.8%, #FE0E73 90.03%)}.theme4 .PartitionBackground:nth-child(4n+1),.theme5 .PartitionBackground:nth-child(4n+1),.theme6 .PartitionBackground:nth-child(4n+1){background:radial-gradient(#3B0031 0%, #7E008E 100.01%)}.theme4 .PartitionBackground:nth-child(4n+2),.theme5 .PartitionBackground:nth-child(4n+2),.theme6 .PartitionBackground:nth-child(4n+2){background:radial-gradient(#5A005F 22.67%, #EA53FF 91.3%)}.theme4 .PartitionBackground:nth-child(4n+3),.theme5 .PartitionBackground:nth-child(4n+3),.theme6 .PartitionBackground:nth-child(4n+3){background:radial-gradient(#B300C3 -0.01%, #4D003B 100%)}.theme4 .PartitionBackground:nth-child(4n+4),.theme5 .PartitionBackground:nth-child(4n+4),.theme6 .PartitionBackground:nth-child(4n+4){background:radial-gradient(#59007B 22.59%, #B753FF 90.03%)}.theme7 .PartitionBackground:nth-child(2n+1){background:linear-gradient(90.23deg, #F6AD3F 16.59%, #AF8531 99.8%)}.theme7 .PartitionBackground:nth-child(2n+2){background:linear-gradient(90deg, #323234 -0.01%, #272425 54.99%, #231F1F 99.99%)}.PartitionBackground{transform-origin:center}.PartitionBackgroundStroke{fill:transparent;stroke-width:0.5px;stroke-dasharray:var(--radius) calc(6.2831853072 / var(--length) * var(--radius))}.theme1 .PartitionBackgroundStroke,.theme2 .PartitionBackgroundStroke{stroke:#FCD755}.PointerPartitionFrame{stroke:#FFDD64;fill:transparent;stroke-dasharray:var(--radius) calc(6.2831853072 / var(--length) * var(--radius));stroke-width:0px}.PointerPartitionFrame.active{stroke-width:3px}g.Center.spinning{cursor:not-allowed}`;
9960
10039
  this.shadowRoot.appendChild(style);
9961
10040
 
9962
10041
  init(
@@ -10103,7 +10182,7 @@
10103
10182
  return child_ctx;
10104
10183
  }
10105
10184
 
10106
- // (103:2) {#if bonus?.current && isOptionsReady}
10185
+ // (105:2) {#if bonus?.current && isOptionsReady}
10107
10186
  function create_if_block$1(ctx) {
10108
10187
  let div;
10109
10188
  let each_value = /*currentInfoKeys*/ ctx[6];
@@ -10123,7 +10202,7 @@
10123
10202
  }
10124
10203
 
10125
10204
  attr_dev(div, "class", "Current");
10126
- add_location(div, file$1, 103, 2, 2881);
10205
+ add_location(div, file$1, 105, 2, 2924);
10127
10206
  },
10128
10207
  m: function mount(target, anchor) {
10129
10208
  insert_dev(target, div, anchor);
@@ -10169,14 +10248,14 @@
10169
10248
  block,
10170
10249
  id: create_if_block$1.name,
10171
10250
  type: "if",
10172
- source: "(103:2) {#if bonus?.current && isOptionsReady}",
10251
+ source: "(105:2) {#if bonus?.current && isOptionsReady}",
10173
10252
  ctx
10174
10253
  });
10175
10254
 
10176
10255
  return block;
10177
10256
  }
10178
10257
 
10179
- // (105:4) {#each currentInfoKeys as CurrentInfoKey}
10258
+ // (107:4) {#each currentInfoKeys as CurrentInfoKey}
10180
10259
  function create_each_block$1(ctx) {
10181
10260
  let p;
10182
10261
  let t0_value = /*$_*/ ctx[11](`wof.${/*CurrentInfoKey*/ ctx[21]}`) + "";
@@ -10195,7 +10274,7 @@
10195
10274
  t2 = text(t2_value);
10196
10275
  t3 = space();
10197
10276
  attr_dev(p, "class", p_class_value = /*CurrentInfoKey*/ ctx[21]);
10198
- add_location(p, file$1, 105, 6, 2955);
10277
+ add_location(p, file$1, 107, 6, 2998);
10199
10278
  },
10200
10279
  m: function mount(target, anchor) {
10201
10280
  insert_dev(target, p, anchor);
@@ -10221,7 +10300,7 @@
10221
10300
  block,
10222
10301
  id: create_each_block$1.name,
10223
10302
  type: "each",
10224
- source: "(105:4) {#each currentInfoKeys as CurrentInfoKey}",
10303
+ source: "(107:4) {#each currentInfoKeys as CurrentInfoKey}",
10225
10304
  ctx
10226
10305
  });
10227
10306
 
@@ -10279,12 +10358,12 @@
10279
10358
  if (if_block) if_block.c();
10280
10359
  this.c = noop;
10281
10360
  set_attributes(lottery_program_wof_private_item_svg, lottery_program_wof_private_item_svg_data);
10282
- add_location(lottery_program_wof_private_item_svg, file$1, 86, 2, 2565);
10361
+ add_location(lottery_program_wof_private_item_svg, file$1, 88, 2, 2608);
10283
10362
  set_attributes(lottery_program_wof_private_message_panel, lottery_program_wof_private_message_panel_data);
10284
- add_location(lottery_program_wof_private_message_panel, file$1, 94, 2, 2700);
10363
+ add_location(lottery_program_wof_private_message_panel, file$1, 96, 2, 2743);
10285
10364
  attr_dev(div, "class", "LotteryItem");
10286
10365
  toggle_class(div, "Invalid", /*bonus*/ ctx[5]?.current.remainingTimes == 0 && !/*bonus*/ ctx[5]?.next && /*checkableValid*/ ctx[8]);
10287
- add_location(div, file$1, 81, 0, 2417);
10366
+ add_location(div, file$1, 83, 0, 2460);
10288
10367
  },
10289
10368
  l: function claim(nodes) {
10290
10369
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -10400,6 +10479,7 @@
10400
10479
  },
10401
10480
  'wof-private-message-spin-after': data => {
10402
10481
  if (data.id !== id) return;
10482
+ if (!bonusNew) return;
10403
10483
  $$invalidate(5, bonus = bonusNew);
10404
10484
 
10405
10485
  _postMessage({